blob: 4b65605d5b05a75a1da6404bbe89ee65def83ca8 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Scott Michel96dcd2b2007-12-05 21:24:02 +00003# Generated by GNU Autoconf 2.61 for llvm 2.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Scott Michel96dcd2b2007-12-05 21:24:02 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +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+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000025 setopt NO_GLOB_SUBST
26else
Scott Michel96dcd2b2007-12-05 21:24:02 +000027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
John Criswell0c38eaf2003-09-10 15:17:25 +000031fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032
33
John Criswell0c38eaf2003-09-10 15:17:25 +000034
John Criswell0c38eaf2003-09-10 15:17:25 +000035
Reid Spencera773bd52006-08-04 18:18:08 +000036# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000037# 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
Reid Spencera773bd52006-08-04 18:18:08 +000057# 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
John Criswell0c38eaf2003-09-10 15:17:25 +000063
Reid Spencera773bd52006-08-04 18:18:08 +000064
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
John Criswell0c38eaf2003-09-10 15:17:25 +000078for 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
Reid Spencera773bd52006-08-04 18:18:08 +000084IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000085
Reid Spencera773bd52006-08-04 18:18:08 +000086 ;;
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
John Criswell0c38eaf2003-09-10 15:17:25 +0000116 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000117done
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=
John Criswell0c38eaf2003-09-10 15:17:25 +0000225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Scott Michel96dcd2b2007-12-05 21:24:02 +0000226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000227do
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000230 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000231 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000232 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
Reid Spencera773bd52006-08-04 18:18:08 +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
Scott Michel96dcd2b2007-12-05 21:24:02 +0000252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
Reid Spencera773bd52006-08-04 18:18:08 +0000256fi
Scott Michel96dcd2b2007-12-05 21:24:02 +0000257
Reid Spencera773bd52006-08-04 18:18:08 +0000258
259:
260_ASEOF
261}; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
Reid Spencera773bd52006-08-04 18:18:08 +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
Scott Michel96dcd2b2007-12-05 21:24:02 +0000273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
Reid Spencera773bd52006-08-04 18:18:08 +0000277fi
Scott Michel96dcd2b2007-12-05 21:24:02 +0000278
Reid Spencera773bd52006-08-04 18:18:08 +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(
John Criswell0c38eaf2003-09-10 15:17:25 +0000332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000334 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000335 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" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000431
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
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # 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.
John Criswell0c38eaf2003-09-10 15:17:25 +0000439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000440 # 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 |
John Criswell0c38eaf2003-09-10 15:17:25 +0000446 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000451 N
Reid Spencera773bd52006-08-04 18:18:08 +0000452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000454 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000455 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000456 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000457 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000458 { 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
Reid Spencera773bd52006-08-04 18:18:08 +0000463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000465 # Exit status is that of the last command.
466 exit
467}
468
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470if (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';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000485esac
486
Reid Spencera773bd52006-08-04 18:18:08 +0000487if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000489 as_expr=expr
490else
491 as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000495if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
500fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000503 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 ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000509 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000510elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512else
513 as_ln_s='cp -p'
514fi
Reid Spencera773bd52006-08-04 18:18:08 +0000515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000517
518if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000521 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000522 as_mkdir_p=false
523fi
524
Scott Michel96dcd2b2007-12-05 21:24:02 +0000525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +0000527else
Scott Michel96dcd2b2007-12-05 21:24:02 +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 '
Reid Spencera773bd52006-08-04 18:18:08 +0000545fi
Scott Michel96dcd2b2007-12-05 21:24:02 +0000546as_executable_p=$as_test_x
John Criswell0c38eaf2003-09-10 15:17:25 +0000547
548# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000550
551# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000553
554
John Criswell7a73b802003-06-30 21:59:07 +0000555
John Criswell7a73b802003-06-30 21:59:07 +0000556
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 :
John Criswell47fdd832003-07-14 16:52:07 +0000574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000575 # 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
John Criswell47fdd832003-07-14 16:52:07 +0000586$*
John Criswell7a73b802003-06-30 21:59:07 +0000587EOF
588 exit 0
589fi
590
591# The HP-UX ksh and POSIX shell print the target directory to stdout
592# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000594
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, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000602 (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
John Criswell47fdd832003-07-14 16:52:07 +0000620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000621 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000622 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000623 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
John Criswell47fdd832003-07-14 16:52:07 +0000631 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000632
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
John Criswell47fdd832003-07-14 16:52:07 +0000705
Reid Spencer2706f8c2004-09-19 23:53:36 +0000706tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000707
Reid Spencer2706f8c2004-09-19 23:53:36 +0000708tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000709
Reid Spencera773bd52006-08-04 18:18:08 +0000710exec 7<&0 </dev/null 6>&1
711
John Criswell7a73b802003-06-30 21:59:07 +0000712# 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
John Criswell7a73b802003-06-30 21:59:07 +0000717#
718# Initializations.
719#
720ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000721ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000722ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000723LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000724cross_compiling=no
725subdirs=
726MFLAGS=
727MAKEFLAGS=
728SHELL=${CONFIG_SHELL-/bin/sh}
729
John Criswell7a73b802003-06-30 21:59:07 +0000730# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000731PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000732PACKAGE_TARNAME='-llvm-'
Tanya Lattner5c709542007-09-14 01:24:13 +0000733PACKAGE_VERSION='2.2svn'
734PACKAGE_STRING='llvm 2.2svn'
John Criswell7a73b802003-06-30 21:59:07 +0000735PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
736
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000737ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
Scott Michel96dcd2b2007-12-05 21:24:02 +0000741#ifdef HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <sys/types.h>
743#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000744#ifdef HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000745# include <sys/stat.h>
746#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000747#ifdef STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000748# include <stdlib.h>
749# include <stddef.h>
750#else
Scott Michel96dcd2b2007-12-05 21:24:02 +0000751# ifdef HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000752# include <stdlib.h>
753# endif
754#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000757# include <memory.h>
758# endif
759# include <string.h>
760#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000761#ifdef HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000762# include <strings.h>
763#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000764#ifdef HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000765# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000766#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000767#ifdef HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000768# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000769#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000770#ifdef HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000771# include <unistd.h>
772#endif"
773
Reid Spencera773bd52006-08-04 18:18:08 +0000774ac_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
831ENDIAN
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839CPP
840GREP
841EGREP
842LLVM_CROSS_COMPILING
843BUILD_CC
844BUILD_EXEEXT
845CVSBUILD
846ENABLE_OPTIMIZED
847DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000848ENABLE_EXPENSIVE_CHECKS
849EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000850DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000851JIT
852TARGET_HAS_JIT
853ENABLE_DOXYGEN
854ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000855ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000856TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000857ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000858EXTRA_OPTIONS
859CXX
860CXXFLAGS
861ac_ct_CXX
862LEX
Reid Spencera773bd52006-08-04 18:18:08 +0000863LEX_OUTPUT_ROOT
Scott Michel96dcd2b2007-12-05 21:24:02 +0000864LEXLIB
Reid Spencera773bd52006-08-04 18:18:08 +0000865FLEX
866YACC
867YFLAGS
868BISON
869NM
870ifGNUmake
871LN_S
872CMP
873CP
874DATE
875FIND
876MKDIR
877MV
878RANLIB
879RM
880SED
881TAR
882BINPWD
883GRAPHVIZ
884DOT
885GV
886DOTTY
887PERL
888HAVE_PERL
889INSTALL_PROGRAM
890INSTALL_SCRIPT
891INSTALL_DATA
892BZIP2
893DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000894GROFF
895GZIP
896POD2HTML
897POD2MAN
898RUNTEST
899TCLSH
900ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000901OCAMLC
902OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000903OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000904INSTALL_LTDL_TRUE
905INSTALL_LTDL_FALSE
906CONVENIENCE_LTDL_TRUE
907CONVENIENCE_LTDL_FALSE
908LIBADD_DL
909ECHO
910AR
911STRIP
912CXXCPP
913F77
914FFLAGS
915ac_ct_F77
916LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000917LLVMGCC
918LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000919USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000920HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000921HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000922ALLOCA
923MMAP_FILE
924LLVMCC1
925LLVMCC1PLUS
926LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000927LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000928LLVMGCC_VERSION
929LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000930LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000931SHLIBEXT
932LLVM_PREFIX
933LLVM_BINDIR
934LLVM_LIBDIR
935LLVM_DATADIR
936LLVM_DOCSDIR
937LLVM_ETCDIR
938LLVM_INCLUDEDIR
939LLVM_INFODIR
940LLVM_MANDIR
941LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000942BINDINGS_TO_BUILD
943ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000944OCAML_LIBDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000945LIBOBJS
946LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000947ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000948 ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
Scott Michel96dcd2b2007-12-05 21:24:02 +0000954LIBS
Reid Spencera773bd52006-08-04 18:18:08 +0000955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
960YACC
961YFLAGS
962CXXCPP
963F77
964FFLAGS'
965ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000966projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000967projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000968projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000969projects/llvm-reopt
970projects/llvm-gcc
971projects/llvm-java
972projects/llvm-tv
973projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000974projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000975projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000976
977# Initialize some variables set by options.
978ac_init_help=
979ac_init_version=false
980# The variables have the same names as the options, with
981# dashes changed to underlines.
982cache_file=/dev/null
983exec_prefix=NONE
984no_create=
985no_recursion=
986prefix=NONE
987program_prefix=NONE
988program_suffix=NONE
989program_transform_name=s,x,x,
990silent=
991site=
992srcdir=
993verbose=
994x_includes=NONE
995x_libraries=NONE
996
997# Installation directory options.
998# These are left unexpanded so users can "make install exec_prefix=/foo"
999# and all the variables that are supposed to be based on exec_prefix
1000# by default will actually change.
1001# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001002# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001003bindir='${exec_prefix}/bin'
1004sbindir='${exec_prefix}/sbin'
1005libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001006datarootdir='${prefix}/share'
1007datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001008sysconfdir='${prefix}/etc'
1009sharedstatedir='${prefix}/com'
1010localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001011includedir='${prefix}/include'
1012oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001013docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014infodir='${datarootdir}/info'
1015htmldir='${docdir}'
1016dvidir='${docdir}'
1017pdfdir='${docdir}'
1018psdir='${docdir}'
1019libdir='${exec_prefix}/lib'
1020localedir='${datarootdir}/locale'
1021mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001024ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001025for ac_option
1026do
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001029 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001030 ac_prev=
1031 continue
1032 fi
1033
Reid Spencera773bd52006-08-04 18:18:08 +00001034 case $ac_option in
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 *) ac_optarg=yes ;;
1037 esac
John Criswell7a73b802003-06-30 21:59:07 +00001038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
Reid Spencera773bd52006-08-04 18:18:08 +00001041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
Reid Spencera773bd52006-08-04 18:18:08 +00001065 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001066 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001068 datadir=$ac_optarg ;;
1069
Reid Spencera773bd52006-08-04 18:18:08 +00001070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
John Criswell7a73b802003-06-30 21:59:07 +00001077 -disable-* | --disable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001080 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001083 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001084 eval enable_$ac_feature=no ;;
1085
1086 -docdir | --docdir | --docdi | --doc | --do)
1087 ac_prev=docdir ;;
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1090
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 ac_prev=dvidir ;;
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001095
1096 -enable-* | --enable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001103 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
Reid Spencera773bd52006-08-04 18:18:08 +00001130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
John Criswell7a73b802003-06-30 21:59:07 +00001136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
Reid Spencera773bd52006-08-04 18:18:08 +00001160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
John Criswell7a73b802003-06-30 21:59:07 +00001165 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001166 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
Reid Spencera773bd52006-08-04 18:18:08 +00001234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
John Criswell7a73b802003-06-30 21:59:07 +00001244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001296 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001299 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001300 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001301
1302 -without-* | --without-*)
1303 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001305 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001306 { echo "$as_me: error: invalid package name: $ac_package" >&2
1307 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001308 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001309 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330Try \`$0 --help' for more information." >&2
1331 { (exit 1); exit 1; }; }
1332 ;;
1333
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001340 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352done
1353
1354if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { (exit 1); exit 1; }; }
1358fi
1359
Reid Spencera773bd52006-08-04 18:18:08 +00001360# Be sure to have absolute directory names.
1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001365do
Reid Spencera773bd52006-08-04 18:18:08 +00001366 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001367 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001370 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001371 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1390 fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
Reid Spencera773bd52006-08-04 18:18:08 +00001399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { echo "$as_me: error: Working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1407
1408
John Criswell7a73b802003-06-30 21:59:07 +00001409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001414$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001415 X"$0" : 'X\(//\)[^/]' \| \
1416 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001418echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001436 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001437 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
Reid Spencera773bd52006-08-04 18:18:08 +00001443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001446 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001447fi
Reid Spencera773bd52006-08-04 18:18:08 +00001448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001451 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001452 pwd)`
1453# When building in place, set srcdir=.
1454if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 srcdir=.
1456fi
1457# Remove unnecessary trailing slashes from srcdir.
1458# Double slashes in file names in object file debugging info
1459# mess up M-x gdb in Emacs.
1460case $srcdir in
1461*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462esac
1463for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468done
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470#
1471# Report the --help message.
1472#
1473if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1476 cat <<_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001477\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482VAR=VALUE. See below for descriptions of some of the useful variables.
1483
1484Defaults for the options are specified in brackets.
1485
1486Configuration:
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496
John Criswell7a73b802003-06-30 21:59:07 +00001497Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001499 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001501 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503By default, \`make install' will install all the files in
1504\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506for instance \`--prefix=\$HOME'.
1507
1508For better control, use the options below.
1509
1510Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001530_ACEOF
1531
1532 cat <<\_ACEOF
1533
1534System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542 case $ac_init_help in
Tanya Lattner5c709542007-09-14 01:24:13 +00001543 short | recursive ) echo "Configuration of llvm 2.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001544 esac
1545 cat <<\_ACEOF
1546
1547Optional Features:
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001550 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001551 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001552 --enable-expensive-checks
1553
Reid Spencer8b2e1412006-11-17 03:32:33 +00001554 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001555 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001556 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001557 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001558 --enable-pic Build LLVM with Position Independent Code (default
1559 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001560 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001561 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001566 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001567 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001568 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001569 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001570 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001571 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001572 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001573 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001574 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001575
1576Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001579 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1580 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001581 --with-llvmgcc Specify location of llvm-gcc driver (default
1582 searches PATH)
1583 --with-llvmgxx Specify location of llvm-g++ driver (default
1584 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001585 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001586 --with-ocaml-libdir Specify install location for ocaml bindings (default
1587 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001588 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1591 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001592 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001593 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001594
1595Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001596 CC C compiler command
1597 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
Scott Michel96dcd2b2007-12-05 21:24:02 +00001600 LIBS libraries to pass to the linker, e.g. -l<library>
Reid Spencera773bd52006-08-04 18:18:08 +00001601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001603 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001606 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1607 the first program found out of: `bison -y', `byacc', `yacc'.
1608 YFLAGS The list of arguments that will be passed by default to $YACC.
1609 This script will default YFLAGS to the empty string to avoid a
1610 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001611 CXXCPP C++ preprocessor
1612 F77 Fortran 77 compiler command
1613 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615Use these variables to override the choices made by `configure' or to help
1616it to find libraries and programs with nonstandard names/locations.
1617
1618Report bugs to <llvmbugs@cs.uiuc.edu>.
1619_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001620ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001621fi
1622
1623if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001626 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001627 ac_builddir=.
1628
Reid Spencera773bd52006-08-04 18:18:08 +00001629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001644
1645case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001646 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001647 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001651 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001658esac
Reid Spencera773bd52006-08-04 18:18:08 +00001659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001660
Reid Spencera773bd52006-08-04 18:18:08 +00001661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001669 else
1670 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001673 done
1674fi
1675
Reid Spencera773bd52006-08-04 18:18:08 +00001676test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001677if $ac_init_version; then
1678 cat <<\_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001679llvm configure 2.2svn
Scott Michel96dcd2b2007-12-05 21:24:02 +00001680generated by GNU Autoconf 2.61
John Criswell7a73b802003-06-30 21:59:07 +00001681
Reid Spencera773bd52006-08-04 18:18:08 +00001682Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001684This configure script is free software; the Free Software Foundation
1685gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001686
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001687Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001689 exit
John Criswell7a73b802003-06-30 21:59:07 +00001690fi
Reid Spencera773bd52006-08-04 18:18:08 +00001691cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001692This file contains any messages produced by compilers while
1693running configure, to aid debugging if configure makes a mistake.
1694
Tanya Lattner5c709542007-09-14 01:24:13 +00001695It was created by llvm $as_me 2.2svn, which was
Scott Michel96dcd2b2007-12-05 21:24:02 +00001696generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001697
1698 $ $0 $@
1699
1700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001701exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001702{
1703cat <<_ASUNAME
1704## --------- ##
1705## Platform. ##
1706## --------- ##
1707
1708hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716
1717/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001720/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001721/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
1725_ASUNAME
1726
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 echo "PATH: $as_dir"
1733done
Reid Spencera773bd52006-08-04 18:18:08 +00001734IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001735
1736} >&5
1737
1738cat >&5 <<_ACEOF
1739
1740
1741## ----------- ##
1742## Core tests. ##
1743## ----------- ##
1744
1745_ACEOF
1746
1747
1748# Keep a trace of the command line.
1749# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001750# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001751# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001752# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001753ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001754ac_configure_args0=
1755ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001756ac_must_keep_next=false
1757for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001758do
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 for ac_arg
1760 do
1761 case $ac_arg in
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1765 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001766 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 esac
1769 case $ac_pass in
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771 2)
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001774 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001776 case $ac_arg in
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 esac
1784 ;;
1785 -* ) ac_must_keep_next=true ;;
1786 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001788 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001789 ;;
1790 esac
1791 done
John Criswell7a73b802003-06-30 21:59:07 +00001792done
John Criswell0c38eaf2003-09-10 15:17:25 +00001793$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001795
1796# When interrupted or exit'd, cleanup temporary files, and complete
1797# config.log. We remove comments because anyway the quotes in there
1798# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001799# WARNING: Use '\'' to represent an apostrophe within the trap.
1800# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001801trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1803 {
1804 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001805
John Criswell7a73b802003-06-30 21:59:07 +00001806 cat <<\_ASBOX
1807## ---------------- ##
1808## Cache variables. ##
1809## ---------------- ##
1810_ASBOX
1811 echo
1812 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001813(
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1816 case $ac_val in #(
1817 *${as_nl}*)
1818 case $ac_var in #(
1819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821 esac
1822 case $ac_var in #(
1823 _ | IFS | as_nl) ;; #(
1824 *) $as_unset $ac_var ;;
1825 esac ;;
1826 esac
1827 done
John Criswell7a73b802003-06-30 21:59:07 +00001828 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001831 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001835 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001837 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001838 esac |
1839 sort
1840)
John Criswell7a73b802003-06-30 21:59:07 +00001841 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001842
1843 cat <<\_ASBOX
1844## ----------------- ##
1845## Output variables. ##
1846## ----------------- ##
1847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_vars
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858
1859 if test -n "$ac_subst_files"; then
1860 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001861## ------------------- ##
1862## File substitutions. ##
1863## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001864_ASBOX
1865 echo
1866 for ac_var in $ac_subst_files
1867 do
Reid Spencera773bd52006-08-04 18:18:08 +00001868 eval ac_val=\$$ac_var
1869 case $ac_val in
1870 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 esac
1872 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001873 done | sort
1874 echo
1875 fi
1876
John Criswell7a73b802003-06-30 21:59:07 +00001877 if test -s confdefs.h; then
1878 cat <<\_ASBOX
1879## ----------- ##
1880## confdefs.h. ##
1881## ----------- ##
1882_ASBOX
1883 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001884 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885 echo
1886 fi
1887 test "$ac_signal" != 0 &&
1888 echo "$as_me: caught signal $ac_signal"
1889 echo "$as_me: exit $exit_status"
1890 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001893 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001894' 0
John Criswell7a73b802003-06-30 21:59:07 +00001895for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897done
1898ac_signal=0
1899
1900# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001901rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001902
1903# Predefined preprocessor variables.
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_NAME "$PACKAGE_NAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_VERSION "$PACKAGE_VERSION"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_STRING "$PACKAGE_STRING"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927_ACEOF
1928
1929
1930# Let the site file select an alternate cache file if it wants to.
1931# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001932if test -n "$CONFIG_SITE"; then
1933 set x "$CONFIG_SITE"
1934elif test "x$prefix" != xNONE; then
1935 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936else
1937 set x "$ac_default_prefix/share/config.site" \
1938 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001939fi
Reid Spencera773bd52006-08-04 18:18:08 +00001940shift
1941for ac_site_file
1942do
John Criswell7a73b802003-06-30 21:59:07 +00001943 if test -r "$ac_site_file"; then
1944 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1947 . "$ac_site_file"
1948 fi
1949done
1950
1951if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956echo "$as_me: loading cache $cache_file" >&6;}
1957 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001960 esac
1961 fi
1962else
1963 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964echo "$as_me: creating cache $cache_file" >&6;}
1965 >$cache_file
1966fi
1967
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001971for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001976 case $ac_old_set,$ac_new_set in
1977 set,)
1978 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1981 ,set)
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1985 ,);;
1986 *)
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001988 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001989echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001990 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001991echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001992 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001993echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001994 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001995 fi;;
1996 esac
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
1999 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002000 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002001 *) ac_arg=$ac_var=$ac_new_val ;;
2002 esac
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006 esac
2007 fi
2008done
2009if $ac_cache_corrupted; then
2010 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2015fi
2016
Reid Spencera773bd52006-08-04 18:18:08 +00002017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041ac_ext=c
2042ac_cpp='$CPP $CPPFLAGS'
2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
2047
2048
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002049LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050
2051
2052
2053
2054
2055
2056
John Criswell7a73b802003-06-30 21:59:07 +00002057ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002058for ac_dir in autoconf "$srcdir"/autoconf; do
2059 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
Reid Spencera773bd52006-08-04 18:18:08 +00002063 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
Reid Spencera773bd52006-08-04 18:18:08 +00002067 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
2071 fi
2072done
2073if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002076 { (exit 1); exit 1; }; }
2077fi
Reid Spencera773bd52006-08-04 18:18:08 +00002078
2079# These three variables are undocumented and unsupported,
2080# and are intended to be withdrawn in a future Autoconf release.
2081# They can cause serious problems if a builder's source tree is in a directory
2082# whose full name contains unusual characters.
2083ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2086
John Criswell7a73b802003-06-30 21:59:07 +00002087
John Criswell392aaa32003-07-22 19:18:09 +00002088
Reid Spencer2706f8c2004-09-19 23:53:36 +00002089if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002090 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2091 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002092echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2093 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094 fi
John Criswell93e1c722003-09-15 17:04:06 +00002095fi
2096
John Criswell33a911a2003-11-25 20:36:46 +00002097for i in `ls ${srcdir}/projects`
2098do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002099 if test -d ${srcdir}/projects/${i} ; then
2100 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 CVS) ;;
2102 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002108 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 ;;
2110 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002113 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002115 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002116 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002118 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002119 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002120 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002123 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002124 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002125 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2126echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002127 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128 esac
John Criswell33a911a2003-11-25 20:36:46 +00002129 fi
2130done
John Criswell559a6c12003-09-30 16:31:48 +00002131
John Criswell7a73b802003-06-30 21:59:07 +00002132
2133# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002134$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002137 { (exit 1); exit 1; }; }
2138
Reid Spencera773bd52006-08-04 18:18:08 +00002139{ echo "$as_me:$LINENO: checking build system type" >&5
2140echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002141if test "${ac_cv_build+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
Reid Spencera773bd52006-08-04 18:18:08 +00002144 ac_build_alias=$build_alias
2145test "x$ac_build_alias" = x &&
2146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002148 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002151ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002154 { (exit 1); exit 1; }; }
2155
2156fi
Reid Spencera773bd52006-08-04 18:18:08 +00002157{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158echo "${ECHO_T}$ac_cv_build" >&6; }
2159case $ac_cv_build in
2160*-*-*) ;;
2161*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162echo "$as_me: error: invalid value of canonical build" >&2;}
2163 { (exit 1); exit 1; }; };;
2164esac
John Criswell7a73b802003-06-30 21:59:07 +00002165build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_build
2168shift
2169build_cpu=$1
2170build_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174build_os=$*
2175IFS=$ac_save_IFS
2176case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002177
2178
Reid Spencera773bd52006-08-04 18:18:08 +00002179{ echo "$as_me:$LINENO: checking host system type" >&5
2180echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002181if test "${ac_cv_host+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
Reid Spencera773bd52006-08-04 18:18:08 +00002184 if test "x$host_alias" = x; then
2185 ac_cv_host=$ac_cv_build
2186else
2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002190 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002191fi
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193fi
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195echo "${ECHO_T}$ac_cv_host" >&6; }
2196case $ac_cv_host in
2197*-*-*) ;;
2198*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199echo "$as_me: error: invalid value of canonical host" >&2;}
2200 { (exit 1); exit 1; }; };;
2201esac
John Criswell7a73b802003-06-30 21:59:07 +00002202host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002203ac_save_IFS=$IFS; IFS='-'
2204set x $ac_cv_host
2205shift
2206host_cpu=$1
2207host_vendor=$2
2208shift; shift
2209# Remember, the first character of IFS is used to create $*,
2210# except with old shells:
2211host_os=$*
2212IFS=$ac_save_IFS
2213case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002214
2215
Reid Spencera773bd52006-08-04 18:18:08 +00002216{ echo "$as_me:$LINENO: checking target system type" >&5
2217echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002218if test "${ac_cv_target+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
Reid Spencera773bd52006-08-04 18:18:08 +00002221 if test "x$target_alias" = x; then
2222 ac_cv_target=$ac_cv_host
2223else
2224 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2225 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2226echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002227 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002228fi
John Criswell7a73b802003-06-30 21:59:07 +00002229
2230fi
Reid Spencera773bd52006-08-04 18:18:08 +00002231{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2232echo "${ECHO_T}$ac_cv_target" >&6; }
2233case $ac_cv_target in
2234*-*-*) ;;
2235*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2236echo "$as_me: error: invalid value of canonical target" >&2;}
2237 { (exit 1); exit 1; }; };;
2238esac
John Criswell7a73b802003-06-30 21:59:07 +00002239target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002240ac_save_IFS=$IFS; IFS='-'
2241set x $ac_cv_target
2242shift
2243target_cpu=$1
2244target_vendor=$2
2245shift; shift
2246# Remember, the first character of IFS is used to create $*,
2247# except with old shells:
2248target_os=$*
2249IFS=$ac_save_IFS
2250case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002251
2252
2253# The aliases save the names the user supplied, while $host etc.
2254# will get canonicalized.
2255test -n "$target_alias" &&
2256 test "$program_prefix$program_suffix$program_transform_name" = \
2257 NONENONEs,x,x, &&
2258 program_prefix=${target_alias}-
2259
Reid Spencera773bd52006-08-04 18:18:08 +00002260{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2261echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002265 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 llvm_cv_os_type="AIX"
2270 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002271 *-*-irix*)
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="IRIX"
2275 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="Cygwin"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,-all_load"
2283 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="Darwin"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 llvm_cv_os_type="FreeBSD"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002291 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002294 llvm_cv_os_type="OpenBSD"
2295 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002296 *-*-netbsd*)
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="NetBSD"
2300 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002301 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002304 llvm_cv_os_type="HP-UX"
2305 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 llvm_cv_os_type="Interix"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 llvm_cv_os_type="Linux"
2315 llvm_cv_platform_type="Unix" ;;
2316 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002317 llvm_cv_link_all_option="-Wl,-z,allextract"
2318 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 llvm_cv_os_type="SunOS"
2320 llvm_cv_platform_type="Unix" ;;
2321 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324 llvm_cv_os_type="Win32"
2325 llvm_cv_platform_type="Win32" ;;
2326 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="MingW"
2330 llvm_cv_platform_type="Win32" ;;
2331 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option=""
2333 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Unknown"
2335 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002336esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337fi
Reid Spencera773bd52006-08-04 18:18:08 +00002338{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002340
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341if test "$llvm_cv_os_type" = "Unknown" ; then
2342 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002344 { (exit 1); exit 1; }; }
2345fi
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348
2349
Reid Spencera773bd52006-08-04 18:18:08 +00002350LINKALL=$llvm_cv_link_all_option
2351
2352NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355case $llvm_cv_platform_type in
2356 Unix)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_UNIX 1
2360_ACEOF
2361
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002362 LLVM_ON_UNIX=1
2363
2364 LLVM_ON_WIN32=0
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 ;;
2367 Win32)
2368
2369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_WIN32 1
2371_ACEOF
2372
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002373 LLVM_ON_UNIX=0
2374
2375 LLVM_ON_WIN32=1
2376
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377 ;;
2378esac
2379
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: checking target architecture" >&5
2381echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002386 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002391 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002392 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002393 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002394 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002395esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396fi
Reid Spencera773bd52006-08-04 18:18:08 +00002397{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2398echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400if test "$llvm_cv_target_arch" = "Unknown" ; then
2401 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2402echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2403fi
John Criswell76595452003-07-01 22:07:39 +00002404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002406
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002413if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435done
2436done
Reid Spencera773bd52006-08-04 18:18:08 +00002437IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438
2439fi
2440fi
2441CC=$ac_cv_prog_CC
2442if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002443 { echo "$as_me:$LINENO: result: $CC" >&5
2444echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445else
Reid Spencera773bd52006-08-04 18:18:08 +00002446 { echo "$as_me:$LINENO: result: no" >&5
2447echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448fi
2449
Reid Spencera773bd52006-08-04 18:18:08 +00002450
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451fi
2452if test -z "$ac_cv_prog_CC"; then
2453 ac_ct_CC=$CC
2454 # Extract the first word of "gcc", so it can be a program name with args.
2455set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 ac_cv_prog_ac_ct_CC="gcc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475done
2476done
Reid Spencera773bd52006-08-04 18:18:08 +00002477IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478
2479fi
2480fi
2481ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002483 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485else
Reid Spencera773bd52006-08-04 18:18:08 +00002486 { echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488fi
2489
Reid Spencera773bd52006-08-04 18:18:08 +00002490 if test "x$ac_ct_CC" = x; then
2491 CC=""
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494yes:)
2495{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2496whose name does not start with the host triplet. If you think this
2497configuration is useful to you, please write to autoconf@gnu.org." >&5
2498echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet. If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2501ac_tool_warned=yes ;;
2502esac
2503 CC=$ac_ct_CC
2504 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505else
2506 CC="$ac_cv_prog_CC"
2507fi
2508
2509if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528 ac_cv_prog_CC="${ac_tool_prefix}cc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532done
2533done
Reid Spencera773bd52006-08-04 18:18:08 +00002534IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535
2536fi
2537fi
2538CC=$ac_cv_prog_CC
2539if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002540 { echo "$as_me:$LINENO: result: $CC" >&5
2541echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542else
Reid Spencera773bd52006-08-04 18:18:08 +00002543 { echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545fi
2546
Reid Spencera773bd52006-08-04 18:18:08 +00002547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549fi
2550if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002555if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
2561 ac_prog_rejected=no
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2571 continue
2572 fi
2573 ac_cv_prog_CC="cc"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578done
Reid Spencera773bd52006-08-04 18:18:08 +00002579IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580
2581if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2584 shift
2585 if test $# != 0; then
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2589 shift
2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591 fi
2592fi
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002597 { echo "$as_me:$LINENO: result: $CC" >&5
2598echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599else
Reid Spencera773bd52006-08-04 18:18:08 +00002600 { echo "$as_me:$LINENO: result: no" >&5
2601echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602fi
2603
Reid Spencera773bd52006-08-04 18:18:08 +00002604
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605fi
2606if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002608 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002609 do
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631done
2632done
Reid Spencera773bd52006-08-04 18:18:08 +00002633IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002634
2635fi
2636fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637CC=$ac_cv_prog_CC
2638if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002639 { echo "$as_me:$LINENO: result: $CC" >&5
2640echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002641else
Reid Spencera773bd52006-08-04 18:18:08 +00002642 { echo "$as_me:$LINENO: result: no" >&5
2643echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002644fi
2645
Reid Spencera773bd52006-08-04 18:18:08 +00002646
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002648 done
2649fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650if test -z "$CC"; then
2651 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002652 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002653do
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
Reid Spencera773bd52006-08-04 18:18:08 +00002677IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002678
2679fi
2680fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002683 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002685else
Reid Spencera773bd52006-08-04 18:18:08 +00002686 { echo "$as_me:$LINENO: result: no" >&5
2687echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002688fi
2689
Reid Spencera773bd52006-08-04 18:18:08 +00002690
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002691 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002692done
John Criswell7a73b802003-06-30 21:59:07 +00002693
Reid Spencera773bd52006-08-04 18:18:08 +00002694 if test "x$ac_ct_CC" = x; then
2695 CC=""
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698yes:)
2699{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2700whose name does not start with the host triplet. If you think this
2701configuration is useful to you, please write to autoconf@gnu.org." >&5
2702echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2703whose name does not start with the host triplet. If you think this
2704configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707 CC=$ac_ct_CC
2708 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709fi
2710
John Criswell7a73b802003-06-30 21:59:07 +00002711fi
2712
2713
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002714test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." >&5
2716echo "$as_me: error: no acceptable C compiler found in \$PATH
2717See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2719
John Criswell7a73b802003-06-30 21:59:07 +00002720# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002721echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002722ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002723{ (ac_try="$ac_compiler --version >&5"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002733{ (ac_try="$ac_compiler -v >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002743{ (ac_try="$ac_compiler -V >&5"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753
2754cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002760
John Criswell7a73b802003-06-30 21:59:07 +00002761int
2762main ()
2763{
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002770ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002771# Try to create an executable without -o first, disregard a.out.
2772# It will help us diagnose broken compilers, and finding out an intuition
2773# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002774{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2775echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002776ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002777#
2778# List of possible output files, starting from the most likely.
2779# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2780# only as a last resort. b.out is created by i960 compilers.
2781ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2782#
2783# The IRIX 6 linker writes into existing files which may not be
2784# executable, retaining their permissions. Remove them first so a
2785# subsequent execution test works.
2786ac_rmfiles=
2787for ac_file in $ac_files
2788do
2789 case $ac_file in
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792 esac
2793done
2794rm -f $ac_rmfiles
2795
2796if { (ac_try="$ac_link_default"
2797case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808# in a Makefile. We should not override ac_cv_exeext if it was cached,
2809# so that the user can short-circuit this test for compilers unknown to
2810# Autoconf.
Scott Michel96dcd2b2007-12-05 21:24:02 +00002811for ac_file in $ac_files ''
John Criswell0c38eaf2003-09-10 15:17:25 +00002812do
2813 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002814 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002817 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002818 # We found the default executable, but exeext='' is most
2819 # certainly right.
2820 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002821 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823 then :; else
2824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 fi
2826 # We set ac_cv_exeext here because the later test for it is not
2827 # safe: cross compilers may not add the suffix if given an `-o'
2828 # argument, so we may need to know it at that point already.
2829 # Even if this section looks crufty: it has the advantage of
2830 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002831 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002832 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002834 esac
2835done
Reid Spencera773bd52006-08-04 18:18:08 +00002836test "$ac_cv_exeext" = no && ac_cv_exeext=
2837
John Criswell7a73b802003-06-30 21:59:07 +00002838else
Scott Michel96dcd2b2007-12-05 21:24:02 +00002839 ac_file=''
2840fi
2841
2842{ echo "$as_me:$LINENO: result: $ac_file" >&5
2843echo "${ECHO_T}$ac_file" >&6; }
2844if test -z "$ac_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00002845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002846sed 's/^/| /' conftest.$ac_ext >&5
2847
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002848{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002849See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002850echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002851See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002852 { (exit 77); exit 77; }; }
2853fi
2854
2855ac_exeext=$ac_cv_exeext
John Criswell7a73b802003-06-30 21:59:07 +00002856
Reid Spencera773bd52006-08-04 18:18:08 +00002857# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002858# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002859{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002861# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862# If not cross compiling, check that we can run a simple program.
2863if test "$cross_compiling" != yes; then
2864 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
2869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 cross_compiling=no
2875 else
2876 if test "$cross_compiling" = maybe; then
2877 cross_compiling=yes
2878 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002880If you meant to cross compile, use \`--host'.
2881See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002882echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002883If you meant to cross compile, use \`--host'.
2884See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002885 { (exit 1); exit 1; }; }
2886 fi
2887 fi
2888fi
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: result: yes" >&5
2890echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891
John Criswell0c38eaf2003-09-10 15:17:25 +00002892rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002893ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002894# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002895# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002896{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2898{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002900
Reid Spencera773bd52006-08-04 18:18:08 +00002901{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2903if { (ac_try="$ac_link"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2915# work properly (i.e., refer to `conftest.exe'), while it won't with
2916# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002917for ac_file in conftest.exe conftest conftest.*; do
2918 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002919 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002922 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002923 * ) break;;
2924 esac
2925done
2926else
John Criswell0c38eaf2003-09-10 15:17:25 +00002927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2928See \`config.log' for more details." >&5
2929echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2930See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002931 { (exit 1); exit 1; }; }
2932fi
2933
2934rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002935{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002937
2938rm -f conftest.$ac_ext
2939EXEEXT=$ac_cv_exeext
2940ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002941{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002943if test "${ac_cv_objext+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002952
John Criswell7a73b802003-06-30 21:59:07 +00002953int
2954main ()
2955{
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002962if { (ac_try="$ac_compile"
2963case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002974 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977 break;;
2978 esac
2979done
2980else
2981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: cannot compute suffix of object files: cannot compile
2987See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002988 { (exit 1); exit 1; }; }
2989fi
2990
2991rm -f conftest.$ac_cv_objext conftest.$ac_ext
2992fi
Reid Spencera773bd52006-08-04 18:18:08 +00002993{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2994echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002995OBJEXT=$ac_cv_objext
2996ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002997{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2998echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002999if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003008
John Criswell7a73b802003-06-30 21:59:07 +00003009int
3010main ()
3011{
3012#ifndef __GNUC__
3013 choke me
3014#endif
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003037 ac_compiler_gnu=yes
3038else
3039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003040sed 's/^/| /' conftest.$ac_ext >&5
3041
Reid Spencera773bd52006-08-04 18:18:08 +00003042 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003043fi
Reid Spencera773bd52006-08-04 18:18:08 +00003044
3045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003046ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003047
3048fi
Reid Spencera773bd52006-08-04 18:18:08 +00003049{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3050echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003051GCC=`test $ac_compiler_gnu = yes && echo yes`
3052ac_test_CFLAGS=${CFLAGS+set}
3053ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003054{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3055echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003056if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
Reid Spencera773bd52006-08-04 18:18:08 +00003059 ac_save_c_werror_flag=$ac_c_werror_flag
3060 ac_c_werror_flag=yes
3061 ac_cv_prog_cc_g=no
3062 CFLAGS="-g"
3063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003064/* confdefs.h. */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003069
John Criswell7a73b802003-06-30 21:59:07 +00003070int
3071main ()
3072{
3073
3074 ;
3075 return 0;
3076}
3077_ACEOF
3078rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003079if { (ac_try="$ac_compile"
3080case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003095 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003096else
3097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003098sed 's/^/| /' conftest.$ac_ext >&5
3099
Reid Spencera773bd52006-08-04 18:18:08 +00003100 CFLAGS=""
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003133 :
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 CFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (ac_try="$ac_compile"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003172 ac_cv_prog_cc_g=yes
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
John Criswell7a73b802003-06-30 21:59:07 +00003178fi
Reid Spencera773bd52006-08-04 18:18:08 +00003179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003181fi
Reid Spencera773bd52006-08-04 18:18:08 +00003182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188fi
3189{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003191if test "$ac_test_CFLAGS" = set; then
3192 CFLAGS=$ac_save_CFLAGS
3193elif test $ac_cv_prog_cc_g = yes; then
3194 if test "$GCC" = yes; then
3195 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003196 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003198 fi
3199else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200 if test "$GCC" = yes; then
3201 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003202 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003204 fi
3205fi
Reid Spencera773bd52006-08-04 18:18:08 +00003206{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
Reid Spencera773bd52006-08-04 18:18:08 +00003211 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212ac_save_CC=$CC
3213cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <stdarg.h>
3220#include <stdio.h>
3221#include <sys/types.h>
3222#include <sys/stat.h>
3223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224struct buf { int x; };
3225FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226static char *e (p, i)
3227 char **p;
3228 int i;
3229{
3230 return p[i];
3231}
3232static char *f (char * (*g) (char **, int), char **p, ...)
3233{
3234 char *s;
3235 va_list v;
3236 va_start (v,p);
3237 s = g (p, va_arg (v,int));
3238 va_end (v);
3239 return s;
3240}
3241
3242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003245 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003248 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250
Reid Spencera773bd52006-08-04 18:18:08 +00003251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3253#define FOO(x) 'x'
3254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256int test (int i, double x);
3257struct s1 {int (*f) (int a);};
3258struct s2 {int (*f) (double a);};
3259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260int argc;
3261char **argv;
3262int
3263main ()
3264{
3265return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3266 ;
3267 return 0;
3268}
3269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272do
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003275if { (ac_try="$ac_compile"
3276case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003291 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292else
3293 echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
Reid Spencera773bd52006-08-04 18:18:08 +00003296
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297fi
Reid Spencera773bd52006-08-04 18:18:08 +00003298
3299rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301done
Reid Spencera773bd52006-08-04 18:18:08 +00003302rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303CC=$ac_save_CC
3304
3305fi
Reid Spencera773bd52006-08-04 18:18:08 +00003306# AC_CACHE_VAL
3307case "x$ac_cv_prog_cc_c89" in
3308 x)
3309 { echo "$as_me:$LINENO: result: none needed" >&5
3310echo "${ECHO_T}none needed" >&6; } ;;
3311 xno)
3312 { echo "$as_me:$LINENO: result: unsupported" >&5
3313echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003315 CC="$CC $ac_cv_prog_cc_c89"
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318esac
3319
John Criswell0c38eaf2003-09-10 15:17:25 +00003320
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321ac_ext=c
3322ac_cpp='$CPP $CPPFLAGS'
3323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328ac_ext=c
3329ac_cpp='$CPP $CPPFLAGS'
3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003333{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3334echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335# On Suns, sometimes $CPP names a directory.
3336if test -n "$CPP" && test -d "$CPP"; then
3337 CPP=
3338fi
3339if test -z "$CPP"; then
3340 if test "${ac_cv_prog_CPP+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343 # Double quotes because CPP needs to be expanded
3344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345 do
3346 ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
3366 Syntax error
3367_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003368if { (ac_try="$ac_cpp conftest.$ac_ext"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003380 (exit $ac_status); } >/dev/null && {
3381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3383 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Broken: fails on valid input.
3390continue
3391fi
Reid Spencera773bd52006-08-04 18:18:08 +00003392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393rm -f conftest.err conftest.$ac_ext
3394
Reid Spencera773bd52006-08-04 18:18:08 +00003395 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 # Broken: success on invalid input.
3422continue
3423else
3424 echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
Reid Spencera773bd52006-08-04 18:18:08 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then
3438 break
3439fi
3440
3441 done
3442 ac_cv_prog_CPP=$CPP
3443
3444fi
3445 CPP=$ac_cv_prog_CPP
3446else
3447 ac_cv_prog_CPP=$CPP
3448fi
Reid Spencera773bd52006-08-04 18:18:08 +00003449{ echo "$as_me:$LINENO: result: $CPP" >&5
3450echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451ac_preproc_ok=false
3452for ac_c_preproc_warn_flag in '' yes
3453do
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#ifdef __STDC__
3467# include <limits.h>
3468#else
3469# include <assert.h>
3470#endif
3471 Syntax error
3472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003473if { (ac_try="$ac_cpp conftest.$ac_ext"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003485 (exit $ac_status); } >/dev/null && {
3486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489 :
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 # Broken: fails on valid input.
3495continue
3496fi
Reid Spencera773bd52006-08-04 18:18:08 +00003497
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498rm -f conftest.err conftest.$ac_ext
3499
Reid Spencera773bd52006-08-04 18:18:08 +00003500 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h. */
3508#include <ac_nonexistent.h>
3509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003510if { (ac_try="$ac_cpp conftest.$ac_ext"
3511case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003522 (exit $ac_status); } >/dev/null && {
3523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3525 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003526 # Broken: success on invalid input.
3527continue
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 # Passes both tests.
3533ac_preproc_ok=:
3534break
3535fi
Reid Spencera773bd52006-08-04 18:18:08 +00003536
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537rm -f conftest.err conftest.$ac_ext
3538
3539done
3540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541rm -f conftest.err conftest.$ac_ext
3542if $ac_preproc_ok; then
3543 :
3544else
3545 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546See \`config.log' for more details." >&5
3547echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3550fi
3551
John Criswell7a73b802003-06-30 21:59:07 +00003552ac_ext=c
3553ac_cpp='$CPP $CPPFLAGS'
3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
John Criswell7a73b802003-06-30 21:59:07 +00003558
Reid Spencera773bd52006-08-04 18:18:08 +00003559{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3560echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003561if test "${ac_cv_path_GREP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
Reid Spencera773bd52006-08-04 18:18:08 +00003564 # Extract the first word of "grep ggrep" to use in msg output
3565if test -z "$GREP"; then
3566set dummy grep ggrep; ac_prog_name=$2
3567if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
Reid Spencera773bd52006-08-04 18:18:08 +00003570 ac_path_GREP_found=false
3571# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003577 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003578 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Scott Michel96dcd2b2007-12-05 21:24:02 +00003580 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003581 # Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583case `"$ac_path_GREP" --version 2>&1` in
3584*GNU*)
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586*)
3587 ac_count=0
3588 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3589 while :
3590 do
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 ac_count=`expr $ac_count + 1`
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003602 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3605 done
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607esac
3608
3609
3610 $ac_path_GREP_found && break 3
3611 done
3612done
3613
3614done
3615IFS=$as_save_IFS
3616
3617
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003618fi
Reid Spencera773bd52006-08-04 18:18:08 +00003619
3620GREP="$ac_cv_path_GREP"
3621if test -z "$GREP"; then
3622 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624 { (exit 1); exit 1; }; }
3625fi
3626
3627else
3628 ac_cv_path_GREP=$GREP
3629fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003630
John Criswell7a73b802003-06-30 21:59:07 +00003631
Reid Spencera773bd52006-08-04 18:18:08 +00003632fi
3633{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3635 GREP="$ac_cv_path_GREP"
3636
3637
3638{ echo "$as_me:$LINENO: checking for egrep" >&5
3639echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3640if test "${ac_cv_path_EGREP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644 then ac_cv_path_EGREP="$GREP -E"
3645 else
3646 # Extract the first word of "egrep" to use in msg output
3647if test -z "$EGREP"; then
3648set dummy egrep; ac_prog_name=$2
3649if test "${ac_cv_path_EGREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652 ac_path_EGREP_found=false
3653# Loop through the user's path and test for each of PROGNAME-LIST
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in egrep; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Scott Michel96dcd2b2007-12-05 21:24:02 +00003662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003663 # Check for GNU ac_path_EGREP and select it if it is found.
3664 # Check for GNU $ac_path_EGREP
3665case `"$ac_path_EGREP" --version 2>&1` in
3666*GNU*)
3667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3668*)
3669 ac_count=0
3670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671 while :
3672 do
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 echo 'EGREP' >> "conftest.nl"
3677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_EGREP="$ac_path_EGREP"
3683 ac_path_EGREP_max=$ac_count
3684 fi
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3687 done
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689esac
3690
3691
3692 $ac_path_EGREP_found && break 3
3693 done
3694done
3695
3696done
3697IFS=$as_save_IFS
3698
3699
3700fi
3701
3702EGREP="$ac_cv_path_EGREP"
3703if test -z "$EGREP"; then
3704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706 { (exit 1); exit 1; }; }
3707fi
3708
3709else
3710 ac_cv_path_EGREP=$EGREP
3711fi
3712
3713
3714 fi
3715fi
3716{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3717echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3719
3720
3721{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003723if test "${ac_cv_header_stdc+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003732#include <stdlib.h>
3733#include <stdarg.h>
3734#include <string.h>
3735#include <float.h>
3736
John Criswell0c38eaf2003-09-10 15:17:25 +00003737int
3738main ()
3739{
3740
3741 ;
3742 return 0;
3743}
John Criswell7a73b802003-06-30 21:59:07 +00003744_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003745rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003746if { (ac_try="$ac_compile"
3747case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750esac
3751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003753 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003762 ac_cv_header_stdc=yes
3763else
3764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003765sed 's/^/| /' conftest.$ac_ext >&5
3766
Reid Spencera773bd52006-08-04 18:18:08 +00003767 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003768fi
Reid Spencera773bd52006-08-04 18:18:08 +00003769
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003771
3772if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003780#include <string.h>
3781
3782_ACEOF
3783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003784 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003785 :
3786else
3787 ac_cv_header_stdc=no
3788fi
3789rm -f conftest*
3790
3791fi
3792
3793if test $ac_cv_header_stdc = yes; then
3794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003801#include <stdlib.h>
3802
3803_ACEOF
3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003805 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003806 :
3807else
3808 ac_cv_header_stdc=no
3809fi
3810rm -f conftest*
3811
3812fi
3813
3814if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then
3817 :
3818else
3819 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003825#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003826#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003827#if ((' ' & 0x0FF) == 0x020)
3828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003831# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003832 (('a' <= (c) && (c) <= 'i') \
3833 || ('j' <= (c) && (c) <= 'r') \
3834 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836#endif
3837
3838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839int
3840main ()
3841{
3842 int i;
3843 for (i = 0; i < 256; i++)
3844 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003845 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003846 return 2;
3847 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003848}
3849_ACEOF
3850rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003851if { (ac_try="$ac_link"
3852case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864esac
3865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 :
3871else
3872 echo "$as_me: program exited with status $ac_status" >&5
3873echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
John Criswell7a73b802003-06-30 21:59:07 +00003876( exit $ac_status )
3877ac_cv_header_stdc=no
3878fi
Reid Spencera773bd52006-08-04 18:18:08 +00003879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880fi
3881
3882
John Criswell7a73b802003-06-30 21:59:07 +00003883fi
3884fi
Reid Spencera773bd52006-08-04 18:18:08 +00003885{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3886echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003887if test $ac_cv_header_stdc = yes; then
3888
3889cat >>confdefs.h <<\_ACEOF
3890#define STDC_HEADERS 1
3891_ACEOF
3892
3893fi
3894
Reid Spencera773bd52006-08-04 18:18:08 +00003895# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3906 inttypes.h stdint.h unistd.h
3907do
3908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h. */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h. */
3920$ac_includes_default
3921
3922#include <$ac_header>
3923_ACEOF
3924rm -f conftest.$ac_objext
3925if { (ac_try="$ac_compile"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_compile") 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003937 (exit $ac_status); } && {
3938 test -z "$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3940 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003941 eval "$as_ac_Header=yes"
3942else
3943 echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 eval "$as_ac_Header=no"
3947fi
3948
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950fi
3951ac_res=`eval echo '${'$as_ac_Header'}'`
3952 { echo "$as_me:$LINENO: result: $ac_res" >&5
3953echo "${ECHO_T}$ac_res" >&6; }
3954if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957_ACEOF
3958
3959fi
3960
3961done
3962
3963
3964{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3965echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3966if test "${ac_cv_c_bigendian+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 # See if sys/param.h defines the BYTE_ORDER macro.
3970cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h. */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h. */
3976#include <sys/types.h>
3977#include <sys/param.h>
3978
3979int
3980main ()
3981{
Scott Michel96dcd2b2007-12-05 21:24:02 +00003982#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3983 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Reid Spencera773bd52006-08-04 18:18:08 +00003984 bogus endian macros
3985#endif
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991rm -f conftest.$ac_objext
3992if { (ac_try="$ac_compile"
3993case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996esac
3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004008 # It does; now see whether it defined to BIG_ENDIAN or not.
4009cat >conftest.$ac_ext <<_ACEOF
4010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
4015#include <sys/types.h>
4016#include <sys/param.h>
4017
4018int
4019main ()
4020{
4021#if BYTE_ORDER != BIG_ENDIAN
4022 not big endian
4023#endif
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004046 ac_cv_c_bigendian=yes
4047else
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_cv_c_bigendian=no
4052fi
4053
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055else
4056 echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 # It does not; compile a test program.
4060if test "$cross_compiling" = yes; then
4061 # try to guess the endianness by grepping values into an object file
4062 ac_cv_c_bigendian=unknown
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4070short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4071void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4072short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4073short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4074void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4075int
4076main ()
4077{
4078 _ascii (); _ebcdic ();
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083rm -f conftest.$ac_objext
4084if { (ac_try="$ac_compile"
4085case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004100 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4101 ac_cv_c_bigendian=yes
4102fi
4103if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4104 if test "$ac_cv_c_bigendian" = unknown; then
4105 ac_cv_c_bigendian=no
4106 else
4107 # finding both strings is unlikely to happen, but who knows?
4108 ac_cv_c_bigendian=unknown
4109 fi
4110fi
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115
4116fi
4117
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119else
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126$ac_includes_default
4127int
4128main ()
4129{
4130
4131 /* Are we little or big endian? From Harbison&Steele. */
4132 union
4133 {
4134 long int l;
4135 char c[sizeof (long int)];
4136 } u;
4137 u.l = 1;
4138 return u.c[sizeof (long int) - 1] == 1;
4139
4140 ;
4141 return 0;
4142}
4143_ACEOF
4144rm -f conftest$ac_exeext
4145if { (ac_try="$ac_link"
4146case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_c_bigendian=no
4165else
4166 echo "$as_me: program exited with status $ac_status" >&5
4167echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170( exit $ac_status )
4171ac_cv_c_bigendian=yes
4172fi
4173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174fi
4175
4176
4177fi
4178
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
4181{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4182echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4183case $ac_cv_c_bigendian in
4184 yes)
4185 ENDIAN=big
4186 ;;
4187 no)
4188 ENDIAN=little
4189 ;;
4190 *)
4191 { { echo "$as_me:$LINENO: error: unknown endianness
4192presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4193echo "$as_me: error: unknown endianness
4194presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4195 { (exit 1); exit 1; }; } ;;
4196esac
4197
4198
4199if test "$cross_compiling" = yes; then
4200 LLVM_CROSS_COMPILING=1
4201
4202
4203{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205if test "${ac_cv_build_exeext+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209 ac_cv_build_exeext=.exe
4210else
4211 ac_build_prefix=${build_alias}-
4212
4213 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214set dummy ${ac_build_prefix}gcc; ac_word=$2
4215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004230 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
4235done
4236IFS=$as_save_IFS
4237
4238fi
4239fi
4240BUILD_CC=$ac_cv_prog_BUILD_CC
4241if test -n "$BUILD_CC"; then
4242 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243echo "${ECHO_T}$BUILD_CC" >&6; }
4244else
4245 { echo "$as_me:$LINENO: result: no" >&5
4246echo "${ECHO_T}no" >&6; }
4247fi
4248
4249
4250 if test -z "$BUILD_CC"; then
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252set dummy gcc; ac_word=$2
4253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 if test -n "$BUILD_CC"; then
4259 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004268 ac_cv_prog_BUILD_CC="gcc"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272done
4273done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278BUILD_CC=$ac_cv_prog_BUILD_CC
4279if test -n "$BUILD_CC"; then
4280 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281echo "${ECHO_T}$BUILD_CC" >&6; }
4282else
4283 { echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6; }
4285fi
4286
4287
4288 if test -z "$BUILD_CC"; then
4289 # Extract the first word of "cc", so it can be a program name with args.
4290set dummy cc; ac_word=$2
4291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 if test -n "$BUILD_CC"; then
4297 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4298else
4299 ac_prog_rejected=no
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308 ac_prog_rejected=yes
4309 continue
4310 fi
4311 ac_cv_prog_BUILD_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317IFS=$as_save_IFS
4318
4319if test $ac_prog_rejected = yes; then
4320 # We found a bogon in the path, so make sure we never use it.
4321 set dummy $ac_cv_prog_BUILD_CC
4322 shift
4323 if test $# != 0; then
4324 # We chose a different compiler from the bogus one.
4325 # However, it has the same basename, so the bogon will be chosen
4326 # first if we set BUILD_CC to just the basename; use the full file name.
4327 shift
4328 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4329 fi
4330fi
4331fi
4332fi
4333BUILD_CC=$ac_cv_prog_BUILD_CC
4334if test -n "$BUILD_CC"; then
4335 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336echo "${ECHO_T}$BUILD_CC" >&6; }
4337else
4338 { echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6; }
4340fi
4341
4342
4343 fi
4344 fi
4345 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347 { (exit 1); exit 1; }; }
4348 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4349 rm -f conftest*
4350 echo 'int main () { return 0; }' > conftest.$ac_ext
4351 ac_cv_build_exeext=
4352 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353 (eval $ac_build_link) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; then
4357 for file in conftest.*; do
4358 case $file in
4359 *.c | *.o | *.obj) ;;
4360 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4361 esac
4362 done
4363 else
4364 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366 { (exit 1); exit 1; }; }
4367 fi
4368 rm -f conftest*
4369 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4370fi
4371fi
4372
4373BUILD_EXEEXT=""
4374test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377ac_build_exeext=$BUILD_EXEEXT
4378
4379else
4380 LLVM_CROSS_COMPILING=0
4381
4382fi
4383
Reid Spencer0b1e4662007-04-02 15:41:39 +00004384if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004385 cvsbuild="yes"
4386 optimize="no"
4387 CVSBUILD=CVSBUILD=1
4388
4389else
4390 cvsbuild="no"
4391 optimize="yes"
4392fi
4393
4394
4395# Check whether --enable-optimized was given.
4396if test "${enable_optimized+set}" = set; then
4397 enableval=$enable_optimized;
4398else
4399 enableval=$optimize
4400fi
4401
4402if test ${enableval} = "no" ; then
4403 ENABLE_OPTIMIZED=
4404
4405else
4406 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4407
4408fi
4409
4410# Check whether --enable-assertions was given.
4411if test "${enable_assertions+set}" = set; then
4412 enableval=$enable_assertions;
4413else
4414 enableval="yes"
4415fi
4416
4417if test ${enableval} = "yes" ; then
4418 DISABLE_ASSERTIONS=
4419
4420else
4421 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4422
4423fi
4424
David Greenea696d242007-06-28 19:36:08 +00004425# Check whether --enable-expensive-checks was given.
4426if test "${enable_expensive_checks+set}" = set; then
4427 enableval=$enable_expensive_checks;
4428else
4429 enableval="no"
4430fi
4431
4432if test ${enableval} = "yes" ; then
4433 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4434
4435 EXPENSIVE_CHECKS=yes
4436
4437else
4438 ENABLE_EXPENSIVE_CHECKS=
4439
4440 EXPENSIVE_CHECKS=no
4441
4442fi
4443
Reid Spencer8b2e1412006-11-17 03:32:33 +00004444# Check whether --enable-debug-runtime was given.
4445if test "${enable_debug_runtime+set}" = set; then
4446 enableval=$enable_debug_runtime;
4447else
4448 enableval=no
4449fi
4450
4451if test ${enableval} = "no" ; then
4452 DEBUG_RUNTIME=
4453
4454else
4455 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4456
4457fi
4458
Reid Spencera773bd52006-08-04 18:18:08 +00004459# Check whether --enable-jit was given.
4460if test "${enable_jit+set}" = set; then
4461 enableval=$enable_jit;
4462else
4463 enableval=default
4464fi
4465
4466if test ${enableval} = "no"
4467then
4468 JIT=
4469
4470else
4471 case "$llvm_cv_target_arch" in
4472 x86) TARGET_HAS_JIT=1
4473 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004474 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004475 ;;
4476 PowerPC) TARGET_HAS_JIT=1
4477 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004478 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004479 ;;
4480 Alpha) TARGET_HAS_JIT=1
4481 ;;
4482 IA64) TARGET_HAS_JIT=0
4483 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004484 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004485 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004486 Mips) TARGET_HAS_JIT=0
4487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004488 *) TARGET_HAS_JIT=0
4489 ;;
4490 esac
4491fi
4492
4493# Check whether --enable-doxygen was given.
4494if test "${enable_doxygen+set}" = set; then
4495 enableval=$enable_doxygen;
4496else
4497 enableval=default
4498fi
4499
4500case "$enableval" in
4501 yes) ENABLE_DOXYGEN=1
4502 ;;
4503 no) ENABLE_DOXYGEN=0
4504 ;;
4505 default) ENABLE_DOXYGEN=0
4506 ;;
4507 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4508echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4510esac
4511
4512# Check whether --enable-threads was given.
4513if test "${enable_threads+set}" = set; then
4514 enableval=$enable_threads;
4515else
Reid Spencer65c5d752006-11-05 17:08:18 +00004516 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004517fi
4518
4519case "$enableval" in
4520 yes) ENABLE_THREADS=1
4521 ;;
4522 no) ENABLE_THREADS=0
4523 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004524 default) ENABLE_THREADS=1
4525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004526 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4527echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4528 { (exit 1); exit 1; }; } ;;
4529esac
4530
4531cat >>confdefs.h <<_ACEOF
4532#define ENABLE_THREADS $ENABLE_THREADS
4533_ACEOF
4534
4535
Reid Spencer89b0d992006-12-16 22:07:52 +00004536# Check whether --enable-pic was given.
4537if test "${enable_pic+set}" = set; then
4538 enableval=$enable_pic;
4539else
4540 enableval=default
4541fi
4542
4543case "$enableval" in
4544 yes) ENABLE_PIC=1
4545 ;;
4546 no) ENABLE_PIC=0
4547 ;;
4548 default) ENABLE_PIC=0
4549 ;;
4550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4551echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4552 { (exit 1); exit 1; }; } ;;
4553esac
4554
4555cat >>confdefs.h <<_ACEOF
4556#define ENABLE_PIC $ENABLE_PIC
4557_ACEOF
4558
4559
Reid Spencera773bd52006-08-04 18:18:08 +00004560TARGETS_TO_BUILD=""
4561# Check whether --enable-targets was given.
4562if test "${enable_targets+set}" = set; then
4563 enableval=$enable_targets;
4564else
4565 enableval=all
4566fi
4567
4568case "$enableval" in
Scott Michel96dcd2b2007-12-05 21:24:02 +00004569 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004570 host-only)
4571 case "$llvm_cv_target_arch" in
4572 x86) TARGETS_TO_BUILD="X86" ;;
4573 x86_64) TARGETS_TO_BUILD="X86" ;;
4574 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4575 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4576 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4577 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004578 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004579 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004580 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004581 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4582echo "$as_me: error: Can not set target to build" >&2;}
4583 { (exit 1); exit 1; }; } ;;
4584 esac
4585 ;;
4586 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4587 case "$a_target" in
4588 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4589 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4590 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4591 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4592 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4593 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004594 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004595 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004596 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004597 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4598echo "$as_me: error: Unrecognized target $a_target" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4600 esac
4601 done
4602 ;;
4603esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004604TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004605TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4606
4607
Reid Spencer65c5d752006-11-05 17:08:18 +00004608# Check whether --enable-cbe-printf-a was given.
4609if test "${enable_cbe_printf_a+set}" = set; then
4610 enableval=$enable_cbe_printf_a;
4611else
4612 enableval=default
4613fi
4614
4615case "$enableval" in
4616 yes) ENABLE_CBE_PRINTF_A=1
4617 ;;
4618 no) ENABLE_CBE_PRINTF_A=0
4619 ;;
4620 default) ENABLE_CBE_PRINTF_A=1
4621 ;;
4622 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4623echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4624 { (exit 1); exit 1; }; } ;;
4625esac
4626
4627cat >>confdefs.h <<_ACEOF
4628#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4629_ACEOF
4630
4631
Reid Spencera773bd52006-08-04 18:18:08 +00004632
4633# Check whether --with-llvmgccdir was given.
4634if test "${with_llvmgccdir+set}" = set; then
4635 withval=$with_llvmgccdir;
4636else
4637 withval=default
4638fi
4639
4640case "$withval" in
4641 default) WITH_LLVMGCCDIR=default ;;
4642 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4644echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4645 { (exit 1); exit 1; }; } ;;
4646esac
4647
4648
Devang Patel5d28b882007-12-04 22:54:47 +00004649# Check whether --with-llvmgcc was given.
4650if test "${with_llvmgcc+set}" = set; then
4651 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4652 WITH_LLVMGCCDIR=""
4653fi
4654
4655
4656
4657# Check whether --with-llvmgxx was given.
4658if test "${with_llvmgxx+set}" = set; then
4659 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4660 WITH_LLVMGCCDIR=""
4661fi
4662
4663
4664if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4665 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4666echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4667 { (exit 1); exit 1; }; };
4668fi
4669
4670if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4671 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4672echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4673 { (exit 1); exit 1; }; };
4674fi
4675
4676
Reid Spencera773bd52006-08-04 18:18:08 +00004677# Check whether --with-extra-options was given.
4678if test "${with_extra_options+set}" = set; then
4679 withval=$with_extra_options;
4680else
4681 withval=default
4682fi
4683
4684case "$withval" in
4685 default) EXTRA_OPTIONS= ;;
4686 *) EXTRA_OPTIONS=$withval ;;
4687esac
4688EXTRA_OPTIONS=$EXTRA_OPTIONS
4689
4690
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004691# Check whether --enable-bindings was given.
4692if test "${enable_bindings+set}" = set; then
4693 enableval=$enable_bindings;
4694else
4695 enableval=default
4696fi
4697
4698BINDINGS_TO_BUILD=""
4699case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004700 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004701 all ) BINDINGS_TO_BUILD="ocaml" ;;
4702 none | no) BINDINGS_TO_BUILD="" ;;
4703 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4704 case "$a_binding" in
4705 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4706 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4707echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4708 { (exit 1); exit 1; }; } ;;
4709 esac
4710 done
4711 ;;
4712esac
4713
Reid Spencera773bd52006-08-04 18:18:08 +00004714
Gordon Henriksenf0915682007-10-02 16:42:22 +00004715# Check whether --with-ocaml-libdir was given.
4716if test "${with_ocaml_libdir+set}" = set; then
4717 withval=$with_ocaml_libdir;
4718else
4719 withval=auto
4720fi
4721
4722case "$withval" in
4723 auto) with_ocaml_libdir="$withval" ;;
4724 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4725 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4726echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4727 { (exit 1); exit 1; }; } ;;
4728esac
4729
4730
Reid Spencera773bd52006-08-04 18:18:08 +00004731ac_ext=c
4732ac_cpp='$CPP $CPPFLAGS'
4733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4737echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4738# On Suns, sometimes $CPP names a directory.
4739if test -n "$CPP" && test -d "$CPP"; then
4740 CPP=
4741fi
4742if test -z "$CPP"; then
4743 if test "${ac_cv_prog_CPP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 # Double quotes because CPP needs to be expanded
4747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4748 do
4749 ac_preproc_ok=false
4750for ac_c_preproc_warn_flag in '' yes
4751do
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764#ifdef __STDC__
4765# include <limits.h>
4766#else
4767# include <assert.h>
4768#endif
4769 Syntax error
4770_ACEOF
4771if { (ac_try="$ac_cpp conftest.$ac_ext"
4772case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4786 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004787 :
4788else
4789 echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 # Broken: fails on valid input.
4793continue
4794fi
4795
4796rm -f conftest.err conftest.$ac_ext
4797
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat >conftest.$ac_ext <<_ACEOF
4801/* confdefs.h. */
4802_ACEOF
4803cat confdefs.h >>conftest.$ac_ext
4804cat >>conftest.$ac_ext <<_ACEOF
4805/* end confdefs.h. */
4806#include <ac_nonexistent.h>
4807_ACEOF
4808if { (ac_try="$ac_cpp conftest.$ac_ext"
4809case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812esac
4813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004820 (exit $ac_status); } >/dev/null && {
4821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4823 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004824 # Broken: success on invalid input.
4825continue
4826else
4827 echo "$as_me: failed program was:" >&5
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 # Passes both tests.
4831ac_preproc_ok=:
4832break
4833fi
4834
4835rm -f conftest.err conftest.$ac_ext
4836
4837done
4838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839rm -f conftest.err conftest.$ac_ext
4840if $ac_preproc_ok; then
4841 break
4842fi
4843
4844 done
4845 ac_cv_prog_CPP=$CPP
4846
4847fi
4848 CPP=$ac_cv_prog_CPP
4849else
4850 ac_cv_prog_CPP=$CPP
4851fi
4852{ echo "$as_me:$LINENO: result: $CPP" >&5
4853echo "${ECHO_T}$CPP" >&6; }
4854ac_preproc_ok=false
4855for ac_c_preproc_warn_flag in '' yes
4856do
4857 # Use a header file that comes with gcc, so configuring glibc
4858 # with a fresh cross-compiler works.
4859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860 # <limits.h> exists even on freestanding compilers.
4861 # On the NeXT, cc -E runs the code through the compiler's parser,
4862 # not just through cpp. "Syntax error" is here to catch this case.
4863 cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h. */
4869#ifdef __STDC__
4870# include <limits.h>
4871#else
4872# include <assert.h>
4873#endif
4874 Syntax error
4875_ACEOF
4876if { (ac_try="$ac_cpp conftest.$ac_ext"
4877case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880esac
4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004892 :
4893else
4894 echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 # Broken: fails on valid input.
4898continue
4899fi
4900
4901rm -f conftest.err conftest.$ac_ext
4902
4903 # OK, works on sane cases. Now check whether nonexistent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <ac_nonexistent.h>
4912_ACEOF
4913if { (ac_try="$ac_cpp conftest.$ac_ext"
4914case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917esac
4918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004925 (exit $ac_status); } >/dev/null && {
4926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4927 test ! -s conftest.err
4928 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004929 # Broken: success on invalid input.
4930continue
4931else
4932 echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 # Passes both tests.
4936ac_preproc_ok=:
4937break
4938fi
4939
4940rm -f conftest.err conftest.$ac_ext
4941
4942done
4943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944rm -f conftest.err conftest.$ac_ext
4945if $ac_preproc_ok; then
4946 :
4947else
4948 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4949See \`config.log' for more details." >&5
4950echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4951See \`config.log' for more details." >&2;}
4952 { (exit 1); exit 1; }; }
4953fi
4954
4955ac_ext=c
4956ac_cpp='$CPP $CPPFLAGS'
4957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966if test -n "$ac_tool_prefix"; then
4967 for ac_prog in gcc
4968 do
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973if test "${ac_cv_prog_CC+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 if test -n "$CC"; then
4977 ac_cv_prog_CC="$CC" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996CC=$ac_cv_prog_CC
4997if test -n "$CC"; then
4998 { echo "$as_me:$LINENO: result: $CC" >&5
4999echo "${ECHO_T}$CC" >&6; }
5000else
5001 { echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6; }
5003fi
5004
5005
5006 test -n "$CC" && break
5007 done
5008fi
5009if test -z "$CC"; then
5010 ac_ct_CC=$CC
5011 for ac_prog in gcc
5012do
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
5015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 if test -n "$ac_ct_CC"; then
5021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005030 ac_cv_prog_ac_ct_CC="$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041if test -n "$ac_ct_CC"; then
5042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043echo "${ECHO_T}$ac_ct_CC" >&6; }
5044else
5045 { echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6; }
5047fi
5048
5049
5050 test -n "$ac_ct_CC" && break
5051done
5052
5053 if test "x$ac_ct_CC" = x; then
5054 CC=""
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057yes:)
5058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5059whose name does not start with the host triplet. If you think this
5060configuration is useful to you, please write to autoconf@gnu.org." >&5
5061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5062whose name does not start with the host triplet. If you think this
5063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5064ac_tool_warned=yes ;;
5065esac
5066 CC=$ac_ct_CC
5067 fi
5068fi
5069
5070
5071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5072See \`config.log' for more details." >&5
5073echo "$as_me: error: no acceptable C compiler found in \$PATH
5074See \`config.log' for more details." >&2;}
5075 { (exit 1); exit 1; }; }
5076
5077# Provide some information about the compiler.
5078echo "$as_me:$LINENO: checking for C compiler version" >&5
5079ac_compiler=`set X $ac_compile; echo $2`
5080{ (ac_try="$ac_compiler --version >&5"
5081case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084esac
5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compiler --version >&5") 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }
5090{ (ac_try="$ac_compiler -v >&5"
5091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compiler -v >&5") 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }
5100{ (ac_try="$ac_compiler -V >&5"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compiler -V >&5") 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }
5110
5111{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5112echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5113if test "${ac_cv_c_compiler_gnu+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122
5123int
5124main ()
5125{
5126#ifndef __GNUC__
5127 choke me
5128#endif
5129
5130 ;
5131 return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext
5135if { (ac_try="$ac_compile"
5136case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139esac
5140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_compile") 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005151 ac_compiler_gnu=yes
5152else
5153 echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ac_compiler_gnu=no
5157fi
5158
5159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160ac_cv_c_compiler_gnu=$ac_compiler_gnu
5161
5162fi
5163{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5164echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5165GCC=`test $ac_compiler_gnu = yes && echo yes`
5166ac_test_CFLAGS=${CFLAGS+set}
5167ac_save_CFLAGS=$CFLAGS
5168{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5169echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5170if test "${ac_cv_prog_cc_g+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 ac_save_c_werror_flag=$ac_c_werror_flag
5174 ac_c_werror_flag=yes
5175 ac_cv_prog_cc_g=no
5176 CFLAGS="-g"
5177 cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
5183
5184int
5185main ()
5186{
5187
5188 ;
5189 return 0;
5190}
5191_ACEOF
5192rm -f conftest.$ac_objext
5193if { (ac_try="$ac_compile"
5194case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197esac
5198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005209 ac_cv_prog_cc_g=yes
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 CFLAGS=""
5215 cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h. */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h. */
5221
5222int
5223main ()
5224{
5225
5226 ;
5227 return 0;
5228}
5229_ACEOF
5230rm -f conftest.$ac_objext
5231if { (ac_try="$ac_compile"
5232case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235esac
5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compile") 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005247 :
5248else
5249 echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 ac_c_werror_flag=$ac_save_c_werror_flag
5253 CFLAGS="-g"
5254 cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h. */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h. */
5260
5261int
5262main ()
5263{
5264
5265 ;
5266 return 0;
5267}
5268_ACEOF
5269rm -f conftest.$ac_objext
5270if { (ac_try="$ac_compile"
5271case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274esac
5275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_compile") 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005282 (exit $ac_status); } && {
5283 test -z "$ac_c_werror_flag" ||
5284 test ! -s conftest.err
5285 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005286 ac_cv_prog_cc_g=yes
5287else
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291
5292fi
5293
5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295fi
5296
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_c_werror_flag=$ac_save_c_werror_flag
5302fi
5303{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5304echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5305if test "$ac_test_CFLAGS" = set; then
5306 CFLAGS=$ac_save_CFLAGS
5307elif test $ac_cv_prog_cc_g = yes; then
5308 if test "$GCC" = yes; then
5309 CFLAGS="-g -O2"
5310 else
5311 CFLAGS="-g"
5312 fi
5313else
5314 if test "$GCC" = yes; then
5315 CFLAGS="-O2"
5316 else
5317 CFLAGS=
5318 fi
5319fi
5320{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5321echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5322if test "${ac_cv_prog_cc_c89+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 ac_cv_prog_cc_c89=no
5326ac_save_CC=$CC
5327cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333#include <stdarg.h>
5334#include <stdio.h>
5335#include <sys/types.h>
5336#include <sys/stat.h>
5337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338struct buf { int x; };
5339FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340static char *e (p, i)
5341 char **p;
5342 int i;
5343{
5344 return p[i];
5345}
5346static char *f (char * (*g) (char **, int), char **p, ...)
5347{
5348 char *s;
5349 va_list v;
5350 va_start (v,p);
5351 s = g (p, va_arg (v,int));
5352 va_end (v);
5353 return s;
5354}
5355
5356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5367#define FOO(x) 'x'
5368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370int test (int i, double x);
5371struct s1 {int (*f) (int a);};
5372struct s2 {int (*f) (double a);};
5373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374int argc;
5375char **argv;
5376int
5377main ()
5378{
5379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386do
5387 CC="$ac_save_CC $ac_arg"
5388 rm -f conftest.$ac_objext
5389if { (ac_try="$ac_compile"
5390case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005405 ac_cv_prog_cc_c89=$ac_arg
5406else
5407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410
5411fi
5412
5413rm -f core conftest.err conftest.$ac_objext
5414 test "x$ac_cv_prog_cc_c89" != "xno" && break
5415done
5416rm -f conftest.$ac_ext
5417CC=$ac_save_CC
5418
5419fi
5420# AC_CACHE_VAL
5421case "x$ac_cv_prog_cc_c89" in
5422 x)
5423 { echo "$as_me:$LINENO: result: none needed" >&5
5424echo "${ECHO_T}none needed" >&6; } ;;
5425 xno)
5426 { echo "$as_me:$LINENO: result: unsupported" >&5
5427echo "${ECHO_T}unsupported" >&6; } ;;
5428 *)
5429 CC="$CC $ac_cv_prog_cc_c89"
5430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5431echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5432esac
5433
5434
5435ac_ext=c
5436ac_cpp='$CPP $CPPFLAGS'
5437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441ac_ext=cpp
5442ac_cpp='$CXXCPP $CPPFLAGS'
5443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446if test -z "$CXX"; then
5447 if test -n "$CCC"; then
5448 CXX=$CCC
5449 else
5450 if test -n "$ac_tool_prefix"; then
5451 for ac_prog in g++
5452 do
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5457if test "${ac_cv_prog_CXX+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459else
5460 if test -n "$CXX"; then
5461 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480CXX=$ac_cv_prog_CXX
5481if test -n "$CXX"; then
5482 { echo "$as_me:$LINENO: result: $CXX" >&5
5483echo "${ECHO_T}$CXX" >&6; }
5484else
5485 { echo "$as_me:$LINENO: result: no" >&5
5486echo "${ECHO_T}no" >&6; }
5487fi
5488
5489
5490 test -n "$CXX" && break
5491 done
5492fi
5493if test -z "$CXX"; then
5494 ac_ct_CXX=$CXX
5495 for ac_prog in g++
5496do
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498set dummy $ac_prog; ac_word=$2
5499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 if test -n "$ac_ct_CXX"; then
5505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005514 ac_cv_prog_ac_ct_CXX="$ac_prog"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518done
5519done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5525if test -n "$ac_ct_CXX"; then
5526 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5527echo "${ECHO_T}$ac_ct_CXX" >&6; }
5528else
5529 { echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6; }
5531fi
5532
5533
5534 test -n "$ac_ct_CXX" && break
5535done
5536
5537 if test "x$ac_ct_CXX" = x; then
5538 CXX="g++"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541yes:)
5542{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5543whose name does not start with the host triplet. If you think this
5544configuration is useful to you, please write to autoconf@gnu.org." >&5
5545echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5546whose name does not start with the host triplet. If you think this
5547configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5548ac_tool_warned=yes ;;
5549esac
5550 CXX=$ac_ct_CXX
5551 fi
5552fi
5553
5554 fi
5555fi
5556# Provide some information about the compiler.
5557echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5558ac_compiler=`set X $ac_compile; echo $2`
5559{ (ac_try="$ac_compiler --version >&5"
5560case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compiler --version >&5") 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569{ (ac_try="$ac_compiler -v >&5"
5570case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compiler -v >&5") 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }
5579{ (ac_try="$ac_compiler -V >&5"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compiler -V >&5") 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }
5589
5590{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5591echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5592if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601
5602int
5603main ()
5604{
5605#ifndef __GNUC__
5606 choke me
5607#endif
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (ac_try="$ac_compile"
5615case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005626 (exit $ac_status); } && {
5627 test -z "$ac_cxx_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005630 ac_compiler_gnu=yes
5631else
5632 echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 ac_compiler_gnu=no
5636fi
5637
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5640
5641fi
5642{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5643echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5644GXX=`test $ac_compiler_gnu = yes && echo yes`
5645ac_test_CXXFLAGS=${CXXFLAGS+set}
5646ac_save_CXXFLAGS=$CXXFLAGS
5647{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5648echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5649if test "${ac_cv_prog_cxx_g+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5653 ac_cxx_werror_flag=yes
5654 ac_cv_prog_cxx_g=no
5655 CXXFLAGS="-g"
5656 cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h. */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h. */
5662
5663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (ac_try="$ac_compile"
5673case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005684 (exit $ac_status); } && {
5685 test -z "$ac_cxx_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005688 ac_cv_prog_cxx_g=yes
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 CXXFLAGS=""
5694 cat >conftest.$ac_ext <<_ACEOF
5695/* confdefs.h. */
5696_ACEOF
5697cat confdefs.h >>conftest.$ac_ext
5698cat >>conftest.$ac_ext <<_ACEOF
5699/* end confdefs.h. */
5700
5701int
5702main ()
5703{
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (ac_try="$ac_compile"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005722 (exit $ac_status); } && {
5723 test -z "$ac_cxx_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005726 :
5727else
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732 CXXFLAGS="-g"
5733 cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
5739
5740int
5741main ()
5742{
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005761 (exit $ac_status); } && {
5762 test -z "$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005765 ac_cv_prog_cxx_g=yes
5766else
5767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771fi
5772
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5781fi
5782{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5783echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5784if test "$ac_test_CXXFLAGS" = set; then
5785 CXXFLAGS=$ac_save_CXXFLAGS
5786elif test $ac_cv_prog_cxx_g = yes; then
5787 if test "$GXX" = yes; then
5788 CXXFLAGS="-g -O2"
5789 else
5790 CXXFLAGS="-g"
5791 fi
5792else
5793 if test "$GXX" = yes; then
5794 CXXFLAGS="-O2"
5795 else
5796 CXXFLAGS=
5797 fi
5798fi
5799ac_ext=c
5800ac_cpp='$CPP $CPPFLAGS'
5801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804
5805{ echo "$as_me:$LINENO: checking " >&5
5806echo $ECHO_N "checking ... $ECHO_C" >&6; }
5807if test "${ac_cv_has_flex+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 for ac_prog in flex lex
5811do
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813set dummy $ac_prog; ac_word=$2
5814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816if test "${ac_cv_prog_LEX+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819 if test -n "$LEX"; then
5820 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005829 ac_cv_prog_LEX="$ac_prog"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833done
5834done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839LEX=$ac_cv_prog_LEX
5840if test -n "$LEX"; then
5841 { echo "$as_me:$LINENO: result: $LEX" >&5
5842echo "${ECHO_T}$LEX" >&6; }
5843else
5844 { echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6; }
5846fi
5847
5848
5849 test -n "$LEX" && break
5850done
5851test -n "$LEX" || LEX=":"
5852
Reid Spencera773bd52006-08-04 18:18:08 +00005853if test "x$LEX" != "x:"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +00005854 cat >conftest.l <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005855%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005856a { ECHO; }
5857b { REJECT; }
5858c { yymore (); }
5859d { yyless (1); }
5860e { yyless (input () != 0); }
5861f { unput (yytext[0]); }
5862. { BEGIN INITIAL; }
Reid Spencera773bd52006-08-04 18:18:08 +00005863%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005864#ifdef YYTEXT_POINTER
5865extern char *yytext;
5866#endif
5867int
5868main (void)
5869{
5870 return ! yylex () + ! yywrap ();
5871}
Reid Spencera773bd52006-08-04 18:18:08 +00005872_ACEOF
5873{ (ac_try="$LEX conftest.l"
5874case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$LEX conftest.l") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }
Scott Michel96dcd2b2007-12-05 21:24:02 +00005883{ echo "$as_me:$LINENO: checking lex output file root" >&5
5884echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5885if test "${ac_cv_prog_lex_root+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888
Reid Spencera773bd52006-08-04 18:18:08 +00005889if test -f lex.yy.c; then
5890 ac_cv_prog_lex_root=lex.yy
5891elif test -f lexyy.c; then
5892 ac_cv_prog_lex_root=lexyy
5893else
5894 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5895echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5896 { (exit 1); exit 1; }; }
5897fi
5898fi
5899{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5900echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005901LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5902
Scott Michel96dcd2b2007-12-05 21:24:02 +00005903if test -z "${LEXLIB+set}"; then
5904 { echo "$as_me:$LINENO: checking lex library" >&5
5905echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5906if test "${ac_cv_lib_lex+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
Scott Michel96dcd2b2007-12-05 21:24:02 +00005909
5910 ac_save_LIBS=$LIBS
5911 ac_cv_lib_lex='none needed'
5912 for ac_lib in '' -lfl -ll; do
5913 LIBS="$ac_lib $ac_save_LIBS"
5914 cat >conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005915`cat $LEX_OUTPUT_ROOT.c`
5916_ACEOF
5917rm -f conftest.$ac_objext conftest$ac_exeext
5918if { (ac_try="$ac_link"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_link") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest$ac_exeext &&
5934 $as_test_x conftest$ac_exeext; then
5935 ac_cv_lib_lex=$ac_lib
5936else
5937 echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940
5941fi
5942
5943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5944 conftest$ac_exeext conftest.$ac_ext
5945 test "$ac_cv_lib_lex" != 'none needed' && break
5946 done
5947 LIBS=$ac_save_LIBS
5948
5949fi
5950{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5951echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5952 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5953fi
5954
5955
5956{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5957echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5958if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961 # POSIX says lex can declare yytext either as a pointer or an array; the
5962# default is implementation-dependent. Figure out which it is, since
5963# not all implementations provide the %pointer and %array declarations.
5964ac_cv_prog_lex_yytext_pointer=no
5965ac_save_LIBS=$LIBS
5966LIBS="$LEXLIB $ac_save_LIBS"
5967cat >conftest.$ac_ext <<_ACEOF
5968#define YYTEXT_POINTER 1
5969`cat $LEX_OUTPUT_ROOT.c`
5970_ACEOF
5971rm -f conftest.$ac_objext conftest$ac_exeext
5972if { (ac_try="$ac_link"
5973case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00005974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005978 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00005979 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00005980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest$ac_exeext &&
5988 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005989 ac_cv_prog_lex_yytext_pointer=yes
5990else
5991 echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
5994
5995fi
5996
Scott Michel96dcd2b2007-12-05 21:24:02 +00005997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00005998 conftest$ac_exeext conftest.$ac_ext
5999LIBS=$ac_save_LIBS
Reid Spencera773bd52006-08-04 18:18:08 +00006000
6001fi
6002{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6003echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6004if test $ac_cv_prog_lex_yytext_pointer = yes; then
6005
6006cat >>confdefs.h <<\_ACEOF
6007#define YYTEXT_POINTER 1
6008_ACEOF
6009
6010fi
Scott Michel96dcd2b2007-12-05 21:24:02 +00006011rm -f conftest.l $LEX_OUTPUT_ROOT.c
Reid Spencera773bd52006-08-04 18:18:08 +00006012
6013fi
6014
6015fi
6016{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6017echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6018if test "$LEX" != "flex"; then
6019 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6020echo "$as_me: error: flex not found but required" >&2;}
6021 { (exit 1); exit 1; }; }
6022else
6023 FLEX=flex
6024
6025fi
6026
6027{ echo "$as_me:$LINENO: checking " >&5
6028echo $ECHO_N "checking ... $ECHO_C" >&6; }
6029if test "${llvm_cv_has_bison+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032 for ac_prog in 'bison -y' byacc
6033do
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035set dummy $ac_prog; ac_word=$2
6036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6038if test "${ac_cv_prog_YACC+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 if test -n "$YACC"; then
6042 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006051 ac_cv_prog_YACC="$ac_prog"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061YACC=$ac_cv_prog_YACC
6062if test -n "$YACC"; then
6063 { echo "$as_me:$LINENO: result: $YACC" >&5
6064echo "${ECHO_T}$YACC" >&6; }
6065else
6066 { echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6; }
6068fi
6069
6070
6071 test -n "$YACC" && break
6072done
6073test -n "$YACC" || YACC="yacc"
6074
6075fi
6076{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6077echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6078if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006079
6080 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6081echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006082else
6083 BISON=bison
6084
6085fi
6086
6087{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6088echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6089if test "${lt_cv_path_NM+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 if test -n "$NM"; then
6093 # Let the user override the test.
6094 lt_cv_path_NM="$NM"
6095else
6096 lt_nm_to_check="${ac_tool_prefix}nm"
6097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6098 lt_nm_to_check="$lt_nm_to_check nm"
6099 fi
6100 for lt_tmp_nm in $lt_nm_to_check; do
6101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6103 IFS="$lt_save_ifs"
6104 test -z "$ac_dir" && ac_dir=.
6105 tmp_nm="$ac_dir/$lt_tmp_nm"
6106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6107 # Check to see if the nm accepts a BSD-compat flag.
6108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6109 # nm: unknown option "B" ignored
6110 # Tru64's nm complains that /dev/null is an invalid object file
6111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6112 */dev/null* | *'Invalid file or object type'*)
6113 lt_cv_path_NM="$tmp_nm -B"
6114 break
6115 ;;
6116 *)
6117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6118 */dev/null*)
6119 lt_cv_path_NM="$tmp_nm -p"
6120 break
6121 ;;
6122 *)
6123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6124 continue # so that we can try to find one that supports BSD flags
6125 ;;
6126 esac
6127 ;;
6128 esac
6129 fi
6130 done
6131 IFS="$lt_save_ifs"
6132 done
6133 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6134fi
6135fi
6136{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6137echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6138NM="$lt_cv_path_NM"
6139
6140
6141
6142{ echo "$as_me:$LINENO: checking for GNU make" >&5
6143echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6144if test "${llvm_cv_gnu_make_command+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 llvm_cv_gnu_make_command=''
6148 for a in "$MAKE" make gmake gnumake ; do
6149 if test -z "$a" ; then continue ; fi ;
6150 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6151 then
6152 llvm_cv_gnu_make_command=$a ;
6153 break;
6154 fi
6155 done
6156fi
6157{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6158echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6159 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6160 ifGNUmake='' ;
6161 else
6162 ifGNUmake='#' ;
6163 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6164echo "${ECHO_T}\"Not found\"" >&6; };
6165 fi
6166
6167
6168{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6169echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6170LN_S=$as_ln_s
6171if test "$LN_S" = "ln -s"; then
6172 { echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6; }
6174else
6175 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6176echo "${ECHO_T}no, using $LN_S" >&6; }
6177fi
6178
6179# Extract the first word of "cmp", so it can be a program name with args.
6180set dummy cmp; ac_word=$2
6181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183if test "${ac_cv_path_CMP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 case $CMP in
6187 [\\/]* | ?:[\\/]*)
6188 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6189 ;;
6190 *)
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006198 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202done
6203done
6204IFS=$as_save_IFS
6205
6206 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6207 ;;
6208esac
6209fi
6210CMP=$ac_cv_path_CMP
6211if test -n "$CMP"; then
6212 { echo "$as_me:$LINENO: result: $CMP" >&5
6213echo "${ECHO_T}$CMP" >&6; }
6214else
6215 { echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6; }
6217fi
6218
6219
6220# Extract the first word of "cp", so it can be a program name with args.
6221set dummy cp; ac_word=$2
6222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224if test "${ac_cv_path_CP+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 case $CP in
6228 [\\/]* | ?:[\\/]*)
6229 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6230 ;;
6231 *)
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006239 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244done
6245IFS=$as_save_IFS
6246
6247 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6248 ;;
6249esac
6250fi
6251CP=$ac_cv_path_CP
6252if test -n "$CP"; then
6253 { echo "$as_me:$LINENO: result: $CP" >&5
6254echo "${ECHO_T}$CP" >&6; }
6255else
6256 { echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6; }
6258fi
6259
6260
6261# Extract the first word of "date", so it can be a program name with args.
6262set dummy date; ac_word=$2
6263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265if test "${ac_cv_path_DATE+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 case $DATE in
6269 [\\/]* | ?:[\\/]*)
6270 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6271 ;;
6272 *)
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006280 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284done
6285done
6286IFS=$as_save_IFS
6287
6288 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6289 ;;
6290esac
6291fi
6292DATE=$ac_cv_path_DATE
6293if test -n "$DATE"; then
6294 { echo "$as_me:$LINENO: result: $DATE" >&5
6295echo "${ECHO_T}$DATE" >&6; }
6296else
6297 { echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6; }
6299fi
6300
6301
6302# Extract the first word of "find", so it can be a program name with args.
6303set dummy find; ac_word=$2
6304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306if test "${ac_cv_path_FIND+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309 case $FIND in
6310 [\\/]* | ?:[\\/]*)
6311 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6312 ;;
6313 *)
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006321 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325done
6326done
6327IFS=$as_save_IFS
6328
6329 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6330 ;;
6331esac
6332fi
6333FIND=$ac_cv_path_FIND
6334if test -n "$FIND"; then
6335 { echo "$as_me:$LINENO: result: $FIND" >&5
6336echo "${ECHO_T}$FIND" >&6; }
6337else
6338 { echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6; }
6340fi
6341
6342
6343# Extract the first word of "grep", so it can be a program name with args.
6344set dummy grep; ac_word=$2
6345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347if test "${ac_cv_path_GREP+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 case $GREP in
6351 [\\/]* | ?:[\\/]*)
6352 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6353 ;;
6354 *)
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006362 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367done
6368IFS=$as_save_IFS
6369
6370 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6371 ;;
6372esac
6373fi
6374GREP=$ac_cv_path_GREP
6375if test -n "$GREP"; then
6376 { echo "$as_me:$LINENO: result: $GREP" >&5
6377echo "${ECHO_T}$GREP" >&6; }
6378else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6; }
6381fi
6382
6383
6384# Extract the first word of "mkdir", so it can be a program name with args.
6385set dummy mkdir; ac_word=$2
6386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388if test "${ac_cv_path_MKDIR+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 case $MKDIR in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6394 ;;
6395 *)
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006403 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409IFS=$as_save_IFS
6410
6411 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6412 ;;
6413esac
6414fi
6415MKDIR=$ac_cv_path_MKDIR
6416if test -n "$MKDIR"; then
6417 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6418echo "${ECHO_T}$MKDIR" >&6; }
6419else
6420 { echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6; }
6422fi
6423
6424
6425# Extract the first word of "mv", so it can be a program name with args.
6426set dummy mv; ac_word=$2
6427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429if test "${ac_cv_path_MV+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 case $MV in
6433 [\\/]* | ?:[\\/]*)
6434 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6435 ;;
6436 *)
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006444 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449done
6450IFS=$as_save_IFS
6451
6452 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6453 ;;
6454esac
6455fi
6456MV=$ac_cv_path_MV
6457if test -n "$MV"; then
6458 { echo "$as_me:$LINENO: result: $MV" >&5
6459echo "${ECHO_T}$MV" >&6; }
6460else
6461 { echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6; }
6463fi
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471if test "${ac_cv_prog_RANLIB+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494RANLIB=$ac_cv_prog_RANLIB
6495if test -n "$RANLIB"; then
6496 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6497echo "${ECHO_T}$RANLIB" >&6; }
6498else
6499 { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508set dummy ranlib; ac_word=$2
6509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535if test -n "$ac_ct_RANLIB"; then
6536 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6537echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6538else
6539 { echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6; }
6541fi
6542
6543 if test "x$ac_ct_RANLIB" = x; then
6544 RANLIB=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6549whose name does not start with the host triplet. If you think this
6550configuration is useful to you, please write to autoconf@gnu.org." >&5
6551echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6552whose name does not start with the host triplet. If you think this
6553configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556 RANLIB=$ac_ct_RANLIB
6557 fi
6558else
6559 RANLIB="$ac_cv_prog_RANLIB"
6560fi
6561
6562# Extract the first word of "rm", so it can be a program name with args.
6563set dummy rm; ac_word=$2
6564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566if test "${ac_cv_path_RM+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 case $RM in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006581 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586done
6587IFS=$as_save_IFS
6588
6589 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6590 ;;
6591esac
6592fi
6593RM=$ac_cv_path_RM
6594if test -n "$RM"; then
6595 { echo "$as_me:$LINENO: result: $RM" >&5
6596echo "${ECHO_T}$RM" >&6; }
6597else
6598 { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
6600fi
6601
6602
6603# Extract the first word of "sed", so it can be a program name with args.
6604set dummy sed; ac_word=$2
6605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607if test "${ac_cv_path_SED+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 case $SED in
6611 [\\/]* | ?:[\\/]*)
6612 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6613 ;;
6614 *)
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006622 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627done
6628IFS=$as_save_IFS
6629
6630 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6631 ;;
6632esac
6633fi
6634SED=$ac_cv_path_SED
6635if test -n "$SED"; then
6636 { echo "$as_me:$LINENO: result: $SED" >&5
6637echo "${ECHO_T}$SED" >&6; }
6638else
6639 { echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6; }
6641fi
6642
6643
6644# Extract the first word of "tar", so it can be a program name with args.
6645set dummy tar; ac_word=$2
6646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648if test "${ac_cv_path_TAR+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 case $TAR in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006663 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667done
6668done
6669IFS=$as_save_IFS
6670
6671 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6672 ;;
6673esac
6674fi
6675TAR=$ac_cv_path_TAR
6676if test -n "$TAR"; then
6677 { echo "$as_me:$LINENO: result: $TAR" >&5
6678echo "${ECHO_T}$TAR" >&6; }
6679else
6680 { echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6; }
6682fi
6683
6684
6685# Extract the first word of "pwd", so it can be a program name with args.
6686set dummy pwd; ac_word=$2
6687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_BINPWD+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692 case $BINPWD in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006704 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709done
6710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6713 ;;
6714esac
6715fi
6716BINPWD=$ac_cv_path_BINPWD
6717if test -n "$BINPWD"; then
6718 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6719echo "${ECHO_T}$BINPWD" >&6; }
6720else
6721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
6723fi
6724
6725
6726
6727# Extract the first word of "Graphviz", so it can be a program name with args.
6728set dummy Graphviz; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 case $GRAPHVIZ in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006746 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6755 ;;
6756esac
6757fi
6758GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6759if test -n "$GRAPHVIZ"; then
6760 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6761echo "${ECHO_T}$GRAPHVIZ" >&6; }
6762else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768if test "$GRAPHVIZ" != "echo Graphviz" ; then
6769
6770cat >>confdefs.h <<\_ACEOF
6771#define HAVE_GRAPHVIZ 1
6772_ACEOF
6773
Jeff Cohen28783c32007-01-12 18:22:38 +00006774 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006775 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776 fi
6777
6778cat >>confdefs.h <<_ACEOF
6779#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6780_ACEOF
6781
6782fi
6783# Extract the first word of "dot", so it can be a program name with args.
6784set dummy dot; ac_word=$2
6785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_DOT+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790 case $DOT in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006802 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807done
6808IFS=$as_save_IFS
6809
6810 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6811 ;;
6812esac
6813fi
6814DOT=$ac_cv_path_DOT
6815if test -n "$DOT"; then
6816 { echo "$as_me:$LINENO: result: $DOT" >&5
6817echo "${ECHO_T}$DOT" >&6; }
6818else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
6821fi
6822
6823
6824if test "$DOT" != "echo dot" ; then
6825
6826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_DOT 1
6828_ACEOF
6829
Jeff Cohen28783c32007-01-12 18:22:38 +00006830 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006831 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832 fi
6833
6834cat >>confdefs.h <<_ACEOF
6835#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6836_ACEOF
6837
6838fi
6839for ac_prog in gv gsview32
6840do
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842set dummy $ac_prog; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_GV+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 case $GV in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868 ;;
6869esac
6870fi
6871GV=$ac_cv_path_GV
6872if test -n "$GV"; then
6873 { echo "$as_me:$LINENO: result: $GV" >&5
6874echo "${ECHO_T}$GV" >&6; }
6875else
6876 { echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6; }
6878fi
6879
6880
6881 test -n "$GV" && break
6882done
6883test -n "$GV" || GV="echo gv"
6884
6885if test "$GV" != "echo gv" ; then
6886
6887cat >>confdefs.h <<\_ACEOF
6888#define HAVE_GV 1
6889_ACEOF
6890
Jeff Cohen28783c32007-01-12 18:22:38 +00006891 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893 fi
6894
6895cat >>confdefs.h <<_ACEOF
6896#define LLVM_PATH_GV "$GV${EXEEXT}"
6897_ACEOF
6898
6899fi
6900# Extract the first word of "dotty", so it can be a program name with args.
6901set dummy dotty; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_DOTTY+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 case $DOTTY in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928 ;;
6929esac
6930fi
6931DOTTY=$ac_cv_path_DOTTY
6932if test -n "$DOTTY"; then
6933 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934echo "${ECHO_T}$DOTTY" >&6; }
6935else
6936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940
6941if test "$DOTTY" != "echo dotty" ; then
6942
6943cat >>confdefs.h <<\_ACEOF
6944#define HAVE_DOTTY 1
6945_ACEOF
6946
Jeff Cohen28783c32007-01-12 18:22:38 +00006947 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949 fi
6950
6951cat >>confdefs.h <<_ACEOF
6952#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953_ACEOF
6954
6955fi
6956
6957
6958# Extract the first word of "perl", so it can be a program name with args.
6959set dummy perl; ac_word=$2
6960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962if test "${ac_cv_path_PERL+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 case $PERL in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6968 ;;
6969 *)
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6986 ;;
6987esac
6988fi
6989PERL=$ac_cv_path_PERL
6990if test -n "$PERL"; then
6991 { echo "$as_me:$LINENO: result: $PERL" >&5
6992echo "${ECHO_T}$PERL" >&6; }
6993else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6; }
6996fi
6997
6998
6999if test "$PERL" != "none"; then
7000 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7001echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7002 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7003 { echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6; }
7005 else
7006 PERL=none
7007 { echo "$as_me:$LINENO: result: not found" >&5
7008echo "${ECHO_T}not found" >&6; }
7009 fi
7010fi
7011
7012
7013if test x"$PERL" = xnone; then
7014 HAVE_PERL=0
7015
Reid Spencer59807fa2007-05-17 18:11:03 +00007016 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7017echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7018 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
7020 HAVE_PERL=1
7021
7022fi
7023
7024# Find a good install program. We prefer a C program (faster),
7025# so one script is as good as another. But avoid the broken or
7026# incompatible versions:
7027# SysV /etc/install, /usr/sbin/install
7028# SunOS /usr/etc/install
7029# IRIX /sbin/install
7030# AIX /bin/install
7031# AmigaOS /C/install, which installs bootblocks on floppy discs
7032# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7033# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7034# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7035# OS/2's system install, which has a completely different semantic
7036# ./install, which can be erroneously created by make from ./install.sh.
7037{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7038echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7039if test -z "$INSTALL"; then
7040if test "${ac_cv_path_install+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 # Account for people who put trailing slashes in PATH elements.
7049case $as_dir/ in
7050 ./ | .// | /cC/* | \
7051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7053 /usr/ucb/* ) ;;
7054 *)
7055 # OSF1 and SCO ODT 3.0 have their own names for install.
7056 # Don't use installbsd from OSF since it installs stuff as root
7057 # by default.
7058 for ac_prog in ginstall scoinst install; do
7059 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007060 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007061 if test $ac_prog = install &&
7062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063 # AIX install. It has an incompatible calling convention.
7064 :
7065 elif test $ac_prog = install &&
7066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7067 # program-specific install script used by HP pwplus--don't use.
7068 :
7069 else
7070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7071 break 3
7072 fi
7073 fi
7074 done
7075 done
7076 ;;
7077esac
7078done
7079IFS=$as_save_IFS
7080
7081
7082fi
7083 if test "${ac_cv_path_install+set}" = set; then
7084 INSTALL=$ac_cv_path_install
7085 else
7086 # As a last resort, use the slow shell script. Don't cache a
7087 # value for INSTALL within a source directory, because that will
7088 # break other packages using the cache if that directory is
7089 # removed, or if the value is a relative name.
7090 INSTALL=$ac_install_sh
7091 fi
7092fi
7093{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7094echo "${ECHO_T}$INSTALL" >&6; }
7095
7096# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7097# It thinks the first close brace ends the variable substitution.
7098test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7099
7100test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7101
7102test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7103
7104
7105# Extract the first word of "bzip2", so it can be a program name with args.
7106set dummy bzip2; ac_word=$2
7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_BZIP2+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 case $BZIP2 in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007124 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130IFS=$as_save_IFS
7131
7132 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7133 ;;
7134esac
7135fi
7136BZIP2=$ac_cv_path_BZIP2
7137if test -n "$BZIP2"; then
7138 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7139echo "${ECHO_T}$BZIP2" >&6; }
7140else
7141 { echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6; }
7143fi
7144
7145
7146# Extract the first word of "doxygen", so it can be a program name with args.
7147set dummy doxygen; ac_word=$2
7148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150if test "${ac_cv_path_DOXYGEN+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 case $DOXYGEN in
7154 [\\/]* | ?:[\\/]*)
7155 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7156 ;;
7157 *)
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007165 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171IFS=$as_save_IFS
7172
7173 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7174 ;;
7175esac
7176fi
7177DOXYGEN=$ac_cv_path_DOXYGEN
7178if test -n "$DOXYGEN"; then
7179 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7180echo "${ECHO_T}$DOXYGEN" >&6; }
7181else
7182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
7184fi
7185
7186
Reid Spencera773bd52006-08-04 18:18:08 +00007187# Extract the first word of "groff", so it can be a program name with args.
7188set dummy groff; ac_word=$2
7189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191if test "${ac_cv_path_GROFF+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 case $GROFF in
7195 [\\/]* | ?:[\\/]*)
7196 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7197 ;;
7198 *)
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007206 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210done
7211done
7212IFS=$as_save_IFS
7213
7214 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7215 ;;
7216esac
7217fi
7218GROFF=$ac_cv_path_GROFF
7219if test -n "$GROFF"; then
7220 { echo "$as_me:$LINENO: result: $GROFF" >&5
7221echo "${ECHO_T}$GROFF" >&6; }
7222else
7223 { echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6; }
7225fi
7226
7227
7228# Extract the first word of "gzip", so it can be a program name with args.
7229set dummy gzip; ac_word=$2
7230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232if test "${ac_cv_path_GZIP+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 case $GZIP in
7236 [\\/]* | ?:[\\/]*)
7237 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7238 ;;
7239 *)
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007247 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252done
7253IFS=$as_save_IFS
7254
7255 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7256 ;;
7257esac
7258fi
7259GZIP=$ac_cv_path_GZIP
7260if test -n "$GZIP"; then
7261 { echo "$as_me:$LINENO: result: $GZIP" >&5
7262echo "${ECHO_T}$GZIP" >&6; }
7263else
7264 { echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6; }
7266fi
7267
7268
7269# Extract the first word of "pod2html", so it can be a program name with args.
7270set dummy pod2html; ac_word=$2
7271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273if test "${ac_cv_path_POD2HTML+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 case $POD2HTML in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007288 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293done
7294IFS=$as_save_IFS
7295
7296 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7297 ;;
7298esac
7299fi
7300POD2HTML=$ac_cv_path_POD2HTML
7301if test -n "$POD2HTML"; then
7302 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7303echo "${ECHO_T}$POD2HTML" >&6; }
7304else
7305 { echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6; }
7307fi
7308
7309
7310# Extract the first word of "pod2man", so it can be a program name with args.
7311set dummy pod2man; ac_word=$2
7312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314if test "${ac_cv_path_POD2MAN+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316else
7317 case $POD2MAN in
7318 [\\/]* | ?:[\\/]*)
7319 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7320 ;;
7321 *)
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007329 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333done
7334done
7335IFS=$as_save_IFS
7336
7337 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7338 ;;
7339esac
7340fi
7341POD2MAN=$ac_cv_path_POD2MAN
7342if test -n "$POD2MAN"; then
7343 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7344echo "${ECHO_T}$POD2MAN" >&6; }
7345else
7346 { echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6; }
7348fi
7349
7350
7351# Extract the first word of "runtest", so it can be a program name with args.
7352set dummy runtest; ac_word=$2
7353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355if test "${ac_cv_path_RUNTEST+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 case $RUNTEST in
7359 [\\/]* | ?:[\\/]*)
7360 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7361 ;;
7362 *)
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007370 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376IFS=$as_save_IFS
7377
7378 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7379 ;;
7380esac
7381fi
7382RUNTEST=$ac_cv_path_RUNTEST
7383if test -n "$RUNTEST"; then
7384 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7385echo "${ECHO_T}$RUNTEST" >&6; }
7386else
7387 { echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6; }
7389fi
7390
7391
7392
7393no_itcl=true
7394{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7395echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7396
7397# Check whether --with-tclinclude was given.
7398if test "${with_tclinclude+set}" = set; then
7399 withval=$with_tclinclude; with_tclinclude=${withval}
7400else
7401 with_tclinclude=''
7402fi
7403
7404if test "${ac_cv_path_tclsh+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407
7408if test x"${with_tclinclude}" != x ; then
7409 if test -f ${with_tclinclude}/tclsh ; then
7410 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7411 elif test -f ${with_tclinclude}/src/tclsh ; then
7412 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7413 else
7414 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7415echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7416 { (exit 1); exit 1; }; }
7417 fi
7418fi
7419
7420if test x"${ac_cv_path_tclsh}" = x ; then
7421 { echo "$as_me:$LINENO: result: none" >&5
7422echo "${ECHO_T}none" >&6; }
7423 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
7424do
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426set dummy $ac_prog; ac_word=$2
7427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429if test "${ac_cv_path_TCLSH+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 case $TCLSH in
7433 [\\/]* | ?:[\\/]*)
7434 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7435 ;;
7436 *)
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007444 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448done
7449done
7450IFS=$as_save_IFS
7451
7452 ;;
7453esac
7454fi
7455TCLSH=$ac_cv_path_TCLSH
7456if test -n "$TCLSH"; then
7457 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7458echo "${ECHO_T}$TCLSH" >&6; }
7459else
7460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
7462fi
7463
7464
7465 test -n "$TCLSH" && break
7466done
7467
7468 if test x"${TCLSH}" = x ; then
7469 ac_cv_path_tclsh='';
7470 else
7471 ac_cv_path_tclsh="${TCLSH}";
7472 fi
7473else
7474 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7475echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7476 TCLSH="${ac_cv_path_tclsh}"
7477
7478fi
7479
7480fi
7481
7482# Extract the first word of "zip", so it can be a program name with args.
7483set dummy zip; ac_word=$2
7484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486if test "${ac_cv_path_ZIP+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489 case $ZIP in
7490 [\\/]* | ?:[\\/]*)
7491 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7492 ;;
7493 *)
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007501 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507IFS=$as_save_IFS
7508
7509 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7510 ;;
7511esac
7512fi
7513ZIP=$ac_cv_path_ZIP
7514if test -n "$ZIP"; then
7515 { echo "$as_me:$LINENO: result: $ZIP" >&5
7516echo "${ECHO_T}$ZIP" >&6; }
7517else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
7520fi
7521
7522
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007523# Extract the first word of "ocamlc", so it can be a program name with args.
7524set dummy ocamlc; ac_word=$2
7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527if test "${ac_cv_path_OCAMLC+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 case $OCAMLC in
7531 [\\/]* | ?:[\\/]*)
7532 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7533 ;;
7534 *)
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007542 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548IFS=$as_save_IFS
7549
7550 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7551 ;;
7552esac
7553fi
7554OCAMLC=$ac_cv_path_OCAMLC
7555if test -n "$OCAMLC"; then
7556 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7557echo "${ECHO_T}$OCAMLC" >&6; }
7558else
7559 { echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6; }
7561fi
7562
7563
7564# Extract the first word of "ocamlopt", so it can be a program name with args.
7565set dummy ocamlopt; ac_word=$2
7566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570else
7571 case $OCAMLOPT in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007583 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588done
7589IFS=$as_save_IFS
7590
7591 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7592 ;;
7593esac
7594fi
7595OCAMLOPT=$ac_cv_path_OCAMLOPT
7596if test -n "$OCAMLOPT"; then
7597 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7598echo "${ECHO_T}$OCAMLOPT" >&6; }
7599else
7600 { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
7602fi
7603
7604
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007605# Extract the first word of "ocamldep", so it can be a program name with args.
7606set dummy ocamldep; ac_word=$2
7607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612 case $OCAMLDEP in
7613 [\\/]* | ?:[\\/]*)
7614 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7615 ;;
7616 *)
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007624 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628done
7629done
7630IFS=$as_save_IFS
7631
7632 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7633 ;;
7634esac
7635fi
7636OCAMLDEP=$ac_cv_path_OCAMLDEP
7637if test -n "$OCAMLDEP"; then
7638 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7639echo "${ECHO_T}$OCAMLDEP" >&6; }
7640else
7641 { echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6; }
7643fi
7644
7645
Reid Spencera773bd52006-08-04 18:18:08 +00007646
7647{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649if test "${llvm_cv_link_use_r+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 ac_ext=c
7653ac_cpp='$CPP $CPPFLAGS'
7654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658 oldcflags="$CFLAGS"
7659 CFLAGS="$CFLAGS -Wl,-R."
7660 cat >conftest.$ac_ext <<_ACEOF
7661/* confdefs.h. */
7662_ACEOF
7663cat confdefs.h >>conftest.$ac_ext
7664cat >>conftest.$ac_ext <<_ACEOF
7665/* end confdefs.h. */
7666
7667int
7668main ()
7669{
7670int main() { return 0; }
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext conftest$ac_exeext
7676if { (ac_try="$ac_link"
7677case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest$ac_exeext &&
7692 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007693 llvm_cv_link_use_r=yes
7694else
7695 echo "$as_me: failed program was:" >&5
7696sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 llvm_cv_link_use_r=no
7699fi
7700
Scott Michel96dcd2b2007-12-05 21:24:02 +00007701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007702 conftest$ac_exeext conftest.$ac_ext
7703 CFLAGS="$oldcflags"
7704 ac_ext=c
7705ac_cpp='$CPP $CPPFLAGS'
7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711fi
7712{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7713echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7714if test "$llvm_cv_link_use_r" = yes ; then
7715
7716cat >>confdefs.h <<\_ACEOF
7717#define HAVE_LINK_R 1
7718_ACEOF
7719
7720 fi
7721
7722
7723
7724
7725{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7726echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7727if test "${ac_cv_c_const+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737int
7738main ()
7739{
7740/* FIXME: Include the comments suggested by Paul. */
7741#ifndef __cplusplus
7742 /* Ultrix mips cc rejects this. */
7743 typedef int charset[2];
Scott Michel96dcd2b2007-12-05 21:24:02 +00007744 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00007745 /* SunOS 4.1.1 cc rejects this. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007746 char const *const *pcpcc;
7747 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007748 /* NEC SVR4.0.2 mips cc rejects this. */
7749 struct point {int x, y;};
7750 static struct point const zero = {0,0};
7751 /* AIX XL C 1.02.0.0 rejects this.
7752 It does not let you subtract one const X* pointer from another in
7753 an arm of an if-expression whose if-part is not a constant
7754 expression */
7755 const char *g = "string";
Scott Michel96dcd2b2007-12-05 21:24:02 +00007756 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007757 /* HPUX 7.0 cc rejects these. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007758 ++pcpcc;
7759 ppc = (char**) pcpcc;
7760 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007761 { /* SCO 3.2v4 cc rejects this. */
7762 char *t;
7763 char const *s = 0 ? (char *) 0 : (char const *) 0;
7764
7765 *t++ = 0;
7766 if (s) return 0;
7767 }
7768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7769 int x[] = {25, 17};
7770 const int *foo = &x[0];
7771 ++foo;
7772 }
7773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7774 typedef const int *iptr;
7775 iptr p = 0;
7776 ++p;
7777 }
7778 { /* AIX XL C 1.02.0.0 rejects this saying
7779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7780 struct s { int j; const int *ap[3]; };
7781 struct s *b; b->j = 5;
7782 }
7783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7784 const int foo = 10;
7785 if (!foo) return 0;
7786 }
Scott Michel96dcd2b2007-12-05 21:24:02 +00007787 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007788#endif
7789
7790 ;
7791 return 0;
7792}
7793_ACEOF
7794rm -f conftest.$ac_objext
7795if { (ac_try="$ac_compile"
7796case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007811 ac_cv_c_const=yes
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 ac_cv_c_const=no
7817fi
7818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820fi
7821{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7822echo "${ECHO_T}$ac_cv_c_const" >&6; }
7823if test $ac_cv_c_const = no; then
7824
7825cat >>confdefs.h <<\_ACEOF
7826#define const
7827_ACEOF
7828
7829fi
7830
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007831
7832
7833
7834
7835
7836ac_header_dirent=no
7837for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7838 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00007839{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7840echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h. */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
7849/* end confdefs.h. */
7850#include <sys/types.h>
7851#include <$ac_hdr>
7852
7853int
7854main ()
7855{
7856if ((DIR *) 0)
7857return 0;
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00007863if { (ac_try="$ac_compile"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007879 eval "$as_ac_Header=yes"
7880else
7881 echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
Reid Spencera773bd52006-08-04 18:18:08 +00007884 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007885fi
Reid Spencera773bd52006-08-04 18:18:08 +00007886
7887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007888fi
Reid Spencera773bd52006-08-04 18:18:08 +00007889ac_res=`eval echo '${'$as_ac_Header'}'`
7890 { echo "$as_me:$LINENO: result: $ac_res" >&5
7891echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007892if test `eval echo '${'$as_ac_Header'}'` = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7895_ACEOF
7896
7897ac_header_dirent=$ac_hdr; break
7898fi
7899
7900done
7901# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7902if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00007903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7904echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007905if test "${ac_cv_search_opendir+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007909cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915
Reid Spencera773bd52006-08-04 18:18:08 +00007916/* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007919#ifdef __cplusplus
7920extern "C"
7921#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007922char opendir ();
7923int
7924main ()
7925{
Reid Spencera773bd52006-08-04 18:18:08 +00007926return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007927 ;
7928 return 0;
7929}
7930_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007931for ac_lib in '' dir; do
7932 if test -z "$ac_lib"; then
7933 ac_res="none required"
7934 else
7935 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00007937 fi
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939if { (ac_try="$ac_link"
7940case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943esac
7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007956 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007957else
7958 echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007961
7962fi
7963
Scott Michel96dcd2b2007-12-05 21:24:02 +00007964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007965 conftest$ac_exeext
7966 if test "${ac_cv_search_opendir+set}" = set; then
7967 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007968fi
John Criswell7a73b802003-06-30 21:59:07 +00007969done
Reid Spencera773bd52006-08-04 18:18:08 +00007970if test "${ac_cv_search_opendir+set}" = set; then
7971 :
7972else
7973 ac_cv_search_opendir=no
7974fi
7975rm conftest.$ac_ext
7976LIBS=$ac_func_search_save_LIBS
7977fi
7978{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7979echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7980ac_res=$ac_cv_search_opendir
7981if test "$ac_res" != no; then
7982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00007983
Reid Spencera773bd52006-08-04 18:18:08 +00007984fi
7985
7986else
7987 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7988echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7989if test "${ac_cv_search_opendir+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 ac_func_search_save_LIBS=$LIBS
7993cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999
8000/* Override any GCC internal prototype to avoid an error.
8001 Use char because int might match the return type of a GCC
8002 builtin and then its argument prototype would still apply. */
8003#ifdef __cplusplus
8004extern "C"
8005#endif
8006char opendir ();
8007int
8008main ()
8009{
8010return opendir ();
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015for ac_lib in '' x; do
8016 if test -z "$ac_lib"; then
8017 ac_res="none required"
8018 else
8019 ac_res=-l$ac_lib
8020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8021 fi
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023if { (ac_try="$ac_link"
8024case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027esac
8028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_link") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest$ac_exeext &&
8039 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008040 ac_cv_search_opendir=$ac_res
8041else
8042 echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
8045
8046fi
8047
Scott Michel96dcd2b2007-12-05 21:24:02 +00008048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008049 conftest$ac_exeext
8050 if test "${ac_cv_search_opendir+set}" = set; then
8051 break
8052fi
8053done
8054if test "${ac_cv_search_opendir+set}" = set; then
8055 :
8056else
8057 ac_cv_search_opendir=no
8058fi
8059rm conftest.$ac_ext
8060LIBS=$ac_func_search_save_LIBS
8061fi
8062{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8063echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8064ac_res=$ac_cv_search_opendir
8065if test "$ac_res" != no; then
8066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8067
8068fi
8069
8070fi
John Criswell7a73b802003-06-30 21:59:07 +00008071
8072
8073for ac_header in dlfcn.h
8074do
8075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008080 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008081fi
Reid Spencera773bd52006-08-04 18:18:08 +00008082ac_res=`eval echo '${'$as_ac_Header'}'`
8083 { echo "$as_me:$LINENO: result: $ac_res" >&5
8084echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008085else
Brian Gaeke0a621332004-09-08 20:38:05 +00008086 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008087{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008089cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008095$ac_includes_default
8096#include <$ac_header>
8097_ACEOF
8098rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008099if { (ac_try="$ac_compile"
8100case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103esac
8104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008115 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008116else
8117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008118sed 's/^/| /' conftest.$ac_ext >&5
8119
Reid Spencera773bd52006-08-04 18:18:08 +00008120 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008121fi
Reid Spencera773bd52006-08-04 18:18:08 +00008122
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008126
8127# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008130cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h. */
8136#include <$ac_header>
8137_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008138if { (ac_try="$ac_cpp conftest.$ac_ext"
8139case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008150 (exit $ac_status); } >/dev/null && {
8151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008154 ac_header_preproc=yes
8155else
8156 echo "$as_me: failed program was:" >&5
8157sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 ac_header_preproc=no
8160fi
Reid Spencera773bd52006-08-04 18:18:08 +00008161
Brian Gaeke0a621332004-09-08 20:38:05 +00008162rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8164echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008165
8166# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8168 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8173 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008174 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008175 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008188 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008189## ----------------------------------- ##
8190## Report this to llvmbugs@cs.uiuc.edu ##
8191## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008192_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008193 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008194 ;;
8195esac
Reid Spencera773bd52006-08-04 18:18:08 +00008196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008201 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008202fi
Reid Spencera773bd52006-08-04 18:18:08 +00008203ac_res=`eval echo '${'$as_ac_Header'}'`
8204 { echo "$as_me:$LINENO: result: $ac_res" >&5
8205echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008206
8207fi
John Criswell7a73b802003-06-30 21:59:07 +00008208if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211_ACEOF
8212
8213fi
8214
8215done
8216
Reid Spencera773bd52006-08-04 18:18:08 +00008217# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008218if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008219 enableval=$enable_ltdl_install;
8220fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008222
Scott Michel96dcd2b2007-12-05 21:24:02 +00008223 if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224 INSTALL_LTDL_TRUE=
8225 INSTALL_LTDL_FALSE='#'
8226else
8227 INSTALL_LTDL_TRUE='#'
8228 INSTALL_LTDL_FALSE=
8229fi
8230
Scott Michel96dcd2b2007-12-05 21:24:02 +00008231 if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008232 CONVENIENCE_LTDL_TRUE=
8233 CONVENIENCE_LTDL_FALSE='#'
8234else
8235 CONVENIENCE_LTDL_TRUE='#'
8236 CONVENIENCE_LTDL_FALSE=
8237fi
8238
8239
Reid Spencera773bd52006-08-04 18:18:08 +00008240{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8241echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008242library_names_spec=
8243libname_spec='lib$name'
8244soname_spec=
8245shrext_cmds=".so"
8246postinstall_cmds=
8247postuninstall_cmds=
8248finish_cmds=
8249finish_eval=
8250shlibpath_var=
8251shlibpath_overrides_runpath=unknown
8252version_type=none
8253dynamic_linker="$host_os ld.so"
8254sys_lib_dlsearch_path_spec="/lib /usr/lib"
8255if test "$GCC" = yes; then
8256 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8257 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8258 # if the path contains ";" then we assume it to be the separator
8259 # otherwise default to the standard path separator (i.e. ":") - it is
8260 # assumed that no part of a normal pathname contains ";" but that should
8261 # okay in the real world where ";" in dirpaths is itself problematic.
8262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8263 else
8264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8265 fi
8266else
8267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8268fi
8269need_lib_prefix=unknown
8270hardcode_into_libs=no
8271
8272# when you set need_version to no, make sure it does not cause -set_version
8273# flags to be left without arguments
8274need_version=unknown
8275
8276case $host_os in
8277aix3*)
8278 version_type=linux
8279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8280 shlibpath_var=LIBPATH
8281
8282 # AIX 3 has no versioning support, so we append a major version to the name.
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 ;;
8285
8286aix4* | aix5*)
8287 version_type=linux
8288 need_lib_prefix=no
8289 need_version=no
8290 hardcode_into_libs=yes
8291 if test "$host_cpu" = ia64; then
8292 # AIX 5 supports IA64
8293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8294 shlibpath_var=LD_LIBRARY_PATH
8295 else
8296 # With GCC up to 2.95.x, collect2 would create an import file
8297 # for dependence libraries. The import file would start with
8298 # the line `#! .'. This would cause the generated library to
8299 # depend on `.', always an invalid library. This was fixed in
8300 # development snapshots of GCC prior to 3.0.
8301 case $host_os in
8302 aix4 | aix4.[01] | aix4.[01].*)
8303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8304 echo ' yes '
8305 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8306 :
8307 else
8308 can_build_shared=no
8309 fi
8310 ;;
8311 esac
8312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8313 # soname into executable. Probably we can add versioning support to
8314 # collect2, so additional links can be useful in future.
8315 if test "$aix_use_runtimelinking" = yes; then
8316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8317 # instead of lib<name>.a to let people know that these are not
8318 # typical AIX shared libraries.
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320 else
8321 # We preserve .a as extension for shared libraries through AIX4.2
8322 # and later when we are not doing run time linking.
8323 library_names_spec='${libname}${release}.a $libname.a'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 fi
8326 shlibpath_var=LIBPATH
8327 fi
8328 ;;
8329
8330amigaos*)
8331 library_names_spec='$libname.ixlibrary $libname.a'
8332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8333 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'
8334 ;;
8335
8336beos*)
8337 library_names_spec='${libname}${shared_ext}'
8338 dynamic_linker="$host_os ld.so"
8339 shlibpath_var=LIBRARY_PATH
8340 ;;
8341
8342bsdi[45]*)
8343 version_type=linux
8344 need_version=no
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346 soname_spec='${libname}${release}${shared_ext}$major'
8347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8351 # the default ld.so.conf also contains /usr/contrib/lib and
8352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8353 # libtool to hard-code these into programs
8354 ;;
8355
8356cygwin* | mingw* | pw32*)
8357 version_type=windows
8358 shrext_cmds=".dll"
8359 need_version=no
8360 need_lib_prefix=no
8361
8362 case $GCC,$host_os in
8363 yes,cygwin* | yes,mingw* | yes,pw32*)
8364 library_names_spec='$libname.dll.a'
8365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8366 postinstall_cmds='base_file=`basename \${file}`~
8367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8368 dldir=$destdir/`dirname \$dlpath`~
8369 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008370 $install_prog $dir/$dlname \$dldir/$dlname~
8371 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8373 dlpath=$dir/\$dldll~
8374 $rm \$dlpath'
8375 shlibpath_overrides_runpath=yes
8376
8377 case $host_os in
8378 cygwin*)
8379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8381 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8382 ;;
8383 mingw*)
8384 # MinGW DLLs use traditional 'lib' prefix
8385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8387 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8388 # It is most probably a Windows format PATH printed by
8389 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8390 # path with ; separators, and with drive letters. We can handle the
8391 # drive letters (cygwin fileutils understands them), so leave them,
8392 # especially as we might pass files found there to a mingw objdump,
8393 # which wouldn't understand a cygwinified path. Ahh.
8394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8395 else
8396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8397 fi
8398 ;;
8399 pw32*)
8400 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008402 ;;
8403 esac
8404 ;;
8405
8406 *)
8407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8408 ;;
8409 esac
8410 dynamic_linker='Win32 ld.exe'
8411 # FIXME: first we should search . and the directory the executable is in
8412 shlibpath_var=PATH
8413 ;;
8414
8415darwin* | rhapsody*)
8416 dynamic_linker="$host_os dyld"
8417 version_type=darwin
8418 need_lib_prefix=no
8419 need_version=no
8420 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8421 soname_spec='${libname}${release}${major}$shared_ext'
8422 shlibpath_overrides_runpath=yes
8423 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008424 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008425 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8426 if test "$GCC" = yes; then
8427 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"`
8428 else
8429 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8430 fi
8431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8432 ;;
8433
8434dgux*)
8435 version_type=linux
8436 need_lib_prefix=no
8437 need_version=no
8438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8439 soname_spec='${libname}${release}${shared_ext}$major'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 ;;
8442
8443freebsd1*)
8444 dynamic_linker=no
8445 ;;
8446
8447kfreebsd*-gnu)
8448 version_type=linux
8449 need_lib_prefix=no
8450 need_version=no
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8452 soname_spec='${libname}${release}${shared_ext}$major'
8453 shlibpath_var=LD_LIBRARY_PATH
8454 shlibpath_overrides_runpath=no
8455 hardcode_into_libs=yes
8456 dynamic_linker='GNU ld.so'
8457 ;;
8458
Reid Spencera773bd52006-08-04 18:18:08 +00008459freebsd* | dragonfly*)
8460 # DragonFly does not have aout. When/if they implement a new
8461 # versioning mechanism, adjust this.
8462 if test -x /usr/bin/objformat; then
8463 objformat=`/usr/bin/objformat`
8464 else
8465 case $host_os in
8466 freebsd[123]*) objformat=aout ;;
8467 *) objformat=elf ;;
8468 esac
8469 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008470 version_type=freebsd-$objformat
8471 case $version_type in
8472 freebsd-elf*)
8473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8474 need_version=no
8475 need_lib_prefix=no
8476 ;;
8477 freebsd-*)
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8479 need_version=yes
8480 ;;
8481 esac
8482 shlibpath_var=LD_LIBRARY_PATH
8483 case $host_os in
8484 freebsd2*)
8485 shlibpath_overrides_runpath=yes
8486 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008487 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008488 shlibpath_overrides_runpath=yes
8489 hardcode_into_libs=yes
8490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008493 shlibpath_overrides_runpath=no
8494 hardcode_into_libs=yes
8495 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008496 freebsd*) # from 4.6 on
8497 shlibpath_overrides_runpath=yes
8498 hardcode_into_libs=yes
8499 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500 esac
8501 ;;
8502
8503gnu*)
8504 version_type=linux
8505 need_lib_prefix=no
8506 need_version=no
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 shlibpath_var=LD_LIBRARY_PATH
8510 hardcode_into_libs=yes
8511 ;;
8512
8513hpux9* | hpux10* | hpux11*)
8514 # Give a soname corresponding to the major version so that dld.sl refuses to
8515 # link against other versions.
8516 version_type=sunos
8517 need_lib_prefix=no
8518 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008519 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008520 ia64*)
8521 shrext_cmds='.so'
8522 hardcode_into_libs=yes
8523 dynamic_linker="$host_os dld.so"
8524 shlibpath_var=LD_LIBRARY_PATH
8525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 soname_spec='${libname}${release}${shared_ext}$major'
8528 if test "X$HPUX_IA64_MODE" = X32; then
8529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8530 else
8531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8532 fi
8533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8534 ;;
8535 hppa*64*)
8536 shrext_cmds='.sl'
8537 hardcode_into_libs=yes
8538 dynamic_linker="$host_os dld.sl"
8539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8545 ;;
8546 *)
8547 shrext_cmds='.sl'
8548 dynamic_linker="$host_os dld.sl"
8549 shlibpath_var=SHLIB_PATH
8550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec='${libname}${release}${shared_ext}$major'
8553 ;;
8554 esac
8555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8556 postinstall_cmds='chmod 555 $lib'
8557 ;;
8558
Reid Spencera773bd52006-08-04 18:18:08 +00008559interix3*)
8560 version_type=linux
8561 need_lib_prefix=no
8562 need_version=no
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8566 shlibpath_var=LD_LIBRARY_PATH
8567 shlibpath_overrides_runpath=no
8568 hardcode_into_libs=yes
8569 ;;
8570
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008571irix5* | irix6* | nonstopux*)
8572 case $host_os in
8573 nonstopux*) version_type=nonstopux ;;
8574 *)
8575 if test "$lt_cv_prog_gnu_ld" = yes; then
8576 version_type=linux
8577 else
8578 version_type=irix
8579 fi ;;
8580 esac
8581 need_lib_prefix=no
8582 need_version=no
8583 soname_spec='${libname}${release}${shared_ext}$major'
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8585 case $host_os in
8586 irix5* | nonstopux*)
8587 libsuff= shlibsuff=
8588 ;;
8589 *)
8590 case $LD in # libtool.m4 will add one of these switches to LD
8591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8592 libsuff= shlibsuff= libmagic=32-bit;;
8593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8594 libsuff=32 shlibsuff=N32 libmagic=N32;;
8595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8597 *) libsuff= shlibsuff= libmagic=never-match;;
8598 esac
8599 ;;
8600 esac
8601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8602 shlibpath_overrides_runpath=no
8603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8605 hardcode_into_libs=yes
8606 ;;
8607
8608# No shared lib support for Linux oldld, aout, or coff.
8609linux*oldld* | linux*aout* | linux*coff*)
8610 dynamic_linker=no
8611 ;;
8612
8613# This must be Linux ELF.
8614linux*)
8615 version_type=linux
8616 need_lib_prefix=no
8617 need_version=no
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 shlibpath_overrides_runpath=no
8623 # This implies no fast_install, which is unacceptable.
8624 # Some rework will be needed to allow for fast_install
8625 # before this can be enabled.
8626 hardcode_into_libs=yes
8627
8628 # Append ld.so.conf contents to the search path
8629 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008630 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' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8632 fi
8633
8634 # We used to test for /lib/ld.so.1 and disable shared libraries on
8635 # powerpc, because MkLinux only supported shared libraries with the
8636 # GNU dynamic linker. Since this was broken with cross compilers,
8637 # most powerpc-linux boxes support dynamic linking these days and
8638 # people can always --disable-shared, the test was removed, and we
8639 # assume the GNU/Linux dynamic linker is in use.
8640 dynamic_linker='GNU/Linux ld.so'
8641 ;;
8642
8643knetbsd*-gnu)
8644 version_type=linux
8645 need_lib_prefix=no
8646 need_version=no
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 shlibpath_overrides_runpath=no
8651 hardcode_into_libs=yes
8652 dynamic_linker='GNU ld.so'
8653 ;;
8654
8655netbsd*)
8656 version_type=sunos
8657 need_lib_prefix=no
8658 need_version=no
8659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8662 dynamic_linker='NetBSD (a.out) ld.so'
8663 else
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8665 soname_spec='${libname}${release}${shared_ext}$major'
8666 dynamic_linker='NetBSD ld.elf_so'
8667 fi
8668 shlibpath_var=LD_LIBRARY_PATH
8669 shlibpath_overrides_runpath=yes
8670 hardcode_into_libs=yes
8671 ;;
8672
8673newsos6)
8674 version_type=linux
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676 shlibpath_var=LD_LIBRARY_PATH
8677 shlibpath_overrides_runpath=yes
8678 ;;
8679
8680nto-qnx*)
8681 version_type=linux
8682 need_lib_prefix=no
8683 need_version=no
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 shlibpath_var=LD_LIBRARY_PATH
8687 shlibpath_overrides_runpath=yes
8688 ;;
8689
8690openbsd*)
8691 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008692 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008693 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8695 case $host_os in
8696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8697 *) need_version=no ;;
8698 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8703 case $host_os in
8704 openbsd2.[89] | openbsd2.[89].*)
8705 shlibpath_overrides_runpath=no
8706 ;;
8707 *)
8708 shlibpath_overrides_runpath=yes
8709 ;;
8710 esac
8711 else
8712 shlibpath_overrides_runpath=yes
8713 fi
8714 ;;
8715
8716os2*)
8717 libname_spec='$name'
8718 shrext_cmds=".dll"
8719 need_lib_prefix=no
8720 library_names_spec='$libname${shared_ext} $libname.a'
8721 dynamic_linker='OS/2 ld.exe'
8722 shlibpath_var=LIBPATH
8723 ;;
8724
8725osf3* | osf4* | osf5*)
8726 version_type=osf
8727 need_lib_prefix=no
8728 need_version=no
8729 soname_spec='${libname}${release}${shared_ext}$major'
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8734 ;;
8735
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008736solaris*)
8737 version_type=linux
8738 need_lib_prefix=no
8739 need_version=no
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 shlibpath_var=LD_LIBRARY_PATH
8743 shlibpath_overrides_runpath=yes
8744 hardcode_into_libs=yes
8745 # ldd complains unless libraries are executable
8746 postinstall_cmds='chmod +x $lib'
8747 ;;
8748
8749sunos4*)
8750 version_type=sunos
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8753 shlibpath_var=LD_LIBRARY_PATH
8754 shlibpath_overrides_runpath=yes
8755 if test "$with_gnu_ld" = yes; then
8756 need_lib_prefix=no
8757 fi
8758 need_version=yes
8759 ;;
8760
Reid Spencera773bd52006-08-04 18:18:08 +00008761sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008762 version_type=linux
8763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8764 soname_spec='${libname}${release}${shared_ext}$major'
8765 shlibpath_var=LD_LIBRARY_PATH
8766 case $host_vendor in
8767 sni)
8768 shlibpath_overrides_runpath=no
8769 need_lib_prefix=no
8770 export_dynamic_flag_spec='${wl}-Blargedynsym'
8771 runpath_var=LD_RUN_PATH
8772 ;;
8773 siemens)
8774 need_lib_prefix=no
8775 ;;
8776 motorola)
8777 need_lib_prefix=no
8778 need_version=no
8779 shlibpath_overrides_runpath=no
8780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8781 ;;
8782 esac
8783 ;;
8784
8785sysv4*MP*)
8786 if test -d /usr/nec ;then
8787 version_type=linux
8788 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8789 soname_spec='$libname${shared_ext}.$major'
8790 shlibpath_var=LD_LIBRARY_PATH
8791 fi
8792 ;;
8793
Reid Spencera773bd52006-08-04 18:18:08 +00008794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8795 version_type=freebsd-elf
8796 need_lib_prefix=no
8797 need_version=no
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 hardcode_into_libs=yes
8802 if test "$with_gnu_ld" = yes; then
8803 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8804 shlibpath_overrides_runpath=no
8805 else
8806 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8807 shlibpath_overrides_runpath=yes
8808 case $host_os in
8809 sco3.2v5*)
8810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8811 ;;
8812 esac
8813 fi
8814 sys_lib_dlsearch_path_spec='/usr/lib'
8815 ;;
8816
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817uts4*)
8818 version_type=linux
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 shlibpath_var=LD_LIBRARY_PATH
8822 ;;
8823
8824*)
8825 dynamic_linker=no
8826 ;;
8827esac
Reid Spencera773bd52006-08-04 18:18:08 +00008828{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8829echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008830test "$dynamic_linker" = no && can_build_shared=no
8831
Reid Spencera773bd52006-08-04 18:18:08 +00008832variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8833if test "$GCC" = yes; then
8834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8835fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836
Reid Spencera773bd52006-08-04 18:18:08 +00008837
8838{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8839echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008840if test "${libltdl_cv_shlibext+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843
8844module=yes
8845eval libltdl_cv_shlibext=$shrext_cmds
8846
8847fi
Reid Spencera773bd52006-08-04 18:18:08 +00008848{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8849echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008850if test -n "$libltdl_cv_shlibext"; then
8851
8852cat >>confdefs.h <<_ACEOF
8853#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8854_ACEOF
8855
8856fi
8857
8858
Reid Spencera773bd52006-08-04 18:18:08 +00008859{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8860echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008861if test "${libltdl_cv_shlibpath_var+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863else
8864 libltdl_cv_shlibpath_var="$shlibpath_var"
8865fi
Reid Spencera773bd52006-08-04 18:18:08 +00008866{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8867echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868if test -n "$libltdl_cv_shlibpath_var"; then
8869
8870cat >>confdefs.h <<_ACEOF
8871#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8872_ACEOF
8873
8874fi
8875
8876
Reid Spencera773bd52006-08-04 18:18:08 +00008877{ echo "$as_me:$LINENO: checking for the default library search path" >&5
8878echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008879if test "${libltdl_cv_sys_search_path+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881else
8882 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8883fi
Reid Spencera773bd52006-08-04 18:18:08 +00008884{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8885echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008886if test -n "$libltdl_cv_sys_search_path"; then
8887 sys_search_path=
8888 for dir in $libltdl_cv_sys_search_path; do
8889 if test -z "$sys_search_path"; then
8890 sys_search_path="$dir"
8891 else
8892 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8893 fi
8894 done
8895
8896cat >>confdefs.h <<_ACEOF
8897#define LTDL_SYSSEARCHPATH "$sys_search_path"
8898_ACEOF
8899
8900fi
8901
Reid Spencera773bd52006-08-04 18:18:08 +00008902{ echo "$as_me:$LINENO: checking for objdir" >&5
8903echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008904if test "${libltdl_cv_objdir+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907 libltdl_cv_objdir="$objdir"
8908 if test -n "$objdir"; then
8909 :
8910 else
8911 rm -f .libs 2>/dev/null
8912 mkdir .libs 2>/dev/null
8913 if test -d .libs; then
8914 libltdl_cv_objdir=.libs
8915 else
8916 # MS-DOS does not allow filenames that begin with a dot.
8917 libltdl_cv_objdir=_libs
8918 fi
8919 rmdir .libs 2>/dev/null
8920 fi
8921
8922fi
Reid Spencera773bd52006-08-04 18:18:08 +00008923{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8924echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008925
8926cat >>confdefs.h <<_ACEOF
8927#define LTDL_OBJDIR "$libltdl_cv_objdir/"
8928_ACEOF
8929
8930
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008931
8932
8933
8934
8935# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00008936{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8937echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008938if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941
8942# These are sane defaults that work on at least a few old systems.
8943# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8944
8945# Character class describing NM global symbol codes.
8946symcode='[BCDEGRST]'
8947
8948# Regexp to match symbols that can be accessed directly from C.
8949sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8950
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008951# Transform an extracted symbol line into a proper C declaration
8952lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8953
8954# Transform an extracted symbol line into symbol name and symbol address
8955lt_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'"
8956
8957# Define system-specific variables.
8958case $host_os in
8959aix*)
8960 symcode='[BCDT]'
8961 ;;
8962cygwin* | mingw* | pw32*)
8963 symcode='[ABCDGISTW]'
8964 ;;
8965hpux*) # Its linker distinguishes data from code symbols
8966 if test "$host_cpu" = ia64; then
8967 symcode='[ABCDEGRST]'
8968 fi
8969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8970 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'"
8971 ;;
8972linux*)
8973 if test "$host_cpu" = ia64; then
8974 symcode='[ABCDGIRSTW]'
8975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8976 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'"
8977 fi
8978 ;;
8979irix* | nonstopux*)
8980 symcode='[BCDEGRST]'
8981 ;;
8982osf*)
8983 symcode='[BCDEGQRST]'
8984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008985solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008986 symcode='[BDRT]'
8987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008988sco3.2v5*)
8989 symcode='[DT]'
8990 ;;
8991sysv4.2uw2*)
8992 symcode='[DT]'
8993 ;;
8994sysv5* | sco5v6* | unixware* | OpenUNIX*)
8995 symcode='[ABDT]'
8996 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008997sysv4)
8998 symcode='[DFNSTU]'
8999 ;;
9000esac
9001
9002# Handle CRLF in mingw tool chain
9003opt_cr=
9004case $build_os in
9005mingw*)
9006 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9007 ;;
9008esac
9009
9010# If we're using GNU nm, then use its standard symbol codes.
9011case `$NM -V 2>&1` in
9012*GNU* | *'with BFD'*)
9013 symcode='[ABCDGIRSTW]' ;;
9014esac
9015
9016# Try without a prefix undercore, then with it.
9017for ac_symprfx in "" "_"; do
9018
Reid Spencera773bd52006-08-04 18:18:08 +00009019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9020 symxfrm="\\1 $ac_symprfx\\2 \\2"
9021
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009022 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024
9025 # Check to see that the pipe works correctly.
9026 pipe_works=no
9027
9028 rm -f conftest*
9029 cat > conftest.$ac_ext <<EOF
9030#ifdef __cplusplus
9031extern "C" {
9032#endif
9033char nm_test_var;
9034void nm_test_func(){}
9035#ifdef __cplusplus
9036}
9037#endif
9038int main(){nm_test_var='a';nm_test_func();return(0);}
9039EOF
9040
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; then
9046 # Now try to grab the symbols.
9047 nlist=conftest.nm
9048 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9049 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } && test -s "$nlist"; then
9053 # Try sorting and uniquifying the output.
9054 if sort "$nlist" | uniq > "$nlist"T; then
9055 mv -f "$nlist"T "$nlist"
9056 else
9057 rm -f "$nlist"T
9058 fi
9059
9060 # Make sure that we snagged all the symbols we need.
9061 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9062 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9063 cat <<EOF > conftest.$ac_ext
9064#ifdef __cplusplus
9065extern "C" {
9066#endif
9067
9068EOF
9069 # Now generate the symbol file.
9070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9071
9072 cat <<EOF >> conftest.$ac_ext
9073#if defined (__STDC__) && __STDC__
9074# define lt_ptr_t void *
9075#else
9076# define lt_ptr_t char *
9077# define const
9078#endif
9079
9080/* The mapping between symbol names and symbols. */
9081const struct {
9082 const char *name;
9083 lt_ptr_t address;
9084}
9085lt_preloaded_symbols[] =
9086{
9087EOF
9088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9089 cat <<\EOF >> conftest.$ac_ext
9090 {0, (lt_ptr_t) 0}
9091};
9092
9093#ifdef __cplusplus
9094}
9095#endif
9096EOF
9097 # Now try linking the two files.
9098 mv conftest.$ac_objext conftstm.$ac_objext
9099 lt_save_LIBS="$LIBS"
9100 lt_save_CFLAGS="$CFLAGS"
9101 LIBS="conftstm.$ac_objext"
9102 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9108 pipe_works=yes
9109 fi
9110 LIBS="$lt_save_LIBS"
9111 CFLAGS="$lt_save_CFLAGS"
9112 else
9113 echo "cannot find nm_test_func in $nlist" >&5
9114 fi
9115 else
9116 echo "cannot find nm_test_var in $nlist" >&5
9117 fi
9118 else
9119 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9120 fi
9121 else
9122 echo "$progname: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 fi
9125 rm -f conftest* conftst*
9126
9127 # Do not use the global_symbol_pipe unless it works.
9128 if test "$pipe_works" = yes; then
9129 break
9130 else
9131 lt_cv_sys_global_symbol_pipe=
9132 fi
9133done
9134
9135fi
9136
9137if test -z "$lt_cv_sys_global_symbol_pipe"; then
9138 lt_cv_sys_global_symbol_to_cdecl=
9139fi
9140if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009141 { echo "$as_me:$LINENO: result: failed" >&5
9142echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009143else
Reid Spencera773bd52006-08-04 18:18:08 +00009144 { echo "$as_me:$LINENO: result: ok" >&5
9145echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146fi
9147
9148
Reid Spencera773bd52006-08-04 18:18:08 +00009149{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9150echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153else
9154 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9155 libltdl_cv_preloaded_symbols=yes
9156 else
9157 libltdl_cv_preloaded_symbols=no
9158 fi
9159
9160fi
Reid Spencera773bd52006-08-04 18:18:08 +00009161{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9162echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009163if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9164
9165cat >>confdefs.h <<\_ACEOF
9166#define HAVE_PRELOADED_SYMBOLS 1
9167_ACEOF
9168
9169fi
9170
9171LIBADD_DL=
9172
9173ac_ext=c
9174ac_cpp='$CPP $CPPFLAGS'
9175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177ac_compiler_gnu=$ac_cv_c_compiler_gnu
9178
9179
Reid Spencera773bd52006-08-04 18:18:08 +00009180{ echo "$as_me:$LINENO: checking for shl_load" >&5
9181echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009182if test "${ac_cv_func_shl_load+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184else
9185 cat >conftest.$ac_ext <<_ACEOF
9186/* confdefs.h. */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h. */
9191/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9193#define shl_load innocuous_shl_load
9194
9195/* System header to define __stub macros and hopefully few prototypes,
9196 which can conflict with char shl_load (); below.
9197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198 <limits.h> exists even on freestanding compilers. */
9199
9200#ifdef __STDC__
9201# include <limits.h>
9202#else
9203# include <assert.h>
9204#endif
9205
9206#undef shl_load
9207
Reid Spencera773bd52006-08-04 18:18:08 +00009208/* Override any GCC internal prototype to avoid an error.
9209 Use char because int might match the return type of a GCC
9210 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211#ifdef __cplusplus
9212extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009214char shl_load ();
9215/* The GNU C library defines this for functions which it implements
9216 to always fail with ENOSYS. Some functions are actually named
9217 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009218#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009220#endif
9221
9222int
9223main ()
9224{
Reid Spencera773bd52006-08-04 18:18:08 +00009225return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009226 ;
9227 return 0;
9228}
9229_ACEOF
9230rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009231if { (ac_try="$ac_link"
9232case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235esac
9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext &&
9247 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248 ac_cv_func_shl_load=yes
9249else
9250 echo "$as_me: failed program was:" >&5
9251sed 's/^/| /' conftest.$ac_ext >&5
9252
Reid Spencera773bd52006-08-04 18:18:08 +00009253 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254fi
Reid Spencera773bd52006-08-04 18:18:08 +00009255
Scott Michel96dcd2b2007-12-05 21:24:02 +00009256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257 conftest$ac_exeext conftest.$ac_ext
9258fi
Reid Spencera773bd52006-08-04 18:18:08 +00009259{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9260echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261if test $ac_cv_func_shl_load = yes; then
9262
9263cat >>confdefs.h <<\_ACEOF
9264#define HAVE_SHL_LOAD 1
9265_ACEOF
9266
9267else
Reid Spencera773bd52006-08-04 18:18:08 +00009268 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9269echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273 ac_check_lib_save_LIBS=$LIBS
9274LIBS="-ldld $LIBS"
9275cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
9281
Reid Spencera773bd52006-08-04 18:18:08 +00009282/* Override any GCC internal prototype to avoid an error.
9283 Use char because int might match the return type of a GCC
9284 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285#ifdef __cplusplus
9286extern "C"
9287#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288char shl_load ();
9289int
9290main ()
9291{
Reid Spencera773bd52006-08-04 18:18:08 +00009292return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009298if { (ac_try="$ac_link"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest$ac_exeext &&
9314 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009315 ac_cv_lib_dld_shl_load=yes
9316else
9317 echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
Reid Spencera773bd52006-08-04 18:18:08 +00009320 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009321fi
Reid Spencera773bd52006-08-04 18:18:08 +00009322
Scott Michel96dcd2b2007-12-05 21:24:02 +00009323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009324 conftest$ac_exeext conftest.$ac_ext
9325LIBS=$ac_check_lib_save_LIBS
9326fi
Reid Spencera773bd52006-08-04 18:18:08 +00009327{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9328echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329if test $ac_cv_lib_dld_shl_load = yes; then
9330
9331cat >>confdefs.h <<\_ACEOF
9332#define HAVE_SHL_LOAD 1
9333_ACEOF
9334
9335 LIBADD_DL="$LIBADD_DL -ldld"
9336else
Reid Spencera773bd52006-08-04 18:18:08 +00009337 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9338echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342 ac_check_lib_save_LIBS=$LIBS
9343LIBS="-ldl $LIBS"
9344cat >conftest.$ac_ext <<_ACEOF
9345/* confdefs.h. */
9346_ACEOF
9347cat confdefs.h >>conftest.$ac_ext
9348cat >>conftest.$ac_ext <<_ACEOF
9349/* end confdefs.h. */
9350
Reid Spencera773bd52006-08-04 18:18:08 +00009351/* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009354#ifdef __cplusplus
9355extern "C"
9356#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357char dlopen ();
9358int
9359main ()
9360{
Reid Spencera773bd52006-08-04 18:18:08 +00009361return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362 ;
9363 return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009367if { (ac_try="$ac_link"
9368case "(($ac_try" in
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9371esac
9372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009379 (exit $ac_status); } && {
9380 test -z "$ac_c_werror_flag" ||
9381 test ! -s conftest.err
9382 } && test -s conftest$ac_exeext &&
9383 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009384 ac_cv_lib_dl_dlopen=yes
9385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
Reid Spencera773bd52006-08-04 18:18:08 +00009389 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390fi
Reid Spencera773bd52006-08-04 18:18:08 +00009391
Scott Michel96dcd2b2007-12-05 21:24:02 +00009392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393 conftest$ac_exeext conftest.$ac_ext
9394LIBS=$ac_check_lib_save_LIBS
9395fi
Reid Spencera773bd52006-08-04 18:18:08 +00009396{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9397echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398if test $ac_cv_lib_dl_dlopen = yes; then
9399
9400cat >>confdefs.h <<\_ACEOF
9401#define HAVE_LIBDL 1
9402_ACEOF
9403
9404 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9405else
9406 cat >conftest.$ac_ext <<_ACEOF
9407/* confdefs.h. */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h. */
9412#if HAVE_DLFCN_H
9413# include <dlfcn.h>
9414#endif
9415
9416int
9417main ()
9418{
9419dlopen(0, 0);
9420 ;
9421 return 0;
9422}
9423_ACEOF
9424rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009425if { (ac_try="$ac_link"
9426case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9429esac
9430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest$ac_exeext &&
9441 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442
9443cat >>confdefs.h <<\_ACEOF
9444#define HAVE_LIBDL 1
9445_ACEOF
9446 libltdl_cv_func_dlopen="yes"
9447else
9448 echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9450
Reid Spencera773bd52006-08-04 18:18:08 +00009451 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9452echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 ac_check_lib_save_LIBS=$LIBS
9457LIBS="-lsvld $LIBS"
9458cat >conftest.$ac_ext <<_ACEOF
9459/* confdefs.h. */
9460_ACEOF
9461cat confdefs.h >>conftest.$ac_ext
9462cat >>conftest.$ac_ext <<_ACEOF
9463/* end confdefs.h. */
9464
Reid Spencera773bd52006-08-04 18:18:08 +00009465/* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468#ifdef __cplusplus
9469extern "C"
9470#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471char dlopen ();
9472int
9473main ()
9474{
Reid Spencera773bd52006-08-04 18:18:08 +00009475return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009476 ;
9477 return 0;
9478}
9479_ACEOF
9480rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009481if { (ac_try="$ac_link"
9482case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485esac
9486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest$ac_exeext &&
9497 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009498 ac_cv_lib_svld_dlopen=yes
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9502
Reid Spencera773bd52006-08-04 18:18:08 +00009503 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009504fi
Reid Spencera773bd52006-08-04 18:18:08 +00009505
Scott Michel96dcd2b2007-12-05 21:24:02 +00009506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507 conftest$ac_exeext conftest.$ac_ext
9508LIBS=$ac_check_lib_save_LIBS
9509fi
Reid Spencera773bd52006-08-04 18:18:08 +00009510{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9511echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512if test $ac_cv_lib_svld_dlopen = yes; then
9513
9514cat >>confdefs.h <<\_ACEOF
9515#define HAVE_LIBDL 1
9516_ACEOF
9517
9518 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9519else
Reid Spencera773bd52006-08-04 18:18:08 +00009520 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9521echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525 ac_check_lib_save_LIBS=$LIBS
9526LIBS="-ldld $LIBS"
9527cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533
Reid Spencera773bd52006-08-04 18:18:08 +00009534/* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537#ifdef __cplusplus
9538extern "C"
9539#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540char dld_link ();
9541int
9542main ()
9543{
Reid Spencera773bd52006-08-04 18:18:08 +00009544return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545 ;
9546 return 0;
9547}
9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009550if { (ac_try="$ac_link"
9551case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554esac
9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009562 (exit $ac_status); } && {
9563 test -z "$ac_c_werror_flag" ||
9564 test ! -s conftest.err
9565 } && test -s conftest$ac_exeext &&
9566 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009567 ac_cv_lib_dld_dld_link=yes
9568else
9569 echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
Reid Spencera773bd52006-08-04 18:18:08 +00009572 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573fi
Reid Spencera773bd52006-08-04 18:18:08 +00009574
Scott Michel96dcd2b2007-12-05 21:24:02 +00009575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009576 conftest$ac_exeext conftest.$ac_ext
9577LIBS=$ac_check_lib_save_LIBS
9578fi
Reid Spencera773bd52006-08-04 18:18:08 +00009579{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9580echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581if test $ac_cv_lib_dld_dld_link = yes; then
9582
9583cat >>confdefs.h <<\_ACEOF
9584#define HAVE_DLD 1
9585_ACEOF
9586
9587 LIBADD_DL="$LIBADD_DL -ldld"
9588else
Reid Spencera773bd52006-08-04 18:18:08 +00009589 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9590echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009591if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593else
9594 cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602#define _dyld_func_lookup innocuous__dyld_func_lookup
9603
9604/* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char _dyld_func_lookup (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9608
9609#ifdef __STDC__
9610# include <limits.h>
9611#else
9612# include <assert.h>
9613#endif
9614
9615#undef _dyld_func_lookup
9616
Reid Spencera773bd52006-08-04 18:18:08 +00009617/* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009620#ifdef __cplusplus
9621extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009623char _dyld_func_lookup ();
9624/* The GNU C library defines this for functions which it implements
9625 to always fail with ENOSYS. Some functions are actually named
9626 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009627#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629#endif
9630
9631int
9632main ()
9633{
Reid Spencera773bd52006-08-04 18:18:08 +00009634return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635 ;
9636 return 0;
9637}
9638_ACEOF
9639rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009640if { (ac_try="$ac_link"
9641case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9644esac
9645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647 ac_status=$?
9648 grep -v '^ *+' conftest.er1 >conftest.err
9649 rm -f conftest.er1
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009652 (exit $ac_status); } && {
9653 test -z "$ac_c_werror_flag" ||
9654 test ! -s conftest.err
9655 } && test -s conftest$ac_exeext &&
9656 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657 ac_cv_func__dyld_func_lookup=yes
9658else
9659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
Reid Spencera773bd52006-08-04 18:18:08 +00009662 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663fi
Reid Spencera773bd52006-08-04 18:18:08 +00009664
Scott Michel96dcd2b2007-12-05 21:24:02 +00009665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 conftest$ac_exeext conftest.$ac_ext
9667fi
Reid Spencera773bd52006-08-04 18:18:08 +00009668{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9669echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670if test $ac_cv_func__dyld_func_lookup = yes; then
9671
9672cat >>confdefs.h <<\_ACEOF
9673#define HAVE_DYLD 1
9674_ACEOF
9675
9676fi
9677
9678
9679fi
9680
9681
9682fi
9683
9684
9685fi
Reid Spencera773bd52006-08-04 18:18:08 +00009686
Scott Michel96dcd2b2007-12-05 21:24:02 +00009687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 conftest$ac_exeext conftest.$ac_ext
9689
9690fi
9691
9692
9693fi
9694
9695
9696fi
9697
9698
9699if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9700then
9701 lt_save_LIBS="$LIBS"
9702 LIBS="$LIBS $LIBADD_DL"
9703
9704for ac_func in dlerror
9705do
9706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009707{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9709if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711else
9712 cat >conftest.$ac_ext <<_ACEOF
9713/* confdefs.h. */
9714_ACEOF
9715cat confdefs.h >>conftest.$ac_ext
9716cat >>conftest.$ac_ext <<_ACEOF
9717/* end confdefs.h. */
9718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9720#define $ac_func innocuous_$ac_func
9721
9722/* System header to define __stub macros and hopefully few prototypes,
9723 which can conflict with char $ac_func (); below.
9724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9725 <limits.h> exists even on freestanding compilers. */
9726
9727#ifdef __STDC__
9728# include <limits.h>
9729#else
9730# include <assert.h>
9731#endif
9732
9733#undef $ac_func
9734
Reid Spencera773bd52006-08-04 18:18:08 +00009735/* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738#ifdef __cplusplus
9739extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741char $ac_func ();
9742/* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009745#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747#endif
9748
9749int
9750main ()
9751{
Reid Spencera773bd52006-08-04 18:18:08 +00009752return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753 ;
9754 return 0;
9755}
9756_ACEOF
9757rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009758if { (ac_try="$ac_link"
9759case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762esac
9763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext &&
9774 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775 eval "$as_ac_var=yes"
9776else
9777 echo "$as_me: failed program was:" >&5
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
Reid Spencera773bd52006-08-04 18:18:08 +00009780 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781fi
Reid Spencera773bd52006-08-04 18:18:08 +00009782
Scott Michel96dcd2b2007-12-05 21:24:02 +00009783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784 conftest$ac_exeext conftest.$ac_ext
9785fi
Reid Spencera773bd52006-08-04 18:18:08 +00009786ac_res=`eval echo '${'$as_ac_var'}'`
9787 { echo "$as_me:$LINENO: result: $ac_res" >&5
9788echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789if test `eval echo '${'$as_ac_var'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9792_ACEOF
9793
9794fi
9795done
9796
9797 LIBS="$lt_save_LIBS"
9798fi
9799ac_ext=c
9800ac_cpp='$CPP $CPPFLAGS'
9801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9803ac_compiler_gnu=$ac_cv_c_compiler_gnu
9804
9805
9806
Reid Spencera773bd52006-08-04 18:18:08 +00009807{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9808echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811else
9812 ac_cv_sys_symbol_underscore=no
9813 cat > conftest.$ac_ext <<EOF
9814void nm_test_func(){}
9815int main(){nm_test_func;return 0;}
9816EOF
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; then
9822 # Now try to grab the symbols.
9823 ac_nlist=conftest.nm
9824 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9825 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && test -s "$ac_nlist"; then
9829 # See whether the symbols have a leading underscore.
9830 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9831 ac_cv_sys_symbol_underscore=yes
9832 else
9833 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9834 :
9835 else
9836 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9837 fi
9838 fi
9839 else
9840 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9841 fi
9842 else
9843 echo "configure: failed program was:" >&5
9844 cat conftest.c >&5
9845 fi
9846 rm -rf conftest*
9847
9848fi
Reid Spencera773bd52006-08-04 18:18:08 +00009849{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9850echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851
9852
9853if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9854 if test x"$libltdl_cv_func_dlopen" = xyes ||
9855 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +00009856 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9857echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858if test "${libltdl_cv_need_uscore+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861 libltdl_cv_need_uscore=unknown
9862 save_LIBS="$LIBS"
9863 LIBS="$LIBS $LIBADD_DL"
9864 if test "$cross_compiling" = yes; then :
9865 libltdl_cv_need_uscore=cross
9866else
9867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868 lt_status=$lt_dlunknown
9869 cat > conftest.$ac_ext <<EOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00009870#line 9870 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871#include "confdefs.h"
9872
9873#if HAVE_DLFCN_H
9874#include <dlfcn.h>
9875#endif
9876
9877#include <stdio.h>
9878
9879#ifdef RTLD_GLOBAL
9880# define LT_DLGLOBAL RTLD_GLOBAL
9881#else
9882# ifdef DL_GLOBAL
9883# define LT_DLGLOBAL DL_GLOBAL
9884# else
9885# define LT_DLGLOBAL 0
9886# endif
9887#endif
9888
9889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890 find out it does not work in some platform. */
9891#ifndef LT_DLLAZY_OR_NOW
9892# ifdef RTLD_LAZY
9893# define LT_DLLAZY_OR_NOW RTLD_LAZY
9894# else
9895# ifdef DL_LAZY
9896# define LT_DLLAZY_OR_NOW DL_LAZY
9897# else
9898# ifdef RTLD_NOW
9899# define LT_DLLAZY_OR_NOW RTLD_NOW
9900# else
9901# ifdef DL_NOW
9902# define LT_DLLAZY_OR_NOW DL_NOW
9903# else
9904# define LT_DLLAZY_OR_NOW 0
9905# endif
9906# endif
9907# endif
9908# endif
9909#endif
9910
9911#ifdef __cplusplus
9912extern "C" void exit (int);
9913#endif
9914
9915void fnord() { int i=42;}
9916int main ()
9917{
9918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919 int status = $lt_dlunknown;
9920
9921 if (self)
9922 {
9923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925 /* dlclose (self); */
9926 }
Reid Spencera773bd52006-08-04 18:18:08 +00009927 else
9928 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929
9930 exit (status);
9931}
9932EOF
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +00009938 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939 lt_status=$?
9940 case x$lt_status in
9941 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9942 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009943 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 esac
9945 else :
9946 # compilation failed
9947
9948 fi
9949fi
9950rm -fr conftest*
9951
9952 LIBS="$save_LIBS"
9953
9954fi
Reid Spencera773bd52006-08-04 18:18:08 +00009955{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9956echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957 fi
9958fi
9959
9960if test x"$libltdl_cv_need_uscore" = xyes; then
9961
9962cat >>confdefs.h <<\_ACEOF
9963#define NEED_USCORE 1
9964_ACEOF
9965
9966fi
9967
9968
Reid Spencera773bd52006-08-04 18:18:08 +00009969{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9970echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 # PORTME does your system automatically load deplibs for dlopen?
9975 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9976 # For now, we just catch OSes we know something about -- in the
9977 # future, we'll try test this programmatically.
9978 libltdl_cv_sys_dlopen_deplibs=unknown
9979 case "$host_os" in
9980 aix3*|aix4.1.*|aix4.2.*)
9981 # Unknown whether this is true for these versions of AIX, but
9982 # we want this `case' here to explicitly catch those versions.
9983 libltdl_cv_sys_dlopen_deplibs=unknown
9984 ;;
9985 aix[45]*)
9986 libltdl_cv_sys_dlopen_deplibs=yes
9987 ;;
9988 darwin*)
9989 # Assuming the user has installed a libdl from somewhere, this is true
9990 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9991 libltdl_cv_sys_dlopen_deplibs=yes
9992 ;;
9993 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9994 # GNU and its variants, using gnu ld.so (Glibc)
9995 libltdl_cv_sys_dlopen_deplibs=yes
9996 ;;
9997 hpux10*|hpux11*)
9998 libltdl_cv_sys_dlopen_deplibs=yes
9999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010000 interix*)
10001 libltdl_cv_sys_dlopen_deplibs=yes
10002 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003 irix[12345]*|irix6.[01]*)
10004 # Catch all versions of IRIX before 6.2, and indicate that we don't
10005 # know how it worked for any of those versions.
10006 libltdl_cv_sys_dlopen_deplibs=unknown
10007 ;;
10008 irix*)
10009 # The case above catches anything before 6.2, and it's known that
10010 # at 6.2 and later dlopen does load deplibs.
10011 libltdl_cv_sys_dlopen_deplibs=yes
10012 ;;
10013 netbsd*)
10014 libltdl_cv_sys_dlopen_deplibs=yes
10015 ;;
10016 openbsd*)
10017 libltdl_cv_sys_dlopen_deplibs=yes
10018 ;;
10019 osf[1234]*)
10020 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10021 # it did *not* use an RPATH in a shared library to find objects the
10022 # library depends on, so we explictly say `no'.
10023 libltdl_cv_sys_dlopen_deplibs=no
10024 ;;
10025 osf5.0|osf5.0a|osf5.1)
10026 # dlopen *does* load deplibs and with the right loader patch applied
10027 # it even uses RPATH in a shared library to search for shared objects
10028 # that the library depends on, but there's no easy way to know if that
10029 # patch is installed. Since this is the case, all we can really
10030 # say is unknown -- it depends on the patch being installed. If
10031 # it is, this changes to `yes'. Without it, it would be `no'.
10032 libltdl_cv_sys_dlopen_deplibs=unknown
10033 ;;
10034 osf*)
10035 # the two cases above should catch all versions of osf <= 5.1. Read
10036 # the comments above for what we know about them.
10037 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10038 # is used to find them so we can finally say `yes'.
10039 libltdl_cv_sys_dlopen_deplibs=yes
10040 ;;
10041 solaris*)
10042 libltdl_cv_sys_dlopen_deplibs=yes
10043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10045 libltdl_cv_sys_dlopen_deplibs=yes
10046 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 esac
10048
10049fi
Reid Spencera773bd52006-08-04 18:18:08 +000010050{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10051echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10053
10054cat >>confdefs.h <<\_ACEOF
10055#define LTDL_DLOPEN_DEPLIBS 1
10056_ACEOF
10057
10058fi
10059
10060
10061for ac_header in argz.h
10062do
10063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069fi
Reid Spencera773bd52006-08-04 18:18:08 +000010070ac_res=`eval echo '${'$as_ac_Header'}'`
10071 { echo "$as_me:$LINENO: result: $ac_res" >&5
10072echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073else
10074 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010075{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083$ac_includes_default
10084#include <$ac_header>
10085_ACEOF
10086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010087if { (ac_try="$ac_compile"
10088case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091esac
10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010103 ac_header_compiler=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
Reid Spencera773bd52006-08-04 18:18:08 +000010108 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109fi
Reid Spencera773bd52006-08-04 18:18:08 +000010110
10111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114
10115# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
10124#include <$ac_header>
10125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010126if { (ac_try="$ac_cpp conftest.$ac_ext"
10127case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130esac
10131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010138 (exit $ac_status); } >/dev/null && {
10139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142 ac_header_preproc=yes
10143else
10144 echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 ac_header_preproc=no
10148fi
Reid Spencera773bd52006-08-04 18:18:08 +000010149
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010151{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10152echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153
10154# So? What about this header?
10155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10156 yes:no: )
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10161 ac_header_preproc=yes
10162 ;;
10163 no:yes:* )
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010176 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177## ----------------------------------- ##
10178## Report this to llvmbugs@cs.uiuc.edu ##
10179## ----------------------------------- ##
10180_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010181 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182 ;;
10183esac
Reid Spencera773bd52006-08-04 18:18:08 +000010184{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188else
10189 eval "$as_ac_Header=\$ac_header_preproc"
10190fi
Reid Spencera773bd52006-08-04 18:18:08 +000010191ac_res=`eval echo '${'$as_ac_Header'}'`
10192 { echo "$as_me:$LINENO: result: $ac_res" >&5
10193echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194
10195fi
10196if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199_ACEOF
10200
10201fi
10202
10203done
10204
10205
Reid Spencera773bd52006-08-04 18:18:08 +000010206{ echo "$as_me:$LINENO: checking for error_t" >&5
10207echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208if test "${ac_cv_type_error_t+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211 cat >conftest.$ac_ext <<_ACEOF
10212/* confdefs.h. */
10213_ACEOF
10214cat confdefs.h >>conftest.$ac_ext
10215cat >>conftest.$ac_ext <<_ACEOF
10216/* end confdefs.h. */
10217#if HAVE_ARGZ_H
10218# include <argz.h>
10219#endif
10220
Reid Spencera773bd52006-08-04 18:18:08 +000010221typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222int
10223main ()
10224{
Reid Spencera773bd52006-08-04 18:18:08 +000010225if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010227if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228 return 0;
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010234if { (ac_try="$ac_compile"
10235case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010250 ac_cv_type_error_t=yes
10251else
10252 echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
Reid Spencera773bd52006-08-04 18:18:08 +000010255 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256fi
Reid Spencera773bd52006-08-04 18:18:08 +000010257
10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259fi
Reid Spencera773bd52006-08-04 18:18:08 +000010260{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10261echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262if test $ac_cv_type_error_t = yes; then
10263
10264cat >>confdefs.h <<_ACEOF
10265#define HAVE_ERROR_T 1
10266_ACEOF
10267
10268
10269else
10270
10271cat >>confdefs.h <<\_ACEOF
10272#define error_t int
10273_ACEOF
10274
10275fi
10276
10277
10278
10279
10280
10281
10282
10283for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10284do
10285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290else
10291 cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10299#define $ac_func innocuous_$ac_func
10300
10301/* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char $ac_func (); below.
10303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304 <limits.h> exists even on freestanding compilers. */
10305
10306#ifdef __STDC__
10307# include <limits.h>
10308#else
10309# include <assert.h>
10310#endif
10311
10312#undef $ac_func
10313
Reid Spencera773bd52006-08-04 18:18:08 +000010314/* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317#ifdef __cplusplus
10318extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320char $ac_func ();
10321/* The GNU C library defines this for functions which it implements
10322 to always fail with ENOSYS. Some functions are actually named
10323 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010324#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010326#endif
10327
10328int
10329main ()
10330{
Reid Spencera773bd52006-08-04 18:18:08 +000010331return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332 ;
10333 return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010337if { (ac_try="$ac_link"
10338case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341esac
10342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest$ac_exeext &&
10353 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010354 eval "$as_ac_var=yes"
10355else
10356 echo "$as_me: failed program was:" >&5
10357sed 's/^/| /' conftest.$ac_ext >&5
10358
Reid Spencera773bd52006-08-04 18:18:08 +000010359 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360fi
Reid Spencera773bd52006-08-04 18:18:08 +000010361
Scott Michel96dcd2b2007-12-05 21:24:02 +000010362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363 conftest$ac_exeext conftest.$ac_ext
10364fi
Reid Spencera773bd52006-08-04 18:18:08 +000010365ac_res=`eval echo '${'$as_ac_var'}'`
10366 { echo "$as_me:$LINENO: result: $ac_res" >&5
10367echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368if test `eval echo '${'$as_ac_var'}'` = yes; then
10369 cat >>confdefs.h <<_ACEOF
10370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10371_ACEOF
10372
10373fi
10374done
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10404 stdio.h unistd.h
10405do
10406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412fi
Reid Spencera773bd52006-08-04 18:18:08 +000010413ac_res=`eval echo '${'$as_ac_Header'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416else
10417 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426$ac_includes_default
10427#include <$ac_header>
10428_ACEOF
10429rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010430if { (ac_try="$ac_compile"
10431case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 ac_header_compiler=yes
10447else
10448 echo "$as_me: failed program was:" >&5
10449sed 's/^/| /' conftest.$ac_ext >&5
10450
Reid Spencera773bd52006-08-04 18:18:08 +000010451 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452fi
Reid Spencera773bd52006-08-04 18:18:08 +000010453
10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457
10458# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461cat >conftest.$ac_ext <<_ACEOF
10462/* confdefs.h. */
10463_ACEOF
10464cat confdefs.h >>conftest.$ac_ext
10465cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h. */
10467#include <$ac_header>
10468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010469if { (ac_try="$ac_cpp conftest.$ac_ext"
10470case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010481 (exit $ac_status); } >/dev/null && {
10482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 ac_header_preproc=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ac_header_preproc=no
10491fi
Reid Spencera773bd52006-08-04 18:18:08 +000010492
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010494{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496
10497# So? What about this header?
10498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10499 yes:no: )
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10504 ac_header_preproc=yes
10505 ;;
10506 no:yes:* )
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010519 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520## ----------------------------------- ##
10521## Report this to llvmbugs@cs.uiuc.edu ##
10522## ----------------------------------- ##
10523_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010524 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 ;;
10526esac
Reid Spencera773bd52006-08-04 18:18:08 +000010527{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532 eval "$as_ac_Header=\$ac_header_preproc"
10533fi
Reid Spencera773bd52006-08-04 18:18:08 +000010534ac_res=`eval echo '${'$as_ac_Header'}'`
10535 { echo "$as_me:$LINENO: result: $ac_res" >&5
10536echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537
10538fi
10539if test `eval echo '${'$as_ac_Header'}'` = yes; then
10540 cat >>confdefs.h <<_ACEOF
10541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10542_ACEOF
10543
10544fi
10545
10546done
10547
10548
10549
10550
10551
10552for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10553do
10554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559 echo $ECHO_N "(cached) $ECHO_C" >&6
10560fi
Reid Spencera773bd52006-08-04 18:18:08 +000010561ac_res=`eval echo '${'$as_ac_Header'}'`
10562 { echo "$as_me:$LINENO: result: $ac_res" >&5
10563echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564else
10565 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010566{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574$ac_includes_default
10575#include <$ac_header>
10576_ACEOF
10577rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010578if { (ac_try="$ac_compile"
10579case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582esac
10583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594 ac_header_compiler=yes
10595else
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
Reid Spencera773bd52006-08-04 18:18:08 +000010599 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600fi
Reid Spencera773bd52006-08-04 18:18:08 +000010601
10602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10604echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605
10606# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010607{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h. */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h. */
10615#include <$ac_header>
10616_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010617if { (ac_try="$ac_cpp conftest.$ac_ext"
10618case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010629 (exit $ac_status); } >/dev/null && {
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633 ac_header_preproc=yes
10634else
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_header_preproc=no
10639fi
Reid Spencera773bd52006-08-04 18:18:08 +000010640
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644
10645# So? What about this header?
10646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10647 yes:no: )
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc=yes
10653 ;;
10654 no:yes:* )
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010667 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668## ----------------------------------- ##
10669## Report this to llvmbugs@cs.uiuc.edu ##
10670## ----------------------------------- ##
10671_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010672 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673 ;;
10674esac
Reid Spencera773bd52006-08-04 18:18:08 +000010675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680 eval "$as_ac_Header=\$ac_header_preproc"
10681fi
Reid Spencera773bd52006-08-04 18:18:08 +000010682ac_res=`eval echo '${'$as_ac_Header'}'`
10683 { echo "$as_me:$LINENO: result: $ac_res" >&5
10684echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685
10686fi
10687if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690_ACEOF
10691
10692fi
10693
10694done
10695
10696
10697
10698for ac_header in string.h strings.h
10699do
10700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706fi
Reid Spencera773bd52006-08-04 18:18:08 +000010707ac_res=`eval echo '${'$as_ac_Header'}'`
10708 { echo "$as_me:$LINENO: result: $ac_res" >&5
10709echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710else
10711 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h. */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h. */
10720$ac_includes_default
10721#include <$ac_header>
10722_ACEOF
10723rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010724if { (ac_try="$ac_compile"
10725case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728esac
10729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731 ac_status=$?
10732 grep -v '^ *+' conftest.er1 >conftest.err
10733 rm -f conftest.er1
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010736 (exit $ac_status); } && {
10737 test -z "$ac_c_werror_flag" ||
10738 test ! -s conftest.err
10739 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 ac_header_compiler=yes
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
Reid Spencera773bd52006-08-04 18:18:08 +000010745 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746fi
Reid Spencera773bd52006-08-04 18:18:08 +000010747
10748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751
10752# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761#include <$ac_header>
10762_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010763if { (ac_try="$ac_cpp conftest.$ac_ext"
10764case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010775 (exit $ac_status); } >/dev/null && {
10776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010779 ac_header_preproc=yes
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 ac_header_preproc=no
10785fi
Reid Spencera773bd52006-08-04 18:18:08 +000010786
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790
10791# So? What about this header?
10792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793 yes:no: )
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10799 ;;
10800 no:yes:* )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010813 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814## ----------------------------------- ##
10815## Report this to llvmbugs@cs.uiuc.edu ##
10816## ----------------------------------- ##
10817_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010818 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 ;;
10820esac
Reid Spencera773bd52006-08-04 18:18:08 +000010821{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826 eval "$as_ac_Header=\$ac_header_preproc"
10827fi
Reid Spencera773bd52006-08-04 18:18:08 +000010828ac_res=`eval echo '${'$as_ac_Header'}'`
10829 { echo "$as_me:$LINENO: result: $ac_res" >&5
10830echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831
10832fi
10833if test `eval echo '${'$as_ac_Header'}'` = yes; then
10834 cat >>confdefs.h <<_ACEOF
10835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10836_ACEOF
10837 break
10838fi
10839
10840done
10841
10842
10843
10844
10845for ac_func in strchr index
10846do
10847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010848{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10850if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 cat >conftest.$ac_ext <<_ACEOF
10854/* confdefs.h. */
10855_ACEOF
10856cat confdefs.h >>conftest.$ac_ext
10857cat >>conftest.$ac_ext <<_ACEOF
10858/* end confdefs.h. */
10859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10861#define $ac_func innocuous_$ac_func
10862
10863/* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char $ac_func (); below.
10865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866 <limits.h> exists even on freestanding compilers. */
10867
10868#ifdef __STDC__
10869# include <limits.h>
10870#else
10871# include <assert.h>
10872#endif
10873
10874#undef $ac_func
10875
Reid Spencera773bd52006-08-04 18:18:08 +000010876/* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879#ifdef __cplusplus
10880extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882char $ac_func ();
10883/* The GNU C library defines this for functions which it implements
10884 to always fail with ENOSYS. Some functions are actually named
10885 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010886#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010888#endif
10889
10890int
10891main ()
10892{
Reid Spencera773bd52006-08-04 18:18:08 +000010893return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894 ;
10895 return 0;
10896}
10897_ACEOF
10898rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010899if { (ac_try="$ac_link"
10900case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest$ac_exeext &&
10915 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916 eval "$as_ac_var=yes"
10917else
10918 echo "$as_me: failed program was:" >&5
10919sed 's/^/| /' conftest.$ac_ext >&5
10920
Reid Spencera773bd52006-08-04 18:18:08 +000010921 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922fi
Reid Spencera773bd52006-08-04 18:18:08 +000010923
Scott Michel96dcd2b2007-12-05 21:24:02 +000010924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925 conftest$ac_exeext conftest.$ac_ext
10926fi
Reid Spencera773bd52006-08-04 18:18:08 +000010927ac_res=`eval echo '${'$as_ac_var'}'`
10928 { echo "$as_me:$LINENO: result: $ac_res" >&5
10929echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930if test `eval echo '${'$as_ac_var'}'` = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933_ACEOF
10934 break
10935fi
10936done
10937
10938
10939
10940for ac_func in strrchr rindex
10941do
10942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948 cat >conftest.$ac_ext <<_ACEOF
10949/* confdefs.h. */
10950_ACEOF
10951cat confdefs.h >>conftest.$ac_ext
10952cat >>conftest.$ac_ext <<_ACEOF
10953/* end confdefs.h. */
10954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10956#define $ac_func innocuous_$ac_func
10957
10958/* System header to define __stub macros and hopefully few prototypes,
10959 which can conflict with char $ac_func (); below.
10960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961 <limits.h> exists even on freestanding compilers. */
10962
10963#ifdef __STDC__
10964# include <limits.h>
10965#else
10966# include <assert.h>
10967#endif
10968
10969#undef $ac_func
10970
Reid Spencera773bd52006-08-04 18:18:08 +000010971/* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974#ifdef __cplusplus
10975extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977char $ac_func ();
10978/* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010981#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983#endif
10984
10985int
10986main ()
10987{
Reid Spencera773bd52006-08-04 18:18:08 +000010988return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989 ;
10990 return 0;
10991}
10992_ACEOF
10993rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010994if { (ac_try="$ac_link"
10995case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest$ac_exeext &&
11010 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011 eval "$as_ac_var=yes"
11012else
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
Reid Spencera773bd52006-08-04 18:18:08 +000011016 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017fi
Reid Spencera773bd52006-08-04 18:18:08 +000011018
Scott Michel96dcd2b2007-12-05 21:24:02 +000011019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020 conftest$ac_exeext conftest.$ac_ext
11021fi
Reid Spencera773bd52006-08-04 18:18:08 +000011022ac_res=`eval echo '${'$as_ac_var'}'`
11023 { echo "$as_me:$LINENO: result: $ac_res" >&5
11024echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025if test `eval echo '${'$as_ac_var'}'` = yes; then
11026 cat >>confdefs.h <<_ACEOF
11027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11028_ACEOF
11029 break
11030fi
11031done
11032
11033
11034
11035for ac_func in memcpy bcopy
11036do
11037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011038{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042else
11043 cat >conftest.$ac_ext <<_ACEOF
11044/* confdefs.h. */
11045_ACEOF
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
11048/* end confdefs.h. */
11049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11051#define $ac_func innocuous_$ac_func
11052
11053/* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char $ac_func (); below.
11055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056 <limits.h> exists even on freestanding compilers. */
11057
11058#ifdef __STDC__
11059# include <limits.h>
11060#else
11061# include <assert.h>
11062#endif
11063
11064#undef $ac_func
11065
Reid Spencera773bd52006-08-04 18:18:08 +000011066/* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069#ifdef __cplusplus
11070extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072char $ac_func ();
11073/* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011076#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078#endif
11079
11080int
11081main ()
11082{
Reid Spencera773bd52006-08-04 18:18:08 +000011083return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 ;
11085 return 0;
11086}
11087_ACEOF
11088rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011089if { (ac_try="$ac_link"
11090case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext &&
11105 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011106 eval "$as_ac_var=yes"
11107else
11108 echo "$as_me: failed program was:" >&5
11109sed 's/^/| /' conftest.$ac_ext >&5
11110
Reid Spencera773bd52006-08-04 18:18:08 +000011111 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112fi
Reid Spencera773bd52006-08-04 18:18:08 +000011113
Scott Michel96dcd2b2007-12-05 21:24:02 +000011114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115 conftest$ac_exeext conftest.$ac_ext
11116fi
Reid Spencera773bd52006-08-04 18:18:08 +000011117ac_res=`eval echo '${'$as_ac_var'}'`
11118 { echo "$as_me:$LINENO: result: $ac_res" >&5
11119echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120if test `eval echo '${'$as_ac_var'}'` = yes; then
11121 cat >>confdefs.h <<_ACEOF
11122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11123_ACEOF
11124 break
11125fi
11126done
11127
11128
11129
11130for ac_func in memmove strcmp
11131do
11132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011133{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11135if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137else
11138 cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */
11140_ACEOF
11141cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */
11144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11146#define $ac_func innocuous_$ac_func
11147
11148/* System header to define __stub macros and hopefully few prototypes,
11149 which can conflict with char $ac_func (); below.
11150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11151 <limits.h> exists even on freestanding compilers. */
11152
11153#ifdef __STDC__
11154# include <limits.h>
11155#else
11156# include <assert.h>
11157#endif
11158
11159#undef $ac_func
11160
Reid Spencera773bd52006-08-04 18:18:08 +000011161/* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164#ifdef __cplusplus
11165extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167char $ac_func ();
11168/* The GNU C library defines this for functions which it implements
11169 to always fail with ENOSYS. Some functions are actually named
11170 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011171#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173#endif
11174
11175int
11176main ()
11177{
Reid Spencera773bd52006-08-04 18:18:08 +000011178return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011184if { (ac_try="$ac_link"
11185case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011196 (exit $ac_status); } && {
11197 test -z "$ac_c_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext &&
11200 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201 eval "$as_ac_var=yes"
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
Reid Spencera773bd52006-08-04 18:18:08 +000011206 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207fi
Reid Spencera773bd52006-08-04 18:18:08 +000011208
Scott Michel96dcd2b2007-12-05 21:24:02 +000011209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210 conftest$ac_exeext conftest.$ac_ext
11211fi
Reid Spencera773bd52006-08-04 18:18:08 +000011212ac_res=`eval echo '${'$as_ac_var'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215if test `eval echo '${'$as_ac_var'}'` = yes; then
11216 cat >>confdefs.h <<_ACEOF
11217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11218_ACEOF
11219
11220fi
11221done
11222
11223
11224
11225
11226for ac_func in closedir opendir readdir
11227do
11228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11242#define $ac_func innocuous_$ac_func
11243
11244/* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char $ac_func (); below.
11246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 <limits.h> exists even on freestanding compilers. */
11248
11249#ifdef __STDC__
11250# include <limits.h>
11251#else
11252# include <assert.h>
11253#endif
11254
11255#undef $ac_func
11256
Reid Spencera773bd52006-08-04 18:18:08 +000011257/* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260#ifdef __cplusplus
11261extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263char $ac_func ();
11264/* The GNU C library defines this for functions which it implements
11265 to always fail with ENOSYS. Some functions are actually named
11266 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011267#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269#endif
11270
11271int
11272main ()
11273{
Reid Spencera773bd52006-08-04 18:18:08 +000011274return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275 ;
11276 return 0;
11277}
11278_ACEOF
11279rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011280if { (ac_try="$ac_link"
11281case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest$ac_exeext &&
11296 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297 eval "$as_ac_var=yes"
11298else
11299 echo "$as_me: failed program was:" >&5
11300sed 's/^/| /' conftest.$ac_ext >&5
11301
Reid Spencera773bd52006-08-04 18:18:08 +000011302 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011303fi
Reid Spencera773bd52006-08-04 18:18:08 +000011304
Scott Michel96dcd2b2007-12-05 21:24:02 +000011305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306 conftest$ac_exeext conftest.$ac_ext
11307fi
Reid Spencera773bd52006-08-04 18:18:08 +000011308ac_res=`eval echo '${'$as_ac_var'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311if test `eval echo '${'$as_ac_var'}'` = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11314_ACEOF
11315
11316fi
11317done
11318
11319
Reid Spencera773bd52006-08-04 18:18:08 +000011320# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011322 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323 case $enableval in
11324 yes) enable_shared=yes ;;
11325 no) enable_shared=no ;;
11326 *)
11327 enable_shared=no
11328 # Look at the argument we got. We use all the common list separators.
11329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11330 for pkg in $enableval; do
11331 IFS="$lt_save_ifs"
11332 if test "X$pkg" = "X$p"; then
11333 enable_shared=yes
11334 fi
11335 done
11336 IFS="$lt_save_ifs"
11337 ;;
11338 esac
11339else
11340 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011341fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342
Reid Spencera773bd52006-08-04 18:18:08 +000011343
11344# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011346 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347 case $enableval in
11348 yes) enable_static=yes ;;
11349 no) enable_static=no ;;
11350 *)
11351 enable_static=no
11352 # Look at the argument we got. We use all the common list separators.
11353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11354 for pkg in $enableval; do
11355 IFS="$lt_save_ifs"
11356 if test "X$pkg" = "X$p"; then
11357 enable_static=yes
11358 fi
11359 done
11360 IFS="$lt_save_ifs"
11361 ;;
11362 esac
11363else
11364 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011365fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011366
Reid Spencera773bd52006-08-04 18:18:08 +000011367
11368# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011369if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011370 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371 case $enableval in
11372 yes) enable_fast_install=yes ;;
11373 no) enable_fast_install=no ;;
11374 *)
11375 enable_fast_install=no
11376 # Look at the argument we got. We use all the common list separators.
11377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11378 for pkg in $enableval; do
11379 IFS="$lt_save_ifs"
11380 if test "X$pkg" = "X$p"; then
11381 enable_fast_install=yes
11382 fi
11383 done
11384 IFS="$lt_save_ifs"
11385 ;;
11386 esac
11387else
11388 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011389fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390
Reid Spencera773bd52006-08-04 18:18:08 +000011391
11392{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11393echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394if test "${lt_cv_path_SED+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11396else
11397 # Loop through the user's path and test for sed and gsed.
11398# Then use that list of sed's as ones to test for truncation.
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for lt_ac_prog in sed gsed; do
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11407 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11408 fi
11409 done
11410 done
11411done
11412lt_ac_max=0
11413lt_ac_count=0
11414# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11415# along with /bin/sed that truncates output.
11416for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000011417 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418 cat /dev/null > conftest.in
11419 lt_ac_count=0
11420 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11421 # Check for GNU sed and select it if it is found.
11422 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11423 lt_cv_path_SED=$lt_ac_sed
11424 break
11425 fi
11426 while true; do
11427 cat conftest.in conftest.in >conftest.tmp
11428 mv conftest.tmp conftest.in
11429 cp conftest.in conftest.nl
11430 echo >>conftest.nl
11431 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11432 cmp -s conftest.out conftest.nl || break
11433 # 10000 chars as input seems more than enough
11434 test $lt_ac_count -gt 10 && break
11435 lt_ac_count=`expr $lt_ac_count + 1`
11436 if test $lt_ac_count -gt $lt_ac_max; then
11437 lt_ac_max=$lt_ac_count
11438 lt_cv_path_SED=$lt_ac_sed
11439 fi
11440 done
11441done
11442
11443fi
11444
11445SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000011446{ echo "$as_me:$LINENO: result: $SED" >&5
11447echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448
11449
Reid Spencera773bd52006-08-04 18:18:08 +000011450# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453else
11454 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000011455fi
11456
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457ac_prog=ld
11458if test "$GCC" = yes; then
11459 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000011460 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11461echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462 case $host in
11463 *-*-mingw*)
11464 # gcc leaves a trailing carriage return which upsets mingw
11465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11466 *)
11467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11468 esac
11469 case $ac_prog in
11470 # Accept absolute paths.
11471 [\\/]* | ?:[\\/]*)
11472 re_direlt='/[^/][^/]*/\.\./'
11473 # Canonicalize the pathname of ld
11474 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11475 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11476 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11477 done
11478 test -z "$LD" && LD="$ac_prog"
11479 ;;
11480 "")
11481 # If it fails, then pretend we aren't using GCC.
11482 ac_prog=ld
11483 ;;
11484 *)
11485 # If it is relative, then search for the first ld in PATH.
11486 with_gnu_ld=unknown
11487 ;;
11488 esac
11489elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000011490 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11491echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492else
Reid Spencera773bd52006-08-04 18:18:08 +000011493 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11494echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495fi
11496if test "${lt_cv_path_LD+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498else
11499 if test -z "$LD"; then
11500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11501 for ac_dir in $PATH; do
11502 IFS="$lt_save_ifs"
11503 test -z "$ac_dir" && ac_dir=.
11504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11505 lt_cv_path_LD="$ac_dir/$ac_prog"
11506 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000011507 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508 # Break only if it was the GNU/non-GNU ld that we prefer.
11509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11510 *GNU* | *'with BFD'*)
11511 test "$with_gnu_ld" != no && break
11512 ;;
11513 *)
11514 test "$with_gnu_ld" != yes && break
11515 ;;
11516 esac
11517 fi
11518 done
11519 IFS="$lt_save_ifs"
11520else
11521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11522fi
11523fi
11524
11525LD="$lt_cv_path_LD"
11526if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000011527 { echo "$as_me:$LINENO: result: $LD" >&5
11528echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529else
Reid Spencera773bd52006-08-04 18:18:08 +000011530 { echo "$as_me:$LINENO: result: no" >&5
11531echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532fi
11533test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11534echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11535 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000011536{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11537echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538if test "${lt_cv_prog_gnu_ld+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540else
Reid Spencera773bd52006-08-04 18:18:08 +000011541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542case `$LD -v 2>&1 </dev/null` in
11543*GNU* | *'with BFD'*)
11544 lt_cv_prog_gnu_ld=yes
11545 ;;
11546*)
11547 lt_cv_prog_gnu_ld=no
11548 ;;
11549esac
11550fi
Reid Spencera773bd52006-08-04 18:18:08 +000011551{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11552echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553with_gnu_ld=$lt_cv_prog_gnu_ld
11554
11555
Reid Spencera773bd52006-08-04 18:18:08 +000011556{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11557echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558if test "${lt_cv_ld_reload_flag+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560else
11561 lt_cv_ld_reload_flag='-r'
11562fi
Reid Spencera773bd52006-08-04 18:18:08 +000011563{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11564echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565reload_flag=$lt_cv_ld_reload_flag
11566case $reload_flag in
11567"" | " "*) ;;
11568*) reload_flag=" $reload_flag" ;;
11569esac
11570reload_cmds='$LD$reload_flag -o $output$reload_objs'
11571case $host_os in
11572 darwin*)
11573 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000011574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575 else
11576 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11577 fi
11578 ;;
11579esac
11580
Reid Spencera773bd52006-08-04 18:18:08 +000011581{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11582echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583if test "${lt_cv_deplibs_check_method+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 lt_cv_file_magic_cmd='$MAGIC_CMD'
11587lt_cv_file_magic_test_file=
11588lt_cv_deplibs_check_method='unknown'
11589# Need to set the preceding variable on all platforms that support
11590# interlibrary dependencies.
11591# 'none' -- dependencies not supported.
11592# `unknown' -- same as none, but documents that we really don't know.
11593# 'pass_all' -- all dependencies passed with no checks.
11594# 'test_compile' -- check by making test program.
11595# 'file_magic [[regex]]' -- check by looking for files in library path
11596# which responds to the $file_magic_cmd with a given extended regex.
11597# If you have `file' or equivalent on your system and you're not sure
11598# whether `pass_all' will *always* work, you probably want this one.
11599
11600case $host_os in
11601aix4* | aix5*)
11602 lt_cv_deplibs_check_method=pass_all
11603 ;;
11604
11605beos*)
11606 lt_cv_deplibs_check_method=pass_all
11607 ;;
11608
11609bsdi[45]*)
11610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11611 lt_cv_file_magic_cmd='/usr/bin/file -L'
11612 lt_cv_file_magic_test_file=/shlib/libc.so
11613 ;;
11614
11615cygwin*)
11616 # func_win32_libid is a shell function defined in ltmain.sh
11617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11618 lt_cv_file_magic_cmd='func_win32_libid'
11619 ;;
11620
11621mingw* | pw32*)
11622 # Base MSYS/MinGW do not provide the 'file' command needed by
11623 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11624 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11625 lt_cv_file_magic_cmd='$OBJDUMP -f'
11626 ;;
11627
11628darwin* | rhapsody*)
11629 lt_cv_deplibs_check_method=pass_all
11630 ;;
11631
Reid Spencera773bd52006-08-04 18:18:08 +000011632freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11634 case $host_cpu in
11635 i*86 )
11636 # Not sure whether the presence of OpenBSD here was a mistake.
11637 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000011638 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639 lt_cv_file_magic_cmd=/usr/bin/file
11640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11641 ;;
11642 esac
11643 else
11644 lt_cv_deplibs_check_method=pass_all
11645 fi
11646 ;;
11647
11648gnu*)
11649 lt_cv_deplibs_check_method=pass_all
11650 ;;
11651
11652hpux10.20* | hpux11*)
11653 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000011654 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011655 ia64*)
11656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11657 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11658 ;;
11659 hppa*64*)
11660 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]'
11661 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11662 ;;
11663 *)
11664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11665 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11666 ;;
11667 esac
11668 ;;
11669
Reid Spencera773bd52006-08-04 18:18:08 +000011670interix3*)
11671 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11673 ;;
11674
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675irix5* | irix6* | nonstopux*)
11676 case $LD in
11677 *-32|*"-32 ") libmagic=32-bit;;
11678 *-n32|*"-n32 ") libmagic=N32;;
11679 *-64|*"-64 ") libmagic=64-bit;;
11680 *) libmagic=never-match;;
11681 esac
11682 lt_cv_deplibs_check_method=pass_all
11683 ;;
11684
11685# This must be Linux ELF.
11686linux*)
11687 lt_cv_deplibs_check_method=pass_all
11688 ;;
11689
11690netbsd*)
11691 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11693 else
11694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11695 fi
11696 ;;
11697
11698newos6*)
11699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11700 lt_cv_file_magic_cmd=/usr/bin/file
11701 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11702 ;;
11703
11704nto-qnx*)
11705 lt_cv_deplibs_check_method=unknown
11706 ;;
11707
11708openbsd*)
11709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11711 else
11712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11713 fi
11714 ;;
11715
11716osf3* | osf4* | osf5*)
11717 lt_cv_deplibs_check_method=pass_all
11718 ;;
11719
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720solaris*)
11721 lt_cv_deplibs_check_method=pass_all
11722 ;;
11723
Reid Spencera773bd52006-08-04 18:18:08 +000011724sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725 case $host_vendor in
11726 motorola)
11727 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]'
11728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11729 ;;
11730 ncr)
11731 lt_cv_deplibs_check_method=pass_all
11732 ;;
11733 sequent)
11734 lt_cv_file_magic_cmd='/bin/file'
11735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11736 ;;
11737 sni)
11738 lt_cv_file_magic_cmd='/bin/file'
11739 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11740 lt_cv_file_magic_test_file=/lib/libc.so
11741 ;;
11742 siemens)
11743 lt_cv_deplibs_check_method=pass_all
11744 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011745 pc)
11746 lt_cv_deplibs_check_method=pass_all
11747 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748 esac
11749 ;;
11750
Reid Spencera773bd52006-08-04 18:18:08 +000011751sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 lt_cv_deplibs_check_method=pass_all
11753 ;;
11754esac
11755
11756fi
Reid Spencera773bd52006-08-04 18:18:08 +000011757{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11758echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759file_magic_cmd=$lt_cv_file_magic_cmd
11760deplibs_check_method=$lt_cv_deplibs_check_method
11761test -z "$deplibs_check_method" && deplibs_check_method=unknown
11762
11763
11764
11765# If no C compiler was specified, use CC.
11766LTCC=${LTCC-"$CC"}
11767
Reid Spencera773bd52006-08-04 18:18:08 +000011768# If no C compiler flags were specified, use CFLAGS.
11769LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11770
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011771# Allow CC to be a program name with arguments.
11772compiler=$CC
11773
Reid Spencera773bd52006-08-04 18:18:08 +000011774# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011776 enableval=$enable_libtool_lock;
11777fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11780
11781# Some flags need to be propagated to the compiler or linker for good
11782# libtool support.
11783case $host in
11784ia64-*-hpux*)
11785 # Find out which ABI we are using.
11786 echo 'int i;' > conftest.$ac_ext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; then
11792 case `/usr/bin/file conftest.$ac_objext` in
11793 *ELF-32*)
11794 HPUX_IA64_MODE="32"
11795 ;;
11796 *ELF-64*)
11797 HPUX_IA64_MODE="64"
11798 ;;
11799 esac
11800 fi
11801 rm -rf conftest*
11802 ;;
11803*-*-irix6*)
11804 # Find out which ABI we are using.
Scott Michel96dcd2b2007-12-05 21:24:02 +000011805 echo '#line 11805 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807 (eval $ac_compile) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; then
11811 if test "$lt_cv_prog_gnu_ld" = yes; then
11812 case `/usr/bin/file conftest.$ac_objext` in
11813 *32-bit*)
11814 LD="${LD-ld} -melf32bsmip"
11815 ;;
11816 *N32*)
11817 LD="${LD-ld} -melf32bmipn32"
11818 ;;
11819 *64-bit*)
11820 LD="${LD-ld} -melf64bmip"
11821 ;;
11822 esac
11823 else
11824 case `/usr/bin/file conftest.$ac_objext` in
11825 *32-bit*)
11826 LD="${LD-ld} -32"
11827 ;;
11828 *N32*)
11829 LD="${LD-ld} -n32"
11830 ;;
11831 *64-bit*)
11832 LD="${LD-ld} -64"
11833 ;;
11834 esac
11835 fi
11836 fi
11837 rm -rf conftest*
11838 ;;
11839
11840x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11841 # Find out which ABI we are using.
11842 echo 'int i;' > conftest.$ac_ext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000011848 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849 *32-bit*)
11850 case $host in
11851 x86_64-*linux*)
11852 LD="${LD-ld} -m elf_i386"
11853 ;;
11854 ppc64-*linux*|powerpc64-*linux*)
11855 LD="${LD-ld} -m elf32ppclinux"
11856 ;;
11857 s390x-*linux*)
11858 LD="${LD-ld} -m elf_s390"
11859 ;;
11860 sparc64-*linux*)
11861 LD="${LD-ld} -m elf32_sparc"
11862 ;;
11863 esac
11864 ;;
11865 *64-bit*)
11866 case $host in
11867 x86_64-*linux*)
11868 LD="${LD-ld} -m elf_x86_64"
11869 ;;
11870 ppc*-*linux*|powerpc*-*linux*)
11871 LD="${LD-ld} -m elf64ppc"
11872 ;;
11873 s390*-*linux*)
11874 LD="${LD-ld} -m elf64_s390"
11875 ;;
11876 sparc*-*linux*)
11877 LD="${LD-ld} -m elf64_sparc"
11878 ;;
11879 esac
11880 ;;
11881 esac
11882 fi
11883 rm -rf conftest*
11884 ;;
11885
11886*-*-sco3.2v5*)
11887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11888 SAVE_CFLAGS="$CFLAGS"
11889 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000011890 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11891echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892if test "${lt_cv_cc_needs_belf+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894else
11895 ac_ext=c
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901 cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
11907
Reid Spencera773bd52006-08-04 18:18:08 +000011908int
11909main ()
11910{
11911
11912 ;
11913 return 0;
11914}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915_ACEOF
11916rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011917if { (ac_try="$ac_link"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest$ac_exeext &&
11933 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934 lt_cv_cc_needs_belf=yes
11935else
11936 echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
Reid Spencera773bd52006-08-04 18:18:08 +000011939 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940fi
Reid Spencera773bd52006-08-04 18:18:08 +000011941
Scott Michel96dcd2b2007-12-05 21:24:02 +000011942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943 conftest$ac_exeext conftest.$ac_ext
11944 ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950fi
Reid Spencera773bd52006-08-04 18:18:08 +000011951{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11952echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11955 CFLAGS="$SAVE_CFLAGS"
11956 fi
11957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011958sparc*-*solaris*)
11959 # Find out which ABI we are using.
11960 echo 'int i;' > conftest.$ac_ext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; then
11966 case `/usr/bin/file conftest.o` in
11967 *64-bit*)
11968 case $lt_cv_prog_gnu_ld in
11969 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11970 *) LD="${LD-ld} -64" ;;
11971 esac
11972 ;;
11973 esac
11974 fi
11975 rm -rf conftest*
11976 ;;
11977
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011978
11979esac
11980
11981need_locks="$enable_libtool_lock"
11982
11983
Reid Spencer2706f8c2004-09-19 23:53:36 +000011984
11985
11986if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11988 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011989 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000011990ac_cpp='$CXXCPP $CPPFLAGS'
11991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000011994{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11995echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000011996if test -z "$CXXCPP"; then
11997 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
John Criswell47fdd832003-07-14 16:52:07 +000012000 # Double quotes because CXXCPP needs to be expanded
12001 for CXXCPP in "$CXX -E" "/lib/cpp"
12002 do
12003 ac_preproc_ok=false
12004for ac_cxx_preproc_warn_flag in '' yes
12005do
12006 # Use a header file that comes with gcc, so configuring glibc
12007 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12009 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012010 # On the NeXT, cc -E runs the code through the compiler's parser,
12011 # not just through cpp. "Syntax error" is here to catch this case.
12012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
12018#ifdef __STDC__
12019# include <limits.h>
12020#else
12021# include <assert.h>
12022#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012023 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012024_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012025if { (ac_try="$ac_cpp conftest.$ac_ext"
12026case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029esac
12030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012032 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012033 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012037 (exit $ac_status); } >/dev/null && {
12038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12039 test ! -s conftest.err
12040 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012041 :
12042else
12043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012044sed 's/^/| /' conftest.$ac_ext >&5
12045
John Criswell47fdd832003-07-14 16:52:07 +000012046 # Broken: fails on valid input.
12047continue
12048fi
Reid Spencera773bd52006-08-04 18:18:08 +000012049
John Criswell47fdd832003-07-14 16:52:07 +000012050rm -f conftest.err conftest.$ac_ext
12051
Reid Spencera773bd52006-08-04 18:18:08 +000012052 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012053 # can be detected and how.
12054 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012060#include <ac_nonexistent.h>
12061_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012062if { (ac_try="$ac_cpp conftest.$ac_ext"
12063case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012069 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012070 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012074 (exit $ac_status); } >/dev/null && {
12075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12076 test ! -s conftest.err
12077 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012078 # Broken: success on invalid input.
12079continue
12080else
12081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012082sed 's/^/| /' conftest.$ac_ext >&5
12083
John Criswell47fdd832003-07-14 16:52:07 +000012084 # Passes both tests.
12085ac_preproc_ok=:
12086break
12087fi
Reid Spencera773bd52006-08-04 18:18:08 +000012088
John Criswell47fdd832003-07-14 16:52:07 +000012089rm -f conftest.err conftest.$ac_ext
12090
12091done
12092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12093rm -f conftest.err conftest.$ac_ext
12094if $ac_preproc_ok; then
12095 break
John Criswell7a73b802003-06-30 21:59:07 +000012096fi
12097
John Criswell47fdd832003-07-14 16:52:07 +000012098 done
12099 ac_cv_prog_CXXCPP=$CXXCPP
12100
12101fi
12102 CXXCPP=$ac_cv_prog_CXXCPP
12103else
12104 ac_cv_prog_CXXCPP=$CXXCPP
12105fi
Reid Spencera773bd52006-08-04 18:18:08 +000012106{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12107echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012108ac_preproc_ok=false
12109for ac_cxx_preproc_warn_flag in '' yes
12110do
12111 # Use a header file that comes with gcc, so configuring glibc
12112 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12114 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012115 # On the NeXT, cc -E runs the code through the compiler's parser,
12116 # not just through cpp. "Syntax error" is here to catch this case.
12117 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123#ifdef __STDC__
12124# include <limits.h>
12125#else
12126# include <assert.h>
12127#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012128 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012130if { (ac_try="$ac_cpp conftest.$ac_ext"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012137 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012138 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012142 (exit $ac_status); } >/dev/null && {
12143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12144 test ! -s conftest.err
12145 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012146 :
12147else
12148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012149sed 's/^/| /' conftest.$ac_ext >&5
12150
John Criswell47fdd832003-07-14 16:52:07 +000012151 # Broken: fails on valid input.
12152continue
12153fi
Reid Spencera773bd52006-08-04 18:18:08 +000012154
John Criswell47fdd832003-07-14 16:52:07 +000012155rm -f conftest.err conftest.$ac_ext
12156
Reid Spencera773bd52006-08-04 18:18:08 +000012157 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012158 # can be detected and how.
12159 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012160/* confdefs.h. */
12161_ACEOF
12162cat confdefs.h >>conftest.$ac_ext
12163cat >>conftest.$ac_ext <<_ACEOF
12164/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012165#include <ac_nonexistent.h>
12166_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012167if { (ac_try="$ac_cpp conftest.$ac_ext"
12168case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171esac
12172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012174 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012175 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012179 (exit $ac_status); } >/dev/null && {
12180 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12181 test ! -s conftest.err
12182 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012183 # Broken: success on invalid input.
12184continue
12185else
12186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012187sed 's/^/| /' conftest.$ac_ext >&5
12188
John Criswell47fdd832003-07-14 16:52:07 +000012189 # Passes both tests.
12190ac_preproc_ok=:
12191break
12192fi
Reid Spencera773bd52006-08-04 18:18:08 +000012193
John Criswell47fdd832003-07-14 16:52:07 +000012194rm -f conftest.err conftest.$ac_ext
12195
12196done
12197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198rm -f conftest.err conftest.$ac_ext
12199if $ac_preproc_ok; then
12200 :
12201else
John Criswell0c38eaf2003-09-10 15:17:25 +000012202 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12203See \`config.log' for more details." >&5
12204echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12205See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012206 { (exit 1); exit 1; }; }
12207fi
12208
Reid Spencera773bd52006-08-04 18:18:08 +000012209ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012210ac_cpp='$CXXCPP $CPPFLAGS'
12211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12214
Reid Spencer2706f8c2004-09-19 23:53:36 +000012215fi
12216
John Criswell47fdd832003-07-14 16:52:07 +000012217
12218ac_ext=f
12219ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12220ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12222if test -n "$ac_tool_prefix"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +000012223 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
John Criswell47fdd832003-07-14 16:52:07 +000012224 do
12225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012229if test "${ac_cv_prog_F77+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 if test -n "$F77"; then
12233 ac_cv_prog_F77="$F77" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012242 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12245 fi
12246done
12247done
Reid Spencera773bd52006-08-04 18:18:08 +000012248IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012249
12250fi
12251fi
12252F77=$ac_cv_prog_F77
12253if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012254 { echo "$as_me:$LINENO: result: $F77" >&5
12255echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012256else
Reid Spencera773bd52006-08-04 18:18:08 +000012257 { echo "$as_me:$LINENO: result: no" >&5
12258echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012259fi
12260
Reid Spencera773bd52006-08-04 18:18:08 +000012261
John Criswell47fdd832003-07-14 16:52:07 +000012262 test -n "$F77" && break
12263 done
12264fi
12265if test -z "$F77"; then
12266 ac_ct_F77=$F77
Scott Michel96dcd2b2007-12-05 21:24:02 +000012267 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
John Criswell47fdd832003-07-14 16:52:07 +000012268do
12269 # Extract the first word of "$ac_prog", so it can be a program name with args.
12270set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012273if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275else
12276 if test -n "$ac_ct_F77"; then
12277 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012286 ac_cv_prog_ac_ct_F77="$ac_prog"
12287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290done
12291done
Reid Spencera773bd52006-08-04 18:18:08 +000012292IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012293
12294fi
12295fi
12296ac_ct_F77=$ac_cv_prog_ac_ct_F77
12297if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012298 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12299echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012300else
Reid Spencera773bd52006-08-04 18:18:08 +000012301 { echo "$as_me:$LINENO: result: no" >&5
12302echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012303fi
12304
Reid Spencera773bd52006-08-04 18:18:08 +000012305
John Criswell47fdd832003-07-14 16:52:07 +000012306 test -n "$ac_ct_F77" && break
12307done
12308
Reid Spencera773bd52006-08-04 18:18:08 +000012309 if test "x$ac_ct_F77" = x; then
12310 F77=""
12311 else
12312 case $cross_compiling:$ac_tool_warned in
12313yes:)
12314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12315whose name does not start with the host triplet. If you think this
12316configuration is useful to you, please write to autoconf@gnu.org." >&5
12317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12318whose name does not start with the host triplet. If you think this
12319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12320ac_tool_warned=yes ;;
12321esac
12322 F77=$ac_ct_F77
12323 fi
John Criswell47fdd832003-07-14 16:52:07 +000012324fi
12325
12326
12327# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012328echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012329ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012330{ (ac_try="$ac_compiler --version >&5"
12331case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
12335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012340{ (ac_try="$ac_compiler -v >&5"
12341case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344esac
12345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012350{ (ac_try="$ac_compiler -V >&5"
12351case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354esac
12355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000012360rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000012361
12362# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000012363# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000012364ac_save_ext=$ac_ext
12365ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000012366{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12367echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012368if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370else
12371 cat >conftest.$ac_ext <<_ACEOF
12372 program main
12373#ifndef __GNUC__
12374 choke me
12375#endif
12376
12377 end
12378_ACEOF
12379rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012380if { (ac_try="$ac_compile"
12381case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012392 (exit $ac_status); } && {
12393 test -z "$ac_f77_werror_flag" ||
12394 test ! -s conftest.err
12395 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012396 ac_compiler_gnu=yes
12397else
12398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012399sed 's/^/| /' conftest.$ac_ext >&5
12400
Reid Spencera773bd52006-08-04 18:18:08 +000012401 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000012402fi
Reid Spencera773bd52006-08-04 18:18:08 +000012403
12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012405ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12406
12407fi
Reid Spencera773bd52006-08-04 18:18:08 +000012408{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12409echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012410ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000012411ac_test_FFLAGS=${FFLAGS+set}
12412ac_save_FFLAGS=$FFLAGS
12413FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000012414{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12415echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012416if test "${ac_cv_prog_f77_g+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419 FFLAGS=-g
12420cat >conftest.$ac_ext <<_ACEOF
12421 program main
12422
12423 end
12424_ACEOF
12425rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012426if { (ac_try="$ac_compile"
12427case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012438 (exit $ac_status); } && {
12439 test -z "$ac_f77_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012442 ac_cv_prog_f77_g=yes
12443else
12444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012445sed 's/^/| /' conftest.$ac_ext >&5
12446
Reid Spencera773bd52006-08-04 18:18:08 +000012447 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000012448fi
Reid Spencera773bd52006-08-04 18:18:08 +000012449
12450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012451
12452fi
Reid Spencera773bd52006-08-04 18:18:08 +000012453{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12454echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012455if test "$ac_test_FFLAGS" = set; then
12456 FFLAGS=$ac_save_FFLAGS
12457elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012459 FFLAGS="-g -O2"
12460 else
12461 FFLAGS="-g"
12462 fi
12463else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012464 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012465 FFLAGS="-O2"
12466 else
12467 FFLAGS=
12468 fi
12469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012470
12471G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000012472ac_ext=c
12473ac_cpp='$CPP $CPPFLAGS'
12474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477
12478
12479
12480# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12481
12482# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000012483{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12484echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012485if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000012489 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000012490
12491 case $build_os in
12492 msdosdjgpp*)
12493 # On DJGPP, this test can blow up pretty badly due to problems in libc
12494 # (any single argument exceeding 2000 bytes causes a buffer overrun
12495 # during glob expansion). Even if it were fixed, the result of this
12496 # check would be larger than it should be.
12497 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12498 ;;
12499
12500 gnu*)
12501 # Under GNU Hurd, this test is not required because there is
12502 # no limit to the length of command line arguments.
12503 # Libtool will interpret -1 as no limit whatsoever
12504 lt_cv_sys_max_cmd_len=-1;
12505 ;;
12506
12507 cygwin* | mingw*)
12508 # On Win9x/ME, this test blows up -- it succeeds, but takes
12509 # about 5 minutes as the teststring grows exponentially.
12510 # Worse, since 9x/ME are not pre-emptively multitasking,
12511 # you end up with a "frozen" computer, even though with patience
12512 # the test eventually succeeds (with a max line length of 256k).
12513 # Instead, let's just punt: use the minimum linelength reported by
12514 # all of the supported platforms: 8192 (on NT/2K/XP).
12515 lt_cv_sys_max_cmd_len=8192;
12516 ;;
12517
Reid Spencer2706f8c2004-09-19 23:53:36 +000012518 amigaos*)
12519 # On AmigaOS with pdksh, this test takes hours, literally.
12520 # So we just punt and use a minimum line length of 8192.
12521 lt_cv_sys_max_cmd_len=8192;
12522 ;;
12523
Reid Spencera773bd52006-08-04 18:18:08 +000012524 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012525 # This has been around since 386BSD, at least. Likely further.
12526 if test -x /sbin/sysctl; then
12527 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12528 elif test -x /usr/sbin/sysctl; then
12529 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12530 else
Reid Spencera773bd52006-08-04 18:18:08 +000012531 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000012532 fi
12533 # And add a safety zone
12534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000012535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012536 ;;
12537
Reid Spencera773bd52006-08-04 18:18:08 +000012538 interix*)
12539 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12540 lt_cv_sys_max_cmd_len=196608
12541 ;;
12542
12543 osf*)
12544 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12545 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12546 # nice to cause kernel panics so lets avoid the loop below.
12547 # First set a reasonable default.
12548 lt_cv_sys_max_cmd_len=16384
12549 #
12550 if test -x /sbin/sysconfig; then
12551 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12552 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12553 esac
12554 fi
12555 ;;
12556 sco3.2v5*)
12557 lt_cv_sys_max_cmd_len=102400
12558 ;;
12559 sysv5* | sco5v6* | sysv4.2uw2*)
12560 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12561 if test -n "$kargmax"; then
12562 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12563 else
12564 lt_cv_sys_max_cmd_len=32768
12565 fi
12566 ;;
12567 *)
John Criswell47fdd832003-07-14 16:52:07 +000012568 # If test is not a shell built-in, we'll probably end up computing a
12569 # maximum length that is only half of the actual maximum length, but
12570 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012571 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12572 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12573 = "XX$teststring") >/dev/null 2>&1 &&
12574 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000012575 lt_cv_sys_max_cmd_len=$new_result &&
12576 test $i != 17 # 1/2 MB should be enough
12577 do
12578 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012579 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000012580 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000012581 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000012582 # Add a significant safety factor because C++ compilers can tack on massive
12583 # amounts of additional arguments before passing them to the linker.
12584 # It appears as though 1/2 is a usable value.
12585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12586 ;;
12587 esac
12588
12589fi
12590
12591if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012592 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12593echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012594else
Reid Spencera773bd52006-08-04 18:18:08 +000012595 { echo "$as_me:$LINENO: result: none" >&5
12596echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012597fi
12598
12599
12600
12601
12602# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000012603{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12604echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012605if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607else
12608
12609# These are sane defaults that work on at least a few old systems.
12610# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12611
12612# Character class describing NM global symbol codes.
12613symcode='[BCDEGRST]'
12614
12615# Regexp to match symbols that can be accessed directly from C.
12616sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12617
John Criswell47fdd832003-07-14 16:52:07 +000012618# Transform an extracted symbol line into a proper C declaration
12619lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12620
12621# Transform an extracted symbol line into symbol name and symbol address
12622lt_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'"
12623
12624# Define system-specific variables.
12625case $host_os in
12626aix*)
12627 symcode='[BCDT]'
12628 ;;
12629cygwin* | mingw* | pw32*)
12630 symcode='[ABCDGISTW]'
12631 ;;
12632hpux*) # Its linker distinguishes data from code symbols
12633 if test "$host_cpu" = ia64; then
12634 symcode='[ABCDEGRST]'
12635 fi
12636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12637 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'"
12638 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012639linux*)
12640 if test "$host_cpu" = ia64; then
12641 symcode='[ABCDGIRSTW]'
12642 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12643 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'"
12644 fi
12645 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012646irix* | nonstopux*)
12647 symcode='[BCDEGRST]'
12648 ;;
12649osf*)
12650 symcode='[BCDEGQRST]'
12651 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012652solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012653 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000012654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012655sco3.2v5*)
12656 symcode='[DT]'
12657 ;;
12658sysv4.2uw2*)
12659 symcode='[DT]'
12660 ;;
12661sysv5* | sco5v6* | unixware* | OpenUNIX*)
12662 symcode='[ABDT]'
12663 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012664sysv4)
12665 symcode='[DFNSTU]'
12666 ;;
12667esac
12668
12669# Handle CRLF in mingw tool chain
12670opt_cr=
12671case $build_os in
12672mingw*)
12673 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12674 ;;
12675esac
12676
12677# If we're using GNU nm, then use its standard symbol codes.
12678case `$NM -V 2>&1` in
12679*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012680 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000012681esac
12682
12683# Try without a prefix undercore, then with it.
12684for ac_symprfx in "" "_"; do
12685
Reid Spencera773bd52006-08-04 18:18:08 +000012686 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12687 symxfrm="\\1 $ac_symprfx\\2 \\2"
12688
John Criswell47fdd832003-07-14 16:52:07 +000012689 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000012690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
John Criswell47fdd832003-07-14 16:52:07 +000012691
12692 # Check to see that the pipe works correctly.
12693 pipe_works=no
12694
12695 rm -f conftest*
12696 cat > conftest.$ac_ext <<EOF
12697#ifdef __cplusplus
12698extern "C" {
12699#endif
12700char nm_test_var;
12701void nm_test_func(){}
12702#ifdef __cplusplus
12703}
12704#endif
12705int main(){nm_test_var='a';nm_test_func();return(0);}
12706EOF
12707
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; then
12713 # Now try to grab the symbols.
12714 nlist=conftest.nm
12715 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12716 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && test -s "$nlist"; then
12720 # Try sorting and uniquifying the output.
12721 if sort "$nlist" | uniq > "$nlist"T; then
12722 mv -f "$nlist"T "$nlist"
12723 else
12724 rm -f "$nlist"T
12725 fi
12726
12727 # Make sure that we snagged all the symbols we need.
12728 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12729 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12730 cat <<EOF > conftest.$ac_ext
12731#ifdef __cplusplus
12732extern "C" {
12733#endif
12734
12735EOF
12736 # Now generate the symbol file.
12737 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12738
12739 cat <<EOF >> conftest.$ac_ext
12740#if defined (__STDC__) && __STDC__
12741# define lt_ptr_t void *
12742#else
12743# define lt_ptr_t char *
12744# define const
12745#endif
12746
12747/* The mapping between symbol names and symbols. */
12748const struct {
12749 const char *name;
12750 lt_ptr_t address;
12751}
12752lt_preloaded_symbols[] =
12753{
12754EOF
12755 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12756 cat <<\EOF >> conftest.$ac_ext
12757 {0, (lt_ptr_t) 0}
12758};
12759
12760#ifdef __cplusplus
12761}
12762#endif
12763EOF
12764 # Now try linking the two files.
12765 mv conftest.$ac_objext conftstm.$ac_objext
12766 lt_save_LIBS="$LIBS"
12767 lt_save_CFLAGS="$CFLAGS"
12768 LIBS="conftstm.$ac_objext"
12769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12775 pipe_works=yes
12776 fi
12777 LIBS="$lt_save_LIBS"
12778 CFLAGS="$lt_save_CFLAGS"
12779 else
12780 echo "cannot find nm_test_func in $nlist" >&5
12781 fi
12782 else
12783 echo "cannot find nm_test_var in $nlist" >&5
12784 fi
12785 else
12786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12787 fi
12788 else
12789 echo "$progname: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 fi
12792 rm -f conftest* conftst*
12793
12794 # Do not use the global_symbol_pipe unless it works.
12795 if test "$pipe_works" = yes; then
12796 break
12797 else
12798 lt_cv_sys_global_symbol_pipe=
12799 fi
12800done
12801
12802fi
12803
12804if test -z "$lt_cv_sys_global_symbol_pipe"; then
12805 lt_cv_sys_global_symbol_to_cdecl=
12806fi
12807if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012808 { echo "$as_me:$LINENO: result: failed" >&5
12809echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012810else
Reid Spencera773bd52006-08-04 18:18:08 +000012811 { echo "$as_me:$LINENO: result: ok" >&5
12812echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012813fi
12814
Reid Spencera773bd52006-08-04 18:18:08 +000012815{ echo "$as_me:$LINENO: checking for objdir" >&5
12816echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012817if test "${lt_cv_objdir+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12819else
12820 rm -f .libs 2>/dev/null
12821mkdir .libs 2>/dev/null
12822if test -d .libs; then
12823 lt_cv_objdir=.libs
12824else
12825 # MS-DOS does not allow filenames that begin with a dot.
12826 lt_cv_objdir=_libs
12827fi
12828rmdir .libs 2>/dev/null
12829fi
Reid Spencera773bd52006-08-04 18:18:08 +000012830{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12831echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012832objdir=$lt_cv_objdir
12833
12834
12835
12836
12837
12838case $host_os in
12839aix3*)
12840 # AIX sometimes has problems with the GCC collect2 program. For some
12841 # reason, if we set the COLLECT_NAMES environment variable, the problems
12842 # vanish in a puff of smoke.
12843 if test "X${COLLECT_NAMES+set}" != Xset; then
12844 COLLECT_NAMES=
12845 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000012846 fi
12847 ;;
12848esac
12849
John Criswell47fdd832003-07-14 16:52:07 +000012850# Sed substitution that helps us do robust quoting. It backslashifies
12851# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000012852Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000012853sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12854
12855# Same as above, but do not quote variable references.
12856double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12857
12858# Sed substitution to delay expansion of an escaped shell variable in a
12859# double_quote_subst'ed string.
12860delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12861
12862# Sed substitution to avoid accidental globbing in evaled expressions
12863no_glob_subst='s/\*/\\\*/g'
12864
12865# Constants:
12866rm="rm -f"
12867
12868# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000012869default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000012870can_build_shared=yes
12871
Reid Spencera773bd52006-08-04 18:18:08 +000012872# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000012873# which needs '.lib').
12874libext=a
12875ltmain="$ac_aux_dir/ltmain.sh"
12876ofile="$default_ofile"
12877with_gnu_ld="$lt_cv_prog_gnu_ld"
12878
12879if test -n "$ac_tool_prefix"; then
12880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12881set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012884if test "${ac_cv_prog_AR+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887 if test -n "$AR"; then
12888 ac_cv_prog_AR="$AR" # Let the user override the test.
12889else
12890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012897 ac_cv_prog_AR="${ac_tool_prefix}ar"
12898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 break 2
12900 fi
12901done
12902done
Reid Spencera773bd52006-08-04 18:18:08 +000012903IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012904
12905fi
12906fi
12907AR=$ac_cv_prog_AR
12908if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012909 { echo "$as_me:$LINENO: result: $AR" >&5
12910echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012911else
Reid Spencera773bd52006-08-04 18:18:08 +000012912 { echo "$as_me:$LINENO: result: no" >&5
12913echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012914fi
12915
Reid Spencera773bd52006-08-04 18:18:08 +000012916
John Criswell47fdd832003-07-14 16:52:07 +000012917fi
12918if test -z "$ac_cv_prog_AR"; then
12919 ac_ct_AR=$AR
12920 # Extract the first word of "ar", so it can be a program name with args.
12921set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012924if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926else
12927 if test -n "$ac_ct_AR"; then
12928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12929else
12930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931for as_dir in $PATH
12932do
12933 IFS=$as_save_IFS
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012937 ac_cv_prog_ac_ct_AR="ar"
12938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 break 2
12940 fi
12941done
12942done
Reid Spencera773bd52006-08-04 18:18:08 +000012943IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012944
John Criswell47fdd832003-07-14 16:52:07 +000012945fi
12946fi
12947ac_ct_AR=$ac_cv_prog_ac_ct_AR
12948if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012949 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12950echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012951else
Reid Spencera773bd52006-08-04 18:18:08 +000012952 { echo "$as_me:$LINENO: result: no" >&5
12953echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012954fi
12955
Reid Spencera773bd52006-08-04 18:18:08 +000012956 if test "x$ac_ct_AR" = x; then
12957 AR="false"
12958 else
12959 case $cross_compiling:$ac_tool_warned in
12960yes:)
12961{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12962whose name does not start with the host triplet. If you think this
12963configuration is useful to you, please write to autoconf@gnu.org." >&5
12964echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12965whose name does not start with the host triplet. If you think this
12966configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12967ac_tool_warned=yes ;;
12968esac
12969 AR=$ac_ct_AR
12970 fi
John Criswell47fdd832003-07-14 16:52:07 +000012971else
12972 AR="$ac_cv_prog_AR"
12973fi
12974
John Criswell7a73b802003-06-30 21:59:07 +000012975if test -n "$ac_tool_prefix"; then
12976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12977set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000012980if test "${ac_cv_prog_RANLIB+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982else
12983 if test -n "$RANLIB"; then
12984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12985else
12986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987for as_dir in $PATH
12988do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997done
12998done
Reid Spencera773bd52006-08-04 18:18:08 +000012999IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013000
13001fi
13002fi
13003RANLIB=$ac_cv_prog_RANLIB
13004if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013005 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13006echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013007else
Reid Spencera773bd52006-08-04 18:18:08 +000013008 { echo "$as_me:$LINENO: result: no" >&5
13009echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013010fi
13011
Reid Spencera773bd52006-08-04 18:18:08 +000013012
John Criswell7a73b802003-06-30 21:59:07 +000013013fi
13014if test -z "$ac_cv_prog_RANLIB"; then
13015 ac_ct_RANLIB=$RANLIB
13016 # Extract the first word of "ranlib", so it can be a program name with args.
13017set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013020if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022else
13023 if test -n "$ac_ct_RANLIB"; then
13024 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13025else
13026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027for as_dir in $PATH
13028do
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013033 ac_cv_prog_ac_ct_RANLIB="ranlib"
13034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13036 fi
13037done
13038done
Reid Spencera773bd52006-08-04 18:18:08 +000013039IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013040
John Criswell7a73b802003-06-30 21:59:07 +000013041fi
13042fi
13043ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13044if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013045 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13046echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013047else
Reid Spencera773bd52006-08-04 18:18:08 +000013048 { echo "$as_me:$LINENO: result: no" >&5
13049echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013050fi
13051
Reid Spencera773bd52006-08-04 18:18:08 +000013052 if test "x$ac_ct_RANLIB" = x; then
13053 RANLIB=":"
13054 else
13055 case $cross_compiling:$ac_tool_warned in
13056yes:)
13057{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13058whose name does not start with the host triplet. If you think this
13059configuration is useful to you, please write to autoconf@gnu.org." >&5
13060echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13061whose name does not start with the host triplet. If you think this
13062configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13063ac_tool_warned=yes ;;
13064esac
13065 RANLIB=$ac_ct_RANLIB
13066 fi
John Criswell7a73b802003-06-30 21:59:07 +000013067else
13068 RANLIB="$ac_cv_prog_RANLIB"
13069fi
13070
13071if test -n "$ac_tool_prefix"; then
13072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13073set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013076if test "${ac_cv_prog_STRIP+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 if test -n "$STRIP"; then
13080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13081else
13082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083for as_dir in $PATH
13084do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093done
13094done
Reid Spencera773bd52006-08-04 18:18:08 +000013095IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013096
13097fi
13098fi
13099STRIP=$ac_cv_prog_STRIP
13100if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013101 { echo "$as_me:$LINENO: result: $STRIP" >&5
13102echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013103else
Reid Spencera773bd52006-08-04 18:18:08 +000013104 { echo "$as_me:$LINENO: result: no" >&5
13105echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013106fi
13107
Reid Spencera773bd52006-08-04 18:18:08 +000013108
John Criswell7a73b802003-06-30 21:59:07 +000013109fi
13110if test -z "$ac_cv_prog_STRIP"; then
13111 ac_ct_STRIP=$STRIP
13112 # Extract the first word of "strip", so it can be a program name with args.
13113set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013116if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119 if test -n "$ac_ct_STRIP"; then
13120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13121else
13122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123for as_dir in $PATH
13124do
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013129 ac_cv_prog_ac_ct_STRIP="strip"
13130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13132 fi
13133done
13134done
Reid Spencera773bd52006-08-04 18:18:08 +000013135IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013136
John Criswell7a73b802003-06-30 21:59:07 +000013137fi
13138fi
13139ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13140if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013141 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13142echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013143else
Reid Spencera773bd52006-08-04 18:18:08 +000013144 { echo "$as_me:$LINENO: result: no" >&5
13145echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013146fi
13147
Reid Spencera773bd52006-08-04 18:18:08 +000013148 if test "x$ac_ct_STRIP" = x; then
13149 STRIP=":"
13150 else
13151 case $cross_compiling:$ac_tool_warned in
13152yes:)
13153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13154whose name does not start with the host triplet. If you think this
13155configuration is useful to you, please write to autoconf@gnu.org." >&5
13156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13157whose name does not start with the host triplet. If you think this
13158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13159ac_tool_warned=yes ;;
13160esac
13161 STRIP=$ac_ct_STRIP
13162 fi
John Criswell7a73b802003-06-30 21:59:07 +000013163else
13164 STRIP="$ac_cv_prog_STRIP"
13165fi
13166
13167
John Criswell7a73b802003-06-30 21:59:07 +000013168old_CC="$CC"
13169old_CFLAGS="$CFLAGS"
13170
13171# Set sane defaults for various variables
13172test -z "$AR" && AR=ar
13173test -z "$AR_FLAGS" && AR_FLAGS=cru
13174test -z "$AS" && AS=as
13175test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013176test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013177test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013178test -z "$DLLTOOL" && DLLTOOL=dlltool
13179test -z "$LD" && LD=ld
13180test -z "$LN_S" && LN_S="ln -s"
13181test -z "$MAGIC_CMD" && MAGIC_CMD=file
13182test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013183test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013184test -z "$OBJDUMP" && OBJDUMP=objdump
13185test -z "$RANLIB" && RANLIB=:
13186test -z "$STRIP" && STRIP=:
13187test -z "$ac_objext" && ac_objext=o
13188
John Criswell7a73b802003-06-30 21:59:07 +000013189# Determine commands to create old-style static archives.
13190old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13191old_postinstall_cmds='chmod 644 $oldlib'
13192old_postuninstall_cmds=
13193
13194if test -n "$RANLIB"; then
13195 case $host_os in
13196 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013198 ;;
13199 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013201 ;;
13202 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013204fi
13205
Reid Spencera773bd52006-08-04 18:18:08 +000013206for cc_temp in $compiler""; do
13207 case $cc_temp in
13208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13210 \-*) ;;
13211 *) break;;
13212 esac
13213done
13214cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13215
Reid Spencer2706f8c2004-09-19 23:53:36 +000013216
John Criswell47fdd832003-07-14 16:52:07 +000013217# Only perform the check for file, if the check method requires it
13218case $deplibs_check_method in
13219file_magic*)
13220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013221 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13222echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013223if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013225else
John Criswell47fdd832003-07-14 16:52:07 +000013226 case $MAGIC_CMD in
13227[\\/*] | ?:[\\/]*)
13228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13229 ;;
13230*)
13231 lt_save_MAGIC_CMD="$MAGIC_CMD"
13232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13234 for ac_dir in $ac_dummy; do
13235 IFS="$lt_save_ifs"
13236 test -z "$ac_dir" && ac_dir=.
13237 if test -f $ac_dir/${ac_tool_prefix}file; then
13238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13239 if test -n "$file_magic_test_file"; then
13240 case $deplibs_check_method in
13241 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13245 $EGREP "$file_magic_regex" > /dev/null; then
13246 :
13247 else
13248 cat <<EOF 1>&2
13249
13250*** Warning: the command libtool uses to detect shared libraries,
13251*** $file_magic_cmd, produces output that libtool cannot recognize.
13252*** The result is that libtool may fail to recognize shared libraries
13253*** as such. This will affect the creation of libtool libraries that
13254*** depend on shared libraries, but programs linked with such libtool
13255*** libraries will work regardless of this problem. Nevertheless, you
13256*** may want to report the problem to your system manager and/or to
13257*** bug-libtool@gnu.org
13258
13259EOF
13260 fi ;;
13261 esac
13262 fi
13263 break
13264 fi
13265 done
13266 IFS="$lt_save_ifs"
13267 MAGIC_CMD="$lt_save_MAGIC_CMD"
13268 ;;
13269esac
John Criswell7a73b802003-06-30 21:59:07 +000013270fi
John Criswell7a73b802003-06-30 21:59:07 +000013271
John Criswell47fdd832003-07-14 16:52:07 +000013272MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13273if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013274 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13275echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013276else
Reid Spencera773bd52006-08-04 18:18:08 +000013277 { echo "$as_me:$LINENO: result: no" >&5
13278echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013279fi
John Criswell7a73b802003-06-30 21:59:07 +000013280
John Criswell47fdd832003-07-14 16:52:07 +000013281if test -z "$lt_cv_path_MAGIC_CMD"; then
13282 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013283 { echo "$as_me:$LINENO: checking for file" >&5
13284echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013285if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287else
13288 case $MAGIC_CMD in
13289[\\/*] | ?:[\\/]*)
13290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13291 ;;
13292*)
13293 lt_save_MAGIC_CMD="$MAGIC_CMD"
13294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13295 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13296 for ac_dir in $ac_dummy; do
13297 IFS="$lt_save_ifs"
13298 test -z "$ac_dir" && ac_dir=.
13299 if test -f $ac_dir/file; then
13300 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13301 if test -n "$file_magic_test_file"; then
13302 case $deplibs_check_method in
13303 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013304 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13306 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13307 $EGREP "$file_magic_regex" > /dev/null; then
13308 :
13309 else
13310 cat <<EOF 1>&2
13311
13312*** Warning: the command libtool uses to detect shared libraries,
13313*** $file_magic_cmd, produces output that libtool cannot recognize.
13314*** The result is that libtool may fail to recognize shared libraries
13315*** as such. This will affect the creation of libtool libraries that
13316*** depend on shared libraries, but programs linked with such libtool
13317*** libraries will work regardless of this problem. Nevertheless, you
13318*** may want to report the problem to your system manager and/or to
13319*** bug-libtool@gnu.org
13320
13321EOF
13322 fi ;;
13323 esac
13324 fi
13325 break
13326 fi
13327 done
13328 IFS="$lt_save_ifs"
13329 MAGIC_CMD="$lt_save_MAGIC_CMD"
13330 ;;
13331esac
13332fi
13333
13334MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13335if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013336 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13337echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013338else
Reid Spencera773bd52006-08-04 18:18:08 +000013339 { echo "$as_me:$LINENO: result: no" >&5
13340echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013341fi
13342
13343 else
13344 MAGIC_CMD=:
13345 fi
13346fi
13347
13348 fi
13349 ;;
13350esac
13351
Reid Spencer17795972004-11-18 09:47:37 +000013352enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000013353enable_win32_dll=no
13354
Reid Spencera773bd52006-08-04 18:18:08 +000013355# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000013356if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013357 enableval=$enable_libtool_lock;
13358fi
John Criswell47fdd832003-07-14 16:52:07 +000013359
John Criswell47fdd832003-07-14 16:52:07 +000013360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13361
John Criswell7a73b802003-06-30 21:59:07 +000013362
Reid Spencera773bd52006-08-04 18:18:08 +000013363# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000013364if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013365 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000013366else
13367 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000013368fi
13369
John Criswell7a73b802003-06-30 21:59:07 +000013370test -z "$pic_mode" && pic_mode=default
13371
John Criswell47fdd832003-07-14 16:52:07 +000013372# Use C for the default configuration in the libtool script
13373tagname=
13374lt_save_CC="$CC"
13375ac_ext=c
13376ac_cpp='$CPP $CPPFLAGS'
13377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379ac_compiler_gnu=$ac_cv_c_compiler_gnu
13380
13381
13382# Source file extension for C test sources.
13383ac_ext=c
13384
13385# Object file extension for compiled C test sources.
13386objext=o
13387objext=$objext
13388
13389# Code to be used in simple compile tests
13390lt_simple_compile_test_code="int some_variable = 0;\n"
13391
13392# Code to be used in simple link tests
13393lt_simple_link_test_code='int main(){return(0);}\n'
13394
13395
13396# If no C compiler was specified, use CC.
13397LTCC=${LTCC-"$CC"}
13398
Reid Spencera773bd52006-08-04 18:18:08 +000013399# If no C compiler flags were specified, use CFLAGS.
13400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13401
John Criswell47fdd832003-07-14 16:52:07 +000013402# Allow CC to be a program name with arguments.
13403compiler=$CC
13404
13405
Reid Spencera773bd52006-08-04 18:18:08 +000013406# save warnings/boilerplate of simple test code
13407ac_outfile=conftest.$ac_objext
13408printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13409eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410_lt_compiler_boilerplate=`cat conftest.err`
13411$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013412
Reid Spencera773bd52006-08-04 18:18:08 +000013413ac_outfile=conftest.$ac_objext
13414printf "$lt_simple_link_test_code" >conftest.$ac_ext
13415eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416_lt_linker_boilerplate=`cat conftest.err`
13417$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013418
13419
John Criswell47fdd832003-07-14 16:52:07 +000013420
13421lt_prog_compiler_no_builtin_flag=
13422
13423if test "$GCC" = yes; then
13424 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13425
Reid Spencer2706f8c2004-09-19 23:53:36 +000013426
Reid Spencera773bd52006-08-04 18:18:08 +000013427{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13428echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013429if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431else
13432 lt_cv_prog_compiler_rtti_exceptions=no
13433 ac_outfile=conftest.$ac_objext
13434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13435 lt_compiler_flag="-fno-rtti -fno-exceptions"
13436 # Insert the option either (1) after the last *FLAGS variable, or
13437 # (2) before a word containing "conftest.", or (3) at the end.
13438 # Note that $ac_compile itself does not contain backslashes and begins
13439 # with a dollar sign (not a hyphen), so the echo should work correctly.
13440 # The option is referenced via a variable to avoid confusing sed.
13441 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000013445 (eval echo "\"\$as_me:13445: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013446 (eval "$lt_compile" 2>conftest.err)
13447 ac_status=$?
13448 cat conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000013449 echo "$as_me:13449: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013450 if (exit $ac_status) && test -s "$ac_outfile"; then
13451 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013452 # So say no if there are warnings other than the usual output.
13453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013456 lt_cv_prog_compiler_rtti_exceptions=yes
13457 fi
13458 fi
13459 $rm conftest*
13460
13461fi
Reid Spencera773bd52006-08-04 18:18:08 +000013462{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13463echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013464
13465if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13467else
13468 :
13469fi
13470
13471fi
13472
13473lt_prog_compiler_wl=
13474lt_prog_compiler_pic=
13475lt_prog_compiler_static=
13476
Reid Spencera773bd52006-08-04 18:18:08 +000013477{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13478echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013479
13480 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000013481 lt_prog_compiler_wl='-Wl,'
13482 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000013483
13484 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013485 aix*)
13486 # All AIX code is PIC.
13487 if test "$host_cpu" = ia64; then
13488 # AIX 5 now supports IA64 processor
13489 lt_prog_compiler_static='-Bstatic'
13490 fi
John Criswell7a73b802003-06-30 21:59:07 +000013491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013492
John Criswell7a73b802003-06-30 21:59:07 +000013493 amigaos*)
13494 # FIXME: we need at least 68020 code to build shared libraries, but
13495 # adding the `-m68020' flag to GCC prevents building anything better,
13496 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000013497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000013498 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013499
13500 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000013501 # PIC is the default for these OSes.
13502 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013503
13504 mingw* | pw32* | os2*)
13505 # This hack is so that the source file can tell whether it is being
13506 # built for inclusion in a dll (and should export symbols for example).
13507 lt_prog_compiler_pic='-DDLL_EXPORT'
13508 ;;
13509
John Criswell7a73b802003-06-30 21:59:07 +000013510 darwin* | rhapsody*)
13511 # PIC is the default on this platform
13512 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000013513 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000013514 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013515
Reid Spencera773bd52006-08-04 18:18:08 +000013516 interix3*)
13517 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13518 # Instead, we relocate shared libraries at runtime.
13519 ;;
13520
John Criswell47fdd832003-07-14 16:52:07 +000013521 msdosdjgpp*)
13522 # Just because we use GCC doesn't mean we suddenly get shared libraries
13523 # on systems that don't support them.
13524 lt_prog_compiler_can_build_shared=no
13525 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013526 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013527
John Criswell7a73b802003-06-30 21:59:07 +000013528 sysv4*MP*)
13529 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000013530 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000013531 fi
13532 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013533
13534 hpux*)
13535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13536 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013537 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013538 hppa*64*|ia64*)
13539 # +Z the default
13540 ;;
13541 *)
13542 lt_prog_compiler_pic='-fPIC'
13543 ;;
13544 esac
13545 ;;
13546
John Criswell7a73b802003-06-30 21:59:07 +000013547 *)
John Criswell47fdd832003-07-14 16:52:07 +000013548 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000013549 ;;
13550 esac
13551 else
John Criswell47fdd832003-07-14 16:52:07 +000013552 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000013553 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013554 aix*)
13555 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013556 if test "$host_cpu" = ia64; then
13557 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000013558 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013559 else
John Criswell47fdd832003-07-14 16:52:07 +000013560 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000013561 fi
13562 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013563 darwin*)
13564 # PIC is the default on this platform
13565 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000013566 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013567 xlc*)
13568 lt_prog_compiler_pic='-qnocommon'
13569 lt_prog_compiler_wl='-Wl,'
13570 ;;
13571 esac
13572 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013573
John Criswell47fdd832003-07-14 16:52:07 +000013574 mingw* | pw32* | os2*)
13575 # This hack is so that the source file can tell whether it is being
13576 # built for inclusion in a dll (and should export symbols for example).
13577 lt_prog_compiler_pic='-DDLL_EXPORT'
13578 ;;
13579
John Criswell7a73b802003-06-30 21:59:07 +000013580 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000013581 lt_prog_compiler_wl='-Wl,'
13582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13583 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013584 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013585 hppa*64*|ia64*)
13586 # +Z the default
13587 ;;
13588 *)
13589 lt_prog_compiler_pic='+Z'
13590 ;;
13591 esac
13592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13593 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000013594 ;;
13595
John Criswell47fdd832003-07-14 16:52:07 +000013596 irix5* | irix6* | nonstopux*)
13597 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013598 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000013599 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013600 ;;
13601
13602 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000013603 lt_prog_compiler_pic='-KPIC'
13604 lt_prog_compiler_static='-Bstatic'
13605 ;;
13606
13607 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000013608 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013609 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013610 lt_prog_compiler_wl='-Wl,'
13611 lt_prog_compiler_pic='-KPIC'
13612 lt_prog_compiler_static='-static'
13613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013614 pgcc* | pgf77* | pgf90* | pgf95*)
13615 # Portland Group compilers (*not* the Pentium gcc compiler,
13616 # which looks to be a dead project)
13617 lt_prog_compiler_wl='-Wl,'
13618 lt_prog_compiler_pic='-fpic'
13619 lt_prog_compiler_static='-Bstatic'
13620 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013621 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013622 lt_prog_compiler_wl='-Wl,'
13623 # All Alpha code is PIC.
13624 lt_prog_compiler_static='-non_shared'
13625 ;;
13626 esac
John Criswell7a73b802003-06-30 21:59:07 +000013627 ;;
13628
13629 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000013630 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013631 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000013632 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013633 ;;
13634
John Criswell7a73b802003-06-30 21:59:07 +000013635 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000013636 lt_prog_compiler_pic='-KPIC'
13637 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000013638 case $cc_basename in
13639 f77* | f90* | f95*)
13640 lt_prog_compiler_wl='-Qoption ld ';;
13641 *)
13642 lt_prog_compiler_wl='-Wl,';;
13643 esac
John Criswell7a73b802003-06-30 21:59:07 +000013644 ;;
13645
13646 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000013647 lt_prog_compiler_wl='-Qoption ld '
13648 lt_prog_compiler_pic='-PIC'
13649 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013650 ;;
13651
Reid Spencera773bd52006-08-04 18:18:08 +000013652 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000013653 lt_prog_compiler_wl='-Wl,'
13654 lt_prog_compiler_pic='-KPIC'
13655 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013656 ;;
13657
13658 sysv4*MP*)
13659 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000013660 lt_prog_compiler_pic='-Kconform_pic'
13661 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013662 fi
13663 ;;
13664
Reid Spencera773bd52006-08-04 18:18:08 +000013665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13666 lt_prog_compiler_wl='-Wl,'
13667 lt_prog_compiler_pic='-KPIC'
13668 lt_prog_compiler_static='-Bstatic'
13669 ;;
13670
13671 unicos*)
13672 lt_prog_compiler_wl='-Wl,'
13673 lt_prog_compiler_can_build_shared=no
13674 ;;
13675
John Criswell47fdd832003-07-14 16:52:07 +000013676 uts4*)
13677 lt_prog_compiler_pic='-pic'
13678 lt_prog_compiler_static='-Bstatic'
13679 ;;
13680
John Criswell7a73b802003-06-30 21:59:07 +000013681 *)
John Criswell47fdd832003-07-14 16:52:07 +000013682 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013683 ;;
13684 esac
13685 fi
13686
Reid Spencera773bd52006-08-04 18:18:08 +000013687{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13688echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013689
John Criswell47fdd832003-07-14 16:52:07 +000013690#
13691# Check to make sure the PIC flag actually works.
13692#
13693if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013694
Reid Spencera773bd52006-08-04 18:18:08 +000013695{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13696echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013697if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
John Criswell47fdd832003-07-14 16:52:07 +000013700 lt_prog_compiler_pic_works=no
13701 ac_outfile=conftest.$ac_objext
13702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13703 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13704 # Insert the option either (1) after the last *FLAGS variable, or
13705 # (2) before a word containing "conftest.", or (3) at the end.
13706 # Note that $ac_compile itself does not contain backslashes and begins
13707 # with a dollar sign (not a hyphen), so the echo should work correctly.
13708 # The option is referenced via a variable to avoid confusing sed.
13709 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13712 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000013713 (eval echo "\"\$as_me:13713: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013714 (eval "$lt_compile" 2>conftest.err)
13715 ac_status=$?
13716 cat conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000013717 echo "$as_me:13717: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013718 if (exit $ac_status) && test -s "$ac_outfile"; then
13719 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013720 # So say no if there are warnings other than the usual output.
13721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013724 lt_prog_compiler_pic_works=yes
13725 fi
13726 fi
13727 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013728
John Criswell47fdd832003-07-14 16:52:07 +000013729fi
Reid Spencera773bd52006-08-04 18:18:08 +000013730{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13731echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013732
John Criswell47fdd832003-07-14 16:52:07 +000013733if test x"$lt_prog_compiler_pic_works" = xyes; then
13734 case $lt_prog_compiler_pic in
13735 "" | " "*) ;;
13736 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13737 esac
John Criswell7a73b802003-06-30 21:59:07 +000013738else
John Criswell47fdd832003-07-14 16:52:07 +000013739 lt_prog_compiler_pic=
13740 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013741fi
13742
John Criswell7a73b802003-06-30 21:59:07 +000013743fi
Reid Spencera773bd52006-08-04 18:18:08 +000013744case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013745 # For platforms which do not support PIC, -DPIC is meaningless:
13746 *djgpp*)
13747 lt_prog_compiler_pic=
13748 ;;
13749 *)
13750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13751 ;;
13752esac
John Criswell7a73b802003-06-30 21:59:07 +000013753
Reid Spencera773bd52006-08-04 18:18:08 +000013754#
13755# Check to make sure the static flag actually works.
13756#
13757wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13758{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13759echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13760if test "${lt_prog_compiler_static_works+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762else
13763 lt_prog_compiler_static_works=no
13764 save_LDFLAGS="$LDFLAGS"
13765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13766 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13768 # The linker can only warn and ignore the option if not recognized
13769 # So say no if there are warnings
13770 if test -s conftest.err; then
13771 # Append any errors to the config.log.
13772 cat conftest.err 1>&5
13773 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13775 if diff conftest.exp conftest.er2 >/dev/null; then
13776 lt_prog_compiler_static_works=yes
13777 fi
13778 else
13779 lt_prog_compiler_static_works=yes
13780 fi
13781 fi
13782 $rm conftest*
13783 LDFLAGS="$save_LDFLAGS"
13784
13785fi
13786{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13787echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13788
13789if test x"$lt_prog_compiler_static_works" = xyes; then
13790 :
13791else
13792 lt_prog_compiler_static=
13793fi
13794
13795
13796{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13797echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013798if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800else
John Criswell47fdd832003-07-14 16:52:07 +000013801 lt_cv_prog_compiler_c_o=no
13802 $rm -r conftest 2>/dev/null
13803 mkdir conftest
13804 cd conftest
13805 mkdir out
13806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013807
John Criswell47fdd832003-07-14 16:52:07 +000013808 lt_compiler_flag="-o out/conftest2.$ac_objext"
13809 # Insert the option either (1) after the last *FLAGS variable, or
13810 # (2) before a word containing "conftest.", or (3) at the end.
13811 # Note that $ac_compile itself does not contain backslashes and begins
13812 # with a dollar sign (not a hyphen), so the echo should work correctly.
13813 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13816 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000013817 (eval echo "\"\$as_me:13817: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013818 (eval "$lt_compile" 2>out/conftest.err)
13819 ac_status=$?
13820 cat out/conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000013821 echo "$as_me:13821: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13823 then
13824 # The compiler can only warn and ignore the option if not recognized
13825 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000013826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013829 lt_cv_prog_compiler_c_o=yes
13830 fi
13831 fi
Reid Spencera773bd52006-08-04 18:18:08 +000013832 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013833 $rm conftest*
13834 # SGI C++ compiler will create directory out/ii_files/ for
13835 # template instantiation
13836 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13837 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013838 cd ..
13839 rmdir conftest
13840 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013841
13842fi
Reid Spencera773bd52006-08-04 18:18:08 +000013843{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13844echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013845
John Criswell7a73b802003-06-30 21:59:07 +000013846
John Criswell7a73b802003-06-30 21:59:07 +000013847hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000013848if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000013849 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000013850 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13851echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013852 hard_links=yes
13853 $rm conftest*
13854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13855 touch conftest.a
13856 ln conftest.a conftest.b 2>&5 || hard_links=no
13857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000013858 { echo "$as_me:$LINENO: result: $hard_links" >&5
13859echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013860 if test "$hard_links" = no; then
13861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13862echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13863 need_locks=warn
13864 fi
13865else
13866 need_locks=no
13867fi
John Criswell7a73b802003-06-30 21:59:07 +000013868
Reid Spencera773bd52006-08-04 18:18:08 +000013869{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13870echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013871
13872 runpath_var=
13873 allow_undefined_flag=
13874 enable_shared_with_static_runtimes=no
13875 archive_cmds=
13876 archive_expsym_cmds=
13877 old_archive_From_new_cmds=
13878 old_archive_from_expsyms_cmds=
13879 export_dynamic_flag_spec=
13880 whole_archive_flag_spec=
13881 thread_safe_flag_spec=
13882 hardcode_libdir_flag_spec=
13883 hardcode_libdir_flag_spec_ld=
13884 hardcode_libdir_separator=
13885 hardcode_direct=no
13886 hardcode_minus_L=no
13887 hardcode_shlibpath_var=unsupported
13888 link_all_deplibs=unknown
13889 hardcode_automatic=no
13890 module_cmds=
13891 module_expsym_cmds=
13892 always_export_symbols=no
13893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13894 # include_expsyms should be a list of space-separated symbols to be *always*
13895 # included in the symbol list
13896 include_expsyms=
13897 # exclude_expsyms can be an extended regexp of symbols to exclude
13898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13900 # as well as any symbol that contains `d'.
13901 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13903 # platforms (ab)use it in PIC code, but their linkers get confused if
13904 # the symbol is explicitly referenced. Since portable code cannot
13905 # rely on this symbol name, it's probably fine to never include it in
13906 # preloaded symbol tables.
13907 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000013908 # Just being paranoid about ensuring that cc_basename is set.
13909 for cc_temp in $compiler""; do
13910 case $cc_temp in
13911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13913 \-*) ;;
13914 *) break;;
13915 esac
13916done
13917cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000013918
13919 case $host_os in
13920 cygwin* | mingw* | pw32*)
13921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13922 # When not using gcc, we currently assume that we are using
13923 # Microsoft Visual C++.
13924 if test "$GCC" != yes; then
13925 with_gnu_ld=no
13926 fi
13927 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013928 interix*)
13929 # we just hope/assume this is gcc and not c89 (= MSVC++)
13930 with_gnu_ld=yes
13931 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013932 openbsd*)
13933 with_gnu_ld=no
13934 ;;
13935 esac
13936
13937 ld_shlibs=yes
13938 if test "$with_gnu_ld" = yes; then
13939 # If archive_cmds runs LD, not CC, wlarc should be empty
13940 wlarc='${wl}'
13941
Reid Spencera773bd52006-08-04 18:18:08 +000013942 # Set some defaults for GNU ld with shared library support. These
13943 # are reset later if shared libraries are not supported. Putting them
13944 # here allows them to be overridden if necessary.
13945 runpath_var=LD_RUN_PATH
13946 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13947 export_dynamic_flag_spec='${wl}--export-dynamic'
13948 # ancient GNU ld didn't support --whole-archive et. al.
13949 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13950 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13951 else
13952 whole_archive_flag_spec=
13953 fi
13954 supports_anon_versioning=no
13955 case `$LD -v 2>/dev/null` in
13956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13959 *\ 2.11.*) ;; # other 2.11 versions
13960 *) supports_anon_versioning=yes ;;
13961 esac
13962
John Criswell47fdd832003-07-14 16:52:07 +000013963 # See if GNU ld supports shared libraries.
13964 case $host_os in
13965 aix3* | aix4* | aix5*)
13966 # On AIX/PPC, the GNU linker is very broken
13967 if test "$host_cpu" != ia64; then
13968 ld_shlibs=no
13969 cat <<EOF 1>&2
13970
13971*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13972*** to be unable to reliably create shared libraries on AIX.
13973*** Therefore, libtool is disabling shared libraries support. If you
13974*** really care for shared libraries, you may want to modify your PATH
13975*** so that a non-GNU linker is found, and then restart.
13976
13977EOF
13978 fi
13979 ;;
13980
13981 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013982 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)'
John Criswell47fdd832003-07-14 16:52:07 +000013983 hardcode_libdir_flag_spec='-L$libdir'
13984 hardcode_minus_L=yes
13985
13986 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13987 # that the semantics of dynamic libraries on AmigaOS, at least up
13988 # to version 4, is to share data among multiple programs linked
13989 # with the same dynamic library. Since this doesn't match the
13990 # behavior of shared libraries on other platforms, we can't use
13991 # them.
13992 ld_shlibs=no
13993 ;;
13994
13995 beos*)
13996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13997 allow_undefined_flag=unsupported
13998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13999 # support --undefined. This deserves some investigation. FIXME
14000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14001 else
14002 ld_shlibs=no
14003 fi
14004 ;;
14005
14006 cygwin* | mingw* | pw32*)
14007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14008 # as there is no search path for DLLs.
14009 hardcode_libdir_flag_spec='-L$libdir'
14010 allow_undefined_flag=unsupported
14011 always_export_symbols=no
14012 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000014014
14015 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000014017 # If the export-symbols file already is a .def file (1st line
14018 # is EXPORTS), use it as is; otherwise, prepend...
14019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14020 cp $export_symbols $output_objdir/$soname.def;
14021 else
14022 echo EXPORTS > $output_objdir/$soname.def;
14023 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014024 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14026 else
14027 ld_shlibs=no
14028 fi
14029 ;;
14030
14031 interix3*)
14032 hardcode_direct=no
14033 hardcode_shlibpath_var=no
14034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14035 export_dynamic_flag_spec='${wl}-E'
14036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14037 # Instead, shared libraries are loaded at an image base (0x10000000 by
14038 # default) and relocated if they conflict, which is a slow very memory
14039 # consuming and fragmenting process. To avoid this, we pick a random,
14040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14043 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'
14044 ;;
14045
14046 linux*)
14047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14048 tmp_addflag=
14049 case $cc_basename,$host_cpu in
14050 pgcc*) # Portland Group C compiler
14051 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'
14052 tmp_addflag=' $pic_flag'
14053 ;;
14054 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14055 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'
14056 tmp_addflag=' $pic_flag -Mnomain' ;;
14057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14058 tmp_addflag=' -i_dynamic' ;;
14059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14060 tmp_addflag=' -i_dynamic -nofor_main' ;;
14061 ifc* | ifort*) # Intel Fortran compiler
14062 tmp_addflag=' -nofor_main' ;;
14063 esac
14064 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065
14066 if test $supports_anon_versioning = yes; then
14067 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14069 $echo "local: *; };" >> $output_objdir/$libname.ver~
14070 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14071 fi
John Criswell47fdd832003-07-14 16:52:07 +000014072 else
14073 ld_shlibs=no
14074 fi
14075 ;;
14076
14077 netbsd*)
14078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14079 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14080 wlarc=
14081 else
14082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14084 fi
14085 ;;
14086
Reid Spencera773bd52006-08-04 18:18:08 +000014087 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014088 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14089 ld_shlibs=no
14090 cat <<EOF 1>&2
14091
14092*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14093*** create shared libraries on Solaris systems. Therefore, libtool
14094*** is disabling shared libraries support. We urge you to upgrade GNU
14095*** binutils to release 2.9.1 or newer. Another option is to modify
14096*** your PATH or compiler configuration so that the native linker is
14097*** used, and then restart.
14098
14099EOF
14100 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14103 else
14104 ld_shlibs=no
14105 fi
14106 ;;
14107
Reid Spencera773bd52006-08-04 18:18:08 +000014108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14109 case `$LD -v 2>&1` in
14110 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14111 ld_shlibs=no
14112 cat <<_LT_EOF 1>&2
14113
14114*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14115*** reliably create shared libraries on SCO systems. Therefore, libtool
14116*** is disabling shared libraries support. We urge you to upgrade GNU
14117*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14118*** your PATH or compiler configuration so that the native linker is
14119*** used, and then restart.
14120
14121_LT_EOF
14122 ;;
14123 *)
14124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14125 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14128 else
14129 ld_shlibs=no
14130 fi
14131 ;;
14132 esac
14133 ;;
14134
John Criswell47fdd832003-07-14 16:52:07 +000014135 sunos4*)
14136 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14137 wlarc=
14138 hardcode_direct=yes
14139 hardcode_shlibpath_var=no
14140 ;;
14141
14142 *)
14143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14146 else
14147 ld_shlibs=no
14148 fi
14149 ;;
14150 esac
14151
Reid Spencera773bd52006-08-04 18:18:08 +000014152 if test "$ld_shlibs" = no; then
14153 runpath_var=
14154 hardcode_libdir_flag_spec=
14155 export_dynamic_flag_spec=
14156 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014157 fi
14158 else
14159 # PORTME fill in a description of your system's linker (not GNU ld)
14160 case $host_os in
14161 aix3*)
14162 allow_undefined_flag=unsupported
14163 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014164 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'
John Criswell47fdd832003-07-14 16:52:07 +000014165 # Note: this linker hardcodes the directories in LIBPATH if there
14166 # are no directories specified by -L.
14167 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014168 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014169 # Neither direct hardcoding nor static linking is supported with a
14170 # broken collect2.
14171 hardcode_direct=unsupported
14172 fi
14173 ;;
14174
14175 aix4* | aix5*)
14176 if test "$host_cpu" = ia64; then
14177 # On IA64, the linker does run time linking by default, so we don't
14178 # have to do anything special.
14179 aix_use_runtimelinking=no
14180 exp_sym_flag='-Bexport'
14181 no_entry_flag=""
14182 else
14183 # If we're using GNU nm, then we don't want the "-C" option.
14184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14185 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14186 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'
14187 else
14188 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'
14189 fi
14190 aix_use_runtimelinking=no
14191
14192 # Test if we are trying to use run time linking or normal
14193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14194 # need to do runtime linking.
14195 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14196 for ld_flag in $LDFLAGS; do
14197 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14198 aix_use_runtimelinking=yes
14199 break
14200 fi
14201 done
Reid Spencera773bd52006-08-04 18:18:08 +000014202 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014203 esac
14204
14205 exp_sym_flag='-bexport'
14206 no_entry_flag='-bnoentry'
14207 fi
14208
14209 # When large executables or shared objects are built, AIX ld can
14210 # have problems creating the table of contents. If linking a library
14211 # or program results in "error TOC overflow" add -mminimal-toc to
14212 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14213 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14214
14215 archive_cmds=''
14216 hardcode_direct=yes
14217 hardcode_libdir_separator=':'
14218 link_all_deplibs=yes
14219
14220 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014221 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014222 # We only want to do this on AIX 4.2 and lower, the check
14223 # below for broken collect2 doesn't work under 4.3+
14224 collect2name=`${CC} -print-prog-name=collect2`
14225 if test -f "$collect2name" && \
14226 strings "$collect2name" | grep resolve_lib_name >/dev/null
14227 then
14228 # We have reworked collect2
14229 hardcode_direct=yes
14230 else
14231 # We have old collect2
14232 hardcode_direct=unsupported
14233 # It fails to find uninstalled libraries when the uninstalled
14234 # path is not listed in the libpath. Setting hardcode_minus_L
14235 # to unsupported forces relinking
14236 hardcode_minus_L=yes
14237 hardcode_libdir_flag_spec='-L$libdir'
14238 hardcode_libdir_separator=
14239 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014240 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014241 esac
14242 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014243 if test "$aix_use_runtimelinking" = yes; then
14244 shared_flag="$shared_flag "'${wl}-G'
14245 fi
John Criswell47fdd832003-07-14 16:52:07 +000014246 else
14247 # not using gcc
14248 if test "$host_cpu" = ia64; then
14249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14250 # chokes on -Wl,-G. The following line is correct:
14251 shared_flag='-G'
14252 else
Reid Spencera773bd52006-08-04 18:18:08 +000014253 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014254 shared_flag='${wl}-G'
14255 else
14256 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014257 fi
John Criswell47fdd832003-07-14 16:52:07 +000014258 fi
14259 fi
14260
14261 # It seems that -bexpall does not export symbols beginning with
14262 # underscore (_), so it is better to generate a list of symbols to export.
14263 always_export_symbols=yes
14264 if test "$aix_use_runtimelinking" = yes; then
14265 # Warning - without using the other runtime loading flags (-brtl),
14266 # -berok will link without error, but may produce a broken library.
14267 allow_undefined_flag='-berok'
14268 # Determine the default libpath from the value encoded in an empty executable.
14269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014275
John Criswell7a73b802003-06-30 21:59:07 +000014276int
14277main ()
14278{
John Criswell47fdd832003-07-14 16:52:07 +000014279
John Criswell7a73b802003-06-30 21:59:07 +000014280 ;
14281 return 0;
14282}
14283_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014284rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014285if { (ac_try="$ac_link"
14286case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289esac
14290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest$ac_exeext &&
14301 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014302
John Criswell47fdd832003-07-14 16:52:07 +000014303aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14304}'`
14305# Check for a 64-bit object if we didn't find anything.
14306if 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; }
14307}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014308else
14309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014310sed 's/^/| /' conftest.$ac_ext >&5
14311
Reid Spencera773bd52006-08-04 18:18:08 +000014312
John Criswell7a73b802003-06-30 21:59:07 +000014313fi
Reid Spencera773bd52006-08-04 18:18:08 +000014314
Scott Michel96dcd2b2007-12-05 21:24:02 +000014315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014316 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014318
John Criswell47fdd832003-07-14 16:52:07 +000014319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000014320 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"
John Criswell47fdd832003-07-14 16:52:07 +000014321 else
14322 if test "$host_cpu" = ia64; then
14323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14324 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000014325 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"
John Criswell47fdd832003-07-14 16:52:07 +000014326 else
14327 # Determine the default libpath from the value encoded in an empty executable.
14328 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014334
John Criswell47fdd832003-07-14 16:52:07 +000014335int
14336main ()
14337{
John Criswell7a73b802003-06-30 21:59:07 +000014338
John Criswell47fdd832003-07-14 16:52:07 +000014339 ;
14340 return 0;
14341}
14342_ACEOF
14343rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014344if { (ac_try="$ac_link"
14345case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348esac
14349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest$ac_exeext &&
14360 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014361
John Criswell47fdd832003-07-14 16:52:07 +000014362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14363}'`
14364# Check for a 64-bit object if we didn't find anything.
14365if 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; }
14366}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014367else
John Criswell47fdd832003-07-14 16:52:07 +000014368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014369sed 's/^/| /' conftest.$ac_ext >&5
14370
Reid Spencera773bd52006-08-04 18:18:08 +000014371
John Criswell47fdd832003-07-14 16:52:07 +000014372fi
Reid Spencera773bd52006-08-04 18:18:08 +000014373
Scott Michel96dcd2b2007-12-05 21:24:02 +000014374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014375 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014376if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014377
John Criswell47fdd832003-07-14 16:52:07 +000014378 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14379 # Warning - without using the other run time loading flags,
14380 # -berok will link without error, but may produce a broken library.
14381 no_undefined_flag=' ${wl}-bernotok'
14382 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000014383 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000014384 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000014385 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014386 # This is similar to how AIX traditionally builds its shared libraries.
14387 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'
John Criswell7a73b802003-06-30 21:59:07 +000014388 fi
14389 fi
John Criswell7a73b802003-06-30 21:59:07 +000014390 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014391
14392 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014393 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)'
John Criswell47fdd832003-07-14 16:52:07 +000014394 hardcode_libdir_flag_spec='-L$libdir'
14395 hardcode_minus_L=yes
14396 # see comment about different semantics on the GNU ld section
14397 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000014398 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014399
Reid Spencer2706f8c2004-09-19 23:53:36 +000014400 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014401 export_dynamic_flag_spec=-rdynamic
14402 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014403
John Criswell47fdd832003-07-14 16:52:07 +000014404 cygwin* | mingw* | pw32*)
14405 # When not using gcc, we currently assume that we are using
14406 # Microsoft Visual C++.
14407 # hardcode_libdir_flag_spec is actually meaningless, as there is
14408 # no search path for DLLs.
14409 hardcode_libdir_flag_spec=' '
14410 allow_undefined_flag=unsupported
14411 # Tell ltmain to make .lib files, not .a files.
14412 libext=lib
14413 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014414 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014415 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000014417 # The linker will automatically build a .lib file if we build a DLL.
14418 old_archive_From_new_cmds='true'
14419 # FIXME: Should let the user specify the lib program.
14420 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14421 fix_srcfile_path='`cygpath -w "$srcfile"`'
14422 enable_shared_with_static_runtimes=yes
14423 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014424
John Criswell47fdd832003-07-14 16:52:07 +000014425 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000014426 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014427 rhapsody* | darwin1.[012])
14428 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14429 ;;
14430 *) # Darwin 1.3 on
14431 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14432 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14433 else
14434 case ${MACOSX_DEPLOYMENT_TARGET} in
14435 10.[012])
14436 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14437 ;;
14438 10.*)
14439 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14440 ;;
14441 esac
14442 fi
14443 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014444 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014446 hardcode_direct=no
14447 hardcode_automatic=yes
14448 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014449 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000014450 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014451 if test "$GCC" = yes ; then
14452 output_verbose_link_cmd='echo'
14453 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14454 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000014456 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}'
14457 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014458 else
Reid Spencera773bd52006-08-04 18:18:08 +000014459 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014460 xlc*)
14461 output_verbose_link_cmd='echo'
14462 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14463 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014464 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000014465 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}'
14466 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014467 ;;
14468 *)
14469 ld_shlibs=no
14470 ;;
14471 esac
John Criswell7a73b802003-06-30 21:59:07 +000014472 fi
John Criswell47fdd832003-07-14 16:52:07 +000014473 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014474
John Criswell47fdd832003-07-14 16:52:07 +000014475 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000014476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014477 hardcode_libdir_flag_spec='-L$libdir'
14478 hardcode_shlibpath_var=no
14479 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014480
John Criswell47fdd832003-07-14 16:52:07 +000014481 freebsd1*)
14482 ld_shlibs=no
14483 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014484
John Criswell47fdd832003-07-14 16:52:07 +000014485 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14486 # support. Future versions do this automatically, but an explicit c++rt0.o
14487 # does not break anything, and helps significantly (at the cost of a little
14488 # extra space).
14489 freebsd2.2*)
14490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14491 hardcode_libdir_flag_spec='-R$libdir'
14492 hardcode_direct=yes
14493 hardcode_shlibpath_var=no
14494 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014495
John Criswell47fdd832003-07-14 16:52:07 +000014496 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14497 freebsd2*)
14498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14499 hardcode_direct=yes
14500 hardcode_minus_L=yes
14501 hardcode_shlibpath_var=no
14502 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014503
John Criswell47fdd832003-07-14 16:52:07 +000014504 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000014505 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000014506 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14507 hardcode_libdir_flag_spec='-R$libdir'
14508 hardcode_direct=yes
14509 hardcode_shlibpath_var=no
14510 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014511
John Criswell47fdd832003-07-14 16:52:07 +000014512 hpux9*)
14513 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014514 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'
John Criswell47fdd832003-07-14 16:52:07 +000014515 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014516 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'
John Criswell47fdd832003-07-14 16:52:07 +000014517 fi
14518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14519 hardcode_libdir_separator=:
14520 hardcode_direct=yes
14521
14522 # hardcode_minus_L: Not really in the search PATH,
14523 # but as the default location of the library.
14524 hardcode_minus_L=yes
14525 export_dynamic_flag_spec='${wl}-E'
14526 ;;
14527
Reid Spencera773bd52006-08-04 18:18:08 +000014528 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000014529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014530 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14531 else
14532 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14533 fi
14534 if test "$with_gnu_ld" = no; then
14535 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14536 hardcode_libdir_separator=:
14537
14538 hardcode_direct=yes
14539 export_dynamic_flag_spec='${wl}-E'
14540
14541 # hardcode_minus_L: Not really in the search PATH,
14542 # but as the default location of the library.
14543 hardcode_minus_L=yes
14544 fi
14545 ;;
14546
14547 hpux11*)
14548 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14549 case $host_cpu in
14550 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000014551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14552 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014553 ia64*)
14554 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14555 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014556 *)
14557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14558 ;;
14559 esac
14560 else
Reid Spencera773bd52006-08-04 18:18:08 +000014561 case $host_cpu in
14562 hppa*64*)
14563 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14564 ;;
14565 ia64*)
14566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014567 ;;
14568 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014570 ;;
14571 esac
14572 fi
14573 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14575 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000014576
Reid Spencera773bd52006-08-04 18:18:08 +000014577 case $host_cpu in
14578 hppa*64*|ia64*)
14579 hardcode_libdir_flag_spec_ld='+b $libdir'
14580 hardcode_direct=no
14581 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000014582 ;;
14583 *)
John Criswell47fdd832003-07-14 16:52:07 +000014584 hardcode_direct=yes
14585 export_dynamic_flag_spec='${wl}-E'
14586
14587 # hardcode_minus_L: Not really in the search PATH,
14588 # but as the default location of the library.
14589 hardcode_minus_L=yes
14590 ;;
14591 esac
14592 fi
14593 ;;
14594
14595 irix5* | irix6* | nonstopux*)
14596 if test "$GCC" = yes; then
14597 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'
14598 else
14599 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'
14600 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14601 fi
14602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14603 hardcode_libdir_separator=:
14604 link_all_deplibs=yes
14605 ;;
14606
14607 netbsd*)
14608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14610 else
14611 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14612 fi
14613 hardcode_libdir_flag_spec='-R$libdir'
14614 hardcode_direct=yes
14615 hardcode_shlibpath_var=no
14616 ;;
14617
14618 newsos6)
14619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620 hardcode_direct=yes
14621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator=:
14623 hardcode_shlibpath_var=no
14624 ;;
14625
14626 openbsd*)
14627 hardcode_direct=yes
14628 hardcode_shlibpath_var=no
14629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014631 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000014632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14633 export_dynamic_flag_spec='${wl}-E'
14634 else
14635 case $host_os in
14636 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14638 hardcode_libdir_flag_spec='-R$libdir'
14639 ;;
14640 *)
14641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14643 ;;
14644 esac
14645 fi
14646 ;;
14647
14648 os2*)
14649 hardcode_libdir_flag_spec='-L$libdir'
14650 hardcode_minus_L=yes
14651 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014652 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'
John Criswell47fdd832003-07-14 16:52:07 +000014653 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14654 ;;
14655
14656 osf3*)
14657 if test "$GCC" = yes; then
14658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14659 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'
14660 else
14661 allow_undefined_flag=' -expect_unresolved \*'
14662 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'
14663 fi
14664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14665 hardcode_libdir_separator=:
14666 ;;
14667
14668 osf4* | osf5*) # as osf3* with the addition of -msym flag
14669 if test "$GCC" = yes; then
14670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14671 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'
14672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14673 else
14674 allow_undefined_flag=' -expect_unresolved \*'
14675 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000014676 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000014677 $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'
Reid Spencer177dbe22004-10-13 01:01:03 +000014678
John Criswell47fdd832003-07-14 16:52:07 +000014679 # Both c and cxx compiler support -rpath directly
14680 hardcode_libdir_flag_spec='-rpath $libdir'
14681 fi
14682 hardcode_libdir_separator=:
14683 ;;
14684
John Criswell47fdd832003-07-14 16:52:07 +000014685 solaris*)
14686 no_undefined_flag=' -z text'
14687 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014688 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000014689 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014690 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014692 else
Reid Spencera773bd52006-08-04 18:18:08 +000014693 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000014694 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014695 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014697 fi
14698 hardcode_libdir_flag_spec='-R$libdir'
14699 hardcode_shlibpath_var=no
14700 case $host_os in
14701 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014702 *)
14703 # The compiler driver will combine linker options so we
14704 # cannot just pass the convience library names through
14705 # without $wl, iff we do not link with $LD.
14706 # Luckily, gcc supports the same syntax we need for Sun Studio.
14707 # Supported since Solaris 2.6 (maybe 2.5.1?)
14708 case $wlarc in
14709 '')
14710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14711 *)
14712 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' ;;
14713 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000014714 esac
14715 link_all_deplibs=yes
14716 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014717
John Criswell47fdd832003-07-14 16:52:07 +000014718 sunos4*)
14719 if test "x$host_vendor" = xsequent; then
14720 # Use $CC to link under sequent, because it throws in some extra .o
14721 # files that make .init and .fini sections work.
14722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14723 else
14724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14725 fi
14726 hardcode_libdir_flag_spec='-L$libdir'
14727 hardcode_direct=yes
14728 hardcode_minus_L=yes
14729 hardcode_shlibpath_var=no
14730 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014731
John Criswell47fdd832003-07-14 16:52:07 +000014732 sysv4)
14733 case $host_vendor in
14734 sni)
14735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14736 hardcode_direct=yes # is this really true???
14737 ;;
14738 siemens)
14739 ## LD is ld it makes a PLAMLIB
14740 ## CC just makes a GrossModule.
14741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14742 reload_cmds='$CC -r -o $output$reload_objs'
14743 hardcode_direct=no
14744 ;;
14745 motorola)
14746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14748 ;;
14749 esac
14750 runpath_var='LD_RUN_PATH'
14751 hardcode_shlibpath_var=no
14752 ;;
14753
14754 sysv4.3*)
14755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_shlibpath_var=no
14757 export_dynamic_flag_spec='-Bexport'
14758 ;;
14759
14760 sysv4*MP*)
14761 if test -d /usr/nec; then
14762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14763 hardcode_shlibpath_var=no
14764 runpath_var=LD_RUN_PATH
14765 hardcode_runpath_var=yes
14766 ld_shlibs=yes
14767 fi
14768 ;;
14769
Reid Spencera773bd52006-08-04 18:18:08 +000014770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14771 no_undefined_flag='${wl}-z,text'
14772 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014773 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014774 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000014775
John Criswell47fdd832003-07-14 16:52:07 +000014776 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014779 else
Reid Spencera773bd52006-08-04 18:18:08 +000014780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014782 fi
John Criswell47fdd832003-07-14 16:52:07 +000014783 ;;
14784
Reid Spencera773bd52006-08-04 18:18:08 +000014785 sysv5* | sco3.2v5* | sco5v6*)
14786 # Note: We can NOT use -z defs as we might desire, because we do not
14787 # link with -lc, and that would cause any symbols used from libc to
14788 # always be unresolved, which means just about no library would
14789 # ever link correctly. If we're not using GNU ld we use -z text
14790 # though, which does catch some bad symbols but isn't as heavy-handed
14791 # as -z defs.
14792 no_undefined_flag='${wl}-z,text'
14793 allow_undefined_flag='${wl}-z,nodefs'
14794 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014795 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014796 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14797 hardcode_libdir_separator=':'
14798 link_all_deplibs=yes
14799 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000014800 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000014801
14802 if test "$GCC" = yes; then
14803 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14805 else
14806 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14808 fi
John Criswell47fdd832003-07-14 16:52:07 +000014809 ;;
14810
14811 uts4*)
14812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_libdir_flag_spec='-L$libdir'
14814 hardcode_shlibpath_var=no
14815 ;;
14816
14817 *)
14818 ld_shlibs=no
14819 ;;
14820 esac
14821 fi
14822
Reid Spencera773bd52006-08-04 18:18:08 +000014823{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14824echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014825test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014826
John Criswell47fdd832003-07-14 16:52:07 +000014827#
14828# Do we need to explicitly link libc?
14829#
14830case "x$archive_cmds_need_lc" in
14831x|xyes)
14832 # Assume -lc should be added
14833 archive_cmds_need_lc=yes
14834
14835 if test "$enable_shared" = yes && test "$GCC" = yes; then
14836 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014837 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014838 # FIXME: we may have to deal with multi-command sequences.
14839 ;;
14840 '$CC '*)
14841 # Test whether the compiler implicitly links with -lc since on some
14842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14843 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000014844 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14845echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014846 $rm conftest*
14847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14848
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } 2>conftest.err; then
14854 soname=conftest
14855 lib=conftest
14856 libobjs=conftest.$ac_objext
14857 deplibs=
14858 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000014859 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000014860 compiler_flags=-v
14861 linker_flags=-v
14862 verstring=
14863 output_objdir=.
14864 libname=conftest
14865 lt_save_allow_undefined_flag=$allow_undefined_flag
14866 allow_undefined_flag=
14867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14868 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }
14872 then
14873 archive_cmds_need_lc=no
14874 else
14875 archive_cmds_need_lc=yes
14876 fi
14877 allow_undefined_flag=$lt_save_allow_undefined_flag
14878 else
14879 cat conftest.err 1>&5
14880 fi
14881 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000014882 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14883echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014884 ;;
14885 esac
14886 fi
14887 ;;
14888esac
14889
Reid Spencera773bd52006-08-04 18:18:08 +000014890{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14891echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014892library_names_spec=
14893libname_spec='lib$name'
14894soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014895shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000014896postinstall_cmds=
14897postuninstall_cmds=
14898finish_cmds=
14899finish_eval=
14900shlibpath_var=
14901shlibpath_overrides_runpath=unknown
14902version_type=none
14903dynamic_linker="$host_os ld.so"
14904sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014905if test "$GCC" = yes; then
14906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14907 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14908 # if the path contains ";" then we assume it to be the separator
14909 # otherwise default to the standard path separator (i.e. ":") - it is
14910 # assumed that no part of a normal pathname contains ";" but that should
14911 # okay in the real world where ";" in dirpaths is itself problematic.
14912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14913 else
14914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14915 fi
14916else
14917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14918fi
14919need_lib_prefix=unknown
14920hardcode_into_libs=no
14921
14922# when you set need_version to no, make sure it does not cause -set_version
14923# flags to be left without arguments
14924need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000014925
14926case $host_os in
14927aix3*)
14928 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000014930 shlibpath_var=LIBPATH
14931
John Criswell47fdd832003-07-14 16:52:07 +000014932 # AIX 3 has no versioning support, so we append a major version to the name.
14933 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014934 ;;
14935
14936aix4* | aix5*)
14937 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014938 need_lib_prefix=no
14939 need_version=no
14940 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000014941 if test "$host_cpu" = ia64; then
14942 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000014943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014944 shlibpath_var=LD_LIBRARY_PATH
14945 else
14946 # With GCC up to 2.95.x, collect2 would create an import file
14947 # for dependence libraries. The import file would start with
14948 # the line `#! .'. This would cause the generated library to
14949 # depend on `.', always an invalid library. This was fixed in
14950 # development snapshots of GCC prior to 3.0.
14951 case $host_os in
14952 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000014953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14954 echo ' yes '
14955 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14956 :
14957 else
14958 can_build_shared=no
14959 fi
14960 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014961 esac
John Criswell47fdd832003-07-14 16:52:07 +000014962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14963 # soname into executable. Probably we can add versioning support to
14964 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000014965 if test "$aix_use_runtimelinking" = yes; then
14966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14967 # instead of lib<name>.a to let people know that these are not
14968 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014970 else
14971 # We preserve .a as extension for shared libraries through AIX4.2
14972 # and later when we are not doing run time linking.
14973 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000014974 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014975 fi
14976 shlibpath_var=LIBPATH
14977 fi
14978 ;;
14979
14980amigaos*)
14981 library_names_spec='$libname.ixlibrary $libname.a'
14982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014983 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'
John Criswell7a73b802003-06-30 21:59:07 +000014984 ;;
14985
14986beos*)
John Criswell47fdd832003-07-14 16:52:07 +000014987 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014988 dynamic_linker="$host_os ld.so"
14989 shlibpath_var=LIBRARY_PATH
14990 ;;
14991
Reid Spencer2706f8c2004-09-19 23:53:36 +000014992bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000014993 version_type=linux
14994 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015001 # the default ld.so.conf also contains /usr/contrib/lib and
15002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15003 # libtool to hard-code these into programs
15004 ;;
15005
15006cygwin* | mingw* | pw32*)
15007 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015008 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015009 need_version=no
15010 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015011
John Criswell7a73b802003-06-30 21:59:07 +000015012 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015013 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015014 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015016 postinstall_cmds='base_file=`basename \${file}`~
15017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15018 dldir=$destdir/`dirname \$dlpath`~
15019 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015020 $install_prog $dir/$dlname \$dldir/$dlname~
15021 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15023 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015024 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015025 shlibpath_overrides_runpath=yes
15026
15027 case $host_os in
15028 cygwin*)
15029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015032 ;;
15033 mingw*)
15034 # MinGW DLLs use traditional 'lib' prefix
15035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15038 # It is most probably a Windows format PATH printed by
15039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15040 # path with ; separators, and with drive letters. We can handle the
15041 # drive letters (cygwin fileutils understands them), so leave them,
15042 # especially as we might pass files found there to a mingw objdump,
15043 # which wouldn't understand a cygwinified path. Ahh.
15044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15045 else
15046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15047 fi
15048 ;;
15049 pw32*)
15050 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015052 ;;
15053 esac
John Criswell7a73b802003-06-30 21:59:07 +000015054 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015055
John Criswell7a73b802003-06-30 21:59:07 +000015056 *)
John Criswell47fdd832003-07-14 16:52:07 +000015057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015058 ;;
15059 esac
15060 dynamic_linker='Win32 ld.exe'
15061 # FIXME: first we should search . and the directory the executable is in
15062 shlibpath_var=PATH
15063 ;;
15064
15065darwin* | rhapsody*)
15066 dynamic_linker="$host_os dyld"
15067 version_type=darwin
15068 need_lib_prefix=no
15069 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015070 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015071 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015072 shlibpath_overrides_runpath=yes
15073 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015074 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015075 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015076 if test "$GCC" = yes; then
15077 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"`
15078 else
15079 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015080 fi
15081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15082 ;;
15083
15084dgux*)
15085 version_type=linux
15086 need_lib_prefix=no
15087 need_version=no
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015091 ;;
15092
15093freebsd1*)
15094 dynamic_linker=no
15095 ;;
15096
Reid Spencer2706f8c2004-09-19 23:53:36 +000015097kfreebsd*-gnu)
15098 version_type=linux
15099 need_lib_prefix=no
15100 need_version=no
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=no
15105 hardcode_into_libs=yes
15106 dynamic_linker='GNU ld.so'
15107 ;;
15108
Reid Spencera773bd52006-08-04 18:18:08 +000015109freebsd* | dragonfly*)
15110 # DragonFly does not have aout. When/if they implement a new
15111 # versioning mechanism, adjust this.
15112 if test -x /usr/bin/objformat; then
15113 objformat=`/usr/bin/objformat`
15114 else
15115 case $host_os in
15116 freebsd[123]*) objformat=aout ;;
15117 *) objformat=elf ;;
15118 esac
15119 fi
John Criswell7a73b802003-06-30 21:59:07 +000015120 version_type=freebsd-$objformat
15121 case $version_type in
15122 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015124 need_version=no
15125 need_lib_prefix=no
15126 ;;
15127 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015129 need_version=yes
15130 ;;
15131 esac
15132 shlibpath_var=LD_LIBRARY_PATH
15133 case $host_os in
15134 freebsd2*)
15135 shlibpath_overrides_runpath=yes
15136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015137 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015138 shlibpath_overrides_runpath=yes
15139 hardcode_into_libs=yes
15140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015143 shlibpath_overrides_runpath=no
15144 hardcode_into_libs=yes
15145 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015146 freebsd*) # from 4.6 on
15147 shlibpath_overrides_runpath=yes
15148 hardcode_into_libs=yes
15149 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015150 esac
15151 ;;
15152
15153gnu*)
15154 version_type=linux
15155 need_lib_prefix=no
15156 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015159 shlibpath_var=LD_LIBRARY_PATH
15160 hardcode_into_libs=yes
15161 ;;
15162
15163hpux9* | hpux10* | hpux11*)
15164 # Give a soname corresponding to the major version so that dld.sl refuses to
15165 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015166 version_type=sunos
15167 need_lib_prefix=no
15168 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015169 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015170 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015171 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015172 hardcode_into_libs=yes
15173 dynamic_linker="$host_os dld.so"
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 if test "X$HPUX_IA64_MODE" = X32; then
15179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15180 else
15181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15182 fi
15183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15184 ;;
15185 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015186 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015187 hardcode_into_libs=yes
15188 dynamic_linker="$host_os dld.sl"
15189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15195 ;;
15196 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015197 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015198 dynamic_linker="$host_os dld.sl"
15199 shlibpath_var=SHLIB_PATH
15200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 ;;
15204 esac
John Criswell7a73b802003-06-30 21:59:07 +000015205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15206 postinstall_cmds='chmod 555 $lib'
15207 ;;
15208
Reid Spencera773bd52006-08-04 18:18:08 +000015209interix3*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15219 ;;
15220
John Criswell47fdd832003-07-14 16:52:07 +000015221irix5* | irix6* | nonstopux*)
15222 case $host_os in
15223 nonstopux*) version_type=nonstopux ;;
15224 *)
15225 if test "$lt_cv_prog_gnu_ld" = yes; then
15226 version_type=linux
15227 else
15228 version_type=irix
15229 fi ;;
15230 esac
John Criswell7a73b802003-06-30 21:59:07 +000015231 need_lib_prefix=no
15232 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015233 soname_spec='${libname}${release}${shared_ext}$major'
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015235 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015236 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015237 libsuff= shlibsuff=
15238 ;;
15239 *)
15240 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15242 libsuff= shlibsuff= libmagic=32-bit;;
15243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15244 libsuff=32 shlibsuff=N32 libmagic=N32;;
15245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015247 *) libsuff= shlibsuff= libmagic=never-match;;
15248 esac
15249 ;;
15250 esac
15251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15252 shlibpath_overrides_runpath=no
15253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015255 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015256 ;;
15257
15258# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015259linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015260 dynamic_linker=no
15261 ;;
15262
15263# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015264linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015265 version_type=linux
15266 need_lib_prefix=no
15267 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=no
15273 # This implies no fast_install, which is unacceptable.
15274 # Some rework will be needed to allow for fast_install
15275 # before this can be enabled.
15276 hardcode_into_libs=yes
15277
Reid Spencer2706f8c2004-09-19 23:53:36 +000015278 # Append ld.so.conf contents to the search path
15279 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000015280 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000015281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15282 fi
15283
John Criswell7a73b802003-06-30 21:59:07 +000015284 # We used to test for /lib/ld.so.1 and disable shared libraries on
15285 # powerpc, because MkLinux only supported shared libraries with the
15286 # GNU dynamic linker. Since this was broken with cross compilers,
15287 # most powerpc-linux boxes support dynamic linking these days and
15288 # people can always --disable-shared, the test was removed, and we
15289 # assume the GNU/Linux dynamic linker is in use.
15290 dynamic_linker='GNU/Linux ld.so'
15291 ;;
15292
Reid Spencer2706f8c2004-09-19 23:53:36 +000015293knetbsd*-gnu)
15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 dynamic_linker='GNU ld.so'
15303 ;;
15304
John Criswell7a73b802003-06-30 21:59:07 +000015305netbsd*)
15306 version_type=sunos
15307 need_lib_prefix=no
15308 need_version=no
15309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15312 dynamic_linker='NetBSD (a.out) ld.so'
15313 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015315 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015316 dynamic_linker='NetBSD ld.elf_so'
15317 fi
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 ;;
15322
15323newsos6)
15324 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=yes
15328 ;;
15329
Reid Spencer2706f8c2004-09-19 23:53:36 +000015330nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015331 version_type=linux
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15338 ;;
15339
15340openbsd*)
15341 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000015342 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015343 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000015344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15345 case $host_os in
15346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15347 *) need_version=no ;;
15348 esac
John Criswell47fdd832003-07-14 16:52:07 +000015349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15351 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +000015353 case $host_os in
15354 openbsd2.[89] | openbsd2.[89].*)
15355 shlibpath_overrides_runpath=no
15356 ;;
15357 *)
15358 shlibpath_overrides_runpath=yes
15359 ;;
15360 esac
John Criswell7a73b802003-06-30 21:59:07 +000015361 else
15362 shlibpath_overrides_runpath=yes
15363 fi
John Criswell7a73b802003-06-30 21:59:07 +000015364 ;;
15365
15366os2*)
15367 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015368 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015369 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015370 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015371 dynamic_linker='OS/2 ld.exe'
15372 shlibpath_var=LIBPATH
15373 ;;
15374
15375osf3* | osf4* | osf5*)
15376 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000015377 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015378 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015379 soname_spec='${libname}${release}${shared_ext}$major'
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015381 shlibpath_var=LD_LIBRARY_PATH
15382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15384 ;;
15385
John Criswell7a73b802003-06-30 21:59:07 +000015386solaris*)
15387 version_type=linux
15388 need_lib_prefix=no
15389 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 # ldd complains unless libraries are executable
15396 postinstall_cmds='chmod +x $lib'
15397 ;;
15398
15399sunos4*)
15400 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000015401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=yes
15405 if test "$with_gnu_ld" = yes; then
15406 need_lib_prefix=no
15407 fi
15408 need_version=yes
15409 ;;
15410
Reid Spencera773bd52006-08-04 18:18:08 +000015411sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000015412 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015415 shlibpath_var=LD_LIBRARY_PATH
15416 case $host_vendor in
15417 sni)
15418 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000015419 need_lib_prefix=no
15420 export_dynamic_flag_spec='${wl}-Blargedynsym'
15421 runpath_var=LD_RUN_PATH
15422 ;;
15423 siemens)
15424 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015425 ;;
15426 motorola)
15427 need_lib_prefix=no
15428 need_version=no
15429 shlibpath_overrides_runpath=no
15430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15431 ;;
15432 esac
15433 ;;
15434
John Criswell7a73b802003-06-30 21:59:07 +000015435sysv4*MP*)
15436 if test -d /usr/nec ;then
15437 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000015440 shlibpath_var=LD_LIBRARY_PATH
15441 fi
15442 ;;
15443
Reid Spencera773bd52006-08-04 18:18:08 +000015444sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15445 version_type=freebsd-elf
15446 need_lib_prefix=no
15447 need_version=no
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 hardcode_into_libs=yes
15452 if test "$with_gnu_ld" = yes; then
15453 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15454 shlibpath_overrides_runpath=no
15455 else
15456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15457 shlibpath_overrides_runpath=yes
15458 case $host_os in
15459 sco3.2v5*)
15460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15461 ;;
15462 esac
15463 fi
15464 sys_lib_dlsearch_path_spec='/usr/lib'
15465 ;;
15466
John Criswell47fdd832003-07-14 16:52:07 +000015467uts4*)
15468 version_type=linux
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 ;;
15473
John Criswell7a73b802003-06-30 21:59:07 +000015474*)
15475 dynamic_linker=no
15476 ;;
15477esac
Reid Spencera773bd52006-08-04 18:18:08 +000015478{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15479echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015480test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015481
Reid Spencera773bd52006-08-04 18:18:08 +000015482variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15483if test "$GCC" = yes; then
15484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15485fi
15486
15487{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15488echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015489hardcode_action=
15490if test -n "$hardcode_libdir_flag_spec" || \
15491 test -n "$runpath_var" || \
15492 test "X$hardcode_automatic" = "Xyes" ; then
15493
15494 # We can hardcode non-existant directories.
15495 if test "$hardcode_direct" != no &&
15496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15497 # have to relink, otherwise we might link with an installed library
15498 # when we should be linking with a yet-to-be-installed one
15499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15500 test "$hardcode_minus_L" != no; then
15501 # Linking always hardcodes the temporary library directory.
15502 hardcode_action=relink
15503 else
15504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15505 hardcode_action=immediate
15506 fi
15507else
15508 # We cannot hardcode anything, or else we can only hardcode existing
15509 # directories.
15510 hardcode_action=unsupported
15511fi
Reid Spencera773bd52006-08-04 18:18:08 +000015512{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15513echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015514
15515if test "$hardcode_action" = relink; then
15516 # Fast installation is not supported
15517 enable_fast_install=no
15518elif test "$shlibpath_overrides_runpath" = yes ||
15519 test "$enable_shared" = no; then
15520 # Fast installation is not necessary
15521 enable_fast_install=needless
15522fi
15523
15524striplib=
15525old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000015526{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15527echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015528if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000015531 { echo "$as_me:$LINENO: result: yes" >&5
15532echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533else
15534# FIXME - insert some real tests, host_os isn't really good enough
15535 case $host_os in
15536 darwin*)
15537 if test -n "$STRIP" ; then
15538 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000015539 { echo "$as_me:$LINENO: result: yes" >&5
15540echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015541 else
Reid Spencera773bd52006-08-04 18:18:08 +000015542 { echo "$as_me:$LINENO: result: no" >&5
15543echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015544fi
15545 ;;
15546 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015547 { echo "$as_me:$LINENO: result: no" >&5
15548echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015549 ;;
15550 esac
15551fi
15552
John Criswell7a73b802003-06-30 21:59:07 +000015553if test "x$enable_dlopen" != xyes; then
15554 enable_dlopen=unknown
15555 enable_dlopen_self=unknown
15556 enable_dlopen_self_static=unknown
15557else
15558 lt_cv_dlopen=no
15559 lt_cv_dlopen_libs=
15560
15561 case $host_os in
15562 beos*)
15563 lt_cv_dlopen="load_add_on"
15564 lt_cv_dlopen_libs=
15565 lt_cv_dlopen_self=yes
15566 ;;
15567
John Criswell47fdd832003-07-14 16:52:07 +000015568 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015569 lt_cv_dlopen="LoadLibrary"
15570 lt_cv_dlopen_libs=
15571 ;;
15572
John Criswell47fdd832003-07-14 16:52:07 +000015573 cygwin*)
15574 lt_cv_dlopen="dlopen"
15575 lt_cv_dlopen_libs=
15576 ;;
15577
15578 darwin*)
15579 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000015580 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15581echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015582if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584else
15585 ac_check_lib_save_LIBS=$LIBS
15586LIBS="-ldl $LIBS"
15587cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015588/* confdefs.h. */
15589_ACEOF
15590cat confdefs.h >>conftest.$ac_ext
15591cat >>conftest.$ac_ext <<_ACEOF
15592/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015593
Reid Spencera773bd52006-08-04 18:18:08 +000015594/* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000015597#ifdef __cplusplus
15598extern "C"
15599#endif
John Criswell47fdd832003-07-14 16:52:07 +000015600char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015601int
15602main ()
15603{
Reid Spencera773bd52006-08-04 18:18:08 +000015604return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015605 ;
15606 return 0;
15607}
15608_ACEOF
15609rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015610if { (ac_try="$ac_link"
15611case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015622 (exit $ac_status); } && {
15623 test -z "$ac_c_werror_flag" ||
15624 test ! -s conftest.err
15625 } && test -s conftest$ac_exeext &&
15626 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000015627 ac_cv_lib_dl_dlopen=yes
15628else
15629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015630sed 's/^/| /' conftest.$ac_ext >&5
15631
Reid Spencera773bd52006-08-04 18:18:08 +000015632 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000015633fi
Reid Spencera773bd52006-08-04 18:18:08 +000015634
Scott Michel96dcd2b2007-12-05 21:24:02 +000015635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015636 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015637LIBS=$ac_check_lib_save_LIBS
15638fi
Reid Spencera773bd52006-08-04 18:18:08 +000015639{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15640echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015641if test $ac_cv_lib_dl_dlopen = yes; then
15642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15643else
15644
15645 lt_cv_dlopen="dyld"
15646 lt_cv_dlopen_libs=
15647 lt_cv_dlopen_self=yes
15648
15649fi
15650
15651 ;;
15652
John Criswell7a73b802003-06-30 21:59:07 +000015653 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015654 { echo "$as_me:$LINENO: checking for shl_load" >&5
15655echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015656if test "${ac_cv_func_shl_load+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15658else
15659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015665/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15667#define shl_load innocuous_shl_load
15668
John Criswell7a73b802003-06-30 21:59:07 +000015669/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015670 which can conflict with char shl_load (); below.
15671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15672 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015673
John Criswell0c38eaf2003-09-10 15:17:25 +000015674#ifdef __STDC__
15675# include <limits.h>
15676#else
15677# include <assert.h>
15678#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015679
15680#undef shl_load
15681
Reid Spencera773bd52006-08-04 18:18:08 +000015682/* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015685#ifdef __cplusplus
15686extern "C"
15687#endif
John Criswell7a73b802003-06-30 21:59:07 +000015688char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015689/* The GNU C library defines this for functions which it implements
15690 to always fail with ENOSYS. Some functions are actually named
15691 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015692#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000015693choke me
John Criswell7a73b802003-06-30 21:59:07 +000015694#endif
15695
John Criswell0c38eaf2003-09-10 15:17:25 +000015696int
15697main ()
15698{
Reid Spencera773bd52006-08-04 18:18:08 +000015699return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015700 ;
15701 return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015705if { (ac_try="$ac_link"
15706case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext &&
15721 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015722 ac_cv_func_shl_load=yes
15723else
15724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015725sed 's/^/| /' conftest.$ac_ext >&5
15726
Reid Spencera773bd52006-08-04 18:18:08 +000015727 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015728fi
Reid Spencera773bd52006-08-04 18:18:08 +000015729
Scott Michel96dcd2b2007-12-05 21:24:02 +000015730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015731 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015732fi
Reid Spencera773bd52006-08-04 18:18:08 +000015733{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15734echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015735if test $ac_cv_func_shl_load = yes; then
15736 lt_cv_dlopen="shl_load"
15737else
Reid Spencera773bd52006-08-04 18:18:08 +000015738 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15739echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015740if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743 ac_check_lib_save_LIBS=$LIBS
15744LIBS="-ldld $LIBS"
15745cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015751
Reid Spencera773bd52006-08-04 18:18:08 +000015752/* Override any GCC internal prototype to avoid an error.
15753 Use char because int might match the return type of a GCC
15754 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015755#ifdef __cplusplus
15756extern "C"
15757#endif
John Criswell7a73b802003-06-30 21:59:07 +000015758char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015759int
15760main ()
15761{
Reid Spencera773bd52006-08-04 18:18:08 +000015762return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015768if { (ac_try="$ac_link"
15769case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015775 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015780 (exit $ac_status); } && {
15781 test -z "$ac_c_werror_flag" ||
15782 test ! -s conftest.err
15783 } && test -s conftest$ac_exeext &&
15784 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015785 ac_cv_lib_dld_shl_load=yes
15786else
15787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015788sed 's/^/| /' conftest.$ac_ext >&5
15789
Reid Spencera773bd52006-08-04 18:18:08 +000015790 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015791fi
Reid Spencera773bd52006-08-04 18:18:08 +000015792
Scott Michel96dcd2b2007-12-05 21:24:02 +000015793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015794 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015795LIBS=$ac_check_lib_save_LIBS
15796fi
Reid Spencera773bd52006-08-04 18:18:08 +000015797{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15798echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015799if test $ac_cv_lib_dld_shl_load = yes; then
15800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15801else
Reid Spencera773bd52006-08-04 18:18:08 +000015802 { echo "$as_me:$LINENO: checking for dlopen" >&5
15803echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015804if test "${ac_cv_func_dlopen+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15806else
15807 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015808/* confdefs.h. */
15809_ACEOF
15810cat confdefs.h >>conftest.$ac_ext
15811cat >>conftest.$ac_ext <<_ACEOF
15812/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015813/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15815#define dlopen innocuous_dlopen
15816
John Criswell7a73b802003-06-30 21:59:07 +000015817/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015818 which can conflict with char dlopen (); below.
15819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15820 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015821
John Criswell0c38eaf2003-09-10 15:17:25 +000015822#ifdef __STDC__
15823# include <limits.h>
15824#else
15825# include <assert.h>
15826#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015827
15828#undef dlopen
15829
Reid Spencera773bd52006-08-04 18:18:08 +000015830/* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015833#ifdef __cplusplus
15834extern "C"
15835#endif
John Criswell7a73b802003-06-30 21:59:07 +000015836char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015837/* The GNU C library defines this for functions which it implements
15838 to always fail with ENOSYS. Some functions are actually named
15839 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015840#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000015841choke me
John Criswell7a73b802003-06-30 21:59:07 +000015842#endif
15843
John Criswell0c38eaf2003-09-10 15:17:25 +000015844int
15845main ()
15846{
Reid Spencera773bd52006-08-04 18:18:08 +000015847return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015848 ;
15849 return 0;
15850}
15851_ACEOF
15852rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015853if { (ac_try="$ac_link"
15854case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857esac
15858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest$ac_exeext &&
15869 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015870 ac_cv_func_dlopen=yes
15871else
15872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015873sed 's/^/| /' conftest.$ac_ext >&5
15874
Reid Spencera773bd52006-08-04 18:18:08 +000015875 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015876fi
Reid Spencera773bd52006-08-04 18:18:08 +000015877
Scott Michel96dcd2b2007-12-05 21:24:02 +000015878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015879 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015880fi
Reid Spencera773bd52006-08-04 18:18:08 +000015881{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15882echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015883if test $ac_cv_func_dlopen = yes; then
15884 lt_cv_dlopen="dlopen"
15885else
Reid Spencera773bd52006-08-04 18:18:08 +000015886 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891 ac_check_lib_save_LIBS=$LIBS
15892LIBS="-ldl $LIBS"
15893cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015899
Reid Spencera773bd52006-08-04 18:18:08 +000015900/* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015903#ifdef __cplusplus
15904extern "C"
15905#endif
John Criswell7a73b802003-06-30 21:59:07 +000015906char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015907int
15908main ()
15909{
Reid Spencera773bd52006-08-04 18:18:08 +000015910return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015911 ;
15912 return 0;
15913}
15914_ACEOF
15915rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015916if { (ac_try="$ac_link"
15917case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920esac
15921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest$ac_exeext &&
15932 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015933 ac_cv_lib_dl_dlopen=yes
15934else
15935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015936sed 's/^/| /' conftest.$ac_ext >&5
15937
Reid Spencera773bd52006-08-04 18:18:08 +000015938 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015939fi
Reid Spencera773bd52006-08-04 18:18:08 +000015940
Scott Michel96dcd2b2007-12-05 21:24:02 +000015941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015942 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015943LIBS=$ac_check_lib_save_LIBS
15944fi
Reid Spencera773bd52006-08-04 18:18:08 +000015945{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15946echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015947if test $ac_cv_lib_dl_dlopen = yes; then
15948 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15949else
Reid Spencera773bd52006-08-04 18:18:08 +000015950 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15951echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015952if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954else
15955 ac_check_lib_save_LIBS=$LIBS
15956LIBS="-lsvld $LIBS"
15957cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015963
Reid Spencera773bd52006-08-04 18:18:08 +000015964/* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015967#ifdef __cplusplus
15968extern "C"
15969#endif
John Criswell7a73b802003-06-30 21:59:07 +000015970char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015971int
15972main ()
15973{
Reid Spencera773bd52006-08-04 18:18:08 +000015974return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015980if { (ac_try="$ac_link"
15981case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984esac
15985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest$ac_exeext &&
15996 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015997 ac_cv_lib_svld_dlopen=yes
15998else
15999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016000sed 's/^/| /' conftest.$ac_ext >&5
16001
Reid Spencera773bd52006-08-04 18:18:08 +000016002 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016003fi
Reid Spencera773bd52006-08-04 18:18:08 +000016004
Scott Michel96dcd2b2007-12-05 21:24:02 +000016005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016006 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016007LIBS=$ac_check_lib_save_LIBS
16008fi
Reid Spencera773bd52006-08-04 18:18:08 +000016009{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16010echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016011if test $ac_cv_lib_svld_dlopen = yes; then
16012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16013else
Reid Spencera773bd52006-08-04 18:18:08 +000016014 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16015echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016016if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018else
16019 ac_check_lib_save_LIBS=$LIBS
16020LIBS="-ldld $LIBS"
16021cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016022/* confdefs.h. */
16023_ACEOF
16024cat confdefs.h >>conftest.$ac_ext
16025cat >>conftest.$ac_ext <<_ACEOF
16026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016027
Reid Spencera773bd52006-08-04 18:18:08 +000016028/* Override any GCC internal prototype to avoid an error.
16029 Use char because int might match the return type of a GCC
16030 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016031#ifdef __cplusplus
16032extern "C"
16033#endif
John Criswell7a73b802003-06-30 21:59:07 +000016034char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016035int
16036main ()
16037{
Reid Spencera773bd52006-08-04 18:18:08 +000016038return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016039 ;
16040 return 0;
16041}
16042_ACEOF
16043rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016044if { (ac_try="$ac_link"
16045case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048esac
16049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000016056 (exit $ac_status); } && {
16057 test -z "$ac_c_werror_flag" ||
16058 test ! -s conftest.err
16059 } && test -s conftest$ac_exeext &&
16060 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016061 ac_cv_lib_dld_dld_link=yes
16062else
16063 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016064sed 's/^/| /' conftest.$ac_ext >&5
16065
Reid Spencera773bd52006-08-04 18:18:08 +000016066 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016067fi
Reid Spencera773bd52006-08-04 18:18:08 +000016068
Scott Michel96dcd2b2007-12-05 21:24:02 +000016069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016070 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016071LIBS=$ac_check_lib_save_LIBS
16072fi
Reid Spencera773bd52006-08-04 18:18:08 +000016073{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16074echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016075if test $ac_cv_lib_dld_dld_link = yes; then
16076 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16077fi
16078
16079
16080fi
16081
16082
16083fi
16084
16085
16086fi
16087
16088
16089fi
16090
16091
16092fi
16093
16094 ;;
16095 esac
16096
16097 if test "x$lt_cv_dlopen" != xno; then
16098 enable_dlopen=yes
16099 else
16100 enable_dlopen=no
16101 fi
16102
16103 case $lt_cv_dlopen in
16104 dlopen)
16105 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016106 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016107
16108 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016110
16111 save_LIBS="$LIBS"
16112 LIBS="$lt_cv_dlopen_libs $LIBS"
16113
Reid Spencera773bd52006-08-04 18:18:08 +000016114 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16115echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016116if test "${lt_cv_dlopen_self+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16118else
16119 if test "$cross_compiling" = yes; then :
16120 lt_cv_dlopen_self=cross
16121else
John Criswell47fdd832003-07-14 16:52:07 +000016122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016123 lt_status=$lt_dlunknown
16124 cat > conftest.$ac_ext <<EOF
Scott Michel96dcd2b2007-12-05 21:24:02 +000016125#line 16125 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016126#include "confdefs.h"
16127
16128#if HAVE_DLFCN_H
16129#include <dlfcn.h>
16130#endif
16131
16132#include <stdio.h>
16133
16134#ifdef RTLD_GLOBAL
16135# define LT_DLGLOBAL RTLD_GLOBAL
16136#else
16137# ifdef DL_GLOBAL
16138# define LT_DLGLOBAL DL_GLOBAL
16139# else
16140# define LT_DLGLOBAL 0
16141# endif
16142#endif
16143
16144/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16145 find out it does not work in some platform. */
16146#ifndef LT_DLLAZY_OR_NOW
16147# ifdef RTLD_LAZY
16148# define LT_DLLAZY_OR_NOW RTLD_LAZY
16149# else
16150# ifdef DL_LAZY
16151# define LT_DLLAZY_OR_NOW DL_LAZY
16152# else
16153# ifdef RTLD_NOW
16154# define LT_DLLAZY_OR_NOW RTLD_NOW
16155# else
16156# ifdef DL_NOW
16157# define LT_DLLAZY_OR_NOW DL_NOW
16158# else
16159# define LT_DLLAZY_OR_NOW 0
16160# endif
16161# endif
16162# endif
16163# endif
16164#endif
16165
16166#ifdef __cplusplus
16167extern "C" void exit (int);
16168#endif
16169
16170void fnord() { int i=42;}
16171int main ()
16172{
16173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16174 int status = $lt_dlunknown;
16175
16176 if (self)
16177 {
16178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16180 /* dlclose (self); */
16181 }
Reid Spencera773bd52006-08-04 18:18:08 +000016182 else
16183 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016184
16185 exit (status);
16186}
16187EOF
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016193 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016194 lt_status=$?
16195 case x$lt_status in
16196 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16197 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016198 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016199 esac
16200 else :
16201 # compilation failed
16202 lt_cv_dlopen_self=no
16203 fi
16204fi
16205rm -fr conftest*
16206
16207
16208fi
Reid Spencera773bd52006-08-04 18:18:08 +000016209{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16210echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016211
16212 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16214 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16215echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016216if test "${lt_cv_dlopen_self_static+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 if test "$cross_compiling" = yes; then :
16220 lt_cv_dlopen_self_static=cross
16221else
John Criswell47fdd832003-07-14 16:52:07 +000016222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016223 lt_status=$lt_dlunknown
16224 cat > conftest.$ac_ext <<EOF
Scott Michel96dcd2b2007-12-05 21:24:02 +000016225#line 16225 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016226#include "confdefs.h"
16227
16228#if HAVE_DLFCN_H
16229#include <dlfcn.h>
16230#endif
16231
16232#include <stdio.h>
16233
16234#ifdef RTLD_GLOBAL
16235# define LT_DLGLOBAL RTLD_GLOBAL
16236#else
16237# ifdef DL_GLOBAL
16238# define LT_DLGLOBAL DL_GLOBAL
16239# else
16240# define LT_DLGLOBAL 0
16241# endif
16242#endif
16243
16244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16245 find out it does not work in some platform. */
16246#ifndef LT_DLLAZY_OR_NOW
16247# ifdef RTLD_LAZY
16248# define LT_DLLAZY_OR_NOW RTLD_LAZY
16249# else
16250# ifdef DL_LAZY
16251# define LT_DLLAZY_OR_NOW DL_LAZY
16252# else
16253# ifdef RTLD_NOW
16254# define LT_DLLAZY_OR_NOW RTLD_NOW
16255# else
16256# ifdef DL_NOW
16257# define LT_DLLAZY_OR_NOW DL_NOW
16258# else
16259# define LT_DLLAZY_OR_NOW 0
16260# endif
16261# endif
16262# endif
16263# endif
16264#endif
16265
16266#ifdef __cplusplus
16267extern "C" void exit (int);
16268#endif
16269
16270void fnord() { int i=42;}
16271int main ()
16272{
16273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16274 int status = $lt_dlunknown;
16275
16276 if (self)
16277 {
16278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16280 /* dlclose (self); */
16281 }
Reid Spencera773bd52006-08-04 18:18:08 +000016282 else
16283 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016284
16285 exit (status);
16286}
16287EOF
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289 (eval $ac_link) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016293 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016294 lt_status=$?
16295 case x$lt_status in
16296 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16297 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016298 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016299 esac
16300 else :
16301 # compilation failed
16302 lt_cv_dlopen_self_static=no
16303 fi
16304fi
16305rm -fr conftest*
16306
16307
16308fi
Reid Spencera773bd52006-08-04 18:18:08 +000016309{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16310echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016311 fi
16312
16313 CPPFLAGS="$save_CPPFLAGS"
16314 LDFLAGS="$save_LDFLAGS"
16315 LIBS="$save_LIBS"
16316 ;;
16317 esac
16318
16319 case $lt_cv_dlopen_self in
16320 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16321 *) enable_dlopen_self=unknown ;;
16322 esac
16323
16324 case $lt_cv_dlopen_self_static in
16325 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16326 *) enable_dlopen_self_static=unknown ;;
16327 esac
16328fi
16329
16330
Reid Spencera773bd52006-08-04 18:18:08 +000016331# Report which library types will actually be built
16332{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16333echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16334{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16335echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016336
Reid Spencera773bd52006-08-04 18:18:08 +000016337{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16338echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016339test "$can_build_shared" = "no" && enable_shared=no
16340
16341# On AIX, shared libraries and static libraries use the same namespace, and
16342# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000016343case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016344aix3*)
16345 test "$enable_shared" = yes && enable_static=no
16346 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000016348 postinstall_cmds='$RANLIB $lib'
16349 fi
16350 ;;
16351
Reid Spencer2706f8c2004-09-19 23:53:36 +000016352aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000016353 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16354 test "$enable_shared" = yes && enable_static=no
16355 fi
John Criswell7a73b802003-06-30 21:59:07 +000016356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016357esac
Reid Spencera773bd52006-08-04 18:18:08 +000016358{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16359echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016360
Reid Spencera773bd52006-08-04 18:18:08 +000016361{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16362echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016363# Make sure either enable_shared or enable_static is yes.
16364test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000016365{ echo "$as_me:$LINENO: result: $enable_static" >&5
16366echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016367
16368# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000016369# libtool distribution, otherwise you forgot to ship ltmain.sh
16370# with your package, and you will get complaints that there are
16371# no rules to generate ltmain.sh.
16372if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000016373 # See if we are running on zsh, and set the options which allow our commands through
16374 # without removal of \ escapes.
16375 if test -n "${ZSH_VERSION+set}" ; then
16376 setopt NO_GLOB_SUBST
16377 fi
John Criswell7a73b802003-06-30 21:59:07 +000016378 # Now quote all the things that may contain metacharacters while being
16379 # careful not to overquote the AC_SUBSTed values. We take copies of the
16380 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000016381 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016382 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000016383 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16384 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16385 deplibs_check_method reload_flag reload_cmds need_locks \
16386 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16387 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000016388 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000016389 old_postinstall_cmds old_postuninstall_cmds \
16390 compiler \
16391 CC \
16392 LD \
16393 lt_prog_compiler_wl \
16394 lt_prog_compiler_pic \
16395 lt_prog_compiler_static \
16396 lt_prog_compiler_no_builtin_flag \
16397 export_dynamic_flag_spec \
16398 thread_safe_flag_spec \
16399 whole_archive_flag_spec \
16400 enable_shared_with_static_runtimes \
16401 old_archive_cmds \
16402 old_archive_from_new_cmds \
16403 predep_objects \
16404 postdep_objects \
16405 predeps \
16406 postdeps \
16407 compiler_lib_search_path \
16408 archive_cmds \
16409 archive_expsym_cmds \
16410 postinstall_cmds \
16411 postuninstall_cmds \
16412 old_archive_from_expsyms_cmds \
16413 allow_undefined_flag \
16414 no_undefined_flag \
16415 export_symbols_cmds \
16416 hardcode_libdir_flag_spec \
16417 hardcode_libdir_flag_spec_ld \
16418 hardcode_libdir_separator \
16419 hardcode_automatic \
16420 module_cmds \
16421 module_expsym_cmds \
16422 lt_cv_prog_compiler_c_o \
16423 exclude_expsyms \
16424 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000016425
16426 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000016427 old_archive_cmds | \
16428 old_archive_from_new_cmds | \
16429 archive_cmds | \
16430 archive_expsym_cmds | \
16431 module_cmds | \
16432 module_expsym_cmds | \
16433 old_archive_from_expsyms_cmds | \
16434 export_symbols_cmds | \
16435 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000016436 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000016437 old_postinstall_cmds | old_postuninstall_cmds | \
16438 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000016439 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +000016441 ;;
16442 *)
16443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16444 ;;
16445 esac
16446 done
16447
John Criswell47fdd832003-07-14 16:52:07 +000016448 case $lt_echo in
16449 *'\$0 --fallback-echo"')
16450 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16451 ;;
16452 esac
16453
16454cfgfile="${ofile}T"
16455 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16456 $rm -f "$cfgfile"
16457 { echo "$as_me:$LINENO: creating $ofile" >&5
16458echo "$as_me: creating $ofile" >&6;}
16459
16460 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016461#! $SHELL
16462
John Criswell47fdd832003-07-14 16:52:07 +000016463# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000016464# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16465# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16466#
John Criswell47fdd832003-07-14 16:52:07 +000016467# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16468# Free Software Foundation, Inc.
16469#
16470# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000016471# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16472#
16473# This program is free software; you can redistribute it and/or modify
16474# it under the terms of the GNU General Public License as published by
16475# the Free Software Foundation; either version 2 of the License, or
16476# (at your option) any later version.
16477#
16478# This program is distributed in the hope that it will be useful, but
16479# WITHOUT ANY WARRANTY; without even the implied warranty of
16480# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16481# General Public License for more details.
16482#
16483# You should have received a copy of the GNU General Public License
16484# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000016485# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000016486#
16487# As a special exception to the GNU General Public License, if you
16488# distribute this file as part of a program that contains a
16489# configuration script generated by Autoconf, you may include it under
16490# the same distribution terms that you use for the rest of that program.
16491
John Criswell47fdd832003-07-14 16:52:07 +000016492# A sed program that does not truncate output.
16493SED=$lt_SED
16494
John Criswell7a73b802003-06-30 21:59:07 +000016495# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000016496Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000016497
16498# The HP-UX ksh and POSIX shell print the target directory to stdout
16499# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016500(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000016501
John Criswell47fdd832003-07-14 16:52:07 +000016502# The names of the tagged configurations supported by this script.
16503available_tags=
16504
John Criswell7a73b802003-06-30 21:59:07 +000016505# ### BEGIN LIBTOOL CONFIG
16506
16507# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16508
16509# Shell to use when invoking shell scripts.
16510SHELL=$lt_SHELL
16511
16512# Whether or not to build shared libraries.
16513build_libtool_libs=$enable_shared
16514
16515# Whether or not to build static libraries.
16516build_old_libs=$enable_static
16517
16518# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016519build_libtool_need_lc=$archive_cmds_need_lc
16520
16521# Whether or not to disallow shared libs when runtime libs are static
16522allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000016523
16524# Whether or not to optimize for fast installation.
16525fast_install=$enable_fast_install
16526
16527# The host system.
16528host_alias=$host_alias
16529host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000016530host_os=$host_os
16531
16532# The build system.
16533build_alias=$build_alias
16534build=$build
16535build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000016536
16537# An echo program that does not interpret backslashes.
16538echo=$lt_echo
16539
16540# The archiver.
16541AR=$lt_AR
16542AR_FLAGS=$lt_AR_FLAGS
16543
John Criswell47fdd832003-07-14 16:52:07 +000016544# A C compiler.
16545LTCC=$lt_LTCC
16546
Reid Spencera773bd52006-08-04 18:18:08 +000016547# LTCC compiler flags.
16548LTCFLAGS=$lt_LTCFLAGS
16549
John Criswell47fdd832003-07-14 16:52:07 +000016550# A language-specific compiler.
16551CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000016552
16553# Is the compiler the GNU C compiler?
16554with_gcc=$GCC
16555
John Criswell47fdd832003-07-14 16:52:07 +000016556# An ERE matcher.
16557EGREP=$lt_EGREP
16558
John Criswell7a73b802003-06-30 21:59:07 +000016559# The linker used to build libraries.
16560LD=$lt_LD
16561
16562# Whether we need hard or soft links.
16563LN_S=$lt_LN_S
16564
16565# A BSD-compatible nm program.
16566NM=$lt_NM
16567
16568# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000016569STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000016570
16571# Used to examine libraries when file_magic_cmd begins "file"
16572MAGIC_CMD=$MAGIC_CMD
16573
16574# Used on cygwin: DLL creation program.
16575DLLTOOL="$DLLTOOL"
16576
16577# Used on cygwin: object dumper.
16578OBJDUMP="$OBJDUMP"
16579
16580# Used on cygwin: assembler.
16581AS="$AS"
16582
16583# The name of the directory that contains temporary libtool files.
16584objdir=$objdir
16585
16586# How to create reloadable object files.
16587reload_flag=$lt_reload_flag
16588reload_cmds=$lt_reload_cmds
16589
16590# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000016591wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000016592
16593# Object file suffix (normally "o").
16594objext="$ac_objext"
16595
16596# Old archive suffix (normally "a").
16597libext="$libext"
16598
John Criswell47fdd832003-07-14 16:52:07 +000016599# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000016600shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000016601
John Criswell7a73b802003-06-30 21:59:07 +000016602# Executable file suffix (normally "").
16603exeext="$exeext"
16604
16605# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000016606pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000016607pic_mode=$pic_mode
16608
John Criswell47fdd832003-07-14 16:52:07 +000016609# What is the maximum length of a command?
16610max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000016611
John Criswell47fdd832003-07-14 16:52:07 +000016612# Does compiler simultaneously support -c and -o options?
16613compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000016614
Reid Spencera773bd52006-08-04 18:18:08 +000016615# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000016616need_locks=$lt_need_locks
16617
16618# Do we need the lib prefix for modules?
16619need_lib_prefix=$need_lib_prefix
16620
16621# Do we need a version for libraries?
16622need_version=$need_version
16623
16624# Whether dlopen is supported.
16625dlopen_support=$enable_dlopen
16626
16627# Whether dlopen of programs is supported.
16628dlopen_self=$enable_dlopen_self
16629
16630# Whether dlopen of statically linked programs is supported.
16631dlopen_self_static=$enable_dlopen_self_static
16632
16633# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000016634link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000016635
16636# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000016637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000016638
16639# Compiler flag to allow reflexive dlopens.
16640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16641
16642# Compiler flag to generate shared objects directly from archives.
16643whole_archive_flag_spec=$lt_whole_archive_flag_spec
16644
16645# Compiler flag to generate thread-safe objects.
16646thread_safe_flag_spec=$lt_thread_safe_flag_spec
16647
16648# Library versioning type.
16649version_type=$version_type
16650
16651# Format of library name prefix.
16652libname_spec=$lt_libname_spec
16653
16654# List of archive names. First name is the real one, the rest are links.
16655# The last name is the one that the linker finds with -lNAME.
16656library_names_spec=$lt_library_names_spec
16657
16658# The coded name of the library, if different from the real name.
16659soname_spec=$lt_soname_spec
16660
16661# Commands used to build and install an old-style archive.
16662RANLIB=$lt_RANLIB
16663old_archive_cmds=$lt_old_archive_cmds
16664old_postinstall_cmds=$lt_old_postinstall_cmds
16665old_postuninstall_cmds=$lt_old_postuninstall_cmds
16666
16667# Create an old-style archive from a shared archive.
16668old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16669
16670# Create a temporary old-style archive to link instead of a shared archive.
16671old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16672
16673# Commands used to build and install a shared archive.
16674archive_cmds=$lt_archive_cmds
16675archive_expsym_cmds=$lt_archive_expsym_cmds
16676postinstall_cmds=$lt_postinstall_cmds
16677postuninstall_cmds=$lt_postuninstall_cmds
16678
John Criswell47fdd832003-07-14 16:52:07 +000016679# Commands used to build a loadable module (assumed same as above if empty)
16680module_cmds=$lt_module_cmds
16681module_expsym_cmds=$lt_module_expsym_cmds
16682
John Criswell7a73b802003-06-30 21:59:07 +000016683# Commands to strip libraries.
16684old_striplib=$lt_old_striplib
16685striplib=$lt_striplib
16686
John Criswell47fdd832003-07-14 16:52:07 +000016687# Dependencies to place before the objects being linked to create a
16688# shared library.
16689predep_objects=$lt_predep_objects
16690
16691# Dependencies to place after the objects being linked to create a
16692# shared library.
16693postdep_objects=$lt_postdep_objects
16694
16695# Dependencies to place before the objects being linked to create a
16696# shared library.
16697predeps=$lt_predeps
16698
16699# Dependencies to place after the objects being linked to create a
16700# shared library.
16701postdeps=$lt_postdeps
16702
16703# The library search path used internally by the compiler when linking
16704# a shared library.
16705compiler_lib_search_path=$lt_compiler_lib_search_path
16706
John Criswell7a73b802003-06-30 21:59:07 +000016707# Method to check whether dependent libraries are shared objects.
16708deplibs_check_method=$lt_deplibs_check_method
16709
16710# Command to use when deplibs_check_method == file_magic.
16711file_magic_cmd=$lt_file_magic_cmd
16712
16713# Flag that allows shared libraries with undefined symbols to be built.
16714allow_undefined_flag=$lt_allow_undefined_flag
16715
16716# Flag that forces no undefined symbols.
16717no_undefined_flag=$lt_no_undefined_flag
16718
16719# Commands used to finish a libtool library installation in a directory.
16720finish_cmds=$lt_finish_cmds
16721
16722# Same as above, but a single script fragment to be evaled but not shown.
16723finish_eval=$lt_finish_eval
16724
16725# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000016726global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000016727
16728# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000016729global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000016730
16731# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000016732global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000016733
16734# This is the shared library runtime path variable.
16735runpath_var=$runpath_var
16736
16737# This is the shared library path variable.
16738shlibpath_var=$shlibpath_var
16739
16740# Is shlibpath searched before the hard-coded library search path?
16741shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16742
16743# How to hardcode a shared library path into an executable.
16744hardcode_action=$hardcode_action
16745
16746# Whether we should hardcode library paths into libraries.
16747hardcode_into_libs=$hardcode_into_libs
16748
16749# Flag to hardcode \$libdir into a binary during linking.
16750# This must work even if \$libdir does not exist.
16751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16752
John Criswell47fdd832003-07-14 16:52:07 +000016753# If ld is used when linking, flag to hardcode \$libdir into
16754# a binary during linking. This must work even if \$libdir does
16755# not exist.
16756hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16757
John Criswell7a73b802003-06-30 21:59:07 +000016758# Whether we need a single -rpath flag with a separated argument.
16759hardcode_libdir_separator=$lt_hardcode_libdir_separator
16760
John Criswell47fdd832003-07-14 16:52:07 +000016761# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000016762# resulting binary.
16763hardcode_direct=$hardcode_direct
16764
16765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766# resulting binary.
16767hardcode_minus_L=$hardcode_minus_L
16768
16769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770# the resulting binary.
16771hardcode_shlibpath_var=$hardcode_shlibpath_var
16772
John Criswell47fdd832003-07-14 16:52:07 +000016773# Set to yes if building a shared library automatically hardcodes DIR into the library
16774# and all subsequent libraries and executables linked against it.
16775hardcode_automatic=$hardcode_automatic
16776
John Criswell7a73b802003-06-30 21:59:07 +000016777# Variables whose values should be saved in libtool wrapper scripts and
16778# restored at relink time.
16779variables_saved_for_relink="$variables_saved_for_relink"
16780
16781# Whether libtool must link a program against all its dependency libraries.
16782link_all_deplibs=$link_all_deplibs
16783
16784# Compile-time system search path for libraries
16785sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16786
16787# Run-time system search path for libraries
16788sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16789
16790# Fix the shell variable \$srcfile for the compiler.
16791fix_srcfile_path="$fix_srcfile_path"
16792
16793# Set to yes if exported symbols are required.
16794always_export_symbols=$always_export_symbols
16795
16796# The commands to list exported symbols.
16797export_symbols_cmds=$lt_export_symbols_cmds
16798
16799# The commands to extract the exported symbol list from a shared archive.
16800extract_expsyms_cmds=$lt_extract_expsyms_cmds
16801
16802# Symbols that should not be listed in the preloaded symbols.
16803exclude_expsyms=$lt_exclude_expsyms
16804
16805# Symbols that must always be exported.
16806include_expsyms=$lt_include_expsyms
16807
16808# ### END LIBTOOL CONFIG
16809
16810__EOF__
16811
John Criswell47fdd832003-07-14 16:52:07 +000016812
John Criswell7a73b802003-06-30 21:59:07 +000016813 case $host_os in
16814 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000016815 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016816
16817# AIX sometimes has problems with the GCC collect2 program. For some
16818# reason, if we set the COLLECT_NAMES environment variable, the problems
16819# vanish in a puff of smoke.
16820if test "X${COLLECT_NAMES+set}" != Xset; then
16821 COLLECT_NAMES=
16822 export COLLECT_NAMES
16823fi
16824EOF
16825 ;;
16826 esac
16827
John Criswell7a73b802003-06-30 21:59:07 +000016828 # We use sed instead of cat because bash on DJGPP gets confused if
16829 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16830 # text mode, it properly converts lines to CR/LF. This bash problem
16831 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000016832 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000016833
John Criswell47fdd832003-07-14 16:52:07 +000016834 mv -f "$cfgfile" "$ofile" || \
16835 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000016836 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000016837
16838else
16839 # If there is no Makefile yet, we rely on a make rule to execute
16840 # `config.status --recheck' to rerun these tests and create the
16841 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16843 if test -f "$ltmain_in"; then
16844 test -f Makefile && make "$ltmain"
16845 fi
John Criswell7a73b802003-06-30 21:59:07 +000016846fi
John Criswell7a73b802003-06-30 21:59:07 +000016847
16848
John Criswell47fdd832003-07-14 16:52:07 +000016849ac_ext=c
16850ac_cpp='$CPP $CPPFLAGS'
16851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853ac_compiler_gnu=$ac_cv_c_compiler_gnu
16854
16855CC="$lt_save_CC"
16856
16857
Reid Spencera773bd52006-08-04 18:18:08 +000016858# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000016859if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000016860 withval=$with_tags; tagnames="$withval"
16861fi
16862
John Criswell47fdd832003-07-14 16:52:07 +000016863
16864if test -f "$ltmain" && test -n "$tagnames"; then
16865 if test ! -f "${ofile}"; then
16866 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16867echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16868 fi
16869
16870 if test -z "$LTCC"; then
16871 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16872 if test -z "$LTCC"; then
16873 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16874echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16875 else
16876 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16877echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16878 fi
16879 fi
Reid Spencera773bd52006-08-04 18:18:08 +000016880 if test -z "$LTCFLAGS"; then
16881 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16882 fi
John Criswell47fdd832003-07-14 16:52:07 +000016883
16884 # Extract list of available tagged configurations in $ofile.
16885 # Note that this assumes the entire list is on one line.
16886 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16887
16888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16889 for tagname in $tagnames; do
16890 IFS="$lt_save_ifs"
16891 # Check whether tagname contains only valid characters
16892 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16893 "") ;;
16894 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16895echo "$as_me: error: invalid tag name: $tagname" >&2;}
16896 { (exit 1); exit 1; }; }
16897 ;;
16898 esac
16899
16900 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16901 then
16902 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16903echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16904 { (exit 1); exit 1; }; }
16905 fi
16906
16907 # Update the list of available tags.
16908 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000016909 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000016910
16911 case $tagname in
16912 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016913 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16914 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16915 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000016916 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016917ac_cpp='$CXXCPP $CPPFLAGS'
16918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16921
16922
16923
16924
16925archive_cmds_need_lc_CXX=no
16926allow_undefined_flag_CXX=
16927always_export_symbols_CXX=no
16928archive_expsym_cmds_CXX=
16929export_dynamic_flag_spec_CXX=
16930hardcode_direct_CXX=no
16931hardcode_libdir_flag_spec_CXX=
16932hardcode_libdir_flag_spec_ld_CXX=
16933hardcode_libdir_separator_CXX=
16934hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000016935hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000016936hardcode_automatic_CXX=no
16937module_cmds_CXX=
16938module_expsym_cmds_CXX=
16939link_all_deplibs_CXX=unknown
16940old_archive_cmds_CXX=$old_archive_cmds
16941no_undefined_flag_CXX=
16942whole_archive_flag_spec_CXX=
16943enable_shared_with_static_runtimes_CXX=no
16944
16945# Dependencies to place before and after the object being linked:
16946predep_objects_CXX=
16947postdep_objects_CXX=
16948predeps_CXX=
16949postdeps_CXX=
16950compiler_lib_search_path_CXX=
16951
16952# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000016953ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016954
16955# Object file extension for compiled C++ test sources.
16956objext=o
16957objext_CXX=$objext
16958
16959# Code to be used in simple compile tests
16960lt_simple_compile_test_code="int some_variable = 0;\n"
16961
16962# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000016963lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000016964
16965# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16966
16967# If no C compiler was specified, use CC.
16968LTCC=${LTCC-"$CC"}
16969
Reid Spencera773bd52006-08-04 18:18:08 +000016970# If no C compiler flags were specified, use CFLAGS.
16971LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16972
John Criswell47fdd832003-07-14 16:52:07 +000016973# Allow CC to be a program name with arguments.
16974compiler=$CC
16975
16976
Reid Spencera773bd52006-08-04 18:18:08 +000016977# save warnings/boilerplate of simple test code
16978ac_outfile=conftest.$ac_objext
16979printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16981_lt_compiler_boilerplate=`cat conftest.err`
16982$rm conftest*
16983
16984ac_outfile=conftest.$ac_objext
16985printf "$lt_simple_link_test_code" >conftest.$ac_ext
16986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16987_lt_linker_boilerplate=`cat conftest.err`
16988$rm conftest*
16989
16990
John Criswell47fdd832003-07-14 16:52:07 +000016991# Allow CC to be a program name with arguments.
16992lt_save_CC=$CC
16993lt_save_LD=$LD
16994lt_save_GCC=$GCC
16995GCC=$GXX
16996lt_save_with_gnu_ld=$with_gnu_ld
16997lt_save_path_LD=$lt_cv_path_LD
16998if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16999 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17000else
Reid Spencera773bd52006-08-04 18:18:08 +000017001 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017002fi
17003if test -n "${lt_cv_path_LDCXX+set}"; then
17004 lt_cv_path_LD=$lt_cv_path_LDCXX
17005else
Reid Spencera773bd52006-08-04 18:18:08 +000017006 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017007fi
17008test -z "${LDCXX+set}" || LD=$LDCXX
17009CC=${CXX-"c++"}
17010compiler=$CC
17011compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017012for cc_temp in $compiler""; do
17013 case $cc_temp in
17014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17016 \-*) ;;
17017 *) break;;
17018 esac
17019done
17020cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17021
John Criswell47fdd832003-07-14 16:52:07 +000017022
17023# We don't want -fno-exception wen compiling C++ code, so set the
17024# no_builtin_flag separately
17025if test "$GXX" = yes; then
17026 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17027else
17028 lt_prog_compiler_no_builtin_flag_CXX=
17029fi
17030
17031if test "$GXX" = yes; then
17032 # Set up default GNU C++ configuration
17033
17034
Reid Spencera773bd52006-08-04 18:18:08 +000017035# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017036if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017037 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017038else
17039 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017040fi
17041
John Criswell47fdd832003-07-14 16:52:07 +000017042ac_prog=ld
17043if test "$GCC" = yes; then
17044 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017045 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17046echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017047 case $host in
17048 *-*-mingw*)
17049 # gcc leaves a trailing carriage return which upsets mingw
17050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17051 *)
17052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17053 esac
17054 case $ac_prog in
17055 # Accept absolute paths.
17056 [\\/]* | ?:[\\/]*)
17057 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017058 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017059 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17061 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17062 done
17063 test -z "$LD" && LD="$ac_prog"
17064 ;;
17065 "")
17066 # If it fails, then pretend we aren't using GCC.
17067 ac_prog=ld
17068 ;;
17069 *)
17070 # If it is relative, then search for the first ld in PATH.
17071 with_gnu_ld=unknown
17072 ;;
17073 esac
17074elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017075 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17076echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017077else
Reid Spencera773bd52006-08-04 18:18:08 +000017078 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017080fi
17081if test "${lt_cv_path_LD+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 if test -z "$LD"; then
17085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17086 for ac_dir in $PATH; do
17087 IFS="$lt_save_ifs"
17088 test -z "$ac_dir" && ac_dir=.
17089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17090 lt_cv_path_LD="$ac_dir/$ac_prog"
17091 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017092 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017093 # Break only if it was the GNU/non-GNU ld that we prefer.
17094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17095 *GNU* | *'with BFD'*)
17096 test "$with_gnu_ld" != no && break
17097 ;;
17098 *)
17099 test "$with_gnu_ld" != yes && break
17100 ;;
17101 esac
17102 fi
17103 done
17104 IFS="$lt_save_ifs"
17105else
17106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17107fi
17108fi
17109
17110LD="$lt_cv_path_LD"
17111if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017112 { echo "$as_me:$LINENO: result: $LD" >&5
17113echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017114else
Reid Spencera773bd52006-08-04 18:18:08 +000017115 { echo "$as_me:$LINENO: result: no" >&5
17116echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017117fi
17118test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17119echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17120 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017121{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17122echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017123if test "${lt_cv_prog_gnu_ld+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125else
Reid Spencera773bd52006-08-04 18:18:08 +000017126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017127case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017128*GNU* | *'with BFD'*)
17129 lt_cv_prog_gnu_ld=yes
17130 ;;
17131*)
17132 lt_cv_prog_gnu_ld=no
17133 ;;
17134esac
17135fi
Reid Spencera773bd52006-08-04 18:18:08 +000017136{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17137echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017138with_gnu_ld=$lt_cv_prog_gnu_ld
17139
17140
17141
17142 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17143 # archiving commands below assume that GNU ld is being used.
17144 if test "$with_gnu_ld" = yes; then
17145 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17146 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'
17147
17148 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17149 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17150
17151 # If archive_cmds runs LD, not CC, wlarc should be empty
17152 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17153 # investigate it a little bit more. (MM)
17154 wlarc='${wl}'
17155
17156 # ancient GNU ld didn't support --whole-archive et. al.
17157 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17158 grep 'no-whole-archive' > /dev/null; then
17159 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17160 else
17161 whole_archive_flag_spec_CXX=
17162 fi
17163 else
17164 with_gnu_ld=no
17165 wlarc=
17166
17167 # A generic and very simple default shared library creation
17168 # command for GNU C++ for the case where it uses the native
17169 # linker, instead of GNU ld. If possible, this setting should
17170 # overridden to take advantage of the native linker features on
17171 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017172 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000017173 fi
17174
17175 # Commands to make compiler produce verbose output that lists
17176 # what "hidden" libraries, object files and flags are used when
17177 # linking a shared library.
17178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17179
17180else
17181 GXX=no
17182 with_gnu_ld=no
17183 wlarc=
17184fi
17185
17186# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000017187{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17188echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017189ld_shlibs_CXX=yes
17190case $host_os in
17191 aix3*)
17192 # FIXME: insert proper C++ library support
17193 ld_shlibs_CXX=no
17194 ;;
17195 aix4* | aix5*)
17196 if test "$host_cpu" = ia64; then
17197 # On IA64, the linker does run time linking by default, so we don't
17198 # have to do anything special.
17199 aix_use_runtimelinking=no
17200 exp_sym_flag='-Bexport'
17201 no_entry_flag=""
17202 else
17203 aix_use_runtimelinking=no
17204
17205 # Test if we are trying to use run time linking or normal
17206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17207 # need to do runtime linking.
17208 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17209 for ld_flag in $LDFLAGS; do
17210 case $ld_flag in
17211 *-brtl*)
17212 aix_use_runtimelinking=yes
17213 break
17214 ;;
17215 esac
17216 done
Reid Spencera773bd52006-08-04 18:18:08 +000017217 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017218 esac
17219
17220 exp_sym_flag='-bexport'
17221 no_entry_flag='-bnoentry'
17222 fi
17223
17224 # When large executables or shared objects are built, AIX ld can
17225 # have problems creating the table of contents. If linking a library
17226 # or program results in "error TOC overflow" add -mminimal-toc to
17227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17229
17230 archive_cmds_CXX=''
17231 hardcode_direct_CXX=yes
17232 hardcode_libdir_separator_CXX=':'
17233 link_all_deplibs_CXX=yes
17234
17235 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017236 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000017237 # We only want to do this on AIX 4.2 and lower, the check
17238 # below for broken collect2 doesn't work under 4.3+
17239 collect2name=`${CC} -print-prog-name=collect2`
17240 if test -f "$collect2name" && \
17241 strings "$collect2name" | grep resolve_lib_name >/dev/null
17242 then
17243 # We have reworked collect2
17244 hardcode_direct_CXX=yes
17245 else
17246 # We have old collect2
17247 hardcode_direct_CXX=unsupported
17248 # It fails to find uninstalled libraries when the uninstalled
17249 # path is not listed in the libpath. Setting hardcode_minus_L
17250 # to unsupported forces relinking
17251 hardcode_minus_L_CXX=yes
17252 hardcode_libdir_flag_spec_CXX='-L$libdir'
17253 hardcode_libdir_separator_CXX=
17254 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017255 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017256 esac
17257 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000017258 if test "$aix_use_runtimelinking" = yes; then
17259 shared_flag="$shared_flag "'${wl}-G'
17260 fi
John Criswell47fdd832003-07-14 16:52:07 +000017261 else
17262 # not using gcc
17263 if test "$host_cpu" = ia64; then
17264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265 # chokes on -Wl,-G. The following line is correct:
17266 shared_flag='-G'
17267 else
17268 if test "$aix_use_runtimelinking" = yes; then
17269 shared_flag='${wl}-G'
17270 else
17271 shared_flag='${wl}-bM:SRE'
17272 fi
17273 fi
17274 fi
17275
17276 # It seems that -bexpall does not export symbols beginning with
17277 # underscore (_), so it is better to generate a list of symbols to export.
17278 always_export_symbols_CXX=yes
17279 if test "$aix_use_runtimelinking" = yes; then
17280 # Warning - without using the other runtime loading flags (-brtl),
17281 # -berok will link without error, but may produce a broken library.
17282 allow_undefined_flag_CXX='-berok'
17283 # Determine the default libpath from the value encoded in an empty executable.
17284 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017285/* confdefs.h. */
17286_ACEOF
17287cat confdefs.h >>conftest.$ac_ext
17288cat >>conftest.$ac_ext <<_ACEOF
17289/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017290
John Criswell47fdd832003-07-14 16:52:07 +000017291int
17292main ()
17293{
17294
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017300if { (ac_try="$ac_link"
17301case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017312 (exit $ac_status); } && {
17313 test -z "$ac_cxx_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest$ac_exeext &&
17316 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017317
17318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17319}'`
17320# Check for a 64-bit object if we didn't find anything.
17321if 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; }
17322}'`; fi
17323else
17324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017325sed 's/^/| /' conftest.$ac_ext >&5
17326
Reid Spencera773bd52006-08-04 18:18:08 +000017327
John Criswell47fdd832003-07-14 16:52:07 +000017328fi
Reid Spencera773bd52006-08-04 18:18:08 +000017329
Scott Michel96dcd2b2007-12-05 21:24:02 +000017330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017331 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17333
17334 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17335
Reid Spencera773bd52006-08-04 18:18:08 +000017336 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"
John Criswell47fdd832003-07-14 16:52:07 +000017337 else
17338 if test "$host_cpu" = ia64; then
17339 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17340 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000017341 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"
John Criswell47fdd832003-07-14 16:52:07 +000017342 else
17343 # Determine the default libpath from the value encoded in an empty executable.
17344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017350
John Criswell47fdd832003-07-14 16:52:07 +000017351int
17352main ()
17353{
17354
17355 ;
17356 return 0;
17357}
17358_ACEOF
17359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017360if { (ac_try="$ac_link"
17361case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017367 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017372 (exit $ac_status); } && {
17373 test -z "$ac_cxx_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017377
17378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17379}'`
17380# Check for a 64-bit object if we didn't find anything.
17381if 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; }
17382}'`; fi
17383else
17384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017385sed 's/^/| /' conftest.$ac_ext >&5
17386
Reid Spencera773bd52006-08-04 18:18:08 +000017387
John Criswell47fdd832003-07-14 16:52:07 +000017388fi
Reid Spencera773bd52006-08-04 18:18:08 +000017389
Scott Michel96dcd2b2007-12-05 21:24:02 +000017390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017391 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17393
17394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17395 # Warning - without using the other run time loading flags,
17396 # -berok will link without error, but may produce a broken library.
17397 no_undefined_flag_CXX=' ${wl}-bernotok'
17398 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000017399 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000017400 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000017401 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017402 # This is similar to how AIX traditionally builds its shared libraries.
17403 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'
John Criswell47fdd832003-07-14 16:52:07 +000017404 fi
17405 fi
17406 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017407
17408 beos*)
17409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17410 allow_undefined_flag_CXX=unsupported
17411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17412 # support --undefined. This deserves some investigation. FIXME
17413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414 else
17415 ld_shlibs_CXX=no
17416 fi
17417 ;;
17418
John Criswell47fdd832003-07-14 16:52:07 +000017419 chorus*)
17420 case $cc_basename in
17421 *)
17422 # FIXME: insert proper C++ library support
17423 ld_shlibs_CXX=no
17424 ;;
17425 esac
17426 ;;
17427
17428 cygwin* | mingw* | pw32*)
17429 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17430 # as there is no search path for DLLs.
17431 hardcode_libdir_flag_spec_CXX='-L$libdir'
17432 allow_undefined_flag_CXX=unsupported
17433 always_export_symbols_CXX=no
17434 enable_shared_with_static_runtimes_CXX=yes
17435
17436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017437 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'
John Criswell47fdd832003-07-14 16:52:07 +000017438 # If the export-symbols file already is a .def file (1st line
17439 # is EXPORTS), use it as is; otherwise, prepend...
17440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 cp $export_symbols $output_objdir/$soname.def;
17442 else
17443 echo EXPORTS > $output_objdir/$soname.def;
17444 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000017445 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000017446 $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'
John Criswell47fdd832003-07-14 16:52:07 +000017447 else
17448 ld_shlibs_CXX=no
17449 fi
17450 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017451 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000017452 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017453 rhapsody* | darwin1.[012])
17454 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17455 ;;
17456 *) # Darwin 1.3 on
17457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17458 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17459 else
17460 case ${MACOSX_DEPLOYMENT_TARGET} in
17461 10.[012])
17462 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463 ;;
17464 10.*)
17465 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17466 ;;
17467 esac
17468 fi
17469 ;;
17470 esac
17471 archive_cmds_need_lc_CXX=no
17472 hardcode_direct_CXX=no
17473 hardcode_automatic_CXX=yes
17474 hardcode_shlibpath_var_CXX=unsupported
17475 whole_archive_flag_spec_CXX=''
17476 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017477
Reid Spencer2706f8c2004-09-19 23:53:36 +000017478 if test "$GXX" = yes ; then
17479 lt_int_apple_cc_single_mod=no
17480 output_verbose_link_cmd='echo'
17481 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17482 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000017483 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000017484 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017485 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +000017486 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017487 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017488 fi
17489 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017492 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017493 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017494 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017495 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000017496 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017497 else
Reid Spencera773bd52006-08-04 18:18:08 +000017498 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017499 xlc*)
17500 output_verbose_link_cmd='echo'
17501 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'
17502 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000017504 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}'
17505 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017506 ;;
17507 *)
17508 ld_shlibs_CXX=no
17509 ;;
17510 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000017511 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017513
17514 dgux*)
17515 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017516 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000017517 # FIXME: insert proper C++ library support
17518 ld_shlibs_CXX=no
17519 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017520 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000017521 # Green Hills C++ Compiler
17522 # FIXME: insert proper C++ library support
17523 ld_shlibs_CXX=no
17524 ;;
17525 *)
17526 # FIXME: insert proper C++ library support
17527 ld_shlibs_CXX=no
17528 ;;
17529 esac
17530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017531 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000017532 # C++ shared libraries reported to be fairly broken before switch to ELF
17533 ld_shlibs_CXX=no
17534 ;;
17535 freebsd-elf*)
17536 archive_cmds_need_lc_CXX=no
17537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017538 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000017539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17540 # conventions
17541 ld_shlibs_CXX=yes
17542 ;;
17543 gnu*)
17544 ;;
17545 hpux9*)
17546 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17547 hardcode_libdir_separator_CXX=:
17548 export_dynamic_flag_spec_CXX='${wl}-E'
17549 hardcode_direct_CXX=yes
17550 hardcode_minus_L_CXX=yes # Not in the search PATH,
17551 # but as the default
17552 # location of the library.
17553
17554 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017555 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017556 # FIXME: insert proper C++ library support
17557 ld_shlibs_CXX=no
17558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017559 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000017560 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'
John Criswell47fdd832003-07-14 16:52:07 +000017561 # Commands to make compiler produce verbose output that lists
17562 # what "hidden" libraries, object files and flags are used when
17563 # linking a shared library.
17564 #
17565 # There doesn't appear to be a way to prevent this compiler from
17566 # explicitly linking system object files so we need to strip them
17567 # from the output so that they don't get included in the library
17568 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000017569 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'
John Criswell47fdd832003-07-14 16:52:07 +000017570 ;;
17571 *)
17572 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017573 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'
John Criswell47fdd832003-07-14 16:52:07 +000017574 else
17575 # FIXME: insert proper C++ library support
17576 ld_shlibs_CXX=no
17577 fi
17578 ;;
17579 esac
17580 ;;
17581 hpux10*|hpux11*)
17582 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017583 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17584 hardcode_libdir_separator_CXX=:
17585
17586 case $host_cpu in
17587 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017588 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000017589 ;;
17590 *)
John Criswell47fdd832003-07-14 16:52:07 +000017591 export_dynamic_flag_spec_CXX='${wl}-E'
17592 ;;
17593 esac
17594 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017595 case $host_cpu in
17596 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017597 hardcode_direct_CXX=no
17598 hardcode_shlibpath_var_CXX=no
17599 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017600 *)
17601 hardcode_direct_CXX=yes
17602 hardcode_minus_L_CXX=yes # Not in the search PATH,
17603 # but as the default
17604 # location of the library.
17605 ;;
17606 esac
17607
17608 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017609 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017610 # FIXME: insert proper C++ library support
17611 ld_shlibs_CXX=no
17612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017613 aCC*)
17614 case $host_cpu in
17615 hppa*64*)
17616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17617 ;;
17618 ia64*)
17619 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000017620 ;;
17621 *)
17622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17623 ;;
17624 esac
17625 # Commands to make compiler produce verbose output that lists
17626 # what "hidden" libraries, object files and flags are used when
17627 # linking a shared library.
17628 #
17629 # There doesn't appear to be a way to prevent this compiler from
17630 # explicitly linking system object files so we need to strip them
17631 # from the output so that they don't get included in the library
17632 # dependencies.
17633 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'
17634 ;;
17635 *)
17636 if test "$GXX" = yes; then
17637 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017638 case $host_cpu in
17639 hppa*64*)
17640 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17641 ;;
17642 ia64*)
17643 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000017644 ;;
17645 *)
17646 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'
17647 ;;
17648 esac
17649 fi
17650 else
17651 # FIXME: insert proper C++ library support
17652 ld_shlibs_CXX=no
17653 fi
17654 ;;
17655 esac
17656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017657 interix3*)
17658 hardcode_direct_CXX=no
17659 hardcode_shlibpath_var_CXX=no
17660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17661 export_dynamic_flag_spec_CXX='${wl}-E'
17662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17663 # Instead, shared libraries are loaded at an image base (0x10000000 by
17664 # default) and relocated if they conflict, which is a slow very memory
17665 # consuming and fragmenting process. To avoid this, we pick a random,
17666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17667 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17668 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'
17669 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'
17670 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017671 irix5* | irix6*)
17672 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017673 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017674 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000017675 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'
John Criswell47fdd832003-07-14 16:52:07 +000017676
17677 # Archives containing C++ object files must be created using
17678 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17679 # necessary to make sure instantiated templates are included
17680 # in the archive.
17681 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17682 ;;
17683 *)
17684 if test "$GXX" = yes; then
17685 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017686 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'
John Criswell47fdd832003-07-14 16:52:07 +000017687 else
17688 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'
17689 fi
17690 fi
17691 link_all_deplibs_CXX=yes
17692 ;;
17693 esac
17694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17695 hardcode_libdir_separator_CXX=:
17696 ;;
17697 linux*)
17698 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017699 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017700 # Kuck and Associates, Inc. (KAI) C++ Compiler
17701
17702 # KCC will only create a shared library if the output file
17703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17704 # to its proper name (with version) after linking.
17705 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'
17706 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'
17707 # Commands to make compiler produce verbose output that lists
17708 # what "hidden" libraries, object files and flags are used when
17709 # linking a shared library.
17710 #
17711 # There doesn't appear to be a way to prevent this compiler from
17712 # explicitly linking system object files so we need to strip them
17713 # from the output so that they don't get included in the library
17714 # dependencies.
17715 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'
17716
17717 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17719
17720 # Archives containing C++ object files must be created using
17721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17723 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017724 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000017725 # Intel C++
17726 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017727 # version 8.0 and above of icpc choke on multiply defined symbols
17728 # if we add $predep_objects and $postdep_objects, however 7.1 and
17729 # earlier do not add the objects themselves.
17730 case `$CC -V 2>&1` in
17731 *"Version 7."*)
17732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733 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'
17734 ;;
17735 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000017736 tmp_idyn=
17737 case $host_cpu in
17738 ia64*) tmp_idyn=' -i_dynamic';;
17739 esac
17740 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17741 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017742 ;;
17743 esac
John Criswell47fdd832003-07-14 16:52:07 +000017744 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000017745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17747 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17748 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017749 pgCC*)
17750 # Portland Group C++ compiler
17751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17752 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'
17753
17754 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17756 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'
17757 ;;
17758 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017759 # Compaq C++
17760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761 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'
17762
17763 runpath_var=LD_RUN_PATH
17764 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17765 hardcode_libdir_separator_CXX=:
17766
17767 # Commands to make compiler produce verbose output that lists
17768 # what "hidden" libraries, object files and flags are used when
17769 # linking a shared library.
17770 #
17771 # There doesn't appear to be a way to prevent this compiler from
17772 # explicitly linking system object files so we need to strip them
17773 # from the output so that they don't get included in the library
17774 # dependencies.
17775 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'
17776 ;;
17777 esac
17778 ;;
17779 lynxos*)
17780 # FIXME: insert proper C++ library support
17781 ld_shlibs_CXX=no
17782 ;;
17783 m88k*)
17784 # FIXME: insert proper C++ library support
17785 ld_shlibs_CXX=no
17786 ;;
17787 mvs*)
17788 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017789 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017790 # FIXME: insert proper C++ library support
17791 ld_shlibs_CXX=no
17792 ;;
17793 *)
17794 # FIXME: insert proper C++ library support
17795 ld_shlibs_CXX=no
17796 ;;
17797 esac
17798 ;;
17799 netbsd*)
17800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17802 wlarc=
17803 hardcode_libdir_flag_spec_CXX='-R$libdir'
17804 hardcode_direct_CXX=yes
17805 hardcode_shlibpath_var_CXX=no
17806 fi
17807 # Workaround some broken pre-1.5 toolchains
17808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17809 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017810 openbsd2*)
17811 # C++ shared libraries are fairly broken
17812 ld_shlibs_CXX=no
17813 ;;
17814 openbsd*)
17815 hardcode_direct_CXX=yes
17816 hardcode_shlibpath_var_CXX=no
17817 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17820 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17821 export_dynamic_flag_spec_CXX='${wl}-E'
17822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17823 fi
17824 output_verbose_link_cmd='echo'
17825 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017826 osf3*)
17827 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017828 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017829 # Kuck and Associates, Inc. (KAI) C++ Compiler
17830
17831 # KCC will only create a shared library if the output file
17832 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17833 # to its proper name (with version) after linking.
17834 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'
17835
17836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17837 hardcode_libdir_separator_CXX=:
17838
17839 # Archives containing C++ object files must be created using
17840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17842
17843 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017844 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017845 # Rational C++ 2.4.1
17846 # FIXME: insert proper C++ library support
17847 ld_shlibs_CXX=no
17848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017849 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017851 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'
John Criswell47fdd832003-07-14 16:52:07 +000017852
17853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17854 hardcode_libdir_separator_CXX=:
17855
17856 # Commands to make compiler produce verbose output that lists
17857 # what "hidden" libraries, object files and flags are used when
17858 # linking a shared library.
17859 #
17860 # There doesn't appear to be a way to prevent this compiler from
17861 # explicitly linking system object files so we need to strip them
17862 # from the output so that they don't get included in the library
17863 # dependencies.
17864 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'
17865 ;;
17866 *)
17867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017869 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'
John Criswell47fdd832003-07-14 16:52:07 +000017870
17871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17872 hardcode_libdir_separator_CXX=:
17873
17874 # Commands to make compiler produce verbose output that lists
17875 # what "hidden" libraries, object files and flags are used when
17876 # linking a shared library.
17877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17878
17879 else
17880 # FIXME: insert proper C++ library support
17881 ld_shlibs_CXX=no
17882 fi
17883 ;;
17884 esac
17885 ;;
17886 osf4* | osf5*)
17887 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017888 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017889 # Kuck and Associates, Inc. (KAI) C++ Compiler
17890
17891 # KCC will only create a shared library if the output file
17892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17893 # to its proper name (with version) after linking.
17894 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'
17895
17896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17897 hardcode_libdir_separator_CXX=:
17898
17899 # Archives containing C++ object files must be created using
17900 # the KAI C++ compiler.
17901 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017903 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017904 # Rational C++ 2.4.1
17905 # FIXME: insert proper C++ library support
17906 ld_shlibs_CXX=no
17907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017908 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017909 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000017910 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000017911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17912 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000017913 $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~
Reid Spencer177dbe22004-10-13 01:01:03 +000017914 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000017915
17916 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17917 hardcode_libdir_separator_CXX=:
17918
17919 # Commands to make compiler produce verbose output that lists
17920 # what "hidden" libraries, object files and flags are used when
17921 # linking a shared library.
17922 #
17923 # There doesn't appear to be a way to prevent this compiler from
17924 # explicitly linking system object files so we need to strip them
17925 # from the output so that they don't get included in the library
17926 # dependencies.
17927 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'
17928 ;;
17929 *)
17930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017932 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'
John Criswell47fdd832003-07-14 16:52:07 +000017933
17934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17935 hardcode_libdir_separator_CXX=:
17936
17937 # Commands to make compiler produce verbose output that lists
17938 # what "hidden" libraries, object files and flags are used when
17939 # linking a shared library.
17940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17941
17942 else
17943 # FIXME: insert proper C++ library support
17944 ld_shlibs_CXX=no
17945 fi
17946 ;;
17947 esac
17948 ;;
17949 psos*)
17950 # FIXME: insert proper C++ library support
17951 ld_shlibs_CXX=no
17952 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017953 sunos4*)
17954 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017955 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017956 # Sun C++ 4.x
17957 # FIXME: insert proper C++ library support
17958 ld_shlibs_CXX=no
17959 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017960 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000017961 # Lucid
17962 # FIXME: insert proper C++ library support
17963 ld_shlibs_CXX=no
17964 ;;
17965 *)
17966 # FIXME: insert proper C++ library support
17967 ld_shlibs_CXX=no
17968 ;;
17969 esac
17970 ;;
17971 solaris*)
17972 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017973 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017974 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000017975 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017976 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000017977 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017978 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000017979 $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'
John Criswell47fdd832003-07-14 16:52:07 +000017980
17981 hardcode_libdir_flag_spec_CXX='-R$libdir'
17982 hardcode_shlibpath_var_CXX=no
17983 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000017984 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000017985 *)
17986 # The C++ compiler is used as linker so we must use $wl
17987 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000017988 # linker. We must also pass each convience library through
17989 # to the system linker between allextract/defaultextract.
17990 # The C++ compiler will combine linker options so we
17991 # cannot just pass the convience library names through
17992 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000017993 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000017994 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'
John Criswell47fdd832003-07-14 16:52:07 +000017995 ;;
17996 esac
17997 link_all_deplibs_CXX=yes
17998
Reid Spencera773bd52006-08-04 18:18:08 +000017999 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018000
18001 # Archives containing C++ object files must be created using
18002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18003 # necessary to make sure instantiated templates are included
18004 # in the archive.
18005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18006 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018007 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018008 # Green Hills C++ Compiler
18009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18010
18011 # The C++ compiler must be used to create the archive.
18012 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18013 ;;
18014 *)
18015 # GNU C++ compiler with Solaris linker
18016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18017 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18018 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018019 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000018020 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18022
John Criswell47fdd832003-07-14 16:52:07 +000018023 # Commands to make compiler produce verbose output that lists
18024 # what "hidden" libraries, object files and flags are used when
18025 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018026 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018027 else
18028 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18029 # platform.
18030 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000018031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018033
18034 # Commands to make compiler produce verbose output that lists
18035 # what "hidden" libraries, object files and flags are used when
18036 # linking a shared library.
18037 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18038 fi
18039
18040 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18041 fi
18042 ;;
18043 esac
18044 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18046 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018047 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018048 hardcode_shlibpath_var_CXX=no
18049 runpath_var='LD_RUN_PATH'
18050
18051 case $cc_basename in
18052 CC*)
18053 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 ;;
18056 *)
18057 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 ;;
18060 esac
18061 ;;
18062 sysv5* | sco3.2v5* | sco5v6*)
18063 # Note: We can NOT use -z defs as we might desire, because we do not
18064 # link with -lc, and that would cause any symbols used from libc to
18065 # always be unresolved, which means just about no library would
18066 # ever link correctly. If we're not using GNU ld we use -z text
18067 # though, which does catch some bad symbols but isn't as heavy-handed
18068 # as -z defs.
18069 # For security reasons, it is highly recommended that you always
18070 # use absolute paths for naming shared libraries, and exclude the
18071 # DT_RUNPATH tag from executables and libraries. But doing so
18072 # requires that you compile everything twice, which is a pain.
18073 # So that behaviour is only enabled if SCOABSPATH is set to a
18074 # non-empty value in the environment. Most likely only useful for
18075 # creating official distributions of packages.
18076 # This is a hack until libtool officially supports absolute path
18077 # names for shared libraries.
18078 no_undefined_flag_CXX='${wl}-z,text'
18079 allow_undefined_flag_CXX='${wl}-z,nodefs'
18080 archive_cmds_need_lc_CXX=no
18081 hardcode_shlibpath_var_CXX=no
18082 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18083 hardcode_libdir_separator_CXX=':'
18084 link_all_deplibs_CXX=yes
18085 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18086 runpath_var='LD_RUN_PATH'
18087
18088 case $cc_basename in
18089 CC*)
18090 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18092 ;;
18093 *)
18094 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096 ;;
18097 esac
John Criswell47fdd832003-07-14 16:52:07 +000018098 ;;
18099 tandem*)
18100 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018101 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018102 # NonStop-UX NCC 3.20
18103 # FIXME: insert proper C++ library support
18104 ld_shlibs_CXX=no
18105 ;;
18106 *)
18107 # FIXME: insert proper C++ library support
18108 ld_shlibs_CXX=no
18109 ;;
18110 esac
18111 ;;
18112 vxworks*)
18113 # FIXME: insert proper C++ library support
18114 ld_shlibs_CXX=no
18115 ;;
18116 *)
18117 # FIXME: insert proper C++ library support
18118 ld_shlibs_CXX=no
18119 ;;
18120esac
Reid Spencera773bd52006-08-04 18:18:08 +000018121{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18122echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018123test "$ld_shlibs_CXX" = no && can_build_shared=no
18124
18125GCC_CXX="$GXX"
18126LD_CXX="$LD"
18127
John Criswell47fdd832003-07-14 16:52:07 +000018128
18129cat > conftest.$ac_ext <<EOF
18130class Foo
18131{
18132public:
18133 Foo (void) { a = 0; }
18134private:
18135 int a;
18136};
18137EOF
18138
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; then
18144 # Parse the compiler output and extract the necessary
18145 # objects, libraries and library flags.
18146
18147 # Sentinel used to keep track of whether or not we are before
18148 # the conftest object file.
18149 pre_test_object_deps_done=no
18150
18151 # The `*' in the case matches for architectures that use `case' in
18152 # $output_verbose_cmd can trigger glob expansion during the loop
18153 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000018154 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000018155
18156 for p in `eval $output_verbose_link_cmd`; do
18157 case $p in
18158
18159 -L* | -R* | -l*)
18160 # Some compilers place space between "-{L,R}" and the path.
18161 # Remove the space.
18162 if test $p = "-L" \
18163 || test $p = "-R"; then
18164 prev=$p
18165 continue
18166 else
18167 prev=
18168 fi
18169
18170 if test "$pre_test_object_deps_done" = no; then
18171 case $p in
18172 -L* | -R*)
18173 # Internal compiler library paths should come after those
18174 # provided the user. The postdeps already come after the
18175 # user supplied libs so there is no need to process them.
18176 if test -z "$compiler_lib_search_path_CXX"; then
18177 compiler_lib_search_path_CXX="${prev}${p}"
18178 else
18179 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18180 fi
18181 ;;
18182 # The "-l" case would never come before the object being
18183 # linked, so don't bother handling this case.
18184 esac
18185 else
18186 if test -z "$postdeps_CXX"; then
18187 postdeps_CXX="${prev}${p}"
18188 else
18189 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18190 fi
18191 fi
18192 ;;
18193
18194 *.$objext)
18195 # This assumes that the test object file only shows up
18196 # once in the compiler output.
18197 if test "$p" = "conftest.$objext"; then
18198 pre_test_object_deps_done=yes
18199 continue
18200 fi
18201
18202 if test "$pre_test_object_deps_done" = no; then
18203 if test -z "$predep_objects_CXX"; then
18204 predep_objects_CXX="$p"
18205 else
18206 predep_objects_CXX="$predep_objects_CXX $p"
18207 fi
18208 else
18209 if test -z "$postdep_objects_CXX"; then
18210 postdep_objects_CXX="$p"
18211 else
18212 postdep_objects_CXX="$postdep_objects_CXX $p"
18213 fi
18214 fi
18215 ;;
18216
18217 *) ;; # Ignore the rest.
18218
18219 esac
18220 done
18221
18222 # Clean up.
18223 rm -f a.out a.exe
18224else
18225 echo "libtool.m4: error: problem compiling CXX test program"
18226fi
18227
18228$rm -f confest.$objext
18229
Reid Spencera773bd52006-08-04 18:18:08 +000018230# PORTME: override above test on systems where it is broken
18231case $host_os in
18232interix3*)
18233 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18234 # hack all around it, let's just trust "g++" to DTRT.
18235 predep_objects_CXX=
18236 postdep_objects_CXX=
18237 postdeps_CXX=
18238 ;;
18239
18240solaris*)
18241 case $cc_basename in
18242 CC*)
18243 # Adding this requires a known-good setup of shared libraries for
18244 # Sun compiler versions before 5.6, else PIC objects from an old
18245 # archive will be linked into the output, leading to subtle bugs.
18246 postdeps_CXX='-lCstd -lCrun'
18247 ;;
18248 esac
18249 ;;
18250esac
18251
18252
John Criswell47fdd832003-07-14 16:52:07 +000018253case " $postdeps_CXX " in
18254*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18255esac
18256
18257lt_prog_compiler_wl_CXX=
18258lt_prog_compiler_pic_CXX=
18259lt_prog_compiler_static_CXX=
18260
Reid Spencera773bd52006-08-04 18:18:08 +000018261{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18262echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018263
18264 # C++ specific cases for pic, static, wl, etc.
18265 if test "$GXX" = yes; then
18266 lt_prog_compiler_wl_CXX='-Wl,'
18267 lt_prog_compiler_static_CXX='-static'
18268
18269 case $host_os in
18270 aix*)
18271 # All AIX code is PIC.
18272 if test "$host_cpu" = ia64; then
18273 # AIX 5 now supports IA64 processor
18274 lt_prog_compiler_static_CXX='-Bstatic'
18275 fi
18276 ;;
18277 amigaos*)
18278 # FIXME: we need at least 68020 code to build shared libraries, but
18279 # adding the `-m68020' flag to GCC prevents building anything better,
18280 # like `-m68040'.
18281 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18282 ;;
18283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18284 # PIC is the default for these OSes.
18285 ;;
18286 mingw* | os2* | pw32*)
18287 # This hack is so that the source file can tell whether it is being
18288 # built for inclusion in a dll (and should export symbols for example).
18289 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18290 ;;
18291 darwin* | rhapsody*)
18292 # PIC is the default on this platform
18293 # Common symbols not allowed in MH_DYLIB files
18294 lt_prog_compiler_pic_CXX='-fno-common'
18295 ;;
18296 *djgpp*)
18297 # DJGPP does not support shared libraries at all
18298 lt_prog_compiler_pic_CXX=
18299 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018300 interix3*)
18301 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18302 # Instead, we relocate shared libraries at runtime.
18303 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018304 sysv4*MP*)
18305 if test -d /usr/nec; then
18306 lt_prog_compiler_pic_CXX=-Kconform_pic
18307 fi
18308 ;;
18309 hpux*)
18310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18311 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000018312 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018313 hppa*64*|ia64*)
18314 ;;
18315 *)
18316 lt_prog_compiler_pic_CXX='-fPIC'
18317 ;;
18318 esac
18319 ;;
18320 *)
18321 lt_prog_compiler_pic_CXX='-fPIC'
18322 ;;
18323 esac
18324 else
18325 case $host_os in
18326 aix4* | aix5*)
18327 # All AIX code is PIC.
18328 if test "$host_cpu" = ia64; then
18329 # AIX 5 now supports IA64 processor
18330 lt_prog_compiler_static_CXX='-Bstatic'
18331 else
18332 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18333 fi
18334 ;;
18335 chorus*)
18336 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018337 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000018338 # Green Hills C++ Compiler
18339 # _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"
18340 ;;
18341 esac
18342 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018343 darwin*)
18344 # PIC is the default on this platform
18345 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000018346 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018347 xlc*)
18348 lt_prog_compiler_pic_CXX='-qnocommon'
18349 lt_prog_compiler_wl_CXX='-Wl,'
18350 ;;
18351 esac
18352 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018353 dgux*)
18354 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018355 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018356 lt_prog_compiler_pic_CXX='-KPIC'
18357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018358 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018359 # Green Hills C++ Compiler
18360 lt_prog_compiler_pic_CXX='-pic'
18361 ;;
18362 *)
18363 ;;
18364 esac
18365 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018366 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018367 # FreeBSD uses GNU C++
18368 ;;
18369 hpux9* | hpux10* | hpux11*)
18370 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018371 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018372 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018373 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000018374 if test "$host_cpu" != ia64; then
18375 lt_prog_compiler_pic_CXX='+Z'
18376 fi
18377 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018378 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018379 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18381 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018382 hppa*64*|ia64*)
18383 # +Z the default
18384 ;;
18385 *)
18386 lt_prog_compiler_pic_CXX='+Z'
18387 ;;
18388 esac
18389 ;;
18390 *)
18391 ;;
18392 esac
18393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018394 interix*)
18395 # This is c89, which is MS Visual C++ (no shared libs)
18396 # Anyone wants to do a port?
18397 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018398 irix5* | irix6* | nonstopux*)
18399 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018400 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018401 lt_prog_compiler_wl_CXX='-Wl,'
18402 lt_prog_compiler_static_CXX='-non_shared'
18403 # CC pic flag -KPIC is the default.
18404 ;;
18405 *)
18406 ;;
18407 esac
18408 ;;
18409 linux*)
18410 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018411 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018412 # KAI C++ Compiler
18413 lt_prog_compiler_wl_CXX='--backend -Wl,'
18414 lt_prog_compiler_pic_CXX='-fPIC'
18415 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018416 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018417 # Intel C++
18418 lt_prog_compiler_wl_CXX='-Wl,'
18419 lt_prog_compiler_pic_CXX='-KPIC'
18420 lt_prog_compiler_static_CXX='-static'
18421 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018422 pgCC*)
18423 # Portland Group C++ compiler.
18424 lt_prog_compiler_wl_CXX='-Wl,'
18425 lt_prog_compiler_pic_CXX='-fpic'
18426 lt_prog_compiler_static_CXX='-Bstatic'
18427 ;;
18428 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018429 # Compaq C++
18430 # Make sure the PIC flag is empty. It appears that all Alpha
18431 # Linux and Compaq Tru64 Unix objects are PIC.
18432 lt_prog_compiler_pic_CXX=
18433 lt_prog_compiler_static_CXX='-non_shared'
18434 ;;
18435 *)
18436 ;;
18437 esac
18438 ;;
18439 lynxos*)
18440 ;;
18441 m88k*)
18442 ;;
18443 mvs*)
18444 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018445 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018446 lt_prog_compiler_pic_CXX='-W c,exportall'
18447 ;;
18448 *)
18449 ;;
18450 esac
18451 ;;
18452 netbsd*)
18453 ;;
18454 osf3* | osf4* | osf5*)
18455 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018456 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018457 lt_prog_compiler_wl_CXX='--backend -Wl,'
18458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018459 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018460 # Rational C++ 2.4.1
18461 lt_prog_compiler_pic_CXX='-pic'
18462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018463 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018464 # Digital/Compaq C++
18465 lt_prog_compiler_wl_CXX='-Wl,'
18466 # Make sure the PIC flag is empty. It appears that all Alpha
18467 # Linux and Compaq Tru64 Unix objects are PIC.
18468 lt_prog_compiler_pic_CXX=
18469 lt_prog_compiler_static_CXX='-non_shared'
18470 ;;
18471 *)
18472 ;;
18473 esac
18474 ;;
18475 psos*)
18476 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018477 solaris*)
18478 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018479 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018480 # Sun C++ 4.2, 5.x and Centerline C++
18481 lt_prog_compiler_pic_CXX='-KPIC'
18482 lt_prog_compiler_static_CXX='-Bstatic'
18483 lt_prog_compiler_wl_CXX='-Qoption ld '
18484 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018485 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018486 # Green Hills C++ Compiler
18487 lt_prog_compiler_pic_CXX='-PIC'
18488 ;;
18489 *)
18490 ;;
18491 esac
18492 ;;
18493 sunos4*)
18494 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018495 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018496 # Sun C++ 4.x
18497 lt_prog_compiler_pic_CXX='-pic'
18498 lt_prog_compiler_static_CXX='-Bstatic'
18499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018500 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018501 # Lucid
18502 lt_prog_compiler_pic_CXX='-pic'
18503 ;;
18504 *)
18505 ;;
18506 esac
18507 ;;
18508 tandem*)
18509 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018510 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018511 # NonStop-UX NCC 3.20
18512 lt_prog_compiler_pic_CXX='-KPIC'
18513 ;;
18514 *)
18515 ;;
18516 esac
18517 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018518 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18519 case $cc_basename in
18520 CC*)
18521 lt_prog_compiler_wl_CXX='-Wl,'
18522 lt_prog_compiler_pic_CXX='-KPIC'
18523 lt_prog_compiler_static_CXX='-Bstatic'
18524 ;;
18525 esac
John Criswell47fdd832003-07-14 16:52:07 +000018526 ;;
18527 vxworks*)
18528 ;;
18529 *)
18530 lt_prog_compiler_can_build_shared_CXX=no
18531 ;;
18532 esac
18533 fi
18534
Reid Spencera773bd52006-08-04 18:18:08 +000018535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18536echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018537
18538#
18539# Check to make sure the PIC flag actually works.
18540#
18541if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018542
Reid Spencera773bd52006-08-04 18:18:08 +000018543{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18544echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018545if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547else
18548 lt_prog_compiler_pic_works_CXX=no
18549 ac_outfile=conftest.$ac_objext
18550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18551 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18552 # Insert the option either (1) after the last *FLAGS variable, or
18553 # (2) before a word containing "conftest.", or (3) at the end.
18554 # Note that $ac_compile itself does not contain backslashes and begins
18555 # with a dollar sign (not a hyphen), so the echo should work correctly.
18556 # The option is referenced via a variable to avoid confusing sed.
18557 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18560 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000018561 (eval echo "\"\$as_me:18561: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018562 (eval "$lt_compile" 2>conftest.err)
18563 ac_status=$?
18564 cat conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000018565 echo "$as_me:18565: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018566 if (exit $ac_status) && test -s "$ac_outfile"; then
18567 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000018568 # So say no if there are warnings other than the usual output.
18569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018572 lt_prog_compiler_pic_works_CXX=yes
18573 fi
18574 fi
18575 $rm conftest*
18576
18577fi
Reid Spencera773bd52006-08-04 18:18:08 +000018578{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18579echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018580
18581if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18582 case $lt_prog_compiler_pic_CXX in
18583 "" | " "*) ;;
18584 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18585 esac
18586else
18587 lt_prog_compiler_pic_CXX=
18588 lt_prog_compiler_can_build_shared_CXX=no
18589fi
18590
18591fi
Reid Spencera773bd52006-08-04 18:18:08 +000018592case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018593 # For platforms which do not support PIC, -DPIC is meaningless:
18594 *djgpp*)
18595 lt_prog_compiler_pic_CXX=
18596 ;;
18597 *)
18598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18599 ;;
18600esac
18601
Reid Spencera773bd52006-08-04 18:18:08 +000018602#
18603# Check to make sure the static flag actually works.
18604#
18605wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18606{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18607echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18608if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18610else
18611 lt_prog_compiler_static_works_CXX=no
18612 save_LDFLAGS="$LDFLAGS"
18613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18614 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18616 # The linker can only warn and ignore the option if not recognized
18617 # So say no if there are warnings
18618 if test -s conftest.err; then
18619 # Append any errors to the config.log.
18620 cat conftest.err 1>&5
18621 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18623 if diff conftest.exp conftest.er2 >/dev/null; then
18624 lt_prog_compiler_static_works_CXX=yes
18625 fi
18626 else
18627 lt_prog_compiler_static_works_CXX=yes
18628 fi
18629 fi
18630 $rm conftest*
18631 LDFLAGS="$save_LDFLAGS"
18632
18633fi
18634{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18635echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18636
18637if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18638 :
18639else
18640 lt_prog_compiler_static_CXX=
18641fi
18642
18643
18644{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18645echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018646if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649 lt_cv_prog_compiler_c_o_CXX=no
18650 $rm -r conftest 2>/dev/null
18651 mkdir conftest
18652 cd conftest
18653 mkdir out
18654 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18655
John Criswell47fdd832003-07-14 16:52:07 +000018656 lt_compiler_flag="-o out/conftest2.$ac_objext"
18657 # Insert the option either (1) after the last *FLAGS variable, or
18658 # (2) before a word containing "conftest.", or (3) at the end.
18659 # Note that $ac_compile itself does not contain backslashes and begins
18660 # with a dollar sign (not a hyphen), so the echo should work correctly.
18661 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18664 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000018665 (eval echo "\"\$as_me:18665: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018666 (eval "$lt_compile" 2>out/conftest.err)
18667 ac_status=$?
18668 cat out/conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000018669 echo "$as_me:18669: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18671 then
18672 # The compiler can only warn and ignore the option if not recognized
18673 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000018674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018677 lt_cv_prog_compiler_c_o_CXX=yes
18678 fi
18679 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018680 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018681 $rm conftest*
18682 # SGI C++ compiler will create directory out/ii_files/ for
18683 # template instantiation
18684 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18685 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018686 cd ..
18687 rmdir conftest
18688 $rm conftest*
18689
18690fi
Reid Spencera773bd52006-08-04 18:18:08 +000018691{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18692echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018693
18694
18695hard_links="nottested"
18696if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18697 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000018698 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18699echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018700 hard_links=yes
18701 $rm conftest*
18702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18703 touch conftest.a
18704 ln conftest.a conftest.b 2>&5 || hard_links=no
18705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000018706 { echo "$as_me:$LINENO: result: $hard_links" >&5
18707echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018708 if test "$hard_links" = no; then
18709 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18710echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18711 need_locks=warn
18712 fi
18713else
18714 need_locks=no
18715fi
18716
Reid Spencera773bd52006-08-04 18:18:08 +000018717{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018719
18720 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18721 case $host_os in
18722 aix4* | aix5*)
18723 # If we're using GNU nm, then we don't want the "-C" option.
18724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18726 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'
18727 else
18728 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'
18729 fi
18730 ;;
18731 pw32*)
18732 export_symbols_cmds_CXX="$ltdll_cmds"
18733 ;;
18734 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000018735 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'
John Criswell47fdd832003-07-14 16:52:07 +000018736 ;;
18737 *)
18738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18739 ;;
18740 esac
18741
Reid Spencera773bd52006-08-04 18:18:08 +000018742{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18743echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018744test "$ld_shlibs_CXX" = no && can_build_shared=no
18745
John Criswell47fdd832003-07-14 16:52:07 +000018746#
18747# Do we need to explicitly link libc?
18748#
18749case "x$archive_cmds_need_lc_CXX" in
18750x|xyes)
18751 # Assume -lc should be added
18752 archive_cmds_need_lc_CXX=yes
18753
18754 if test "$enable_shared" = yes && test "$GCC" = yes; then
18755 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018756 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000018757 # FIXME: we may have to deal with multi-command sequences.
18758 ;;
18759 '$CC '*)
18760 # Test whether the compiler implicitly links with -lc since on some
18761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18762 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000018763 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18764echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018765 $rm conftest*
18766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18767
18768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18769 (eval $ac_compile) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } 2>conftest.err; then
18773 soname=conftest
18774 lib=conftest
18775 libobjs=conftest.$ac_objext
18776 deplibs=
18777 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000018778 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000018779 compiler_flags=-v
18780 linker_flags=-v
18781 verstring=
18782 output_objdir=.
18783 libname=conftest
18784 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18785 allow_undefined_flag_CXX=
18786 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18787 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }
18791 then
18792 archive_cmds_need_lc_CXX=no
18793 else
18794 archive_cmds_need_lc_CXX=yes
18795 fi
18796 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18797 else
18798 cat conftest.err 1>&5
18799 fi
18800 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000018801 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18802echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018803 ;;
18804 esac
18805 fi
18806 ;;
18807esac
18808
Reid Spencera773bd52006-08-04 18:18:08 +000018809{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18810echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018811library_names_spec=
18812libname_spec='lib$name'
18813soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000018814shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000018815postinstall_cmds=
18816postuninstall_cmds=
18817finish_cmds=
18818finish_eval=
18819shlibpath_var=
18820shlibpath_overrides_runpath=unknown
18821version_type=none
18822dynamic_linker="$host_os ld.so"
18823sys_lib_dlsearch_path_spec="/lib /usr/lib"
18824if test "$GCC" = yes; then
18825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18826 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18827 # if the path contains ";" then we assume it to be the separator
18828 # otherwise default to the standard path separator (i.e. ":") - it is
18829 # assumed that no part of a normal pathname contains ";" but that should
18830 # okay in the real world where ";" in dirpaths is itself problematic.
18831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18832 else
18833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18834 fi
18835else
18836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18837fi
18838need_lib_prefix=unknown
18839hardcode_into_libs=no
18840
18841# when you set need_version to no, make sure it does not cause -set_version
18842# flags to be left without arguments
18843need_version=unknown
18844
18845case $host_os in
18846aix3*)
18847 version_type=linux
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18849 shlibpath_var=LIBPATH
18850
18851 # AIX 3 has no versioning support, so we append a major version to the name.
18852 soname_spec='${libname}${release}${shared_ext}$major'
18853 ;;
18854
18855aix4* | aix5*)
18856 version_type=linux
18857 need_lib_prefix=no
18858 need_version=no
18859 hardcode_into_libs=yes
18860 if test "$host_cpu" = ia64; then
18861 # AIX 5 supports IA64
18862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18863 shlibpath_var=LD_LIBRARY_PATH
18864 else
18865 # With GCC up to 2.95.x, collect2 would create an import file
18866 # for dependence libraries. The import file would start with
18867 # the line `#! .'. This would cause the generated library to
18868 # depend on `.', always an invalid library. This was fixed in
18869 # development snapshots of GCC prior to 3.0.
18870 case $host_os in
18871 aix4 | aix4.[01] | aix4.[01].*)
18872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18873 echo ' yes '
18874 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18875 :
18876 else
18877 can_build_shared=no
18878 fi
18879 ;;
18880 esac
18881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18882 # soname into executable. Probably we can add versioning support to
18883 # collect2, so additional links can be useful in future.
18884 if test "$aix_use_runtimelinking" = yes; then
18885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18886 # instead of lib<name>.a to let people know that these are not
18887 # typical AIX shared libraries.
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18889 else
18890 # We preserve .a as extension for shared libraries through AIX4.2
18891 # and later when we are not doing run time linking.
18892 library_names_spec='${libname}${release}.a $libname.a'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 fi
18895 shlibpath_var=LIBPATH
18896 fi
18897 ;;
18898
18899amigaos*)
18900 library_names_spec='$libname.ixlibrary $libname.a'
18901 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018902 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'
John Criswell47fdd832003-07-14 16:52:07 +000018903 ;;
18904
18905beos*)
18906 library_names_spec='${libname}${shared_ext}'
18907 dynamic_linker="$host_os ld.so"
18908 shlibpath_var=LIBRARY_PATH
18909 ;;
18910
Reid Spencer2706f8c2004-09-19 23:53:36 +000018911bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000018912 version_type=linux
18913 need_version=no
18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 soname_spec='${libname}${release}${shared_ext}$major'
18916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18920 # the default ld.so.conf also contains /usr/contrib/lib and
18921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18922 # libtool to hard-code these into programs
18923 ;;
18924
18925cygwin* | mingw* | pw32*)
18926 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000018927 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000018928 need_version=no
18929 need_lib_prefix=no
18930
18931 case $GCC,$host_os in
18932 yes,cygwin* | yes,mingw* | yes,pw32*)
18933 library_names_spec='$libname.dll.a'
18934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000018935 postinstall_cmds='base_file=`basename \${file}`~
18936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18937 dldir=$destdir/`dirname \$dlpath`~
18938 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000018939 $install_prog $dir/$dlname \$dldir/$dlname~
18940 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000018941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18942 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000018943 $rm \$dlpath'
18944 shlibpath_overrides_runpath=yes
18945
18946 case $host_os in
18947 cygwin*)
18948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000018951 ;;
18952 mingw*)
18953 # MinGW DLLs use traditional 'lib' prefix
18954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18957 # It is most probably a Windows format PATH printed by
18958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18959 # path with ; separators, and with drive letters. We can handle the
18960 # drive letters (cygwin fileutils understands them), so leave them,
18961 # especially as we might pass files found there to a mingw objdump,
18962 # which wouldn't understand a cygwinified path. Ahh.
18963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18964 else
18965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18966 fi
18967 ;;
18968 pw32*)
18969 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000018970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000018971 ;;
18972 esac
18973 ;;
18974
18975 *)
18976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18977 ;;
18978 esac
18979 dynamic_linker='Win32 ld.exe'
18980 # FIXME: first we should search . and the directory the executable is in
18981 shlibpath_var=PATH
18982 ;;
18983
18984darwin* | rhapsody*)
18985 dynamic_linker="$host_os dyld"
18986 version_type=darwin
18987 need_lib_prefix=no
18988 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000018989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000018990 soname_spec='${libname}${release}${major}$shared_ext'
18991 shlibpath_overrides_runpath=yes
18992 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000018993 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000018994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018995 if test "$GCC" = yes; then
18996 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"`
18997 else
18998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000018999 fi
19000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19001 ;;
19002
19003dgux*)
19004 version_type=linux
19005 need_lib_prefix=no
19006 need_version=no
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 shlibpath_var=LD_LIBRARY_PATH
19010 ;;
19011
19012freebsd1*)
19013 dynamic_linker=no
19014 ;;
19015
Reid Spencer2706f8c2004-09-19 23:53:36 +000019016kfreebsd*-gnu)
19017 version_type=linux
19018 need_lib_prefix=no
19019 need_version=no
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 shlibpath_var=LD_LIBRARY_PATH
19023 shlibpath_overrides_runpath=no
19024 hardcode_into_libs=yes
19025 dynamic_linker='GNU ld.so'
19026 ;;
19027
Reid Spencera773bd52006-08-04 18:18:08 +000019028freebsd* | dragonfly*)
19029 # DragonFly does not have aout. When/if they implement a new
19030 # versioning mechanism, adjust this.
19031 if test -x /usr/bin/objformat; then
19032 objformat=`/usr/bin/objformat`
19033 else
19034 case $host_os in
19035 freebsd[123]*) objformat=aout ;;
19036 *) objformat=elf ;;
19037 esac
19038 fi
John Criswell47fdd832003-07-14 16:52:07 +000019039 version_type=freebsd-$objformat
19040 case $version_type in
19041 freebsd-elf*)
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19043 need_version=no
19044 need_lib_prefix=no
19045 ;;
19046 freebsd-*)
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19048 need_version=yes
19049 ;;
19050 esac
19051 shlibpath_var=LD_LIBRARY_PATH
19052 case $host_os in
19053 freebsd2*)
19054 shlibpath_overrides_runpath=yes
19055 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019056 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019057 shlibpath_overrides_runpath=yes
19058 hardcode_into_libs=yes
19059 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019062 shlibpath_overrides_runpath=no
19063 hardcode_into_libs=yes
19064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019065 freebsd*) # from 4.6 on
19066 shlibpath_overrides_runpath=yes
19067 hardcode_into_libs=yes
19068 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019069 esac
19070 ;;
19071
19072gnu*)
19073 version_type=linux
19074 need_lib_prefix=no
19075 need_version=no
19076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19077 soname_spec='${libname}${release}${shared_ext}$major'
19078 shlibpath_var=LD_LIBRARY_PATH
19079 hardcode_into_libs=yes
19080 ;;
19081
19082hpux9* | hpux10* | hpux11*)
19083 # Give a soname corresponding to the major version so that dld.sl refuses to
19084 # link against other versions.
19085 version_type=sunos
19086 need_lib_prefix=no
19087 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019088 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019089 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019090 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019091 hardcode_into_libs=yes
19092 dynamic_linker="$host_os dld.so"
19093 shlibpath_var=LD_LIBRARY_PATH
19094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096 soname_spec='${libname}${release}${shared_ext}$major'
19097 if test "X$HPUX_IA64_MODE" = X32; then
19098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19099 else
19100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19101 fi
19102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19103 ;;
19104 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019105 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019106 hardcode_into_libs=yes
19107 dynamic_linker="$host_os dld.sl"
19108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19114 ;;
19115 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019116 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019117 dynamic_linker="$host_os dld.sl"
19118 shlibpath_var=SHLIB_PATH
19119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19122 ;;
19123 esac
19124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19125 postinstall_cmds='chmod 555 $lib'
19126 ;;
19127
Reid Spencera773bd52006-08-04 18:18:08 +000019128interix3*)
19129 version_type=linux
19130 need_lib_prefix=no
19131 need_version=no
19132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19133 soname_spec='${libname}${release}${shared_ext}$major'
19134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19135 shlibpath_var=LD_LIBRARY_PATH
19136 shlibpath_overrides_runpath=no
19137 hardcode_into_libs=yes
19138 ;;
19139
John Criswell47fdd832003-07-14 16:52:07 +000019140irix5* | irix6* | nonstopux*)
19141 case $host_os in
19142 nonstopux*) version_type=nonstopux ;;
19143 *)
19144 if test "$lt_cv_prog_gnu_ld" = yes; then
19145 version_type=linux
19146 else
19147 version_type=irix
19148 fi ;;
19149 esac
19150 need_lib_prefix=no
19151 need_version=no
19152 soname_spec='${libname}${release}${shared_ext}$major'
19153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19154 case $host_os in
19155 irix5* | nonstopux*)
19156 libsuff= shlibsuff=
19157 ;;
19158 *)
19159 case $LD in # libtool.m4 will add one of these switches to LD
19160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19161 libsuff= shlibsuff= libmagic=32-bit;;
19162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19163 libsuff=32 shlibsuff=N32 libmagic=N32;;
19164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19166 *) libsuff= shlibsuff= libmagic=never-match;;
19167 esac
19168 ;;
19169 esac
19170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19171 shlibpath_overrides_runpath=no
19172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19174 hardcode_into_libs=yes
19175 ;;
19176
19177# No shared lib support for Linux oldld, aout, or coff.
19178linux*oldld* | linux*aout* | linux*coff*)
19179 dynamic_linker=no
19180 ;;
19181
19182# This must be Linux ELF.
19183linux*)
19184 version_type=linux
19185 need_lib_prefix=no
19186 need_version=no
19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19188 soname_spec='${libname}${release}${shared_ext}$major'
19189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19190 shlibpath_var=LD_LIBRARY_PATH
19191 shlibpath_overrides_runpath=no
19192 # This implies no fast_install, which is unacceptable.
19193 # Some rework will be needed to allow for fast_install
19194 # before this can be enabled.
19195 hardcode_into_libs=yes
19196
Reid Spencer2706f8c2004-09-19 23:53:36 +000019197 # Append ld.so.conf contents to the search path
19198 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000019199 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000019200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19201 fi
19202
John Criswell47fdd832003-07-14 16:52:07 +000019203 # We used to test for /lib/ld.so.1 and disable shared libraries on
19204 # powerpc, because MkLinux only supported shared libraries with the
19205 # GNU dynamic linker. Since this was broken with cross compilers,
19206 # most powerpc-linux boxes support dynamic linking these days and
19207 # people can always --disable-shared, the test was removed, and we
19208 # assume the GNU/Linux dynamic linker is in use.
19209 dynamic_linker='GNU/Linux ld.so'
19210 ;;
19211
Reid Spencer2706f8c2004-09-19 23:53:36 +000019212knetbsd*-gnu)
19213 version_type=linux
19214 need_lib_prefix=no
19215 need_version=no
19216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19217 soname_spec='${libname}${release}${shared_ext}$major'
19218 shlibpath_var=LD_LIBRARY_PATH
19219 shlibpath_overrides_runpath=no
19220 hardcode_into_libs=yes
19221 dynamic_linker='GNU ld.so'
19222 ;;
19223
John Criswell47fdd832003-07-14 16:52:07 +000019224netbsd*)
19225 version_type=sunos
19226 need_lib_prefix=no
19227 need_version=no
19228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19231 dynamic_linker='NetBSD (a.out) ld.so'
19232 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019234 soname_spec='${libname}${release}${shared_ext}$major'
19235 dynamic_linker='NetBSD ld.elf_so'
19236 fi
19237 shlibpath_var=LD_LIBRARY_PATH
19238 shlibpath_overrides_runpath=yes
19239 hardcode_into_libs=yes
19240 ;;
19241
19242newsos6)
19243 version_type=linux
19244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19245 shlibpath_var=LD_LIBRARY_PATH
19246 shlibpath_overrides_runpath=yes
19247 ;;
19248
Reid Spencer2706f8c2004-09-19 23:53:36 +000019249nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000019250 version_type=linux
19251 need_lib_prefix=no
19252 need_version=no
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=yes
19257 ;;
19258
19259openbsd*)
19260 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000019261 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019262 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000019263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19264 case $host_os in
19265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19266 *) need_version=no ;;
19267 esac
John Criswell47fdd832003-07-14 16:52:07 +000019268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19270 shlibpath_var=LD_LIBRARY_PATH
19271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19272 case $host_os in
19273 openbsd2.[89] | openbsd2.[89].*)
19274 shlibpath_overrides_runpath=no
19275 ;;
19276 *)
19277 shlibpath_overrides_runpath=yes
19278 ;;
19279 esac
19280 else
19281 shlibpath_overrides_runpath=yes
19282 fi
19283 ;;
19284
19285os2*)
19286 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019287 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019288 need_lib_prefix=no
19289 library_names_spec='$libname${shared_ext} $libname.a'
19290 dynamic_linker='OS/2 ld.exe'
19291 shlibpath_var=LIBPATH
19292 ;;
19293
19294osf3* | osf4* | osf5*)
19295 version_type=osf
19296 need_lib_prefix=no
19297 need_version=no
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19303 ;;
19304
John Criswell47fdd832003-07-14 16:52:07 +000019305solaris*)
19306 version_type=linux
19307 need_lib_prefix=no
19308 need_version=no
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 shlibpath_var=LD_LIBRARY_PATH
19312 shlibpath_overrides_runpath=yes
19313 hardcode_into_libs=yes
19314 # ldd complains unless libraries are executable
19315 postinstall_cmds='chmod +x $lib'
19316 ;;
19317
19318sunos4*)
19319 version_type=sunos
19320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19322 shlibpath_var=LD_LIBRARY_PATH
19323 shlibpath_overrides_runpath=yes
19324 if test "$with_gnu_ld" = yes; then
19325 need_lib_prefix=no
19326 fi
19327 need_version=yes
19328 ;;
19329
Reid Spencera773bd52006-08-04 18:18:08 +000019330sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000019331 version_type=linux
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 case $host_vendor in
19336 sni)
19337 shlibpath_overrides_runpath=no
19338 need_lib_prefix=no
19339 export_dynamic_flag_spec='${wl}-Blargedynsym'
19340 runpath_var=LD_RUN_PATH
19341 ;;
19342 siemens)
19343 need_lib_prefix=no
19344 ;;
19345 motorola)
19346 need_lib_prefix=no
19347 need_version=no
19348 shlibpath_overrides_runpath=no
19349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19350 ;;
19351 esac
19352 ;;
19353
19354sysv4*MP*)
19355 if test -d /usr/nec ;then
19356 version_type=linux
19357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19358 soname_spec='$libname${shared_ext}.$major'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 fi
19361 ;;
19362
Reid Spencera773bd52006-08-04 18:18:08 +000019363sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19364 version_type=freebsd-elf
19365 need_lib_prefix=no
19366 need_version=no
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19368 soname_spec='${libname}${release}${shared_ext}$major'
19369 shlibpath_var=LD_LIBRARY_PATH
19370 hardcode_into_libs=yes
19371 if test "$with_gnu_ld" = yes; then
19372 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19373 shlibpath_overrides_runpath=no
19374 else
19375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19376 shlibpath_overrides_runpath=yes
19377 case $host_os in
19378 sco3.2v5*)
19379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19380 ;;
19381 esac
19382 fi
19383 sys_lib_dlsearch_path_spec='/usr/lib'
19384 ;;
19385
John Criswell47fdd832003-07-14 16:52:07 +000019386uts4*)
19387 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
19391 ;;
19392
19393*)
19394 dynamic_linker=no
19395 ;;
19396esac
Reid Spencera773bd52006-08-04 18:18:08 +000019397{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19398echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019399test "$dynamic_linker" = no && can_build_shared=no
19400
Reid Spencera773bd52006-08-04 18:18:08 +000019401variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19402if test "$GCC" = yes; then
19403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19404fi
19405
19406{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19407echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019408hardcode_action_CXX=
19409if test -n "$hardcode_libdir_flag_spec_CXX" || \
19410 test -n "$runpath_var_CXX" || \
19411 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19412
19413 # We can hardcode non-existant directories.
19414 if test "$hardcode_direct_CXX" != no &&
19415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19416 # have to relink, otherwise we might link with an installed library
19417 # when we should be linking with a yet-to-be-installed one
19418 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19419 test "$hardcode_minus_L_CXX" != no; then
19420 # Linking always hardcodes the temporary library directory.
19421 hardcode_action_CXX=relink
19422 else
19423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19424 hardcode_action_CXX=immediate
19425 fi
19426else
19427 # We cannot hardcode anything, or else we can only hardcode existing
19428 # directories.
19429 hardcode_action_CXX=unsupported
19430fi
Reid Spencera773bd52006-08-04 18:18:08 +000019431{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19432echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019433
19434if test "$hardcode_action_CXX" = relink; then
19435 # Fast installation is not supported
19436 enable_fast_install=no
19437elif test "$shlibpath_overrides_runpath" = yes ||
19438 test "$enable_shared" = no; then
19439 # Fast installation is not necessary
19440 enable_fast_install=needless
19441fi
19442
John Criswell47fdd832003-07-14 16:52:07 +000019443
19444# The else clause should only fire when bootstrapping the
19445# libtool distribution, otherwise you forgot to ship ltmain.sh
19446# with your package, and you will get complaints that there are
19447# no rules to generate ltmain.sh.
19448if test -f "$ltmain"; then
19449 # See if we are running on zsh, and set the options which allow our commands through
19450 # without removal of \ escapes.
19451 if test -n "${ZSH_VERSION+set}" ; then
19452 setopt NO_GLOB_SUBST
19453 fi
19454 # Now quote all the things that may contain metacharacters while being
19455 # careful not to overquote the AC_SUBSTed values. We take copies of the
19456 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000019457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019458 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19461 deplibs_check_method reload_flag reload_cmds need_locks \
19462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19463 lt_cv_sys_global_symbol_to_c_name_address \
19464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19465 old_postinstall_cmds old_postuninstall_cmds \
19466 compiler_CXX \
19467 CC_CXX \
19468 LD_CXX \
19469 lt_prog_compiler_wl_CXX \
19470 lt_prog_compiler_pic_CXX \
19471 lt_prog_compiler_static_CXX \
19472 lt_prog_compiler_no_builtin_flag_CXX \
19473 export_dynamic_flag_spec_CXX \
19474 thread_safe_flag_spec_CXX \
19475 whole_archive_flag_spec_CXX \
19476 enable_shared_with_static_runtimes_CXX \
19477 old_archive_cmds_CXX \
19478 old_archive_from_new_cmds_CXX \
19479 predep_objects_CXX \
19480 postdep_objects_CXX \
19481 predeps_CXX \
19482 postdeps_CXX \
19483 compiler_lib_search_path_CXX \
19484 archive_cmds_CXX \
19485 archive_expsym_cmds_CXX \
19486 postinstall_cmds_CXX \
19487 postuninstall_cmds_CXX \
19488 old_archive_from_expsyms_cmds_CXX \
19489 allow_undefined_flag_CXX \
19490 no_undefined_flag_CXX \
19491 export_symbols_cmds_CXX \
19492 hardcode_libdir_flag_spec_CXX \
19493 hardcode_libdir_flag_spec_ld_CXX \
19494 hardcode_libdir_separator_CXX \
19495 hardcode_automatic_CXX \
19496 module_cmds_CXX \
19497 module_expsym_cmds_CXX \
19498 lt_cv_prog_compiler_c_o_CXX \
19499 exclude_expsyms_CXX \
19500 include_expsyms_CXX; do
19501
19502 case $var in
19503 old_archive_cmds_CXX | \
19504 old_archive_from_new_cmds_CXX | \
19505 archive_cmds_CXX | \
19506 archive_expsym_cmds_CXX | \
19507 module_cmds_CXX | \
19508 module_expsym_cmds_CXX | \
19509 old_archive_from_expsyms_cmds_CXX | \
19510 export_symbols_cmds_CXX | \
19511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19512 postinstall_cmds | postuninstall_cmds | \
19513 old_postinstall_cmds | old_postuninstall_cmds | \
19514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19515 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000019517 ;;
19518 *)
19519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19520 ;;
19521 esac
19522 done
19523
19524 case $lt_echo in
19525 *'\$0 --fallback-echo"')
19526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19527 ;;
19528 esac
19529
19530cfgfile="$ofile"
19531
19532 cat <<__EOF__ >> "$cfgfile"
19533# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19534
19535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19536
19537# Shell to use when invoking shell scripts.
19538SHELL=$lt_SHELL
19539
19540# Whether or not to build shared libraries.
19541build_libtool_libs=$enable_shared
19542
19543# Whether or not to build static libraries.
19544build_old_libs=$enable_static
19545
19546# Whether or not to add -lc for building shared libraries.
19547build_libtool_need_lc=$archive_cmds_need_lc_CXX
19548
19549# Whether or not to disallow shared libs when runtime libs are static
19550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19551
19552# Whether or not to optimize for fast installation.
19553fast_install=$enable_fast_install
19554
19555# The host system.
19556host_alias=$host_alias
19557host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000019558host_os=$host_os
19559
19560# The build system.
19561build_alias=$build_alias
19562build=$build
19563build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000019564
19565# An echo program that does not interpret backslashes.
19566echo=$lt_echo
19567
19568# The archiver.
19569AR=$lt_AR
19570AR_FLAGS=$lt_AR_FLAGS
19571
19572# A C compiler.
19573LTCC=$lt_LTCC
19574
Reid Spencera773bd52006-08-04 18:18:08 +000019575# LTCC compiler flags.
19576LTCFLAGS=$lt_LTCFLAGS
19577
John Criswell47fdd832003-07-14 16:52:07 +000019578# A language-specific compiler.
19579CC=$lt_compiler_CXX
19580
19581# Is the compiler the GNU C compiler?
19582with_gcc=$GCC_CXX
19583
19584# An ERE matcher.
19585EGREP=$lt_EGREP
19586
19587# The linker used to build libraries.
19588LD=$lt_LD_CXX
19589
19590# Whether we need hard or soft links.
19591LN_S=$lt_LN_S
19592
19593# A BSD-compatible nm program.
19594NM=$lt_NM
19595
19596# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019597STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019598
19599# Used to examine libraries when file_magic_cmd begins "file"
19600MAGIC_CMD=$MAGIC_CMD
19601
19602# Used on cygwin: DLL creation program.
19603DLLTOOL="$DLLTOOL"
19604
19605# Used on cygwin: object dumper.
19606OBJDUMP="$OBJDUMP"
19607
19608# Used on cygwin: assembler.
19609AS="$AS"
19610
19611# The name of the directory that contains temporary libtool files.
19612objdir=$objdir
19613
19614# How to create reloadable object files.
19615reload_flag=$lt_reload_flag
19616reload_cmds=$lt_reload_cmds
19617
19618# How to pass a linker flag through the compiler.
19619wl=$lt_lt_prog_compiler_wl_CXX
19620
19621# Object file suffix (normally "o").
19622objext="$ac_objext"
19623
19624# Old archive suffix (normally "a").
19625libext="$libext"
19626
19627# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019628shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019629
19630# Executable file suffix (normally "").
19631exeext="$exeext"
19632
19633# Additional compiler flags for building library objects.
19634pic_flag=$lt_lt_prog_compiler_pic_CXX
19635pic_mode=$pic_mode
19636
19637# What is the maximum length of a command?
19638max_cmd_len=$lt_cv_sys_max_cmd_len
19639
19640# Does compiler simultaneously support -c and -o options?
19641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19642
Reid Spencera773bd52006-08-04 18:18:08 +000019643# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000019644need_locks=$lt_need_locks
19645
19646# Do we need the lib prefix for modules?
19647need_lib_prefix=$need_lib_prefix
19648
19649# Do we need a version for libraries?
19650need_version=$need_version
19651
19652# Whether dlopen is supported.
19653dlopen_support=$enable_dlopen
19654
19655# Whether dlopen of programs is supported.
19656dlopen_self=$enable_dlopen_self
19657
19658# Whether dlopen of statically linked programs is supported.
19659dlopen_self_static=$enable_dlopen_self_static
19660
19661# Compiler flag to prevent dynamic linking.
19662link_static_flag=$lt_lt_prog_compiler_static_CXX
19663
19664# Compiler flag to turn off builtin functions.
19665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19666
19667# Compiler flag to allow reflexive dlopens.
19668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19669
19670# Compiler flag to generate shared objects directly from archives.
19671whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19672
19673# Compiler flag to generate thread-safe objects.
19674thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19675
19676# Library versioning type.
19677version_type=$version_type
19678
19679# Format of library name prefix.
19680libname_spec=$lt_libname_spec
19681
19682# List of archive names. First name is the real one, the rest are links.
19683# The last name is the one that the linker finds with -lNAME.
19684library_names_spec=$lt_library_names_spec
19685
19686# The coded name of the library, if different from the real name.
19687soname_spec=$lt_soname_spec
19688
19689# Commands used to build and install an old-style archive.
19690RANLIB=$lt_RANLIB
19691old_archive_cmds=$lt_old_archive_cmds_CXX
19692old_postinstall_cmds=$lt_old_postinstall_cmds
19693old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694
19695# Create an old-style archive from a shared archive.
19696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19697
19698# Create a temporary old-style archive to link instead of a shared archive.
19699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19700
19701# Commands used to build and install a shared archive.
19702archive_cmds=$lt_archive_cmds_CXX
19703archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19704postinstall_cmds=$lt_postinstall_cmds
19705postuninstall_cmds=$lt_postuninstall_cmds
19706
19707# Commands used to build a loadable module (assumed same as above if empty)
19708module_cmds=$lt_module_cmds_CXX
19709module_expsym_cmds=$lt_module_expsym_cmds_CXX
19710
19711# Commands to strip libraries.
19712old_striplib=$lt_old_striplib
19713striplib=$lt_striplib
19714
19715# Dependencies to place before the objects being linked to create a
19716# shared library.
19717predep_objects=$lt_predep_objects_CXX
19718
19719# Dependencies to place after the objects being linked to create a
19720# shared library.
19721postdep_objects=$lt_postdep_objects_CXX
19722
19723# Dependencies to place before the objects being linked to create a
19724# shared library.
19725predeps=$lt_predeps_CXX
19726
19727# Dependencies to place after the objects being linked to create a
19728# shared library.
19729postdeps=$lt_postdeps_CXX
19730
19731# The library search path used internally by the compiler when linking
19732# a shared library.
19733compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19734
19735# Method to check whether dependent libraries are shared objects.
19736deplibs_check_method=$lt_deplibs_check_method
19737
19738# Command to use when deplibs_check_method == file_magic.
19739file_magic_cmd=$lt_file_magic_cmd
19740
19741# Flag that allows shared libraries with undefined symbols to be built.
19742allow_undefined_flag=$lt_allow_undefined_flag_CXX
19743
19744# Flag that forces no undefined symbols.
19745no_undefined_flag=$lt_no_undefined_flag_CXX
19746
19747# Commands used to finish a libtool library installation in a directory.
19748finish_cmds=$lt_finish_cmds
19749
19750# Same as above, but a single script fragment to be evaled but not shown.
19751finish_eval=$lt_finish_eval
19752
19753# Take the output of nm and produce a listing of raw symbols and C names.
19754global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19755
19756# Transform the output of nm in a proper C declaration
19757global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19758
19759# Transform the output of nm in a C name address pair
19760global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19761
19762# This is the shared library runtime path variable.
19763runpath_var=$runpath_var
19764
19765# This is the shared library path variable.
19766shlibpath_var=$shlibpath_var
19767
19768# Is shlibpath searched before the hard-coded library search path?
19769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19770
19771# How to hardcode a shared library path into an executable.
19772hardcode_action=$hardcode_action_CXX
19773
19774# Whether we should hardcode library paths into libraries.
19775hardcode_into_libs=$hardcode_into_libs
19776
19777# Flag to hardcode \$libdir into a binary during linking.
19778# This must work even if \$libdir does not exist.
19779hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19780
19781# If ld is used when linking, flag to hardcode \$libdir into
19782# a binary during linking. This must work even if \$libdir does
19783# not exist.
19784hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19785
19786# Whether we need a single -rpath flag with a separated argument.
19787hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19788
19789# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19790# resulting binary.
19791hardcode_direct=$hardcode_direct_CXX
19792
19793# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19794# resulting binary.
19795hardcode_minus_L=$hardcode_minus_L_CXX
19796
19797# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19798# the resulting binary.
19799hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19800
19801# Set to yes if building a shared library automatically hardcodes DIR into the library
19802# and all subsequent libraries and executables linked against it.
19803hardcode_automatic=$hardcode_automatic_CXX
19804
19805# Variables whose values should be saved in libtool wrapper scripts and
19806# restored at relink time.
19807variables_saved_for_relink="$variables_saved_for_relink"
19808
19809# Whether libtool must link a program against all its dependency libraries.
19810link_all_deplibs=$link_all_deplibs_CXX
19811
19812# Compile-time system search path for libraries
19813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19814
19815# Run-time system search path for libraries
19816sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19817
19818# Fix the shell variable \$srcfile for the compiler.
19819fix_srcfile_path="$fix_srcfile_path_CXX"
19820
19821# Set to yes if exported symbols are required.
19822always_export_symbols=$always_export_symbols_CXX
19823
19824# The commands to list exported symbols.
19825export_symbols_cmds=$lt_export_symbols_cmds_CXX
19826
19827# The commands to extract the exported symbol list from a shared archive.
19828extract_expsyms_cmds=$lt_extract_expsyms_cmds
19829
19830# Symbols that should not be listed in the preloaded symbols.
19831exclude_expsyms=$lt_exclude_expsyms_CXX
19832
19833# Symbols that must always be exported.
19834include_expsyms=$lt_include_expsyms_CXX
19835
19836# ### END LIBTOOL TAG CONFIG: $tagname
19837
19838__EOF__
19839
19840
19841else
19842 # If there is no Makefile yet, we rely on a make rule to execute
19843 # `config.status --recheck' to rerun these tests and create the
19844 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19846 if test -f "$ltmain_in"; then
19847 test -f Makefile && make "$ltmain"
19848 fi
John Criswell47fdd832003-07-14 16:52:07 +000019849fi
19850
19851
19852ac_ext=c
19853ac_cpp='$CPP $CPPFLAGS'
19854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
19858CC=$lt_save_CC
19859LDCXX=$LD
19860LD=$lt_save_LD
19861GCC=$lt_save_GCC
19862with_gnu_ldcxx=$with_gnu_ld
19863with_gnu_ld=$lt_save_with_gnu_ld
19864lt_cv_path_LDCXX=$lt_cv_path_LD
19865lt_cv_path_LD=$lt_save_path_LD
19866lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19867lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19868
19869 else
19870 tagname=""
19871 fi
19872 ;;
19873
19874 F77)
19875 if test -n "$F77" && test "X$F77" != "Xno"; then
19876
19877ac_ext=f
19878ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19879ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19881
19882
19883archive_cmds_need_lc_F77=no
19884allow_undefined_flag_F77=
19885always_export_symbols_F77=no
19886archive_expsym_cmds_F77=
19887export_dynamic_flag_spec_F77=
19888hardcode_direct_F77=no
19889hardcode_libdir_flag_spec_F77=
19890hardcode_libdir_flag_spec_ld_F77=
19891hardcode_libdir_separator_F77=
19892hardcode_minus_L_F77=no
19893hardcode_automatic_F77=no
19894module_cmds_F77=
19895module_expsym_cmds_F77=
19896link_all_deplibs_F77=unknown
19897old_archive_cmds_F77=$old_archive_cmds
19898no_undefined_flag_F77=
19899whole_archive_flag_spec_F77=
19900enable_shared_with_static_runtimes_F77=no
19901
19902# Source file extension for f77 test sources.
19903ac_ext=f
19904
19905# Object file extension for compiled f77 test sources.
19906objext=o
19907objext_F77=$objext
19908
19909# Code to be used in simple compile tests
19910lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19911
19912# Code to be used in simple link tests
19913lt_simple_link_test_code=" program t\n end\n"
19914
19915# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19916
19917# If no C compiler was specified, use CC.
19918LTCC=${LTCC-"$CC"}
19919
Reid Spencera773bd52006-08-04 18:18:08 +000019920# If no C compiler flags were specified, use CFLAGS.
19921LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19922
John Criswell47fdd832003-07-14 16:52:07 +000019923# Allow CC to be a program name with arguments.
19924compiler=$CC
19925
19926
Reid Spencera773bd52006-08-04 18:18:08 +000019927# save warnings/boilerplate of simple test code
19928ac_outfile=conftest.$ac_objext
19929printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19930eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19931_lt_compiler_boilerplate=`cat conftest.err`
19932$rm conftest*
19933
19934ac_outfile=conftest.$ac_objext
19935printf "$lt_simple_link_test_code" >conftest.$ac_ext
19936eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19937_lt_linker_boilerplate=`cat conftest.err`
19938$rm conftest*
19939
19940
John Criswell47fdd832003-07-14 16:52:07 +000019941# Allow CC to be a program name with arguments.
19942lt_save_CC="$CC"
19943CC=${F77-"f77"}
19944compiler=$CC
19945compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000019946for cc_temp in $compiler""; do
19947 case $cc_temp in
19948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19950 \-*) ;;
19951 *) break;;
19952 esac
19953done
19954cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000019955
John Criswell47fdd832003-07-14 16:52:07 +000019956
Reid Spencera773bd52006-08-04 18:18:08 +000019957{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19958echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19959{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
19960echo "${ECHO_T}$can_build_shared" >&6; }
19961
19962{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19963echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019964test "$can_build_shared" = "no" && enable_shared=no
19965
19966# On AIX, shared libraries and static libraries use the same namespace, and
19967# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000019968case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019969aix3*)
19970 test "$enable_shared" = yes && enable_static=no
19971 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019972 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019973 postinstall_cmds='$RANLIB $lib'
19974 fi
19975 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019976aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000019977 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19978 test "$enable_shared" = yes && enable_static=no
19979 fi
John Criswell47fdd832003-07-14 16:52:07 +000019980 ;;
19981esac
Reid Spencera773bd52006-08-04 18:18:08 +000019982{ echo "$as_me:$LINENO: result: $enable_shared" >&5
19983echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019984
Reid Spencera773bd52006-08-04 18:18:08 +000019985{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19986echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019987# Make sure either enable_shared or enable_static is yes.
19988test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019989{ echo "$as_me:$LINENO: result: $enable_static" >&5
19990echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019991
19992GCC_F77="$G77"
19993LD_F77="$LD"
19994
19995lt_prog_compiler_wl_F77=
19996lt_prog_compiler_pic_F77=
19997lt_prog_compiler_static_F77=
19998
Reid Spencera773bd52006-08-04 18:18:08 +000019999{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20000echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020001
20002 if test "$GCC" = yes; then
20003 lt_prog_compiler_wl_F77='-Wl,'
20004 lt_prog_compiler_static_F77='-static'
20005
20006 case $host_os in
20007 aix*)
20008 # All AIX code is PIC.
20009 if test "$host_cpu" = ia64; then
20010 # AIX 5 now supports IA64 processor
20011 lt_prog_compiler_static_F77='-Bstatic'
20012 fi
20013 ;;
20014
20015 amigaos*)
20016 # FIXME: we need at least 68020 code to build shared libraries, but
20017 # adding the `-m68020' flag to GCC prevents building anything better,
20018 # like `-m68040'.
20019 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20020 ;;
20021
20022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20023 # PIC is the default for these OSes.
20024 ;;
20025
20026 mingw* | pw32* | os2*)
20027 # This hack is so that the source file can tell whether it is being
20028 # built for inclusion in a dll (and should export symbols for example).
20029 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20030 ;;
20031
20032 darwin* | rhapsody*)
20033 # PIC is the default on this platform
20034 # Common symbols not allowed in MH_DYLIB files
20035 lt_prog_compiler_pic_F77='-fno-common'
20036 ;;
20037
Reid Spencera773bd52006-08-04 18:18:08 +000020038 interix3*)
20039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20040 # Instead, we relocate shared libraries at runtime.
20041 ;;
20042
John Criswell47fdd832003-07-14 16:52:07 +000020043 msdosdjgpp*)
20044 # Just because we use GCC doesn't mean we suddenly get shared libraries
20045 # on systems that don't support them.
20046 lt_prog_compiler_can_build_shared_F77=no
20047 enable_shared=no
20048 ;;
20049
20050 sysv4*MP*)
20051 if test -d /usr/nec; then
20052 lt_prog_compiler_pic_F77=-Kconform_pic
20053 fi
20054 ;;
20055
20056 hpux*)
20057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20058 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020059 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020060 hppa*64*|ia64*)
20061 # +Z the default
20062 ;;
20063 *)
20064 lt_prog_compiler_pic_F77='-fPIC'
20065 ;;
20066 esac
20067 ;;
20068
20069 *)
20070 lt_prog_compiler_pic_F77='-fPIC'
20071 ;;
20072 esac
20073 else
20074 # PORTME Check for flag to pass linker flags through the system compiler.
20075 case $host_os in
20076 aix*)
20077 lt_prog_compiler_wl_F77='-Wl,'
20078 if test "$host_cpu" = ia64; then
20079 # AIX 5 now supports IA64 processor
20080 lt_prog_compiler_static_F77='-Bstatic'
20081 else
20082 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20083 fi
20084 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020085 darwin*)
20086 # PIC is the default on this platform
20087 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020088 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089 xlc*)
20090 lt_prog_compiler_pic_F77='-qnocommon'
20091 lt_prog_compiler_wl_F77='-Wl,'
20092 ;;
20093 esac
20094 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020095
20096 mingw* | pw32* | os2*)
20097 # This hack is so that the source file can tell whether it is being
20098 # built for inclusion in a dll (and should export symbols for example).
20099 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20100 ;;
20101
20102 hpux9* | hpux10* | hpux11*)
20103 lt_prog_compiler_wl_F77='-Wl,'
20104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20105 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020106 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020107 hppa*64*|ia64*)
20108 # +Z the default
20109 ;;
20110 *)
20111 lt_prog_compiler_pic_F77='+Z'
20112 ;;
20113 esac
20114 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20115 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20116 ;;
20117
20118 irix5* | irix6* | nonstopux*)
20119 lt_prog_compiler_wl_F77='-Wl,'
20120 # PIC (with -KPIC) is the default.
20121 lt_prog_compiler_static_F77='-non_shared'
20122 ;;
20123
20124 newsos6)
20125 lt_prog_compiler_pic_F77='-KPIC'
20126 lt_prog_compiler_static_F77='-Bstatic'
20127 ;;
20128
20129 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020130 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020131 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020132 lt_prog_compiler_wl_F77='-Wl,'
20133 lt_prog_compiler_pic_F77='-KPIC'
20134 lt_prog_compiler_static_F77='-static'
20135 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020136 pgcc* | pgf77* | pgf90* | pgf95*)
20137 # Portland Group compilers (*not* the Pentium gcc compiler,
20138 # which looks to be a dead project)
20139 lt_prog_compiler_wl_F77='-Wl,'
20140 lt_prog_compiler_pic_F77='-fpic'
20141 lt_prog_compiler_static_F77='-Bstatic'
20142 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020143 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000020144 lt_prog_compiler_wl_F77='-Wl,'
20145 # All Alpha code is PIC.
20146 lt_prog_compiler_static_F77='-non_shared'
20147 ;;
20148 esac
20149 ;;
20150
20151 osf3* | osf4* | osf5*)
20152 lt_prog_compiler_wl_F77='-Wl,'
20153 # All OSF/1 code is PIC.
20154 lt_prog_compiler_static_F77='-non_shared'
20155 ;;
20156
John Criswell47fdd832003-07-14 16:52:07 +000020157 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020158 lt_prog_compiler_pic_F77='-KPIC'
20159 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000020160 case $cc_basename in
20161 f77* | f90* | f95*)
20162 lt_prog_compiler_wl_F77='-Qoption ld ';;
20163 *)
20164 lt_prog_compiler_wl_F77='-Wl,';;
20165 esac
John Criswell47fdd832003-07-14 16:52:07 +000020166 ;;
20167
20168 sunos4*)
20169 lt_prog_compiler_wl_F77='-Qoption ld '
20170 lt_prog_compiler_pic_F77='-PIC'
20171 lt_prog_compiler_static_F77='-Bstatic'
20172 ;;
20173
Reid Spencera773bd52006-08-04 18:18:08 +000020174 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020175 lt_prog_compiler_wl_F77='-Wl,'
20176 lt_prog_compiler_pic_F77='-KPIC'
20177 lt_prog_compiler_static_F77='-Bstatic'
20178 ;;
20179
20180 sysv4*MP*)
20181 if test -d /usr/nec ;then
20182 lt_prog_compiler_pic_F77='-Kconform_pic'
20183 lt_prog_compiler_static_F77='-Bstatic'
20184 fi
20185 ;;
20186
Reid Spencera773bd52006-08-04 18:18:08 +000020187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20188 lt_prog_compiler_wl_F77='-Wl,'
20189 lt_prog_compiler_pic_F77='-KPIC'
20190 lt_prog_compiler_static_F77='-Bstatic'
20191 ;;
20192
20193 unicos*)
20194 lt_prog_compiler_wl_F77='-Wl,'
20195 lt_prog_compiler_can_build_shared_F77=no
20196 ;;
20197
John Criswell47fdd832003-07-14 16:52:07 +000020198 uts4*)
20199 lt_prog_compiler_pic_F77='-pic'
20200 lt_prog_compiler_static_F77='-Bstatic'
20201 ;;
20202
20203 *)
20204 lt_prog_compiler_can_build_shared_F77=no
20205 ;;
20206 esac
20207 fi
20208
Reid Spencera773bd52006-08-04 18:18:08 +000020209{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20210echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020211
20212#
20213# Check to make sure the PIC flag actually works.
20214#
20215if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020216
Reid Spencera773bd52006-08-04 18:18:08 +000020217{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20218echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020219if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221else
20222 lt_prog_compiler_pic_works_F77=no
20223 ac_outfile=conftest.$ac_objext
20224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20225 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20226 # Insert the option either (1) after the last *FLAGS variable, or
20227 # (2) before a word containing "conftest.", or (3) at the end.
20228 # Note that $ac_compile itself does not contain backslashes and begins
20229 # with a dollar sign (not a hyphen), so the echo should work correctly.
20230 # The option is referenced via a variable to avoid confusing sed.
20231 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20234 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000020235 (eval echo "\"\$as_me:20235: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020236 (eval "$lt_compile" 2>conftest.err)
20237 ac_status=$?
20238 cat conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020239 echo "$as_me:20239: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020240 if (exit $ac_status) && test -s "$ac_outfile"; then
20241 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020242 # So say no if there are warnings other than the usual output.
20243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020246 lt_prog_compiler_pic_works_F77=yes
20247 fi
20248 fi
20249 $rm conftest*
20250
20251fi
Reid Spencera773bd52006-08-04 18:18:08 +000020252{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20253echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020254
20255if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20256 case $lt_prog_compiler_pic_F77 in
20257 "" | " "*) ;;
20258 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20259 esac
20260else
20261 lt_prog_compiler_pic_F77=
20262 lt_prog_compiler_can_build_shared_F77=no
20263fi
20264
20265fi
Reid Spencera773bd52006-08-04 18:18:08 +000020266case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020267 # For platforms which do not support PIC, -DPIC is meaningless:
20268 *djgpp*)
20269 lt_prog_compiler_pic_F77=
20270 ;;
20271 *)
20272 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20273 ;;
20274esac
20275
Reid Spencera773bd52006-08-04 18:18:08 +000020276#
20277# Check to make sure the static flag actually works.
20278#
20279wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20280{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20281echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20282if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284else
20285 lt_prog_compiler_static_works_F77=no
20286 save_LDFLAGS="$LDFLAGS"
20287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20288 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20290 # The linker can only warn and ignore the option if not recognized
20291 # So say no if there are warnings
20292 if test -s conftest.err; then
20293 # Append any errors to the config.log.
20294 cat conftest.err 1>&5
20295 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20297 if diff conftest.exp conftest.er2 >/dev/null; then
20298 lt_prog_compiler_static_works_F77=yes
20299 fi
20300 else
20301 lt_prog_compiler_static_works_F77=yes
20302 fi
20303 fi
20304 $rm conftest*
20305 LDFLAGS="$save_LDFLAGS"
20306
20307fi
20308{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20309echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20310
20311if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20312 :
20313else
20314 lt_prog_compiler_static_F77=
20315fi
20316
20317
20318{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20319echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020320if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322else
20323 lt_cv_prog_compiler_c_o_F77=no
20324 $rm -r conftest 2>/dev/null
20325 mkdir conftest
20326 cd conftest
20327 mkdir out
20328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20329
John Criswell47fdd832003-07-14 16:52:07 +000020330 lt_compiler_flag="-o out/conftest2.$ac_objext"
20331 # Insert the option either (1) after the last *FLAGS variable, or
20332 # (2) before a word containing "conftest.", or (3) at the end.
20333 # Note that $ac_compile itself does not contain backslashes and begins
20334 # with a dollar sign (not a hyphen), so the echo should work correctly.
20335 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20338 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000020339 (eval echo "\"\$as_me:20339: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020340 (eval "$lt_compile" 2>out/conftest.err)
20341 ac_status=$?
20342 cat out/conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020343 echo "$as_me:20343: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20345 then
20346 # The compiler can only warn and ignore the option if not recognized
20347 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020351 lt_cv_prog_compiler_c_o_F77=yes
20352 fi
20353 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020354 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020355 $rm conftest*
20356 # SGI C++ compiler will create directory out/ii_files/ for
20357 # template instantiation
20358 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20359 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020360 cd ..
20361 rmdir conftest
20362 $rm conftest*
20363
20364fi
Reid Spencera773bd52006-08-04 18:18:08 +000020365{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20366echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020367
20368
20369hard_links="nottested"
20370if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20371 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020372 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20373echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020374 hard_links=yes
20375 $rm conftest*
20376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20377 touch conftest.a
20378 ln conftest.a conftest.b 2>&5 || hard_links=no
20379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020380 { echo "$as_me:$LINENO: result: $hard_links" >&5
20381echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020382 if test "$hard_links" = no; then
20383 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20384echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20385 need_locks=warn
20386 fi
20387else
20388 need_locks=no
20389fi
20390
Reid Spencera773bd52006-08-04 18:18:08 +000020391{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20392echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020393
20394 runpath_var=
20395 allow_undefined_flag_F77=
20396 enable_shared_with_static_runtimes_F77=no
20397 archive_cmds_F77=
20398 archive_expsym_cmds_F77=
20399 old_archive_From_new_cmds_F77=
20400 old_archive_from_expsyms_cmds_F77=
20401 export_dynamic_flag_spec_F77=
20402 whole_archive_flag_spec_F77=
20403 thread_safe_flag_spec_F77=
20404 hardcode_libdir_flag_spec_F77=
20405 hardcode_libdir_flag_spec_ld_F77=
20406 hardcode_libdir_separator_F77=
20407 hardcode_direct_F77=no
20408 hardcode_minus_L_F77=no
20409 hardcode_shlibpath_var_F77=unsupported
20410 link_all_deplibs_F77=unknown
20411 hardcode_automatic_F77=no
20412 module_cmds_F77=
20413 module_expsym_cmds_F77=
20414 always_export_symbols_F77=no
20415 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20416 # include_expsyms should be a list of space-separated symbols to be *always*
20417 # included in the symbol list
20418 include_expsyms_F77=
20419 # exclude_expsyms can be an extended regexp of symbols to exclude
20420 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20421 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20422 # as well as any symbol that contains `d'.
20423 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20425 # platforms (ab)use it in PIC code, but their linkers get confused if
20426 # the symbol is explicitly referenced. Since portable code cannot
20427 # rely on this symbol name, it's probably fine to never include it in
20428 # preloaded symbol tables.
20429 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000020430 # Just being paranoid about ensuring that cc_basename is set.
20431 for cc_temp in $compiler""; do
20432 case $cc_temp in
20433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20435 \-*) ;;
20436 *) break;;
20437 esac
20438done
20439cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020440
20441 case $host_os in
20442 cygwin* | mingw* | pw32*)
20443 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20444 # When not using gcc, we currently assume that we are using
20445 # Microsoft Visual C++.
20446 if test "$GCC" != yes; then
20447 with_gnu_ld=no
20448 fi
20449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020450 interix*)
20451 # we just hope/assume this is gcc and not c89 (= MSVC++)
20452 with_gnu_ld=yes
20453 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020454 openbsd*)
20455 with_gnu_ld=no
20456 ;;
20457 esac
20458
20459 ld_shlibs_F77=yes
20460 if test "$with_gnu_ld" = yes; then
20461 # If archive_cmds runs LD, not CC, wlarc should be empty
20462 wlarc='${wl}'
20463
Reid Spencera773bd52006-08-04 18:18:08 +000020464 # Set some defaults for GNU ld with shared library support. These
20465 # are reset later if shared libraries are not supported. Putting them
20466 # here allows them to be overridden if necessary.
20467 runpath_var=LD_RUN_PATH
20468 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20469 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20470 # ancient GNU ld didn't support --whole-archive et. al.
20471 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20472 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20473 else
20474 whole_archive_flag_spec_F77=
20475 fi
20476 supports_anon_versioning=no
20477 case `$LD -v 2>/dev/null` in
20478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20481 *\ 2.11.*) ;; # other 2.11 versions
20482 *) supports_anon_versioning=yes ;;
20483 esac
20484
John Criswell47fdd832003-07-14 16:52:07 +000020485 # See if GNU ld supports shared libraries.
20486 case $host_os in
20487 aix3* | aix4* | aix5*)
20488 # On AIX/PPC, the GNU linker is very broken
20489 if test "$host_cpu" != ia64; then
20490 ld_shlibs_F77=no
20491 cat <<EOF 1>&2
20492
20493*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20494*** to be unable to reliably create shared libraries on AIX.
20495*** Therefore, libtool is disabling shared libraries support. If you
20496*** really care for shared libraries, you may want to modify your PATH
20497*** so that a non-GNU linker is found, and then restart.
20498
20499EOF
20500 fi
20501 ;;
20502
20503 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020504 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)'
John Criswell47fdd832003-07-14 16:52:07 +000020505 hardcode_libdir_flag_spec_F77='-L$libdir'
20506 hardcode_minus_L_F77=yes
20507
20508 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20509 # that the semantics of dynamic libraries on AmigaOS, at least up
20510 # to version 4, is to share data among multiple programs linked
20511 # with the same dynamic library. Since this doesn't match the
20512 # behavior of shared libraries on other platforms, we can't use
20513 # them.
20514 ld_shlibs_F77=no
20515 ;;
20516
20517 beos*)
20518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20519 allow_undefined_flag_F77=unsupported
20520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20521 # support --undefined. This deserves some investigation. FIXME
20522 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20523 else
20524 ld_shlibs_F77=no
20525 fi
20526 ;;
20527
20528 cygwin* | mingw* | pw32*)
20529 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20530 # as there is no search path for DLLs.
20531 hardcode_libdir_flag_spec_F77='-L$libdir'
20532 allow_undefined_flag_F77=unsupported
20533 always_export_symbols_F77=no
20534 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020535 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000020536
20537 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000020538 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000020539 # If the export-symbols file already is a .def file (1st line
20540 # is EXPORTS), use it as is; otherwise, prepend...
20541 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20542 cp $export_symbols $output_objdir/$soname.def;
20543 else
20544 echo EXPORTS > $output_objdir/$soname.def;
20545 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000020546 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000020547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000020548 else
Reid Spencera773bd52006-08-04 18:18:08 +000020549 ld_shlibs_F77=no
20550 fi
20551 ;;
20552
20553 interix3*)
20554 hardcode_direct_F77=no
20555 hardcode_shlibpath_var_F77=no
20556 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20557 export_dynamic_flag_spec_F77='${wl}-E'
20558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20559 # Instead, shared libraries are loaded at an image base (0x10000000 by
20560 # default) and relocated if they conflict, which is a slow very memory
20561 # consuming and fragmenting process. To avoid this, we pick a random,
20562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20564 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'
20565 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'
20566 ;;
20567
20568 linux*)
20569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20570 tmp_addflag=
20571 case $cc_basename,$host_cpu in
20572 pgcc*) # Portland Group C compiler
20573 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'
20574 tmp_addflag=' $pic_flag'
20575 ;;
20576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20577 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'
20578 tmp_addflag=' $pic_flag -Mnomain' ;;
20579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20580 tmp_addflag=' -i_dynamic' ;;
20581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20582 tmp_addflag=' -i_dynamic -nofor_main' ;;
20583 ifc* | ifort*) # Intel Fortran compiler
20584 tmp_addflag=' -nofor_main' ;;
20585 esac
20586 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20587
20588 if test $supports_anon_versioning = yes; then
20589 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20591 $echo "local: *; };" >> $output_objdir/$libname.ver~
20592 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20593 fi
20594 else
20595 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020596 fi
20597 ;;
20598
20599 netbsd*)
20600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20601 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20602 wlarc=
20603 else
20604 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20605 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20606 fi
20607 ;;
20608
Reid Spencera773bd52006-08-04 18:18:08 +000020609 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020610 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20611 ld_shlibs_F77=no
20612 cat <<EOF 1>&2
20613
20614*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20615*** create shared libraries on Solaris systems. Therefore, libtool
20616*** is disabling shared libraries support. We urge you to upgrade GNU
20617*** binutils to release 2.9.1 or newer. Another option is to modify
20618*** your PATH or compiler configuration so that the native linker is
20619*** used, and then restart.
20620
20621EOF
20622 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20623 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20624 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20625 else
20626 ld_shlibs_F77=no
20627 fi
20628 ;;
20629
Reid Spencera773bd52006-08-04 18:18:08 +000020630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20631 case `$LD -v 2>&1` in
20632 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20633 ld_shlibs_F77=no
20634 cat <<_LT_EOF 1>&2
20635
20636*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20637*** reliably create shared libraries on SCO systems. Therefore, libtool
20638*** is disabling shared libraries support. We urge you to upgrade GNU
20639*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20640*** your PATH or compiler configuration so that the native linker is
20641*** used, and then restart.
20642
20643_LT_EOF
20644 ;;
20645 *)
20646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20647 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20648 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20649 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20650 else
20651 ld_shlibs_F77=no
20652 fi
20653 ;;
20654 esac
20655 ;;
20656
John Criswell47fdd832003-07-14 16:52:07 +000020657 sunos4*)
20658 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20659 wlarc=
20660 hardcode_direct_F77=yes
20661 hardcode_shlibpath_var_F77=no
20662 ;;
20663
20664 *)
20665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20668 else
20669 ld_shlibs_F77=no
20670 fi
20671 ;;
20672 esac
20673
Reid Spencera773bd52006-08-04 18:18:08 +000020674 if test "$ld_shlibs_F77" = no; then
20675 runpath_var=
20676 hardcode_libdir_flag_spec_F77=
20677 export_dynamic_flag_spec_F77=
20678 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000020679 fi
20680 else
20681 # PORTME fill in a description of your system's linker (not GNU ld)
20682 case $host_os in
20683 aix3*)
20684 allow_undefined_flag_F77=unsupported
20685 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000020686 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'
John Criswell47fdd832003-07-14 16:52:07 +000020687 # Note: this linker hardcodes the directories in LIBPATH if there
20688 # are no directories specified by -L.
20689 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020690 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000020691 # Neither direct hardcoding nor static linking is supported with a
20692 # broken collect2.
20693 hardcode_direct_F77=unsupported
20694 fi
20695 ;;
20696
20697 aix4* | aix5*)
20698 if test "$host_cpu" = ia64; then
20699 # On IA64, the linker does run time linking by default, so we don't
20700 # have to do anything special.
20701 aix_use_runtimelinking=no
20702 exp_sym_flag='-Bexport'
20703 no_entry_flag=""
20704 else
20705 # If we're using GNU nm, then we don't want the "-C" option.
20706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20707 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20708 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'
20709 else
20710 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'
20711 fi
20712 aix_use_runtimelinking=no
20713
20714 # Test if we are trying to use run time linking or normal
20715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20716 # need to do runtime linking.
20717 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20718 for ld_flag in $LDFLAGS; do
20719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20720 aix_use_runtimelinking=yes
20721 break
20722 fi
20723 done
Reid Spencera773bd52006-08-04 18:18:08 +000020724 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020725 esac
20726
20727 exp_sym_flag='-bexport'
20728 no_entry_flag='-bnoentry'
20729 fi
20730
20731 # When large executables or shared objects are built, AIX ld can
20732 # have problems creating the table of contents. If linking a library
20733 # or program results in "error TOC overflow" add -mminimal-toc to
20734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20736
20737 archive_cmds_F77=''
20738 hardcode_direct_F77=yes
20739 hardcode_libdir_separator_F77=':'
20740 link_all_deplibs_F77=yes
20741
20742 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000020743 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000020744 # We only want to do this on AIX 4.2 and lower, the check
20745 # below for broken collect2 doesn't work under 4.3+
20746 collect2name=`${CC} -print-prog-name=collect2`
20747 if test -f "$collect2name" && \
20748 strings "$collect2name" | grep resolve_lib_name >/dev/null
20749 then
20750 # We have reworked collect2
20751 hardcode_direct_F77=yes
20752 else
20753 # We have old collect2
20754 hardcode_direct_F77=unsupported
20755 # It fails to find uninstalled libraries when the uninstalled
20756 # path is not listed in the libpath. Setting hardcode_minus_L
20757 # to unsupported forces relinking
20758 hardcode_minus_L_F77=yes
20759 hardcode_libdir_flag_spec_F77='-L$libdir'
20760 hardcode_libdir_separator_F77=
20761 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020762 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020763 esac
20764 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000020765 if test "$aix_use_runtimelinking" = yes; then
20766 shared_flag="$shared_flag "'${wl}-G'
20767 fi
John Criswell47fdd832003-07-14 16:52:07 +000020768 else
20769 # not using gcc
20770 if test "$host_cpu" = ia64; then
20771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20772 # chokes on -Wl,-G. The following line is correct:
20773 shared_flag='-G'
20774 else
Reid Spencera773bd52006-08-04 18:18:08 +000020775 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000020776 shared_flag='${wl}-G'
20777 else
20778 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000020779 fi
John Criswell47fdd832003-07-14 16:52:07 +000020780 fi
20781 fi
20782
20783 # It seems that -bexpall does not export symbols beginning with
20784 # underscore (_), so it is better to generate a list of symbols to export.
20785 always_export_symbols_F77=yes
20786 if test "$aix_use_runtimelinking" = yes; then
20787 # Warning - without using the other runtime loading flags (-brtl),
20788 # -berok will link without error, but may produce a broken library.
20789 allow_undefined_flag_F77='-berok'
20790 # Determine the default libpath from the value encoded in an empty executable.
20791 cat >conftest.$ac_ext <<_ACEOF
20792 program main
20793
20794 end
20795_ACEOF
20796rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020797if { (ac_try="$ac_link"
20798case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20801esac
20802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020809 (exit $ac_status); } && {
20810 test -z "$ac_f77_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest$ac_exeext &&
20813 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020814
20815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20816}'`
20817# Check for a 64-bit object if we didn't find anything.
20818if 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; }
20819}'`; fi
20820else
20821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020822sed 's/^/| /' conftest.$ac_ext >&5
20823
Reid Spencera773bd52006-08-04 18:18:08 +000020824
John Criswell47fdd832003-07-14 16:52:07 +000020825fi
Reid Spencera773bd52006-08-04 18:18:08 +000020826
Scott Michel96dcd2b2007-12-05 21:24:02 +000020827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020828 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020829if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20830
20831 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000020832 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"
John Criswell47fdd832003-07-14 16:52:07 +000020833 else
20834 if test "$host_cpu" = ia64; then
20835 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20836 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000020837 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"
John Criswell47fdd832003-07-14 16:52:07 +000020838 else
20839 # Determine the default libpath from the value encoded in an empty executable.
20840 cat >conftest.$ac_ext <<_ACEOF
20841 program main
20842
20843 end
20844_ACEOF
20845rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020846if { (ac_try="$ac_link"
20847case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20850esac
20851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020858 (exit $ac_status); } && {
20859 test -z "$ac_f77_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest$ac_exeext &&
20862 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020863
20864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20865}'`
20866# Check for a 64-bit object if we didn't find anything.
20867if 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; }
20868}'`; fi
20869else
20870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020871sed 's/^/| /' conftest.$ac_ext >&5
20872
Reid Spencera773bd52006-08-04 18:18:08 +000020873
John Criswell47fdd832003-07-14 16:52:07 +000020874fi
Reid Spencera773bd52006-08-04 18:18:08 +000020875
Scott Michel96dcd2b2007-12-05 21:24:02 +000020876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020877 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20879
20880 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20881 # Warning - without using the other run time loading flags,
20882 # -berok will link without error, but may produce a broken library.
20883 no_undefined_flag_F77=' ${wl}-bernotok'
20884 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000020885 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000020886 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000020887 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020888 # This is similar to how AIX traditionally builds its shared libraries.
20889 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'
John Criswell47fdd832003-07-14 16:52:07 +000020890 fi
20891 fi
20892 ;;
20893
20894 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020895 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)'
John Criswell47fdd832003-07-14 16:52:07 +000020896 hardcode_libdir_flag_spec_F77='-L$libdir'
20897 hardcode_minus_L_F77=yes
20898 # see comment about different semantics on the GNU ld section
20899 ld_shlibs_F77=no
20900 ;;
20901
Reid Spencer2706f8c2004-09-19 23:53:36 +000020902 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020903 export_dynamic_flag_spec_F77=-rdynamic
20904 ;;
20905
20906 cygwin* | mingw* | pw32*)
20907 # When not using gcc, we currently assume that we are using
20908 # Microsoft Visual C++.
20909 # hardcode_libdir_flag_spec is actually meaningless, as there is
20910 # no search path for DLLs.
20911 hardcode_libdir_flag_spec_F77=' '
20912 allow_undefined_flag_F77=unsupported
20913 # Tell ltmain to make .lib files, not .a files.
20914 libext=lib
20915 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020916 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020917 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000020918 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000020919 # The linker will automatically build a .lib file if we build a DLL.
20920 old_archive_From_new_cmds_F77='true'
20921 # FIXME: Should let the user specify the lib program.
20922 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000020923 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000020924 enable_shared_with_static_runtimes_F77=yes
20925 ;;
20926
20927 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000020928 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020929 rhapsody* | darwin1.[012])
20930 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20931 ;;
20932 *) # Darwin 1.3 on
20933 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20934 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20935 else
20936 case ${MACOSX_DEPLOYMENT_TARGET} in
20937 10.[012])
20938 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20939 ;;
20940 10.*)
20941 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20942 ;;
20943 esac
20944 fi
20945 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020946 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000020947 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020948 hardcode_direct_F77=no
20949 hardcode_automatic_F77=yes
20950 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000020951 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000020952 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000020953 if test "$GCC" = yes ; then
20954 output_verbose_link_cmd='echo'
20955 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20956 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000020958 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}'
20959 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020960 else
Reid Spencera773bd52006-08-04 18:18:08 +000020961 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020962 xlc*)
20963 output_verbose_link_cmd='echo'
20964 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20965 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020966 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000020967 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}'
20968 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020969 ;;
20970 *)
20971 ld_shlibs_F77=no
20972 ;;
20973 esac
John Criswell47fdd832003-07-14 16:52:07 +000020974 fi
20975 ;;
20976
20977 dgux*)
20978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20979 hardcode_libdir_flag_spec_F77='-L$libdir'
20980 hardcode_shlibpath_var_F77=no
20981 ;;
20982
20983 freebsd1*)
20984 ld_shlibs_F77=no
20985 ;;
20986
20987 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20988 # support. Future versions do this automatically, but an explicit c++rt0.o
20989 # does not break anything, and helps significantly (at the cost of a little
20990 # extra space).
20991 freebsd2.2*)
20992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20993 hardcode_libdir_flag_spec_F77='-R$libdir'
20994 hardcode_direct_F77=yes
20995 hardcode_shlibpath_var_F77=no
20996 ;;
20997
20998 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20999 freebsd2*)
21000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21001 hardcode_direct_F77=yes
21002 hardcode_minus_L_F77=yes
21003 hardcode_shlibpath_var_F77=no
21004 ;;
21005
21006 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021007 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021008 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21009 hardcode_libdir_flag_spec_F77='-R$libdir'
21010 hardcode_direct_F77=yes
21011 hardcode_shlibpath_var_F77=no
21012 ;;
21013
21014 hpux9*)
21015 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021016 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'
John Criswell47fdd832003-07-14 16:52:07 +000021017 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021018 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'
John Criswell47fdd832003-07-14 16:52:07 +000021019 fi
21020 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21021 hardcode_libdir_separator_F77=:
21022 hardcode_direct_F77=yes
21023
21024 # hardcode_minus_L: Not really in the search PATH,
21025 # but as the default location of the library.
21026 hardcode_minus_L_F77=yes
21027 export_dynamic_flag_spec_F77='${wl}-E'
21028 ;;
21029
Reid Spencera773bd52006-08-04 18:18:08 +000021030 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021031 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021032 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21033 else
21034 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21035 fi
21036 if test "$with_gnu_ld" = no; then
21037 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21038 hardcode_libdir_separator_F77=:
21039
21040 hardcode_direct_F77=yes
21041 export_dynamic_flag_spec_F77='${wl}-E'
21042
21043 # hardcode_minus_L: Not really in the search PATH,
21044 # but as the default location of the library.
21045 hardcode_minus_L_F77=yes
21046 fi
21047 ;;
21048
21049 hpux11*)
21050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21051 case $host_cpu in
21052 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021053 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21054 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021055 ia64*)
21056 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21057 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021058 *)
21059 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21060 ;;
21061 esac
21062 else
Reid Spencera773bd52006-08-04 18:18:08 +000021063 case $host_cpu in
21064 hppa*64*)
21065 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21066 ;;
21067 ia64*)
21068 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021069 ;;
21070 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021071 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021072 ;;
21073 esac
21074 fi
21075 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021076 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21077 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079 case $host_cpu in
21080 hppa*64*|ia64*)
21081 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21082 hardcode_direct_F77=no
21083 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021084 ;;
21085 *)
John Criswell47fdd832003-07-14 16:52:07 +000021086 hardcode_direct_F77=yes
21087 export_dynamic_flag_spec_F77='${wl}-E'
21088
21089 # hardcode_minus_L: Not really in the search PATH,
21090 # but as the default location of the library.
21091 hardcode_minus_L_F77=yes
21092 ;;
21093 esac
21094 fi
21095 ;;
21096
21097 irix5* | irix6* | nonstopux*)
21098 if test "$GCC" = yes; then
21099 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'
21100 else
21101 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'
21102 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21103 fi
21104 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21105 hardcode_libdir_separator_F77=:
21106 link_all_deplibs_F77=yes
21107 ;;
21108
21109 netbsd*)
21110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21111 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21112 else
21113 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21114 fi
21115 hardcode_libdir_flag_spec_F77='-R$libdir'
21116 hardcode_direct_F77=yes
21117 hardcode_shlibpath_var_F77=no
21118 ;;
21119
21120 newsos6)
21121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21122 hardcode_direct_F77=yes
21123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21124 hardcode_libdir_separator_F77=:
21125 hardcode_shlibpath_var_F77=no
21126 ;;
21127
21128 openbsd*)
21129 hardcode_direct_F77=yes
21130 hardcode_shlibpath_var_F77=no
21131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21132 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021133 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000021134 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21135 export_dynamic_flag_spec_F77='${wl}-E'
21136 else
21137 case $host_os in
21138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21139 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21140 hardcode_libdir_flag_spec_F77='-R$libdir'
21141 ;;
21142 *)
21143 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21144 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21145 ;;
21146 esac
21147 fi
21148 ;;
21149
21150 os2*)
21151 hardcode_libdir_flag_spec_F77='-L$libdir'
21152 hardcode_minus_L_F77=yes
21153 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021154 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'
John Criswell47fdd832003-07-14 16:52:07 +000021155 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21156 ;;
21157
21158 osf3*)
21159 if test "$GCC" = yes; then
21160 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21161 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'
21162 else
21163 allow_undefined_flag_F77=' -expect_unresolved \*'
21164 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'
21165 fi
21166 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21167 hardcode_libdir_separator_F77=:
21168 ;;
21169
21170 osf4* | osf5*) # as osf3* with the addition of -msym flag
21171 if test "$GCC" = yes; then
21172 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21173 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'
21174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21175 else
21176 allow_undefined_flag_F77=' -expect_unresolved \*'
21177 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000021178 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~
Reid Spencera773bd52006-08-04 18:18:08 +000021179 $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'
Reid Spencer177dbe22004-10-13 01:01:03 +000021180
John Criswell47fdd832003-07-14 16:52:07 +000021181 # Both c and cxx compiler support -rpath directly
21182 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21183 fi
21184 hardcode_libdir_separator_F77=:
21185 ;;
21186
John Criswell47fdd832003-07-14 16:52:07 +000021187 solaris*)
21188 no_undefined_flag_F77=' -z text'
21189 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021190 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000021191 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021192 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21193 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000021194 else
Reid Spencera773bd52006-08-04 18:18:08 +000021195 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000021196 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021197 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21198 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000021199 fi
21200 hardcode_libdir_flag_spec_F77='-R$libdir'
21201 hardcode_shlibpath_var_F77=no
21202 case $host_os in
21203 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021204 *)
21205 # The compiler driver will combine linker options so we
21206 # cannot just pass the convience library names through
21207 # without $wl, iff we do not link with $LD.
21208 # Luckily, gcc supports the same syntax we need for Sun Studio.
21209 # Supported since Solaris 2.6 (maybe 2.5.1?)
21210 case $wlarc in
21211 '')
21212 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21213 *)
21214 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' ;;
21215 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000021216 esac
21217 link_all_deplibs_F77=yes
21218 ;;
21219
21220 sunos4*)
21221 if test "x$host_vendor" = xsequent; then
21222 # Use $CC to link under sequent, because it throws in some extra .o
21223 # files that make .init and .fini sections work.
21224 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21225 else
21226 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21227 fi
21228 hardcode_libdir_flag_spec_F77='-L$libdir'
21229 hardcode_direct_F77=yes
21230 hardcode_minus_L_F77=yes
21231 hardcode_shlibpath_var_F77=no
21232 ;;
21233
21234 sysv4)
21235 case $host_vendor in
21236 sni)
21237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21238 hardcode_direct_F77=yes # is this really true???
21239 ;;
21240 siemens)
21241 ## LD is ld it makes a PLAMLIB
21242 ## CC just makes a GrossModule.
21243 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21244 reload_cmds_F77='$CC -r -o $output$reload_objs'
21245 hardcode_direct_F77=no
21246 ;;
21247 motorola)
21248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21249 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21250 ;;
21251 esac
21252 runpath_var='LD_RUN_PATH'
21253 hardcode_shlibpath_var_F77=no
21254 ;;
21255
21256 sysv4.3*)
21257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21258 hardcode_shlibpath_var_F77=no
21259 export_dynamic_flag_spec_F77='-Bexport'
21260 ;;
21261
21262 sysv4*MP*)
21263 if test -d /usr/nec; then
21264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21265 hardcode_shlibpath_var_F77=no
21266 runpath_var=LD_RUN_PATH
21267 hardcode_runpath_var=yes
21268 ld_shlibs_F77=yes
21269 fi
21270 ;;
21271
Reid Spencera773bd52006-08-04 18:18:08 +000021272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21273 no_undefined_flag_F77='${wl}-z,text'
21274 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021275 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021276 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000021277
John Criswell47fdd832003-07-14 16:52:07 +000021278 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021279 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21280 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021281 else
Reid Spencera773bd52006-08-04 18:18:08 +000021282 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21283 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021284 fi
John Criswell47fdd832003-07-14 16:52:07 +000021285 ;;
21286
Reid Spencera773bd52006-08-04 18:18:08 +000021287 sysv5* | sco3.2v5* | sco5v6*)
21288 # Note: We can NOT use -z defs as we might desire, because we do not
21289 # link with -lc, and that would cause any symbols used from libc to
21290 # always be unresolved, which means just about no library would
21291 # ever link correctly. If we're not using GNU ld we use -z text
21292 # though, which does catch some bad symbols but isn't as heavy-handed
21293 # as -z defs.
21294 no_undefined_flag_F77='${wl}-z,text'
21295 allow_undefined_flag_F77='${wl}-z,nodefs'
21296 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021297 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021298 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21299 hardcode_libdir_separator_F77=':'
21300 link_all_deplibs_F77=yes
21301 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000021302 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000021303
21304 if test "$GCC" = yes; then
21305 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21306 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21307 else
21308 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21309 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310 fi
John Criswell47fdd832003-07-14 16:52:07 +000021311 ;;
21312
21313 uts4*)
21314 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21315 hardcode_libdir_flag_spec_F77='-L$libdir'
21316 hardcode_shlibpath_var_F77=no
21317 ;;
21318
21319 *)
21320 ld_shlibs_F77=no
21321 ;;
21322 esac
21323 fi
21324
Reid Spencera773bd52006-08-04 18:18:08 +000021325{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21326echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021327test "$ld_shlibs_F77" = no && can_build_shared=no
21328
John Criswell47fdd832003-07-14 16:52:07 +000021329#
21330# Do we need to explicitly link libc?
21331#
21332case "x$archive_cmds_need_lc_F77" in
21333x|xyes)
21334 # Assume -lc should be added
21335 archive_cmds_need_lc_F77=yes
21336
21337 if test "$enable_shared" = yes && test "$GCC" = yes; then
21338 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021339 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000021340 # FIXME: we may have to deal with multi-command sequences.
21341 ;;
21342 '$CC '*)
21343 # Test whether the compiler implicitly links with -lc since on some
21344 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21345 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000021346 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21347echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021348 $rm conftest*
21349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21350
21351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352 (eval $ac_compile) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } 2>conftest.err; then
21356 soname=conftest
21357 lib=conftest
21358 libobjs=conftest.$ac_objext
21359 deplibs=
21360 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000021361 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000021362 compiler_flags=-v
21363 linker_flags=-v
21364 verstring=
21365 output_objdir=.
21366 libname=conftest
21367 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21368 allow_undefined_flag_F77=
21369 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21370 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }
21374 then
21375 archive_cmds_need_lc_F77=no
21376 else
21377 archive_cmds_need_lc_F77=yes
21378 fi
21379 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21380 else
21381 cat conftest.err 1>&5
21382 fi
21383 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000021384 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21385echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021386 ;;
21387 esac
21388 fi
21389 ;;
21390esac
21391
Reid Spencera773bd52006-08-04 18:18:08 +000021392{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21393echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021394library_names_spec=
21395libname_spec='lib$name'
21396soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000021397shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000021398postinstall_cmds=
21399postuninstall_cmds=
21400finish_cmds=
21401finish_eval=
21402shlibpath_var=
21403shlibpath_overrides_runpath=unknown
21404version_type=none
21405dynamic_linker="$host_os ld.so"
21406sys_lib_dlsearch_path_spec="/lib /usr/lib"
21407if test "$GCC" = yes; then
21408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21409 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21410 # if the path contains ";" then we assume it to be the separator
21411 # otherwise default to the standard path separator (i.e. ":") - it is
21412 # assumed that no part of a normal pathname contains ";" but that should
21413 # okay in the real world where ";" in dirpaths is itself problematic.
21414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21415 else
21416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21417 fi
21418else
21419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21420fi
21421need_lib_prefix=unknown
21422hardcode_into_libs=no
21423
21424# when you set need_version to no, make sure it does not cause -set_version
21425# flags to be left without arguments
21426need_version=unknown
21427
21428case $host_os in
21429aix3*)
21430 version_type=linux
21431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21432 shlibpath_var=LIBPATH
21433
21434 # AIX 3 has no versioning support, so we append a major version to the name.
21435 soname_spec='${libname}${release}${shared_ext}$major'
21436 ;;
21437
21438aix4* | aix5*)
21439 version_type=linux
21440 need_lib_prefix=no
21441 need_version=no
21442 hardcode_into_libs=yes
21443 if test "$host_cpu" = ia64; then
21444 # AIX 5 supports IA64
21445 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21446 shlibpath_var=LD_LIBRARY_PATH
21447 else
21448 # With GCC up to 2.95.x, collect2 would create an import file
21449 # for dependence libraries. The import file would start with
21450 # the line `#! .'. This would cause the generated library to
21451 # depend on `.', always an invalid library. This was fixed in
21452 # development snapshots of GCC prior to 3.0.
21453 case $host_os in
21454 aix4 | aix4.[01] | aix4.[01].*)
21455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21456 echo ' yes '
21457 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21458 :
21459 else
21460 can_build_shared=no
21461 fi
21462 ;;
21463 esac
21464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21465 # soname into executable. Probably we can add versioning support to
21466 # collect2, so additional links can be useful in future.
21467 if test "$aix_use_runtimelinking" = yes; then
21468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21469 # instead of lib<name>.a to let people know that these are not
21470 # typical AIX shared libraries.
21471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21472 else
21473 # We preserve .a as extension for shared libraries through AIX4.2
21474 # and later when we are not doing run time linking.
21475 library_names_spec='${libname}${release}.a $libname.a'
21476 soname_spec='${libname}${release}${shared_ext}$major'
21477 fi
21478 shlibpath_var=LIBPATH
21479 fi
21480 ;;
21481
21482amigaos*)
21483 library_names_spec='$libname.ixlibrary $libname.a'
21484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021485 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'
John Criswell47fdd832003-07-14 16:52:07 +000021486 ;;
21487
21488beos*)
21489 library_names_spec='${libname}${shared_ext}'
21490 dynamic_linker="$host_os ld.so"
21491 shlibpath_var=LIBRARY_PATH
21492 ;;
21493
Reid Spencer2706f8c2004-09-19 23:53:36 +000021494bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021495 version_type=linux
21496 need_version=no
21497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21498 soname_spec='${libname}${release}${shared_ext}$major'
21499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21500 shlibpath_var=LD_LIBRARY_PATH
21501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21503 # the default ld.so.conf also contains /usr/contrib/lib and
21504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21505 # libtool to hard-code these into programs
21506 ;;
21507
21508cygwin* | mingw* | pw32*)
21509 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000021510 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021511 need_version=no
21512 need_lib_prefix=no
21513
21514 case $GCC,$host_os in
21515 yes,cygwin* | yes,mingw* | yes,pw32*)
21516 library_names_spec='$libname.dll.a'
21517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000021518 postinstall_cmds='base_file=`basename \${file}`~
21519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21520 dldir=$destdir/`dirname \$dlpath`~
21521 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000021522 $install_prog $dir/$dlname \$dldir/$dlname~
21523 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000021524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21525 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000021526 $rm \$dlpath'
21527 shlibpath_overrides_runpath=yes
21528
21529 case $host_os in
21530 cygwin*)
21531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021533 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021534 ;;
21535 mingw*)
21536 # MinGW DLLs use traditional 'lib' prefix
21537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21538 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21539 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21540 # It is most probably a Windows format PATH printed by
21541 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21542 # path with ; separators, and with drive letters. We can handle the
21543 # drive letters (cygwin fileutils understands them), so leave them,
21544 # especially as we might pass files found there to a mingw objdump,
21545 # which wouldn't understand a cygwinified path. Ahh.
21546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21547 else
21548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21549 fi
21550 ;;
21551 pw32*)
21552 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000021553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000021554 ;;
21555 esac
21556 ;;
21557
21558 *)
21559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21560 ;;
21561 esac
21562 dynamic_linker='Win32 ld.exe'
21563 # FIXME: first we should search . and the directory the executable is in
21564 shlibpath_var=PATH
21565 ;;
21566
21567darwin* | rhapsody*)
21568 dynamic_linker="$host_os dyld"
21569 version_type=darwin
21570 need_lib_prefix=no
21571 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000021572 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000021573 soname_spec='${libname}${release}${major}$shared_ext'
21574 shlibpath_overrides_runpath=yes
21575 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000021576 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000021577 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021578 if test "$GCC" = yes; then
21579 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"`
21580 else
21581 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000021582 fi
21583 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21584 ;;
21585
21586dgux*)
21587 version_type=linux
21588 need_lib_prefix=no
21589 need_version=no
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21591 soname_spec='${libname}${release}${shared_ext}$major'
21592 shlibpath_var=LD_LIBRARY_PATH
21593 ;;
21594
21595freebsd1*)
21596 dynamic_linker=no
21597 ;;
21598
Reid Spencer2706f8c2004-09-19 23:53:36 +000021599kfreebsd*-gnu)
21600 version_type=linux
21601 need_lib_prefix=no
21602 need_version=no
21603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21604 soname_spec='${libname}${release}${shared_ext}$major'
21605 shlibpath_var=LD_LIBRARY_PATH
21606 shlibpath_overrides_runpath=no
21607 hardcode_into_libs=yes
21608 dynamic_linker='GNU ld.so'
21609 ;;
21610
Reid Spencera773bd52006-08-04 18:18:08 +000021611freebsd* | dragonfly*)
21612 # DragonFly does not have aout. When/if they implement a new
21613 # versioning mechanism, adjust this.
21614 if test -x /usr/bin/objformat; then
21615 objformat=`/usr/bin/objformat`
21616 else
21617 case $host_os in
21618 freebsd[123]*) objformat=aout ;;
21619 *) objformat=elf ;;
21620 esac
21621 fi
John Criswell47fdd832003-07-14 16:52:07 +000021622 version_type=freebsd-$objformat
21623 case $version_type in
21624 freebsd-elf*)
21625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21626 need_version=no
21627 need_lib_prefix=no
21628 ;;
21629 freebsd-*)
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21631 need_version=yes
21632 ;;
21633 esac
21634 shlibpath_var=LD_LIBRARY_PATH
21635 case $host_os in
21636 freebsd2*)
21637 shlibpath_overrides_runpath=yes
21638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021639 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000021640 shlibpath_overrides_runpath=yes
21641 hardcode_into_libs=yes
21642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000021645 shlibpath_overrides_runpath=no
21646 hardcode_into_libs=yes
21647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021648 freebsd*) # from 4.6 on
21649 shlibpath_overrides_runpath=yes
21650 hardcode_into_libs=yes
21651 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021652 esac
21653 ;;
21654
21655gnu*)
21656 version_type=linux
21657 need_lib_prefix=no
21658 need_version=no
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21660 soname_spec='${libname}${release}${shared_ext}$major'
21661 shlibpath_var=LD_LIBRARY_PATH
21662 hardcode_into_libs=yes
21663 ;;
21664
21665hpux9* | hpux10* | hpux11*)
21666 # Give a soname corresponding to the major version so that dld.sl refuses to
21667 # link against other versions.
21668 version_type=sunos
21669 need_lib_prefix=no
21670 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000021671 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021672 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021673 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000021674 hardcode_into_libs=yes
21675 dynamic_linker="$host_os dld.so"
21676 shlibpath_var=LD_LIBRARY_PATH
21677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21679 soname_spec='${libname}${release}${shared_ext}$major'
21680 if test "X$HPUX_IA64_MODE" = X32; then
21681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21682 else
21683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21684 fi
21685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21686 ;;
21687 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021688 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021689 hardcode_into_libs=yes
21690 dynamic_linker="$host_os dld.sl"
21691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21694 soname_spec='${libname}${release}${shared_ext}$major'
21695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21697 ;;
21698 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021699 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021700 dynamic_linker="$host_os dld.sl"
21701 shlibpath_var=SHLIB_PATH
21702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21704 soname_spec='${libname}${release}${shared_ext}$major'
21705 ;;
21706 esac
21707 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21708 postinstall_cmds='chmod 555 $lib'
21709 ;;
21710
Reid Spencera773bd52006-08-04 18:18:08 +000021711interix3*)
21712 version_type=linux
21713 need_lib_prefix=no
21714 need_version=no
21715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21716 soname_spec='${libname}${release}${shared_ext}$major'
21717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21718 shlibpath_var=LD_LIBRARY_PATH
21719 shlibpath_overrides_runpath=no
21720 hardcode_into_libs=yes
21721 ;;
21722
John Criswell47fdd832003-07-14 16:52:07 +000021723irix5* | irix6* | nonstopux*)
21724 case $host_os in
21725 nonstopux*) version_type=nonstopux ;;
21726 *)
21727 if test "$lt_cv_prog_gnu_ld" = yes; then
21728 version_type=linux
21729 else
21730 version_type=irix
21731 fi ;;
21732 esac
21733 need_lib_prefix=no
21734 need_version=no
21735 soname_spec='${libname}${release}${shared_ext}$major'
21736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21737 case $host_os in
21738 irix5* | nonstopux*)
21739 libsuff= shlibsuff=
21740 ;;
21741 *)
21742 case $LD in # libtool.m4 will add one of these switches to LD
21743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21744 libsuff= shlibsuff= libmagic=32-bit;;
21745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21746 libsuff=32 shlibsuff=N32 libmagic=N32;;
21747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21749 *) libsuff= shlibsuff= libmagic=never-match;;
21750 esac
21751 ;;
21752 esac
21753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21754 shlibpath_overrides_runpath=no
21755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21757 hardcode_into_libs=yes
21758 ;;
21759
21760# No shared lib support for Linux oldld, aout, or coff.
21761linux*oldld* | linux*aout* | linux*coff*)
21762 dynamic_linker=no
21763 ;;
21764
21765# This must be Linux ELF.
21766linux*)
21767 version_type=linux
21768 need_lib_prefix=no
21769 need_version=no
21770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 soname_spec='${libname}${release}${shared_ext}$major'
21772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21773 shlibpath_var=LD_LIBRARY_PATH
21774 shlibpath_overrides_runpath=no
21775 # This implies no fast_install, which is unacceptable.
21776 # Some rework will be needed to allow for fast_install
21777 # before this can be enabled.
21778 hardcode_into_libs=yes
21779
Reid Spencer2706f8c2004-09-19 23:53:36 +000021780 # Append ld.so.conf contents to the search path
21781 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000021782 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000021783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21784 fi
21785
John Criswell47fdd832003-07-14 16:52:07 +000021786 # We used to test for /lib/ld.so.1 and disable shared libraries on
21787 # powerpc, because MkLinux only supported shared libraries with the
21788 # GNU dynamic linker. Since this was broken with cross compilers,
21789 # most powerpc-linux boxes support dynamic linking these days and
21790 # people can always --disable-shared, the test was removed, and we
21791 # assume the GNU/Linux dynamic linker is in use.
21792 dynamic_linker='GNU/Linux ld.so'
21793 ;;
21794
Reid Spencer2706f8c2004-09-19 23:53:36 +000021795knetbsd*-gnu)
21796 version_type=linux
21797 need_lib_prefix=no
21798 need_version=no
21799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21800 soname_spec='${libname}${release}${shared_ext}$major'
21801 shlibpath_var=LD_LIBRARY_PATH
21802 shlibpath_overrides_runpath=no
21803 hardcode_into_libs=yes
21804 dynamic_linker='GNU ld.so'
21805 ;;
21806
John Criswell47fdd832003-07-14 16:52:07 +000021807netbsd*)
21808 version_type=sunos
21809 need_lib_prefix=no
21810 need_version=no
21811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21814 dynamic_linker='NetBSD (a.out) ld.so'
21815 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000021817 soname_spec='${libname}${release}${shared_ext}$major'
21818 dynamic_linker='NetBSD ld.elf_so'
21819 fi
21820 shlibpath_var=LD_LIBRARY_PATH
21821 shlibpath_overrides_runpath=yes
21822 hardcode_into_libs=yes
21823 ;;
21824
21825newsos6)
21826 version_type=linux
21827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21828 shlibpath_var=LD_LIBRARY_PATH
21829 shlibpath_overrides_runpath=yes
21830 ;;
21831
Reid Spencer2706f8c2004-09-19 23:53:36 +000021832nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000021833 version_type=linux
21834 need_lib_prefix=no
21835 need_version=no
21836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21837 soname_spec='${libname}${release}${shared_ext}$major'
21838 shlibpath_var=LD_LIBRARY_PATH
21839 shlibpath_overrides_runpath=yes
21840 ;;
21841
21842openbsd*)
21843 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000021844 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021845 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000021846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21847 case $host_os in
21848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21849 *) need_version=no ;;
21850 esac
John Criswell47fdd832003-07-14 16:52:07 +000021851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21853 shlibpath_var=LD_LIBRARY_PATH
21854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21855 case $host_os in
21856 openbsd2.[89] | openbsd2.[89].*)
21857 shlibpath_overrides_runpath=no
21858 ;;
21859 *)
21860 shlibpath_overrides_runpath=yes
21861 ;;
21862 esac
21863 else
21864 shlibpath_overrides_runpath=yes
21865 fi
21866 ;;
21867
21868os2*)
21869 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021870 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021871 need_lib_prefix=no
21872 library_names_spec='$libname${shared_ext} $libname.a'
21873 dynamic_linker='OS/2 ld.exe'
21874 shlibpath_var=LIBPATH
21875 ;;
21876
21877osf3* | osf4* | osf5*)
21878 version_type=osf
21879 need_lib_prefix=no
21880 need_version=no
21881 soname_spec='${libname}${release}${shared_ext}$major'
21882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21886 ;;
21887
John Criswell47fdd832003-07-14 16:52:07 +000021888solaris*)
21889 version_type=linux
21890 need_lib_prefix=no
21891 need_version=no
21892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21893 soname_spec='${libname}${release}${shared_ext}$major'
21894 shlibpath_var=LD_LIBRARY_PATH
21895 shlibpath_overrides_runpath=yes
21896 hardcode_into_libs=yes
21897 # ldd complains unless libraries are executable
21898 postinstall_cmds='chmod +x $lib'
21899 ;;
21900
21901sunos4*)
21902 version_type=sunos
21903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21905 shlibpath_var=LD_LIBRARY_PATH
21906 shlibpath_overrides_runpath=yes
21907 if test "$with_gnu_ld" = yes; then
21908 need_lib_prefix=no
21909 fi
21910 need_version=yes
21911 ;;
21912
Reid Spencera773bd52006-08-04 18:18:08 +000021913sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021914 version_type=linux
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 case $host_vendor in
21919 sni)
21920 shlibpath_overrides_runpath=no
21921 need_lib_prefix=no
21922 export_dynamic_flag_spec='${wl}-Blargedynsym'
21923 runpath_var=LD_RUN_PATH
21924 ;;
21925 siemens)
21926 need_lib_prefix=no
21927 ;;
21928 motorola)
21929 need_lib_prefix=no
21930 need_version=no
21931 shlibpath_overrides_runpath=no
21932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21933 ;;
21934 esac
21935 ;;
21936
21937sysv4*MP*)
21938 if test -d /usr/nec ;then
21939 version_type=linux
21940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21941 soname_spec='$libname${shared_ext}.$major'
21942 shlibpath_var=LD_LIBRARY_PATH
21943 fi
21944 ;;
21945
Reid Spencera773bd52006-08-04 18:18:08 +000021946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21947 version_type=freebsd-elf
21948 need_lib_prefix=no
21949 need_version=no
21950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21951 soname_spec='${libname}${release}${shared_ext}$major'
21952 shlibpath_var=LD_LIBRARY_PATH
21953 hardcode_into_libs=yes
21954 if test "$with_gnu_ld" = yes; then
21955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21956 shlibpath_overrides_runpath=no
21957 else
21958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21959 shlibpath_overrides_runpath=yes
21960 case $host_os in
21961 sco3.2v5*)
21962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21963 ;;
21964 esac
21965 fi
21966 sys_lib_dlsearch_path_spec='/usr/lib'
21967 ;;
21968
John Criswell47fdd832003-07-14 16:52:07 +000021969uts4*)
21970 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
21974 ;;
21975
21976*)
21977 dynamic_linker=no
21978 ;;
21979esac
Reid Spencera773bd52006-08-04 18:18:08 +000021980{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21981echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021982test "$dynamic_linker" = no && can_build_shared=no
21983
Reid Spencera773bd52006-08-04 18:18:08 +000021984variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21985if test "$GCC" = yes; then
21986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21987fi
21988
21989{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21990echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021991hardcode_action_F77=
21992if test -n "$hardcode_libdir_flag_spec_F77" || \
21993 test -n "$runpath_var_F77" || \
21994 test "X$hardcode_automatic_F77" = "Xyes" ; then
21995
21996 # We can hardcode non-existant directories.
21997 if test "$hardcode_direct_F77" != no &&
21998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21999 # have to relink, otherwise we might link with an installed library
22000 # when we should be linking with a yet-to-be-installed one
22001 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22002 test "$hardcode_minus_L_F77" != no; then
22003 # Linking always hardcodes the temporary library directory.
22004 hardcode_action_F77=relink
22005 else
22006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22007 hardcode_action_F77=immediate
22008 fi
22009else
22010 # We cannot hardcode anything, or else we can only hardcode existing
22011 # directories.
22012 hardcode_action_F77=unsupported
22013fi
Reid Spencera773bd52006-08-04 18:18:08 +000022014{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22015echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022016
22017if test "$hardcode_action_F77" = relink; then
22018 # Fast installation is not supported
22019 enable_fast_install=no
22020elif test "$shlibpath_overrides_runpath" = yes ||
22021 test "$enable_shared" = no; then
22022 # Fast installation is not necessary
22023 enable_fast_install=needless
22024fi
22025
John Criswell47fdd832003-07-14 16:52:07 +000022026
22027# The else clause should only fire when bootstrapping the
22028# libtool distribution, otherwise you forgot to ship ltmain.sh
22029# with your package, and you will get complaints that there are
22030# no rules to generate ltmain.sh.
22031if test -f "$ltmain"; then
22032 # See if we are running on zsh, and set the options which allow our commands through
22033 # without removal of \ escapes.
22034 if test -n "${ZSH_VERSION+set}" ; then
22035 setopt NO_GLOB_SUBST
22036 fi
22037 # Now quote all the things that may contain metacharacters while being
22038 # careful not to overquote the AC_SUBSTed values. We take copies of the
22039 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022041 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22044 deplibs_check_method reload_flag reload_cmds need_locks \
22045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22046 lt_cv_sys_global_symbol_to_c_name_address \
22047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22048 old_postinstall_cmds old_postuninstall_cmds \
22049 compiler_F77 \
22050 CC_F77 \
22051 LD_F77 \
22052 lt_prog_compiler_wl_F77 \
22053 lt_prog_compiler_pic_F77 \
22054 lt_prog_compiler_static_F77 \
22055 lt_prog_compiler_no_builtin_flag_F77 \
22056 export_dynamic_flag_spec_F77 \
22057 thread_safe_flag_spec_F77 \
22058 whole_archive_flag_spec_F77 \
22059 enable_shared_with_static_runtimes_F77 \
22060 old_archive_cmds_F77 \
22061 old_archive_from_new_cmds_F77 \
22062 predep_objects_F77 \
22063 postdep_objects_F77 \
22064 predeps_F77 \
22065 postdeps_F77 \
22066 compiler_lib_search_path_F77 \
22067 archive_cmds_F77 \
22068 archive_expsym_cmds_F77 \
22069 postinstall_cmds_F77 \
22070 postuninstall_cmds_F77 \
22071 old_archive_from_expsyms_cmds_F77 \
22072 allow_undefined_flag_F77 \
22073 no_undefined_flag_F77 \
22074 export_symbols_cmds_F77 \
22075 hardcode_libdir_flag_spec_F77 \
22076 hardcode_libdir_flag_spec_ld_F77 \
22077 hardcode_libdir_separator_F77 \
22078 hardcode_automatic_F77 \
22079 module_cmds_F77 \
22080 module_expsym_cmds_F77 \
22081 lt_cv_prog_compiler_c_o_F77 \
22082 exclude_expsyms_F77 \
22083 include_expsyms_F77; do
22084
22085 case $var in
22086 old_archive_cmds_F77 | \
22087 old_archive_from_new_cmds_F77 | \
22088 archive_cmds_F77 | \
22089 archive_expsym_cmds_F77 | \
22090 module_cmds_F77 | \
22091 module_expsym_cmds_F77 | \
22092 old_archive_from_expsyms_cmds_F77 | \
22093 export_symbols_cmds_F77 | \
22094 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22095 postinstall_cmds | postuninstall_cmds | \
22096 old_postinstall_cmds | old_postuninstall_cmds | \
22097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22098 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000022100 ;;
22101 *)
22102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22103 ;;
22104 esac
22105 done
22106
22107 case $lt_echo in
22108 *'\$0 --fallback-echo"')
22109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22110 ;;
22111 esac
22112
22113cfgfile="$ofile"
22114
22115 cat <<__EOF__ >> "$cfgfile"
22116# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22117
22118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22119
22120# Shell to use when invoking shell scripts.
22121SHELL=$lt_SHELL
22122
22123# Whether or not to build shared libraries.
22124build_libtool_libs=$enable_shared
22125
22126# Whether or not to build static libraries.
22127build_old_libs=$enable_static
22128
22129# Whether or not to add -lc for building shared libraries.
22130build_libtool_need_lc=$archive_cmds_need_lc_F77
22131
22132# Whether or not to disallow shared libs when runtime libs are static
22133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22134
22135# Whether or not to optimize for fast installation.
22136fast_install=$enable_fast_install
22137
22138# The host system.
22139host_alias=$host_alias
22140host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000022141host_os=$host_os
22142
22143# The build system.
22144build_alias=$build_alias
22145build=$build
22146build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000022147
22148# An echo program that does not interpret backslashes.
22149echo=$lt_echo
22150
22151# The archiver.
22152AR=$lt_AR
22153AR_FLAGS=$lt_AR_FLAGS
22154
22155# A C compiler.
22156LTCC=$lt_LTCC
22157
Reid Spencera773bd52006-08-04 18:18:08 +000022158# LTCC compiler flags.
22159LTCFLAGS=$lt_LTCFLAGS
22160
John Criswell47fdd832003-07-14 16:52:07 +000022161# A language-specific compiler.
22162CC=$lt_compiler_F77
22163
22164# Is the compiler the GNU C compiler?
22165with_gcc=$GCC_F77
22166
22167# An ERE matcher.
22168EGREP=$lt_EGREP
22169
22170# The linker used to build libraries.
22171LD=$lt_LD_F77
22172
22173# Whether we need hard or soft links.
22174LN_S=$lt_LN_S
22175
22176# A BSD-compatible nm program.
22177NM=$lt_NM
22178
22179# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000022180STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000022181
22182# Used to examine libraries when file_magic_cmd begins "file"
22183MAGIC_CMD=$MAGIC_CMD
22184
22185# Used on cygwin: DLL creation program.
22186DLLTOOL="$DLLTOOL"
22187
22188# Used on cygwin: object dumper.
22189OBJDUMP="$OBJDUMP"
22190
22191# Used on cygwin: assembler.
22192AS="$AS"
22193
22194# The name of the directory that contains temporary libtool files.
22195objdir=$objdir
22196
22197# How to create reloadable object files.
22198reload_flag=$lt_reload_flag
22199reload_cmds=$lt_reload_cmds
22200
22201# How to pass a linker flag through the compiler.
22202wl=$lt_lt_prog_compiler_wl_F77
22203
22204# Object file suffix (normally "o").
22205objext="$ac_objext"
22206
22207# Old archive suffix (normally "a").
22208libext="$libext"
22209
22210# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000022211shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000022212
22213# Executable file suffix (normally "").
22214exeext="$exeext"
22215
22216# Additional compiler flags for building library objects.
22217pic_flag=$lt_lt_prog_compiler_pic_F77
22218pic_mode=$pic_mode
22219
22220# What is the maximum length of a command?
22221max_cmd_len=$lt_cv_sys_max_cmd_len
22222
22223# Does compiler simultaneously support -c and -o options?
22224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22225
Reid Spencera773bd52006-08-04 18:18:08 +000022226# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000022227need_locks=$lt_need_locks
22228
22229# Do we need the lib prefix for modules?
22230need_lib_prefix=$need_lib_prefix
22231
22232# Do we need a version for libraries?
22233need_version=$need_version
22234
22235# Whether dlopen is supported.
22236dlopen_support=$enable_dlopen
22237
22238# Whether dlopen of programs is supported.
22239dlopen_self=$enable_dlopen_self
22240
22241# Whether dlopen of statically linked programs is supported.
22242dlopen_self_static=$enable_dlopen_self_static
22243
22244# Compiler flag to prevent dynamic linking.
22245link_static_flag=$lt_lt_prog_compiler_static_F77
22246
22247# Compiler flag to turn off builtin functions.
22248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22249
22250# Compiler flag to allow reflexive dlopens.
22251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22252
22253# Compiler flag to generate shared objects directly from archives.
22254whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22255
22256# Compiler flag to generate thread-safe objects.
22257thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22258
22259# Library versioning type.
22260version_type=$version_type
22261
22262# Format of library name prefix.
22263libname_spec=$lt_libname_spec
22264
22265# List of archive names. First name is the real one, the rest are links.
22266# The last name is the one that the linker finds with -lNAME.
22267library_names_spec=$lt_library_names_spec
22268
22269# The coded name of the library, if different from the real name.
22270soname_spec=$lt_soname_spec
22271
22272# Commands used to build and install an old-style archive.
22273RANLIB=$lt_RANLIB
22274old_archive_cmds=$lt_old_archive_cmds_F77
22275old_postinstall_cmds=$lt_old_postinstall_cmds
22276old_postuninstall_cmds=$lt_old_postuninstall_cmds
22277
22278# Create an old-style archive from a shared archive.
22279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22280
22281# Create a temporary old-style archive to link instead of a shared archive.
22282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22283
22284# Commands used to build and install a shared archive.
22285archive_cmds=$lt_archive_cmds_F77
22286archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22287postinstall_cmds=$lt_postinstall_cmds
22288postuninstall_cmds=$lt_postuninstall_cmds
22289
22290# Commands used to build a loadable module (assumed same as above if empty)
22291module_cmds=$lt_module_cmds_F77
22292module_expsym_cmds=$lt_module_expsym_cmds_F77
22293
22294# Commands to strip libraries.
22295old_striplib=$lt_old_striplib
22296striplib=$lt_striplib
22297
22298# Dependencies to place before the objects being linked to create a
22299# shared library.
22300predep_objects=$lt_predep_objects_F77
22301
22302# Dependencies to place after the objects being linked to create a
22303# shared library.
22304postdep_objects=$lt_postdep_objects_F77
22305
22306# Dependencies to place before the objects being linked to create a
22307# shared library.
22308predeps=$lt_predeps_F77
22309
22310# Dependencies to place after the objects being linked to create a
22311# shared library.
22312postdeps=$lt_postdeps_F77
22313
22314# The library search path used internally by the compiler when linking
22315# a shared library.
22316compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22317
22318# Method to check whether dependent libraries are shared objects.
22319deplibs_check_method=$lt_deplibs_check_method
22320
22321# Command to use when deplibs_check_method == file_magic.
22322file_magic_cmd=$lt_file_magic_cmd
22323
22324# Flag that allows shared libraries with undefined symbols to be built.
22325allow_undefined_flag=$lt_allow_undefined_flag_F77
22326
22327# Flag that forces no undefined symbols.
22328no_undefined_flag=$lt_no_undefined_flag_F77
22329
22330# Commands used to finish a libtool library installation in a directory.
22331finish_cmds=$lt_finish_cmds
22332
22333# Same as above, but a single script fragment to be evaled but not shown.
22334finish_eval=$lt_finish_eval
22335
22336# Take the output of nm and produce a listing of raw symbols and C names.
22337global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22338
22339# Transform the output of nm in a proper C declaration
22340global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22341
22342# Transform the output of nm in a C name address pair
22343global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22344
22345# This is the shared library runtime path variable.
22346runpath_var=$runpath_var
22347
22348# This is the shared library path variable.
22349shlibpath_var=$shlibpath_var
22350
22351# Is shlibpath searched before the hard-coded library search path?
22352shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22353
22354# How to hardcode a shared library path into an executable.
22355hardcode_action=$hardcode_action_F77
22356
22357# Whether we should hardcode library paths into libraries.
22358hardcode_into_libs=$hardcode_into_libs
22359
22360# Flag to hardcode \$libdir into a binary during linking.
22361# This must work even if \$libdir does not exist.
22362hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22363
22364# If ld is used when linking, flag to hardcode \$libdir into
22365# a binary during linking. This must work even if \$libdir does
22366# not exist.
22367hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22368
22369# Whether we need a single -rpath flag with a separated argument.
22370hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22371
22372# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22373# resulting binary.
22374hardcode_direct=$hardcode_direct_F77
22375
22376# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22377# resulting binary.
22378hardcode_minus_L=$hardcode_minus_L_F77
22379
22380# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22381# the resulting binary.
22382hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22383
22384# Set to yes if building a shared library automatically hardcodes DIR into the library
22385# and all subsequent libraries and executables linked against it.
22386hardcode_automatic=$hardcode_automatic_F77
22387
22388# Variables whose values should be saved in libtool wrapper scripts and
22389# restored at relink time.
22390variables_saved_for_relink="$variables_saved_for_relink"
22391
22392# Whether libtool must link a program against all its dependency libraries.
22393link_all_deplibs=$link_all_deplibs_F77
22394
22395# Compile-time system search path for libraries
22396sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22397
22398# Run-time system search path for libraries
22399sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22400
22401# Fix the shell variable \$srcfile for the compiler.
22402fix_srcfile_path="$fix_srcfile_path_F77"
22403
22404# Set to yes if exported symbols are required.
22405always_export_symbols=$always_export_symbols_F77
22406
22407# The commands to list exported symbols.
22408export_symbols_cmds=$lt_export_symbols_cmds_F77
22409
22410# The commands to extract the exported symbol list from a shared archive.
22411extract_expsyms_cmds=$lt_extract_expsyms_cmds
22412
22413# Symbols that should not be listed in the preloaded symbols.
22414exclude_expsyms=$lt_exclude_expsyms_F77
22415
22416# Symbols that must always be exported.
22417include_expsyms=$lt_include_expsyms_F77
22418
22419# ### END LIBTOOL TAG CONFIG: $tagname
22420
22421__EOF__
22422
22423
22424else
22425 # If there is no Makefile yet, we rely on a make rule to execute
22426 # `config.status --recheck' to rerun these tests and create the
22427 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22429 if test -f "$ltmain_in"; then
22430 test -f Makefile && make "$ltmain"
22431 fi
John Criswell47fdd832003-07-14 16:52:07 +000022432fi
22433
22434
22435ac_ext=c
22436ac_cpp='$CPP $CPPFLAGS'
22437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439ac_compiler_gnu=$ac_cv_c_compiler_gnu
22440
22441CC="$lt_save_CC"
22442
22443 else
22444 tagname=""
22445 fi
22446 ;;
22447
22448 GCJ)
22449 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022450 ac_ext=c
22451ac_cpp='$CPP $CPPFLAGS'
22452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22454ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000022455
22456
22457# Source file extension for Java test sources.
22458ac_ext=java
22459
22460# Object file extension for compiled Java test sources.
22461objext=o
22462objext_GCJ=$objext
22463
22464# Code to be used in simple compile tests
22465lt_simple_compile_test_code="class foo {}\n"
22466
22467# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000022468lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000022469
22470# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22471
22472# If no C compiler was specified, use CC.
22473LTCC=${LTCC-"$CC"}
22474
Reid Spencera773bd52006-08-04 18:18:08 +000022475# If no C compiler flags were specified, use CFLAGS.
22476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22477
John Criswell47fdd832003-07-14 16:52:07 +000022478# Allow CC to be a program name with arguments.
22479compiler=$CC
22480
22481
Reid Spencera773bd52006-08-04 18:18:08 +000022482# save warnings/boilerplate of simple test code
22483ac_outfile=conftest.$ac_objext
22484printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22486_lt_compiler_boilerplate=`cat conftest.err`
22487$rm conftest*
22488
22489ac_outfile=conftest.$ac_objext
22490printf "$lt_simple_link_test_code" >conftest.$ac_ext
22491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22492_lt_linker_boilerplate=`cat conftest.err`
22493$rm conftest*
22494
22495
John Criswell47fdd832003-07-14 16:52:07 +000022496# Allow CC to be a program name with arguments.
22497lt_save_CC="$CC"
22498CC=${GCJ-"gcj"}
22499compiler=$CC
22500compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000022501for cc_temp in $compiler""; do
22502 case $cc_temp in
22503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22505 \-*) ;;
22506 *) break;;
22507 esac
22508done
22509cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22510
John Criswell47fdd832003-07-14 16:52:07 +000022511
22512# GCJ did not exist at the time GCC didn't implicitly link libc in.
22513archive_cmds_need_lc_GCJ=no
22514
Reid Spencera773bd52006-08-04 18:18:08 +000022515old_archive_cmds_GCJ=$old_archive_cmds
22516
John Criswell47fdd832003-07-14 16:52:07 +000022517
22518lt_prog_compiler_no_builtin_flag_GCJ=
22519
22520if test "$GCC" = yes; then
22521 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22522
Reid Spencer2706f8c2004-09-19 23:53:36 +000022523
Reid Spencera773bd52006-08-04 18:18:08 +000022524{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22525echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022526if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528else
22529 lt_cv_prog_compiler_rtti_exceptions=no
22530 ac_outfile=conftest.$ac_objext
22531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22532 lt_compiler_flag="-fno-rtti -fno-exceptions"
22533 # Insert the option either (1) after the last *FLAGS variable, or
22534 # (2) before a word containing "conftest.", or (3) at the end.
22535 # Note that $ac_compile itself does not contain backslashes and begins
22536 # with a dollar sign (not a hyphen), so the echo should work correctly.
22537 # The option is referenced via a variable to avoid confusing sed.
22538 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22541 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000022542 (eval echo "\"\$as_me:22542: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022543 (eval "$lt_compile" 2>conftest.err)
22544 ac_status=$?
22545 cat conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000022546 echo "$as_me:22546: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022547 if (exit $ac_status) && test -s "$ac_outfile"; then
22548 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022549 # So say no if there are warnings other than the usual output.
22550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022553 lt_cv_prog_compiler_rtti_exceptions=yes
22554 fi
22555 fi
22556 $rm conftest*
22557
22558fi
Reid Spencera773bd52006-08-04 18:18:08 +000022559{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22560echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022561
22562if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22563 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22564else
22565 :
22566fi
22567
22568fi
22569
22570lt_prog_compiler_wl_GCJ=
22571lt_prog_compiler_pic_GCJ=
22572lt_prog_compiler_static_GCJ=
22573
Reid Spencera773bd52006-08-04 18:18:08 +000022574{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22575echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022576
22577 if test "$GCC" = yes; then
22578 lt_prog_compiler_wl_GCJ='-Wl,'
22579 lt_prog_compiler_static_GCJ='-static'
22580
22581 case $host_os in
22582 aix*)
22583 # All AIX code is PIC.
22584 if test "$host_cpu" = ia64; then
22585 # AIX 5 now supports IA64 processor
22586 lt_prog_compiler_static_GCJ='-Bstatic'
22587 fi
22588 ;;
22589
22590 amigaos*)
22591 # FIXME: we need at least 68020 code to build shared libraries, but
22592 # adding the `-m68020' flag to GCC prevents building anything better,
22593 # like `-m68040'.
22594 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22595 ;;
22596
22597 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22598 # PIC is the default for these OSes.
22599 ;;
22600
22601 mingw* | pw32* | os2*)
22602 # This hack is so that the source file can tell whether it is being
22603 # built for inclusion in a dll (and should export symbols for example).
22604 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22605 ;;
22606
22607 darwin* | rhapsody*)
22608 # PIC is the default on this platform
22609 # Common symbols not allowed in MH_DYLIB files
22610 lt_prog_compiler_pic_GCJ='-fno-common'
22611 ;;
22612
Reid Spencera773bd52006-08-04 18:18:08 +000022613 interix3*)
22614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22615 # Instead, we relocate shared libraries at runtime.
22616 ;;
22617
John Criswell47fdd832003-07-14 16:52:07 +000022618 msdosdjgpp*)
22619 # Just because we use GCC doesn't mean we suddenly get shared libraries
22620 # on systems that don't support them.
22621 lt_prog_compiler_can_build_shared_GCJ=no
22622 enable_shared=no
22623 ;;
22624
22625 sysv4*MP*)
22626 if test -d /usr/nec; then
22627 lt_prog_compiler_pic_GCJ=-Kconform_pic
22628 fi
22629 ;;
22630
22631 hpux*)
22632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22633 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022634 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022635 hppa*64*|ia64*)
22636 # +Z the default
22637 ;;
22638 *)
22639 lt_prog_compiler_pic_GCJ='-fPIC'
22640 ;;
22641 esac
22642 ;;
22643
22644 *)
22645 lt_prog_compiler_pic_GCJ='-fPIC'
22646 ;;
22647 esac
22648 else
22649 # PORTME Check for flag to pass linker flags through the system compiler.
22650 case $host_os in
22651 aix*)
22652 lt_prog_compiler_wl_GCJ='-Wl,'
22653 if test "$host_cpu" = ia64; then
22654 # AIX 5 now supports IA64 processor
22655 lt_prog_compiler_static_GCJ='-Bstatic'
22656 else
22657 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22658 fi
22659 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022660 darwin*)
22661 # PIC is the default on this platform
22662 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000022663 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664 xlc*)
22665 lt_prog_compiler_pic_GCJ='-qnocommon'
22666 lt_prog_compiler_wl_GCJ='-Wl,'
22667 ;;
22668 esac
22669 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022670
22671 mingw* | pw32* | os2*)
22672 # This hack is so that the source file can tell whether it is being
22673 # built for inclusion in a dll (and should export symbols for example).
22674 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22675 ;;
22676
22677 hpux9* | hpux10* | hpux11*)
22678 lt_prog_compiler_wl_GCJ='-Wl,'
22679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22680 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022681 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022682 hppa*64*|ia64*)
22683 # +Z the default
22684 ;;
22685 *)
22686 lt_prog_compiler_pic_GCJ='+Z'
22687 ;;
22688 esac
22689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22690 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22691 ;;
22692
22693 irix5* | irix6* | nonstopux*)
22694 lt_prog_compiler_wl_GCJ='-Wl,'
22695 # PIC (with -KPIC) is the default.
22696 lt_prog_compiler_static_GCJ='-non_shared'
22697 ;;
22698
22699 newsos6)
22700 lt_prog_compiler_pic_GCJ='-KPIC'
22701 lt_prog_compiler_static_GCJ='-Bstatic'
22702 ;;
22703
22704 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000022705 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000022707 lt_prog_compiler_wl_GCJ='-Wl,'
22708 lt_prog_compiler_pic_GCJ='-KPIC'
22709 lt_prog_compiler_static_GCJ='-static'
22710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022711 pgcc* | pgf77* | pgf90* | pgf95*)
22712 # Portland Group compilers (*not* the Pentium gcc compiler,
22713 # which looks to be a dead project)
22714 lt_prog_compiler_wl_GCJ='-Wl,'
22715 lt_prog_compiler_pic_GCJ='-fpic'
22716 lt_prog_compiler_static_GCJ='-Bstatic'
22717 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022718 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000022719 lt_prog_compiler_wl_GCJ='-Wl,'
22720 # All Alpha code is PIC.
22721 lt_prog_compiler_static_GCJ='-non_shared'
22722 ;;
22723 esac
22724 ;;
22725
22726 osf3* | osf4* | osf5*)
22727 lt_prog_compiler_wl_GCJ='-Wl,'
22728 # All OSF/1 code is PIC.
22729 lt_prog_compiler_static_GCJ='-non_shared'
22730 ;;
22731
John Criswell47fdd832003-07-14 16:52:07 +000022732 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022733 lt_prog_compiler_pic_GCJ='-KPIC'
22734 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000022735 case $cc_basename in
22736 f77* | f90* | f95*)
22737 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22738 *)
22739 lt_prog_compiler_wl_GCJ='-Wl,';;
22740 esac
John Criswell47fdd832003-07-14 16:52:07 +000022741 ;;
22742
22743 sunos4*)
22744 lt_prog_compiler_wl_GCJ='-Qoption ld '
22745 lt_prog_compiler_pic_GCJ='-PIC'
22746 lt_prog_compiler_static_GCJ='-Bstatic'
22747 ;;
22748
Reid Spencera773bd52006-08-04 18:18:08 +000022749 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022750 lt_prog_compiler_wl_GCJ='-Wl,'
22751 lt_prog_compiler_pic_GCJ='-KPIC'
22752 lt_prog_compiler_static_GCJ='-Bstatic'
22753 ;;
22754
22755 sysv4*MP*)
22756 if test -d /usr/nec ;then
22757 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22758 lt_prog_compiler_static_GCJ='-Bstatic'
22759 fi
22760 ;;
22761
Reid Spencera773bd52006-08-04 18:18:08 +000022762 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22763 lt_prog_compiler_wl_GCJ='-Wl,'
22764 lt_prog_compiler_pic_GCJ='-KPIC'
22765 lt_prog_compiler_static_GCJ='-Bstatic'
22766 ;;
22767
22768 unicos*)
22769 lt_prog_compiler_wl_GCJ='-Wl,'
22770 lt_prog_compiler_can_build_shared_GCJ=no
22771 ;;
22772
John Criswell47fdd832003-07-14 16:52:07 +000022773 uts4*)
22774 lt_prog_compiler_pic_GCJ='-pic'
22775 lt_prog_compiler_static_GCJ='-Bstatic'
22776 ;;
22777
22778 *)
22779 lt_prog_compiler_can_build_shared_GCJ=no
22780 ;;
22781 esac
22782 fi
22783
Reid Spencera773bd52006-08-04 18:18:08 +000022784{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22785echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022786
22787#
22788# Check to make sure the PIC flag actually works.
22789#
22790if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022791
Reid Spencera773bd52006-08-04 18:18:08 +000022792{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22793echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022794if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22796else
22797 lt_prog_compiler_pic_works_GCJ=no
22798 ac_outfile=conftest.$ac_objext
22799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22800 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22801 # Insert the option either (1) after the last *FLAGS variable, or
22802 # (2) before a word containing "conftest.", or (3) at the end.
22803 # Note that $ac_compile itself does not contain backslashes and begins
22804 # with a dollar sign (not a hyphen), so the echo should work correctly.
22805 # The option is referenced via a variable to avoid confusing sed.
22806 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22809 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000022810 (eval echo "\"\$as_me:22810: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022811 (eval "$lt_compile" 2>conftest.err)
22812 ac_status=$?
22813 cat conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000022814 echo "$as_me:22814: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022815 if (exit $ac_status) && test -s "$ac_outfile"; then
22816 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022817 # So say no if there are warnings other than the usual output.
22818 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022821 lt_prog_compiler_pic_works_GCJ=yes
22822 fi
22823 fi
22824 $rm conftest*
22825
22826fi
Reid Spencera773bd52006-08-04 18:18:08 +000022827{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22828echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022829
22830if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22831 case $lt_prog_compiler_pic_GCJ in
22832 "" | " "*) ;;
22833 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22834 esac
22835else
22836 lt_prog_compiler_pic_GCJ=
22837 lt_prog_compiler_can_build_shared_GCJ=no
22838fi
22839
22840fi
Reid Spencera773bd52006-08-04 18:18:08 +000022841case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000022842 # For platforms which do not support PIC, -DPIC is meaningless:
22843 *djgpp*)
22844 lt_prog_compiler_pic_GCJ=
22845 ;;
22846 *)
22847 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22848 ;;
22849esac
22850
Reid Spencera773bd52006-08-04 18:18:08 +000022851#
22852# Check to make sure the static flag actually works.
22853#
22854wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22855{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22856echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22857if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22859else
22860 lt_prog_compiler_static_works_GCJ=no
22861 save_LDFLAGS="$LDFLAGS"
22862 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22863 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22864 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22865 # The linker can only warn and ignore the option if not recognized
22866 # So say no if there are warnings
22867 if test -s conftest.err; then
22868 # Append any errors to the config.log.
22869 cat conftest.err 1>&5
22870 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22872 if diff conftest.exp conftest.er2 >/dev/null; then
22873 lt_prog_compiler_static_works_GCJ=yes
22874 fi
22875 else
22876 lt_prog_compiler_static_works_GCJ=yes
22877 fi
22878 fi
22879 $rm conftest*
22880 LDFLAGS="$save_LDFLAGS"
22881
22882fi
22883{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22884echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22885
22886if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22887 :
22888else
22889 lt_prog_compiler_static_GCJ=
22890fi
22891
22892
22893{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22894echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022895if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22897else
22898 lt_cv_prog_compiler_c_o_GCJ=no
22899 $rm -r conftest 2>/dev/null
22900 mkdir conftest
22901 cd conftest
22902 mkdir out
22903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22904
John Criswell47fdd832003-07-14 16:52:07 +000022905 lt_compiler_flag="-o out/conftest2.$ac_objext"
22906 # Insert the option either (1) after the last *FLAGS variable, or
22907 # (2) before a word containing "conftest.", or (3) at the end.
22908 # Note that $ac_compile itself does not contain backslashes and begins
22909 # with a dollar sign (not a hyphen), so the echo should work correctly.
22910 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22913 -e 's:$: $lt_compiler_flag:'`
Scott Michel96dcd2b2007-12-05 21:24:02 +000022914 (eval echo "\"\$as_me:22914: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022915 (eval "$lt_compile" 2>out/conftest.err)
22916 ac_status=$?
22917 cat out/conftest.err >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000022918 echo "$as_me:22918: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22920 then
22921 # The compiler can only warn and ignore the option if not recognized
22922 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000022923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022926 lt_cv_prog_compiler_c_o_GCJ=yes
22927 fi
22928 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022929 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022930 $rm conftest*
22931 # SGI C++ compiler will create directory out/ii_files/ for
22932 # template instantiation
22933 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22934 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022935 cd ..
22936 rmdir conftest
22937 $rm conftest*
22938
22939fi
Reid Spencera773bd52006-08-04 18:18:08 +000022940{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22941echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022942
22943
22944hard_links="nottested"
22945if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22946 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022947 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22948echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022949 hard_links=yes
22950 $rm conftest*
22951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22952 touch conftest.a
22953 ln conftest.a conftest.b 2>&5 || hard_links=no
22954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022955 { echo "$as_me:$LINENO: result: $hard_links" >&5
22956echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022957 if test "$hard_links" = no; then
22958 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22959echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22960 need_locks=warn
22961 fi
22962else
22963 need_locks=no
22964fi
22965
Reid Spencera773bd52006-08-04 18:18:08 +000022966{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22967echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022968
22969 runpath_var=
22970 allow_undefined_flag_GCJ=
22971 enable_shared_with_static_runtimes_GCJ=no
22972 archive_cmds_GCJ=
22973 archive_expsym_cmds_GCJ=
22974 old_archive_From_new_cmds_GCJ=
22975 old_archive_from_expsyms_cmds_GCJ=
22976 export_dynamic_flag_spec_GCJ=
22977 whole_archive_flag_spec_GCJ=
22978 thread_safe_flag_spec_GCJ=
22979 hardcode_libdir_flag_spec_GCJ=
22980 hardcode_libdir_flag_spec_ld_GCJ=
22981 hardcode_libdir_separator_GCJ=
22982 hardcode_direct_GCJ=no
22983 hardcode_minus_L_GCJ=no
22984 hardcode_shlibpath_var_GCJ=unsupported
22985 link_all_deplibs_GCJ=unknown
22986 hardcode_automatic_GCJ=no
22987 module_cmds_GCJ=
22988 module_expsym_cmds_GCJ=
22989 always_export_symbols_GCJ=no
22990 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22991 # include_expsyms should be a list of space-separated symbols to be *always*
22992 # included in the symbol list
22993 include_expsyms_GCJ=
22994 # exclude_expsyms can be an extended regexp of symbols to exclude
22995 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22997 # as well as any symbol that contains `d'.
22998 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23000 # platforms (ab)use it in PIC code, but their linkers get confused if
23001 # the symbol is explicitly referenced. Since portable code cannot
23002 # rely on this symbol name, it's probably fine to never include it in
23003 # preloaded symbol tables.
23004 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023005 # Just being paranoid about ensuring that cc_basename is set.
23006 for cc_temp in $compiler""; do
23007 case $cc_temp in
23008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23010 \-*) ;;
23011 *) break;;
23012 esac
23013done
23014cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023015
23016 case $host_os in
23017 cygwin* | mingw* | pw32*)
23018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23019 # When not using gcc, we currently assume that we are using
23020 # Microsoft Visual C++.
23021 if test "$GCC" != yes; then
23022 with_gnu_ld=no
23023 fi
23024 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023025 interix*)
23026 # we just hope/assume this is gcc and not c89 (= MSVC++)
23027 with_gnu_ld=yes
23028 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023029 openbsd*)
23030 with_gnu_ld=no
23031 ;;
23032 esac
23033
23034 ld_shlibs_GCJ=yes
23035 if test "$with_gnu_ld" = yes; then
23036 # If archive_cmds runs LD, not CC, wlarc should be empty
23037 wlarc='${wl}'
23038
Reid Spencera773bd52006-08-04 18:18:08 +000023039 # Set some defaults for GNU ld with shared library support. These
23040 # are reset later if shared libraries are not supported. Putting them
23041 # here allows them to be overridden if necessary.
23042 runpath_var=LD_RUN_PATH
23043 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23044 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23045 # ancient GNU ld didn't support --whole-archive et. al.
23046 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23047 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23048 else
23049 whole_archive_flag_spec_GCJ=
23050 fi
23051 supports_anon_versioning=no
23052 case `$LD -v 2>/dev/null` in
23053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23056 *\ 2.11.*) ;; # other 2.11 versions
23057 *) supports_anon_versioning=yes ;;
23058 esac
23059
John Criswell47fdd832003-07-14 16:52:07 +000023060 # See if GNU ld supports shared libraries.
23061 case $host_os in
23062 aix3* | aix4* | aix5*)
23063 # On AIX/PPC, the GNU linker is very broken
23064 if test "$host_cpu" != ia64; then
23065 ld_shlibs_GCJ=no
23066 cat <<EOF 1>&2
23067
23068*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23069*** to be unable to reliably create shared libraries on AIX.
23070*** Therefore, libtool is disabling shared libraries support. If you
23071*** really care for shared libraries, you may want to modify your PATH
23072*** so that a non-GNU linker is found, and then restart.
23073
23074EOF
23075 fi
23076 ;;
23077
23078 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023079 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)'
John Criswell47fdd832003-07-14 16:52:07 +000023080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23081 hardcode_minus_L_GCJ=yes
23082
23083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23084 # that the semantics of dynamic libraries on AmigaOS, at least up
23085 # to version 4, is to share data among multiple programs linked
23086 # with the same dynamic library. Since this doesn't match the
23087 # behavior of shared libraries on other platforms, we can't use
23088 # them.
23089 ld_shlibs_GCJ=no
23090 ;;
23091
23092 beos*)
23093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23094 allow_undefined_flag_GCJ=unsupported
23095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23096 # support --undefined. This deserves some investigation. FIXME
23097 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23098 else
23099 ld_shlibs_GCJ=no
23100 fi
23101 ;;
23102
23103 cygwin* | mingw* | pw32*)
23104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23105 # as there is no search path for DLLs.
23106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23107 allow_undefined_flag_GCJ=unsupported
23108 always_export_symbols_GCJ=no
23109 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023110 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000023111
23112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000023113 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000023114 # If the export-symbols file already is a .def file (1st line
23115 # is EXPORTS), use it as is; otherwise, prepend...
23116 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23117 cp $export_symbols $output_objdir/$soname.def;
23118 else
23119 echo EXPORTS > $output_objdir/$soname.def;
23120 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000023121 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000023122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000023123 else
Reid Spencera773bd52006-08-04 18:18:08 +000023124 ld_shlibs_GCJ=no
23125 fi
23126 ;;
23127
23128 interix3*)
23129 hardcode_direct_GCJ=no
23130 hardcode_shlibpath_var_GCJ=no
23131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23132 export_dynamic_flag_spec_GCJ='${wl}-E'
23133 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23134 # Instead, shared libraries are loaded at an image base (0x10000000 by
23135 # default) and relocated if they conflict, which is a slow very memory
23136 # consuming and fragmenting process. To avoid this, we pick a random,
23137 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23138 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23139 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'
23140 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'
23141 ;;
23142
23143 linux*)
23144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23145 tmp_addflag=
23146 case $cc_basename,$host_cpu in
23147 pgcc*) # Portland Group C compiler
23148 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'
23149 tmp_addflag=' $pic_flag'
23150 ;;
23151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23152 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'
23153 tmp_addflag=' $pic_flag -Mnomain' ;;
23154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23155 tmp_addflag=' -i_dynamic' ;;
23156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23157 tmp_addflag=' -i_dynamic -nofor_main' ;;
23158 ifc* | ifort*) # Intel Fortran compiler
23159 tmp_addflag=' -nofor_main' ;;
23160 esac
23161 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23162
23163 if test $supports_anon_versioning = yes; then
23164 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23166 $echo "local: *; };" >> $output_objdir/$libname.ver~
23167 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23168 fi
23169 else
23170 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023171 fi
23172 ;;
23173
23174 netbsd*)
23175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23176 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23177 wlarc=
23178 else
23179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23181 fi
23182 ;;
23183
Reid Spencera773bd52006-08-04 18:18:08 +000023184 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23186 ld_shlibs_GCJ=no
23187 cat <<EOF 1>&2
23188
23189*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23190*** create shared libraries on Solaris systems. Therefore, libtool
23191*** is disabling shared libraries support. We urge you to upgrade GNU
23192*** binutils to release 2.9.1 or newer. Another option is to modify
23193*** your PATH or compiler configuration so that the native linker is
23194*** used, and then restart.
23195
23196EOF
23197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23200 else
23201 ld_shlibs_GCJ=no
23202 fi
23203 ;;
23204
Reid Spencera773bd52006-08-04 18:18:08 +000023205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23206 case `$LD -v 2>&1` in
23207 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23208 ld_shlibs_GCJ=no
23209 cat <<_LT_EOF 1>&2
23210
23211*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23212*** reliably create shared libraries on SCO systems. Therefore, libtool
23213*** is disabling shared libraries support. We urge you to upgrade GNU
23214*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23215*** your PATH or compiler configuration so that the native linker is
23216*** used, and then restart.
23217
23218_LT_EOF
23219 ;;
23220 *)
23221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23222 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23225 else
23226 ld_shlibs_GCJ=no
23227 fi
23228 ;;
23229 esac
23230 ;;
23231
John Criswell47fdd832003-07-14 16:52:07 +000023232 sunos4*)
23233 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23234 wlarc=
23235 hardcode_direct_GCJ=yes
23236 hardcode_shlibpath_var_GCJ=no
23237 ;;
23238
23239 *)
23240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23241 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23242 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23243 else
23244 ld_shlibs_GCJ=no
23245 fi
23246 ;;
23247 esac
23248
Reid Spencera773bd52006-08-04 18:18:08 +000023249 if test "$ld_shlibs_GCJ" = no; then
23250 runpath_var=
23251 hardcode_libdir_flag_spec_GCJ=
23252 export_dynamic_flag_spec_GCJ=
23253 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000023254 fi
23255 else
23256 # PORTME fill in a description of your system's linker (not GNU ld)
23257 case $host_os in
23258 aix3*)
23259 allow_undefined_flag_GCJ=unsupported
23260 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000023261 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'
John Criswell47fdd832003-07-14 16:52:07 +000023262 # Note: this linker hardcodes the directories in LIBPATH if there
23263 # are no directories specified by -L.
23264 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023265 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000023266 # Neither direct hardcoding nor static linking is supported with a
23267 # broken collect2.
23268 hardcode_direct_GCJ=unsupported
23269 fi
23270 ;;
23271
23272 aix4* | aix5*)
23273 if test "$host_cpu" = ia64; then
23274 # On IA64, the linker does run time linking by default, so we don't
23275 # have to do anything special.
23276 aix_use_runtimelinking=no
23277 exp_sym_flag='-Bexport'
23278 no_entry_flag=""
23279 else
23280 # If we're using GNU nm, then we don't want the "-C" option.
23281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23282 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23283 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'
23284 else
23285 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'
23286 fi
23287 aix_use_runtimelinking=no
23288
23289 # Test if we are trying to use run time linking or normal
23290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23291 # need to do runtime linking.
23292 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23293 for ld_flag in $LDFLAGS; do
23294 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23295 aix_use_runtimelinking=yes
23296 break
23297 fi
23298 done
Reid Spencera773bd52006-08-04 18:18:08 +000023299 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023300 esac
23301
23302 exp_sym_flag='-bexport'
23303 no_entry_flag='-bnoentry'
23304 fi
23305
23306 # When large executables or shared objects are built, AIX ld can
23307 # have problems creating the table of contents. If linking a library
23308 # or program results in "error TOC overflow" add -mminimal-toc to
23309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23311
23312 archive_cmds_GCJ=''
23313 hardcode_direct_GCJ=yes
23314 hardcode_libdir_separator_GCJ=':'
23315 link_all_deplibs_GCJ=yes
23316
23317 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023318 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000023319 # We only want to do this on AIX 4.2 and lower, the check
23320 # below for broken collect2 doesn't work under 4.3+
23321 collect2name=`${CC} -print-prog-name=collect2`
23322 if test -f "$collect2name" && \
23323 strings "$collect2name" | grep resolve_lib_name >/dev/null
23324 then
23325 # We have reworked collect2
23326 hardcode_direct_GCJ=yes
23327 else
23328 # We have old collect2
23329 hardcode_direct_GCJ=unsupported
23330 # It fails to find uninstalled libraries when the uninstalled
23331 # path is not listed in the libpath. Setting hardcode_minus_L
23332 # to unsupported forces relinking
23333 hardcode_minus_L_GCJ=yes
23334 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23335 hardcode_libdir_separator_GCJ=
23336 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023337 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023338 esac
23339 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000023340 if test "$aix_use_runtimelinking" = yes; then
23341 shared_flag="$shared_flag "'${wl}-G'
23342 fi
John Criswell47fdd832003-07-14 16:52:07 +000023343 else
23344 # not using gcc
23345 if test "$host_cpu" = ia64; then
23346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23347 # chokes on -Wl,-G. The following line is correct:
23348 shared_flag='-G'
23349 else
Reid Spencera773bd52006-08-04 18:18:08 +000023350 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000023351 shared_flag='${wl}-G'
23352 else
23353 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000023354 fi
John Criswell47fdd832003-07-14 16:52:07 +000023355 fi
23356 fi
23357
23358 # It seems that -bexpall does not export symbols beginning with
23359 # underscore (_), so it is better to generate a list of symbols to export.
23360 always_export_symbols_GCJ=yes
23361 if test "$aix_use_runtimelinking" = yes; then
23362 # Warning - without using the other runtime loading flags (-brtl),
23363 # -berok will link without error, but may produce a broken library.
23364 allow_undefined_flag_GCJ='-berok'
23365 # Determine the default libpath from the value encoded in an empty executable.
23366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023367/* confdefs.h. */
23368_ACEOF
23369cat confdefs.h >>conftest.$ac_ext
23370cat >>conftest.$ac_ext <<_ACEOF
23371/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023372
John Criswell47fdd832003-07-14 16:52:07 +000023373int
23374main ()
23375{
23376
23377 ;
23378 return 0;
23379}
23380_ACEOF
23381rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023382if { (ac_try="$ac_link"
23383case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386esac
23387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023394 (exit $ac_status); } && {
23395 test -z "$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 } && test -s conftest$ac_exeext &&
23398 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023399
23400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23401}'`
23402# Check for a 64-bit object if we didn't find anything.
23403if 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; }
23404}'`; fi
23405else
23406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023407sed 's/^/| /' conftest.$ac_ext >&5
23408
Reid Spencera773bd52006-08-04 18:18:08 +000023409
John Criswell47fdd832003-07-14 16:52:07 +000023410fi
Reid Spencera773bd52006-08-04 18:18:08 +000023411
Scott Michel96dcd2b2007-12-05 21:24:02 +000023412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023413 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23415
23416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000023417 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"
John Criswell47fdd832003-07-14 16:52:07 +000023418 else
23419 if test "$host_cpu" = ia64; then
23420 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23421 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000023422 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"
John Criswell47fdd832003-07-14 16:52:07 +000023423 else
23424 # Determine the default libpath from the value encoded in an empty executable.
23425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023426/* confdefs.h. */
23427_ACEOF
23428cat confdefs.h >>conftest.$ac_ext
23429cat >>conftest.$ac_ext <<_ACEOF
23430/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023431
John Criswell47fdd832003-07-14 16:52:07 +000023432int
23433main ()
23434{
23435
23436 ;
23437 return 0;
23438}
23439_ACEOF
23440rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023441if { (ac_try="$ac_link"
23442case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445esac
23446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023453 (exit $ac_status); } && {
23454 test -z "$ac_c_werror_flag" ||
23455 test ! -s conftest.err
23456 } && test -s conftest$ac_exeext &&
23457 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023458
23459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23460}'`
23461# Check for a 64-bit object if we didn't find anything.
23462if 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; }
23463}'`; fi
23464else
23465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023466sed 's/^/| /' conftest.$ac_ext >&5
23467
Reid Spencera773bd52006-08-04 18:18:08 +000023468
John Criswell47fdd832003-07-14 16:52:07 +000023469fi
Reid Spencera773bd52006-08-04 18:18:08 +000023470
Scott Michel96dcd2b2007-12-05 21:24:02 +000023471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023472 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23474
23475 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23476 # Warning - without using the other run time loading flags,
23477 # -berok will link without error, but may produce a broken library.
23478 no_undefined_flag_GCJ=' ${wl}-bernotok'
23479 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000023480 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000023481 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000023482 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023483 # This is similar to how AIX traditionally builds its shared libraries.
23484 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'
John Criswell47fdd832003-07-14 16:52:07 +000023485 fi
23486 fi
23487 ;;
23488
23489 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023490 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)'
John Criswell47fdd832003-07-14 16:52:07 +000023491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23492 hardcode_minus_L_GCJ=yes
23493 # see comment about different semantics on the GNU ld section
23494 ld_shlibs_GCJ=no
23495 ;;
23496
Reid Spencer2706f8c2004-09-19 23:53:36 +000023497 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023498 export_dynamic_flag_spec_GCJ=-rdynamic
23499 ;;
23500
23501 cygwin* | mingw* | pw32*)
23502 # When not using gcc, we currently assume that we are using
23503 # Microsoft Visual C++.
23504 # hardcode_libdir_flag_spec is actually meaningless, as there is
23505 # no search path for DLLs.
23506 hardcode_libdir_flag_spec_GCJ=' '
23507 allow_undefined_flag_GCJ=unsupported
23508 # Tell ltmain to make .lib files, not .a files.
23509 libext=lib
23510 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023511 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023512 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000023513 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000023514 # The linker will automatically build a .lib file if we build a DLL.
23515 old_archive_From_new_cmds_GCJ='true'
23516 # FIXME: Should let the user specify the lib program.
23517 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000023518 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000023519 enable_shared_with_static_runtimes_GCJ=yes
23520 ;;
23521
23522 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000023523 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023524 rhapsody* | darwin1.[012])
23525 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23526 ;;
23527 *) # Darwin 1.3 on
23528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23529 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23530 else
23531 case ${MACOSX_DEPLOYMENT_TARGET} in
23532 10.[012])
23533 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23534 ;;
23535 10.*)
23536 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23537 ;;
23538 esac
23539 fi
23540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023541 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000023542 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023543 hardcode_direct_GCJ=no
23544 hardcode_automatic_GCJ=yes
23545 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000023546 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000023547 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000023548 if test "$GCC" = yes ; then
23549 output_verbose_link_cmd='echo'
23550 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23551 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000023553 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}'
23554 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023555 else
Reid Spencera773bd52006-08-04 18:18:08 +000023556 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023557 xlc*)
23558 output_verbose_link_cmd='echo'
23559 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23560 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000023562 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}'
23563 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023564 ;;
23565 *)
23566 ld_shlibs_GCJ=no
23567 ;;
23568 esac
John Criswell47fdd832003-07-14 16:52:07 +000023569 fi
23570 ;;
23571
23572 dgux*)
23573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23575 hardcode_shlibpath_var_GCJ=no
23576 ;;
23577
23578 freebsd1*)
23579 ld_shlibs_GCJ=no
23580 ;;
23581
23582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23583 # support. Future versions do this automatically, but an explicit c++rt0.o
23584 # does not break anything, and helps significantly (at the cost of a little
23585 # extra space).
23586 freebsd2.2*)
23587 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23588 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23589 hardcode_direct_GCJ=yes
23590 hardcode_shlibpath_var_GCJ=no
23591 ;;
23592
23593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23594 freebsd2*)
23595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23596 hardcode_direct_GCJ=yes
23597 hardcode_minus_L_GCJ=yes
23598 hardcode_shlibpath_var_GCJ=no
23599 ;;
23600
23601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000023602 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000023603 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23605 hardcode_direct_GCJ=yes
23606 hardcode_shlibpath_var_GCJ=no
23607 ;;
23608
23609 hpux9*)
23610 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000023611 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'
John Criswell47fdd832003-07-14 16:52:07 +000023612 else
Reid Spencer177dbe22004-10-13 01:01:03 +000023613 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'
John Criswell47fdd832003-07-14 16:52:07 +000023614 fi
23615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23616 hardcode_libdir_separator_GCJ=:
23617 hardcode_direct_GCJ=yes
23618
23619 # hardcode_minus_L: Not really in the search PATH,
23620 # but as the default location of the library.
23621 hardcode_minus_L_GCJ=yes
23622 export_dynamic_flag_spec_GCJ='${wl}-E'
23623 ;;
23624
Reid Spencera773bd52006-08-04 18:18:08 +000023625 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000023626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23628 else
23629 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23630 fi
23631 if test "$with_gnu_ld" = no; then
23632 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23633 hardcode_libdir_separator_GCJ=:
23634
23635 hardcode_direct_GCJ=yes
23636 export_dynamic_flag_spec_GCJ='${wl}-E'
23637
23638 # hardcode_minus_L: Not really in the search PATH,
23639 # but as the default location of the library.
23640 hardcode_minus_L_GCJ=yes
23641 fi
23642 ;;
23643
23644 hpux11*)
23645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23646 case $host_cpu in
23647 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000023648 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023650 ia64*)
23651 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23652 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023653 *)
23654 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23655 ;;
23656 esac
23657 else
Reid Spencera773bd52006-08-04 18:18:08 +000023658 case $host_cpu in
23659 hppa*64*)
23660 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23661 ;;
23662 ia64*)
23663 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023664 ;;
23665 *)
Reid Spencera773bd52006-08-04 18:18:08 +000023666 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023667 ;;
23668 esac
23669 fi
23670 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23672 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000023673
Reid Spencera773bd52006-08-04 18:18:08 +000023674 case $host_cpu in
23675 hppa*64*|ia64*)
23676 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23677 hardcode_direct_GCJ=no
23678 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023679 ;;
23680 *)
John Criswell47fdd832003-07-14 16:52:07 +000023681 hardcode_direct_GCJ=yes
23682 export_dynamic_flag_spec_GCJ='${wl}-E'
23683
23684 # hardcode_minus_L: Not really in the search PATH,
23685 # but as the default location of the library.
23686 hardcode_minus_L_GCJ=yes
23687 ;;
23688 esac
23689 fi
23690 ;;
23691
23692 irix5* | irix6* | nonstopux*)
23693 if test "$GCC" = yes; then
23694 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'
23695 else
23696 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'
23697 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23698 fi
23699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23700 hardcode_libdir_separator_GCJ=:
23701 link_all_deplibs_GCJ=yes
23702 ;;
23703
23704 netbsd*)
23705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23707 else
23708 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23709 fi
23710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23711 hardcode_direct_GCJ=yes
23712 hardcode_shlibpath_var_GCJ=no
23713 ;;
23714
23715 newsos6)
23716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23717 hardcode_direct_GCJ=yes
23718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23719 hardcode_libdir_separator_GCJ=:
23720 hardcode_shlibpath_var_GCJ=no
23721 ;;
23722
23723 openbsd*)
23724 hardcode_direct_GCJ=yes
23725 hardcode_shlibpath_var_GCJ=no
23726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023728 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000023729 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23730 export_dynamic_flag_spec_GCJ='${wl}-E'
23731 else
23732 case $host_os in
23733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23736 ;;
23737 *)
23738 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23740 ;;
23741 esac
23742 fi
23743 ;;
23744
23745 os2*)
23746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23747 hardcode_minus_L_GCJ=yes
23748 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000023749 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'
John Criswell47fdd832003-07-14 16:52:07 +000023750 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23751 ;;
23752
23753 osf3*)
23754 if test "$GCC" = yes; then
23755 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23756 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'
23757 else
23758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23759 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'
23760 fi
23761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23762 hardcode_libdir_separator_GCJ=:
23763 ;;
23764
23765 osf4* | osf5*) # as osf3* with the addition of -msym flag
23766 if test "$GCC" = yes; then
23767 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23768 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'
23769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23770 else
23771 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23772 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000023773 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~
Reid Spencera773bd52006-08-04 18:18:08 +000023774 $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'
Reid Spencer177dbe22004-10-13 01:01:03 +000023775
John Criswell47fdd832003-07-14 16:52:07 +000023776 # Both c and cxx compiler support -rpath directly
23777 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23778 fi
23779 hardcode_libdir_separator_GCJ=:
23780 ;;
23781
John Criswell47fdd832003-07-14 16:52:07 +000023782 solaris*)
23783 no_undefined_flag_GCJ=' -z text'
23784 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023785 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000023786 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023787 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000023789 else
Reid Spencera773bd52006-08-04 18:18:08 +000023790 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000023791 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000023794 fi
23795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23796 hardcode_shlibpath_var_GCJ=no
23797 case $host_os in
23798 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023799 *)
23800 # The compiler driver will combine linker options so we
23801 # cannot just pass the convience library names through
23802 # without $wl, iff we do not link with $LD.
23803 # Luckily, gcc supports the same syntax we need for Sun Studio.
23804 # Supported since Solaris 2.6 (maybe 2.5.1?)
23805 case $wlarc in
23806 '')
23807 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23808 *)
23809 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' ;;
23810 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000023811 esac
23812 link_all_deplibs_GCJ=yes
23813 ;;
23814
23815 sunos4*)
23816 if test "x$host_vendor" = xsequent; then
23817 # Use $CC to link under sequent, because it throws in some extra .o
23818 # files that make .init and .fini sections work.
23819 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23820 else
23821 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23822 fi
23823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23824 hardcode_direct_GCJ=yes
23825 hardcode_minus_L_GCJ=yes
23826 hardcode_shlibpath_var_GCJ=no
23827 ;;
23828
23829 sysv4)
23830 case $host_vendor in
23831 sni)
23832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23833 hardcode_direct_GCJ=yes # is this really true???
23834 ;;
23835 siemens)
23836 ## LD is ld it makes a PLAMLIB
23837 ## CC just makes a GrossModule.
23838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23839 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23840 hardcode_direct_GCJ=no
23841 ;;
23842 motorola)
23843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23844 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23845 ;;
23846 esac
23847 runpath_var='LD_RUN_PATH'
23848 hardcode_shlibpath_var_GCJ=no
23849 ;;
23850
23851 sysv4.3*)
23852 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23853 hardcode_shlibpath_var_GCJ=no
23854 export_dynamic_flag_spec_GCJ='-Bexport'
23855 ;;
23856
23857 sysv4*MP*)
23858 if test -d /usr/nec; then
23859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23860 hardcode_shlibpath_var_GCJ=no
23861 runpath_var=LD_RUN_PATH
23862 hardcode_runpath_var=yes
23863 ld_shlibs_GCJ=yes
23864 fi
23865 ;;
23866
Reid Spencera773bd52006-08-04 18:18:08 +000023867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23868 no_undefined_flag_GCJ='${wl}-z,text'
23869 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023870 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023871 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000023872
John Criswell47fdd832003-07-14 16:52:07 +000023873 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023874 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23875 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023876 else
Reid Spencera773bd52006-08-04 18:18:08 +000023877 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23878 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023879 fi
John Criswell47fdd832003-07-14 16:52:07 +000023880 ;;
23881
Reid Spencera773bd52006-08-04 18:18:08 +000023882 sysv5* | sco3.2v5* | sco5v6*)
23883 # Note: We can NOT use -z defs as we might desire, because we do not
23884 # link with -lc, and that would cause any symbols used from libc to
23885 # always be unresolved, which means just about no library would
23886 # ever link correctly. If we're not using GNU ld we use -z text
23887 # though, which does catch some bad symbols but isn't as heavy-handed
23888 # as -z defs.
23889 no_undefined_flag_GCJ='${wl}-z,text'
23890 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23891 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023892 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023893 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23894 hardcode_libdir_separator_GCJ=':'
23895 link_all_deplibs_GCJ=yes
23896 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000023897 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000023898
23899 if test "$GCC" = yes; then
23900 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23902 else
23903 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23905 fi
John Criswell47fdd832003-07-14 16:52:07 +000023906 ;;
23907
23908 uts4*)
23909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23911 hardcode_shlibpath_var_GCJ=no
23912 ;;
23913
23914 *)
23915 ld_shlibs_GCJ=no
23916 ;;
23917 esac
23918 fi
23919
Reid Spencera773bd52006-08-04 18:18:08 +000023920{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23921echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023922test "$ld_shlibs_GCJ" = no && can_build_shared=no
23923
John Criswell47fdd832003-07-14 16:52:07 +000023924#
23925# Do we need to explicitly link libc?
23926#
23927case "x$archive_cmds_need_lc_GCJ" in
23928x|xyes)
23929 # Assume -lc should be added
23930 archive_cmds_need_lc_GCJ=yes
23931
23932 if test "$enable_shared" = yes && test "$GCC" = yes; then
23933 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023934 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023935 # FIXME: we may have to deal with multi-command sequences.
23936 ;;
23937 '$CC '*)
23938 # Test whether the compiler implicitly links with -lc since on some
23939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23940 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023941 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023943 $rm conftest*
23944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23945
23946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23947 (eval $ac_compile) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } 2>conftest.err; then
23951 soname=conftest
23952 lib=conftest
23953 libobjs=conftest.$ac_objext
23954 deplibs=
23955 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000023956 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000023957 compiler_flags=-v
23958 linker_flags=-v
23959 verstring=
23960 output_objdir=.
23961 libname=conftest
23962 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23963 allow_undefined_flag_GCJ=
23964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23965 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }
23969 then
23970 archive_cmds_need_lc_GCJ=no
23971 else
23972 archive_cmds_need_lc_GCJ=yes
23973 fi
23974 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23975 else
23976 cat conftest.err 1>&5
23977 fi
23978 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023979 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23980echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023981 ;;
23982 esac
23983 fi
23984 ;;
23985esac
23986
Reid Spencera773bd52006-08-04 18:18:08 +000023987{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23988echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023989library_names_spec=
23990libname_spec='lib$name'
23991soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023992shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023993postinstall_cmds=
23994postuninstall_cmds=
23995finish_cmds=
23996finish_eval=
23997shlibpath_var=
23998shlibpath_overrides_runpath=unknown
23999version_type=none
24000dynamic_linker="$host_os ld.so"
24001sys_lib_dlsearch_path_spec="/lib /usr/lib"
24002if test "$GCC" = yes; then
24003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24005 # if the path contains ";" then we assume it to be the separator
24006 # otherwise default to the standard path separator (i.e. ":") - it is
24007 # assumed that no part of a normal pathname contains ";" but that should
24008 # okay in the real world where ";" in dirpaths is itself problematic.
24009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24010 else
24011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24012 fi
24013else
24014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24015fi
24016need_lib_prefix=unknown
24017hardcode_into_libs=no
24018
24019# when you set need_version to no, make sure it does not cause -set_version
24020# flags to be left without arguments
24021need_version=unknown
24022
24023case $host_os in
24024aix3*)
24025 version_type=linux
24026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24027 shlibpath_var=LIBPATH
24028
24029 # AIX 3 has no versioning support, so we append a major version to the name.
24030 soname_spec='${libname}${release}${shared_ext}$major'
24031 ;;
24032
24033aix4* | aix5*)
24034 version_type=linux
24035 need_lib_prefix=no
24036 need_version=no
24037 hardcode_into_libs=yes
24038 if test "$host_cpu" = ia64; then
24039 # AIX 5 supports IA64
24040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24041 shlibpath_var=LD_LIBRARY_PATH
24042 else
24043 # With GCC up to 2.95.x, collect2 would create an import file
24044 # for dependence libraries. The import file would start with
24045 # the line `#! .'. This would cause the generated library to
24046 # depend on `.', always an invalid library. This was fixed in
24047 # development snapshots of GCC prior to 3.0.
24048 case $host_os in
24049 aix4 | aix4.[01] | aix4.[01].*)
24050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24051 echo ' yes '
24052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24053 :
24054 else
24055 can_build_shared=no
24056 fi
24057 ;;
24058 esac
24059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24060 # soname into executable. Probably we can add versioning support to
24061 # collect2, so additional links can be useful in future.
24062 if test "$aix_use_runtimelinking" = yes; then
24063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24064 # instead of lib<name>.a to let people know that these are not
24065 # typical AIX shared libraries.
24066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24067 else
24068 # We preserve .a as extension for shared libraries through AIX4.2
24069 # and later when we are not doing run time linking.
24070 library_names_spec='${libname}${release}.a $libname.a'
24071 soname_spec='${libname}${release}${shared_ext}$major'
24072 fi
24073 shlibpath_var=LIBPATH
24074 fi
24075 ;;
24076
24077amigaos*)
24078 library_names_spec='$libname.ixlibrary $libname.a'
24079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024080 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'
John Criswell47fdd832003-07-14 16:52:07 +000024081 ;;
24082
24083beos*)
24084 library_names_spec='${libname}${shared_ext}'
24085 dynamic_linker="$host_os ld.so"
24086 shlibpath_var=LIBRARY_PATH
24087 ;;
24088
Reid Spencer2706f8c2004-09-19 23:53:36 +000024089bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024090 version_type=linux
24091 need_version=no
24092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24093 soname_spec='${libname}${release}${shared_ext}$major'
24094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24095 shlibpath_var=LD_LIBRARY_PATH
24096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24098 # the default ld.so.conf also contains /usr/contrib/lib and
24099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24100 # libtool to hard-code these into programs
24101 ;;
24102
24103cygwin* | mingw* | pw32*)
24104 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000024105 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024106 need_version=no
24107 need_lib_prefix=no
24108
24109 case $GCC,$host_os in
24110 yes,cygwin* | yes,mingw* | yes,pw32*)
24111 library_names_spec='$libname.dll.a'
24112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000024113 postinstall_cmds='base_file=`basename \${file}`~
24114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24115 dldir=$destdir/`dirname \$dlpath`~
24116 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000024117 $install_prog $dir/$dlname \$dldir/$dlname~
24118 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000024119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24120 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000024121 $rm \$dlpath'
24122 shlibpath_overrides_runpath=yes
24123
24124 case $host_os in
24125 cygwin*)
24126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024129 ;;
24130 mingw*)
24131 # MinGW DLLs use traditional 'lib' prefix
24132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24135 # It is most probably a Windows format PATH printed by
24136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24137 # path with ; separators, and with drive letters. We can handle the
24138 # drive letters (cygwin fileutils understands them), so leave them,
24139 # especially as we might pass files found there to a mingw objdump,
24140 # which wouldn't understand a cygwinified path. Ahh.
24141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24142 else
24143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24144 fi
24145 ;;
24146 pw32*)
24147 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000024148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024149 ;;
24150 esac
24151 ;;
24152
24153 *)
24154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24155 ;;
24156 esac
24157 dynamic_linker='Win32 ld.exe'
24158 # FIXME: first we should search . and the directory the executable is in
24159 shlibpath_var=PATH
24160 ;;
24161
24162darwin* | rhapsody*)
24163 dynamic_linker="$host_os dyld"
24164 version_type=darwin
24165 need_lib_prefix=no
24166 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000024167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000024168 soname_spec='${libname}${release}${major}$shared_ext'
24169 shlibpath_overrides_runpath=yes
24170 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000024171 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000024172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024173 if test "$GCC" = yes; then
24174 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"`
24175 else
24176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000024177 fi
24178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24179 ;;
24180
24181dgux*)
24182 version_type=linux
24183 need_lib_prefix=no
24184 need_version=no
24185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24186 soname_spec='${libname}${release}${shared_ext}$major'
24187 shlibpath_var=LD_LIBRARY_PATH
24188 ;;
24189
24190freebsd1*)
24191 dynamic_linker=no
24192 ;;
24193
Reid Spencer2706f8c2004-09-19 23:53:36 +000024194kfreebsd*-gnu)
24195 version_type=linux
24196 need_lib_prefix=no
24197 need_version=no
24198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24199 soname_spec='${libname}${release}${shared_ext}$major'
24200 shlibpath_var=LD_LIBRARY_PATH
24201 shlibpath_overrides_runpath=no
24202 hardcode_into_libs=yes
24203 dynamic_linker='GNU ld.so'
24204 ;;
24205
Reid Spencera773bd52006-08-04 18:18:08 +000024206freebsd* | dragonfly*)
24207 # DragonFly does not have aout. When/if they implement a new
24208 # versioning mechanism, adjust this.
24209 if test -x /usr/bin/objformat; then
24210 objformat=`/usr/bin/objformat`
24211 else
24212 case $host_os in
24213 freebsd[123]*) objformat=aout ;;
24214 *) objformat=elf ;;
24215 esac
24216 fi
John Criswell47fdd832003-07-14 16:52:07 +000024217 version_type=freebsd-$objformat
24218 case $version_type in
24219 freebsd-elf*)
24220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24221 need_version=no
24222 need_lib_prefix=no
24223 ;;
24224 freebsd-*)
24225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24226 need_version=yes
24227 ;;
24228 esac
24229 shlibpath_var=LD_LIBRARY_PATH
24230 case $host_os in
24231 freebsd2*)
24232 shlibpath_overrides_runpath=yes
24233 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024234 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000024235 shlibpath_overrides_runpath=yes
24236 hardcode_into_libs=yes
24237 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000024240 shlibpath_overrides_runpath=no
24241 hardcode_into_libs=yes
24242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024243 freebsd*) # from 4.6 on
24244 shlibpath_overrides_runpath=yes
24245 hardcode_into_libs=yes
24246 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024247 esac
24248 ;;
24249
24250gnu*)
24251 version_type=linux
24252 need_lib_prefix=no
24253 need_version=no
24254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24255 soname_spec='${libname}${release}${shared_ext}$major'
24256 shlibpath_var=LD_LIBRARY_PATH
24257 hardcode_into_libs=yes
24258 ;;
24259
24260hpux9* | hpux10* | hpux11*)
24261 # Give a soname corresponding to the major version so that dld.sl refuses to
24262 # link against other versions.
24263 version_type=sunos
24264 need_lib_prefix=no
24265 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000024266 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024267 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024268 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000024269 hardcode_into_libs=yes
24270 dynamic_linker="$host_os dld.so"
24271 shlibpath_var=LD_LIBRARY_PATH
24272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24274 soname_spec='${libname}${release}${shared_ext}$major'
24275 if test "X$HPUX_IA64_MODE" = X32; then
24276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24277 else
24278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24279 fi
24280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24281 ;;
24282 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024283 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024284 hardcode_into_libs=yes
24285 dynamic_linker="$host_os dld.sl"
24286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24289 soname_spec='${libname}${release}${shared_ext}$major'
24290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24292 ;;
24293 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024294 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024295 dynamic_linker="$host_os dld.sl"
24296 shlibpath_var=SHLIB_PATH
24297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24299 soname_spec='${libname}${release}${shared_ext}$major'
24300 ;;
24301 esac
24302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24303 postinstall_cmds='chmod 555 $lib'
24304 ;;
24305
Reid Spencera773bd52006-08-04 18:18:08 +000024306interix3*)
24307 version_type=linux
24308 need_lib_prefix=no
24309 need_version=no
24310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24311 soname_spec='${libname}${release}${shared_ext}$major'
24312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24313 shlibpath_var=LD_LIBRARY_PATH
24314 shlibpath_overrides_runpath=no
24315 hardcode_into_libs=yes
24316 ;;
24317
John Criswell47fdd832003-07-14 16:52:07 +000024318irix5* | irix6* | nonstopux*)
24319 case $host_os in
24320 nonstopux*) version_type=nonstopux ;;
24321 *)
24322 if test "$lt_cv_prog_gnu_ld" = yes; then
24323 version_type=linux
24324 else
24325 version_type=irix
24326 fi ;;
24327 esac
24328 need_lib_prefix=no
24329 need_version=no
24330 soname_spec='${libname}${release}${shared_ext}$major'
24331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24332 case $host_os in
24333 irix5* | nonstopux*)
24334 libsuff= shlibsuff=
24335 ;;
24336 *)
24337 case $LD in # libtool.m4 will add one of these switches to LD
24338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24339 libsuff= shlibsuff= libmagic=32-bit;;
24340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24341 libsuff=32 shlibsuff=N32 libmagic=N32;;
24342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24344 *) libsuff= shlibsuff= libmagic=never-match;;
24345 esac
24346 ;;
24347 esac
24348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24349 shlibpath_overrides_runpath=no
24350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24352 hardcode_into_libs=yes
24353 ;;
24354
24355# No shared lib support for Linux oldld, aout, or coff.
24356linux*oldld* | linux*aout* | linux*coff*)
24357 dynamic_linker=no
24358 ;;
24359
24360# This must be Linux ELF.
24361linux*)
24362 version_type=linux
24363 need_lib_prefix=no
24364 need_version=no
24365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24366 soname_spec='${libname}${release}${shared_ext}$major'
24367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24368 shlibpath_var=LD_LIBRARY_PATH
24369 shlibpath_overrides_runpath=no
24370 # This implies no fast_install, which is unacceptable.
24371 # Some rework will be needed to allow for fast_install
24372 # before this can be enabled.
24373 hardcode_into_libs=yes
24374
Reid Spencer2706f8c2004-09-19 23:53:36 +000024375 # Append ld.so.conf contents to the search path
24376 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000024377 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24379 fi
24380
John Criswell47fdd832003-07-14 16:52:07 +000024381 # We used to test for /lib/ld.so.1 and disable shared libraries on
24382 # powerpc, because MkLinux only supported shared libraries with the
24383 # GNU dynamic linker. Since this was broken with cross compilers,
24384 # most powerpc-linux boxes support dynamic linking these days and
24385 # people can always --disable-shared, the test was removed, and we
24386 # assume the GNU/Linux dynamic linker is in use.
24387 dynamic_linker='GNU/Linux ld.so'
24388 ;;
24389
Reid Spencer2706f8c2004-09-19 23:53:36 +000024390knetbsd*-gnu)
24391 version_type=linux
24392 need_lib_prefix=no
24393 need_version=no
24394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24395 soname_spec='${libname}${release}${shared_ext}$major'
24396 shlibpath_var=LD_LIBRARY_PATH
24397 shlibpath_overrides_runpath=no
24398 hardcode_into_libs=yes
24399 dynamic_linker='GNU ld.so'
24400 ;;
24401
John Criswell47fdd832003-07-14 16:52:07 +000024402netbsd*)
24403 version_type=sunos
24404 need_lib_prefix=no
24405 need_version=no
24406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24409 dynamic_linker='NetBSD (a.out) ld.so'
24410 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024412 soname_spec='${libname}${release}${shared_ext}$major'
24413 dynamic_linker='NetBSD ld.elf_so'
24414 fi
24415 shlibpath_var=LD_LIBRARY_PATH
24416 shlibpath_overrides_runpath=yes
24417 hardcode_into_libs=yes
24418 ;;
24419
24420newsos6)
24421 version_type=linux
24422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24423 shlibpath_var=LD_LIBRARY_PATH
24424 shlibpath_overrides_runpath=yes
24425 ;;
24426
Reid Spencer2706f8c2004-09-19 23:53:36 +000024427nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000024428 version_type=linux
24429 need_lib_prefix=no
24430 need_version=no
24431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24432 soname_spec='${libname}${release}${shared_ext}$major'
24433 shlibpath_var=LD_LIBRARY_PATH
24434 shlibpath_overrides_runpath=yes
24435 ;;
24436
24437openbsd*)
24438 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000024439 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024440 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000024441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24442 case $host_os in
24443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24444 *) need_version=no ;;
24445 esac
John Criswell47fdd832003-07-14 16:52:07 +000024446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24448 shlibpath_var=LD_LIBRARY_PATH
24449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24450 case $host_os in
24451 openbsd2.[89] | openbsd2.[89].*)
24452 shlibpath_overrides_runpath=no
24453 ;;
24454 *)
24455 shlibpath_overrides_runpath=yes
24456 ;;
24457 esac
24458 else
24459 shlibpath_overrides_runpath=yes
24460 fi
24461 ;;
24462
24463os2*)
24464 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024465 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024466 need_lib_prefix=no
24467 library_names_spec='$libname${shared_ext} $libname.a'
24468 dynamic_linker='OS/2 ld.exe'
24469 shlibpath_var=LIBPATH
24470 ;;
24471
24472osf3* | osf4* | osf5*)
24473 version_type=osf
24474 need_lib_prefix=no
24475 need_version=no
24476 soname_spec='${libname}${release}${shared_ext}$major'
24477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24478 shlibpath_var=LD_LIBRARY_PATH
24479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24481 ;;
24482
John Criswell47fdd832003-07-14 16:52:07 +000024483solaris*)
24484 version_type=linux
24485 need_lib_prefix=no
24486 need_version=no
24487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24488 soname_spec='${libname}${release}${shared_ext}$major'
24489 shlibpath_var=LD_LIBRARY_PATH
24490 shlibpath_overrides_runpath=yes
24491 hardcode_into_libs=yes
24492 # ldd complains unless libraries are executable
24493 postinstall_cmds='chmod +x $lib'
24494 ;;
24495
24496sunos4*)
24497 version_type=sunos
24498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24500 shlibpath_var=LD_LIBRARY_PATH
24501 shlibpath_overrides_runpath=yes
24502 if test "$with_gnu_ld" = yes; then
24503 need_lib_prefix=no
24504 fi
24505 need_version=yes
24506 ;;
24507
Reid Spencera773bd52006-08-04 18:18:08 +000024508sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024509 version_type=linux
24510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24511 soname_spec='${libname}${release}${shared_ext}$major'
24512 shlibpath_var=LD_LIBRARY_PATH
24513 case $host_vendor in
24514 sni)
24515 shlibpath_overrides_runpath=no
24516 need_lib_prefix=no
24517 export_dynamic_flag_spec='${wl}-Blargedynsym'
24518 runpath_var=LD_RUN_PATH
24519 ;;
24520 siemens)
24521 need_lib_prefix=no
24522 ;;
24523 motorola)
24524 need_lib_prefix=no
24525 need_version=no
24526 shlibpath_overrides_runpath=no
24527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24528 ;;
24529 esac
24530 ;;
24531
24532sysv4*MP*)
24533 if test -d /usr/nec ;then
24534 version_type=linux
24535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24536 soname_spec='$libname${shared_ext}.$major'
24537 shlibpath_var=LD_LIBRARY_PATH
24538 fi
24539 ;;
24540
Reid Spencera773bd52006-08-04 18:18:08 +000024541sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24542 version_type=freebsd-elf
24543 need_lib_prefix=no
24544 need_version=no
24545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24546 soname_spec='${libname}${release}${shared_ext}$major'
24547 shlibpath_var=LD_LIBRARY_PATH
24548 hardcode_into_libs=yes
24549 if test "$with_gnu_ld" = yes; then
24550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24551 shlibpath_overrides_runpath=no
24552 else
24553 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24554 shlibpath_overrides_runpath=yes
24555 case $host_os in
24556 sco3.2v5*)
24557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24558 ;;
24559 esac
24560 fi
24561 sys_lib_dlsearch_path_spec='/usr/lib'
24562 ;;
24563
John Criswell47fdd832003-07-14 16:52:07 +000024564uts4*)
24565 version_type=linux
24566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24567 soname_spec='${libname}${release}${shared_ext}$major'
24568 shlibpath_var=LD_LIBRARY_PATH
24569 ;;
24570
24571*)
24572 dynamic_linker=no
24573 ;;
24574esac
Reid Spencera773bd52006-08-04 18:18:08 +000024575{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24576echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024577test "$dynamic_linker" = no && can_build_shared=no
24578
Reid Spencera773bd52006-08-04 18:18:08 +000024579variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24580if test "$GCC" = yes; then
24581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24582fi
24583
24584{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24585echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024586hardcode_action_GCJ=
24587if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24588 test -n "$runpath_var_GCJ" || \
24589 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24590
24591 # We can hardcode non-existant directories.
24592 if test "$hardcode_direct_GCJ" != no &&
24593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24594 # have to relink, otherwise we might link with an installed library
24595 # when we should be linking with a yet-to-be-installed one
24596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24597 test "$hardcode_minus_L_GCJ" != no; then
24598 # Linking always hardcodes the temporary library directory.
24599 hardcode_action_GCJ=relink
24600 else
24601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24602 hardcode_action_GCJ=immediate
24603 fi
24604else
24605 # We cannot hardcode anything, or else we can only hardcode existing
24606 # directories.
24607 hardcode_action_GCJ=unsupported
24608fi
Reid Spencera773bd52006-08-04 18:18:08 +000024609{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24610echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024611
24612if test "$hardcode_action_GCJ" = relink; then
24613 # Fast installation is not supported
24614 enable_fast_install=no
24615elif test "$shlibpath_overrides_runpath" = yes ||
24616 test "$enable_shared" = no; then
24617 # Fast installation is not necessary
24618 enable_fast_install=needless
24619fi
24620
John Criswell47fdd832003-07-14 16:52:07 +000024621
24622# The else clause should only fire when bootstrapping the
24623# libtool distribution, otherwise you forgot to ship ltmain.sh
24624# with your package, and you will get complaints that there are
24625# no rules to generate ltmain.sh.
24626if test -f "$ltmain"; then
24627 # See if we are running on zsh, and set the options which allow our commands through
24628 # without removal of \ escapes.
24629 if test -n "${ZSH_VERSION+set}" ; then
24630 setopt NO_GLOB_SUBST
24631 fi
24632 # Now quote all the things that may contain metacharacters while being
24633 # careful not to overquote the AC_SUBSTed values. We take copies of the
24634 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000024635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024636 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24639 deplibs_check_method reload_flag reload_cmds need_locks \
24640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24641 lt_cv_sys_global_symbol_to_c_name_address \
24642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24643 old_postinstall_cmds old_postuninstall_cmds \
24644 compiler_GCJ \
24645 CC_GCJ \
24646 LD_GCJ \
24647 lt_prog_compiler_wl_GCJ \
24648 lt_prog_compiler_pic_GCJ \
24649 lt_prog_compiler_static_GCJ \
24650 lt_prog_compiler_no_builtin_flag_GCJ \
24651 export_dynamic_flag_spec_GCJ \
24652 thread_safe_flag_spec_GCJ \
24653 whole_archive_flag_spec_GCJ \
24654 enable_shared_with_static_runtimes_GCJ \
24655 old_archive_cmds_GCJ \
24656 old_archive_from_new_cmds_GCJ \
24657 predep_objects_GCJ \
24658 postdep_objects_GCJ \
24659 predeps_GCJ \
24660 postdeps_GCJ \
24661 compiler_lib_search_path_GCJ \
24662 archive_cmds_GCJ \
24663 archive_expsym_cmds_GCJ \
24664 postinstall_cmds_GCJ \
24665 postuninstall_cmds_GCJ \
24666 old_archive_from_expsyms_cmds_GCJ \
24667 allow_undefined_flag_GCJ \
24668 no_undefined_flag_GCJ \
24669 export_symbols_cmds_GCJ \
24670 hardcode_libdir_flag_spec_GCJ \
24671 hardcode_libdir_flag_spec_ld_GCJ \
24672 hardcode_libdir_separator_GCJ \
24673 hardcode_automatic_GCJ \
24674 module_cmds_GCJ \
24675 module_expsym_cmds_GCJ \
24676 lt_cv_prog_compiler_c_o_GCJ \
24677 exclude_expsyms_GCJ \
24678 include_expsyms_GCJ; do
24679
24680 case $var in
24681 old_archive_cmds_GCJ | \
24682 old_archive_from_new_cmds_GCJ | \
24683 archive_cmds_GCJ | \
24684 archive_expsym_cmds_GCJ | \
24685 module_cmds_GCJ | \
24686 module_expsym_cmds_GCJ | \
24687 old_archive_from_expsyms_cmds_GCJ | \
24688 export_symbols_cmds_GCJ | \
24689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24690 postinstall_cmds | postuninstall_cmds | \
24691 old_postinstall_cmds | old_postuninstall_cmds | \
24692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24693 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000024695 ;;
24696 *)
24697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24698 ;;
24699 esac
24700 done
24701
24702 case $lt_echo in
24703 *'\$0 --fallback-echo"')
24704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24705 ;;
24706 esac
24707
24708cfgfile="$ofile"
24709
24710 cat <<__EOF__ >> "$cfgfile"
24711# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24712
24713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24714
24715# Shell to use when invoking shell scripts.
24716SHELL=$lt_SHELL
24717
24718# Whether or not to build shared libraries.
24719build_libtool_libs=$enable_shared
24720
24721# Whether or not to build static libraries.
24722build_old_libs=$enable_static
24723
24724# Whether or not to add -lc for building shared libraries.
24725build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24726
24727# Whether or not to disallow shared libs when runtime libs are static
24728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24729
24730# Whether or not to optimize for fast installation.
24731fast_install=$enable_fast_install
24732
24733# The host system.
24734host_alias=$host_alias
24735host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000024736host_os=$host_os
24737
24738# The build system.
24739build_alias=$build_alias
24740build=$build
24741build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000024742
24743# An echo program that does not interpret backslashes.
24744echo=$lt_echo
24745
24746# The archiver.
24747AR=$lt_AR
24748AR_FLAGS=$lt_AR_FLAGS
24749
24750# A C compiler.
24751LTCC=$lt_LTCC
24752
Reid Spencera773bd52006-08-04 18:18:08 +000024753# LTCC compiler flags.
24754LTCFLAGS=$lt_LTCFLAGS
24755
John Criswell47fdd832003-07-14 16:52:07 +000024756# A language-specific compiler.
24757CC=$lt_compiler_GCJ
24758
24759# Is the compiler the GNU C compiler?
24760with_gcc=$GCC_GCJ
24761
24762# An ERE matcher.
24763EGREP=$lt_EGREP
24764
24765# The linker used to build libraries.
24766LD=$lt_LD_GCJ
24767
24768# Whether we need hard or soft links.
24769LN_S=$lt_LN_S
24770
24771# A BSD-compatible nm program.
24772NM=$lt_NM
24773
24774# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024775STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024776
24777# Used to examine libraries when file_magic_cmd begins "file"
24778MAGIC_CMD=$MAGIC_CMD
24779
24780# Used on cygwin: DLL creation program.
24781DLLTOOL="$DLLTOOL"
24782
24783# Used on cygwin: object dumper.
24784OBJDUMP="$OBJDUMP"
24785
24786# Used on cygwin: assembler.
24787AS="$AS"
24788
24789# The name of the directory that contains temporary libtool files.
24790objdir=$objdir
24791
24792# How to create reloadable object files.
24793reload_flag=$lt_reload_flag
24794reload_cmds=$lt_reload_cmds
24795
24796# How to pass a linker flag through the compiler.
24797wl=$lt_lt_prog_compiler_wl_GCJ
24798
24799# Object file suffix (normally "o").
24800objext="$ac_objext"
24801
24802# Old archive suffix (normally "a").
24803libext="$libext"
24804
24805# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024806shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024807
24808# Executable file suffix (normally "").
24809exeext="$exeext"
24810
24811# Additional compiler flags for building library objects.
24812pic_flag=$lt_lt_prog_compiler_pic_GCJ
24813pic_mode=$pic_mode
24814
24815# What is the maximum length of a command?
24816max_cmd_len=$lt_cv_sys_max_cmd_len
24817
24818# Does compiler simultaneously support -c and -o options?
24819compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24820
Reid Spencera773bd52006-08-04 18:18:08 +000024821# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000024822need_locks=$lt_need_locks
24823
24824# Do we need the lib prefix for modules?
24825need_lib_prefix=$need_lib_prefix
24826
24827# Do we need a version for libraries?
24828need_version=$need_version
24829
24830# Whether dlopen is supported.
24831dlopen_support=$enable_dlopen
24832
24833# Whether dlopen of programs is supported.
24834dlopen_self=$enable_dlopen_self
24835
24836# Whether dlopen of statically linked programs is supported.
24837dlopen_self_static=$enable_dlopen_self_static
24838
24839# Compiler flag to prevent dynamic linking.
24840link_static_flag=$lt_lt_prog_compiler_static_GCJ
24841
24842# Compiler flag to turn off builtin functions.
24843no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24844
24845# Compiler flag to allow reflexive dlopens.
24846export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24847
24848# Compiler flag to generate shared objects directly from archives.
24849whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24850
24851# Compiler flag to generate thread-safe objects.
24852thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24853
24854# Library versioning type.
24855version_type=$version_type
24856
24857# Format of library name prefix.
24858libname_spec=$lt_libname_spec
24859
24860# List of archive names. First name is the real one, the rest are links.
24861# The last name is the one that the linker finds with -lNAME.
24862library_names_spec=$lt_library_names_spec
24863
24864# The coded name of the library, if different from the real name.
24865soname_spec=$lt_soname_spec
24866
24867# Commands used to build and install an old-style archive.
24868RANLIB=$lt_RANLIB
24869old_archive_cmds=$lt_old_archive_cmds_GCJ
24870old_postinstall_cmds=$lt_old_postinstall_cmds
24871old_postuninstall_cmds=$lt_old_postuninstall_cmds
24872
24873# Create an old-style archive from a shared archive.
24874old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24875
24876# Create a temporary old-style archive to link instead of a shared archive.
24877old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24878
24879# Commands used to build and install a shared archive.
24880archive_cmds=$lt_archive_cmds_GCJ
24881archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24882postinstall_cmds=$lt_postinstall_cmds
24883postuninstall_cmds=$lt_postuninstall_cmds
24884
24885# Commands used to build a loadable module (assumed same as above if empty)
24886module_cmds=$lt_module_cmds_GCJ
24887module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24888
24889# Commands to strip libraries.
24890old_striplib=$lt_old_striplib
24891striplib=$lt_striplib
24892
24893# Dependencies to place before the objects being linked to create a
24894# shared library.
24895predep_objects=$lt_predep_objects_GCJ
24896
24897# Dependencies to place after the objects being linked to create a
24898# shared library.
24899postdep_objects=$lt_postdep_objects_GCJ
24900
24901# Dependencies to place before the objects being linked to create a
24902# shared library.
24903predeps=$lt_predeps_GCJ
24904
24905# Dependencies to place after the objects being linked to create a
24906# shared library.
24907postdeps=$lt_postdeps_GCJ
24908
24909# The library search path used internally by the compiler when linking
24910# a shared library.
24911compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24912
24913# Method to check whether dependent libraries are shared objects.
24914deplibs_check_method=$lt_deplibs_check_method
24915
24916# Command to use when deplibs_check_method == file_magic.
24917file_magic_cmd=$lt_file_magic_cmd
24918
24919# Flag that allows shared libraries with undefined symbols to be built.
24920allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24921
24922# Flag that forces no undefined symbols.
24923no_undefined_flag=$lt_no_undefined_flag_GCJ
24924
24925# Commands used to finish a libtool library installation in a directory.
24926finish_cmds=$lt_finish_cmds
24927
24928# Same as above, but a single script fragment to be evaled but not shown.
24929finish_eval=$lt_finish_eval
24930
24931# Take the output of nm and produce a listing of raw symbols and C names.
24932global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24933
24934# Transform the output of nm in a proper C declaration
24935global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24936
24937# Transform the output of nm in a C name address pair
24938global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24939
24940# This is the shared library runtime path variable.
24941runpath_var=$runpath_var
24942
24943# This is the shared library path variable.
24944shlibpath_var=$shlibpath_var
24945
24946# Is shlibpath searched before the hard-coded library search path?
24947shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24948
24949# How to hardcode a shared library path into an executable.
24950hardcode_action=$hardcode_action_GCJ
24951
24952# Whether we should hardcode library paths into libraries.
24953hardcode_into_libs=$hardcode_into_libs
24954
24955# Flag to hardcode \$libdir into a binary during linking.
24956# This must work even if \$libdir does not exist.
24957hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24958
24959# If ld is used when linking, flag to hardcode \$libdir into
24960# a binary during linking. This must work even if \$libdir does
24961# not exist.
24962hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24963
24964# Whether we need a single -rpath flag with a separated argument.
24965hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24966
24967# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24968# resulting binary.
24969hardcode_direct=$hardcode_direct_GCJ
24970
24971# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24972# resulting binary.
24973hardcode_minus_L=$hardcode_minus_L_GCJ
24974
24975# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24976# the resulting binary.
24977hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24978
24979# Set to yes if building a shared library automatically hardcodes DIR into the library
24980# and all subsequent libraries and executables linked against it.
24981hardcode_automatic=$hardcode_automatic_GCJ
24982
24983# Variables whose values should be saved in libtool wrapper scripts and
24984# restored at relink time.
24985variables_saved_for_relink="$variables_saved_for_relink"
24986
24987# Whether libtool must link a program against all its dependency libraries.
24988link_all_deplibs=$link_all_deplibs_GCJ
24989
24990# Compile-time system search path for libraries
24991sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24992
24993# Run-time system search path for libraries
24994sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24995
24996# Fix the shell variable \$srcfile for the compiler.
24997fix_srcfile_path="$fix_srcfile_path_GCJ"
24998
24999# Set to yes if exported symbols are required.
25000always_export_symbols=$always_export_symbols_GCJ
25001
25002# The commands to list exported symbols.
25003export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25004
25005# The commands to extract the exported symbol list from a shared archive.
25006extract_expsyms_cmds=$lt_extract_expsyms_cmds
25007
25008# Symbols that should not be listed in the preloaded symbols.
25009exclude_expsyms=$lt_exclude_expsyms_GCJ
25010
25011# Symbols that must always be exported.
25012include_expsyms=$lt_include_expsyms_GCJ
25013
25014# ### END LIBTOOL TAG CONFIG: $tagname
25015
25016__EOF__
25017
25018
25019else
25020 # If there is no Makefile yet, we rely on a make rule to execute
25021 # `config.status --recheck' to rerun these tests and create the
25022 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25024 if test -f "$ltmain_in"; then
25025 test -f Makefile && make "$ltmain"
25026 fi
John Criswell47fdd832003-07-14 16:52:07 +000025027fi
25028
25029
25030ac_ext=c
25031ac_cpp='$CPP $CPPFLAGS'
25032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25034ac_compiler_gnu=$ac_cv_c_compiler_gnu
25035
25036CC="$lt_save_CC"
25037
25038 else
25039 tagname=""
25040 fi
25041 ;;
25042
25043 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025044 ac_ext=c
25045ac_cpp='$CPP $CPPFLAGS'
25046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025049
25050
25051# Source file extension for RC test sources.
25052ac_ext=rc
25053
25054# Object file extension for compiled RC test sources.
25055objext=o
25056objext_RC=$objext
25057
25058# Code to be used in simple compile tests
25059lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25060
25061# Code to be used in simple link tests
25062lt_simple_link_test_code="$lt_simple_compile_test_code"
25063
25064# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25065
25066# If no C compiler was specified, use CC.
25067LTCC=${LTCC-"$CC"}
25068
Reid Spencera773bd52006-08-04 18:18:08 +000025069# If no C compiler flags were specified, use CFLAGS.
25070LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25071
John Criswell47fdd832003-07-14 16:52:07 +000025072# Allow CC to be a program name with arguments.
25073compiler=$CC
25074
25075
Reid Spencera773bd52006-08-04 18:18:08 +000025076# save warnings/boilerplate of simple test code
25077ac_outfile=conftest.$ac_objext
25078printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25079eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25080_lt_compiler_boilerplate=`cat conftest.err`
25081$rm conftest*
25082
25083ac_outfile=conftest.$ac_objext
25084printf "$lt_simple_link_test_code" >conftest.$ac_ext
25085eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25086_lt_linker_boilerplate=`cat conftest.err`
25087$rm conftest*
25088
25089
John Criswell47fdd832003-07-14 16:52:07 +000025090# Allow CC to be a program name with arguments.
25091lt_save_CC="$CC"
25092CC=${RC-"windres"}
25093compiler=$CC
25094compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000025095for cc_temp in $compiler""; do
25096 case $cc_temp in
25097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25099 \-*) ;;
25100 *) break;;
25101 esac
25102done
25103cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25104
John Criswell47fdd832003-07-14 16:52:07 +000025105lt_cv_prog_compiler_c_o_RC=yes
25106
25107# The else clause should only fire when bootstrapping the
25108# libtool distribution, otherwise you forgot to ship ltmain.sh
25109# with your package, and you will get complaints that there are
25110# no rules to generate ltmain.sh.
25111if test -f "$ltmain"; then
25112 # See if we are running on zsh, and set the options which allow our commands through
25113 # without removal of \ escapes.
25114 if test -n "${ZSH_VERSION+set}" ; then
25115 setopt NO_GLOB_SUBST
25116 fi
25117 # Now quote all the things that may contain metacharacters while being
25118 # careful not to overquote the AC_SUBSTed values. We take copies of the
25119 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025121 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25124 deplibs_check_method reload_flag reload_cmds need_locks \
25125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25126 lt_cv_sys_global_symbol_to_c_name_address \
25127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25128 old_postinstall_cmds old_postuninstall_cmds \
25129 compiler_RC \
25130 CC_RC \
25131 LD_RC \
25132 lt_prog_compiler_wl_RC \
25133 lt_prog_compiler_pic_RC \
25134 lt_prog_compiler_static_RC \
25135 lt_prog_compiler_no_builtin_flag_RC \
25136 export_dynamic_flag_spec_RC \
25137 thread_safe_flag_spec_RC \
25138 whole_archive_flag_spec_RC \
25139 enable_shared_with_static_runtimes_RC \
25140 old_archive_cmds_RC \
25141 old_archive_from_new_cmds_RC \
25142 predep_objects_RC \
25143 postdep_objects_RC \
25144 predeps_RC \
25145 postdeps_RC \
25146 compiler_lib_search_path_RC \
25147 archive_cmds_RC \
25148 archive_expsym_cmds_RC \
25149 postinstall_cmds_RC \
25150 postuninstall_cmds_RC \
25151 old_archive_from_expsyms_cmds_RC \
25152 allow_undefined_flag_RC \
25153 no_undefined_flag_RC \
25154 export_symbols_cmds_RC \
25155 hardcode_libdir_flag_spec_RC \
25156 hardcode_libdir_flag_spec_ld_RC \
25157 hardcode_libdir_separator_RC \
25158 hardcode_automatic_RC \
25159 module_cmds_RC \
25160 module_expsym_cmds_RC \
25161 lt_cv_prog_compiler_c_o_RC \
25162 exclude_expsyms_RC \
25163 include_expsyms_RC; do
25164
25165 case $var in
25166 old_archive_cmds_RC | \
25167 old_archive_from_new_cmds_RC | \
25168 archive_cmds_RC | \
25169 archive_expsym_cmds_RC | \
25170 module_cmds_RC | \
25171 module_expsym_cmds_RC | \
25172 old_archive_from_expsyms_cmds_RC | \
25173 export_symbols_cmds_RC | \
25174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25175 postinstall_cmds | postuninstall_cmds | \
25176 old_postinstall_cmds | old_postuninstall_cmds | \
25177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25178 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000025180 ;;
25181 *)
25182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25183 ;;
25184 esac
25185 done
25186
25187 case $lt_echo in
25188 *'\$0 --fallback-echo"')
25189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25190 ;;
25191 esac
25192
25193cfgfile="$ofile"
25194
25195 cat <<__EOF__ >> "$cfgfile"
25196# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25197
25198# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25199
25200# Shell to use when invoking shell scripts.
25201SHELL=$lt_SHELL
25202
25203# Whether or not to build shared libraries.
25204build_libtool_libs=$enable_shared
25205
25206# Whether or not to build static libraries.
25207build_old_libs=$enable_static
25208
25209# Whether or not to add -lc for building shared libraries.
25210build_libtool_need_lc=$archive_cmds_need_lc_RC
25211
25212# Whether or not to disallow shared libs when runtime libs are static
25213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25214
25215# Whether or not to optimize for fast installation.
25216fast_install=$enable_fast_install
25217
25218# The host system.
25219host_alias=$host_alias
25220host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025221host_os=$host_os
25222
25223# The build system.
25224build_alias=$build_alias
25225build=$build
25226build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025227
25228# An echo program that does not interpret backslashes.
25229echo=$lt_echo
25230
25231# The archiver.
25232AR=$lt_AR
25233AR_FLAGS=$lt_AR_FLAGS
25234
25235# A C compiler.
25236LTCC=$lt_LTCC
25237
Reid Spencera773bd52006-08-04 18:18:08 +000025238# LTCC compiler flags.
25239LTCFLAGS=$lt_LTCFLAGS
25240
John Criswell47fdd832003-07-14 16:52:07 +000025241# A language-specific compiler.
25242CC=$lt_compiler_RC
25243
25244# Is the compiler the GNU C compiler?
25245with_gcc=$GCC_RC
25246
25247# An ERE matcher.
25248EGREP=$lt_EGREP
25249
25250# The linker used to build libraries.
25251LD=$lt_LD_RC
25252
25253# Whether we need hard or soft links.
25254LN_S=$lt_LN_S
25255
25256# A BSD-compatible nm program.
25257NM=$lt_NM
25258
25259# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025260STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025261
25262# Used to examine libraries when file_magic_cmd begins "file"
25263MAGIC_CMD=$MAGIC_CMD
25264
25265# Used on cygwin: DLL creation program.
25266DLLTOOL="$DLLTOOL"
25267
25268# Used on cygwin: object dumper.
25269OBJDUMP="$OBJDUMP"
25270
25271# Used on cygwin: assembler.
25272AS="$AS"
25273
25274# The name of the directory that contains temporary libtool files.
25275objdir=$objdir
25276
25277# How to create reloadable object files.
25278reload_flag=$lt_reload_flag
25279reload_cmds=$lt_reload_cmds
25280
25281# How to pass a linker flag through the compiler.
25282wl=$lt_lt_prog_compiler_wl_RC
25283
25284# Object file suffix (normally "o").
25285objext="$ac_objext"
25286
25287# Old archive suffix (normally "a").
25288libext="$libext"
25289
25290# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025291shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025292
25293# Executable file suffix (normally "").
25294exeext="$exeext"
25295
25296# Additional compiler flags for building library objects.
25297pic_flag=$lt_lt_prog_compiler_pic_RC
25298pic_mode=$pic_mode
25299
25300# What is the maximum length of a command?
25301max_cmd_len=$lt_cv_sys_max_cmd_len
25302
25303# Does compiler simultaneously support -c and -o options?
25304compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25305
Reid Spencera773bd52006-08-04 18:18:08 +000025306# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025307need_locks=$lt_need_locks
25308
25309# Do we need the lib prefix for modules?
25310need_lib_prefix=$need_lib_prefix
25311
25312# Do we need a version for libraries?
25313need_version=$need_version
25314
25315# Whether dlopen is supported.
25316dlopen_support=$enable_dlopen
25317
25318# Whether dlopen of programs is supported.
25319dlopen_self=$enable_dlopen_self
25320
25321# Whether dlopen of statically linked programs is supported.
25322dlopen_self_static=$enable_dlopen_self_static
25323
25324# Compiler flag to prevent dynamic linking.
25325link_static_flag=$lt_lt_prog_compiler_static_RC
25326
25327# Compiler flag to turn off builtin functions.
25328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25329
25330# Compiler flag to allow reflexive dlopens.
25331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25332
25333# Compiler flag to generate shared objects directly from archives.
25334whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25335
25336# Compiler flag to generate thread-safe objects.
25337thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25338
25339# Library versioning type.
25340version_type=$version_type
25341
25342# Format of library name prefix.
25343libname_spec=$lt_libname_spec
25344
25345# List of archive names. First name is the real one, the rest are links.
25346# The last name is the one that the linker finds with -lNAME.
25347library_names_spec=$lt_library_names_spec
25348
25349# The coded name of the library, if different from the real name.
25350soname_spec=$lt_soname_spec
25351
25352# Commands used to build and install an old-style archive.
25353RANLIB=$lt_RANLIB
25354old_archive_cmds=$lt_old_archive_cmds_RC
25355old_postinstall_cmds=$lt_old_postinstall_cmds
25356old_postuninstall_cmds=$lt_old_postuninstall_cmds
25357
25358# Create an old-style archive from a shared archive.
25359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25360
25361# Create a temporary old-style archive to link instead of a shared archive.
25362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25363
25364# Commands used to build and install a shared archive.
25365archive_cmds=$lt_archive_cmds_RC
25366archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25367postinstall_cmds=$lt_postinstall_cmds
25368postuninstall_cmds=$lt_postuninstall_cmds
25369
25370# Commands used to build a loadable module (assumed same as above if empty)
25371module_cmds=$lt_module_cmds_RC
25372module_expsym_cmds=$lt_module_expsym_cmds_RC
25373
25374# Commands to strip libraries.
25375old_striplib=$lt_old_striplib
25376striplib=$lt_striplib
25377
25378# Dependencies to place before the objects being linked to create a
25379# shared library.
25380predep_objects=$lt_predep_objects_RC
25381
25382# Dependencies to place after the objects being linked to create a
25383# shared library.
25384postdep_objects=$lt_postdep_objects_RC
25385
25386# Dependencies to place before the objects being linked to create a
25387# shared library.
25388predeps=$lt_predeps_RC
25389
25390# Dependencies to place after the objects being linked to create a
25391# shared library.
25392postdeps=$lt_postdeps_RC
25393
25394# The library search path used internally by the compiler when linking
25395# a shared library.
25396compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25397
25398# Method to check whether dependent libraries are shared objects.
25399deplibs_check_method=$lt_deplibs_check_method
25400
25401# Command to use when deplibs_check_method == file_magic.
25402file_magic_cmd=$lt_file_magic_cmd
25403
25404# Flag that allows shared libraries with undefined symbols to be built.
25405allow_undefined_flag=$lt_allow_undefined_flag_RC
25406
25407# Flag that forces no undefined symbols.
25408no_undefined_flag=$lt_no_undefined_flag_RC
25409
25410# Commands used to finish a libtool library installation in a directory.
25411finish_cmds=$lt_finish_cmds
25412
25413# Same as above, but a single script fragment to be evaled but not shown.
25414finish_eval=$lt_finish_eval
25415
25416# Take the output of nm and produce a listing of raw symbols and C names.
25417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25418
25419# Transform the output of nm in a proper C declaration
25420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25421
25422# Transform the output of nm in a C name address pair
25423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25424
25425# This is the shared library runtime path variable.
25426runpath_var=$runpath_var
25427
25428# This is the shared library path variable.
25429shlibpath_var=$shlibpath_var
25430
25431# Is shlibpath searched before the hard-coded library search path?
25432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25433
25434# How to hardcode a shared library path into an executable.
25435hardcode_action=$hardcode_action_RC
25436
25437# Whether we should hardcode library paths into libraries.
25438hardcode_into_libs=$hardcode_into_libs
25439
25440# Flag to hardcode \$libdir into a binary during linking.
25441# This must work even if \$libdir does not exist.
25442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25443
25444# If ld is used when linking, flag to hardcode \$libdir into
25445# a binary during linking. This must work even if \$libdir does
25446# not exist.
25447hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25448
25449# Whether we need a single -rpath flag with a separated argument.
25450hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25451
25452# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25453# resulting binary.
25454hardcode_direct=$hardcode_direct_RC
25455
25456# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25457# resulting binary.
25458hardcode_minus_L=$hardcode_minus_L_RC
25459
25460# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25461# the resulting binary.
25462hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25463
25464# Set to yes if building a shared library automatically hardcodes DIR into the library
25465# and all subsequent libraries and executables linked against it.
25466hardcode_automatic=$hardcode_automatic_RC
25467
25468# Variables whose values should be saved in libtool wrapper scripts and
25469# restored at relink time.
25470variables_saved_for_relink="$variables_saved_for_relink"
25471
25472# Whether libtool must link a program against all its dependency libraries.
25473link_all_deplibs=$link_all_deplibs_RC
25474
25475# Compile-time system search path for libraries
25476sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25477
25478# Run-time system search path for libraries
25479sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25480
25481# Fix the shell variable \$srcfile for the compiler.
25482fix_srcfile_path="$fix_srcfile_path_RC"
25483
25484# Set to yes if exported symbols are required.
25485always_export_symbols=$always_export_symbols_RC
25486
25487# The commands to list exported symbols.
25488export_symbols_cmds=$lt_export_symbols_cmds_RC
25489
25490# The commands to extract the exported symbol list from a shared archive.
25491extract_expsyms_cmds=$lt_extract_expsyms_cmds
25492
25493# Symbols that should not be listed in the preloaded symbols.
25494exclude_expsyms=$lt_exclude_expsyms_RC
25495
25496# Symbols that must always be exported.
25497include_expsyms=$lt_include_expsyms_RC
25498
25499# ### END LIBTOOL TAG CONFIG: $tagname
25500
25501__EOF__
25502
25503
25504else
25505 # If there is no Makefile yet, we rely on a make rule to execute
25506 # `config.status --recheck' to rerun these tests and create the
25507 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25509 if test -f "$ltmain_in"; then
25510 test -f Makefile && make "$ltmain"
25511 fi
John Criswell47fdd832003-07-14 16:52:07 +000025512fi
25513
25514
25515ac_ext=c
25516ac_cpp='$CPP $CPPFLAGS'
25517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25519ac_compiler_gnu=$ac_cv_c_compiler_gnu
25520
25521CC="$lt_save_CC"
25522
25523 ;;
25524
25525 *)
25526 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25527echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25528 { (exit 1); exit 1; }; }
25529 ;;
25530 esac
25531
25532 # Append the new tag name to the list of available tags.
25533 if test -n "$tagname" ; then
25534 available_tags="$available_tags $tagname"
25535 fi
25536 fi
25537 done
25538 IFS="$lt_save_ifs"
25539
25540 # Now substitute the updated list of available tags.
25541 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25542 mv "${ofile}T" "$ofile"
25543 chmod +x "$ofile"
25544 else
25545 rm -f "${ofile}T"
25546 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25547echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25548 { (exit 1); exit 1; }; }
25549 fi
25550fi
John Criswell7a73b802003-06-30 21:59:07 +000025551
25552
25553
25554# This can be used to rebuild libtool when needed
25555LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25556
25557# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025558LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025559
25560# Prevent multiple expansion
25561
25562
25563
John Criswell47fdd832003-07-14 16:52:07 +000025564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025581
Reid Spencer582a23c2004-12-29 07:07:57 +000025582if test "$lt_cv_dlopen_self" = "yes" ; then
25583
25584cat >>confdefs.h <<\_ACEOF
25585#define CAN_DLOPEN_SELF 1
25586_ACEOF
25587
25588fi
25589
Reid Spencer7931a782004-12-27 06:15:02 +000025590if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025591 LLVMGCC="llvm-gcc${EXEEXT}"
25592 LLVMGXX="llvm-g++${EXEEXT}"
25593 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25594set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025597if test "${ac_cv_path_LLVMGCC+set}" = set; then
25598 echo $ECHO_N "(cached) $ECHO_C" >&6
25599else
25600 case $LLVMGCC in
25601 [\\/]* | ?:[\\/]*)
25602 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25603 ;;
25604 *)
25605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25606for as_dir in $PATH
25607do
25608 IFS=$as_save_IFS
25609 test -z "$as_dir" && as_dir=.
25610 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000025612 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25614 break 2
25615 fi
25616done
25617done
Reid Spencera773bd52006-08-04 18:18:08 +000025618IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025619
Reid Spencer59473af2004-12-25 07:31:29 +000025620 ;;
25621esac
25622fi
25623LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000025624if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025625 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25626echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025627else
Reid Spencera773bd52006-08-04 18:18:08 +000025628 { echo "$as_me:$LINENO: result: no" >&5
25629echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025630fi
25631
Reid Spencera773bd52006-08-04 18:18:08 +000025632
Reid Spencerc84492c2005-06-02 22:34:49 +000025633 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25634set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025637if test "${ac_cv_path_LLVMGXX+set}" = set; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25639else
25640 case $LLVMGXX in
25641 [\\/]* | ?:[\\/]*)
25642 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25643 ;;
25644 *)
25645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25646for as_dir in $PATH
25647do
25648 IFS=$as_save_IFS
25649 test -z "$as_dir" && as_dir=.
25650 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000025652 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25654 break 2
25655 fi
25656done
25657done
Reid Spencera773bd52006-08-04 18:18:08 +000025658IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025659
Reid Spencer59473af2004-12-25 07:31:29 +000025660 ;;
25661esac
25662fi
25663LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000025664if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025665 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25666echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025667else
Reid Spencera773bd52006-08-04 18:18:08 +000025668 { echo "$as_me:$LINENO: result: no" >&5
25669echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025670fi
25671
Reid Spencera773bd52006-08-04 18:18:08 +000025672
Reid Spencer59473af2004-12-25 07:31:29 +000025673else
Devang Patel5d28b882007-12-04 22:54:47 +000025674 if test -z "$LLVMGCC"; then
25675 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25676 fi
25677 if test -z "$LLVMGXX"; then
25678 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25679 fi
Reid Spencer59473af2004-12-25 07:31:29 +000025680 LLVMGCC=$LLVMGCC
25681
25682 LLVMGXX=$LLVMGXX
25683
25684fi
25685
Reid Spencera773bd52006-08-04 18:18:08 +000025686{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25687echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025688
Reid Spencer86901802004-12-08 23:07:27 +000025689ICC=no
25690IXX=no
25691case $CC in
25692 icc*|icpc*)
25693 ICC=yes
25694 IXX=yes
25695 ;;
25696 *)
25697 ;;
25698esac
25699
Duraid Madina937c60a2006-02-15 07:57:42 +000025700if test "$GCC" != "yes" && test "$ICC" != "yes"
25701then
25702 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25703echo "$as_me: error: gcc|icc required but not found" >&2;}
25704 { (exit 1); exit 1; }; }
25705fi
25706
25707if test "$GXX" != "yes" && test "$IXX" != "yes"
25708then
25709 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25710echo "$as_me: error: g++|icc required but not found" >&2;}
25711 { (exit 1); exit 1; }; }
25712fi
25713
Reid Spencer86901802004-12-08 23:07:27 +000025714if test "$GCC" = "yes"
25715then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025716 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025717 if test "$gccmajor" -lt "3"
25718 then
25719 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025720echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25721 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025722 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025723fi
25724
25725if test -z "$llvm_cv_gnu_make_command"
25726then
25727 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25728echo "$as_me: error: GNU Make required but not found" >&2;}
25729 { (exit 1); exit 1; }; }
25730fi
25731
Reid Spencera773bd52006-08-04 18:18:08 +000025732{ echo "$as_me:$LINENO: result: ok" >&5
25733echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025734
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025735
John Criswell7a73b802003-06-30 21:59:07 +000025736
Reid Spencera773bd52006-08-04 18:18:08 +000025737{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25738echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025739if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25741else
25742 ac_check_lib_save_LIBS=$LIBS
25743LIBS="-lelf $LIBS"
25744cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025745/* confdefs.h. */
25746_ACEOF
25747cat confdefs.h >>conftest.$ac_ext
25748cat >>conftest.$ac_ext <<_ACEOF
25749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025750
Reid Spencera773bd52006-08-04 18:18:08 +000025751/* Override any GCC internal prototype to avoid an error.
25752 Use char because int might match the return type of a GCC
25753 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000025754#ifdef __cplusplus
25755extern "C"
25756#endif
John Criswell7a73b802003-06-30 21:59:07 +000025757char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025758int
25759main ()
25760{
Reid Spencera773bd52006-08-04 18:18:08 +000025761return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025762 ;
25763 return 0;
25764}
25765_ACEOF
25766rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025767if { (ac_try="$ac_link"
25768case "(($ac_try" in
25769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770 *) ac_try_echo=$ac_try;;
25771esac
25772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025775 grep -v '^ *+' conftest.er1 >conftest.err
25776 rm -f conftest.er1
25777 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025779 (exit $ac_status); } && {
25780 test -z "$ac_c_werror_flag" ||
25781 test ! -s conftest.err
25782 } && test -s conftest$ac_exeext &&
25783 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000025784 ac_cv_lib_elf_elf_begin=yes
25785else
25786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025787sed 's/^/| /' conftest.$ac_ext >&5
25788
Reid Spencera773bd52006-08-04 18:18:08 +000025789 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000025790fi
Reid Spencera773bd52006-08-04 18:18:08 +000025791
Scott Michel96dcd2b2007-12-05 21:24:02 +000025792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025793 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025794LIBS=$ac_check_lib_save_LIBS
25795fi
Reid Spencera773bd52006-08-04 18:18:08 +000025796{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25797echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025798if test $ac_cv_lib_elf_elf_begin = yes; then
25799 cat >>confdefs.h <<_ACEOF
25800#define HAVE_LIBELF 1
25801_ACEOF
25802
25803 LIBS="-lelf $LIBS"
25804
25805fi
25806
25807
Reid Spencera773bd52006-08-04 18:18:08 +000025808{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
25809echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025810if test "${ac_cv_lib_m_sin+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25812else
25813 ac_check_lib_save_LIBS=$LIBS
25814LIBS="-lm $LIBS"
25815cat >conftest.$ac_ext <<_ACEOF
25816/* confdefs.h. */
25817_ACEOF
25818cat confdefs.h >>conftest.$ac_ext
25819cat >>conftest.$ac_ext <<_ACEOF
25820/* end confdefs.h. */
25821
Reid Spencera773bd52006-08-04 18:18:08 +000025822/* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000025825#ifdef __cplusplus
25826extern "C"
25827#endif
Reid Spencer3484a992006-01-19 08:31:08 +000025828char sin ();
25829int
25830main ()
25831{
Reid Spencera773bd52006-08-04 18:18:08 +000025832return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000025833 ;
25834 return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025838if { (ac_try="$ac_link"
25839case "(($ac_try" in
25840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25841 *) ac_try_echo=$ac_try;;
25842esac
25843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000025845 ac_status=$?
25846 grep -v '^ *+' conftest.er1 >conftest.err
25847 rm -f conftest.er1
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025850 (exit $ac_status); } && {
25851 test -z "$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25853 } && test -s conftest$ac_exeext &&
25854 $as_test_x conftest$ac_exeext; then
Reid Spencer3484a992006-01-19 08:31:08 +000025855 ac_cv_lib_m_sin=yes
25856else
25857 echo "$as_me: failed program was:" >&5
25858sed 's/^/| /' conftest.$ac_ext >&5
25859
Reid Spencera773bd52006-08-04 18:18:08 +000025860 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000025861fi
Reid Spencera773bd52006-08-04 18:18:08 +000025862
Scott Michel96dcd2b2007-12-05 21:24:02 +000025863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer3484a992006-01-19 08:31:08 +000025864 conftest$ac_exeext conftest.$ac_ext
25865LIBS=$ac_check_lib_save_LIBS
25866fi
Reid Spencera773bd52006-08-04 18:18:08 +000025867{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25868echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025869if test $ac_cv_lib_m_sin = yes; then
25870 cat >>confdefs.h <<_ACEOF
25871#define HAVE_LIBM 1
25872_ACEOF
25873
25874 LIBS="-lm $LIBS"
25875
25876fi
25877
Jeff Cohen28783c32007-01-12 18:22:38 +000025878if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025879
Reid Spencera773bd52006-08-04 18:18:08 +000025880{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25881echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025882if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025883 echo $ECHO_N "(cached) $ECHO_C" >&6
25884else
25885 ac_check_lib_save_LIBS=$LIBS
25886LIBS="-limagehlp $LIBS"
25887cat >conftest.$ac_ext <<_ACEOF
25888/* confdefs.h. */
25889_ACEOF
25890cat confdefs.h >>conftest.$ac_ext
25891cat >>conftest.$ac_ext <<_ACEOF
25892/* end confdefs.h. */
25893
Reid Spencer48fdf912006-06-01 19:03:21 +000025894
Reid Spencer484fc8e2006-06-01 16:55:59 +000025895int
25896main ()
25897{
Reid Spencera773bd52006-08-04 18:18:08 +000025898return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025899 ;
25900 return 0;
25901}
25902_ACEOF
25903rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025904if { (ac_try="$ac_link"
25905case "(($ac_try" in
25906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25908esac
25909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025911 ac_status=$?
25912 grep -v '^ *+' conftest.er1 >conftest.err
25913 rm -f conftest.er1
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest$ac_exeext &&
25920 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025921 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025922else
25923 echo "$as_me: failed program was:" >&5
25924sed 's/^/| /' conftest.$ac_ext >&5
25925
Reid Spencera773bd52006-08-04 18:18:08 +000025926 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025927fi
Reid Spencera773bd52006-08-04 18:18:08 +000025928
Scott Michel96dcd2b2007-12-05 21:24:02 +000025929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000025930 conftest$ac_exeext conftest.$ac_ext
25931LIBS=$ac_check_lib_save_LIBS
25932fi
Reid Spencera773bd52006-08-04 18:18:08 +000025933{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25934echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025935if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025936 cat >>confdefs.h <<_ACEOF
25937#define HAVE_LIBIMAGEHLP 1
25938_ACEOF
25939
25940 LIBS="-limagehlp $LIBS"
25941
25942fi
25943
25944
Reid Spencera773bd52006-08-04 18:18:08 +000025945{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25946echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025947if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025948 echo $ECHO_N "(cached) $ECHO_C" >&6
25949else
25950 ac_check_lib_save_LIBS=$LIBS
25951LIBS="-lpsapi $LIBS"
25952cat >conftest.$ac_ext <<_ACEOF
25953/* confdefs.h. */
25954_ACEOF
25955cat confdefs.h >>conftest.$ac_ext
25956cat >>conftest.$ac_ext <<_ACEOF
25957/* end confdefs.h. */
25958
Reid Spencer48fdf912006-06-01 19:03:21 +000025959
Reid Spencer484fc8e2006-06-01 16:55:59 +000025960int
25961main ()
25962{
Reid Spencera773bd52006-08-04 18:18:08 +000025963return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025964 ;
25965 return 0;
25966}
25967_ACEOF
25968rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025969if { (ac_try="$ac_link"
25970case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25973esac
25974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025976 ac_status=$?
25977 grep -v '^ *+' conftest.er1 >conftest.err
25978 rm -f conftest.er1
25979 cat conftest.err >&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025981 (exit $ac_status); } && {
25982 test -z "$ac_c_werror_flag" ||
25983 test ! -s conftest.err
25984 } && test -s conftest$ac_exeext &&
25985 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025986 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025987else
25988 echo "$as_me: failed program was:" >&5
25989sed 's/^/| /' conftest.$ac_ext >&5
25990
Reid Spencera773bd52006-08-04 18:18:08 +000025991 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025992fi
Reid Spencera773bd52006-08-04 18:18:08 +000025993
Scott Michel96dcd2b2007-12-05 21:24:02 +000025994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000025995 conftest$ac_exeext conftest.$ac_ext
25996LIBS=$ac_check_lib_save_LIBS
25997fi
Reid Spencera773bd52006-08-04 18:18:08 +000025998{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25999echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026000if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026001 cat >>confdefs.h <<_ACEOF
26002#define HAVE_LIBPSAPI 1
26003_ACEOF
26004
26005 LIBS="-lpsapi $LIBS"
26006
26007fi
26008
26009fi
Reid Spencer22177fe2005-07-12 15:24:20 +000026010
Reid Spencera773bd52006-08-04 18:18:08 +000026011{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26012echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000026013if test "${ac_cv_search_lt_dlopen+set}" = set; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26015else
26016 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000026017cat >conftest.$ac_ext <<_ACEOF
26018/* confdefs.h. */
26019_ACEOF
26020cat confdefs.h >>conftest.$ac_ext
26021cat >>conftest.$ac_ext <<_ACEOF
26022/* end confdefs.h. */
26023
Reid Spencera773bd52006-08-04 18:18:08 +000026024/* Override any GCC internal prototype to avoid an error.
26025 Use char because int might match the return type of a GCC
26026 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000026027#ifdef __cplusplus
26028extern "C"
26029#endif
Reid Spencer17795972004-11-18 09:47:37 +000026030char lt_dlopen ();
26031int
26032main ()
26033{
Reid Spencera773bd52006-08-04 18:18:08 +000026034return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000026035 ;
26036 return 0;
26037}
26038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026039for ac_lib in '' ltdl; do
26040 if test -z "$ac_lib"; then
26041 ac_res="none required"
26042 else
26043 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000026044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026045 fi
26046 rm -f conftest.$ac_objext conftest$ac_exeext
26047if { (ac_try="$ac_link"
26048case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26051esac
26052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000026054 ac_status=$?
26055 grep -v '^ *+' conftest.er1 >conftest.err
26056 rm -f conftest.er1
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026059 (exit $ac_status); } && {
26060 test -z "$ac_c_werror_flag" ||
26061 test ! -s conftest.err
26062 } && test -s conftest$ac_exeext &&
26063 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026064 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000026065else
26066 echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
Reid Spencera773bd52006-08-04 18:18:08 +000026069
Reid Spencer17795972004-11-18 09:47:37 +000026070fi
Reid Spencera773bd52006-08-04 18:18:08 +000026071
Scott Michel96dcd2b2007-12-05 21:24:02 +000026072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026073 conftest$ac_exeext
26074 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26075 break
Reid Spencer17795972004-11-18 09:47:37 +000026076fi
Reid Spencera773bd52006-08-04 18:18:08 +000026077done
26078if test "${ac_cv_search_lt_dlopen+set}" = set; then
26079 :
26080else
26081 ac_cv_search_lt_dlopen=no
26082fi
26083rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000026084LIBS=$ac_func_search_save_LIBS
26085fi
Reid Spencera773bd52006-08-04 18:18:08 +000026086{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26087echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26088ac_res=$ac_cv_search_lt_dlopen
26089if test "$ac_res" != no; then
26090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000026091
26092cat >>confdefs.h <<\_ACEOF
26093#define HAVE_LT_DLOPEN 1
26094_ACEOF
26095
26096else
26097 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26098 not be available" >&5
26099echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26100 not be available" >&2;}
26101fi
26102
26103
Reid Spencera773bd52006-08-04 18:18:08 +000026104{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26105echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026106if test "${ac_cv_search_dlopen+set}" = set; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26108else
26109 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026110cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026111/* confdefs.h. */
26112_ACEOF
26113cat confdefs.h >>conftest.$ac_ext
26114cat >>conftest.$ac_ext <<_ACEOF
26115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026116
Reid Spencera773bd52006-08-04 18:18:08 +000026117/* Override any GCC internal prototype to avoid an error.
26118 Use char because int might match the return type of a GCC
26119 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026120#ifdef __cplusplus
26121extern "C"
26122#endif
John Criswell7a73b802003-06-30 21:59:07 +000026123char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026124int
26125main ()
26126{
Reid Spencera773bd52006-08-04 18:18:08 +000026127return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026128 ;
26129 return 0;
26130}
26131_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026132for ac_lib in '' dl; do
26133 if test -z "$ac_lib"; then
26134 ac_res="none required"
26135 else
26136 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026138 fi
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140if { (ac_try="$ac_link"
26141case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26144esac
26145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026148 grep -v '^ *+' conftest.er1 >conftest.err
26149 rm -f conftest.er1
26150 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026152 (exit $ac_status); } && {
26153 test -z "$ac_c_werror_flag" ||
26154 test ! -s conftest.err
26155 } && test -s conftest$ac_exeext &&
26156 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026157 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026158else
26159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026160sed 's/^/| /' conftest.$ac_ext >&5
26161
Reid Spencera773bd52006-08-04 18:18:08 +000026162
John Criswell7a73b802003-06-30 21:59:07 +000026163fi
Reid Spencera773bd52006-08-04 18:18:08 +000026164
Scott Michel96dcd2b2007-12-05 21:24:02 +000026165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026166 conftest$ac_exeext
26167 if test "${ac_cv_search_dlopen+set}" = set; then
26168 break
John Criswell7a73b802003-06-30 21:59:07 +000026169fi
Reid Spencera773bd52006-08-04 18:18:08 +000026170done
26171if test "${ac_cv_search_dlopen+set}" = set; then
26172 :
26173else
26174 ac_cv_search_dlopen=no
26175fi
26176rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026177LIBS=$ac_func_search_save_LIBS
26178fi
Reid Spencera773bd52006-08-04 18:18:08 +000026179{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26180echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26181ac_res=$ac_cv_search_dlopen
26182if test "$ac_res" != no; then
26183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026184
26185cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000026186#define HAVE_DLOPEN 1
26187_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026188
26189else
Brian Gaekec45be042003-10-07 06:01:34 +000026190 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26191echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000026192fi
26193
26194
Reid Spencera773bd52006-08-04 18:18:08 +000026195{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26196echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026197if test "${ac_cv_search_mallinfo+set}" = set; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26199else
26200 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026201cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026202/* confdefs.h. */
26203_ACEOF
26204cat confdefs.h >>conftest.$ac_ext
26205cat >>conftest.$ac_ext <<_ACEOF
26206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026207
Reid Spencera773bd52006-08-04 18:18:08 +000026208/* Override any GCC internal prototype to avoid an error.
26209 Use char because int might match the return type of a GCC
26210 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026211#ifdef __cplusplus
26212extern "C"
26213#endif
John Criswell7a73b802003-06-30 21:59:07 +000026214char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026215int
26216main ()
26217{
Reid Spencera773bd52006-08-04 18:18:08 +000026218return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026219 ;
26220 return 0;
26221}
26222_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026223for ac_lib in '' malloc; do
26224 if test -z "$ac_lib"; then
26225 ac_res="none required"
26226 else
26227 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026229 fi
26230 rm -f conftest.$ac_objext conftest$ac_exeext
26231if { (ac_try="$ac_link"
26232case "(($ac_try" in
26233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26234 *) ac_try_echo=$ac_try;;
26235esac
26236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26237 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026239 grep -v '^ *+' conftest.er1 >conftest.err
26240 rm -f conftest.er1
26241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026243 (exit $ac_status); } && {
26244 test -z "$ac_c_werror_flag" ||
26245 test ! -s conftest.err
26246 } && test -s conftest$ac_exeext &&
26247 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026248 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026249else
26250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026251sed 's/^/| /' conftest.$ac_ext >&5
26252
Reid Spencera773bd52006-08-04 18:18:08 +000026253
John Criswell7a73b802003-06-30 21:59:07 +000026254fi
Reid Spencera773bd52006-08-04 18:18:08 +000026255
Scott Michel96dcd2b2007-12-05 21:24:02 +000026256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026257 conftest$ac_exeext
26258 if test "${ac_cv_search_mallinfo+set}" = set; then
26259 break
John Criswell7a73b802003-06-30 21:59:07 +000026260fi
Reid Spencera773bd52006-08-04 18:18:08 +000026261done
26262if test "${ac_cv_search_mallinfo+set}" = set; then
26263 :
26264else
26265 ac_cv_search_mallinfo=no
26266fi
26267rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026268LIBS=$ac_func_search_save_LIBS
26269fi
Reid Spencera773bd52006-08-04 18:18:08 +000026270{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26271echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26272ac_res=$ac_cv_search_mallinfo
26273if test "$ac_res" != no; then
26274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026275
26276cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026277#define HAVE_MALLINFO 1
26278_ACEOF
26279
26280fi
26281
26282
Reid Spencer0a262ba2005-08-24 10:07:20 +000026283if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026284
Reid Spencera773bd52006-08-04 18:18:08 +000026285{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26286echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026287if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26289else
26290 ac_check_lib_save_LIBS=$LIBS
26291LIBS="-lpthread $LIBS"
26292cat >conftest.$ac_ext <<_ACEOF
26293/* confdefs.h. */
26294_ACEOF
26295cat confdefs.h >>conftest.$ac_ext
26296cat >>conftest.$ac_ext <<_ACEOF
26297/* end confdefs.h. */
26298
Reid Spencera773bd52006-08-04 18:18:08 +000026299/* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000026302#ifdef __cplusplus
26303extern "C"
26304#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000026305char pthread_mutex_init ();
26306int
26307main ()
26308{
Reid Spencera773bd52006-08-04 18:18:08 +000026309return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000026310 ;
26311 return 0;
26312}
26313_ACEOF
26314rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026315if { (ac_try="$ac_link"
26316case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26319esac
26320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000026322 ac_status=$?
26323 grep -v '^ *+' conftest.er1 >conftest.err
26324 rm -f conftest.er1
26325 cat conftest.err >&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026327 (exit $ac_status); } && {
26328 test -z "$ac_c_werror_flag" ||
26329 test ! -s conftest.err
26330 } && test -s conftest$ac_exeext &&
26331 $as_test_x conftest$ac_exeext; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026332 ac_cv_lib_pthread_pthread_mutex_init=yes
26333else
26334 echo "$as_me: failed program was:" >&5
26335sed 's/^/| /' conftest.$ac_ext >&5
26336
Reid Spencera773bd52006-08-04 18:18:08 +000026337 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000026338fi
Reid Spencera773bd52006-08-04 18:18:08 +000026339
Scott Michel96dcd2b2007-12-05 21:24:02 +000026340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer22177fe2005-07-12 15:24:20 +000026341 conftest$ac_exeext conftest.$ac_ext
26342LIBS=$ac_check_lib_save_LIBS
26343fi
Reid Spencera773bd52006-08-04 18:18:08 +000026344{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26345echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026346if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26347 cat >>confdefs.h <<_ACEOF
26348#define HAVE_LIBPTHREAD 1
26349_ACEOF
26350
26351 LIBS="-lpthread $LIBS"
26352
26353fi
26354
Reid Spencera773bd52006-08-04 18:18:08 +000026355 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26356echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000026357if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26359else
26360 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000026361cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026362/* confdefs.h. */
26363_ACEOF
26364cat confdefs.h >>conftest.$ac_ext
26365cat >>conftest.$ac_ext <<_ACEOF
26366/* end confdefs.h. */
26367
Reid Spencera773bd52006-08-04 18:18:08 +000026368/* Override any GCC internal prototype to avoid an error.
26369 Use char because int might match the return type of a GCC
26370 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000026371#ifdef __cplusplus
26372extern "C"
26373#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000026374char pthread_mutex_lock ();
26375int
26376main ()
26377{
Reid Spencera773bd52006-08-04 18:18:08 +000026378return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000026379 ;
26380 return 0;
26381}
26382_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026383for ac_lib in '' pthread; do
26384 if test -z "$ac_lib"; then
26385 ac_res="none required"
26386 else
26387 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000026388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026389 fi
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391if { (ac_try="$ac_link"
26392case "(($ac_try" in
26393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394 *) ac_try_echo=$ac_try;;
26395esac
26396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026399 grep -v '^ *+' conftest.er1 >conftest.err
26400 rm -f conftest.er1
26401 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026403 (exit $ac_status); } && {
26404 test -z "$ac_c_werror_flag" ||
26405 test ! -s conftest.err
26406 } && test -s conftest$ac_exeext &&
26407 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026408 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000026409else
26410 echo "$as_me: failed program was:" >&5
26411sed 's/^/| /' conftest.$ac_ext >&5
26412
Reid Spencera773bd52006-08-04 18:18:08 +000026413
Brian Gaeke5f268f72003-12-05 19:29:01 +000026414fi
Reid Spencera773bd52006-08-04 18:18:08 +000026415
Scott Michel96dcd2b2007-12-05 21:24:02 +000026416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026417 conftest$ac_exeext
26418 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26419 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000026420fi
Reid Spencera773bd52006-08-04 18:18:08 +000026421done
26422if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26423 :
26424else
26425 ac_cv_search_pthread_mutex_lock=no
26426fi
26427rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026428LIBS=$ac_func_search_save_LIBS
26429fi
Reid Spencera773bd52006-08-04 18:18:08 +000026430{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26431echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26432ac_res=$ac_cv_search_pthread_mutex_lock
26433if test "$ac_res" != no; then
26434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026435
John Criswell40468462004-09-24 21:19:06 +000026436cat >>confdefs.h <<\_ACEOF
26437#define HAVE_PTHREAD_MUTEX_LOCK 1
26438_ACEOF
26439
26440fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026441
Reid Spencer0a262ba2005-08-24 10:07:20 +000026442fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026443
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026444
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026445# Check whether --with-udis86 was given.
26446if test "${with_udis86+set}" = set; then
26447 withval=$with_udis86;
26448 USE_UDIS86=1
26449
26450 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000026451 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026452 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26453 esac
26454
26455{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26456echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26457if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26459else
26460 ac_check_lib_save_LIBS=$LIBS
26461LIBS="-ludis86 $LIBS"
26462cat >conftest.$ac_ext <<_ACEOF
26463/* confdefs.h. */
26464_ACEOF
26465cat confdefs.h >>conftest.$ac_ext
26466cat >>conftest.$ac_ext <<_ACEOF
26467/* end confdefs.h. */
26468
26469/* Override any GCC internal prototype to avoid an error.
26470 Use char because int might match the return type of a GCC
26471 builtin and then its argument prototype would still apply. */
26472#ifdef __cplusplus
26473extern "C"
26474#endif
26475char ud_init ();
26476int
26477main ()
26478{
26479return ud_init ();
26480 ;
26481 return 0;
26482}
26483_ACEOF
26484rm -f conftest.$ac_objext conftest$ac_exeext
26485if { (ac_try="$ac_link"
26486case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26489esac
26490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26492 ac_status=$?
26493 grep -v '^ *+' conftest.er1 >conftest.err
26494 rm -f conftest.er1
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026502 ac_cv_lib_udis86_ud_init=yes
26503else
26504 echo "$as_me: failed program was:" >&5
26505sed 's/^/| /' conftest.$ac_ext >&5
26506
26507 ac_cv_lib_udis86_ud_init=no
26508fi
26509
Scott Michel96dcd2b2007-12-05 21:24:02 +000026510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026511 conftest$ac_exeext conftest.$ac_ext
26512LIBS=$ac_check_lib_save_LIBS
26513fi
26514{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26515echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26516if test $ac_cv_lib_udis86_ud_init = yes; then
26517 cat >>confdefs.h <<_ACEOF
26518#define HAVE_LIBUDIS86 1
26519_ACEOF
26520
26521 LIBS="-ludis86 $LIBS"
26522
26523else
26524
26525 echo "Error! You need to have libudis86 around."
26526 exit -1
26527
26528fi
26529
26530
26531else
26532 USE_UDIS86=0
26533
26534fi
26535
26536
26537cat >>confdefs.h <<_ACEOF
26538#define USE_UDIS86 $USE_UDIS86
26539_ACEOF
26540
26541
26542
Reid Spencer59473af2004-12-25 07:31:29 +000026543
26544
26545
26546
26547
26548ac_header_dirent=no
26549for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26550 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000026551{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26552echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026554 echo $ECHO_N "(cached) $ECHO_C" >&6
26555else
26556 cat >conftest.$ac_ext <<_ACEOF
26557/* confdefs.h. */
26558_ACEOF
26559cat confdefs.h >>conftest.$ac_ext
26560cat >>conftest.$ac_ext <<_ACEOF
26561/* end confdefs.h. */
26562#include <sys/types.h>
26563#include <$ac_hdr>
26564
26565int
26566main ()
26567{
26568if ((DIR *) 0)
26569return 0;
26570 ;
26571 return 0;
26572}
26573_ACEOF
26574rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026575if { (ac_try="$ac_compile"
26576case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26579esac
26580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026582 ac_status=$?
26583 grep -v '^ *+' conftest.er1 >conftest.err
26584 rm -f conftest.er1
26585 cat conftest.err >&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026587 (exit $ac_status); } && {
26588 test -z "$ac_c_werror_flag" ||
26589 test ! -s conftest.err
26590 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026591 eval "$as_ac_Header=yes"
26592else
26593 echo "$as_me: failed program was:" >&5
26594sed 's/^/| /' conftest.$ac_ext >&5
26595
Reid Spencera773bd52006-08-04 18:18:08 +000026596 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000026597fi
Reid Spencera773bd52006-08-04 18:18:08 +000026598
26599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026600fi
Reid Spencera773bd52006-08-04 18:18:08 +000026601ac_res=`eval echo '${'$as_ac_Header'}'`
26602 { echo "$as_me:$LINENO: result: $ac_res" >&5
26603echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026604if test `eval echo '${'$as_ac_Header'}'` = yes; then
26605 cat >>confdefs.h <<_ACEOF
26606#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26607_ACEOF
26608
26609ac_header_dirent=$ac_hdr; break
26610fi
26611
26612done
26613# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26614if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000026615 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26616echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026617if test "${ac_cv_search_opendir+set}" = set; then
26618 echo $ECHO_N "(cached) $ECHO_C" >&6
26619else
26620 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026621cat >conftest.$ac_ext <<_ACEOF
26622/* confdefs.h. */
26623_ACEOF
26624cat confdefs.h >>conftest.$ac_ext
26625cat >>conftest.$ac_ext <<_ACEOF
26626/* end confdefs.h. */
26627
Reid Spencera773bd52006-08-04 18:18:08 +000026628/* Override any GCC internal prototype to avoid an error.
26629 Use char because int might match the return type of a GCC
26630 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026631#ifdef __cplusplus
26632extern "C"
26633#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026634char opendir ();
26635int
26636main ()
26637{
Reid Spencera773bd52006-08-04 18:18:08 +000026638return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026639 ;
26640 return 0;
26641}
26642_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026643for ac_lib in '' dir; do
26644 if test -z "$ac_lib"; then
26645 ac_res="none required"
26646 else
26647 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026649 fi
26650 rm -f conftest.$ac_objext conftest$ac_exeext
26651if { (ac_try="$ac_link"
26652case "(($ac_try" in
26653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654 *) ac_try_echo=$ac_try;;
26655esac
26656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026658 ac_status=$?
26659 grep -v '^ *+' conftest.er1 >conftest.err
26660 rm -f conftest.er1
26661 cat conftest.err >&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026663 (exit $ac_status); } && {
26664 test -z "$ac_c_werror_flag" ||
26665 test ! -s conftest.err
26666 } && test -s conftest$ac_exeext &&
26667 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026668 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026669else
26670 echo "$as_me: failed program was:" >&5
26671sed 's/^/| /' conftest.$ac_ext >&5
26672
Reid Spencera773bd52006-08-04 18:18:08 +000026673
Reid Spencer59473af2004-12-25 07:31:29 +000026674fi
Reid Spencera773bd52006-08-04 18:18:08 +000026675
Scott Michel96dcd2b2007-12-05 21:24:02 +000026676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026677 conftest$ac_exeext
26678 if test "${ac_cv_search_opendir+set}" = set; then
26679 break
Reid Spencer59473af2004-12-25 07:31:29 +000026680fi
Reid Spencera773bd52006-08-04 18:18:08 +000026681done
26682if test "${ac_cv_search_opendir+set}" = set; then
26683 :
26684else
26685 ac_cv_search_opendir=no
26686fi
26687rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026688LIBS=$ac_func_search_save_LIBS
26689fi
Reid Spencera773bd52006-08-04 18:18:08 +000026690{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26691echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26692ac_res=$ac_cv_search_opendir
26693if test "$ac_res" != no; then
26694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026695
26696fi
26697
26698else
Reid Spencera773bd52006-08-04 18:18:08 +000026699 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26700echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026701if test "${ac_cv_search_opendir+set}" = set; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26703else
26704 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026705cat >conftest.$ac_ext <<_ACEOF
26706/* confdefs.h. */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h. */
26711
Reid Spencera773bd52006-08-04 18:18:08 +000026712/* Override any GCC internal prototype to avoid an error.
26713 Use char because int might match the return type of a GCC
26714 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026715#ifdef __cplusplus
26716extern "C"
26717#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026718char opendir ();
26719int
26720main ()
26721{
Reid Spencera773bd52006-08-04 18:18:08 +000026722return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026723 ;
26724 return 0;
26725}
26726_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026727for ac_lib in '' x; do
26728 if test -z "$ac_lib"; then
26729 ac_res="none required"
26730 else
26731 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026733 fi
26734 rm -f conftest.$ac_objext conftest$ac_exeext
26735if { (ac_try="$ac_link"
26736case "(($ac_try" in
26737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738 *) ac_try_echo=$ac_try;;
26739esac
26740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026742 ac_status=$?
26743 grep -v '^ *+' conftest.er1 >conftest.err
26744 rm -f conftest.er1
26745 cat conftest.err >&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026747 (exit $ac_status); } && {
26748 test -z "$ac_c_werror_flag" ||
26749 test ! -s conftest.err
26750 } && test -s conftest$ac_exeext &&
26751 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026752 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026753else
26754 echo "$as_me: failed program was:" >&5
26755sed 's/^/| /' conftest.$ac_ext >&5
26756
Reid Spencera773bd52006-08-04 18:18:08 +000026757
Reid Spencer59473af2004-12-25 07:31:29 +000026758fi
Reid Spencera773bd52006-08-04 18:18:08 +000026759
Scott Michel96dcd2b2007-12-05 21:24:02 +000026760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026761 conftest$ac_exeext
26762 if test "${ac_cv_search_opendir+set}" = set; then
26763 break
Reid Spencer59473af2004-12-25 07:31:29 +000026764fi
Reid Spencera773bd52006-08-04 18:18:08 +000026765done
26766if test "${ac_cv_search_opendir+set}" = set; then
26767 :
26768else
26769 ac_cv_search_opendir=no
26770fi
26771rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026772LIBS=$ac_func_search_save_LIBS
26773fi
Reid Spencera773bd52006-08-04 18:18:08 +000026774{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26775echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26776ac_res=$ac_cv_search_opendir
26777if test "$ac_res" != no; then
26778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026779
26780fi
26781
26782fi
26783
Reid Spencera773bd52006-08-04 18:18:08 +000026784{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26785echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026786if test "${ac_cv_header_mmap_anon+set}" = set; then
26787 echo $ECHO_N "(cached) $ECHO_C" >&6
26788else
26789 ac_ext=c
26790ac_cpp='$CPP $CPPFLAGS'
26791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26793ac_compiler_gnu=$ac_cv_c_compiler_gnu
26794
26795 cat >conftest.$ac_ext <<_ACEOF
26796/* confdefs.h. */
26797_ACEOF
26798cat confdefs.h >>conftest.$ac_ext
26799cat >>conftest.$ac_ext <<_ACEOF
26800/* end confdefs.h. */
26801#include <sys/mman.h>
26802#include <unistd.h>
26803#include <fcntl.h>
26804int
26805main ()
26806{
26807mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026813if { (ac_try="$ac_compile"
26814case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26817esac
26818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026820 ac_status=$?
26821 grep -v '^ *+' conftest.er1 >conftest.err
26822 rm -f conftest.er1
26823 cat conftest.err >&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026825 (exit $ac_status); } && {
26826 test -z "$ac_c_werror_flag" ||
26827 test ! -s conftest.err
26828 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026829 ac_cv_header_mmap_anon=yes
26830else
26831 echo "$as_me: failed program was:" >&5
26832sed 's/^/| /' conftest.$ac_ext >&5
26833
Reid Spencera773bd52006-08-04 18:18:08 +000026834 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000026835fi
Reid Spencera773bd52006-08-04 18:18:08 +000026836
26837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026838 ac_ext=c
26839ac_cpp='$CPP $CPPFLAGS'
26840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26842ac_compiler_gnu=$ac_cv_c_compiler_gnu
26843
26844
26845fi
Reid Spencera773bd52006-08-04 18:18:08 +000026846{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26847echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026848if test "$ac_cv_header_mmap_anon" = yes; then
26849
26850cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026851#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026852_ACEOF
26853
26854fi
26855
Reid Spencera773bd52006-08-04 18:18:08 +000026856{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26857echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026858if test "${ac_cv_header_stat_broken+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26860else
26861 cat >conftest.$ac_ext <<_ACEOF
26862/* confdefs.h. */
26863_ACEOF
26864cat confdefs.h >>conftest.$ac_ext
26865cat >>conftest.$ac_ext <<_ACEOF
26866/* end confdefs.h. */
26867#include <sys/types.h>
26868#include <sys/stat.h>
26869
Reid Spencera773bd52006-08-04 18:18:08 +000026870#if defined S_ISBLK && defined S_IFDIR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026871extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026872#endif
26873
Reid Spencera773bd52006-08-04 18:18:08 +000026874#if defined S_ISBLK && defined S_IFCHR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026875extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026876#endif
26877
Reid Spencera773bd52006-08-04 18:18:08 +000026878#if defined S_ISLNK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026879extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026880#endif
26881
Reid Spencera773bd52006-08-04 18:18:08 +000026882#if defined S_ISSOCK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026883extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026884#endif
26885
26886_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +000026887rm -f conftest.$ac_objext
26888if { (ac_try="$ac_compile"
26889case "(($ac_try" in
26890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26892esac
26893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_compile") 2>conftest.er1
26895 ac_status=$?
26896 grep -v '^ *+' conftest.er1 >conftest.err
26897 rm -f conftest.er1
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } && {
26901 test -z "$ac_c_werror_flag" ||
26902 test ! -s conftest.err
26903 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026904 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000026905else
26906 echo "$as_me: failed program was:" >&5
26907sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer59473af2004-12-25 07:31:29 +000026908
Scott Michel96dcd2b2007-12-05 21:24:02 +000026909 ac_cv_header_stat_broken=yes
26910fi
26911
26912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026913fi
Reid Spencera773bd52006-08-04 18:18:08 +000026914{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26915echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026916if test $ac_cv_header_stat_broken = yes; then
26917
26918cat >>confdefs.h <<\_ACEOF
26919#define STAT_MACROS_BROKEN 1
26920_ACEOF
26921
26922fi
26923
Reid Spencera773bd52006-08-04 18:18:08 +000026924{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26925echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026926if test "${ac_cv_header_stdc+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26928else
26929 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026930/* confdefs.h. */
26931_ACEOF
26932cat confdefs.h >>conftest.$ac_ext
26933cat >>conftest.$ac_ext <<_ACEOF
26934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026935#include <stdlib.h>
26936#include <stdarg.h>
26937#include <string.h>
26938#include <float.h>
26939
John Criswell0c38eaf2003-09-10 15:17:25 +000026940int
26941main ()
26942{
26943
26944 ;
26945 return 0;
26946}
John Criswell7a73b802003-06-30 21:59:07 +000026947_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026948rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026949if { (ac_try="$ac_compile"
26950case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26953esac
26954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026957 grep -v '^ *+' conftest.er1 >conftest.err
26958 rm -f conftest.er1
26959 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026961 (exit $ac_status); } && {
26962 test -z "$ac_c_werror_flag" ||
26963 test ! -s conftest.err
26964 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000026965 ac_cv_header_stdc=yes
26966else
26967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026968sed 's/^/| /' conftest.$ac_ext >&5
26969
Reid Spencera773bd52006-08-04 18:18:08 +000026970 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026971fi
Reid Spencera773bd52006-08-04 18:18:08 +000026972
26973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026974
26975if test $ac_cv_header_stdc = yes; then
26976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26977 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026978/* confdefs.h. */
26979_ACEOF
26980cat confdefs.h >>conftest.$ac_ext
26981cat >>conftest.$ac_ext <<_ACEOF
26982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026983#include <string.h>
26984
26985_ACEOF
26986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026987 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026988 :
26989else
26990 ac_cv_header_stdc=no
26991fi
26992rm -f conftest*
26993
26994fi
26995
26996if test $ac_cv_header_stdc = yes; then
26997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26998 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026999/* confdefs.h. */
27000_ACEOF
27001cat confdefs.h >>conftest.$ac_ext
27002cat >>conftest.$ac_ext <<_ACEOF
27003/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027004#include <stdlib.h>
27005
27006_ACEOF
27007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027008 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027009 :
27010else
27011 ac_cv_header_stdc=no
27012fi
27013rm -f conftest*
27014
27015fi
27016
27017if test $ac_cv_header_stdc = yes; then
27018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27019 if test "$cross_compiling" = yes; then
27020 :
27021else
27022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027023/* confdefs.h. */
27024_ACEOF
27025cat confdefs.h >>conftest.$ac_ext
27026cat >>conftest.$ac_ext <<_ACEOF
27027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027028#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000027029#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000027030#if ((' ' & 0x0FF) == 0x020)
27031# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27032# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27033#else
John Criswell0c38eaf2003-09-10 15:17:25 +000027034# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027035 (('a' <= (c) && (c) <= 'i') \
27036 || ('j' <= (c) && (c) <= 'r') \
27037 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000027038# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27039#endif
27040
27041#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27042int
27043main ()
27044{
27045 int i;
27046 for (i = 0; i < 256; i++)
27047 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000027048 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000027049 return 2;
27050 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000027051}
27052_ACEOF
27053rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027054if { (ac_try="$ac_link"
27055case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27058esac
27059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027064 { (case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27067esac
27068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027070 ac_status=$?
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; }; then
27073 :
27074else
27075 echo "$as_me: program exited with status $ac_status" >&5
27076echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027077sed 's/^/| /' conftest.$ac_ext >&5
27078
John Criswell7a73b802003-06-30 21:59:07 +000027079( exit $ac_status )
27080ac_cv_header_stdc=no
27081fi
Reid Spencera773bd52006-08-04 18:18:08 +000027082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27083fi
27084
27085
John Criswell7a73b802003-06-30 21:59:07 +000027086fi
27087fi
Reid Spencera773bd52006-08-04 18:18:08 +000027088{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27089echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027090if test $ac_cv_header_stdc = yes; then
27091
27092cat >>confdefs.h <<\_ACEOF
27093#define STDC_HEADERS 1
27094_ACEOF
27095
27096fi
27097
Reid Spencera773bd52006-08-04 18:18:08 +000027098{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27099echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027100if test "${ac_cv_header_sys_wait_h+set}" = set; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27102else
27103 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027104/* confdefs.h. */
27105_ACEOF
27106cat confdefs.h >>conftest.$ac_ext
27107cat >>conftest.$ac_ext <<_ACEOF
27108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027109#include <sys/types.h>
27110#include <sys/wait.h>
27111#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000027112# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000027113#endif
27114#ifndef WIFEXITED
27115# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27116#endif
27117
John Criswell7a73b802003-06-30 21:59:07 +000027118int
27119main ()
27120{
27121 int s;
27122 wait (&s);
27123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27124 ;
27125 return 0;
27126}
27127_ACEOF
27128rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027129if { (ac_try="$ac_compile"
27130case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27133esac
27134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027136 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027137 grep -v '^ *+' conftest.er1 >conftest.err
27138 rm -f conftest.er1
27139 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027141 (exit $ac_status); } && {
27142 test -z "$ac_c_werror_flag" ||
27143 test ! -s conftest.err
27144 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027145 ac_cv_header_sys_wait_h=yes
27146else
27147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027148sed 's/^/| /' conftest.$ac_ext >&5
27149
Reid Spencera773bd52006-08-04 18:18:08 +000027150 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000027151fi
Reid Spencera773bd52006-08-04 18:18:08 +000027152
27153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027154fi
Reid Spencera773bd52006-08-04 18:18:08 +000027155{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27156echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027157if test $ac_cv_header_sys_wait_h = yes; then
27158
27159cat >>confdefs.h <<\_ACEOF
27160#define HAVE_SYS_WAIT_H 1
27161_ACEOF
27162
27163fi
27164
Reid Spencera773bd52006-08-04 18:18:08 +000027165{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27166echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027167if test "${ac_cv_header_time+set}" = set; then
27168 echo $ECHO_N "(cached) $ECHO_C" >&6
27169else
27170 cat >conftest.$ac_ext <<_ACEOF
27171/* confdefs.h. */
27172_ACEOF
27173cat confdefs.h >>conftest.$ac_ext
27174cat >>conftest.$ac_ext <<_ACEOF
27175/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027176#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027177#include <sys/time.h>
27178#include <time.h>
27179
27180int
27181main ()
27182{
27183if ((struct tm *) 0)
27184return 0;
27185 ;
27186 return 0;
27187}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027188_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027189rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027190if { (ac_try="$ac_compile"
27191case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27194esac
27195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027197 ac_status=$?
27198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027202 (exit $ac_status); } && {
27203 test -z "$ac_c_werror_flag" ||
27204 test ! -s conftest.err
27205 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027206 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027207else
27208 echo "$as_me: failed program was:" >&5
27209sed 's/^/| /' conftest.$ac_ext >&5
27210
Reid Spencera773bd52006-08-04 18:18:08 +000027211 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027212fi
Reid Spencera773bd52006-08-04 18:18:08 +000027213
27214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027215fi
Reid Spencera773bd52006-08-04 18:18:08 +000027216{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27217echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027218if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027219
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027220cat >>confdefs.h <<\_ACEOF
27221#define TIME_WITH_SYS_TIME 1
27222_ACEOF
27223
27224fi
27225
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027226
Reid Spencer59473af2004-12-25 07:31:29 +000027227
27228
27229
27230
27231
27232
27233for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27234do
27235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027240 echo $ECHO_N "(cached) $ECHO_C" >&6
27241fi
Reid Spencera773bd52006-08-04 18:18:08 +000027242ac_res=`eval echo '${'$as_ac_Header'}'`
27243 { echo "$as_me:$LINENO: result: $ac_res" >&5
27244echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027245else
27246 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027249cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027250/* confdefs.h. */
27251_ACEOF
27252cat confdefs.h >>conftest.$ac_ext
27253cat >>conftest.$ac_ext <<_ACEOF
27254/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027255$ac_includes_default
27256#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027257_ACEOF
27258rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027259if { (ac_try="$ac_compile"
27260case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27263esac
27264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027266 ac_status=$?
27267 grep -v '^ *+' conftest.er1 >conftest.err
27268 rm -f conftest.er1
27269 cat conftest.err >&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027271 (exit $ac_status); } && {
27272 test -z "$ac_c_werror_flag" ||
27273 test ! -s conftest.err
27274 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027275 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027276else
27277 echo "$as_me: failed program was:" >&5
27278sed 's/^/| /' conftest.$ac_ext >&5
27279
Reid Spencera773bd52006-08-04 18:18:08 +000027280 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027281fi
Reid Spencera773bd52006-08-04 18:18:08 +000027282
27283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27285echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027286
Reid Spencer59473af2004-12-25 07:31:29 +000027287# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027290cat >conftest.$ac_ext <<_ACEOF
27291/* confdefs.h. */
27292_ACEOF
27293cat confdefs.h >>conftest.$ac_ext
27294cat >>conftest.$ac_ext <<_ACEOF
27295/* end confdefs.h. */
27296#include <$ac_header>
27297_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027298if { (ac_try="$ac_cpp conftest.$ac_ext"
27299case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27302esac
27303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027305 ac_status=$?
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027310 (exit $ac_status); } >/dev/null && {
27311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027314 ac_header_preproc=yes
27315else
27316 echo "$as_me: failed program was:" >&5
27317sed 's/^/| /' conftest.$ac_ext >&5
27318
27319 ac_header_preproc=no
27320fi
Reid Spencera773bd52006-08-04 18:18:08 +000027321
Reid Spencer59473af2004-12-25 07:31:29 +000027322rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27324echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027325
27326# So? What about this header?
27327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27328 yes:no: )
27329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27333 ac_header_preproc=yes
27334 ;;
27335 no:yes:* )
27336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027348 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027349## ----------------------------------- ##
27350## Report this to llvmbugs@cs.uiuc.edu ##
27351## ----------------------------------- ##
27352_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027353 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027354 ;;
27355esac
Reid Spencera773bd52006-08-04 18:18:08 +000027356{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027359 echo $ECHO_N "(cached) $ECHO_C" >&6
27360else
27361 eval "$as_ac_Header=\$ac_header_preproc"
27362fi
Reid Spencera773bd52006-08-04 18:18:08 +000027363ac_res=`eval echo '${'$as_ac_Header'}'`
27364 { echo "$as_me:$LINENO: result: $ac_res" >&5
27365echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027366
27367fi
Reid Spencer59473af2004-12-25 07:31:29 +000027368if test `eval echo '${'$as_ac_Header'}'` = yes; then
27369 cat >>confdefs.h <<_ACEOF
27370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027372
27373fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027374
Reid Spencer59473af2004-12-25 07:31:29 +000027375done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027376
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027377
27378
Reid Spencer59473af2004-12-25 07:31:29 +000027379
27380
27381
27382
Reid Spencercdb08a32006-06-05 16:11:07 +000027383for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027384do
27385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027390 echo $ECHO_N "(cached) $ECHO_C" >&6
27391fi
Reid Spencera773bd52006-08-04 18:18:08 +000027392ac_res=`eval echo '${'$as_ac_Header'}'`
27393 { echo "$as_me:$LINENO: result: $ac_res" >&5
27394echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027395else
27396 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027397{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027399cat >conftest.$ac_ext <<_ACEOF
27400/* confdefs.h. */
27401_ACEOF
27402cat confdefs.h >>conftest.$ac_ext
27403cat >>conftest.$ac_ext <<_ACEOF
27404/* end confdefs.h. */
27405$ac_includes_default
27406#include <$ac_header>
27407_ACEOF
27408rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027409if { (ac_try="$ac_compile"
27410case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27413esac
27414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027416 ac_status=$?
27417 grep -v '^ *+' conftest.er1 >conftest.err
27418 rm -f conftest.er1
27419 cat conftest.err >&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027421 (exit $ac_status); } && {
27422 test -z "$ac_c_werror_flag" ||
27423 test ! -s conftest.err
27424 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027425 ac_header_compiler=yes
27426else
27427 echo "$as_me: failed program was:" >&5
27428sed 's/^/| /' conftest.$ac_ext >&5
27429
Reid Spencera773bd52006-08-04 18:18:08 +000027430 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000027431fi
Reid Spencera773bd52006-08-04 18:18:08 +000027432
27433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27435echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027436
27437# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027440cat >conftest.$ac_ext <<_ACEOF
27441/* confdefs.h. */
27442_ACEOF
27443cat confdefs.h >>conftest.$ac_ext
27444cat >>conftest.$ac_ext <<_ACEOF
27445/* end confdefs.h. */
27446#include <$ac_header>
27447_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027448if { (ac_try="$ac_cpp conftest.$ac_ext"
27449case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27452esac
27453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027455 ac_status=$?
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027460 (exit $ac_status); } >/dev/null && {
27461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27462 test ! -s conftest.err
27463 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027464 ac_header_preproc=yes
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469 ac_header_preproc=no
27470fi
Reid Spencera773bd52006-08-04 18:18:08 +000027471
Reid Spencer59473af2004-12-25 07:31:29 +000027472rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27474echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027475
27476# So? What about this header?
27477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27478 yes:no: )
27479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27483 ac_header_preproc=yes
27484 ;;
27485 no:yes:* )
27486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027498 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027499## ----------------------------------- ##
27500## Report this to llvmbugs@cs.uiuc.edu ##
27501## ----------------------------------- ##
27502_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027503 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027504 ;;
27505esac
Reid Spencera773bd52006-08-04 18:18:08 +000027506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027509 echo $ECHO_N "(cached) $ECHO_C" >&6
27510else
27511 eval "$as_ac_Header=\$ac_header_preproc"
27512fi
Reid Spencera773bd52006-08-04 18:18:08 +000027513ac_res=`eval echo '${'$as_ac_Header'}'`
27514 { echo "$as_me:$LINENO: result: $ac_res" >&5
27515echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027516
27517fi
27518if test `eval echo '${'$as_ac_Header'}'` = yes; then
27519 cat >>confdefs.h <<_ACEOF
27520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27521_ACEOF
27522
27523fi
27524
27525done
27526
27527
Reid Spencerbe3e4192007-08-17 05:45:26 +000027528for ac_header in windows.h
27529do
27530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536fi
27537ac_res=`eval echo '${'$as_ac_Header'}'`
27538 { echo "$as_me:$LINENO: result: $ac_res" >&5
27539echo "${ECHO_T}$ac_res" >&6; }
27540else
27541 # Is the header compilable?
27542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27544cat >conftest.$ac_ext <<_ACEOF
27545/* confdefs.h. */
27546_ACEOF
27547cat confdefs.h >>conftest.$ac_ext
27548cat >>conftest.$ac_ext <<_ACEOF
27549/* end confdefs.h. */
27550$ac_includes_default
27551#include <$ac_header>
27552_ACEOF
27553rm -f conftest.$ac_objext
27554if { (ac_try="$ac_compile"
27555case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27558esac
27559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_compile") 2>conftest.er1
27561 ac_status=$?
27562 grep -v '^ *+' conftest.er1 >conftest.err
27563 rm -f conftest.er1
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027566 (exit $ac_status); } && {
27567 test -z "$ac_c_werror_flag" ||
27568 test ! -s conftest.err
27569 } && test -s conftest.$ac_objext; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027570 ac_header_compiler=yes
27571else
27572 echo "$as_me: failed program was:" >&5
27573sed 's/^/| /' conftest.$ac_ext >&5
27574
27575 ac_header_compiler=no
27576fi
27577
27578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27580echo "${ECHO_T}$ac_header_compiler" >&6; }
27581
27582# Is the header present?
27583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27585cat >conftest.$ac_ext <<_ACEOF
27586/* confdefs.h. */
27587_ACEOF
27588cat confdefs.h >>conftest.$ac_ext
27589cat >>conftest.$ac_ext <<_ACEOF
27590/* end confdefs.h. */
27591#include <$ac_header>
27592_ACEOF
27593if { (ac_try="$ac_cpp conftest.$ac_ext"
27594case "(($ac_try" in
27595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596 *) ac_try_echo=$ac_try;;
27597esac
27598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27600 ac_status=$?
27601 grep -v '^ *+' conftest.er1 >conftest.err
27602 rm -f conftest.er1
27603 cat conftest.err >&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027605 (exit $ac_status); } >/dev/null && {
27606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27607 test ! -s conftest.err
27608 }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027609 ac_header_preproc=yes
27610else
27611 echo "$as_me: failed program was:" >&5
27612sed 's/^/| /' conftest.$ac_ext >&5
27613
27614 ac_header_preproc=no
27615fi
27616
27617rm -f conftest.err conftest.$ac_ext
27618{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27619echo "${ECHO_T}$ac_header_preproc" >&6; }
27620
27621# So? What about this header?
27622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27623 yes:no: )
27624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27628 ac_header_preproc=yes
27629 ;;
27630 no:yes:* )
27631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27643 ( cat <<\_ASBOX
27644## ----------------------------------- ##
27645## Report this to llvmbugs@cs.uiuc.edu ##
27646## ----------------------------------- ##
27647_ASBOX
27648 ) | sed "s/^/$as_me: WARNING: /" >&2
27649 ;;
27650esac
27651{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27655else
27656 eval "$as_ac_Header=\$ac_header_preproc"
27657fi
27658ac_res=`eval echo '${'$as_ac_Header'}'`
27659 { echo "$as_me:$LINENO: result: $ac_res" >&5
27660echo "${ECHO_T}$ac_res" >&6; }
27661
27662fi
27663if test `eval echo '${'$as_ac_Header'}'` = yes; then
27664 cat >>confdefs.h <<_ACEOF
27665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27666_ACEOF
27667
27668fi
27669
27670done
Reid Spencer59473af2004-12-25 07:31:29 +000027671
27672
27673
27674
Reid Spencerbe3e4192007-08-17 05:45:26 +000027675
27676for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027677do
27678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027683 echo $ECHO_N "(cached) $ECHO_C" >&6
27684fi
Reid Spencera773bd52006-08-04 18:18:08 +000027685ac_res=`eval echo '${'$as_ac_Header'}'`
27686 { echo "$as_me:$LINENO: result: $ac_res" >&5
27687echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027688else
27689 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027690{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027692cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027693/* confdefs.h. */
27694_ACEOF
27695cat confdefs.h >>conftest.$ac_ext
27696cat >>conftest.$ac_ext <<_ACEOF
27697/* end confdefs.h. */
27698$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027699#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027700_ACEOF
27701rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027702if { (ac_try="$ac_compile"
27703case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27706esac
27707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027710 grep -v '^ *+' conftest.er1 >conftest.err
27711 rm -f conftest.er1
27712 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027714 (exit $ac_status); } && {
27715 test -z "$ac_c_werror_flag" ||
27716 test ! -s conftest.err
27717 } && test -s conftest.$ac_objext; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027718 ac_header_compiler=yes
27719else
27720 echo "$as_me: failed program was:" >&5
27721sed 's/^/| /' conftest.$ac_ext >&5
27722
Reid Spencera773bd52006-08-04 18:18:08 +000027723 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027724fi
Reid Spencera773bd52006-08-04 18:18:08 +000027725
27726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27728echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027729
27730# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027731{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027733cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027734/* confdefs.h. */
27735_ACEOF
27736cat confdefs.h >>conftest.$ac_ext
27737cat >>conftest.$ac_ext <<_ACEOF
27738/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027739#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027740_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027741if { (ac_try="$ac_cpp conftest.$ac_ext"
27742case "(($ac_try" in
27743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744 *) ac_try_echo=$ac_try;;
27745esac
27746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027748 ac_status=$?
27749 grep -v '^ *+' conftest.er1 >conftest.err
27750 rm -f conftest.er1
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027753 (exit $ac_status); } >/dev/null && {
27754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27755 test ! -s conftest.err
27756 }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027757 ac_header_preproc=yes
27758else
27759 echo "$as_me: failed program was:" >&5
27760sed 's/^/| /' conftest.$ac_ext >&5
27761
27762 ac_header_preproc=no
27763fi
Reid Spencera773bd52006-08-04 18:18:08 +000027764
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027765rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027766{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27767echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027768
27769# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27771 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027776 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027777 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027778 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027791 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027792## ----------------------------------- ##
27793## Report this to llvmbugs@cs.uiuc.edu ##
27794## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027795_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027796 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027797 ;;
27798esac
Reid Spencera773bd52006-08-04 18:18:08 +000027799{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027802 echo $ECHO_N "(cached) $ECHO_C" >&6
27803else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027804 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027805fi
Reid Spencera773bd52006-08-04 18:18:08 +000027806ac_res=`eval echo '${'$as_ac_Header'}'`
27807 { echo "$as_me:$LINENO: result: $ac_res" >&5
27808echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027809
27810fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027811if test `eval echo '${'$as_ac_Header'}'` = yes; then
27812 cat >>confdefs.h <<_ACEOF
27813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027814_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027815
27816fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027817
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027818done
27819
John Criswell7ed43ad2004-07-19 16:12:29 +000027820
Reid Spencercdb08a32006-06-05 16:11:07 +000027821
Reid Spencera6d990a2006-09-14 06:17:21 +000027822
27823for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000027824do
27825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027830 echo $ECHO_N "(cached) $ECHO_C" >&6
27831fi
Reid Spencera773bd52006-08-04 18:18:08 +000027832ac_res=`eval echo '${'$as_ac_Header'}'`
27833 { echo "$as_me:$LINENO: result: $ac_res" >&5
27834echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027835else
27836 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027837{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027839cat >conftest.$ac_ext <<_ACEOF
27840/* confdefs.h. */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h. */
27845$ac_includes_default
27846#include <$ac_header>
27847_ACEOF
27848rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027849if { (ac_try="$ac_compile"
27850case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27853esac
27854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027856 ac_status=$?
27857 grep -v '^ *+' conftest.er1 >conftest.err
27858 rm -f conftest.er1
27859 cat conftest.err >&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027861 (exit $ac_status); } && {
27862 test -z "$ac_c_werror_flag" ||
27863 test ! -s conftest.err
27864 } && test -s conftest.$ac_objext; then
Chris Lattner0b142592005-11-14 06:57:34 +000027865 ac_header_compiler=yes
27866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
Reid Spencera773bd52006-08-04 18:18:08 +000027870 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000027871fi
Reid Spencera773bd52006-08-04 18:18:08 +000027872
27873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27875echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027876
27877# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027880cat >conftest.$ac_ext <<_ACEOF
27881/* confdefs.h. */
27882_ACEOF
27883cat confdefs.h >>conftest.$ac_ext
27884cat >>conftest.$ac_ext <<_ACEOF
27885/* end confdefs.h. */
27886#include <$ac_header>
27887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027888if { (ac_try="$ac_cpp conftest.$ac_ext"
27889case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27892esac
27893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027895 ac_status=$?
27896 grep -v '^ *+' conftest.er1 >conftest.err
27897 rm -f conftest.er1
27898 cat conftest.err >&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027900 (exit $ac_status); } >/dev/null && {
27901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27902 test ! -s conftest.err
27903 }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027904 ac_header_preproc=yes
27905else
27906 echo "$as_me: failed program was:" >&5
27907sed 's/^/| /' conftest.$ac_ext >&5
27908
27909 ac_header_preproc=no
27910fi
Reid Spencera773bd52006-08-04 18:18:08 +000027911
Chris Lattner0b142592005-11-14 06:57:34 +000027912rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027913{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27914echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027915
27916# So? What about this header?
27917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27918 yes:no: )
27919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27923 ac_header_preproc=yes
27924 ;;
27925 no:yes:* )
27926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027938 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000027939## ----------------------------------- ##
27940## Report this to llvmbugs@cs.uiuc.edu ##
27941## ----------------------------------- ##
27942_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027943 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000027944 ;;
27945esac
Reid Spencera773bd52006-08-04 18:18:08 +000027946{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027949 echo $ECHO_N "(cached) $ECHO_C" >&6
27950else
27951 eval "$as_ac_Header=\$ac_header_preproc"
27952fi
Reid Spencera773bd52006-08-04 18:18:08 +000027953ac_res=`eval echo '${'$as_ac_Header'}'`
27954 { echo "$as_me:$LINENO: result: $ac_res" >&5
27955echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027956
27957fi
27958if test `eval echo '${'$as_ac_Header'}'` = yes; then
27959 cat >>confdefs.h <<_ACEOF
27960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27961_ACEOF
27962
27963fi
27964
27965done
27966
Reid Spencer0a262ba2005-08-24 10:07:20 +000027967if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027968
27969for ac_header in pthread.h
27970do
27971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000027976 echo $ECHO_N "(cached) $ECHO_C" >&6
27977fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000027978ac_res=`eval echo '${'$as_ac_Header'}'`
27979 { echo "$as_me:$LINENO: result: $ac_res" >&5
27980echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027981else
27982 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000027983{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027985cat >conftest.$ac_ext <<_ACEOF
27986/* confdefs.h. */
27987_ACEOF
27988cat confdefs.h >>conftest.$ac_ext
27989cat >>conftest.$ac_ext <<_ACEOF
27990/* end confdefs.h. */
27991$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000027992#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000027993_ACEOF
27994rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027995if { (ac_try="$ac_compile"
27996case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
27999esac
28000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028002 ac_status=$?
28003 grep -v '^ *+' conftest.er1 >conftest.err
28004 rm -f conftest.er1
28005 cat conftest.err >&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028007 (exit $ac_status); } && {
28008 test -z "$ac_c_werror_flag" ||
28009 test ! -s conftest.err
28010 } && test -s conftest.$ac_objext; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028011 ac_header_compiler=yes
28012else
28013 echo "$as_me: failed program was:" >&5
28014sed 's/^/| /' conftest.$ac_ext >&5
28015
Reid Spencera773bd52006-08-04 18:18:08 +000028016 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000028017fi
Reid Spencera773bd52006-08-04 18:18:08 +000028018
28019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28021echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028022
28023# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028026cat >conftest.$ac_ext <<_ACEOF
28027/* confdefs.h. */
28028_ACEOF
28029cat confdefs.h >>conftest.$ac_ext
28030cat >>conftest.$ac_ext <<_ACEOF
28031/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000028032#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028033_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028034if { (ac_try="$ac_cpp conftest.$ac_ext"
28035case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038esac
28039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028041 ac_status=$?
28042 grep -v '^ *+' conftest.er1 >conftest.err
28043 rm -f conftest.er1
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028046 (exit $ac_status); } >/dev/null && {
28047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28048 test ! -s conftest.err
28049 }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028050 ac_header_preproc=yes
28051else
28052 echo "$as_me: failed program was:" >&5
28053sed 's/^/| /' conftest.$ac_ext >&5
28054
28055 ac_header_preproc=no
28056fi
Reid Spencera773bd52006-08-04 18:18:08 +000028057
Reid Spencer0a262ba2005-08-24 10:07:20 +000028058rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028059{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28060echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028061
28062# So? What about this header?
28063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28064 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28068echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000028069 ac_header_preproc=yes
28070 ;;
28071 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28073echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28075echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28077echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28079echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28081echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28083echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028084 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000028085## ----------------------------------- ##
28086## Report this to llvmbugs@cs.uiuc.edu ##
28087## ----------------------------------- ##
28088_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028089 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000028090 ;;
28091esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000028092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028095 echo $ECHO_N "(cached) $ECHO_C" >&6
28096else
Reid Spencerbe3e4192007-08-17 05:45:26 +000028097 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000028098fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028099ac_res=`eval echo '${'$as_ac_Header'}'`
28100 { echo "$as_me:$LINENO: result: $ac_res" >&5
28101echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028102
28103fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028104if test `eval echo '${'$as_ac_Header'}'` = yes; then
28105 cat >>confdefs.h <<_ACEOF
28106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28107_ACEOF
28108 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000028109
28110else
28111 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028112
28113fi
28114
Reid Spencerbe3e4192007-08-17 05:45:26 +000028115done
Reid Spencer1000b732006-12-01 00:37:14 +000028116
28117else
28118 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028119
28120fi
Reid Spencer8085cff2005-01-16 02:58:39 +000028121
28122
Reid Spencerb2ed05262006-11-03 18:04:08 +000028123
28124 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28125echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28126if test "${ac_cv_huge_val_sanity+set}" = set; then
28127 echo $ECHO_N "(cached) $ECHO_C" >&6
28128else
28129
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028130 ac_ext=cpp
28131ac_cpp='$CXXCPP $CPPFLAGS'
28132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000028135
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028136 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000028137 if test "$cross_compiling" = yes; then
28138 ac_cv_huge_val_sanity=yes
28139else
28140 cat >conftest.$ac_ext <<_ACEOF
28141/* confdefs.h. */
28142_ACEOF
28143cat confdefs.h >>conftest.$ac_ext
28144cat >>conftest.$ac_ext <<_ACEOF
28145/* end confdefs.h. */
28146#include <math.h>
28147int
28148main ()
28149{
28150double x = HUGE_VAL; return x != x;
28151 ;
28152 return 0;
28153}
28154_ACEOF
28155rm -f conftest$ac_exeext
28156if { (ac_try="$ac_link"
28157case "(($ac_try" in
28158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28159 *) ac_try_echo=$ac_try;;
28160esac
28161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28162 (eval "$ac_link") 2>&5
28163 ac_status=$?
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
28175 ac_cv_huge_val_sanity=yes
28176else
28177 echo "$as_me: program exited with status $ac_status" >&5
28178echo "$as_me: failed program was:" >&5
28179sed 's/^/| /' conftest.$ac_ext >&5
28180
28181( exit $ac_status )
28182ac_cv_huge_val_sanity=no
28183fi
28184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28185fi
28186
28187
28188 ac_ext=c
28189ac_cpp='$CPP $CPPFLAGS'
28190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28192ac_compiler_gnu=$ac_cv_c_compiler_gnu
28193
28194
28195fi
28196{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28197echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28198 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28199
28200
Reid Spencera773bd52006-08-04 18:18:08 +000028201{ echo "$as_me:$LINENO: checking for pid_t" >&5
28202echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028203if test "${ac_cv_type_pid_t+set}" = set; then
28204 echo $ECHO_N "(cached) $ECHO_C" >&6
28205else
28206 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028207/* confdefs.h. */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028212$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028213typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028214int
28215main ()
28216{
Reid Spencera773bd52006-08-04 18:18:08 +000028217if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028218 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028219if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028220 return 0;
28221 ;
28222 return 0;
28223}
28224_ACEOF
28225rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028226if { (ac_try="$ac_compile"
28227case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28230esac
28231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028234 grep -v '^ *+' conftest.er1 >conftest.err
28235 rm -f conftest.er1
28236 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028238 (exit $ac_status); } && {
28239 test -z "$ac_c_werror_flag" ||
28240 test ! -s conftest.err
28241 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028242 ac_cv_type_pid_t=yes
28243else
28244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028245sed 's/^/| /' conftest.$ac_ext >&5
28246
Reid Spencera773bd52006-08-04 18:18:08 +000028247 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028248fi
Reid Spencera773bd52006-08-04 18:18:08 +000028249
28250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028251fi
Reid Spencera773bd52006-08-04 18:18:08 +000028252{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28253echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028254if test $ac_cv_type_pid_t = yes; then
28255 :
28256else
28257
28258cat >>confdefs.h <<_ACEOF
28259#define pid_t int
28260_ACEOF
28261
28262fi
28263
Reid Spencera773bd52006-08-04 18:18:08 +000028264{ echo "$as_me:$LINENO: checking for size_t" >&5
28265echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028266if test "${ac_cv_type_size_t+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268else
28269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028270/* confdefs.h. */
28271_ACEOF
28272cat confdefs.h >>conftest.$ac_ext
28273cat >>conftest.$ac_ext <<_ACEOF
28274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028275$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028276typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028277int
28278main ()
28279{
Reid Spencera773bd52006-08-04 18:18:08 +000028280if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028281 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028282if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028283 return 0;
28284 ;
28285 return 0;
28286}
28287_ACEOF
28288rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028289if { (ac_try="$ac_compile"
28290case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28293esac
28294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028301 (exit $ac_status); } && {
28302 test -z "$ac_c_werror_flag" ||
28303 test ! -s conftest.err
28304 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028305 ac_cv_type_size_t=yes
28306else
28307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028308sed 's/^/| /' conftest.$ac_ext >&5
28309
Reid Spencera773bd52006-08-04 18:18:08 +000028310 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028311fi
Reid Spencera773bd52006-08-04 18:18:08 +000028312
28313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028314fi
Reid Spencera773bd52006-08-04 18:18:08 +000028315{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28316echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028317if test $ac_cv_type_size_t = yes; then
28318 :
28319else
28320
28321cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028322#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000028323_ACEOF
28324
28325fi
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28328echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028329if test "${ac_cv_type_signal+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331else
28332 cat >conftest.$ac_ext <<_ACEOF
28333/* confdefs.h. */
28334_ACEOF
28335cat confdefs.h >>conftest.$ac_ext
28336cat >>conftest.$ac_ext <<_ACEOF
28337/* end confdefs.h. */
28338#include <sys/types.h>
28339#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028340
28341int
28342main ()
28343{
Reid Spencera773bd52006-08-04 18:18:08 +000028344return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028345 ;
28346 return 0;
28347}
28348_ACEOF
28349rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028350if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028357 ac_status=$?
28358 grep -v '^ *+' conftest.er1 >conftest.err
28359 rm -f conftest.er1
28360 cat conftest.err >&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028362 (exit $ac_status); } && {
28363 test -z "$ac_c_werror_flag" ||
28364 test ! -s conftest.err
28365 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +000028366 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028367else
28368 echo "$as_me: failed program was:" >&5
28369sed 's/^/| /' conftest.$ac_ext >&5
28370
Reid Spencera773bd52006-08-04 18:18:08 +000028371 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028372fi
Reid Spencera773bd52006-08-04 18:18:08 +000028373
28374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028375fi
Reid Spencera773bd52006-08-04 18:18:08 +000028376{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28377echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028378
28379cat >>confdefs.h <<_ACEOF
28380#define RETSIGTYPE $ac_cv_type_signal
28381_ACEOF
28382
28383
Reid Spencera773bd52006-08-04 18:18:08 +000028384{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28385echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028386if test "${ac_cv_struct_tm+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28388else
28389 cat >conftest.$ac_ext <<_ACEOF
28390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
28395#include <sys/types.h>
28396#include <time.h>
28397
28398int
28399main ()
28400{
Scott Michel96dcd2b2007-12-05 21:24:02 +000028401struct tm tm;
28402 int *p = &tm.tm_sec;
28403 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028404 ;
28405 return 0;
28406}
28407_ACEOF
28408rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028409if { (ac_try="$ac_compile"
28410case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28413esac
28414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028416 ac_status=$?
28417 grep -v '^ *+' conftest.er1 >conftest.err
28418 rm -f conftest.er1
28419 cat conftest.err >&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028421 (exit $ac_status); } && {
28422 test -z "$ac_c_werror_flag" ||
28423 test ! -s conftest.err
28424 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028425 ac_cv_struct_tm=time.h
28426else
28427 echo "$as_me: failed program was:" >&5
28428sed 's/^/| /' conftest.$ac_ext >&5
28429
Reid Spencera773bd52006-08-04 18:18:08 +000028430 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028431fi
Reid Spencera773bd52006-08-04 18:18:08 +000028432
28433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028434fi
Reid Spencera773bd52006-08-04 18:18:08 +000028435{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28436echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028437if test $ac_cv_struct_tm = sys/time.h; then
28438
28439cat >>confdefs.h <<\_ACEOF
28440#define TM_IN_SYS_TIME 1
28441_ACEOF
28442
28443fi
28444
Reid Spencera773bd52006-08-04 18:18:08 +000028445{ echo "$as_me:$LINENO: checking for int64_t" >&5
28446echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028447if test "${ac_cv_type_int64_t+set}" = set; then
28448 echo $ECHO_N "(cached) $ECHO_C" >&6
28449else
28450 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028451/* confdefs.h. */
28452_ACEOF
28453cat confdefs.h >>conftest.$ac_ext
28454cat >>conftest.$ac_ext <<_ACEOF
28455/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028456$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028457typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028458int
28459main ()
28460{
Reid Spencera773bd52006-08-04 18:18:08 +000028461if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028462 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028463if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028464 return 0;
28465 ;
28466 return 0;
28467}
28468_ACEOF
28469rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028470if { (ac_try="$ac_compile"
28471case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28474esac
28475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028478 grep -v '^ *+' conftest.er1 >conftest.err
28479 rm -f conftest.er1
28480 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028482 (exit $ac_status); } && {
28483 test -z "$ac_c_werror_flag" ||
28484 test ! -s conftest.err
28485 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028486 ac_cv_type_int64_t=yes
28487else
28488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028489sed 's/^/| /' conftest.$ac_ext >&5
28490
Reid Spencera773bd52006-08-04 18:18:08 +000028491 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028492fi
Reid Spencera773bd52006-08-04 18:18:08 +000028493
28494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028495fi
Reid Spencera773bd52006-08-04 18:18:08 +000028496{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28497echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028498if test $ac_cv_type_int64_t = yes; then
28499
28500cat >>confdefs.h <<_ACEOF
28501#define HAVE_INT64_T 1
28502_ACEOF
28503
28504
28505else
28506 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28507echo "$as_me: error: Type int64_t required but not found" >&2;}
28508 { (exit 1); exit 1; }; }
28509fi
28510
Reid Spencera773bd52006-08-04 18:18:08 +000028511{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28512echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028513if test "${ac_cv_type_uint64_t+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28515else
28516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028517/* confdefs.h. */
28518_ACEOF
28519cat confdefs.h >>conftest.$ac_ext
28520cat >>conftest.$ac_ext <<_ACEOF
28521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028522$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028523typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028524int
28525main ()
28526{
Reid Spencera773bd52006-08-04 18:18:08 +000028527if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028528 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028529if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028530 return 0;
28531 ;
28532 return 0;
28533}
28534_ACEOF
28535rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028536if { (ac_try="$ac_compile"
28537case "(($ac_try" in
28538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539 *) ac_try_echo=$ac_try;;
28540esac
28541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28542 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028544 grep -v '^ *+' conftest.er1 >conftest.err
28545 rm -f conftest.er1
28546 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028548 (exit $ac_status); } && {
28549 test -z "$ac_c_werror_flag" ||
28550 test ! -s conftest.err
28551 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028552 ac_cv_type_uint64_t=yes
28553else
28554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028555sed 's/^/| /' conftest.$ac_ext >&5
28556
Reid Spencera773bd52006-08-04 18:18:08 +000028557 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028558fi
Reid Spencera773bd52006-08-04 18:18:08 +000028559
28560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028561fi
Reid Spencera773bd52006-08-04 18:18:08 +000028562{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28563echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028564if test $ac_cv_type_uint64_t = yes; then
28565
28566cat >>confdefs.h <<_ACEOF
28567#define HAVE_UINT64_T 1
28568_ACEOF
28569
28570
28571else
Reid Spencera773bd52006-08-04 18:18:08 +000028572 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28573echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028574if test "${ac_cv_type_u_int64_t+set}" = set; then
28575 echo $ECHO_N "(cached) $ECHO_C" >&6
28576else
28577 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028578/* confdefs.h. */
28579_ACEOF
28580cat confdefs.h >>conftest.$ac_ext
28581cat >>conftest.$ac_ext <<_ACEOF
28582/* end confdefs.h. */
28583$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028584typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000028585int
28586main ()
28587{
Reid Spencera773bd52006-08-04 18:18:08 +000028588if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000028589 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028590if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000028591 return 0;
28592 ;
28593 return 0;
28594}
28595_ACEOF
28596rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028597if { (ac_try="$ac_compile"
28598case "(($ac_try" in
28599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600 *) ac_try_echo=$ac_try;;
28601esac
28602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028604 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028605 grep -v '^ *+' conftest.er1 >conftest.err
28606 rm -f conftest.er1
28607 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028609 (exit $ac_status); } && {
28610 test -z "$ac_c_werror_flag" ||
28611 test ! -s conftest.err
28612 } && test -s conftest.$ac_objext; then
John Criswell679ff312004-09-02 18:44:44 +000028613 ac_cv_type_u_int64_t=yes
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
Reid Spencera773bd52006-08-04 18:18:08 +000028618 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000028619fi
Reid Spencera773bd52006-08-04 18:18:08 +000028620
28621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028622fi
Reid Spencera773bd52006-08-04 18:18:08 +000028623{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28624echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028625if test $ac_cv_type_u_int64_t = yes; then
28626
28627cat >>confdefs.h <<_ACEOF
28628#define HAVE_U_INT64_T 1
28629_ACEOF
28630
28631
Misha Brukmanceca9042004-09-02 23:02:30 +000028632else
28633 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28634echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28635 { (exit 1); exit 1; }; }
28636fi
28637
John Criswell679ff312004-09-02 18:44:44 +000028638fi
28639
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028640
28641
28642
28643
28644
28645
28646
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028647
28648
Reid Spencerdf3be822006-01-23 08:15:53 +000028649for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028650do
28651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028652{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028655 echo $ECHO_N "(cached) $ECHO_C" >&6
28656else
28657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28665#define $ac_func innocuous_$ac_func
28666
28667/* System header to define __stub macros and hopefully few prototypes,
28668 which can conflict with char $ac_func (); below.
28669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28670 <limits.h> exists even on freestanding compilers. */
28671
28672#ifdef __STDC__
28673# include <limits.h>
28674#else
28675# include <assert.h>
28676#endif
28677
28678#undef $ac_func
28679
Reid Spencera773bd52006-08-04 18:18:08 +000028680/* Override any GCC internal prototype to avoid an error.
28681 Use char because int might match the return type of a GCC
28682 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028683#ifdef __cplusplus
28684extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028685#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028686char $ac_func ();
28687/* The GNU C library defines this for functions which it implements
28688 to always fail with ENOSYS. Some functions are actually named
28689 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028690#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028691choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028692#endif
John Criswell7a73b802003-06-30 21:59:07 +000028693
John Criswell7a73b802003-06-30 21:59:07 +000028694int
28695main ()
28696{
Reid Spencera773bd52006-08-04 18:18:08 +000028697return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028698 ;
28699 return 0;
28700}
28701_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028702rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028703if { (ac_try="$ac_link"
28704case "(($ac_try" in
28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706 *) ac_try_echo=$ac_try;;
28707esac
28708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028711 grep -v '^ *+' conftest.er1 >conftest.err
28712 rm -f conftest.er1
28713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028715 (exit $ac_status); } && {
28716 test -z "$ac_c_werror_flag" ||
28717 test ! -s conftest.err
28718 } && test -s conftest$ac_exeext &&
28719 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028720 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028721else
28722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028723sed 's/^/| /' conftest.$ac_ext >&5
28724
Reid Spencera773bd52006-08-04 18:18:08 +000028725 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028726fi
Reid Spencera773bd52006-08-04 18:18:08 +000028727
Scott Michel96dcd2b2007-12-05 21:24:02 +000028728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028729 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028730fi
Reid Spencera773bd52006-08-04 18:18:08 +000028731ac_res=`eval echo '${'$as_ac_var'}'`
28732 { echo "$as_me:$LINENO: result: $ac_res" >&5
28733echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028734if test `eval echo '${'$as_ac_var'}'` = yes; then
28735 cat >>confdefs.h <<_ACEOF
28736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028737_ACEOF
28738
28739fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028740done
John Criswell7a73b802003-06-30 21:59:07 +000028741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028742
28743
28744
Reid Spencer6af3d262004-12-15 04:01:48 +000028745
Reid Spencer96cf5872007-07-13 10:05:30 +000028746for ac_func in powf fmodf strtof round
28747do
28748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28752 echo $ECHO_N "(cached) $ECHO_C" >&6
28753else
28754 cat >conftest.$ac_ext <<_ACEOF
28755/* confdefs.h. */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h. */
28760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28762#define $ac_func innocuous_$ac_func
28763
28764/* System header to define __stub macros and hopefully few prototypes,
28765 which can conflict with char $ac_func (); below.
28766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28767 <limits.h> exists even on freestanding compilers. */
28768
28769#ifdef __STDC__
28770# include <limits.h>
28771#else
28772# include <assert.h>
28773#endif
28774
28775#undef $ac_func
28776
28777/* Override any GCC internal prototype to avoid an error.
28778 Use char because int might match the return type of a GCC
28779 builtin and then its argument prototype would still apply. */
28780#ifdef __cplusplus
28781extern "C"
28782#endif
28783char $ac_func ();
28784/* The GNU C library defines this for functions which it implements
28785 to always fail with ENOSYS. Some functions are actually named
28786 something starting with __ and the normal name is an alias. */
28787#if defined __stub_$ac_func || defined __stub___$ac_func
28788choke me
28789#endif
28790
28791int
28792main ()
28793{
28794return $ac_func ();
28795 ;
28796 return 0;
28797}
28798_ACEOF
28799rm -f conftest.$ac_objext conftest$ac_exeext
28800if { (ac_try="$ac_link"
28801case "(($ac_try" in
28802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803 *) ac_try_echo=$ac_try;;
28804esac
28805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28806 (eval "$ac_link") 2>conftest.er1
28807 ac_status=$?
28808 grep -v '^ *+' conftest.er1 >conftest.err
28809 rm -f conftest.er1
28810 cat conftest.err >&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028812 (exit $ac_status); } && {
28813 test -z "$ac_c_werror_flag" ||
28814 test ! -s conftest.err
28815 } && test -s conftest$ac_exeext &&
28816 $as_test_x conftest$ac_exeext; then
Reid Spencer96cf5872007-07-13 10:05:30 +000028817 eval "$as_ac_var=yes"
28818else
28819 echo "$as_me: failed program was:" >&5
28820sed 's/^/| /' conftest.$ac_ext >&5
28821
28822 eval "$as_ac_var=no"
28823fi
28824
Scott Michel96dcd2b2007-12-05 21:24:02 +000028825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer96cf5872007-07-13 10:05:30 +000028826 conftest$ac_exeext conftest.$ac_ext
28827fi
28828ac_res=`eval echo '${'$as_ac_var'}'`
28829 { echo "$as_me:$LINENO: result: $ac_res" >&5
28830echo "${ECHO_T}$ac_res" >&6; }
28831if test `eval echo '${'$as_ac_var'}'` = yes; then
28832 cat >>confdefs.h <<_ACEOF
28833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28834_ACEOF
28835
28836fi
28837done
28838
28839
28840
28841
28842
Reid Spencer6af3d262004-12-15 04:01:48 +000028843
Reid Spencerb90645c2007-02-16 19:17:20 +000028844for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28845do
28846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28851else
28852 cat >conftest.$ac_ext <<_ACEOF
28853/* confdefs.h. */
28854_ACEOF
28855cat confdefs.h >>conftest.$ac_ext
28856cat >>conftest.$ac_ext <<_ACEOF
28857/* end confdefs.h. */
28858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28860#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000028861
Reid Spencerb90645c2007-02-16 19:17:20 +000028862/* System header to define __stub macros and hopefully few prototypes,
28863 which can conflict with char $ac_func (); below.
28864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28865 <limits.h> exists even on freestanding compilers. */
28866
28867#ifdef __STDC__
28868# include <limits.h>
28869#else
28870# include <assert.h>
28871#endif
28872
28873#undef $ac_func
28874
28875/* Override any GCC internal prototype to avoid an error.
28876 Use char because int might match the return type of a GCC
28877 builtin and then its argument prototype would still apply. */
28878#ifdef __cplusplus
28879extern "C"
28880#endif
28881char $ac_func ();
28882/* The GNU C library defines this for functions which it implements
28883 to always fail with ENOSYS. Some functions are actually named
28884 something starting with __ and the normal name is an alias. */
28885#if defined __stub_$ac_func || defined __stub___$ac_func
28886choke me
28887#endif
28888
28889int
28890main ()
28891{
28892return $ac_func ();
28893 ;
28894 return 0;
28895}
28896_ACEOF
28897rm -f conftest.$ac_objext conftest$ac_exeext
28898if { (ac_try="$ac_link"
28899case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28902esac
28903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_link") 2>conftest.er1
28905 ac_status=$?
28906 grep -v '^ *+' conftest.er1 >conftest.err
28907 rm -f conftest.er1
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028910 (exit $ac_status); } && {
28911 test -z "$ac_c_werror_flag" ||
28912 test ! -s conftest.err
28913 } && test -s conftest$ac_exeext &&
28914 $as_test_x conftest$ac_exeext; then
Reid Spencerb90645c2007-02-16 19:17:20 +000028915 eval "$as_ac_var=yes"
28916else
28917 echo "$as_me: failed program was:" >&5
28918sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 eval "$as_ac_var=no"
28921fi
28922
Scott Michel96dcd2b2007-12-05 21:24:02 +000028923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb90645c2007-02-16 19:17:20 +000028924 conftest$ac_exeext conftest.$ac_ext
28925fi
28926ac_res=`eval echo '${'$as_ac_var'}'`
28927 { echo "$as_me:$LINENO: result: $ac_res" >&5
28928echo "${ECHO_T}$ac_res" >&6; }
28929if test `eval echo '${'$as_ac_var'}'` = yes; then
28930 cat >>confdefs.h <<_ACEOF
28931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28932_ACEOF
28933
28934fi
28935done
28936
28937
28938
28939
28940for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000028941do
28942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028943{ 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
Reid Spencerdf3be822006-01-23 08:15:53 +000028946 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
Reid Spencera773bd52006-08-04 18:18:08 +000028971/* 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. */
Reid Spencerdf3be822006-01-23 08:15:53 +000028974#ifdef __cplusplus
28975extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000028976#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000028977char $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. */
Reid Spencera773bd52006-08-04 18:18:08 +000028981#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000028982choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000028983#endif
28984
28985int
28986main ()
28987{
Reid Spencera773bd52006-08-04 18:18:08 +000028988return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000028989 ;
28990 return 0;
28991}
28992_ACEOF
28993rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028994if { (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
Reid Spencerdf3be822006-01-23 08:15:53 +000029001 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
Scott Michel96dcd2b2007-12-05 21:24:02 +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
Reid Spencerdf3be822006-01-23 08:15:53 +000029011 eval "$as_ac_var=yes"
29012else
29013 echo "$as_me: failed program was:" >&5
29014sed 's/^/| /' conftest.$ac_ext >&5
29015
Reid Spencera773bd52006-08-04 18:18:08 +000029016 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029017fi
Reid Spencera773bd52006-08-04 18:18:08 +000029018
Scott Michel96dcd2b2007-12-05 21:24:02 +000029019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerdf3be822006-01-23 08:15:53 +000029020 conftest$ac_exeext conftest.$ac_ext
29021fi
Reid Spencera773bd52006-08-04 18:18:08 +000029022ac_res=`eval echo '${'$as_ac_var'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029025if 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
29038
29039
29040for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029041do
29042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029046 echo $ECHO_N "(cached) $ECHO_C" >&6
29047else
29048 cat >conftest.$ac_ext <<_ACEOF
29049/* confdefs.h. */
29050_ACEOF
29051cat confdefs.h >>conftest.$ac_ext
29052cat >>conftest.$ac_ext <<_ACEOF
29053/* end confdefs.h. */
29054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29056#define $ac_func innocuous_$ac_func
29057
29058/* System header to define __stub macros and hopefully few prototypes,
29059 which can conflict with char $ac_func (); below.
29060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29061 <limits.h> exists even on freestanding compilers. */
29062
29063#ifdef __STDC__
29064# include <limits.h>
29065#else
29066# include <assert.h>
29067#endif
29068
29069#undef $ac_func
29070
Reid Spencera773bd52006-08-04 18:18:08 +000029071/* Override any GCC internal prototype to avoid an error.
29072 Use char because int might match the return type of a GCC
29073 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000029074#ifdef __cplusplus
29075extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000029076#endif
Reid Spencer7931a782004-12-27 06:15:02 +000029077char $ac_func ();
29078/* The GNU C library defines this for functions which it implements
29079 to always fail with ENOSYS. Some functions are actually named
29080 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029081#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000029082choke me
Reid Spencer7931a782004-12-27 06:15:02 +000029083#endif
29084
29085int
29086main ()
29087{
Reid Spencera773bd52006-08-04 18:18:08 +000029088return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000029089 ;
29090 return 0;
29091}
29092_ACEOF
29093rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029094if { (ac_try="$ac_link"
29095case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29098esac
29099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000029101 ac_status=$?
29102 grep -v '^ *+' conftest.er1 >conftest.err
29103 rm -f conftest.er1
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029106 (exit $ac_status); } && {
29107 test -z "$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29109 } && test -s conftest$ac_exeext &&
29110 $as_test_x conftest$ac_exeext; then
Reid Spencer7931a782004-12-27 06:15:02 +000029111 eval "$as_ac_var=yes"
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
Reid Spencera773bd52006-08-04 18:18:08 +000029116 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000029117fi
Reid Spencera773bd52006-08-04 18:18:08 +000029118
Scott Michel96dcd2b2007-12-05 21:24:02 +000029119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer7931a782004-12-27 06:15:02 +000029120 conftest$ac_exeext conftest.$ac_ext
29121fi
Reid Spencera773bd52006-08-04 18:18:08 +000029122ac_res=`eval echo '${'$as_ac_var'}'`
29123 { echo "$as_me:$LINENO: result: $ac_res" >&5
29124echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000029125if test `eval echo '${'$as_ac_var'}'` = yes; then
29126 cat >>confdefs.h <<_ACEOF
29127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29128_ACEOF
29129
29130fi
29131done
29132
29133
Reid Spencerba46ca32004-12-31 05:49:15 +000029134
29135
Chris Lattner0b142592005-11-14 06:57:34 +000029136
Chris Lattner511f11d2005-11-14 07:25:50 +000029137for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029138do
29139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029140{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29142if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029143 echo $ECHO_N "(cached) $ECHO_C" >&6
29144else
29145 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029146/* confdefs.h. */
29147_ACEOF
29148cat confdefs.h >>conftest.$ac_ext
29149cat >>conftest.$ac_ext <<_ACEOF
29150/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29153#define $ac_func innocuous_$ac_func
29154
29155/* System header to define __stub macros and hopefully few prototypes,
29156 which can conflict with char $ac_func (); below.
29157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29158 <limits.h> exists even on freestanding compilers. */
29159
29160#ifdef __STDC__
29161# include <limits.h>
29162#else
29163# include <assert.h>
29164#endif
29165
29166#undef $ac_func
29167
Reid Spencera773bd52006-08-04 18:18:08 +000029168/* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029171#ifdef __cplusplus
29172extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029173#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029174char $ac_func ();
29175/* The GNU C library defines this for functions which it implements
29176 to always fail with ENOSYS. Some functions are actually named
29177 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029178#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029179choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029180#endif
John Criswell7a73b802003-06-30 21:59:07 +000029181
John Criswell7a73b802003-06-30 21:59:07 +000029182int
29183main ()
29184{
Reid Spencera773bd52006-08-04 18:18:08 +000029185return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029186 ;
29187 return 0;
29188}
29189_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029190rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029191if { (ac_try="$ac_link"
29192case "(($ac_try" in
29193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194 *) ac_try_echo=$ac_try;;
29195esac
29196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029198 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029199 grep -v '^ *+' conftest.er1 >conftest.err
29200 rm -f conftest.er1
29201 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029203 (exit $ac_status); } && {
29204 test -z "$ac_c_werror_flag" ||
29205 test ! -s conftest.err
29206 } && test -s conftest$ac_exeext &&
29207 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029208 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029209else
29210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029211sed 's/^/| /' conftest.$ac_ext >&5
29212
Reid Spencera773bd52006-08-04 18:18:08 +000029213 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029214fi
Reid Spencera773bd52006-08-04 18:18:08 +000029215
Scott Michel96dcd2b2007-12-05 21:24:02 +000029216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029217 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029218fi
Reid Spencera773bd52006-08-04 18:18:08 +000029219ac_res=`eval echo '${'$as_ac_var'}'`
29220 { echo "$as_me:$LINENO: result: $ac_res" >&5
29221echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029222if test `eval echo '${'$as_ac_var'}'` = yes; then
29223 cat >>confdefs.h <<_ACEOF
29224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029225_ACEOF
29226
29227fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029228done
John Criswell7a73b802003-06-30 21:59:07 +000029229
Reid Spencercdb08a32006-06-05 16:11:07 +000029230
29231
29232
29233
Reid Spencerafa22e22006-12-10 23:29:19 +000029234for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000029235do
29236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029237{ 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
Reid Spencercdb08a32006-06-05 16:11:07 +000029240 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
Reid Spencera773bd52006-08-04 18:18:08 +000029265/* 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. */
Reid Spencercdb08a32006-06-05 16:11:07 +000029268#ifdef __cplusplus
29269extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000029270#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000029271char $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. */
Reid Spencera773bd52006-08-04 18:18:08 +000029275#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000029276choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000029277#endif
29278
29279int
29280main ()
29281{
Reid Spencera773bd52006-08-04 18:18:08 +000029282return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000029283 ;
29284 return 0;
29285}
29286_ACEOF
29287rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029288if { (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
Reid Spencercdb08a32006-06-05 16:11:07 +000029295 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
Scott Michel96dcd2b2007-12-05 21:24:02 +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
Reid Spencercdb08a32006-06-05 16:11:07 +000029305 eval "$as_ac_var=yes"
29306else
29307 echo "$as_me: failed program was:" >&5
29308sed 's/^/| /' conftest.$ac_ext >&5
29309
Reid Spencera773bd52006-08-04 18:18:08 +000029310 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000029311fi
Reid Spencera773bd52006-08-04 18:18:08 +000029312
Scott Michel96dcd2b2007-12-05 21:24:02 +000029313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencercdb08a32006-06-05 16:11:07 +000029314 conftest$ac_exeext conftest.$ac_ext
29315fi
Reid Spencera773bd52006-08-04 18:18:08 +000029316ac_res=`eval echo '${'$as_ac_var'}'`
29317 { echo "$as_me:$LINENO: result: $ac_res" >&5
29318echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000029319if 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
Reid Spencera773bd52006-08-04 18:18:08 +000029327{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29328echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029329if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029330 echo $ECHO_N "(cached) $ECHO_C" >&6
29331else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029332 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029333ac_cpp='$CPP $CPPFLAGS'
29334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29336ac_compiler_gnu=$ac_cv_c_compiler_gnu
29337
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029338 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029339 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029340else
29341 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000029342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029343 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000029344_ACEOF
29345cat confdefs.h >>conftest.$ac_ext
29346cat >>conftest.$ac_ext <<_ACEOF
29347/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029348
John Criswella0137d32003-10-13 16:22:01 +000029349#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000029350#include <stdlib.h>
29351
John Criswella0137d32003-10-13 16:22:01 +000029352int
29353main ()
29354{
29355
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356volatile double A, B;
29357char Buffer[100];
29358A = 1;
29359A /= 10.0;
29360sprintf(Buffer, "%a", A);
29361B = atof(Buffer);
29362if (A != B)
29363 return (1);
29364if (A != 0x1.999999999999ap-4)
29365 return (1);
29366return (0);
John Criswella0137d32003-10-13 16:22:01 +000029367 ;
29368 return 0;
29369}
29370_ACEOF
29371rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029372if { (ac_try="$ac_link"
29373case "(($ac_try" in
29374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375 *) ac_try_echo=$ac_try;;
29376esac
29377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29378 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029379 ac_status=$?
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029382 { (case "(($ac_try" in
29383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29385esac
29386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029391 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000029392else
29393 echo "$as_me: program exited with status $ac_status" >&5
29394echo "$as_me: failed program was:" >&5
29395sed 's/^/| /' conftest.$ac_ext >&5
29396
29397( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000029398llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029399fi
Reid Spencera773bd52006-08-04 18:18:08 +000029400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000029401fi
Reid Spencera773bd52006-08-04 18:18:08 +000029402
29403
Reid Spencer2706f8c2004-09-19 23:53:36 +000029404 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029405ac_cpp='$CPP $CPPFLAGS'
29406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29408ac_compiler_gnu=$ac_cv_c_compiler_gnu
29409
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029410fi
Reid Spencera773bd52006-08-04 18:18:08 +000029411{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29412echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029413 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000029414
29415cat >>confdefs.h <<\_ACEOF
29416#define HAVE_PRINTF_A 1
29417_ACEOF
29418
Reid Spencer2706f8c2004-09-19 23:53:36 +000029419 fi
John Criswella0137d32003-10-13 16:22:01 +000029420
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029421# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29422# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000029423{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29424echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029425if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000029426 echo $ECHO_N "(cached) $ECHO_C" >&6
29427else
John Criswell0021c312004-02-13 21:57:29 +000029428 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000029429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029434#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000029435int
29436main ()
29437{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029438char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000029439 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000029440 ;
29441 return 0;
29442}
29443_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029444rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029445if { (ac_try="$ac_link"
29446case "(($ac_try" in
29447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448 *) ac_try_echo=$ac_try;;
29449esac
29450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000029452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029453 grep -v '^ *+' conftest.er1 >conftest.err
29454 rm -f conftest.er1
29455 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000029456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029457 (exit $ac_status); } && {
29458 test -z "$ac_c_werror_flag" ||
29459 test ! -s conftest.err
29460 } && test -s conftest$ac_exeext &&
29461 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029462 ac_cv_working_alloca_h=yes
29463else
29464 echo "$as_me: failed program was:" >&5
29465sed 's/^/| /' conftest.$ac_ext >&5
29466
Reid Spencera773bd52006-08-04 18:18:08 +000029467 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000029468fi
Reid Spencera773bd52006-08-04 18:18:08 +000029469
Scott Michel96dcd2b2007-12-05 21:24:02 +000029470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029471 conftest$ac_exeext conftest.$ac_ext
29472fi
Reid Spencera773bd52006-08-04 18:18:08 +000029473{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29474echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029475if test $ac_cv_working_alloca_h = yes; then
29476
29477cat >>confdefs.h <<\_ACEOF
29478#define HAVE_ALLOCA_H 1
29479_ACEOF
29480
29481fi
29482
Reid Spencera773bd52006-08-04 18:18:08 +000029483{ echo "$as_me:$LINENO: checking for alloca" >&5
29484echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029485if test "${ac_cv_func_alloca_works+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29487else
29488 cat >conftest.$ac_ext <<_ACEOF
29489/* confdefs.h. */
29490_ACEOF
29491cat confdefs.h >>conftest.$ac_ext
29492cat >>conftest.$ac_ext <<_ACEOF
29493/* end confdefs.h. */
29494#ifdef __GNUC__
29495# define alloca __builtin_alloca
29496#else
29497# ifdef _MSC_VER
29498# include <malloc.h>
29499# define alloca _alloca
29500# else
Scott Michel96dcd2b2007-12-05 21:24:02 +000029501# ifdef HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029502# include <alloca.h>
29503# else
29504# ifdef _AIX
29505 #pragma alloca
29506# else
29507# ifndef alloca /* predefined by HP cc +Olibcalls */
29508char *alloca ();
29509# endif
29510# endif
29511# endif
29512# endif
29513#endif
29514
29515int
29516main ()
29517{
29518char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000029519 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029520 ;
29521 return 0;
29522}
29523_ACEOF
29524rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029525if { (ac_try="$ac_link"
29526case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29529esac
29530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029532 ac_status=$?
29533 grep -v '^ *+' conftest.er1 >conftest.err
29534 rm -f conftest.er1
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029537 (exit $ac_status); } && {
29538 test -z "$ac_c_werror_flag" ||
29539 test ! -s conftest.err
29540 } && test -s conftest$ac_exeext &&
29541 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029542 ac_cv_func_alloca_works=yes
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
Reid Spencera773bd52006-08-04 18:18:08 +000029547 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029548fi
Reid Spencera773bd52006-08-04 18:18:08 +000029549
Scott Michel96dcd2b2007-12-05 21:24:02 +000029550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029551 conftest$ac_exeext conftest.$ac_ext
29552fi
Reid Spencera773bd52006-08-04 18:18:08 +000029553{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29554echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029555
29556if test $ac_cv_func_alloca_works = yes; then
29557
29558cat >>confdefs.h <<\_ACEOF
29559#define HAVE_ALLOCA 1
29560_ACEOF
29561
29562else
29563 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29564# that cause trouble. Some versions do not even contain alloca or
29565# contain a buggy version. If you still want to use their alloca,
29566# use ar to extract alloca.o from them instead of compiling alloca.c.
29567
Reid Spencera773bd52006-08-04 18:18:08 +000029568ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029569
29570cat >>confdefs.h <<\_ACEOF
29571#define C_ALLOCA 1
29572_ACEOF
29573
29574
Reid Spencera773bd52006-08-04 18:18:08 +000029575{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29576echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029577if test "${ac_cv_os_cray+set}" = set; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29579else
29580 cat >conftest.$ac_ext <<_ACEOF
29581/* confdefs.h. */
29582_ACEOF
29583cat confdefs.h >>conftest.$ac_ext
29584cat >>conftest.$ac_ext <<_ACEOF
29585/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029586#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029587webecray
29588#else
29589wenotbecray
29590#endif
29591
29592_ACEOF
29593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29594 $EGREP "webecray" >/dev/null 2>&1; then
29595 ac_cv_os_cray=yes
29596else
29597 ac_cv_os_cray=no
29598fi
29599rm -f conftest*
29600
29601fi
Reid Spencera773bd52006-08-04 18:18:08 +000029602{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29603echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029604if test $ac_cv_os_cray = yes; then
29605 for ac_func in _getb67 GETB67 getb67; do
29606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029610 echo $ECHO_N "(cached) $ECHO_C" >&6
29611else
29612 cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
29618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29620#define $ac_func innocuous_$ac_func
29621
29622/* System header to define __stub macros and hopefully few prototypes,
29623 which can conflict with char $ac_func (); below.
29624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29625 <limits.h> exists even on freestanding compilers. */
29626
29627#ifdef __STDC__
29628# include <limits.h>
29629#else
29630# include <assert.h>
29631#endif
29632
29633#undef $ac_func
29634
Reid Spencera773bd52006-08-04 18:18:08 +000029635/* Override any GCC internal prototype to avoid an error.
29636 Use char because int might match the return type of a GCC
29637 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029638#ifdef __cplusplus
29639extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029640#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029641char $ac_func ();
29642/* The GNU C library defines this for functions which it implements
29643 to always fail with ENOSYS. Some functions are actually named
29644 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029645#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029646choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029647#endif
29648
29649int
29650main ()
29651{
Reid Spencera773bd52006-08-04 18:18:08 +000029652return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029653 ;
29654 return 0;
29655}
29656_ACEOF
29657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029658if { (ac_try="$ac_link"
29659case "(($ac_try" in
29660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661 *) ac_try_echo=$ac_try;;
29662esac
29663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029665 ac_status=$?
29666 grep -v '^ *+' conftest.er1 >conftest.err
29667 rm -f conftest.er1
29668 cat conftest.err >&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029670 (exit $ac_status); } && {
29671 test -z "$ac_c_werror_flag" ||
29672 test ! -s conftest.err
29673 } && test -s conftest$ac_exeext &&
29674 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029675 eval "$as_ac_var=yes"
29676else
29677 echo "$as_me: failed program was:" >&5
29678sed 's/^/| /' conftest.$ac_ext >&5
29679
Reid Spencera773bd52006-08-04 18:18:08 +000029680 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029681fi
Reid Spencera773bd52006-08-04 18:18:08 +000029682
Scott Michel96dcd2b2007-12-05 21:24:02 +000029683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029684 conftest$ac_exeext conftest.$ac_ext
29685fi
Reid Spencera773bd52006-08-04 18:18:08 +000029686ac_res=`eval echo '${'$as_ac_var'}'`
29687 { echo "$as_me:$LINENO: result: $ac_res" >&5
29688echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029689if test `eval echo '${'$as_ac_var'}'` = yes; then
29690
29691cat >>confdefs.h <<_ACEOF
29692#define CRAY_STACKSEG_END $ac_func
29693_ACEOF
29694
29695 break
29696fi
29697
29698 done
29699fi
29700
Reid Spencera773bd52006-08-04 18:18:08 +000029701{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29702echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029703if test "${ac_cv_c_stack_direction+set}" = set; then
29704 echo $ECHO_N "(cached) $ECHO_C" >&6
29705else
29706 if test "$cross_compiling" = yes; then
29707 ac_cv_c_stack_direction=0
29708else
29709 cat >conftest.$ac_ext <<_ACEOF
29710/* confdefs.h. */
29711_ACEOF
29712cat confdefs.h >>conftest.$ac_ext
29713cat >>conftest.$ac_ext <<_ACEOF
29714/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029715$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029716int
29717find_stack_direction ()
29718{
29719 static char *addr = 0;
29720 auto char dummy;
29721 if (addr == 0)
29722 {
29723 addr = &dummy;
29724 return find_stack_direction ();
29725 }
John Criswell0021c312004-02-13 21:57:29 +000029726 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029727 return (&dummy > addr) ? 1 : -1;
29728}
John Criswell0021c312004-02-13 21:57:29 +000029729
John Criswell0021c312004-02-13 21:57:29 +000029730int
29731main ()
29732{
Reid Spencera773bd52006-08-04 18:18:08 +000029733 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000029734}
29735_ACEOF
29736rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029737if { (ac_try="$ac_link"
29738case "(($ac_try" in
29739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 *) ac_try_echo=$ac_try;;
29741esac
29742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029744 ac_status=$?
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029747 { (case "(($ac_try" in
29748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749 *) ac_try_echo=$ac_try;;
29750esac
29751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029753 ac_status=$?
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029756 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029757else
29758 echo "$as_me: program exited with status $ac_status" >&5
29759echo "$as_me: failed program was:" >&5
29760sed 's/^/| /' conftest.$ac_ext >&5
29761
29762( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029763ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029764fi
Reid Spencera773bd52006-08-04 18:18:08 +000029765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000029766fi
Reid Spencera773bd52006-08-04 18:18:08 +000029767
29768
John Criswell0021c312004-02-13 21:57:29 +000029769fi
Reid Spencera773bd52006-08-04 18:18:08 +000029770{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29771echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029772
29773cat >>confdefs.h <<_ACEOF
29774#define STACK_DIRECTION $ac_cv_c_stack_direction
29775_ACEOF
29776
29777
John Criswell0021c312004-02-13 21:57:29 +000029778fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029779
29780
Reid Spencera773bd52006-08-04 18:18:08 +000029781{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29782echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029783if test "${ac_cv_func_rand48+set}" = set; then
29784 echo $ECHO_N "(cached) $ECHO_C" >&6
29785else
Reid Spencera773bd52006-08-04 18:18:08 +000029786 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029787ac_cpp='$CXXCPP $CPPFLAGS'
29788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29791
29792 cat >conftest.$ac_ext <<_ACEOF
29793/* confdefs.h. */
29794_ACEOF
29795cat confdefs.h >>conftest.$ac_ext
29796cat >>conftest.$ac_ext <<_ACEOF
29797/* end confdefs.h. */
29798#include <stdlib.h>
29799int
29800main ()
29801{
29802srand48(0);lrand48();drand48();
29803 ;
29804 return 0;
29805}
29806_ACEOF
29807rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029808if { (ac_try="$ac_compile"
29809case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29812esac
29813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029815 ac_status=$?
29816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029820 (exit $ac_status); } && {
29821 test -z "$ac_cxx_werror_flag" ||
29822 test ! -s conftest.err
29823 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029824 ac_cv_func_rand48=yes
29825else
29826 echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
Reid Spencera773bd52006-08-04 18:18:08 +000029829 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029830fi
Reid Spencera773bd52006-08-04 18:18:08 +000029831
29832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029833 ac_ext=c
29834ac_cpp='$CPP $CPPFLAGS'
29835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837ac_compiler_gnu=$ac_cv_c_compiler_gnu
29838
29839fi
Reid Spencera773bd52006-08-04 18:18:08 +000029840{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29841echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029842
29843if test "$ac_cv_func_rand48" = "yes" ; then
29844
29845cat >>confdefs.h <<\_ACEOF
29846#define HAVE_RAND48 1
29847_ACEOF
29848
29849fi
John Criswell0021c312004-02-13 21:57:29 +000029850
29851
Reid Spencera773bd52006-08-04 18:18:08 +000029852{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29853echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029854if test "${ac_cv_cxx_namespaces+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29856else
Reid Spencera773bd52006-08-04 18:18:08 +000029857 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029858ac_cpp='$CXXCPP $CPPFLAGS'
29859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29862
29863 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029864/* confdefs.h. */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029869namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029870int
29871main ()
29872{
29873using namespace Outer::Inner; return i;
29874 ;
29875 return 0;
29876}
29877_ACEOF
29878rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029879if { (ac_try="$ac_compile"
29880case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883esac
29884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029891 (exit $ac_status); } && {
29892 test -z "$ac_cxx_werror_flag" ||
29893 test ! -s conftest.err
29894 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000029895 ac_cv_cxx_namespaces=yes
29896else
29897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029898sed 's/^/| /' conftest.$ac_ext >&5
29899
Reid Spencera773bd52006-08-04 18:18:08 +000029900 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000029901fi
Reid Spencera773bd52006-08-04 18:18:08 +000029902
29903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029904 ac_ext=c
29905ac_cpp='$CPP $CPPFLAGS'
29906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909
29910
29911fi
Reid Spencera773bd52006-08-04 18:18:08 +000029912{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29913echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029914if test "$ac_cv_cxx_namespaces" = yes; then
29915
29916cat >>confdefs.h <<\_ACEOF
29917#define HAVE_NAMESPACES
29918_ACEOF
29919
29920fi
29921
Reid Spencera773bd52006-08-04 18:18:08 +000029922{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29923echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000029924if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029925 echo $ECHO_N "(cached) $ECHO_C" >&6
29926else
29927
Reid Spencera773bd52006-08-04 18:18:08 +000029928 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029929ac_cpp='$CXXCPP $CPPFLAGS'
29930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29933
29934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029935/* confdefs.h. */
29936_ACEOF
29937cat confdefs.h >>conftest.$ac_ext
29938cat >>conftest.$ac_ext <<_ACEOF
29939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029940#include <ext/hash_map>
29941#ifdef HAVE_NAMESPACES
29942using namespace std;
29943#endif
John Criswell7a73b802003-06-30 21:59:07 +000029944int
29945main ()
29946{
Brian Gaeke90583492003-11-10 03:06:28 +000029947hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029948 ;
29949 return 0;
29950}
29951_ACEOF
29952rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029953if { (ac_try="$ac_compile"
29954case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029965 (exit $ac_status); } && {
29966 test -z "$ac_cxx_werror_flag" ||
29967 test ! -s conftest.err
29968 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000029969 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029970else
29971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029972sed 's/^/| /' conftest.$ac_ext >&5
29973
Reid Spencera773bd52006-08-04 18:18:08 +000029974 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029975fi
Reid Spencera773bd52006-08-04 18:18:08 +000029976
29977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029978 ac_ext=c
29979ac_cpp='$CPP $CPPFLAGS'
29980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29982ac_compiler_gnu=$ac_cv_c_compiler_gnu
29983
John Criswell7a73b802003-06-30 21:59:07 +000029984fi
Reid Spencera773bd52006-08-04 18:18:08 +000029985{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29986echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000029987 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29988 then
John Criswell9f011862004-09-24 18:28:00 +000029989
29990cat >>confdefs.h <<\_ACEOF
29991#define HAVE_STD_EXT_HASH_MAP 1
29992_ACEOF
29993
29994 else
29995
29996cat >>confdefs.h <<\_ACEOF
29997#define HAVE_STD_EXT_HASH_MAP 0
29998_ACEOF
29999
Brian Gaeke90583492003-11-10 03:06:28 +000030000 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030001
Reid Spencera773bd52006-08-04 18:18:08 +000030002 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30003echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030004if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007
Reid Spencera773bd52006-08-04 18:18:08 +000030008 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030009ac_cpp='$CXXCPP $CPPFLAGS'
30010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30013
30014 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030015/* confdefs.h. */
30016_ACEOF
30017cat confdefs.h >>conftest.$ac_ext
30018cat >>conftest.$ac_ext <<_ACEOF
30019/* end confdefs.h. */
30020#include <ext/hash_map>
30021#ifdef HAVE_NAMESPACES
30022using namespace __gnu_cxx;
30023#endif
30024int
30025main ()
30026{
30027hash_map<int,int> t;
30028 ;
30029 return 0;
30030}
30031_ACEOF
30032rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030033if { (ac_try="$ac_compile"
30034case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30037esac
30038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030041 grep -v '^ *+' conftest.er1 >conftest.err
30042 rm -f conftest.er1
30043 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030045 (exit $ac_status); } && {
30046 test -z "$ac_cxx_werror_flag" ||
30047 test ! -s conftest.err
30048 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030049 ac_cv_cxx_have_gnu_ext_hash_map=yes
30050else
30051 echo "$as_me: failed program was:" >&5
30052sed 's/^/| /' conftest.$ac_ext >&5
30053
Reid Spencera773bd52006-08-04 18:18:08 +000030054 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030055fi
Reid Spencera773bd52006-08-04 18:18:08 +000030056
30057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030058 ac_ext=c
30059ac_cpp='$CPP $CPPFLAGS'
30060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30062ac_compiler_gnu=$ac_cv_c_compiler_gnu
30063
30064fi
Reid Spencera773bd52006-08-04 18:18:08 +000030065{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30066echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030067 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30068 then
John Criswell9f011862004-09-24 18:28:00 +000030069
30070cat >>confdefs.h <<\_ACEOF
30071#define HAVE_GNU_EXT_HASH_MAP 1
30072_ACEOF
30073
30074 else
30075
30076cat >>confdefs.h <<\_ACEOF
30077#define HAVE_GNU_EXT_HASH_MAP 0
30078_ACEOF
30079
Brian Gaeke90583492003-11-10 03:06:28 +000030080 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030081
Reid Spencera773bd52006-08-04 18:18:08 +000030082 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30083echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030084if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30086else
John Criswell7a73b802003-06-30 21:59:07 +000030087
Reid Spencera773bd52006-08-04 18:18:08 +000030088 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030089ac_cpp='$CXXCPP $CPPFLAGS'
30090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30093
30094 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030095/* confdefs.h. */
30096_ACEOF
30097cat confdefs.h >>conftest.$ac_ext
30098cat >>conftest.$ac_ext <<_ACEOF
30099/* end confdefs.h. */
30100#include <hash_map>
30101int
30102main ()
30103{
30104hash_map<int,int> t;
30105 ;
30106 return 0;
30107}
30108_ACEOF
30109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030110if { (ac_try="$ac_compile"
30111case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114esac
30115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030118 grep -v '^ *+' conftest.er1 >conftest.err
30119 rm -f conftest.er1
30120 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030122 (exit $ac_status); } && {
30123 test -z "$ac_cxx_werror_flag" ||
30124 test ! -s conftest.err
30125 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030126 ac_cv_cxx_have_global_hash_map=yes
30127else
30128 echo "$as_me: failed program was:" >&5
30129sed 's/^/| /' conftest.$ac_ext >&5
30130
Reid Spencera773bd52006-08-04 18:18:08 +000030131 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000030132fi
Reid Spencera773bd52006-08-04 18:18:08 +000030133
30134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030135 ac_ext=c
30136ac_cpp='$CPP $CPPFLAGS'
30137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30139ac_compiler_gnu=$ac_cv_c_compiler_gnu
30140
30141fi
Reid Spencera773bd52006-08-04 18:18:08 +000030142{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30143echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030144 if test "$ac_cv_cxx_have_global_hash_map" = yes
30145 then
John Criswell9f011862004-09-24 18:28:00 +000030146
30147cat >>confdefs.h <<\_ACEOF
30148#define HAVE_GLOBAL_HASH_MAP 1
30149_ACEOF
30150
30151 else
30152
30153cat >>confdefs.h <<\_ACEOF
30154#define HAVE_GLOBAL_HASH_MAP 0
30155_ACEOF
30156
Brian Gaeke90583492003-11-10 03:06:28 +000030157 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030158
Reid Spencera773bd52006-08-04 18:18:08 +000030159{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30160echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030161if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030162 echo $ECHO_N "(cached) $ECHO_C" >&6
30163else
30164
Reid Spencera773bd52006-08-04 18:18:08 +000030165 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030166ac_cpp='$CXXCPP $CPPFLAGS'
30167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30170
30171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030172/* confdefs.h. */
30173_ACEOF
30174cat confdefs.h >>conftest.$ac_ext
30175cat >>conftest.$ac_ext <<_ACEOF
30176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030177#include <ext/hash_set>
30178#ifdef HAVE_NAMESPACES
30179using namespace std;
30180#endif
John Criswell7a73b802003-06-30 21:59:07 +000030181int
30182main ()
30183{
Brian Gaeke90583492003-11-10 03:06:28 +000030184hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030185 ;
30186 return 0;
30187}
30188_ACEOF
30189rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030190if { (ac_try="$ac_compile"
30191case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030197 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030198 grep -v '^ *+' conftest.er1 >conftest.err
30199 rm -f conftest.er1
30200 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030202 (exit $ac_status); } && {
30203 test -z "$ac_cxx_werror_flag" ||
30204 test ! -s conftest.err
30205 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030206 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030207else
30208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030209sed 's/^/| /' conftest.$ac_ext >&5
30210
Reid Spencera773bd52006-08-04 18:18:08 +000030211 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030212fi
Reid Spencera773bd52006-08-04 18:18:08 +000030213
30214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030215 ac_ext=c
30216ac_cpp='$CPP $CPPFLAGS'
30217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30219ac_compiler_gnu=$ac_cv_c_compiler_gnu
30220
30221fi
Reid Spencera773bd52006-08-04 18:18:08 +000030222{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30223echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030224 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30225 then
John Criswell9f011862004-09-24 18:28:00 +000030226
30227cat >>confdefs.h <<\_ACEOF
30228#define HAVE_STD_EXT_HASH_SET 1
30229_ACEOF
30230
30231 else
30232
30233cat >>confdefs.h <<\_ACEOF
30234#define HAVE_STD_EXT_HASH_SET 0
30235_ACEOF
30236
Brian Gaeke90583492003-11-10 03:06:28 +000030237 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030238
Reid Spencera773bd52006-08-04 18:18:08 +000030239 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30240echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030241if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30243else
30244
Reid Spencera773bd52006-08-04 18:18:08 +000030245 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030246ac_cpp='$CXXCPP $CPPFLAGS'
30247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30250
John Criswell7a73b802003-06-30 21:59:07 +000030251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030252/* confdefs.h. */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030257#include <ext/hash_set>
30258#ifdef HAVE_NAMESPACES
30259using namespace __gnu_cxx;
30260#endif
John Criswell7a73b802003-06-30 21:59:07 +000030261int
30262main ()
30263{
Brian Gaeke90583492003-11-10 03:06:28 +000030264hash_set<int> t;
30265 ;
30266 return 0;
30267}
30268_ACEOF
30269rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030270if { (ac_try="$ac_compile"
30271case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30274esac
30275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030277 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030278 grep -v '^ *+' conftest.er1 >conftest.err
30279 rm -f conftest.er1
30280 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030282 (exit $ac_status); } && {
30283 test -z "$ac_cxx_werror_flag" ||
30284 test ! -s conftest.err
30285 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030286 ac_cv_cxx_have_gnu_ext_hash_set=yes
30287else
30288 echo "$as_me: failed program was:" >&5
30289sed 's/^/| /' conftest.$ac_ext >&5
30290
Reid Spencera773bd52006-08-04 18:18:08 +000030291 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000030292fi
Reid Spencera773bd52006-08-04 18:18:08 +000030293
30294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030295 ac_ext=c
30296ac_cpp='$CPP $CPPFLAGS'
30297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299ac_compiler_gnu=$ac_cv_c_compiler_gnu
30300
30301fi
Reid Spencera773bd52006-08-04 18:18:08 +000030302{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30303echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030304 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30305 then
John Criswell9f011862004-09-24 18:28:00 +000030306
30307cat >>confdefs.h <<\_ACEOF
30308#define HAVE_GNU_EXT_HASH_SET 1
30309_ACEOF
30310
30311 else
30312
30313cat >>confdefs.h <<\_ACEOF
30314#define HAVE_GNU_EXT_HASH_SET 0
30315_ACEOF
30316
Brian Gaeke90583492003-11-10 03:06:28 +000030317 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030318
Reid Spencera773bd52006-08-04 18:18:08 +000030319 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30320echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030321if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30323else
30324
Reid Spencera773bd52006-08-04 18:18:08 +000030325 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030326ac_cpp='$CXXCPP $CPPFLAGS'
30327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30330
30331 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030332/* confdefs.h. */
30333_ACEOF
30334cat confdefs.h >>conftest.$ac_ext
30335cat >>conftest.$ac_ext <<_ACEOF
30336/* end confdefs.h. */
30337#include <hash_set>
30338int
30339main ()
30340{
John Criswell7a73b802003-06-30 21:59:07 +000030341hash_set<int> t; return 0;
30342 ;
30343 return 0;
30344}
30345_ACEOF
30346rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030347if { (ac_try="$ac_compile"
30348case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030359 (exit $ac_status); } && {
30360 test -z "$ac_cxx_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030363 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030364else
30365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030366sed 's/^/| /' conftest.$ac_ext >&5
30367
Reid Spencera773bd52006-08-04 18:18:08 +000030368 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030369fi
Reid Spencera773bd52006-08-04 18:18:08 +000030370
30371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030372 ac_ext=c
30373ac_cpp='$CPP $CPPFLAGS'
30374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30376ac_compiler_gnu=$ac_cv_c_compiler_gnu
30377
John Criswell7a73b802003-06-30 21:59:07 +000030378fi
Reid Spencera773bd52006-08-04 18:18:08 +000030379{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30380echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030381 if test "$ac_cv_cxx_have_global_hash_set" = yes
30382 then
John Criswell9f011862004-09-24 18:28:00 +000030383
30384cat >>confdefs.h <<\_ACEOF
30385#define HAVE_GLOBAL_HASH_SET 1
30386_ACEOF
30387
30388 else
30389
30390cat >>confdefs.h <<\_ACEOF
30391#define HAVE_GLOBAL_HASH_SET 0
30392_ACEOF
30393
Brian Gaeke90583492003-11-10 03:06:28 +000030394 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030395
Reid Spencera773bd52006-08-04 18:18:08 +000030396{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30397echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030398if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30399 echo $ECHO_N "(cached) $ECHO_C" >&6
30400else
30401
Reid Spencera773bd52006-08-04 18:18:08 +000030402 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030403ac_cpp='$CXXCPP $CPPFLAGS'
30404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30407
30408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030409/* confdefs.h. */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030414#include <iterator>
30415#ifdef HAVE_NAMESPACES
30416using namespace std;
30417#endif
John Criswell7a73b802003-06-30 21:59:07 +000030418int
30419main ()
30420{
30421iterator<int,int,int> t; return 0;
30422 ;
30423 return 0;
30424}
30425_ACEOF
30426rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030427if { (ac_try="$ac_compile"
30428case "(($ac_try" in
30429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30430 *) ac_try_echo=$ac_try;;
30431esac
30432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30433 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030435 grep -v '^ *+' conftest.er1 >conftest.err
30436 rm -f conftest.er1
30437 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030439 (exit $ac_status); } && {
30440 test -z "$ac_cxx_werror_flag" ||
30441 test ! -s conftest.err
30442 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030443 ac_cv_cxx_have_std_iterator=yes
30444else
30445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030446sed 's/^/| /' conftest.$ac_ext >&5
30447
Reid Spencera773bd52006-08-04 18:18:08 +000030448 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030449fi
Reid Spencera773bd52006-08-04 18:18:08 +000030450
30451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030452 ac_ext=c
30453ac_cpp='$CPP $CPPFLAGS'
30454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30456ac_compiler_gnu=$ac_cv_c_compiler_gnu
30457
30458
30459fi
Reid Spencera773bd52006-08-04 18:18:08 +000030460{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30461echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030462if test "$ac_cv_cxx_have_std_iterator" = yes
30463then
John Criswell40468462004-09-24 21:19:06 +000030464
30465cat >>confdefs.h <<\_ACEOF
30466#define HAVE_STD_ITERATOR 1
30467_ACEOF
30468
30469else
30470
30471cat >>confdefs.h <<\_ACEOF
30472#define HAVE_STD_ITERATOR 0
30473_ACEOF
30474
John Criswell7a73b802003-06-30 21:59:07 +000030475fi
30476
Reid Spencera773bd52006-08-04 18:18:08 +000030477{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30478echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030479if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30481else
30482
Reid Spencera773bd52006-08-04 18:18:08 +000030483 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030484ac_cpp='$CXXCPP $CPPFLAGS'
30485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30488
30489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030490/* confdefs.h. */
30491_ACEOF
30492cat confdefs.h >>conftest.$ac_ext
30493cat >>conftest.$ac_ext <<_ACEOF
30494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030495#include <iterator>
30496#ifdef HAVE_NAMESPACES
30497using namespace std;
30498#endif
John Criswell7a73b802003-06-30 21:59:07 +000030499int
30500main ()
30501{
John Criswellc78022e2003-07-29 19:11:58 +000030502bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030503 ;
30504 return 0;
30505}
30506_ACEOF
30507rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030508if { (ac_try="$ac_compile"
30509case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512esac
30513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030515 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030516 grep -v '^ *+' conftest.er1 >conftest.err
30517 rm -f conftest.er1
30518 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030520 (exit $ac_status); } && {
30521 test -z "$ac_cxx_werror_flag" ||
30522 test ! -s conftest.err
30523 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030524 ac_cv_cxx_have_bi_iterator=yes
30525else
30526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030527sed 's/^/| /' conftest.$ac_ext >&5
30528
Reid Spencera773bd52006-08-04 18:18:08 +000030529 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030530fi
Reid Spencera773bd52006-08-04 18:18:08 +000030531
30532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030533 ac_ext=c
30534ac_cpp='$CPP $CPPFLAGS'
30535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30537ac_compiler_gnu=$ac_cv_c_compiler_gnu
30538
30539
30540fi
Reid Spencera773bd52006-08-04 18:18:08 +000030541{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30542echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030543if test "$ac_cv_cxx_have_bi_iterator" = yes
30544then
John Criswell40468462004-09-24 21:19:06 +000030545
30546cat >>confdefs.h <<\_ACEOF
30547#define HAVE_BI_ITERATOR 1
30548_ACEOF
30549
30550else
30551
30552cat >>confdefs.h <<\_ACEOF
30553#define HAVE_BI_ITERATOR 0
30554_ACEOF
30555
John Criswell7a73b802003-06-30 21:59:07 +000030556fi
30557
Reid Spencera773bd52006-08-04 18:18:08 +000030558{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30559echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030560if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30562else
30563
Reid Spencera773bd52006-08-04 18:18:08 +000030564 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030565ac_cpp='$CXXCPP $CPPFLAGS'
30566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30569
30570 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030571/* confdefs.h. */
30572_ACEOF
30573cat confdefs.h >>conftest.$ac_ext
30574cat >>conftest.$ac_ext <<_ACEOF
30575/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030576#include <iterator>
30577#ifdef HAVE_NAMESPACES
30578using namespace std;
30579#endif
John Criswell7a73b802003-06-30 21:59:07 +000030580int
30581main ()
30582{
John Criswellc78022e2003-07-29 19:11:58 +000030583forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030584 ;
30585 return 0;
30586}
30587_ACEOF
30588rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030589if { (ac_try="$ac_compile"
30590case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30593esac
30594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030597 grep -v '^ *+' conftest.er1 >conftest.err
30598 rm -f conftest.er1
30599 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030601 (exit $ac_status); } && {
30602 test -z "$ac_cxx_werror_flag" ||
30603 test ! -s conftest.err
30604 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030605 ac_cv_cxx_have_fwd_iterator=yes
30606else
30607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030608sed 's/^/| /' conftest.$ac_ext >&5
30609
Reid Spencera773bd52006-08-04 18:18:08 +000030610 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030611fi
Reid Spencera773bd52006-08-04 18:18:08 +000030612
30613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030614 ac_ext=c
30615ac_cpp='$CPP $CPPFLAGS'
30616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30618ac_compiler_gnu=$ac_cv_c_compiler_gnu
30619
30620
30621fi
Reid Spencera773bd52006-08-04 18:18:08 +000030622{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30623echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030624if test "$ac_cv_cxx_have_fwd_iterator" = yes
30625then
John Criswell40468462004-09-24 21:19:06 +000030626
30627cat >>confdefs.h <<\_ACEOF
30628#define HAVE_FWD_ITERATOR 1
30629_ACEOF
30630
30631else
30632
30633cat >>confdefs.h <<\_ACEOF
30634#define HAVE_FWD_ITERATOR 0
30635_ACEOF
30636
John Criswell7a73b802003-06-30 21:59:07 +000030637fi
30638
30639
Reid Spencera773bd52006-08-04 18:18:08 +000030640{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30641echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030642if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30644else
Reid Spencera773bd52006-08-04 18:18:08 +000030645 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030646ac_cpp='$CXXCPP $CPPFLAGS'
30647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30650
Reid Spencerabec8f92004-10-27 23:03:44 +000030651 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030652/* confdefs.h. */
30653_ACEOF
30654cat confdefs.h >>conftest.$ac_ext
30655cat >>conftest.$ac_ext <<_ACEOF
30656/* end confdefs.h. */
30657#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030658int
30659main ()
30660{
30661float f; isnan(f);
30662 ;
30663 return 0;
30664}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030665_ACEOF
30666rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030667if { (ac_try="$ac_compile"
30668case "(($ac_try" in
30669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670 *) ac_try_echo=$ac_try;;
30671esac
30672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030674 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030675 grep -v '^ *+' conftest.er1 >conftest.err
30676 rm -f conftest.er1
30677 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030679 (exit $ac_status); } && {
30680 test -z "$ac_cxx_werror_flag" ||
30681 test ! -s conftest.err
30682 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030683 ac_cv_func_isnan_in_math_h=yes
30684else
30685 echo "$as_me: failed program was:" >&5
30686sed 's/^/| /' conftest.$ac_ext >&5
30687
Reid Spencera773bd52006-08-04 18:18:08 +000030688 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030689fi
Reid Spencera773bd52006-08-04 18:18:08 +000030690
30691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030692 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030693ac_cpp='$CPP $CPPFLAGS'
30694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30696ac_compiler_gnu=$ac_cv_c_compiler_gnu
30697
30698fi
Reid Spencera773bd52006-08-04 18:18:08 +000030699{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30700echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030701
30702
30703if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030704
30705cat >>confdefs.h <<\_ACEOF
30706#define HAVE_ISNAN_IN_MATH_H 1
30707_ACEOF
30708
Reid Spencerabec8f92004-10-27 23:03:44 +000030709fi
30710
Reid Spencera773bd52006-08-04 18:18:08 +000030711{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30712echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030713if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30714 echo $ECHO_N "(cached) $ECHO_C" >&6
30715else
Reid Spencera773bd52006-08-04 18:18:08 +000030716 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030717ac_cpp='$CXXCPP $CPPFLAGS'
30718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30721
Reid Spencerabec8f92004-10-27 23:03:44 +000030722 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030723/* confdefs.h. */
30724_ACEOF
30725cat confdefs.h >>conftest.$ac_ext
30726cat >>conftest.$ac_ext <<_ACEOF
30727/* end confdefs.h. */
30728#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030729int
30730main ()
30731{
30732float f; isnan(f);
30733 ;
30734 return 0;
30735}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030736_ACEOF
30737rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030738if { (ac_try="$ac_compile"
30739case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30742esac
30743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030746 grep -v '^ *+' conftest.er1 >conftest.err
30747 rm -f conftest.er1
30748 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030750 (exit $ac_status); } && {
30751 test -z "$ac_cxx_werror_flag" ||
30752 test ! -s conftest.err
30753 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030754 ac_cv_func_isnan_in_cmath=yes
30755else
30756 echo "$as_me: failed program was:" >&5
30757sed 's/^/| /' conftest.$ac_ext >&5
30758
Reid Spencera773bd52006-08-04 18:18:08 +000030759 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030760fi
Reid Spencera773bd52006-08-04 18:18:08 +000030761
30762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030763 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030764ac_cpp='$CPP $CPPFLAGS'
30765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767ac_compiler_gnu=$ac_cv_c_compiler_gnu
30768
30769fi
Reid Spencera773bd52006-08-04 18:18:08 +000030770{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30771echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030772
30773if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030774
30775cat >>confdefs.h <<\_ACEOF
30776#define HAVE_ISNAN_IN_CMATH 1
30777_ACEOF
30778
Reid Spencerabec8f92004-10-27 23:03:44 +000030779fi
30780
Reid Spencera773bd52006-08-04 18:18:08 +000030781{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30782echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030783if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30784 echo $ECHO_N "(cached) $ECHO_C" >&6
30785else
Reid Spencera773bd52006-08-04 18:18:08 +000030786 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030787ac_cpp='$CXXCPP $CPPFLAGS'
30788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30791
Reid Spencerabec8f92004-10-27 23:03:44 +000030792 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030793/* confdefs.h. */
30794_ACEOF
30795cat confdefs.h >>conftest.$ac_ext
30796cat >>conftest.$ac_ext <<_ACEOF
30797/* end confdefs.h. */
30798#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030799int
30800main ()
30801{
30802float f; std::isnan(f);
30803 ;
30804 return 0;
30805}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030806_ACEOF
30807rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030808if { (ac_try="$ac_compile"
30809case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30812esac
30813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030820 (exit $ac_status); } && {
30821 test -z "$ac_cxx_werror_flag" ||
30822 test ! -s conftest.err
30823 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030824 ac_cv_func_std_isnan_in_cmath=yes
30825else
30826 echo "$as_me: failed program was:" >&5
30827sed 's/^/| /' conftest.$ac_ext >&5
30828
Reid Spencera773bd52006-08-04 18:18:08 +000030829 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030830fi
Reid Spencera773bd52006-08-04 18:18:08 +000030831
30832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030833 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030834ac_cpp='$CPP $CPPFLAGS'
30835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30837ac_compiler_gnu=$ac_cv_c_compiler_gnu
30838
30839fi
Reid Spencera773bd52006-08-04 18:18:08 +000030840{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30841echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030842
30843if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030844
30845cat >>confdefs.h <<\_ACEOF
30846#define HAVE_STD_ISNAN_IN_CMATH 1
30847_ACEOF
30848
Reid Spencerabec8f92004-10-27 23:03:44 +000030849fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030850
30851
Reid Spencera773bd52006-08-04 18:18:08 +000030852{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30853echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030854if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30856else
Reid Spencera773bd52006-08-04 18:18:08 +000030857 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030858ac_cpp='$CXXCPP $CPPFLAGS'
30859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30862
Reid Spencerabec8f92004-10-27 23:03:44 +000030863 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030864/* confdefs.h. */
30865_ACEOF
30866cat confdefs.h >>conftest.$ac_ext
30867cat >>conftest.$ac_ext <<_ACEOF
30868/* end confdefs.h. */
30869#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030870int
30871main ()
30872{
30873float f; isinf(f);
30874 ;
30875 return 0;
30876}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030877_ACEOF
30878rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030879if { (ac_try="$ac_compile"
30880case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30883esac
30884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030887 grep -v '^ *+' conftest.er1 >conftest.err
30888 rm -f conftest.er1
30889 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030891 (exit $ac_status); } && {
30892 test -z "$ac_cxx_werror_flag" ||
30893 test ! -s conftest.err
30894 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030895 ac_cv_func_isinf_in_math_h=yes
30896else
30897 echo "$as_me: failed program was:" >&5
30898sed 's/^/| /' conftest.$ac_ext >&5
30899
Reid Spencera773bd52006-08-04 18:18:08 +000030900 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030901fi
Reid Spencera773bd52006-08-04 18:18:08 +000030902
30903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030904 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030905ac_cpp='$CPP $CPPFLAGS'
30906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30908ac_compiler_gnu=$ac_cv_c_compiler_gnu
30909
30910fi
Reid Spencera773bd52006-08-04 18:18:08 +000030911{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30912echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030913
30914if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030915
30916cat >>confdefs.h <<\_ACEOF
30917#define HAVE_ISINF_IN_MATH_H 1
30918_ACEOF
30919
Reid Spencerabec8f92004-10-27 23:03:44 +000030920fi
30921
Reid Spencera773bd52006-08-04 18:18:08 +000030922{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30923echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030924if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30926else
Reid Spencera773bd52006-08-04 18:18:08 +000030927 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030928ac_cpp='$CXXCPP $CPPFLAGS'
30929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30932
Reid Spencerabec8f92004-10-27 23:03:44 +000030933 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030934/* confdefs.h. */
30935_ACEOF
30936cat confdefs.h >>conftest.$ac_ext
30937cat >>conftest.$ac_ext <<_ACEOF
30938/* end confdefs.h. */
30939#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030940int
30941main ()
30942{
30943float f; isinf(f);
30944 ;
30945 return 0;
30946}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030947_ACEOF
30948rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030949if { (ac_try="$ac_compile"
30950case "(($ac_try" in
30951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30952 *) ac_try_echo=$ac_try;;
30953esac
30954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30955 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030957 grep -v '^ *+' conftest.er1 >conftest.err
30958 rm -f conftest.er1
30959 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030961 (exit $ac_status); } && {
30962 test -z "$ac_cxx_werror_flag" ||
30963 test ! -s conftest.err
30964 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030965 ac_cv_func_isinf_in_cmath=yes
30966else
30967 echo "$as_me: failed program was:" >&5
30968sed 's/^/| /' conftest.$ac_ext >&5
30969
Reid Spencera773bd52006-08-04 18:18:08 +000030970 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030971fi
Reid Spencera773bd52006-08-04 18:18:08 +000030972
30973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030974 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030975ac_cpp='$CPP $CPPFLAGS'
30976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30978ac_compiler_gnu=$ac_cv_c_compiler_gnu
30979
30980fi
Reid Spencera773bd52006-08-04 18:18:08 +000030981{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30982echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030983
30984if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030985
30986cat >>confdefs.h <<\_ACEOF
30987#define HAVE_ISINF_IN_CMATH 1
30988_ACEOF
30989
Reid Spencerabec8f92004-10-27 23:03:44 +000030990fi
30991
Reid Spencera773bd52006-08-04 18:18:08 +000030992{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30993echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030994if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
Reid Spencera773bd52006-08-04 18:18:08 +000030997 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030998ac_cpp='$CXXCPP $CPPFLAGS'
30999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31002
Reid Spencerabec8f92004-10-27 23:03:44 +000031003 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031004/* confdefs.h. */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h. */
31009#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031010int
31011main ()
31012{
31013float f; std::isinf(f)}
31014 ;
31015 return 0;
31016}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031017_ACEOF
31018rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031019if { (ac_try="$ac_compile"
31020case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023esac
31024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031026 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031031 (exit $ac_status); } && {
31032 test -z "$ac_cxx_werror_flag" ||
31033 test ! -s conftest.err
31034 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031035 ac_cv_func_std_isinf_in_cmath=yes
31036else
31037 echo "$as_me: failed program was:" >&5
31038sed 's/^/| /' conftest.$ac_ext >&5
31039
Reid Spencera773bd52006-08-04 18:18:08 +000031040 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031041fi
Reid Spencera773bd52006-08-04 18:18:08 +000031042
31043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031044 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031045ac_cpp='$CPP $CPPFLAGS'
31046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048ac_compiler_gnu=$ac_cv_c_compiler_gnu
31049
31050fi
Reid Spencera773bd52006-08-04 18:18:08 +000031051{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31052echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031053
31054if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031055
31056cat >>confdefs.h <<\_ACEOF
31057#define HAVE_STD_ISINF_IN_CMATH 1
31058_ACEOF
31059
Reid Spencerabec8f92004-10-27 23:03:44 +000031060fi
31061
Reid Spencera773bd52006-08-04 18:18:08 +000031062{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31063echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000031064if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
Reid Spencera773bd52006-08-04 18:18:08 +000031067 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000031068ac_cpp='$CXXCPP $CPPFLAGS'
31069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31072
Reid Spencerabec8f92004-10-27 23:03:44 +000031073 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000031074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
31079#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031080int
31081main ()
31082{
31083float f; finite(f);
31084 ;
31085 return 0;
31086}
Brian Gaeked59a6472004-07-21 03:33:58 +000031087_ACEOF
31088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031089if { (ac_try="$ac_compile"
31090case "(($ac_try" in
31091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092 *) ac_try_echo=$ac_try;;
31093esac
31094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31095 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000031096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031097 grep -v '^ *+' conftest.er1 >conftest.err
31098 rm -f conftest.er1
31099 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000031100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031101 (exit $ac_status); } && {
31102 test -z "$ac_cxx_werror_flag" ||
31103 test ! -s conftest.err
31104 } && test -s conftest.$ac_objext; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031105 ac_cv_func_finite_in_ieeefp_h=yes
31106else
31107 echo "$as_me: failed program was:" >&5
31108sed 's/^/| /' conftest.$ac_ext >&5
31109
Reid Spencera773bd52006-08-04 18:18:08 +000031110 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000031111fi
Reid Spencera773bd52006-08-04 18:18:08 +000031112
31113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031114 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000031115ac_cpp='$CPP $CPPFLAGS'
31116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31118ac_compiler_gnu=$ac_cv_c_compiler_gnu
31119
31120fi
Reid Spencera773bd52006-08-04 18:18:08 +000031121{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31122echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031123
Brian Gaeke6802b552004-10-28 05:06:45 +000031124if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031125
31126cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000031127#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000031128_ACEOF
31129
Reid Spencerabec8f92004-10-27 23:03:44 +000031130fi
31131
31132
31133
Reid Spencer30fe5262007-01-20 07:48:49 +000031134if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000031135
31136
31137for ac_header in stdlib.h unistd.h
31138do
31139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031144 echo $ECHO_N "(cached) $ECHO_C" >&6
31145fi
Reid Spencera773bd52006-08-04 18:18:08 +000031146ac_res=`eval echo '${'$as_ac_Header'}'`
31147 { echo "$as_me:$LINENO: result: $ac_res" >&5
31148echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031149else
31150 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000031151{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031153cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031154/* confdefs.h. */
31155_ACEOF
31156cat confdefs.h >>conftest.$ac_ext
31157cat >>conftest.$ac_ext <<_ACEOF
31158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031159$ac_includes_default
31160#include <$ac_header>
31161_ACEOF
31162rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031163if { (ac_try="$ac_compile"
31164case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31167esac
31168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031171 grep -v '^ *+' conftest.er1 >conftest.err
31172 rm -f conftest.er1
31173 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031175 (exit $ac_status); } && {
31176 test -z "$ac_c_werror_flag" ||
31177 test ! -s conftest.err
31178 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031179 ac_header_compiler=yes
31180else
31181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031182sed 's/^/| /' conftest.$ac_ext >&5
31183
Reid Spencera773bd52006-08-04 18:18:08 +000031184 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000031185fi
Reid Spencera773bd52006-08-04 18:18:08 +000031186
31187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31189echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031190
31191# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000031192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031194cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031195/* confdefs.h. */
31196_ACEOF
31197cat confdefs.h >>conftest.$ac_ext
31198cat >>conftest.$ac_ext <<_ACEOF
31199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031200#include <$ac_header>
31201_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031202if { (ac_try="$ac_cpp conftest.$ac_ext"
31203case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31206esac
31207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031209 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000031210 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000031211 rm -f conftest.er1
31212 cat conftest.err >&5
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031214 (exit $ac_status); } >/dev/null && {
31215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31216 test ! -s conftest.err
31217 }; then
John Criswell7a73b802003-06-30 21:59:07 +000031218 ac_header_preproc=yes
31219else
31220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031221sed 's/^/| /' conftest.$ac_ext >&5
31222
John Criswell7a73b802003-06-30 21:59:07 +000031223 ac_header_preproc=no
31224fi
Reid Spencera773bd52006-08-04 18:18:08 +000031225
John Criswell7a73b802003-06-30 21:59:07 +000031226rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000031227{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31228echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031229
31230# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31232 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000031233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31237 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000031238 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031239 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000031240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31243echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31247echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000031248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000031252 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000031253## ----------------------------------- ##
31254## Report this to llvmbugs@cs.uiuc.edu ##
31255## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000031256_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000031257 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000031258 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031259esac
Reid Spencera773bd52006-08-04 18:18:08 +000031260{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031263 echo $ECHO_N "(cached) $ECHO_C" >&6
31264else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031265 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000031266fi
Reid Spencera773bd52006-08-04 18:18:08 +000031267ac_res=`eval echo '${'$as_ac_Header'}'`
31268 { echo "$as_me:$LINENO: result: $ac_res" >&5
31269echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031270
31271fi
31272if test `eval echo '${'$as_ac_Header'}'` = yes; then
31273 cat >>confdefs.h <<_ACEOF
31274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31275_ACEOF
31276
31277fi
31278
31279done
31280
31281
31282for ac_func in getpagesize
31283do
31284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031285{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31287if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031288 echo $ECHO_N "(cached) $ECHO_C" >&6
31289else
31290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031291/* confdefs.h. */
31292_ACEOF
31293cat confdefs.h >>conftest.$ac_ext
31294cat >>conftest.$ac_ext <<_ACEOF
31295/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31298#define $ac_func innocuous_$ac_func
31299
John Criswell7a73b802003-06-30 21:59:07 +000031300/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031301 which can conflict with char $ac_func (); below.
31302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31303 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031304
John Criswell0c38eaf2003-09-10 15:17:25 +000031305#ifdef __STDC__
31306# include <limits.h>
31307#else
31308# include <assert.h>
31309#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031310
31311#undef $ac_func
31312
Reid Spencera773bd52006-08-04 18:18:08 +000031313/* Override any GCC internal prototype to avoid an error.
31314 Use char because int might match the return type of a GCC
31315 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000031316#ifdef __cplusplus
31317extern "C"
31318#endif
John Criswell7a73b802003-06-30 21:59:07 +000031319char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031320/* The GNU C library defines this for functions which it implements
31321 to always fail with ENOSYS. Some functions are actually named
31322 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031323#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000031324choke me
John Criswell7a73b802003-06-30 21:59:07 +000031325#endif
31326
John Criswell0c38eaf2003-09-10 15:17:25 +000031327int
31328main ()
31329{
Reid Spencera773bd52006-08-04 18:18:08 +000031330return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031331 ;
31332 return 0;
31333}
31334_ACEOF
31335rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031336if { (ac_try="$ac_link"
31337case "(($ac_try" in
31338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339 *) ac_try_echo=$ac_try;;
31340esac
31341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031344 grep -v '^ *+' conftest.er1 >conftest.err
31345 rm -f conftest.er1
31346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031348 (exit $ac_status); } && {
31349 test -z "$ac_c_werror_flag" ||
31350 test ! -s conftest.err
31351 } && test -s conftest$ac_exeext &&
31352 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000031353 eval "$as_ac_var=yes"
31354else
31355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031356sed 's/^/| /' conftest.$ac_ext >&5
31357
Reid Spencera773bd52006-08-04 18:18:08 +000031358 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031359fi
Reid Spencera773bd52006-08-04 18:18:08 +000031360
Scott Michel96dcd2b2007-12-05 21:24:02 +000031361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031362 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031363fi
Reid Spencera773bd52006-08-04 18:18:08 +000031364ac_res=`eval echo '${'$as_ac_var'}'`
31365 { echo "$as_me:$LINENO: result: $ac_res" >&5
31366echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031367if test `eval echo '${'$as_ac_var'}'` = yes; then
31368 cat >>confdefs.h <<_ACEOF
31369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31370_ACEOF
31371
31372fi
31373done
31374
Reid Spencera773bd52006-08-04 18:18:08 +000031375{ echo "$as_me:$LINENO: checking for working mmap" >&5
31376echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031377if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31379else
31380 if test "$cross_compiling" = yes; then
31381 ac_cv_func_mmap_fixed_mapped=no
31382else
31383 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031384/* confdefs.h. */
31385_ACEOF
31386cat confdefs.h >>conftest.$ac_ext
31387cat >>conftest.$ac_ext <<_ACEOF
31388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031389$ac_includes_default
31390/* malloc might have been renamed as rpl_malloc. */
31391#undef malloc
31392
31393/* Thanks to Mike Haertel and Jim Avera for this test.
31394 Here is a matrix of mmap possibilities:
31395 mmap private not fixed
31396 mmap private fixed at somewhere currently unmapped
31397 mmap private fixed at somewhere already mapped
31398 mmap shared not fixed
31399 mmap shared fixed at somewhere currently unmapped
31400 mmap shared fixed at somewhere already mapped
31401 For private mappings, we should verify that changes cannot be read()
31402 back from the file, nor mmap's back from the file at a different
31403 address. (There have been systems where private was not correctly
31404 implemented like the infamous i386 svr4.0, and systems where the
31405 VM page cache was not coherent with the file system buffer cache
31406 like early versions of FreeBSD and possibly contemporary NetBSD.)
31407 For shared mappings, we should conversely verify that changes get
31408 propagated back to all the places they're supposed to be.
31409
31410 Grep wants private fixed already mapped.
31411 The main things grep needs to know about mmap are:
31412 * does it exist and is it safe to write into the mmap'd area
31413 * how to use it (BSD variants) */
31414
31415#include <fcntl.h>
31416#include <sys/mman.h>
31417
Scott Michel96dcd2b2007-12-05 21:24:02 +000031418#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000031419char *malloc ();
31420#endif
31421
31422/* This mess was copied from the GNU getpagesize.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031423#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000031424/* Assume that all systems that can run configure have sys/param.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031425# ifndef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031426# define HAVE_SYS_PARAM_H 1
31427# endif
31428
31429# ifdef _SC_PAGESIZE
31430# define getpagesize() sysconf(_SC_PAGESIZE)
31431# else /* no _SC_PAGESIZE */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031432# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031433# include <sys/param.h>
31434# ifdef EXEC_PAGESIZE
31435# define getpagesize() EXEC_PAGESIZE
31436# else /* no EXEC_PAGESIZE */
31437# ifdef NBPG
31438# define getpagesize() NBPG * CLSIZE
31439# ifndef CLSIZE
31440# define CLSIZE 1
31441# endif /* no CLSIZE */
31442# else /* no NBPG */
31443# ifdef NBPC
31444# define getpagesize() NBPC
31445# else /* no NBPC */
31446# ifdef PAGESIZE
31447# define getpagesize() PAGESIZE
31448# endif /* PAGESIZE */
31449# endif /* no NBPC */
31450# endif /* no NBPG */
31451# endif /* no EXEC_PAGESIZE */
31452# else /* no HAVE_SYS_PARAM_H */
31453# define getpagesize() 8192 /* punt totally */
31454# endif /* no HAVE_SYS_PARAM_H */
31455# endif /* no _SC_PAGESIZE */
31456
31457#endif /* no HAVE_GETPAGESIZE */
31458
31459int
31460main ()
31461{
31462 char *data, *data2, *data3;
31463 int i, pagesize;
31464 int fd;
31465
31466 pagesize = getpagesize ();
31467
31468 /* First, make a file with some known garbage in it. */
31469 data = (char *) malloc (pagesize);
31470 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000031471 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031472 for (i = 0; i < pagesize; ++i)
31473 *(data + i) = rand ();
31474 umask (0);
31475 fd = creat ("conftest.mmap", 0600);
31476 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031477 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031478 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031479 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031480 close (fd);
31481
31482 /* Next, try to mmap the file at a fixed address which already has
31483 something else allocated at it. If we can, also make sure that
31484 we see the same garbage. */
31485 fd = open ("conftest.mmap", O_RDWR);
31486 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031487 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031488 data2 = (char *) malloc (2 * pagesize);
31489 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000031490 return 1;
31491 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000031492 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000031493 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000031494 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031495 for (i = 0; i < pagesize; ++i)
31496 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031497 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031498
31499 /* Finally, make sure that changes to the mapped area do not
31500 percolate back to the file as seen by read(). (This is a bug on
31501 some variants of i386 svr4.0.) */
31502 for (i = 0; i < pagesize; ++i)
31503 *(data2 + i) = *(data2 + i) + 1;
31504 data3 = (char *) malloc (pagesize);
31505 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000031506 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031507 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031508 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031509 for (i = 0; i < pagesize; ++i)
31510 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031511 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031512 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000031513 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031514}
31515_ACEOF
31516rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031517if { (ac_try="$ac_link"
31518case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31521esac
31522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031524 ac_status=$?
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031527 { (case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31530esac
31531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031533 ac_status=$?
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; }; then
31536 ac_cv_func_mmap_fixed_mapped=yes
31537else
31538 echo "$as_me: program exited with status $ac_status" >&5
31539echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031540sed 's/^/| /' conftest.$ac_ext >&5
31541
John Criswell7a73b802003-06-30 21:59:07 +000031542( exit $ac_status )
31543ac_cv_func_mmap_fixed_mapped=no
31544fi
Reid Spencera773bd52006-08-04 18:18:08 +000031545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031546fi
Reid Spencera773bd52006-08-04 18:18:08 +000031547
31548
John Criswell7a73b802003-06-30 21:59:07 +000031549fi
Reid Spencera773bd52006-08-04 18:18:08 +000031550{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31551echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031552if test $ac_cv_func_mmap_fixed_mapped = yes; then
31553
31554cat >>confdefs.h <<\_ACEOF
31555#define HAVE_MMAP 1
31556_ACEOF
31557
31558fi
31559rm -f conftest.mmap
31560
Reid Spencer30fe5262007-01-20 07:48:49 +000031561 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031562echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031563if test "${ac_cv_func_mmap_file+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31565else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031566 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031567ac_cpp='$CPP $CPPFLAGS'
31568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31570ac_compiler_gnu=$ac_cv_c_compiler_gnu
31571
31572 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031573 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031574else
31575 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031576
Reid Spencer777ce172004-09-20 04:09:56 +000031577 /* confdefs.h. */
31578_ACEOF
31579cat confdefs.h >>conftest.$ac_ext
31580cat >>conftest.$ac_ext <<_ACEOF
31581/* end confdefs.h. */
31582
John Criswell7a73b802003-06-30 21:59:07 +000031583#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031584#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031585#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031586
31587int
31588main ()
31589{
John Criswell7a73b802003-06-30 21:59:07 +000031590
31591 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031592 fd = creat ("foo",0777);
31593 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31594 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031595 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031596 ;
31597 return 0;
31598}
John Criswell7a73b802003-06-30 21:59:07 +000031599_ACEOF
31600rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031601if { (ac_try="$ac_link"
31602case "(($ac_try" in
31603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604 *) ac_try_echo=$ac_try;;
31605esac
31606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031611 { (case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31614esac
31615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; }; then
31620 ac_cv_func_mmap_file=yes
31621else
31622 echo "$as_me: program exited with status $ac_status" >&5
31623echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031624sed 's/^/| /' conftest.$ac_ext >&5
31625
John Criswell7a73b802003-06-30 21:59:07 +000031626( exit $ac_status )
31627ac_cv_func_mmap_file=no
31628fi
Reid Spencera773bd52006-08-04 18:18:08 +000031629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031630fi
Reid Spencera773bd52006-08-04 18:18:08 +000031631
31632
John Criswell7a73b802003-06-30 21:59:07 +000031633 ac_ext=c
31634ac_cpp='$CPP $CPPFLAGS'
31635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637ac_compiler_gnu=$ac_cv_c_compiler_gnu
31638
31639
31640fi
Reid Spencera773bd52006-08-04 18:18:08 +000031641{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31642echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031643if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031644
31645cat >>confdefs.h <<\_ACEOF
31646#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031647_ACEOF
31648
31649 MMAP_FILE=yes
31650
31651fi
31652
Reid Spencer30fe5262007-01-20 07:48:49 +000031653 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031654echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031655if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31657else
Reid Spencer582a23c2004-12-29 07:07:57 +000031658 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031659 ac_cv_need_dev_zero_for_mmap=yes
31660 else
31661 ac_cv_need_dev_zero_for_mmap=no
31662 fi
31663
31664fi
Reid Spencera773bd52006-08-04 18:18:08 +000031665{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31666echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031667if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31668
31669cat >>confdefs.h <<\_ACEOF
31670#define NEED_DEV_ZERO_FOR_MMAP 1
31671_ACEOF
31672
31673fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031674
Reid Spencer30fe5262007-01-20 07:48:49 +000031675 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31676 then
31677 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000031678echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031679 fi
31680 if test "$ac_cv_func_mmap_file" = "no"
31681 then
31682 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031683echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031684 fi
John Criswellb13092b2003-07-22 21:00:24 +000031685fi
John Criswell7a73b802003-06-30 21:59:07 +000031686
31687
Reid Spencer9372f152007-07-30 20:13:24 +000031688
31689for ac_func in __dso_handle
31690do
31691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31692{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31694if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31695 echo $ECHO_N "(cached) $ECHO_C" >&6
31696else
31697 cat >conftest.$ac_ext <<_ACEOF
31698/* confdefs.h. */
31699_ACEOF
31700cat confdefs.h >>conftest.$ac_ext
31701cat >>conftest.$ac_ext <<_ACEOF
31702/* end confdefs.h. */
31703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31705#define $ac_func innocuous_$ac_func
31706
31707/* System header to define __stub macros and hopefully few prototypes,
31708 which can conflict with char $ac_func (); below.
31709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31710 <limits.h> exists even on freestanding compilers. */
31711
31712#ifdef __STDC__
31713# include <limits.h>
31714#else
31715# include <assert.h>
31716#endif
31717
31718#undef $ac_func
31719
31720/* Override any GCC internal prototype to avoid an error.
31721 Use char because int might match the return type of a GCC
31722 builtin and then its argument prototype would still apply. */
31723#ifdef __cplusplus
31724extern "C"
31725#endif
31726char $ac_func ();
31727/* The GNU C library defines this for functions which it implements
31728 to always fail with ENOSYS. Some functions are actually named
31729 something starting with __ and the normal name is an alias. */
31730#if defined __stub_$ac_func || defined __stub___$ac_func
31731choke me
31732#endif
31733
31734int
31735main ()
31736{
31737return $ac_func ();
31738 ;
31739 return 0;
31740}
31741_ACEOF
31742rm -f conftest.$ac_objext conftest$ac_exeext
31743if { (ac_try="$ac_link"
31744case "(($ac_try" in
31745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746 *) ac_try_echo=$ac_try;;
31747esac
31748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749 (eval "$ac_link") 2>conftest.er1
31750 ac_status=$?
31751 grep -v '^ *+' conftest.er1 >conftest.err
31752 rm -f conftest.er1
31753 cat conftest.err >&5
31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031755 (exit $ac_status); } && {
31756 test -z "$ac_c_werror_flag" ||
31757 test ! -s conftest.err
31758 } && test -s conftest$ac_exeext &&
31759 $as_test_x conftest$ac_exeext; then
Reid Spencer9372f152007-07-30 20:13:24 +000031760 eval "$as_ac_var=yes"
31761else
31762 echo "$as_me: failed program was:" >&5
31763sed 's/^/| /' conftest.$ac_ext >&5
31764
31765 eval "$as_ac_var=no"
31766fi
31767
Scott Michel96dcd2b2007-12-05 21:24:02 +000031768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer9372f152007-07-30 20:13:24 +000031769 conftest$ac_exeext conftest.$ac_ext
31770fi
31771ac_res=`eval echo '${'$as_ac_var'}'`
31772 { echo "$as_me:$LINENO: result: $ac_res" >&5
31773echo "${ECHO_T}$ac_res" >&6; }
31774if test `eval echo '${'$as_ac_var'}'` = yes; then
31775 cat >>confdefs.h <<_ACEOF
31776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31777_ACEOF
31778
31779fi
31780done
31781
31782
Reid Spencera773bd52006-08-04 18:18:08 +000031783{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31784echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031785if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31787else
31788 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031789if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031790 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000031791 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31792 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031793 if test $? -eq 0 ; then
31794 llvm_cv_llvmgcc_sanity="yes"
31795 fi
31796 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031797fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031798fi
Reid Spencera773bd52006-08-04 18:18:08 +000031799{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31800echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031801
31802if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000031803 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31804echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000031805 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031806 LLVMCC1=$llvmcc1path
31807
Reid Spencer502935f2004-12-22 05:56:56 +000031808 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031809 LLVMCC1PLUS=$llvmcc1pluspath
31810
Reid Spencer502935f2004-12-22 05:56:56 +000031811 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31812 LLVMGCCDIR=$llvmgccdir
31813
Reid Spencer282d8c12006-12-21 22:55:41 +000031814 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31815 LLVMGCCLIBEXEC=$llvmgcclibexec
31816
Reid Spencerb5d75b82006-05-09 00:31:01 +000031817 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031818 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31819 LLVMGCC_VERSION=$llvmgccversion
31820
31821 LLVMGCC_MAJVERS=$llvmgccmajvers
31822
Reid Spencer0d238182007-04-21 21:28:52 +000031823 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31824 LLVMGCC_LANGS=$llvmgcclangs
31825
31826 { echo "$as_me:$LINENO: result: ok" >&5
31827echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000031828fi
31829
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031830SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031831
31832
Reid Spencere9de0912004-08-20 09:03:57 +000031833# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031834# information into substitutions that will end up in Makefile.config.in
31835# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000031836if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000031837 prefix="/usr/local"
31838fi
Reid Spencere9de0912004-08-20 09:03:57 +000031839eval LLVM_PREFIX="${prefix}";
31840eval LLVM_BINDIR="${prefix}/bin";
31841eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031842eval LLVM_DATADIR="${prefix}/share/llvm";
31843eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31844eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031845eval LLVM_INCLUDEDIR="${prefix}/include";
31846eval LLVM_INFODIR="${prefix}/info";
31847eval LLVM_MANDIR="${prefix}/man";
31848LLVM_CONFIGTIME=`date`
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031860# Place the various directores into the config.h file as #defines so that we
31861# can know about the installation paths within LLVM.
31862
Reid Spencere9de0912004-08-20 09:03:57 +000031863cat >>confdefs.h <<_ACEOF
31864#define LLVM_PREFIX "$LLVM_PREFIX"
31865_ACEOF
31866
31867
31868cat >>confdefs.h <<_ACEOF
31869#define LLVM_BINDIR "$LLVM_BINDIR"
31870_ACEOF
31871
31872
31873cat >>confdefs.h <<_ACEOF
31874#define LLVM_LIBDIR "$LLVM_LIBDIR"
31875_ACEOF
31876
31877
31878cat >>confdefs.h <<_ACEOF
31879#define LLVM_DATADIR "$LLVM_DATADIR"
31880_ACEOF
31881
31882
31883cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000031884#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031885_ACEOF
31886
31887
31888cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031889#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031890_ACEOF
31891
31892
31893cat >>confdefs.h <<_ACEOF
31894#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31895_ACEOF
31896
31897
31898cat >>confdefs.h <<_ACEOF
31899#define LLVM_INFODIR "$LLVM_INFODIR"
31900_ACEOF
31901
31902
31903cat >>confdefs.h <<_ACEOF
31904#define LLVM_MANDIR "$LLVM_MANDIR"
31905_ACEOF
31906
31907
31908cat >>confdefs.h <<_ACEOF
31909#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31910_ACEOF
31911
31912
Eric Christopher790e11c2007-12-01 00:34:39 +000031913cat >>confdefs.h <<_ACEOF
31914#define LLVM_HOSTTRIPLE "$host"
31915_ACEOF
31916
31917
Gordon Henriksenc0efff82007-10-02 09:50:32 +000031918# Determine which bindings to build.
31919if test "$BINDINGS_TO_BUILD" = auto ; then
31920 BINDINGS_TO_BUILD=""
31921 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31922 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31923 fi
31924fi
31925BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31926
31927
31928# This isn't really configurey, but it avoids having to repeat the list in
31929# other files.
31930ALL_BINDINGS=ocaml
31931
31932
Gordon Henriksenf0915682007-10-02 16:42:22 +000031933# Do any work necessary to ensure that bindings have what they need.
31934binding_prereqs_failed=0
31935for a_binding in $BINDINGS_TO_BUILD ; do
31936 case "$a_binding" in
31937 ocaml)
31938 if test "x$OCAMLC" = x ; then
31939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31940echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31941 binding_prereqs_failed=1
31942 fi
31943 if test "x$OCAMLDEP" = x ; then
31944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31945echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31946 binding_prereqs_failed=1
31947 fi
31948 if test "x$OCAMLOPT" = x ; then
31949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31950echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31951 fi
31952 if test "x$with_ocaml_libdir" != xauto ; then
31953 OCAML_LIBDIR=$with_ocaml_libdir
31954
31955 else
31956 ocaml_stdlib="`"$OCAMLC" -where`"
31957 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31958 then
31959 # ocaml stdlib is beneath our prefix; use stdlib
31960 OCAML_LIBDIR=$ocaml_stdlib
31961
31962 else
31963 # ocaml stdlib is outside our prefix; use libdir/ocaml
31964 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31965
31966 fi
31967 fi
31968 ;;
31969 esac
31970done
31971if test "$binding_prereqs_failed" = 1 ; then
31972 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31973echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31974 { (exit 1); exit 1; }; }
31975fi
31976
31977
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031978
Reid Spencera773bd52006-08-04 18:18:08 +000031979ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031980
Reid Spencera773bd52006-08-04 18:18:08 +000031981ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031982
Reid Spencera773bd52006-08-04 18:18:08 +000031983ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031984
Reid Spencera773bd52006-08-04 18:18:08 +000031985ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031986
Reid Spencera773bd52006-08-04 18:18:08 +000031987ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031988
31989
Reid Spencera773bd52006-08-04 18:18:08 +000031990ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031991
31992
Reid Spencerea949cf2006-08-16 00:45:38 +000031993ac_config_files="$ac_config_files llvm.spec"
31994
31995
Reid Spencera773bd52006-08-04 18:18:08 +000031996ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000031997
31998
Reid Spencera773bd52006-08-04 18:18:08 +000031999ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000032000
32001
Reid Spencera773bd52006-08-04 18:18:08 +000032002ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000032003
Reid Spencera773bd52006-08-04 18:18:08 +000032004ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032005
32006
Reid Spencera773bd52006-08-04 18:18:08 +000032007ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032008
32009
Reid Spencera773bd52006-08-04 18:18:08 +000032010ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032011
32012
Reid Spencera773bd52006-08-04 18:18:08 +000032013ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032014
32015
Reid Spencer8b2e1412006-11-17 03:32:33 +000032016ac_config_commands="$ac_config_commands runtime/Makefile"
32017
32018
Reid Spencera773bd52006-08-04 18:18:08 +000032019ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032020
32021
Reid Spencera773bd52006-08-04 18:18:08 +000032022ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032023
32024
Reid Spencera773bd52006-08-04 18:18:08 +000032025ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032026
32027
Reid Spencera773bd52006-08-04 18:18:08 +000032028ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032029
32030
Reid Spencera773bd52006-08-04 18:18:08 +000032031ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032032
32033
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032034ac_config_commands="$ac_config_commands bindings/Makefile"
32035
32036
32037ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32038
32039
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032040
John Criswell7a73b802003-06-30 21:59:07 +000032041cat >confcache <<\_ACEOF
32042# This file is a shell script that caches the results of configure
32043# tests run on this system so they can be shared between configure
32044# scripts and configure runs, see configure's option --config-cache.
32045# It is not useful on other systems. If it contains results you don't
32046# want to keep, you may remove or edit it.
32047#
32048# config.status only pays attention to the cache file if you give it
32049# the --recheck option to rerun configure.
32050#
John Criswell0c38eaf2003-09-10 15:17:25 +000032051# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000032052# loading this file, other *unset* `ac_cv_foo' will be assigned the
32053# following values.
32054
32055_ACEOF
32056
32057# The following way of writing the cache mishandles newlines in values,
32058# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000032059# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000032060# Ultrix sh set writes to stderr and can't be redirected directly,
32061# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000032062(
32063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32064 eval ac_val=\$$ac_var
32065 case $ac_val in #(
32066 *${as_nl}*)
32067 case $ac_var in #(
32068 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32069echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32070 esac
32071 case $ac_var in #(
32072 _ | IFS | as_nl) ;; #(
32073 *) $as_unset $ac_var ;;
32074 esac ;;
32075 esac
32076 done
32077
John Criswell7a73b802003-06-30 21:59:07 +000032078 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000032079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32080 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000032081 # `set' does not quote correctly, so add quotes (double-quote
32082 # substitution turns \\\\ into \\, and sed turns \\ into \).
32083 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032084 "s/'/'\\\\''/g;
32085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000032086 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000032087 *)
32088 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000032089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000032090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032091 esac |
32092 sort
32093) |
John Criswell7a73b802003-06-30 21:59:07 +000032094 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032095 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000032096 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000032097 :clear
John Criswell7a73b802003-06-30 21:59:07 +000032098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32099 t end
Reid Spencera773bd52006-08-04 18:18:08 +000032100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32101 :end' >>confcache
32102if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32103 if test -w "$cache_file"; then
32104 test "x$cache_file" != "x/dev/null" &&
32105 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32106echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032107 cat confcache >$cache_file
32108 else
Reid Spencera773bd52006-08-04 18:18:08 +000032109 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32110echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032111 fi
32112fi
32113rm -f confcache
32114
32115test "x$prefix" = xNONE && prefix=$ac_default_prefix
32116# Let make expand exec_prefix.
32117test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32118
John Criswell7a73b802003-06-30 21:59:07 +000032119DEFS=-DHAVE_CONFIG_H
32120
John Criswell0c38eaf2003-09-10 15:17:25 +000032121ac_libobjs=
32122ac_ltlibobjs=
32123for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32124 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000032125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32126 ac_i=`echo "$ac_i" | sed "$ac_script"`
32127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32128 # will be set to the directory where LIBOBJS objects are built.
32129 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32130 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000032131done
32132LIBOBJS=$ac_libobjs
32133
32134LTLIBOBJS=$ac_ltlibobjs
32135
32136
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032137if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32138 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32139Usually this means the macro was only invoked conditionally." >&5
32140echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32141Usually this means the macro was only invoked conditionally." >&2;}
32142 { (exit 1); exit 1; }; }
32143fi
32144if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32145 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32146Usually this means the macro was only invoked conditionally." >&5
32147echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32148Usually this means the macro was only invoked conditionally." >&2;}
32149 { (exit 1); exit 1; }; }
32150fi
John Criswell7a73b802003-06-30 21:59:07 +000032151
32152: ${CONFIG_STATUS=./config.status}
32153ac_clean_files_save=$ac_clean_files
32154ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32155{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32156echo "$as_me: creating $CONFIG_STATUS" >&6;}
32157cat >$CONFIG_STATUS <<_ACEOF
32158#! $SHELL
32159# Generated by $as_me.
32160# Run this file to recreate the current configuration.
32161# Compiler output produced by configure, useful for debugging
32162# configure, is in config.log if it exists.
32163
32164debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000032165ac_cs_recheck=false
32166ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000032167SHELL=\${CONFIG_SHELL-$SHELL}
32168_ACEOF
32169
32170cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032171## --------------------- ##
32172## M4sh Initialization. ##
32173## --------------------- ##
32174
Scott Michel96dcd2b2007-12-05 21:24:02 +000032175# Be more Bourne compatible
32176DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000032177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32178 emulate sh
32179 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32181 # is contrary to our usage. Disable this feature.
32182 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000032183 setopt NO_GLOB_SUBST
32184else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032185 case `(set -o) 2>/dev/null` in
32186 *posix*) set -o posix ;;
32187esac
32188
John Criswell7a73b802003-06-30 21:59:07 +000032189fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032190
32191
John Criswell7a73b802003-06-30 21:59:07 +000032192
John Criswell7a73b802003-06-30 21:59:07 +000032193
Reid Spencera773bd52006-08-04 18:18:08 +000032194# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000032195# Avoid depending upon Character Ranges.
32196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32199as_cr_digits='0123456789'
32200as_cr_alnum=$as_cr_Letters$as_cr_digits
32201
32202# The user is always right.
32203if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032204 echo "#! /bin/sh" >conf$$.sh
32205 echo "exit 0" >>conf$$.sh
32206 chmod +x conf$$.sh
32207 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032208 PATH_SEPARATOR=';'
32209 else
32210 PATH_SEPARATOR=:
32211 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000032212 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000032213fi
32214
Reid Spencera773bd52006-08-04 18:18:08 +000032215# Support unset when possible.
32216if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32217 as_unset=unset
32218else
32219 as_unset=false
32220fi
John Criswell7a73b802003-06-30 21:59:07 +000032221
Reid Spencera773bd52006-08-04 18:18:08 +000032222
32223# IFS
32224# We need space, tab and new line, in precisely that order. Quoting is
32225# there to prevent editors from complaining about space-tab.
32226# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32227# splitting by setting IFS to empty value.)
32228as_nl='
32229'
32230IFS=" "" $as_nl"
32231
32232# Find who we are. Look in the path if we contain no directory separator.
32233case $0 in
32234 *[\\/]* ) as_myself=$0 ;;
32235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000032236for as_dir in $PATH
32237do
32238 IFS=$as_save_IFS
32239 test -z "$as_dir" && as_dir=.
32240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32241done
Reid Spencera773bd52006-08-04 18:18:08 +000032242IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000032243
Reid Spencera773bd52006-08-04 18:18:08 +000032244 ;;
32245esac
32246# We did not find ourselves, most probably we were run as `sh COMMAND'
32247# in which case we are not to be found in the path.
32248if test "x$as_myself" = x; then
32249 as_myself=$0
32250fi
32251if test ! -f "$as_myself"; then
32252 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32253 { (exit 1); exit 1; }
32254fi
32255
32256# Work around bugs in pre-3.0 UWIN ksh.
32257for as_var in ENV MAIL MAILPATH
32258do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32259done
32260PS1='$ '
32261PS2='> '
32262PS4='+ '
32263
32264# NLS nuisances.
32265for as_var in \
32266 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32267 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32268 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000032269do
Reid Spencera773bd52006-08-04 18:18:08 +000032270 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32271 eval $as_var=C; export $as_var
32272 else
32273 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32274 fi
32275done
32276
32277# Required to use basename.
32278if expr a : '\(a\)' >/dev/null 2>&1 &&
32279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32280 as_expr=expr
32281else
32282 as_expr=false
32283fi
32284
32285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32286 as_basename=basename
32287else
32288 as_basename=false
32289fi
32290
32291
32292# Name of the executable.
32293as_me=`$as_basename -- "$0" ||
32294$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32295 X"$0" : 'X\(//\)$' \| \
32296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32297echo X/"$0" |
32298 sed '/^.*\/\([^/][^/]*\)\/*$/{
32299 s//\1/
32300 q
32301 }
32302 /^X\/\(\/\/\)$/{
32303 s//\1/
32304 q
32305 }
32306 /^X\/\(\/\).*/{
32307 s//\1/
32308 q
32309 }
32310 s/.*/./; q'`
32311
32312# CDPATH.
32313$as_unset CDPATH
32314
32315
32316
John Criswell7a73b802003-06-30 21:59:07 +000032317 as_lineno_1=$LINENO
32318 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000032319 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000032320 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000032321
32322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32323 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000032324 # line-number line after each line using $LINENO; the second 'sed'
32325 # does the real work. The second script uses 'N' to pair each
32326 # line-number line with the line containing $LINENO, and appends
32327 # trailing '-' during substitution so that $LINENO is not a special
32328 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000032329 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000032330 # scripts with optimization help from Paolo Bonzini. Blame Lee
32331 # E. McMahon (1931-1989) for sed's syntax. :-)
32332 sed -n '
32333 p
32334 /[$]LINENO/=
32335 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000032336 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032337 s/[$]LINENO.*/&-/
32338 t lineno
32339 b
32340 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000032341 N
Reid Spencera773bd52006-08-04 18:18:08 +000032342 :loop
32343 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000032344 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000032345 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000032346 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000032347 chmod +x "$as_me.lineno" ||
32348 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000032349 { (exit 1); exit 1; }; }
32350
32351 # Don't try to exec as it changes $[0], causing all sort of problems
32352 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000032353 # original and so on. Autoconf is especially sensitive to this).
32354 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000032355 # Exit status is that of the last command.
32356 exit
32357}
32358
32359
Reid Spencera773bd52006-08-04 18:18:08 +000032360if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32361 as_dirname=dirname
32362else
32363 as_dirname=false
32364fi
32365
32366ECHO_C= ECHO_N= ECHO_T=
32367case `echo -n x` in
32368-n*)
32369 case `echo 'x\c'` in
32370 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32371 *) ECHO_C='\c';;
32372 esac;;
32373*)
32374 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000032375esac
32376
Reid Spencera773bd52006-08-04 18:18:08 +000032377if expr a : '\(a\)' >/dev/null 2>&1 &&
32378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000032379 as_expr=expr
32380else
32381 as_expr=false
32382fi
32383
32384rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000032385if test -d conf$$.dir; then
32386 rm -f conf$$.dir/conf$$.file
32387else
32388 rm -f conf$$.dir
32389 mkdir conf$$.dir
32390fi
John Criswell7a73b802003-06-30 21:59:07 +000032391echo >conf$$.file
32392if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000032393 as_ln_s='ln -s'
32394 # ... but there are two gotchas:
32395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32397 # In both cases, we have to default to `cp -p'.
32398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000032399 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000032400elif ln conf$$.file conf$$ 2>/dev/null; then
32401 as_ln_s=ln
32402else
32403 as_ln_s='cp -p'
32404fi
Reid Spencera773bd52006-08-04 18:18:08 +000032405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32406rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000032407
John Criswell0c38eaf2003-09-10 15:17:25 +000032408if mkdir -p . 2>/dev/null; then
32409 as_mkdir_p=:
32410else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032411 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000032412 as_mkdir_p=false
32413fi
32414
Scott Michel96dcd2b2007-12-05 21:24:02 +000032415if test -x / >/dev/null 2>&1; then
32416 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000032417else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032418 if ls -dL / >/dev/null 2>&1; then
32419 as_ls_L_option=L
32420 else
32421 as_ls_L_option=
32422 fi
32423 as_test_x='
32424 eval sh -c '\''
32425 if test -d "$1"; then
32426 test -d "$1/.";
32427 else
32428 case $1 in
32429 -*)set "./$1";;
32430 esac;
32431 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32432 ???[sx]*):;;*)false;;esac;fi
32433 '\'' sh
32434 '
Reid Spencera773bd52006-08-04 18:18:08 +000032435fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032436as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000032437
32438# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032440
32441# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032443
32444
John Criswell7a73b802003-06-30 21:59:07 +000032445exec 6>&1
32446
Reid Spencera773bd52006-08-04 18:18:08 +000032447# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000032448# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000032449# values after options handling.
32450ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000032451This file was extended by llvm $as_me 2.2svn, which was
Scott Michel96dcd2b2007-12-05 21:24:02 +000032452generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000032453
32454 CONFIG_FILES = $CONFIG_FILES
32455 CONFIG_HEADERS = $CONFIG_HEADERS
32456 CONFIG_LINKS = $CONFIG_LINKS
32457 CONFIG_COMMANDS = $CONFIG_COMMANDS
32458 $ $0 $@
32459
Reid Spencera773bd52006-08-04 18:18:08 +000032460on `(hostname || uname -n) 2>/dev/null | sed 1q`
32461"
32462
John Criswell7a73b802003-06-30 21:59:07 +000032463_ACEOF
32464
Reid Spencera773bd52006-08-04 18:18:08 +000032465cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032466# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000032467config_files="$ac_config_files"
32468config_headers="$ac_config_headers"
32469config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000032470
Reid Spencera773bd52006-08-04 18:18:08 +000032471_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032472
32473cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032474ac_cs_usage="\
32475\`$as_me' instantiates files from templates according to the
32476current configuration.
32477
32478Usage: $0 [OPTIONS] [FILE]...
32479
32480 -h, --help print this help, then exit
Scott Michel96dcd2b2007-12-05 21:24:02 +000032481 -V, --version print version number and configuration settings, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000032482 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000032483 -d, --debug don't remove temporary files
32484 --recheck update $as_me by reconfiguring in the same conditions
32485 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032486 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000032487 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032488 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000032489
32490Configuration files:
32491$config_files
32492
32493Configuration headers:
32494$config_headers
32495
John Criswellc764fbc2003-09-06 15:17:13 +000032496Configuration commands:
32497$config_commands
32498
John Criswell7a73b802003-06-30 21:59:07 +000032499Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000032500
Reid Spencera773bd52006-08-04 18:18:08 +000032501_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032502cat >>$CONFIG_STATUS <<_ACEOF
32503ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000032504llvm config.status 2.2svn
Scott Michel96dcd2b2007-12-05 21:24:02 +000032505configured by $0, generated by GNU Autoconf 2.61,
Reid Spencera773bd52006-08-04 18:18:08 +000032506 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000032507
Reid Spencera773bd52006-08-04 18:18:08 +000032508Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000032509This config.status script is free software; the Free Software Foundation
32510gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000032511
32512ac_pwd='$ac_pwd'
32513srcdir='$srcdir'
32514INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000032515_ACEOF
32516
32517cat >>$CONFIG_STATUS <<\_ACEOF
32518# If no file are specified by the user, then we need to provide default
32519# value. By we need to know if files were specified by the user.
32520ac_need_defaults=:
32521while test $# != 0
32522do
32523 case $1 in
32524 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000032525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32526 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032527 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000032528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032529 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000032530 ac_option=$1
32531 ac_optarg=$2
32532 ac_shift=shift
32533 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032534 esac
32535
John Criswell0c38eaf2003-09-10 15:17:25 +000032536 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000032537 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000032538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32539 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32541 echo "$ac_cs_version"; exit ;;
32542 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000032543 debug=: ;;
32544 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000032545 $ac_shift
32546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032547 ac_need_defaults=false;;
32548 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000032549 $ac_shift
32550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032551 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000032552 --he | --h)
32553 # Conflict between --help and --header
32554 { echo "$as_me: error: ambiguous option: $1
32555Try \`$0 --help' for more information." >&2
32556 { (exit 1); exit 1; }; };;
32557 --help | --hel | -h )
32558 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000032559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32561 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000032562
32563 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000032564 -*) { echo "$as_me: error: unrecognized option: $1
32565Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032566 { (exit 1); exit 1; }; } ;;
32567
Reid Spencera773bd52006-08-04 18:18:08 +000032568 *) ac_config_targets="$ac_config_targets $1"
32569 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000032570
32571 esac
32572 shift
32573done
32574
John Criswell0c38eaf2003-09-10 15:17:25 +000032575ac_configure_extra_args=
32576
32577if $ac_cs_silent; then
32578 exec 6>/dev/null
32579 ac_configure_extra_args="$ac_configure_extra_args --silent"
32580fi
32581
32582_ACEOF
32583cat >>$CONFIG_STATUS <<_ACEOF
32584if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000032585 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32586 CONFIG_SHELL=$SHELL
32587 export CONFIG_SHELL
32588 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000032589fi
32590
John Criswell7a73b802003-06-30 21:59:07 +000032591_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032592cat >>$CONFIG_STATUS <<\_ACEOF
32593exec 5>>config.log
32594{
32595 echo
32596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32597## Running $as_me. ##
32598_ASBOX
32599 echo "$ac_log"
32600} >&5
John Criswell7a73b802003-06-30 21:59:07 +000032601
Reid Spencera773bd52006-08-04 18:18:08 +000032602_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032603cat >>$CONFIG_STATUS <<_ACEOF
32604#
Reid Spencera773bd52006-08-04 18:18:08 +000032605# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000032606#
Reid Spencerc0682832005-02-24 19:05:19 +000032607llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000032608
32609_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032610
John Criswell7a73b802003-06-30 21:59:07 +000032611cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032612
32613# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000032614for ac_config_target in $ac_config_targets
32615do
Reid Spencera773bd52006-08-04 18:18:08 +000032616 case $ac_config_target in
32617 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32618 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32619 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32620 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32621 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32622 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000032623 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032624 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32625 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32626 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32627 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32628 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32629 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32630 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000032631 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032632 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32633 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32634 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32635 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32636 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032637 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32638 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032639
John Criswell7a73b802003-06-30 21:59:07 +000032640 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32641echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32642 { (exit 1); exit 1; }; };;
32643 esac
32644done
32645
Reid Spencera773bd52006-08-04 18:18:08 +000032646
John Criswell7a73b802003-06-30 21:59:07 +000032647# If the user did not use the arguments to specify the items to instantiate,
32648# then the envvar interface is used. Set only those that are not.
32649# We use the long form for the default assignment because of an extremely
32650# bizarre bug on SunOS 4.1.3.
32651if $ac_need_defaults; then
32652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000032654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000032655fi
32656
John Criswell0c38eaf2003-09-10 15:17:25 +000032657# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000032658# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000032659# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000032660# Hook for its removal unless debugging.
32661# Note that there is a small window in which the directory will not be cleaned:
32662# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000032663$debug ||
32664{
Reid Spencera773bd52006-08-04 18:18:08 +000032665 tmp=
32666 trap 'exit_status=$?
32667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32668' 0
John Criswell7a73b802003-06-30 21:59:07 +000032669 trap '{ (exit 1); exit 1; }' 1 2 13 15
32670}
John Criswell7a73b802003-06-30 21:59:07 +000032671# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000032672
John Criswell7a73b802003-06-30 21:59:07 +000032673{
Reid Spencera773bd52006-08-04 18:18:08 +000032674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032675 test -n "$tmp" && test -d "$tmp"
32676} ||
32677{
Reid Spencera773bd52006-08-04 18:18:08 +000032678 tmp=./conf$$-$RANDOM
32679 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000032680} ||
32681{
John Criswell0c38eaf2003-09-10 15:17:25 +000032682 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032683 { (exit 1); exit 1; }
32684}
32685
John Criswell7a73b802003-06-30 21:59:07 +000032686#
Reid Spencera773bd52006-08-04 18:18:08 +000032687# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000032688#
32689
32690# No need to generate the scripts if there are no CONFIG_FILES.
32691# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000032692if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000032693
32694_ACEOF
32695
Reid Spencera773bd52006-08-04 18:18:08 +000032696
32697
32698ac_delim='%!_!# '
32699for ac_last_try in false false false false false :; do
32700 cat >conf$$subs.sed <<_ACEOF
32701SHELL!$SHELL$ac_delim
32702PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32703PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32704PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32705PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32706PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32707PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32708exec_prefix!$exec_prefix$ac_delim
32709prefix!$prefix$ac_delim
32710program_transform_name!$program_transform_name$ac_delim
32711bindir!$bindir$ac_delim
32712sbindir!$sbindir$ac_delim
32713libexecdir!$libexecdir$ac_delim
32714datarootdir!$datarootdir$ac_delim
32715datadir!$datadir$ac_delim
32716sysconfdir!$sysconfdir$ac_delim
32717sharedstatedir!$sharedstatedir$ac_delim
32718localstatedir!$localstatedir$ac_delim
32719includedir!$includedir$ac_delim
32720oldincludedir!$oldincludedir$ac_delim
32721docdir!$docdir$ac_delim
32722infodir!$infodir$ac_delim
32723htmldir!$htmldir$ac_delim
32724dvidir!$dvidir$ac_delim
32725pdfdir!$pdfdir$ac_delim
32726psdir!$psdir$ac_delim
32727libdir!$libdir$ac_delim
32728localedir!$localedir$ac_delim
32729mandir!$mandir$ac_delim
32730DEFS!$DEFS$ac_delim
32731ECHO_C!$ECHO_C$ac_delim
32732ECHO_N!$ECHO_N$ac_delim
32733ECHO_T!$ECHO_T$ac_delim
32734LIBS!$LIBS$ac_delim
32735build_alias!$build_alias$ac_delim
32736host_alias!$host_alias$ac_delim
32737target_alias!$target_alias$ac_delim
32738LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32739subdirs!$subdirs$ac_delim
32740build!$build$ac_delim
32741build_cpu!$build_cpu$ac_delim
32742build_vendor!$build_vendor$ac_delim
32743build_os!$build_os$ac_delim
32744host!$host$ac_delim
32745host_cpu!$host_cpu$ac_delim
32746host_vendor!$host_vendor$ac_delim
32747host_os!$host_os$ac_delim
32748target!$target$ac_delim
32749target_cpu!$target_cpu$ac_delim
32750target_vendor!$target_vendor$ac_delim
32751target_os!$target_os$ac_delim
32752OS!$OS$ac_delim
32753LINKALL!$LINKALL$ac_delim
32754NOLINKALL!$NOLINKALL$ac_delim
32755LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32756LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32757ARCH!$ARCH$ac_delim
32758ENDIAN!$ENDIAN$ac_delim
32759CC!$CC$ac_delim
32760CFLAGS!$CFLAGS$ac_delim
32761LDFLAGS!$LDFLAGS$ac_delim
32762CPPFLAGS!$CPPFLAGS$ac_delim
32763ac_ct_CC!$ac_ct_CC$ac_delim
32764EXEEXT!$EXEEXT$ac_delim
32765OBJEXT!$OBJEXT$ac_delim
32766CPP!$CPP$ac_delim
32767GREP!$GREP$ac_delim
32768EGREP!$EGREP$ac_delim
32769LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32770BUILD_CC!$BUILD_CC$ac_delim
32771BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32772CVSBUILD!$CVSBUILD$ac_delim
32773ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32774DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000032775ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32776EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032777DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032778JIT!$JIT$ac_delim
32779TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32780ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32781ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032782ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032783TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000032784ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032785EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32786CXX!$CXX$ac_delim
32787CXXFLAGS!$CXXFLAGS$ac_delim
32788ac_ct_CXX!$ac_ct_CXX$ac_delim
32789LEX!$LEX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032790LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000032791LEXLIB!$LEXLIB$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032792FLEX!$FLEX$ac_delim
32793YACC!$YACC$ac_delim
32794YFLAGS!$YFLAGS$ac_delim
32795BISON!$BISON$ac_delim
32796NM!$NM$ac_delim
32797ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032798_ACEOF
32799
32800 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32801 break
32802 elif $ac_last_try; then
32803 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32804echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32805 { (exit 1); exit 1; }; }
32806 else
32807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000032808 fi
Reid Spencera773bd52006-08-04 18:18:08 +000032809done
32810
32811ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32812if test -n "$ac_eof"; then
32813 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32814 ac_eof=`expr $ac_eof + 1`
32815fi
32816
32817cat >>$CONFIG_STATUS <<_ACEOF
32818cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32819/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32820_ACEOF
32821sed '
32822s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32823s/^/s,@/; s/!/@,|#_!!_#|/
32824:n
32825t n
32826s/'"$ac_delim"'$/,g/; t
32827s/$/\\/; p
32828N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32829' >>$CONFIG_STATUS <conf$$subs.sed
32830rm -f conf$$subs.sed
32831cat >>$CONFIG_STATUS <<_ACEOF
32832CEOF$ac_eof
32833_ACEOF
32834
32835
32836ac_delim='%!_!# '
32837for ac_last_try in false false false false false :; do
32838 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000032839LN_S!$LN_S$ac_delim
32840CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032841CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032842DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032843FIND!$FIND$ac_delim
32844MKDIR!$MKDIR$ac_delim
32845MV!$MV$ac_delim
32846RANLIB!$RANLIB$ac_delim
32847RM!$RM$ac_delim
32848SED!$SED$ac_delim
32849TAR!$TAR$ac_delim
32850BINPWD!$BINPWD$ac_delim
32851GRAPHVIZ!$GRAPHVIZ$ac_delim
32852DOT!$DOT$ac_delim
32853GV!$GV$ac_delim
32854DOTTY!$DOTTY$ac_delim
32855PERL!$PERL$ac_delim
32856HAVE_PERL!$HAVE_PERL$ac_delim
32857INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32858INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32859INSTALL_DATA!$INSTALL_DATA$ac_delim
32860BZIP2!$BZIP2$ac_delim
32861DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032862GROFF!$GROFF$ac_delim
32863GZIP!$GZIP$ac_delim
32864POD2HTML!$POD2HTML$ac_delim
32865POD2MAN!$POD2MAN$ac_delim
32866RUNTEST!$RUNTEST$ac_delim
32867TCLSH!$TCLSH$ac_delim
32868ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000032869OCAMLC!$OCAMLC$ac_delim
32870OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000032871OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032872INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32873INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32874CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32875CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32876LIBADD_DL!$LIBADD_DL$ac_delim
32877ECHO!$ECHO$ac_delim
32878AR!$AR$ac_delim
32879STRIP!$STRIP$ac_delim
32880CXXCPP!$CXXCPP$ac_delim
32881F77!$F77$ac_delim
32882FFLAGS!$FFLAGS$ac_delim
32883ac_ct_F77!$ac_ct_F77$ac_delim
32884LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032885LLVMGCC!$LLVMGCC$ac_delim
32886LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000032887USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000032888HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000032889HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032890ALLOCA!$ALLOCA$ac_delim
32891MMAP_FILE!$MMAP_FILE$ac_delim
32892LLVMCC1!$LLVMCC1$ac_delim
32893LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32894LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000032895LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032896LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32897LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000032898LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032899SHLIBEXT!$SHLIBEXT$ac_delim
32900LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32901LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32902LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32903LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32904LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32905LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32906LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32907LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32908LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32909LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000032910BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32911ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000032912OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032913LIBOBJS!$LIBOBJS$ac_delim
32914LTLIBOBJS!$LTLIBOBJS$ac_delim
32915_ACEOF
32916
Gordon Henriksenf0915682007-10-02 16:42:22 +000032917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000032918 break
32919 elif $ac_last_try; then
32920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32921echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32922 { (exit 1); exit 1; }; }
32923 else
32924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32925 fi
32926done
32927
32928ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32929if test -n "$ac_eof"; then
32930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32931 ac_eof=`expr $ac_eof + 1`
32932fi
32933
32934cat >>$CONFIG_STATUS <<_ACEOF
32935cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32936/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32937_ACEOF
32938sed '
32939s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32940s/^/s,@/; s/!/@,|#_!!_#|/
32941:n
32942t n
32943s/'"$ac_delim"'$/,g/; t
32944s/$/\\/; p
32945N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32946' >>$CONFIG_STATUS <conf$$subs.sed
32947rm -f conf$$subs.sed
32948cat >>$CONFIG_STATUS <<_ACEOF
32949:end
32950s/|#_!!_#|//g
32951CEOF$ac_eof
32952_ACEOF
32953
32954
32955# VPATH may cause trouble with some makes, so we remove $(srcdir),
32956# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32957# trailing colons and then remove the whole line if VPATH becomes empty
32958# (actually we leave an empty line to preserve line numbers).
32959if test "x$srcdir" = x.; then
32960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32961s/:*\$(srcdir):*/:/
32962s/:*\${srcdir}:*/:/
32963s/:*@srcdir@:*/:/
32964s/^\([^=]*=[ ]*\):*/\1/
32965s/:*$//
32966s/^[^=]*=[ ]*$//
32967}'
32968fi
32969
32970cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032971fi # test -n "$CONFIG_FILES"
32972
Reid Spencera773bd52006-08-04 18:18:08 +000032973
32974for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32975do
32976 case $ac_tag in
32977 :[FHLC]) ac_mode=$ac_tag; continue;;
32978 esac
32979 case $ac_mode$ac_tag in
32980 :[FHL]*:*);;
32981 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32982echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32983 { (exit 1); exit 1; }; };;
32984 :[FH]-) ac_tag=-:-;;
32985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32986 esac
32987 ac_save_IFS=$IFS
32988 IFS=:
32989 set x $ac_tag
32990 IFS=$ac_save_IFS
32991 shift
32992 ac_file=$1
32993 shift
32994
32995 case $ac_mode in
32996 :L) ac_source=$1;;
32997 :[FH])
32998 ac_file_inputs=
32999 for ac_f
33000 do
33001 case $ac_f in
33002 -) ac_f="$tmp/stdin";;
33003 *) # Look for the file first in the build tree, then in the source tree
33004 # (if the path is not absolute). The absolute path cannot be DOS-style,
33005 # because $ac_f cannot contain `:'.
33006 test -f "$ac_f" ||
33007 case $ac_f in
33008 [\\/$]*) false;;
33009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33010 esac ||
33011 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33012echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33013 { (exit 1); exit 1; }; };;
33014 esac
33015 ac_file_inputs="$ac_file_inputs $ac_f"
33016 done
33017
33018 # Let's still pretend it is `configure' which instantiates (i.e., don't
33019 # use $as_me), people would be surprised to read:
33020 # /* config.h. Generated by config.status. */
33021 configure_input="Generated from "`IFS=:
33022 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33023 if test x"$ac_file" != x-; then
33024 configure_input="$ac_file. $configure_input"
33025 { echo "$as_me:$LINENO: creating $ac_file" >&5
33026echo "$as_me: creating $ac_file" >&6;}
33027 fi
33028
33029 case $ac_tag in
33030 *:-:* | *:-) cat >"$tmp/stdin";;
33031 esac
33032 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033033 esac
33034
Reid Spencera773bd52006-08-04 18:18:08 +000033035 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000033036$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033037 X"$ac_file" : 'X\(//\)[^/]' \| \
33038 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000033040echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000033041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33042 s//\1/
33043 q
33044 }
33045 /^X\(\/\/\)[^/].*/{
33046 s//\1/
33047 q
33048 }
33049 /^X\(\/\/\)$/{
33050 s//\1/
33051 q
33052 }
33053 /^X\(\/\).*/{
33054 s//\1/
33055 q
33056 }
33057 s/.*/./; q'`
33058 { as_dir="$ac_dir"
33059 case $as_dir in #(
33060 -*) as_dir=./$as_dir;;
33061 esac
33062 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000033063 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033064 while :; do
33065 case $as_dir in #(
33066 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33067 *) as_qdir=$as_dir;;
33068 esac
33069 as_dirs="'$as_qdir' $as_dirs"
33070 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033072 X"$as_dir" : 'X\(//\)[^/]' \| \
33073 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033075echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33077 s//\1/
33078 q
33079 }
33080 /^X\(\/\/\)[^/].*/{
33081 s//\1/
33082 q
33083 }
33084 /^X\(\/\/\)$/{
33085 s//\1/
33086 q
33087 }
33088 /^X\(\/\).*/{
33089 s//\1/
33090 q
33091 }
33092 s/.*/./; q'`
33093 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000033094 done
Reid Spencera773bd52006-08-04 18:18:08 +000033095 test -z "$as_dirs" || eval "mkdir $as_dirs"
33096 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33097echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000033098 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000033099 ac_builddir=.
33100
Reid Spencera773bd52006-08-04 18:18:08 +000033101case "$ac_dir" in
33102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33103*)
John Criswell7a73b802003-06-30 21:59:07 +000033104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033105 # A ".." for each directory in $ac_dir_suffix.
33106 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33107 case $ac_top_builddir_sub in
33108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33110 esac ;;
33111esac
33112ac_abs_top_builddir=$ac_pwd
33113ac_abs_builddir=$ac_pwd$ac_dir_suffix
33114# for backward compatibility:
33115ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000033116
33117case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033118 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000033119 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033120 ac_top_srcdir=$ac_top_builddir_sub
33121 ac_abs_top_srcdir=$ac_pwd ;;
33122 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000033123 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033124 ac_top_srcdir=$srcdir
33125 ac_abs_top_srcdir=$srcdir ;;
33126 *) # Relative name.
33127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33128 ac_top_srcdir=$ac_top_build_prefix$srcdir
33129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000033130esac
Reid Spencera773bd52006-08-04 18:18:08 +000033131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000033132
John Criswell7a73b802003-06-30 21:59:07 +000033133
Reid Spencera773bd52006-08-04 18:18:08 +000033134 case $ac_mode in
33135 :F)
33136 #
33137 # CONFIG_FILE
33138 #
John Criswell7a73b802003-06-30 21:59:07 +000033139
33140 case $INSTALL in
33141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000033143 esac
John Criswell7a73b802003-06-30 21:59:07 +000033144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033145
33146cat >>$CONFIG_STATUS <<\_ACEOF
33147# If the template does not know about datarootdir, expand it.
33148# FIXME: This hack should be removed a few years after 2.60.
33149ac_datarootdir_hack=; ac_datarootdir_seen=
33150
33151case `sed -n '/datarootdir/ {
33152 p
33153 q
33154}
33155/@datadir@/p
33156/@docdir@/p
33157/@infodir@/p
33158/@localedir@/p
33159/@mandir@/p
33160' $ac_file_inputs` in
33161*datarootdir*) ac_datarootdir_seen=yes;;
33162*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33163 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33164echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33165_ACEOF
33166cat >>$CONFIG_STATUS <<_ACEOF
33167 ac_datarootdir_hack='
33168 s&@datadir@&$datadir&g
33169 s&@docdir@&$docdir&g
33170 s&@infodir@&$infodir&g
33171 s&@localedir@&$localedir&g
33172 s&@mandir@&$mandir&g
33173 s&\\\${datarootdir}&$datarootdir&g' ;;
33174esac
33175_ACEOF
33176
33177# Neutralize VPATH when `$srcdir' = `.'.
33178# Shell code in configure.ac might set extrasub.
33179# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000033180cat >>$CONFIG_STATUS <<_ACEOF
33181 sed "$ac_vpsub
33182$extrasub
33183_ACEOF
33184cat >>$CONFIG_STATUS <<\_ACEOF
33185:t
33186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000033187s&@configure_input@&$configure_input&;t t
33188s&@top_builddir@&$ac_top_builddir_sub&;t t
33189s&@srcdir@&$ac_srcdir&;t t
33190s&@abs_srcdir@&$ac_abs_srcdir&;t t
33191s&@top_srcdir@&$ac_top_srcdir&;t t
33192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33193s&@builddir@&$ac_builddir&;t t
33194s&@abs_builddir@&$ac_abs_builddir&;t t
33195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33196s&@INSTALL@&$ac_INSTALL&;t t
33197$ac_datarootdir_hack
33198" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000033199
Reid Spencera773bd52006-08-04 18:18:08 +000033200test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33201 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33203 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33204which seems to be undefined. Please make sure it is defined." >&5
33205echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33206which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000033207
Reid Spencera773bd52006-08-04 18:18:08 +000033208 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000033209 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000033210 -) cat "$tmp/out"; rm -f "$tmp/out";;
33211 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000033212 esac
Reid Spencera773bd52006-08-04 18:18:08 +000033213 ;;
33214 :H)
33215 #
33216 # CONFIG_HEADER
33217 #
John Criswell7a73b802003-06-30 21:59:07 +000033218_ACEOF
33219
Reid Spencera773bd52006-08-04 18:18:08 +000033220# Transform confdefs.h into a sed script `conftest.defines', that
33221# substitutes the proper values into config.h.in to produce config.h.
33222rm -f conftest.defines conftest.tail
33223# First, append a space to every undef/define line, to ease matching.
33224echo 's/$/ /' >conftest.defines
33225# Then, protect against being on the right side of a sed subst, or in
33226# an unquoted here document, in config.status. If some macros were
33227# called several times there might be several #defines for the same
33228# symbol, which is useless. But do not sort them, since the last
33229# AC_DEFINE must be honored.
33230ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33231# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33232# NAME is the cpp macro being defined, VALUE is the value it is being given.
33233# PARAMS is the parameter list in the macro definition--in most cases, it's
33234# just an empty string.
33235ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33236ac_dB='\\)[ (].*,\\1define\\2'
33237ac_dC=' '
33238ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000033239
Reid Spencera773bd52006-08-04 18:18:08 +000033240uniq confdefs.h |
33241 sed -n '
33242 t rset
33243 :rset
33244 s/^[ ]*#[ ]*define[ ][ ]*//
33245 t ok
33246 d
33247 :ok
33248 s/[\\&,]/\\&/g
33249 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33250 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33251 ' >>conftest.defines
33252
33253# Remove the space that was appended to ease matching.
33254# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000033255# example, in the case of _POSIX_SOURCE, which is predefined and required
33256# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000033257# (The regexp can be short, since the line contains either #define or #undef.)
33258echo 's/ $//
33259s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000033260
Reid Spencera773bd52006-08-04 18:18:08 +000033261# Break up conftest.defines:
33262ac_max_sed_lines=50
33263
33264# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33265# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33266# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33267# et cetera.
33268ac_in='$ac_file_inputs'
33269ac_out='"$tmp/out1"'
33270ac_nxt='"$tmp/out2"'
33271
33272while :
John Criswell7a73b802003-06-30 21:59:07 +000033273do
Reid Spencera773bd52006-08-04 18:18:08 +000033274 # Write a here document:
33275 cat >>$CONFIG_STATUS <<_ACEOF
33276 # First, check the format of the line:
33277 cat >"\$tmp/defines.sed" <<\\CEOF
33278/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33279/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33280b
33281:def
33282_ACEOF
33283 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033284 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033285 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33286 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33287 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33288 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000033289 rm -f conftest.defines
33290 mv conftest.tail conftest.defines
33291done
Reid Spencera773bd52006-08-04 18:18:08 +000033292rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000033293
Reid Spencera773bd52006-08-04 18:18:08 +000033294echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033295cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033296 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000033297 echo "/* $configure_input */" >"$tmp/config.h"
33298 cat "$ac_result" >>"$tmp/config.h"
33299 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033300 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33301echo "$as_me: $ac_file is unchanged" >&6;}
33302 else
John Criswell7a73b802003-06-30 21:59:07 +000033303 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000033304 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000033305 fi
33306 else
Reid Spencera773bd52006-08-04 18:18:08 +000033307 echo "/* $configure_input */"
33308 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000033309 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033310 rm -f "$tmp/out12"
33311 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033312
Reid Spencera773bd52006-08-04 18:18:08 +000033313 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33314echo "$as_me: executing $ac_file commands" >&6;}
33315 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033316 esac
John Criswell7a73b802003-06-30 21:59:07 +000033317
Reid Spencera773bd52006-08-04 18:18:08 +000033318
33319 case $ac_file$ac_mode in
33320 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33321 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33322 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33323 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33324 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33325 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33326 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33327 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033328 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33329 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033330 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33331 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33332 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33333 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33334 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33336 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33338 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33339 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033340 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33341 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33342 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33343 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033344
33345 esac
33346done # for ac_tag
33347
John Criswell7a73b802003-06-30 21:59:07 +000033348
33349{ (exit 0); exit 0; }
33350_ACEOF
33351chmod +x $CONFIG_STATUS
33352ac_clean_files=$ac_clean_files_save
33353
33354
33355# configure is writing to config.log, and then calls config.status.
33356# config.status does its own redirection, appending to config.log.
33357# Unfortunately, on DOS this fails, as config.log is still kept open
33358# by configure, so config.status won't be able to write to it; its
33359# output is simply discarded. So we exec the FD to /dev/null,
33360# effectively closing config.log, so it can be properly (re)opened and
33361# appended to by config.status. When coming back to configure, we
33362# need to make the FD available again.
33363if test "$no_create" != yes; then
33364 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033365 ac_config_status_args=
33366 test "$silent" = yes &&
33367 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000033368 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000033369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000033370 exec 5>>config.log
33371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33372 # would make configure fail if this is the last instruction.
33373 $ac_cs_success || { (exit 1); exit 1; }
33374fi
33375
John Criswell12399a12003-09-30 15:55:44 +000033376#
33377# CONFIG_SUBDIRS section.
33378#
33379if test "$no_recursion" != yes; then
33380
33381 # Remove --cache-file and --srcdir arguments so they do not pile up.
33382 ac_sub_configure_args=
33383 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000033384 eval "set x $ac_configure_args"
33385 shift
33386 for ac_arg
33387 do
John Criswell12399a12003-09-30 15:55:44 +000033388 if test -n "$ac_prev"; then
33389 ac_prev=
33390 continue
33391 fi
33392 case $ac_arg in
33393 -cache-file | --cache-file | --cache-fil | --cache-fi \
33394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33395 ac_prev=cache_file ;;
33396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33398 | --c=*)
33399 ;;
33400 --config-cache | -C)
33401 ;;
33402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33403 ac_prev=srcdir ;;
33404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33405 ;;
33406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33407 ac_prev=prefix ;;
33408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33409 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033410 *)
33411 case $ac_arg in
33412 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33413 esac
33414 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000033415 esac
33416 done
33417
33418 # Always prepend --prefix to ensure using the same prefix
33419 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000033420 ac_arg="--prefix=$prefix"
33421 case $ac_arg in
33422 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33423 esac
Scott Michel96dcd2b2007-12-05 21:24:02 +000033424 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33425
33426 # Pass --silent
33427 if test "$silent" = yes; then
33428 ac_sub_configure_args="--silent $ac_sub_configure_args"
33429 fi
John Criswell12399a12003-09-30 15:55:44 +000033430
33431 ac_popdir=`pwd`
33432 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33433
33434 # Do not complain, so a configure script can configure whichever
33435 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000033436 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000033437
Reid Spencera773bd52006-08-04 18:18:08 +000033438 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33439 echo "$as_me:$LINENO: $ac_msg" >&5
33440 echo "$ac_msg" >&6
33441 { as_dir="$ac_dir"
33442 case $as_dir in #(
33443 -*) as_dir=./$as_dir;;
33444 esac
33445 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000033446 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033447 while :; do
33448 case $as_dir in #(
33449 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33450 *) as_qdir=$as_dir;;
33451 esac
33452 as_dirs="'$as_qdir' $as_dirs"
33453 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000033454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033455 X"$as_dir" : 'X\(//\)[^/]' \| \
33456 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000033458echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33460 s//\1/
33461 q
33462 }
33463 /^X\(\/\/\)[^/].*/{
33464 s//\1/
33465 q
33466 }
33467 /^X\(\/\/\)$/{
33468 s//\1/
33469 q
33470 }
33471 /^X\(\/\).*/{
33472 s//\1/
33473 q
33474 }
33475 s/.*/./; q'`
33476 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000033477 done
Reid Spencera773bd52006-08-04 18:18:08 +000033478 test -z "$as_dirs" || eval "mkdir $as_dirs"
33479 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33480echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000033481 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000033482 ac_builddir=.
33483
Reid Spencera773bd52006-08-04 18:18:08 +000033484case "$ac_dir" in
33485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33486*)
John Criswell12399a12003-09-30 15:55:44 +000033487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033488 # A ".." for each directory in $ac_dir_suffix.
33489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33490 case $ac_top_builddir_sub in
33491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33493 esac ;;
33494esac
33495ac_abs_top_builddir=$ac_pwd
33496ac_abs_builddir=$ac_pwd$ac_dir_suffix
33497# for backward compatibility:
33498ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000033499
33500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033501 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000033502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033503 ac_top_srcdir=$ac_top_builddir_sub
33504 ac_abs_top_srcdir=$ac_pwd ;;
33505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000033506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033507 ac_top_srcdir=$srcdir
33508 ac_abs_top_srcdir=$srcdir ;;
33509 *) # Relative name.
33510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33511 ac_top_srcdir=$ac_top_build_prefix$srcdir
33512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000033513esac
Reid Spencera773bd52006-08-04 18:18:08 +000033514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000033515
33516
Reid Spencera773bd52006-08-04 18:18:08 +000033517 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000033518
33519 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000033520 if test -f "$ac_srcdir/configure.gnu"; then
33521 ac_sub_configure=$ac_srcdir/configure.gnu
33522 elif test -f "$ac_srcdir/configure"; then
33523 ac_sub_configure=$ac_srcdir/configure
33524 elif test -f "$ac_srcdir/configure.in"; then
33525 # This should be Cygnus configure.
33526 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000033527 else
33528 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33529echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33530 ac_sub_configure=
33531 fi
33532
33533 # The recursion is here.
33534 if test -n "$ac_sub_configure"; then
33535 # Make the cache file name correct relative to the subdirectory.
33536 case $cache_file in
33537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033538 *) # Relative name.
33539 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000033540 esac
33541
Reid Spencera773bd52006-08-04 18:18:08 +000033542 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33543echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000033544 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000033545 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33546 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000033547 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000033548echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33549 { (exit 1); exit 1; }; }
33550 fi
33551
Reid Spencera773bd52006-08-04 18:18:08 +000033552 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000033553 done
33554fi
33555