blob: fdb2f098f67200704e543727437e585090a664f9 [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
Duncan Sands67f1c492007-12-12 23:03:45 +0000831ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000832CC
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
Nate Begeman57b1efb2007-12-13 01:18:52 +00004569 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
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" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004597 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4598 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004599 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4600echo "$as_me: error: Unrecognized target $a_target" >&2;}
4601 { (exit 1); exit 1; }; } ;;
4602 esac
4603 done
4604 ;;
4605esac
Reid Spencera773bd52006-08-04 18:18:08 +00004606TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4607
4608
Reid Spencer65c5d752006-11-05 17:08:18 +00004609# Check whether --enable-cbe-printf-a was given.
4610if test "${enable_cbe_printf_a+set}" = set; then
4611 enableval=$enable_cbe_printf_a;
4612else
4613 enableval=default
4614fi
4615
4616case "$enableval" in
4617 yes) ENABLE_CBE_PRINTF_A=1
4618 ;;
4619 no) ENABLE_CBE_PRINTF_A=0
4620 ;;
4621 default) ENABLE_CBE_PRINTF_A=1
4622 ;;
4623 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4624echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4625 { (exit 1); exit 1; }; } ;;
4626esac
4627
4628cat >>confdefs.h <<_ACEOF
4629#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4630_ACEOF
4631
4632
Reid Spencera773bd52006-08-04 18:18:08 +00004633
4634# Check whether --with-llvmgccdir was given.
4635if test "${with_llvmgccdir+set}" = set; then
4636 withval=$with_llvmgccdir;
4637else
4638 withval=default
4639fi
4640
4641case "$withval" in
4642 default) WITH_LLVMGCCDIR=default ;;
4643 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4644 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4645echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4646 { (exit 1); exit 1; }; } ;;
4647esac
4648
4649
Devang Patel5d28b882007-12-04 22:54:47 +00004650# Check whether --with-llvmgcc was given.
4651if test "${with_llvmgcc+set}" = set; then
4652 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4653 WITH_LLVMGCCDIR=""
4654fi
4655
4656
4657
4658# Check whether --with-llvmgxx was given.
4659if test "${with_llvmgxx+set}" = set; then
4660 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4661 WITH_LLVMGCCDIR=""
4662fi
4663
4664
4665if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4666 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4667echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4668 { (exit 1); exit 1; }; };
4669fi
4670
4671if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4672 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4673echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4674 { (exit 1); exit 1; }; };
4675fi
4676
4677
Reid Spencera773bd52006-08-04 18:18:08 +00004678# Check whether --with-extra-options was given.
4679if test "${with_extra_options+set}" = set; then
4680 withval=$with_extra_options;
4681else
4682 withval=default
4683fi
4684
4685case "$withval" in
4686 default) EXTRA_OPTIONS= ;;
4687 *) EXTRA_OPTIONS=$withval ;;
4688esac
4689EXTRA_OPTIONS=$EXTRA_OPTIONS
4690
4691
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004692# Check whether --enable-bindings was given.
4693if test "${enable_bindings+set}" = set; then
4694 enableval=$enable_bindings;
4695else
4696 enableval=default
4697fi
4698
4699BINDINGS_TO_BUILD=""
4700case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004701 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004702 all ) BINDINGS_TO_BUILD="ocaml" ;;
4703 none | no) BINDINGS_TO_BUILD="" ;;
4704 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4705 case "$a_binding" in
4706 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4707 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4708echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4709 { (exit 1); exit 1; }; } ;;
4710 esac
4711 done
4712 ;;
4713esac
4714
Reid Spencera773bd52006-08-04 18:18:08 +00004715
Gordon Henriksenf0915682007-10-02 16:42:22 +00004716# Check whether --with-ocaml-libdir was given.
4717if test "${with_ocaml_libdir+set}" = set; then
4718 withval=$with_ocaml_libdir;
4719else
4720 withval=auto
4721fi
4722
4723case "$withval" in
4724 auto) with_ocaml_libdir="$withval" ;;
4725 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4726 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4727echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4729esac
4730
4731
Reid Spencera773bd52006-08-04 18:18:08 +00004732ac_ext=c
4733ac_cpp='$CPP $CPPFLAGS'
4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4738echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4739# On Suns, sometimes $CPP names a directory.
4740if test -n "$CPP" && test -d "$CPP"; then
4741 CPP=
4742fi
4743if test -z "$CPP"; then
4744 if test "${ac_cv_prog_CPP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747 # Double quotes because CPP needs to be expanded
4748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4749 do
4750 ac_preproc_ok=false
4751for ac_c_preproc_warn_flag in '' yes
4752do
4753 # Use a header file that comes with gcc, so configuring glibc
4754 # with a fresh cross-compiler works.
4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 # <limits.h> exists even on freestanding compilers.
4757 # On the NeXT, cc -E runs the code through the compiler's parser,
4758 # not just through cpp. "Syntax error" is here to catch this case.
4759 cat >conftest.$ac_ext <<_ACEOF
4760/* confdefs.h. */
4761_ACEOF
4762cat confdefs.h >>conftest.$ac_ext
4763cat >>conftest.$ac_ext <<_ACEOF
4764/* end confdefs.h. */
4765#ifdef __STDC__
4766# include <limits.h>
4767#else
4768# include <assert.h>
4769#endif
4770 Syntax error
4771_ACEOF
4772if { (ac_try="$ac_cpp conftest.$ac_ext"
4773case "(($ac_try" in
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4776esac
4777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004784 (exit $ac_status); } >/dev/null && {
4785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004788 :
4789else
4790 echo "$as_me: failed program was:" >&5
4791sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 # Broken: fails on valid input.
4794continue
4795fi
4796
4797rm -f conftest.err conftest.$ac_ext
4798
4799 # OK, works on sane cases. Now check whether nonexistent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
4807#include <ac_nonexistent.h>
4808_ACEOF
4809if { (ac_try="$ac_cpp conftest.$ac_ext"
4810case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4813esac
4814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004821 (exit $ac_status); } >/dev/null && {
4822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4824 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004825 # Broken: success on invalid input.
4826continue
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831 # Passes both tests.
4832ac_preproc_ok=:
4833break
4834fi
4835
4836rm -f conftest.err conftest.$ac_ext
4837
4838done
4839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4840rm -f conftest.err conftest.$ac_ext
4841if $ac_preproc_ok; then
4842 break
4843fi
4844
4845 done
4846 ac_cv_prog_CPP=$CPP
4847
4848fi
4849 CPP=$ac_cv_prog_CPP
4850else
4851 ac_cv_prog_CPP=$CPP
4852fi
4853{ echo "$as_me:$LINENO: result: $CPP" >&5
4854echo "${ECHO_T}$CPP" >&6; }
4855ac_preproc_ok=false
4856for ac_c_preproc_warn_flag in '' yes
4857do
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#ifdef __STDC__
4871# include <limits.h>
4872#else
4873# include <assert.h>
4874#endif
4875 Syntax error
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004889 (exit $ac_status); } >/dev/null && {
4890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004893 :
4894else
4895 echo "$as_me: failed program was:" >&5
4896sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 # Broken: fails on valid input.
4899continue
4900fi
4901
4902rm -f conftest.err conftest.$ac_ext
4903
4904 # OK, works on sane cases. Now check whether nonexistent headers
4905 # can be detected and how.
4906 cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h. */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h. */
4912#include <ac_nonexistent.h>
4913_ACEOF
4914if { (ac_try="$ac_cpp conftest.$ac_ext"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004926 (exit $ac_status); } >/dev/null && {
4927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4928 test ! -s conftest.err
4929 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004930 # Broken: success on invalid input.
4931continue
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 # Passes both tests.
4937ac_preproc_ok=:
4938break
4939fi
4940
4941rm -f conftest.err conftest.$ac_ext
4942
4943done
4944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945rm -f conftest.err conftest.$ac_ext
4946if $ac_preproc_ok; then
4947 :
4948else
4949 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4950See \`config.log' for more details." >&5
4951echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4952See \`config.log' for more details." >&2;}
4953 { (exit 1); exit 1; }; }
4954fi
4955
4956ac_ext=c
4957ac_cpp='$CPP $CPPFLAGS'
4958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961
4962ac_ext=c
4963ac_cpp='$CPP $CPPFLAGS'
4964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967if test -n "$ac_tool_prefix"; then
4968 for ac_prog in gcc
4969 do
4970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4974if test "${ac_cv_prog_CC+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977 if test -n "$CC"; then
4978 ac_cv_prog_CC="$CC" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004986 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 +00004987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991done
4992done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997CC=$ac_cv_prog_CC
4998if test -n "$CC"; then
4999 { echo "$as_me:$LINENO: result: $CC" >&5
5000echo "${ECHO_T}$CC" >&6; }
5001else
5002 { echo "$as_me:$LINENO: result: no" >&5
5003echo "${ECHO_T}no" >&6; }
5004fi
5005
5006
5007 test -n "$CC" && break
5008 done
5009fi
5010if test -z "$CC"; then
5011 ac_ct_CC=$CC
5012 for ac_prog in gcc
5013do
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015set dummy $ac_prog; ac_word=$2
5016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021 if test -n "$ac_ct_CC"; then
5022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005030 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 +00005031 ac_cv_prog_ac_ct_CC="$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035done
5036done
5037IFS=$as_save_IFS
5038
5039fi
5040fi
5041ac_ct_CC=$ac_cv_prog_ac_ct_CC
5042if test -n "$ac_ct_CC"; then
5043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5044echo "${ECHO_T}$ac_ct_CC" >&6; }
5045else
5046 { echo "$as_me:$LINENO: result: no" >&5
5047echo "${ECHO_T}no" >&6; }
5048fi
5049
5050
5051 test -n "$ac_ct_CC" && break
5052done
5053
5054 if test "x$ac_ct_CC" = x; then
5055 CC=""
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058yes:)
5059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5060whose name does not start with the host triplet. If you think this
5061configuration is useful to you, please write to autoconf@gnu.org." >&5
5062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5063whose name does not start with the host triplet. If you think this
5064configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5065ac_tool_warned=yes ;;
5066esac
5067 CC=$ac_ct_CC
5068 fi
5069fi
5070
5071
5072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5073See \`config.log' for more details." >&5
5074echo "$as_me: error: no acceptable C compiler found in \$PATH
5075See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; }
5077
5078# Provide some information about the compiler.
5079echo "$as_me:$LINENO: checking for C compiler version" >&5
5080ac_compiler=`set X $ac_compile; echo $2`
5081{ (ac_try="$ac_compiler --version >&5"
5082case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085esac
5086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compiler --version >&5") 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }
5091{ (ac_try="$ac_compiler -v >&5"
5092case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095esac
5096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compiler -v >&5") 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }
5101{ (ac_try="$ac_compiler -V >&5"
5102case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_compiler -V >&5") 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }
5111
5112{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5113echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5114if test "${ac_cv_c_compiler_gnu+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117 cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h. */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h. */
5123
5124int
5125main ()
5126{
5127#ifndef __GNUC__
5128 choke me
5129#endif
5130
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest.$ac_objext
5136if { (ac_try="$ac_compile"
5137case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005152 ac_compiler_gnu=yes
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ac_compiler_gnu=no
5158fi
5159
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161ac_cv_c_compiler_gnu=$ac_compiler_gnu
5162
5163fi
5164{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5165echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5166GCC=`test $ac_compiler_gnu = yes && echo yes`
5167ac_test_CFLAGS=${CFLAGS+set}
5168ac_save_CFLAGS=$CFLAGS
5169{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5170echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5171if test "${ac_cv_prog_cc_g+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 ac_save_c_werror_flag=$ac_c_werror_flag
5175 ac_c_werror_flag=yes
5176 ac_cv_prog_cc_g=no
5177 CFLAGS="-g"
5178 cat >conftest.$ac_ext <<_ACEOF
5179/* confdefs.h. */
5180_ACEOF
5181cat confdefs.h >>conftest.$ac_ext
5182cat >>conftest.$ac_ext <<_ACEOF
5183/* end confdefs.h. */
5184
5185int
5186main ()
5187{
5188
5189 ;
5190 return 0;
5191}
5192_ACEOF
5193rm -f conftest.$ac_objext
5194if { (ac_try="$ac_compile"
5195case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005210 ac_cv_prog_cc_g=yes
5211else
5212 echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 CFLAGS=""
5216 cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
5222
5223int
5224main ()
5225{
5226
5227 ;
5228 return 0;
5229}
5230_ACEOF
5231rm -f conftest.$ac_objext
5232if { (ac_try="$ac_compile"
5233case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236esac
5237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_compile") 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005248 :
5249else
5250 echo "$as_me: failed program was:" >&5
5251sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 ac_c_werror_flag=$ac_save_c_werror_flag
5254 CFLAGS="-g"
5255 cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261
5262int
5263main ()
5264{
5265
5266 ;
5267 return 0;
5268}
5269_ACEOF
5270rm -f conftest.$ac_objext
5271if { (ac_try="$ac_compile"
5272case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275esac
5276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005287 ac_cv_prog_cc_g=yes
5288else
5289 echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292
5293fi
5294
5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296fi
5297
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299fi
5300
5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_c_werror_flag=$ac_save_c_werror_flag
5303fi
5304{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5305echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5306if test "$ac_test_CFLAGS" = set; then
5307 CFLAGS=$ac_save_CFLAGS
5308elif test $ac_cv_prog_cc_g = yes; then
5309 if test "$GCC" = yes; then
5310 CFLAGS="-g -O2"
5311 else
5312 CFLAGS="-g"
5313 fi
5314else
5315 if test "$GCC" = yes; then
5316 CFLAGS="-O2"
5317 else
5318 CFLAGS=
5319 fi
5320fi
5321{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5322echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5323if test "${ac_cv_prog_cc_c89+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326 ac_cv_prog_cc_c89=no
5327ac_save_CC=$CC
5328cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334#include <stdarg.h>
5335#include <stdio.h>
5336#include <sys/types.h>
5337#include <sys/stat.h>
5338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5339struct buf { int x; };
5340FILE * (*rcsopen) (struct buf *, struct stat *, int);
5341static char *e (p, i)
5342 char **p;
5343 int i;
5344{
5345 return p[i];
5346}
5347static char *f (char * (*g) (char **, int), char **p, ...)
5348{
5349 char *s;
5350 va_list v;
5351 va_start (v,p);
5352 s = g (p, va_arg (v,int));
5353 va_end (v);
5354 return s;
5355}
5356
5357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5358 function prototypes and stuff, but not '\xHH' hex character constants.
5359 These don't provoke an error unfortunately, instead are silently treated
5360 as 'x'. The following induces an error, until -std is added to get
5361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5362 array size at least. It's necessary to write '\x00'==0 to get something
5363 that's true only with -std. */
5364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5365
5366/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5367 inside strings and character constants. */
5368#define FOO(x) 'x'
5369int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5370
5371int test (int i, double x);
5372struct s1 {int (*f) (int a);};
5373struct s2 {int (*f) (double a);};
5374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5375int argc;
5376char **argv;
5377int
5378main ()
5379{
5380return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5381 ;
5382 return 0;
5383}
5384_ACEOF
5385for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5387do
5388 CC="$ac_save_CC $ac_arg"
5389 rm -f conftest.$ac_objext
5390if { (ac_try="$ac_compile"
5391case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005406 ac_cv_prog_cc_c89=$ac_arg
5407else
5408 echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411
5412fi
5413
5414rm -f core conftest.err conftest.$ac_objext
5415 test "x$ac_cv_prog_cc_c89" != "xno" && break
5416done
5417rm -f conftest.$ac_ext
5418CC=$ac_save_CC
5419
5420fi
5421# AC_CACHE_VAL
5422case "x$ac_cv_prog_cc_c89" in
5423 x)
5424 { echo "$as_me:$LINENO: result: none needed" >&5
5425echo "${ECHO_T}none needed" >&6; } ;;
5426 xno)
5427 { echo "$as_me:$LINENO: result: unsupported" >&5
5428echo "${ECHO_T}unsupported" >&6; } ;;
5429 *)
5430 CC="$CC $ac_cv_prog_cc_c89"
5431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5432echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5433esac
5434
5435
5436ac_ext=c
5437ac_cpp='$CPP $CPPFLAGS'
5438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441
5442ac_ext=cpp
5443ac_cpp='$CXXCPP $CPPFLAGS'
5444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447if test -z "$CXX"; then
5448 if test -n "$CCC"; then
5449 CXX=$CCC
5450 else
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in g++
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5458if test "${ac_cv_prog_CXX+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461 if test -n "$CXX"; then
5462 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005470 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 +00005471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481CXX=$ac_cv_prog_CXX
5482if test -n "$CXX"; then
5483 { echo "$as_me:$LINENO: result: $CXX" >&5
5484echo "${ECHO_T}$CXX" >&6; }
5485else
5486 { echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6; }
5488fi
5489
5490
5491 test -n "$CXX" && break
5492 done
5493fi
5494if test -z "$CXX"; then
5495 ac_ct_CXX=$CXX
5496 for ac_prog in g++
5497do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499set dummy $ac_prog; ac_word=$2
5500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5502if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505 if test -n "$ac_ct_CXX"; then
5506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005514 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 +00005515 ac_cv_prog_ac_ct_CXX="$ac_prog"
5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519done
5520done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5526if test -n "$ac_ct_CXX"; then
5527 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5528echo "${ECHO_T}$ac_ct_CXX" >&6; }
5529else
5530 { echo "$as_me:$LINENO: result: no" >&5
5531echo "${ECHO_T}no" >&6; }
5532fi
5533
5534
5535 test -n "$ac_ct_CXX" && break
5536done
5537
5538 if test "x$ac_ct_CXX" = x; then
5539 CXX="g++"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
5543{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5544whose name does not start with the host triplet. If you think this
5545configuration is useful to you, please write to autoconf@gnu.org." >&5
5546echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5547whose name does not start with the host triplet. If you think this
5548configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5549ac_tool_warned=yes ;;
5550esac
5551 CXX=$ac_ct_CXX
5552 fi
5553fi
5554
5555 fi
5556fi
5557# Provide some information about the compiler.
5558echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5559ac_compiler=`set X $ac_compile; echo $2`
5560{ (ac_try="$ac_compiler --version >&5"
5561case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compiler --version >&5") 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570{ (ac_try="$ac_compiler -v >&5"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compiler -v >&5") 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580{ (ac_try="$ac_compiler -V >&5"
5581case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compiler -V >&5") 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }
5590
5591{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5592echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5593if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602
5603int
5604main ()
5605{
5606#ifndef __GNUC__
5607 choke me
5608#endif
5609
5610 ;
5611 return 0;
5612}
5613_ACEOF
5614rm -f conftest.$ac_objext
5615if { (ac_try="$ac_compile"
5616case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005627 (exit $ac_status); } && {
5628 test -z "$ac_cxx_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005631 ac_compiler_gnu=yes
5632else
5633 echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ac_compiler_gnu=no
5637fi
5638
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5641
5642fi
5643{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5644echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5645GXX=`test $ac_compiler_gnu = yes && echo yes`
5646ac_test_CXXFLAGS=${CXXFLAGS+set}
5647ac_save_CXXFLAGS=$CXXFLAGS
5648{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5649echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5650if test "${ac_cv_prog_cxx_g+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5654 ac_cxx_werror_flag=yes
5655 ac_cv_prog_cxx_g=no
5656 CXXFLAGS="-g"
5657 cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h. */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h. */
5663
5664int
5665main ()
5666{
5667
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext
5673if { (ac_try="$ac_compile"
5674case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677esac
5678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005685 (exit $ac_status); } && {
5686 test -z "$ac_cxx_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005689 ac_cv_prog_cxx_g=yes
5690else
5691 echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 CXXFLAGS=""
5695 cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701
5702int
5703main ()
5704{
5705
5706 ;
5707 return 0;
5708}
5709_ACEOF
5710rm -f conftest.$ac_objext
5711if { (ac_try="$ac_compile"
5712case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005723 (exit $ac_status); } && {
5724 test -z "$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005727 :
5728else
5729 echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5733 CXXFLAGS="-g"
5734 cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740
5741int
5742main ()
5743{
5744
5745 ;
5746 return 0;
5747}
5748_ACEOF
5749rm -f conftest.$ac_objext
5750if { (ac_try="$ac_compile"
5751case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754esac
5755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005762 (exit $ac_status); } && {
5763 test -z "$ac_cxx_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005766 ac_cv_prog_cxx_g=yes
5767else
5768 echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771
5772fi
5773
5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775fi
5776
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5782fi
5783{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5784echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5785if test "$ac_test_CXXFLAGS" = set; then
5786 CXXFLAGS=$ac_save_CXXFLAGS
5787elif test $ac_cv_prog_cxx_g = yes; then
5788 if test "$GXX" = yes; then
5789 CXXFLAGS="-g -O2"
5790 else
5791 CXXFLAGS="-g"
5792 fi
5793else
5794 if test "$GXX" = yes; then
5795 CXXFLAGS="-O2"
5796 else
5797 CXXFLAGS=
5798 fi
5799fi
5800ac_ext=c
5801ac_cpp='$CPP $CPPFLAGS'
5802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805
5806{ echo "$as_me:$LINENO: checking " >&5
5807echo $ECHO_N "checking ... $ECHO_C" >&6; }
5808if test "${ac_cv_has_flex+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 for ac_prog in flex lex
5812do
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814set dummy $ac_prog; ac_word=$2
5815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817if test "${ac_cv_prog_LEX+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 if test -n "$LEX"; then
5821 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005829 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 +00005830 ac_cv_prog_LEX="$ac_prog"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840LEX=$ac_cv_prog_LEX
5841if test -n "$LEX"; then
5842 { echo "$as_me:$LINENO: result: $LEX" >&5
5843echo "${ECHO_T}$LEX" >&6; }
5844else
5845 { echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6; }
5847fi
5848
5849
5850 test -n "$LEX" && break
5851done
5852test -n "$LEX" || LEX=":"
5853
Reid Spencera773bd52006-08-04 18:18:08 +00005854if test "x$LEX" != "x:"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +00005855 cat >conftest.l <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005856%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005857a { ECHO; }
5858b { REJECT; }
5859c { yymore (); }
5860d { yyless (1); }
5861e { yyless (input () != 0); }
5862f { unput (yytext[0]); }
5863. { BEGIN INITIAL; }
Reid Spencera773bd52006-08-04 18:18:08 +00005864%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005865#ifdef YYTEXT_POINTER
5866extern char *yytext;
5867#endif
5868int
5869main (void)
5870{
5871 return ! yylex () + ! yywrap ();
5872}
Reid Spencera773bd52006-08-04 18:18:08 +00005873_ACEOF
5874{ (ac_try="$LEX conftest.l"
5875case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$LEX conftest.l") 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }
Scott Michel96dcd2b2007-12-05 21:24:02 +00005884{ echo "$as_me:$LINENO: checking lex output file root" >&5
5885echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5886if test "${ac_cv_prog_lex_root+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889
Reid Spencera773bd52006-08-04 18:18:08 +00005890if test -f lex.yy.c; then
5891 ac_cv_prog_lex_root=lex.yy
5892elif test -f lexyy.c; then
5893 ac_cv_prog_lex_root=lexyy
5894else
5895 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5896echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5897 { (exit 1); exit 1; }; }
5898fi
5899fi
5900{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5901echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005902LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5903
Scott Michel96dcd2b2007-12-05 21:24:02 +00005904if test -z "${LEXLIB+set}"; then
5905 { echo "$as_me:$LINENO: checking lex library" >&5
5906echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5907if test "${ac_cv_lib_lex+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
Scott Michel96dcd2b2007-12-05 21:24:02 +00005910
5911 ac_save_LIBS=$LIBS
5912 ac_cv_lib_lex='none needed'
5913 for ac_lib in '' -lfl -ll; do
5914 LIBS="$ac_lib $ac_save_LIBS"
5915 cat >conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005916`cat $LEX_OUTPUT_ROOT.c`
5917_ACEOF
5918rm -f conftest.$ac_objext conftest$ac_exeext
5919if { (ac_try="$ac_link"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_link") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest$ac_exeext &&
5935 $as_test_x conftest$ac_exeext; then
5936 ac_cv_lib_lex=$ac_lib
5937else
5938 echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941
5942fi
5943
5944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945 conftest$ac_exeext conftest.$ac_ext
5946 test "$ac_cv_lib_lex" != 'none needed' && break
5947 done
5948 LIBS=$ac_save_LIBS
5949
5950fi
5951{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5952echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5953 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5954fi
5955
5956
5957{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5958echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5959if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 # POSIX says lex can declare yytext either as a pointer or an array; the
5963# default is implementation-dependent. Figure out which it is, since
5964# not all implementations provide the %pointer and %array declarations.
5965ac_cv_prog_lex_yytext_pointer=no
5966ac_save_LIBS=$LIBS
5967LIBS="$LEXLIB $ac_save_LIBS"
5968cat >conftest.$ac_ext <<_ACEOF
5969#define YYTEXT_POINTER 1
5970`cat $LEX_OUTPUT_ROOT.c`
5971_ACEOF
5972rm -f conftest.$ac_objext conftest$ac_exeext
5973if { (ac_try="$ac_link"
5974case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00005975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005979 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00005980 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00005981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest$ac_exeext &&
5989 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005990 ac_cv_prog_lex_yytext_pointer=yes
5991else
5992 echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995
5996fi
5997
Scott Michel96dcd2b2007-12-05 21:24:02 +00005998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00005999 conftest$ac_exeext conftest.$ac_ext
6000LIBS=$ac_save_LIBS
Reid Spencera773bd52006-08-04 18:18:08 +00006001
6002fi
6003{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6004echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6005if test $ac_cv_prog_lex_yytext_pointer = yes; then
6006
6007cat >>confdefs.h <<\_ACEOF
6008#define YYTEXT_POINTER 1
6009_ACEOF
6010
6011fi
Scott Michel96dcd2b2007-12-05 21:24:02 +00006012rm -f conftest.l $LEX_OUTPUT_ROOT.c
Reid Spencera773bd52006-08-04 18:18:08 +00006013
6014fi
6015
6016fi
6017{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6018echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6019if test "$LEX" != "flex"; then
6020 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6021echo "$as_me: error: flex not found but required" >&2;}
6022 { (exit 1); exit 1; }; }
6023else
6024 FLEX=flex
6025
6026fi
6027
6028{ echo "$as_me:$LINENO: checking " >&5
6029echo $ECHO_N "checking ... $ECHO_C" >&6; }
6030if test "${llvm_cv_has_bison+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 for ac_prog in 'bison -y' byacc
6034do
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036set dummy $ac_prog; ac_word=$2
6037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6039if test "${ac_cv_prog_YACC+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042 if test -n "$YACC"; then
6043 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006051 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 +00006052 ac_cv_prog_YACC="$ac_prog"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056done
6057done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062YACC=$ac_cv_prog_YACC
6063if test -n "$YACC"; then
6064 { echo "$as_me:$LINENO: result: $YACC" >&5
6065echo "${ECHO_T}$YACC" >&6; }
6066else
6067 { echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6; }
6069fi
6070
6071
6072 test -n "$YACC" && break
6073done
6074test -n "$YACC" || YACC="yacc"
6075
6076fi
6077{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6078echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6079if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006080
6081 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6082echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006083else
6084 BISON=bison
6085
6086fi
6087
6088{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6089echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6090if test "${lt_cv_path_NM+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093 if test -n "$NM"; then
6094 # Let the user override the test.
6095 lt_cv_path_NM="$NM"
6096else
6097 lt_nm_to_check="${ac_tool_prefix}nm"
6098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6099 lt_nm_to_check="$lt_nm_to_check nm"
6100 fi
6101 for lt_tmp_nm in $lt_nm_to_check; do
6102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6104 IFS="$lt_save_ifs"
6105 test -z "$ac_dir" && ac_dir=.
6106 tmp_nm="$ac_dir/$lt_tmp_nm"
6107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6108 # Check to see if the nm accepts a BSD-compat flag.
6109 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6110 # nm: unknown option "B" ignored
6111 # Tru64's nm complains that /dev/null is an invalid object file
6112 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6113 */dev/null* | *'Invalid file or object type'*)
6114 lt_cv_path_NM="$tmp_nm -B"
6115 break
6116 ;;
6117 *)
6118 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6119 */dev/null*)
6120 lt_cv_path_NM="$tmp_nm -p"
6121 break
6122 ;;
6123 *)
6124 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6125 continue # so that we can try to find one that supports BSD flags
6126 ;;
6127 esac
6128 ;;
6129 esac
6130 fi
6131 done
6132 IFS="$lt_save_ifs"
6133 done
6134 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6135fi
6136fi
6137{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6138echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6139NM="$lt_cv_path_NM"
6140
6141
6142
6143{ echo "$as_me:$LINENO: checking for GNU make" >&5
6144echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6145if test "${llvm_cv_gnu_make_command+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 llvm_cv_gnu_make_command=''
6149 for a in "$MAKE" make gmake gnumake ; do
6150 if test -z "$a" ; then continue ; fi ;
6151 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6152 then
6153 llvm_cv_gnu_make_command=$a ;
6154 break;
6155 fi
6156 done
6157fi
6158{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6159echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6160 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6161 ifGNUmake='' ;
6162 else
6163 ifGNUmake='#' ;
6164 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6165echo "${ECHO_T}\"Not found\"" >&6; };
6166 fi
6167
6168
6169{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6170echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6171LN_S=$as_ln_s
6172if test "$LN_S" = "ln -s"; then
6173 { echo "$as_me:$LINENO: result: yes" >&5
6174echo "${ECHO_T}yes" >&6; }
6175else
6176 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6177echo "${ECHO_T}no, using $LN_S" >&6; }
6178fi
6179
6180# Extract the first word of "cmp", so it can be a program name with args.
6181set dummy cmp; ac_word=$2
6182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184if test "${ac_cv_path_CMP+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187 case $CMP in
6188 [\\/]* | ?:[\\/]*)
6189 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6190 ;;
6191 *)
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006198 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 +00006199 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
6204done
6205IFS=$as_save_IFS
6206
6207 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6208 ;;
6209esac
6210fi
6211CMP=$ac_cv_path_CMP
6212if test -n "$CMP"; then
6213 { echo "$as_me:$LINENO: result: $CMP" >&5
6214echo "${ECHO_T}$CMP" >&6; }
6215else
6216 { echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6; }
6218fi
6219
6220
6221# Extract the first word of "cp", so it can be a program name with args.
6222set dummy cp; ac_word=$2
6223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225if test "${ac_cv_path_CP+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228 case $CP in
6229 [\\/]* | ?:[\\/]*)
6230 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6231 ;;
6232 *)
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006239 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 +00006240 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244done
6245done
6246IFS=$as_save_IFS
6247
6248 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6249 ;;
6250esac
6251fi
6252CP=$ac_cv_path_CP
6253if test -n "$CP"; then
6254 { echo "$as_me:$LINENO: result: $CP" >&5
6255echo "${ECHO_T}$CP" >&6; }
6256else
6257 { echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6; }
6259fi
6260
6261
6262# Extract the first word of "date", so it can be a program name with args.
6263set dummy date; ac_word=$2
6264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266if test "${ac_cv_path_DATE+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 case $DATE in
6270 [\\/]* | ?:[\\/]*)
6271 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6272 ;;
6273 *)
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006280 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 +00006281 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285done
6286done
6287IFS=$as_save_IFS
6288
6289 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6290 ;;
6291esac
6292fi
6293DATE=$ac_cv_path_DATE
6294if test -n "$DATE"; then
6295 { echo "$as_me:$LINENO: result: $DATE" >&5
6296echo "${ECHO_T}$DATE" >&6; }
6297else
6298 { echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6; }
6300fi
6301
6302
6303# Extract the first word of "find", so it can be a program name with args.
6304set dummy find; ac_word=$2
6305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307if test "${ac_cv_path_FIND+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310 case $FIND in
6311 [\\/]* | ?:[\\/]*)
6312 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6313 ;;
6314 *)
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006321 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 +00006322 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326done
6327done
6328IFS=$as_save_IFS
6329
6330 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6331 ;;
6332esac
6333fi
6334FIND=$ac_cv_path_FIND
6335if test -n "$FIND"; then
6336 { echo "$as_me:$LINENO: result: $FIND" >&5
6337echo "${ECHO_T}$FIND" >&6; }
6338else
6339 { echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6; }
6341fi
6342
6343
6344# Extract the first word of "grep", so it can be a program name with args.
6345set dummy grep; ac_word=$2
6346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348if test "${ac_cv_path_GREP+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 case $GREP in
6352 [\\/]* | ?:[\\/]*)
6353 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6354 ;;
6355 *)
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006362 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 +00006363 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367done
6368done
6369IFS=$as_save_IFS
6370
6371 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6372 ;;
6373esac
6374fi
6375GREP=$ac_cv_path_GREP
6376if test -n "$GREP"; then
6377 { echo "$as_me:$LINENO: result: $GREP" >&5
6378echo "${ECHO_T}$GREP" >&6; }
6379else
6380 { echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6; }
6382fi
6383
6384
6385# Extract the first word of "mkdir", so it can be a program name with args.
6386set dummy mkdir; ac_word=$2
6387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6389if test "${ac_cv_path_MKDIR+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392 case $MKDIR in
6393 [\\/]* | ?:[\\/]*)
6394 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6395 ;;
6396 *)
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006403 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 +00006404 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409done
6410IFS=$as_save_IFS
6411
6412 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6413 ;;
6414esac
6415fi
6416MKDIR=$ac_cv_path_MKDIR
6417if test -n "$MKDIR"; then
6418 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6419echo "${ECHO_T}$MKDIR" >&6; }
6420else
6421 { echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6; }
6423fi
6424
6425
6426# Extract the first word of "mv", so it can be a program name with args.
6427set dummy mv; ac_word=$2
6428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430if test "${ac_cv_path_MV+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 case $MV in
6434 [\\/]* | ?:[\\/]*)
6435 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6436 ;;
6437 *)
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006444 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 +00006445 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451IFS=$as_save_IFS
6452
6453 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6454 ;;
6455esac
6456fi
6457MV=$ac_cv_path_MV
6458if test -n "$MV"; then
6459 { echo "$as_me:$LINENO: result: $MV" >&5
6460echo "${ECHO_T}$MV" >&6; }
6461else
6462 { echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6; }
6464fi
6465
6466
6467if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6469set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472if test "${ac_cv_prog_RANLIB+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 if test -n "$RANLIB"; then
6476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006484 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 +00006485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491IFS=$as_save_IFS
6492
6493fi
6494fi
6495RANLIB=$ac_cv_prog_RANLIB
6496if test -n "$RANLIB"; then
6497 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6498echo "${ECHO_T}$RANLIB" >&6; }
6499else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6; }
6502fi
6503
6504
6505fi
6506if test -z "$ac_cv_prog_RANLIB"; then
6507 ac_ct_RANLIB=$RANLIB
6508 # Extract the first word of "ranlib", so it can be a program name with args.
6509set dummy ranlib; ac_word=$2
6510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515 if test -n "$ac_ct_RANLIB"; then
6516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006524 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 +00006525 ac_cv_prog_ac_ct_RANLIB="ranlib"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6536if test -n "$ac_ct_RANLIB"; then
6537 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6538echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6539else
6540 { echo "$as_me:$LINENO: result: no" >&5
6541echo "${ECHO_T}no" >&6; }
6542fi
6543
6544 if test "x$ac_ct_RANLIB" = x; then
6545 RANLIB=":"
6546 else
6547 case $cross_compiling:$ac_tool_warned in
6548yes:)
6549{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6550whose name does not start with the host triplet. If you think this
6551configuration is useful to you, please write to autoconf@gnu.org." >&5
6552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6553whose name does not start with the host triplet. If you think this
6554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6555ac_tool_warned=yes ;;
6556esac
6557 RANLIB=$ac_ct_RANLIB
6558 fi
6559else
6560 RANLIB="$ac_cv_prog_RANLIB"
6561fi
6562
6563# Extract the first word of "rm", so it can be a program name with args.
6564set dummy rm; ac_word=$2
6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_RM+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 case $RM in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6573 ;;
6574 *)
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006581 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 +00006582 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6591 ;;
6592esac
6593fi
6594RM=$ac_cv_path_RM
6595if test -n "$RM"; then
6596 { echo "$as_me:$LINENO: result: $RM" >&5
6597echo "${ECHO_T}$RM" >&6; }
6598else
6599 { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
6601fi
6602
6603
6604# Extract the first word of "sed", so it can be a program name with args.
6605set dummy sed; ac_word=$2
6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_SED+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 case $SED in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006622 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 +00006623 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627done
6628done
6629IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6632 ;;
6633esac
6634fi
6635SED=$ac_cv_path_SED
6636if test -n "$SED"; then
6637 { echo "$as_me:$LINENO: result: $SED" >&5
6638echo "${ECHO_T}$SED" >&6; }
6639else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
6642fi
6643
6644
6645# Extract the first word of "tar", so it can be a program name with args.
6646set dummy tar; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_TAR+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652 case $TAR in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006663 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 +00006664 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6673 ;;
6674esac
6675fi
6676TAR=$ac_cv_path_TAR
6677if test -n "$TAR"; then
6678 { echo "$as_me:$LINENO: result: $TAR" >&5
6679echo "${ECHO_T}$TAR" >&6; }
6680else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686# Extract the first word of "pwd", so it can be a program name with args.
6687set dummy pwd; ac_word=$2
6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_BINPWD+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 case $BINPWD in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006704 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 +00006705 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6714 ;;
6715esac
6716fi
6717BINPWD=$ac_cv_path_BINPWD
6718if test -n "$BINPWD"; then
6719 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6720echo "${ECHO_T}$BINPWD" >&6; }
6721else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727
6728# Extract the first word of "Graphviz", so it can be a program name with args.
6729set dummy Graphviz; ac_word=$2
6730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735 case $GRAPHVIZ in
6736 [\\/]* | ?:[\\/]*)
6737 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6738 ;;
6739 *)
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006746 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 +00006747 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751done
6752done
6753IFS=$as_save_IFS
6754
6755 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6756 ;;
6757esac
6758fi
6759GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6760if test -n "$GRAPHVIZ"; then
6761 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6762echo "${ECHO_T}$GRAPHVIZ" >&6; }
6763else
6764 { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766fi
6767
6768
6769if test "$GRAPHVIZ" != "echo Graphviz" ; then
6770
6771cat >>confdefs.h <<\_ACEOF
6772#define HAVE_GRAPHVIZ 1
6773_ACEOF
6774
Jeff Cohen28783c32007-01-12 18:22:38 +00006775 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006776 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6777 fi
6778
6779cat >>confdefs.h <<_ACEOF
6780#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6781_ACEOF
6782
6783fi
6784# Extract the first word of "dot", so it can be a program name with args.
6785set dummy dot; ac_word=$2
6786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788if test "${ac_cv_path_DOT+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791 case $DOT in
6792 [\\/]* | ?:[\\/]*)
6793 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6794 ;;
6795 *)
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006802 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 +00006803 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6812 ;;
6813esac
6814fi
6815DOT=$ac_cv_path_DOT
6816if test -n "$DOT"; then
6817 { echo "$as_me:$LINENO: result: $DOT" >&5
6818echo "${ECHO_T}$DOT" >&6; }
6819else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
6822fi
6823
6824
6825if test "$DOT" != "echo dot" ; then
6826
6827cat >>confdefs.h <<\_ACEOF
6828#define HAVE_DOT 1
6829_ACEOF
6830
Jeff Cohen28783c32007-01-12 18:22:38 +00006831 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006832 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6833 fi
6834
6835cat >>confdefs.h <<_ACEOF
6836#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6837_ACEOF
6838
6839fi
6840for ac_prog in gv gsview32
6841do
6842 # Extract the first word of "$ac_prog", so it can be a program name with args.
6843set dummy $ac_prog; ac_word=$2
6844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_GV+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849 case $GV in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006860 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 +00006861 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866done
6867IFS=$as_save_IFS
6868
6869 ;;
6870esac
6871fi
6872GV=$ac_cv_path_GV
6873if test -n "$GV"; then
6874 { echo "$as_me:$LINENO: result: $GV" >&5
6875echo "${ECHO_T}$GV" >&6; }
6876else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882 test -n "$GV" && break
6883done
6884test -n "$GV" || GV="echo gv"
6885
6886if test "$GV" != "echo gv" ; then
6887
6888cat >>confdefs.h <<\_ACEOF
6889#define HAVE_GV 1
6890_ACEOF
6891
Jeff Cohen28783c32007-01-12 18:22:38 +00006892 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006893 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6894 fi
6895
6896cat >>confdefs.h <<_ACEOF
6897#define LLVM_PATH_GV "$GV${EXEEXT}"
6898_ACEOF
6899
6900fi
6901# Extract the first word of "dotty", so it can be a program name with args.
6902set dummy dotty; ac_word=$2
6903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905if test "${ac_cv_path_DOTTY+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 case $DOTTY in
6909 [\\/]* | ?:[\\/]*)
6910 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6911 ;;
6912 *)
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006919 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 +00006920 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925done
6926IFS=$as_save_IFS
6927
6928 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6929 ;;
6930esac
6931fi
6932DOTTY=$ac_cv_path_DOTTY
6933if test -n "$DOTTY"; then
6934 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6935echo "${ECHO_T}$DOTTY" >&6; }
6936else
6937 { echo "$as_me:$LINENO: result: no" >&5
6938echo "${ECHO_T}no" >&6; }
6939fi
6940
6941
6942if test "$DOTTY" != "echo dotty" ; then
6943
6944cat >>confdefs.h <<\_ACEOF
6945#define HAVE_DOTTY 1
6946_ACEOF
6947
Jeff Cohen28783c32007-01-12 18:22:38 +00006948 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006949 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6950 fi
6951
6952cat >>confdefs.h <<_ACEOF
6953#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6954_ACEOF
6955
6956fi
6957
6958
6959# Extract the first word of "perl", so it can be a program name with args.
6960set dummy perl; ac_word=$2
6961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963if test "${ac_cv_path_PERL+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966 case $PERL in
6967 [\\/]* | ?:[\\/]*)
6968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6969 ;;
6970 *)
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006977 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 +00006978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983done
6984IFS=$as_save_IFS
6985
6986 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6987 ;;
6988esac
6989fi
6990PERL=$ac_cv_path_PERL
6991if test -n "$PERL"; then
6992 { echo "$as_me:$LINENO: result: $PERL" >&5
6993echo "${ECHO_T}$PERL" >&6; }
6994else
6995 { echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6; }
6997fi
6998
6999
7000if test "$PERL" != "none"; then
7001 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7002echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7003 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7004 { echo "$as_me:$LINENO: result: yes" >&5
7005echo "${ECHO_T}yes" >&6; }
7006 else
7007 PERL=none
7008 { echo "$as_me:$LINENO: result: not found" >&5
7009echo "${ECHO_T}not found" >&6; }
7010 fi
7011fi
7012
7013
7014if test x"$PERL" = xnone; then
7015 HAVE_PERL=0
7016
Reid Spencer59807fa2007-05-17 18:11:03 +00007017 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7018echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7019 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007020else
7021 HAVE_PERL=1
7022
7023fi
7024
7025# Find a good install program. We prefer a C program (faster),
7026# so one script is as good as another. But avoid the broken or
7027# incompatible versions:
7028# SysV /etc/install, /usr/sbin/install
7029# SunOS /usr/etc/install
7030# IRIX /sbin/install
7031# AIX /bin/install
7032# AmigaOS /C/install, which installs bootblocks on floppy discs
7033# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7034# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7035# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7036# OS/2's system install, which has a completely different semantic
7037# ./install, which can be erroneously created by make from ./install.sh.
7038{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7039echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7040if test -z "$INSTALL"; then
7041if test "${ac_cv_path_install+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 # Account for people who put trailing slashes in PATH elements.
7050case $as_dir/ in
7051 ./ | .// | /cC/* | \
7052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7053 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7054 /usr/ucb/* ) ;;
7055 *)
7056 # OSF1 and SCO ODT 3.0 have their own names for install.
7057 # Don't use installbsd from OSF since it installs stuff as root
7058 # by default.
7059 for ac_prog in ginstall scoinst install; do
7060 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007061 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 +00007062 if test $ac_prog = install &&
7063 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7064 # AIX install. It has an incompatible calling convention.
7065 :
7066 elif test $ac_prog = install &&
7067 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7068 # program-specific install script used by HP pwplus--don't use.
7069 :
7070 else
7071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7072 break 3
7073 fi
7074 fi
7075 done
7076 done
7077 ;;
7078esac
7079done
7080IFS=$as_save_IFS
7081
7082
7083fi
7084 if test "${ac_cv_path_install+set}" = set; then
7085 INSTALL=$ac_cv_path_install
7086 else
7087 # As a last resort, use the slow shell script. Don't cache a
7088 # value for INSTALL within a source directory, because that will
7089 # break other packages using the cache if that directory is
7090 # removed, or if the value is a relative name.
7091 INSTALL=$ac_install_sh
7092 fi
7093fi
7094{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7095echo "${ECHO_T}$INSTALL" >&6; }
7096
7097# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7098# It thinks the first close brace ends the variable substitution.
7099test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7100
7101test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7102
7103test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7104
7105
7106# Extract the first word of "bzip2", so it can be a program name with args.
7107set dummy bzip2; ac_word=$2
7108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110if test "${ac_cv_path_BZIP2+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 case $BZIP2 in
7114 [\\/]* | ?:[\\/]*)
7115 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7116 ;;
7117 *)
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007124 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 +00007125 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129done
7130done
7131IFS=$as_save_IFS
7132
7133 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7134 ;;
7135esac
7136fi
7137BZIP2=$ac_cv_path_BZIP2
7138if test -n "$BZIP2"; then
7139 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7140echo "${ECHO_T}$BZIP2" >&6; }
7141else
7142 { echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6; }
7144fi
7145
7146
7147# Extract the first word of "doxygen", so it can be a program name with args.
7148set dummy doxygen; ac_word=$2
7149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151if test "${ac_cv_path_DOXYGEN+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154 case $DOXYGEN in
7155 [\\/]* | ?:[\\/]*)
7156 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7157 ;;
7158 *)
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007165 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 +00007166 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170done
7171done
7172IFS=$as_save_IFS
7173
7174 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7175 ;;
7176esac
7177fi
7178DOXYGEN=$ac_cv_path_DOXYGEN
7179if test -n "$DOXYGEN"; then
7180 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7181echo "${ECHO_T}$DOXYGEN" >&6; }
7182else
7183 { echo "$as_me:$LINENO: result: no" >&5
7184echo "${ECHO_T}no" >&6; }
7185fi
7186
7187
Reid Spencera773bd52006-08-04 18:18:08 +00007188# Extract the first word of "groff", so it can be a program name with args.
7189set dummy groff; ac_word=$2
7190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192if test "${ac_cv_path_GROFF+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 case $GROFF in
7196 [\\/]* | ?:[\\/]*)
7197 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7198 ;;
7199 *)
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007206 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 +00007207 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211done
7212done
7213IFS=$as_save_IFS
7214
7215 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7216 ;;
7217esac
7218fi
7219GROFF=$ac_cv_path_GROFF
7220if test -n "$GROFF"; then
7221 { echo "$as_me:$LINENO: result: $GROFF" >&5
7222echo "${ECHO_T}$GROFF" >&6; }
7223else
7224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
7226fi
7227
7228
7229# Extract the first word of "gzip", so it can be a program name with args.
7230set dummy gzip; ac_word=$2
7231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233if test "${ac_cv_path_GZIP+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 case $GZIP in
7237 [\\/]* | ?:[\\/]*)
7238 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7239 ;;
7240 *)
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007247 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 +00007248 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253done
7254IFS=$as_save_IFS
7255
7256 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7257 ;;
7258esac
7259fi
7260GZIP=$ac_cv_path_GZIP
7261if test -n "$GZIP"; then
7262 { echo "$as_me:$LINENO: result: $GZIP" >&5
7263echo "${ECHO_T}$GZIP" >&6; }
7264else
7265 { echo "$as_me:$LINENO: result: no" >&5
7266echo "${ECHO_T}no" >&6; }
7267fi
7268
7269
7270# Extract the first word of "pod2html", so it can be a program name with args.
7271set dummy pod2html; ac_word=$2
7272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274if test "${ac_cv_path_POD2HTML+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277 case $POD2HTML in
7278 [\\/]* | ?:[\\/]*)
7279 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7280 ;;
7281 *)
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007288 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 +00007289 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293done
7294done
7295IFS=$as_save_IFS
7296
7297 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7298 ;;
7299esac
7300fi
7301POD2HTML=$ac_cv_path_POD2HTML
7302if test -n "$POD2HTML"; then
7303 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7304echo "${ECHO_T}$POD2HTML" >&6; }
7305else
7306 { echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6; }
7308fi
7309
7310
7311# Extract the first word of "pod2man", so it can be a program name with args.
7312set dummy pod2man; ac_word=$2
7313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315if test "${ac_cv_path_POD2MAN+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318 case $POD2MAN in
7319 [\\/]* | ?:[\\/]*)
7320 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7321 ;;
7322 *)
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007329 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 +00007330 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334done
7335done
7336IFS=$as_save_IFS
7337
7338 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7339 ;;
7340esac
7341fi
7342POD2MAN=$ac_cv_path_POD2MAN
7343if test -n "$POD2MAN"; then
7344 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7345echo "${ECHO_T}$POD2MAN" >&6; }
7346else
7347 { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
7349fi
7350
7351
7352# Extract the first word of "runtest", so it can be a program name with args.
7353set dummy runtest; ac_word=$2
7354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_RUNTEST+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359 case $RUNTEST in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007370 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 +00007371 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7380 ;;
7381esac
7382fi
7383RUNTEST=$ac_cv_path_RUNTEST
7384if test -n "$RUNTEST"; then
7385 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7386echo "${ECHO_T}$RUNTEST" >&6; }
7387else
7388 { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393
7394no_itcl=true
7395{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7396echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7397
7398# Check whether --with-tclinclude was given.
7399if test "${with_tclinclude+set}" = set; then
7400 withval=$with_tclinclude; with_tclinclude=${withval}
7401else
7402 with_tclinclude=''
7403fi
7404
7405if test "${ac_cv_path_tclsh+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408
7409if test x"${with_tclinclude}" != x ; then
7410 if test -f ${with_tclinclude}/tclsh ; then
7411 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7412 elif test -f ${with_tclinclude}/src/tclsh ; then
7413 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7414 else
7415 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7416echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7417 { (exit 1); exit 1; }; }
7418 fi
7419fi
7420
7421if test x"${ac_cv_path_tclsh}" = x ; then
7422 { echo "$as_me:$LINENO: result: none" >&5
7423echo "${ECHO_T}none" >&6; }
7424 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
7425do
7426 # Extract the first word of "$ac_prog", so it can be a program name with args.
7427set dummy $ac_prog; ac_word=$2
7428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7430if test "${ac_cv_path_TCLSH+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433 case $TCLSH in
7434 [\\/]* | ?:[\\/]*)
7435 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7436 ;;
7437 *)
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007444 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 +00007445 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450done
7451IFS=$as_save_IFS
7452
7453 ;;
7454esac
7455fi
7456TCLSH=$ac_cv_path_TCLSH
7457if test -n "$TCLSH"; then
7458 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7459echo "${ECHO_T}$TCLSH" >&6; }
7460else
7461 { echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6; }
7463fi
7464
7465
7466 test -n "$TCLSH" && break
7467done
7468
7469 if test x"${TCLSH}" = x ; then
7470 ac_cv_path_tclsh='';
7471 else
7472 ac_cv_path_tclsh="${TCLSH}";
7473 fi
7474else
7475 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7476echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7477 TCLSH="${ac_cv_path_tclsh}"
7478
7479fi
7480
7481fi
7482
7483# Extract the first word of "zip", so it can be a program name with args.
7484set dummy zip; ac_word=$2
7485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487if test "${ac_cv_path_ZIP+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 case $ZIP in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007501 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 +00007502 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507done
7508IFS=$as_save_IFS
7509
7510 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7511 ;;
7512esac
7513fi
7514ZIP=$ac_cv_path_ZIP
7515if test -n "$ZIP"; then
7516 { echo "$as_me:$LINENO: result: $ZIP" >&5
7517echo "${ECHO_T}$ZIP" >&6; }
7518else
7519 { echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6; }
7521fi
7522
7523
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007524# Extract the first word of "ocamlc", so it can be a program name with args.
7525set dummy ocamlc; ac_word=$2
7526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528if test "${ac_cv_path_OCAMLC+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 case $OCAMLC in
7532 [\\/]* | ?:[\\/]*)
7533 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7534 ;;
7535 *)
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007542 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 +00007543 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547done
7548done
7549IFS=$as_save_IFS
7550
7551 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7552 ;;
7553esac
7554fi
7555OCAMLC=$ac_cv_path_OCAMLC
7556if test -n "$OCAMLC"; then
7557 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7558echo "${ECHO_T}$OCAMLC" >&6; }
7559else
7560 { echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6; }
7562fi
7563
7564
7565# Extract the first word of "ocamlopt", so it can be a program name with args.
7566set dummy ocamlopt; ac_word=$2
7567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 case $OCAMLOPT in
7573 [\\/]* | ?:[\\/]*)
7574 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7575 ;;
7576 *)
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007583 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 +00007584 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588done
7589done
7590IFS=$as_save_IFS
7591
7592 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7593 ;;
7594esac
7595fi
7596OCAMLOPT=$ac_cv_path_OCAMLOPT
7597if test -n "$OCAMLOPT"; then
7598 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7599echo "${ECHO_T}$OCAMLOPT" >&6; }
7600else
7601 { echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6; }
7603fi
7604
7605
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007606# Extract the first word of "ocamldep", so it can be a program name with args.
7607set dummy ocamldep; ac_word=$2
7608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7610if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613 case $OCAMLDEP in
7614 [\\/]* | ?:[\\/]*)
7615 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7616 ;;
7617 *)
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007624 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 +00007625 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629done
7630done
7631IFS=$as_save_IFS
7632
7633 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7634 ;;
7635esac
7636fi
7637OCAMLDEP=$ac_cv_path_OCAMLDEP
7638if test -n "$OCAMLDEP"; then
7639 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7640echo "${ECHO_T}$OCAMLDEP" >&6; }
7641else
7642 { echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6; }
7644fi
7645
7646
Reid Spencera773bd52006-08-04 18:18:08 +00007647
7648{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7649echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7650if test "${llvm_cv_link_use_r+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653 ac_ext=c
7654ac_cpp='$CPP $CPPFLAGS'
7655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659 oldcflags="$CFLAGS"
7660 CFLAGS="$CFLAGS -Wl,-R."
7661 cat >conftest.$ac_ext <<_ACEOF
7662/* confdefs.h. */
7663_ACEOF
7664cat confdefs.h >>conftest.$ac_ext
7665cat >>conftest.$ac_ext <<_ACEOF
7666/* end confdefs.h. */
7667
7668int
7669main ()
7670{
7671int main() { return 0; }
7672 ;
7673 return 0;
7674}
7675_ACEOF
7676rm -f conftest.$ac_objext conftest$ac_exeext
7677if { (ac_try="$ac_link"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest$ac_exeext &&
7693 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007694 llvm_cv_link_use_r=yes
7695else
7696 echo "$as_me: failed program was:" >&5
7697sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 llvm_cv_link_use_r=no
7700fi
7701
Scott Michel96dcd2b2007-12-05 21:24:02 +00007702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007703 conftest$ac_exeext conftest.$ac_ext
7704 CFLAGS="$oldcflags"
7705 ac_ext=c
7706ac_cpp='$CPP $CPPFLAGS'
7707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710
7711
7712fi
7713{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7714echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7715if test "$llvm_cv_link_use_r" = yes ; then
7716
7717cat >>confdefs.h <<\_ACEOF
7718#define HAVE_LINK_R 1
7719_ACEOF
7720
7721 fi
7722
7723
7724
7725
7726{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7727echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7728if test "${ac_cv_c_const+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737
7738int
7739main ()
7740{
7741/* FIXME: Include the comments suggested by Paul. */
7742#ifndef __cplusplus
7743 /* Ultrix mips cc rejects this. */
7744 typedef int charset[2];
Scott Michel96dcd2b2007-12-05 21:24:02 +00007745 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00007746 /* SunOS 4.1.1 cc rejects this. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007747 char const *const *pcpcc;
7748 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007749 /* NEC SVR4.0.2 mips cc rejects this. */
7750 struct point {int x, y;};
7751 static struct point const zero = {0,0};
7752 /* AIX XL C 1.02.0.0 rejects this.
7753 It does not let you subtract one const X* pointer from another in
7754 an arm of an if-expression whose if-part is not a constant
7755 expression */
7756 const char *g = "string";
Scott Michel96dcd2b2007-12-05 21:24:02 +00007757 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007758 /* HPUX 7.0 cc rejects these. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007759 ++pcpcc;
7760 ppc = (char**) pcpcc;
7761 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007762 { /* SCO 3.2v4 cc rejects this. */
7763 char *t;
7764 char const *s = 0 ? (char *) 0 : (char const *) 0;
7765
7766 *t++ = 0;
7767 if (s) return 0;
7768 }
7769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7770 int x[] = {25, 17};
7771 const int *foo = &x[0];
7772 ++foo;
7773 }
7774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7775 typedef const int *iptr;
7776 iptr p = 0;
7777 ++p;
7778 }
7779 { /* AIX XL C 1.02.0.0 rejects this saying
7780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7781 struct s { int j; const int *ap[3]; };
7782 struct s *b; b->j = 5;
7783 }
7784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7785 const int foo = 10;
7786 if (!foo) return 0;
7787 }
Scott Michel96dcd2b2007-12-05 21:24:02 +00007788 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007789#endif
7790
7791 ;
7792 return 0;
7793}
7794_ACEOF
7795rm -f conftest.$ac_objext
7796if { (ac_try="$ac_compile"
7797case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800esac
7801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_compile") 2>conftest.er1
7803 ac_status=$?
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007808 (exit $ac_status); } && {
7809 test -z "$ac_c_werror_flag" ||
7810 test ! -s conftest.err
7811 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007812 ac_cv_c_const=yes
7813else
7814 echo "$as_me: failed program was:" >&5
7815sed 's/^/| /' conftest.$ac_ext >&5
7816
7817 ac_cv_c_const=no
7818fi
7819
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821fi
7822{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7823echo "${ECHO_T}$ac_cv_c_const" >&6; }
7824if test $ac_cv_c_const = no; then
7825
7826cat >>confdefs.h <<\_ACEOF
7827#define const
7828_ACEOF
7829
7830fi
7831
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007832
7833
7834
7835
7836
7837ac_header_dirent=no
7838for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7839 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00007840{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7841echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845 cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
7851#include <sys/types.h>
7852#include <$ac_hdr>
7853
7854int
7855main ()
7856{
7857if ((DIR *) 0)
7858return 0;
7859 ;
7860 return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00007864if { (ac_try="$ac_compile"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007880 eval "$as_ac_Header=yes"
7881else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
Reid Spencera773bd52006-08-04 18:18:08 +00007885 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007886fi
Reid Spencera773bd52006-08-04 18:18:08 +00007887
7888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007889fi
Reid Spencera773bd52006-08-04 18:18:08 +00007890ac_res=`eval echo '${'$as_ac_Header'}'`
7891 { echo "$as_me:$LINENO: result: $ac_res" >&5
7892echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007893if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7896_ACEOF
7897
7898ac_header_dirent=$ac_hdr; break
7899fi
7900
7901done
7902# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7903if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00007904 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7905echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007906if test "${ac_cv_search_opendir+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007910cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h. */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h. */
7916
Reid Spencera773bd52006-08-04 18:18:08 +00007917/* Override any GCC internal prototype to avoid an error.
7918 Use char because int might match the return type of a GCC
7919 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007920#ifdef __cplusplus
7921extern "C"
7922#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007923char opendir ();
7924int
7925main ()
7926{
Reid Spencera773bd52006-08-04 18:18:08 +00007927return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007928 ;
7929 return 0;
7930}
7931_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007932for ac_lib in '' dir; do
7933 if test -z "$ac_lib"; then
7934 ac_res="none required"
7935 else
7936 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00007938 fi
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940if { (ac_try="$ac_link"
7941case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944esac
7945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest$ac_exeext &&
7956 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007957 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007958else
7959 echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007962
7963fi
7964
Scott Michel96dcd2b2007-12-05 21:24:02 +00007965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007966 conftest$ac_exeext
7967 if test "${ac_cv_search_opendir+set}" = set; then
7968 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007969fi
John Criswell7a73b802003-06-30 21:59:07 +00007970done
Reid Spencera773bd52006-08-04 18:18:08 +00007971if test "${ac_cv_search_opendir+set}" = set; then
7972 :
7973else
7974 ac_cv_search_opendir=no
7975fi
7976rm conftest.$ac_ext
7977LIBS=$ac_func_search_save_LIBS
7978fi
7979{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7980echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7981ac_res=$ac_cv_search_opendir
7982if test "$ac_res" != no; then
7983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00007984
Reid Spencera773bd52006-08-04 18:18:08 +00007985fi
7986
7987else
7988 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7989echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7990if test "${ac_cv_search_opendir+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 ac_func_search_save_LIBS=$LIBS
7994cat >conftest.$ac_ext <<_ACEOF
7995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h. */
8000
8001/* Override any GCC internal prototype to avoid an error.
8002 Use char because int might match the return type of a GCC
8003 builtin and then its argument prototype would still apply. */
8004#ifdef __cplusplus
8005extern "C"
8006#endif
8007char opendir ();
8008int
8009main ()
8010{
8011return opendir ();
8012 ;
8013 return 0;
8014}
8015_ACEOF
8016for ac_lib in '' x; do
8017 if test -z "$ac_lib"; then
8018 ac_res="none required"
8019 else
8020 ac_res=-l$ac_lib
8021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8022 fi
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024if { (ac_try="$ac_link"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_link") 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest$ac_exeext &&
8040 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008041 ac_cv_search_opendir=$ac_res
8042else
8043 echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
8046
8047fi
8048
Scott Michel96dcd2b2007-12-05 21:24:02 +00008049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008050 conftest$ac_exeext
8051 if test "${ac_cv_search_opendir+set}" = set; then
8052 break
8053fi
8054done
8055if test "${ac_cv_search_opendir+set}" = set; then
8056 :
8057else
8058 ac_cv_search_opendir=no
8059fi
8060rm conftest.$ac_ext
8061LIBS=$ac_func_search_save_LIBS
8062fi
8063{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8064echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8065ac_res=$ac_cv_search_opendir
8066if test "$ac_res" != no; then
8067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8068
8069fi
8070
8071fi
John Criswell7a73b802003-06-30 21:59:07 +00008072
8073
8074for ac_header in dlfcn.h
8075do
8076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008081 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008082fi
Reid Spencera773bd52006-08-04 18:18:08 +00008083ac_res=`eval echo '${'$as_ac_Header'}'`
8084 { echo "$as_me:$LINENO: result: $ac_res" >&5
8085echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008086else
Brian Gaeke0a621332004-09-08 20:38:05 +00008087 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008088{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008090cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008096$ac_includes_default
8097#include <$ac_header>
8098_ACEOF
8099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008100if { (ac_try="$ac_compile"
8101case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104esac
8105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.$ac_objext; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008116 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008117else
8118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008119sed 's/^/| /' conftest.$ac_ext >&5
8120
Reid Spencera773bd52006-08-04 18:18:08 +00008121 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008122fi
Reid Spencera773bd52006-08-04 18:18:08 +00008123
8124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8126echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008127
8128# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008129{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008131cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h. */
8137#include <$ac_header>
8138_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008139if { (ac_try="$ac_cpp conftest.$ac_ext"
8140case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008151 (exit $ac_status); } >/dev/null && {
8152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008155 ac_header_preproc=yes
8156else
8157 echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_header_preproc=no
8161fi
Reid Spencera773bd52006-08-04 18:18:08 +00008162
Brian Gaeke0a621332004-09-08 20:38:05 +00008163rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8165echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008166
8167# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8169 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8174 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008175 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008176 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008189 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008190## ----------------------------------- ##
8191## Report this to llvmbugs@cs.uiuc.edu ##
8192## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008193_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008194 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008195 ;;
8196esac
Reid Spencera773bd52006-08-04 18:18:08 +00008197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008202 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008203fi
Reid Spencera773bd52006-08-04 18:18:08 +00008204ac_res=`eval echo '${'$as_ac_Header'}'`
8205 { echo "$as_me:$LINENO: result: $ac_res" >&5
8206echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008207
8208fi
John Criswell7a73b802003-06-30 21:59:07 +00008209if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212_ACEOF
8213
8214fi
8215
8216done
8217
Reid Spencera773bd52006-08-04 18:18:08 +00008218# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008219if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008220 enableval=$enable_ltdl_install;
8221fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008222
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008223
Duncan Sands1eff7042007-12-10 17:43:13 +00008224
8225
8226if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008227 INSTALL_LTDL_TRUE=
8228 INSTALL_LTDL_FALSE='#'
8229else
8230 INSTALL_LTDL_TRUE='#'
8231 INSTALL_LTDL_FALSE=
8232fi
8233
Duncan Sands1eff7042007-12-10 17:43:13 +00008234
8235
8236if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008237 CONVENIENCE_LTDL_TRUE=
8238 CONVENIENCE_LTDL_FALSE='#'
8239else
8240 CONVENIENCE_LTDL_TRUE='#'
8241 CONVENIENCE_LTDL_FALSE=
8242fi
8243
8244
Reid Spencera773bd52006-08-04 18:18:08 +00008245{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8246echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247library_names_spec=
8248libname_spec='lib$name'
8249soname_spec=
8250shrext_cmds=".so"
8251postinstall_cmds=
8252postuninstall_cmds=
8253finish_cmds=
8254finish_eval=
8255shlibpath_var=
8256shlibpath_overrides_runpath=unknown
8257version_type=none
8258dynamic_linker="$host_os ld.so"
8259sys_lib_dlsearch_path_spec="/lib /usr/lib"
8260if test "$GCC" = yes; then
8261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8262 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8263 # if the path contains ";" then we assume it to be the separator
8264 # otherwise default to the standard path separator (i.e. ":") - it is
8265 # assumed that no part of a normal pathname contains ";" but that should
8266 # okay in the real world where ";" in dirpaths is itself problematic.
8267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8268 else
8269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8270 fi
8271else
8272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8273fi
8274need_lib_prefix=unknown
8275hardcode_into_libs=no
8276
8277# when you set need_version to no, make sure it does not cause -set_version
8278# flags to be left without arguments
8279need_version=unknown
8280
8281case $host_os in
8282aix3*)
8283 version_type=linux
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8285 shlibpath_var=LIBPATH
8286
8287 # AIX 3 has no versioning support, so we append a major version to the name.
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 ;;
8290
8291aix4* | aix5*)
8292 version_type=linux
8293 need_lib_prefix=no
8294 need_version=no
8295 hardcode_into_libs=yes
8296 if test "$host_cpu" = ia64; then
8297 # AIX 5 supports IA64
8298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 else
8301 # With GCC up to 2.95.x, collect2 would create an import file
8302 # for dependence libraries. The import file would start with
8303 # the line `#! .'. This would cause the generated library to
8304 # depend on `.', always an invalid library. This was fixed in
8305 # development snapshots of GCC prior to 3.0.
8306 case $host_os in
8307 aix4 | aix4.[01] | aix4.[01].*)
8308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8309 echo ' yes '
8310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8311 :
8312 else
8313 can_build_shared=no
8314 fi
8315 ;;
8316 esac
8317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8318 # soname into executable. Probably we can add versioning support to
8319 # collect2, so additional links can be useful in future.
8320 if test "$aix_use_runtimelinking" = yes; then
8321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8322 # instead of lib<name>.a to let people know that these are not
8323 # typical AIX shared libraries.
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 else
8326 # We preserve .a as extension for shared libraries through AIX4.2
8327 # and later when we are not doing run time linking.
8328 library_names_spec='${libname}${release}.a $libname.a'
8329 soname_spec='${libname}${release}${shared_ext}$major'
8330 fi
8331 shlibpath_var=LIBPATH
8332 fi
8333 ;;
8334
8335amigaos*)
8336 library_names_spec='$libname.ixlibrary $libname.a'
8337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8338 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'
8339 ;;
8340
8341beos*)
8342 library_names_spec='${libname}${shared_ext}'
8343 dynamic_linker="$host_os ld.so"
8344 shlibpath_var=LIBRARY_PATH
8345 ;;
8346
8347bsdi[45]*)
8348 version_type=linux
8349 need_version=no
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8356 # the default ld.so.conf also contains /usr/contrib/lib and
8357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8358 # libtool to hard-code these into programs
8359 ;;
8360
8361cygwin* | mingw* | pw32*)
8362 version_type=windows
8363 shrext_cmds=".dll"
8364 need_version=no
8365 need_lib_prefix=no
8366
8367 case $GCC,$host_os in
8368 yes,cygwin* | yes,mingw* | yes,pw32*)
8369 library_names_spec='$libname.dll.a'
8370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8371 postinstall_cmds='base_file=`basename \${file}`~
8372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8373 dldir=$destdir/`dirname \$dlpath`~
8374 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008375 $install_prog $dir/$dlname \$dldir/$dlname~
8376 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8378 dlpath=$dir/\$dldll~
8379 $rm \$dlpath'
8380 shlibpath_overrides_runpath=yes
8381
8382 case $host_os in
8383 cygwin*)
8384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8387 ;;
8388 mingw*)
8389 # MinGW DLLs use traditional 'lib' prefix
8390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8393 # It is most probably a Windows format PATH printed by
8394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8395 # path with ; separators, and with drive letters. We can handle the
8396 # drive letters (cygwin fileutils understands them), so leave them,
8397 # especially as we might pass files found there to a mingw objdump,
8398 # which wouldn't understand a cygwinified path. Ahh.
8399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8400 else
8401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8402 fi
8403 ;;
8404 pw32*)
8405 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008406 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 +00008407 ;;
8408 esac
8409 ;;
8410
8411 *)
8412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8413 ;;
8414 esac
8415 dynamic_linker='Win32 ld.exe'
8416 # FIXME: first we should search . and the directory the executable is in
8417 shlibpath_var=PATH
8418 ;;
8419
8420darwin* | rhapsody*)
8421 dynamic_linker="$host_os dyld"
8422 version_type=darwin
8423 need_lib_prefix=no
8424 need_version=no
8425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8426 soname_spec='${libname}${release}${major}$shared_ext'
8427 shlibpath_overrides_runpath=yes
8428 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008429 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008430 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8431 if test "$GCC" = yes; then
8432 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"`
8433 else
8434 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8435 fi
8436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8437 ;;
8438
8439dgux*)
8440 version_type=linux
8441 need_lib_prefix=no
8442 need_version=no
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 ;;
8447
8448freebsd1*)
8449 dynamic_linker=no
8450 ;;
8451
8452kfreebsd*-gnu)
8453 version_type=linux
8454 need_lib_prefix=no
8455 need_version=no
8456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8457 soname_spec='${libname}${release}${shared_ext}$major'
8458 shlibpath_var=LD_LIBRARY_PATH
8459 shlibpath_overrides_runpath=no
8460 hardcode_into_libs=yes
8461 dynamic_linker='GNU ld.so'
8462 ;;
8463
Reid Spencera773bd52006-08-04 18:18:08 +00008464freebsd* | dragonfly*)
8465 # DragonFly does not have aout. When/if they implement a new
8466 # versioning mechanism, adjust this.
8467 if test -x /usr/bin/objformat; then
8468 objformat=`/usr/bin/objformat`
8469 else
8470 case $host_os in
8471 freebsd[123]*) objformat=aout ;;
8472 *) objformat=elf ;;
8473 esac
8474 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008475 version_type=freebsd-$objformat
8476 case $version_type in
8477 freebsd-elf*)
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8479 need_version=no
8480 need_lib_prefix=no
8481 ;;
8482 freebsd-*)
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8484 need_version=yes
8485 ;;
8486 esac
8487 shlibpath_var=LD_LIBRARY_PATH
8488 case $host_os in
8489 freebsd2*)
8490 shlibpath_overrides_runpath=yes
8491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008492 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008493 shlibpath_overrides_runpath=yes
8494 hardcode_into_libs=yes
8495 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008498 shlibpath_overrides_runpath=no
8499 hardcode_into_libs=yes
8500 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008501 freebsd*) # from 4.6 on
8502 shlibpath_overrides_runpath=yes
8503 hardcode_into_libs=yes
8504 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008505 esac
8506 ;;
8507
8508gnu*)
8509 version_type=linux
8510 need_lib_prefix=no
8511 need_version=no
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8513 soname_spec='${libname}${release}${shared_ext}$major'
8514 shlibpath_var=LD_LIBRARY_PATH
8515 hardcode_into_libs=yes
8516 ;;
8517
8518hpux9* | hpux10* | hpux11*)
8519 # Give a soname corresponding to the major version so that dld.sl refuses to
8520 # link against other versions.
8521 version_type=sunos
8522 need_lib_prefix=no
8523 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008524 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008525 ia64*)
8526 shrext_cmds='.so'
8527 hardcode_into_libs=yes
8528 dynamic_linker="$host_os dld.so"
8529 shlibpath_var=LD_LIBRARY_PATH
8530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 if test "X$HPUX_IA64_MODE" = X32; then
8534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8535 else
8536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8537 fi
8538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8539 ;;
8540 hppa*64*)
8541 shrext_cmds='.sl'
8542 hardcode_into_libs=yes
8543 dynamic_linker="$host_os dld.sl"
8544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8550 ;;
8551 *)
8552 shrext_cmds='.sl'
8553 dynamic_linker="$host_os dld.sl"
8554 shlibpath_var=SHLIB_PATH
8555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 soname_spec='${libname}${release}${shared_ext}$major'
8558 ;;
8559 esac
8560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8561 postinstall_cmds='chmod 555 $lib'
8562 ;;
8563
Reid Spencera773bd52006-08-04 18:18:08 +00008564interix3*)
8565 version_type=linux
8566 need_lib_prefix=no
8567 need_version=no
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8571 shlibpath_var=LD_LIBRARY_PATH
8572 shlibpath_overrides_runpath=no
8573 hardcode_into_libs=yes
8574 ;;
8575
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008576irix5* | irix6* | nonstopux*)
8577 case $host_os in
8578 nonstopux*) version_type=nonstopux ;;
8579 *)
8580 if test "$lt_cv_prog_gnu_ld" = yes; then
8581 version_type=linux
8582 else
8583 version_type=irix
8584 fi ;;
8585 esac
8586 need_lib_prefix=no
8587 need_version=no
8588 soname_spec='${libname}${release}${shared_ext}$major'
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8590 case $host_os in
8591 irix5* | nonstopux*)
8592 libsuff= shlibsuff=
8593 ;;
8594 *)
8595 case $LD in # libtool.m4 will add one of these switches to LD
8596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8597 libsuff= shlibsuff= libmagic=32-bit;;
8598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8599 libsuff=32 shlibsuff=N32 libmagic=N32;;
8600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8602 *) libsuff= shlibsuff= libmagic=never-match;;
8603 esac
8604 ;;
8605 esac
8606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8607 shlibpath_overrides_runpath=no
8608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8610 hardcode_into_libs=yes
8611 ;;
8612
8613# No shared lib support for Linux oldld, aout, or coff.
8614linux*oldld* | linux*aout* | linux*coff*)
8615 dynamic_linker=no
8616 ;;
8617
8618# This must be Linux ELF.
8619linux*)
8620 version_type=linux
8621 need_lib_prefix=no
8622 need_version=no
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8626 shlibpath_var=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath=no
8628 # This implies no fast_install, which is unacceptable.
8629 # Some rework will be needed to allow for fast_install
8630 # before this can be enabled.
8631 hardcode_into_libs=yes
8632
8633 # Append ld.so.conf contents to the search path
8634 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008635 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 +00008636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8637 fi
8638
8639 # We used to test for /lib/ld.so.1 and disable shared libraries on
8640 # powerpc, because MkLinux only supported shared libraries with the
8641 # GNU dynamic linker. Since this was broken with cross compilers,
8642 # most powerpc-linux boxes support dynamic linking these days and
8643 # people can always --disable-shared, the test was removed, and we
8644 # assume the GNU/Linux dynamic linker is in use.
8645 dynamic_linker='GNU/Linux ld.so'
8646 ;;
8647
8648knetbsd*-gnu)
8649 version_type=linux
8650 need_lib_prefix=no
8651 need_version=no
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 shlibpath_overrides_runpath=no
8656 hardcode_into_libs=yes
8657 dynamic_linker='GNU ld.so'
8658 ;;
8659
8660netbsd*)
8661 version_type=sunos
8662 need_lib_prefix=no
8663 need_version=no
8664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8667 dynamic_linker='NetBSD (a.out) ld.so'
8668 else
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 dynamic_linker='NetBSD ld.elf_so'
8672 fi
8673 shlibpath_var=LD_LIBRARY_PATH
8674 shlibpath_overrides_runpath=yes
8675 hardcode_into_libs=yes
8676 ;;
8677
8678newsos6)
8679 version_type=linux
8680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 shlibpath_overrides_runpath=yes
8683 ;;
8684
8685nto-qnx*)
8686 version_type=linux
8687 need_lib_prefix=no
8688 need_version=no
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 shlibpath_var=LD_LIBRARY_PATH
8692 shlibpath_overrides_runpath=yes
8693 ;;
8694
8695openbsd*)
8696 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008697 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8700 case $host_os in
8701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8702 *) need_version=no ;;
8703 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8706 shlibpath_var=LD_LIBRARY_PATH
8707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8708 case $host_os in
8709 openbsd2.[89] | openbsd2.[89].*)
8710 shlibpath_overrides_runpath=no
8711 ;;
8712 *)
8713 shlibpath_overrides_runpath=yes
8714 ;;
8715 esac
8716 else
8717 shlibpath_overrides_runpath=yes
8718 fi
8719 ;;
8720
8721os2*)
8722 libname_spec='$name'
8723 shrext_cmds=".dll"
8724 need_lib_prefix=no
8725 library_names_spec='$libname${shared_ext} $libname.a'
8726 dynamic_linker='OS/2 ld.exe'
8727 shlibpath_var=LIBPATH
8728 ;;
8729
8730osf3* | osf4* | osf5*)
8731 version_type=osf
8732 need_lib_prefix=no
8733 need_version=no
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8736 shlibpath_var=LD_LIBRARY_PATH
8737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8739 ;;
8740
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008741solaris*)
8742 version_type=linux
8743 need_lib_prefix=no
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=yes
8749 hardcode_into_libs=yes
8750 # ldd complains unless libraries are executable
8751 postinstall_cmds='chmod +x $lib'
8752 ;;
8753
8754sunos4*)
8755 version_type=sunos
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8760 if test "$with_gnu_ld" = yes; then
8761 need_lib_prefix=no
8762 fi
8763 need_version=yes
8764 ;;
8765
Reid Spencera773bd52006-08-04 18:18:08 +00008766sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767 version_type=linux
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 case $host_vendor in
8772 sni)
8773 shlibpath_overrides_runpath=no
8774 need_lib_prefix=no
8775 export_dynamic_flag_spec='${wl}-Blargedynsym'
8776 runpath_var=LD_RUN_PATH
8777 ;;
8778 siemens)
8779 need_lib_prefix=no
8780 ;;
8781 motorola)
8782 need_lib_prefix=no
8783 need_version=no
8784 shlibpath_overrides_runpath=no
8785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8786 ;;
8787 esac
8788 ;;
8789
8790sysv4*MP*)
8791 if test -d /usr/nec ;then
8792 version_type=linux
8793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8794 soname_spec='$libname${shared_ext}.$major'
8795 shlibpath_var=LD_LIBRARY_PATH
8796 fi
8797 ;;
8798
Reid Spencera773bd52006-08-04 18:18:08 +00008799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8800 version_type=freebsd-elf
8801 need_lib_prefix=no
8802 need_version=no
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 shlibpath_var=LD_LIBRARY_PATH
8806 hardcode_into_libs=yes
8807 if test "$with_gnu_ld" = yes; then
8808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8809 shlibpath_overrides_runpath=no
8810 else
8811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8812 shlibpath_overrides_runpath=yes
8813 case $host_os in
8814 sco3.2v5*)
8815 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8816 ;;
8817 esac
8818 fi
8819 sys_lib_dlsearch_path_spec='/usr/lib'
8820 ;;
8821
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822uts4*)
8823 version_type=linux
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 ;;
8828
8829*)
8830 dynamic_linker=no
8831 ;;
8832esac
Reid Spencera773bd52006-08-04 18:18:08 +00008833{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8834echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008835test "$dynamic_linker" = no && can_build_shared=no
8836
Reid Spencera773bd52006-08-04 18:18:08 +00008837variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8838if test "$GCC" = yes; then
8839 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8840fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841
Reid Spencera773bd52006-08-04 18:18:08 +00008842
8843{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8844echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008845if test "${libltdl_cv_shlibext+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848
8849module=yes
8850eval libltdl_cv_shlibext=$shrext_cmds
8851
8852fi
Reid Spencera773bd52006-08-04 18:18:08 +00008853{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8854echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008855if test -n "$libltdl_cv_shlibext"; then
8856
8857cat >>confdefs.h <<_ACEOF
8858#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8859_ACEOF
8860
8861fi
8862
8863
Reid Spencera773bd52006-08-04 18:18:08 +00008864{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8865echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866if test "${libltdl_cv_shlibpath_var+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869 libltdl_cv_shlibpath_var="$shlibpath_var"
8870fi
Reid Spencera773bd52006-08-04 18:18:08 +00008871{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8872echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873if test -n "$libltdl_cv_shlibpath_var"; then
8874
8875cat >>confdefs.h <<_ACEOF
8876#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8877_ACEOF
8878
8879fi
8880
8881
Reid Spencera773bd52006-08-04 18:18:08 +00008882{ echo "$as_me:$LINENO: checking for the default library search path" >&5
8883echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008884if test "${libltdl_cv_sys_search_path+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8888fi
Reid Spencera773bd52006-08-04 18:18:08 +00008889{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8890echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891if test -n "$libltdl_cv_sys_search_path"; then
8892 sys_search_path=
8893 for dir in $libltdl_cv_sys_search_path; do
8894 if test -z "$sys_search_path"; then
8895 sys_search_path="$dir"
8896 else
8897 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8898 fi
8899 done
8900
8901cat >>confdefs.h <<_ACEOF
8902#define LTDL_SYSSEARCHPATH "$sys_search_path"
8903_ACEOF
8904
8905fi
8906
Reid Spencera773bd52006-08-04 18:18:08 +00008907{ echo "$as_me:$LINENO: checking for objdir" >&5
8908echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008909if test "${libltdl_cv_objdir+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911else
8912 libltdl_cv_objdir="$objdir"
8913 if test -n "$objdir"; then
8914 :
8915 else
8916 rm -f .libs 2>/dev/null
8917 mkdir .libs 2>/dev/null
8918 if test -d .libs; then
8919 libltdl_cv_objdir=.libs
8920 else
8921 # MS-DOS does not allow filenames that begin with a dot.
8922 libltdl_cv_objdir=_libs
8923 fi
8924 rmdir .libs 2>/dev/null
8925 fi
8926
8927fi
Reid Spencera773bd52006-08-04 18:18:08 +00008928{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8929echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008930
8931cat >>confdefs.h <<_ACEOF
8932#define LTDL_OBJDIR "$libltdl_cv_objdir/"
8933_ACEOF
8934
8935
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008936
8937
8938
8939
8940# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00008941{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8942echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008943if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946
8947# These are sane defaults that work on at least a few old systems.
8948# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8949
8950# Character class describing NM global symbol codes.
8951symcode='[BCDEGRST]'
8952
8953# Regexp to match symbols that can be accessed directly from C.
8954sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8955
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956# Transform an extracted symbol line into a proper C declaration
8957lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8958
8959# Transform an extracted symbol line into symbol name and symbol address
8960lt_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'"
8961
8962# Define system-specific variables.
8963case $host_os in
8964aix*)
8965 symcode='[BCDT]'
8966 ;;
8967cygwin* | mingw* | pw32*)
8968 symcode='[ABCDGISTW]'
8969 ;;
8970hpux*) # Its linker distinguishes data from code symbols
8971 if test "$host_cpu" = ia64; then
8972 symcode='[ABCDEGRST]'
8973 fi
8974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8975 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'"
8976 ;;
8977linux*)
8978 if test "$host_cpu" = ia64; then
8979 symcode='[ABCDGIRSTW]'
8980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8981 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'"
8982 fi
8983 ;;
8984irix* | nonstopux*)
8985 symcode='[BCDEGRST]'
8986 ;;
8987osf*)
8988 symcode='[BCDEGQRST]'
8989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008990solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008991 symcode='[BDRT]'
8992 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008993sco3.2v5*)
8994 symcode='[DT]'
8995 ;;
8996sysv4.2uw2*)
8997 symcode='[DT]'
8998 ;;
8999sysv5* | sco5v6* | unixware* | OpenUNIX*)
9000 symcode='[ABDT]'
9001 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009002sysv4)
9003 symcode='[DFNSTU]'
9004 ;;
9005esac
9006
9007# Handle CRLF in mingw tool chain
9008opt_cr=
9009case $build_os in
9010mingw*)
9011 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9012 ;;
9013esac
9014
9015# If we're using GNU nm, then use its standard symbol codes.
9016case `$NM -V 2>&1` in
9017*GNU* | *'with BFD'*)
9018 symcode='[ABCDGIRSTW]' ;;
9019esac
9020
9021# Try without a prefix undercore, then with it.
9022for ac_symprfx in "" "_"; do
9023
Reid Spencera773bd52006-08-04 18:18:08 +00009024 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9025 symxfrm="\\1 $ac_symprfx\\2 \\2"
9026
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009027 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009028 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 +00009029
9030 # Check to see that the pipe works correctly.
9031 pipe_works=no
9032
9033 rm -f conftest*
9034 cat > conftest.$ac_ext <<EOF
9035#ifdef __cplusplus
9036extern "C" {
9037#endif
9038char nm_test_var;
9039void nm_test_func(){}
9040#ifdef __cplusplus
9041}
9042#endif
9043int main(){nm_test_var='a';nm_test_func();return(0);}
9044EOF
9045
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; then
9051 # Now try to grab the symbols.
9052 nlist=conftest.nm
9053 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9054 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && test -s "$nlist"; then
9058 # Try sorting and uniquifying the output.
9059 if sort "$nlist" | uniq > "$nlist"T; then
9060 mv -f "$nlist"T "$nlist"
9061 else
9062 rm -f "$nlist"T
9063 fi
9064
9065 # Make sure that we snagged all the symbols we need.
9066 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9067 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9068 cat <<EOF > conftest.$ac_ext
9069#ifdef __cplusplus
9070extern "C" {
9071#endif
9072
9073EOF
9074 # Now generate the symbol file.
9075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9076
9077 cat <<EOF >> conftest.$ac_ext
9078#if defined (__STDC__) && __STDC__
9079# define lt_ptr_t void *
9080#else
9081# define lt_ptr_t char *
9082# define const
9083#endif
9084
9085/* The mapping between symbol names and symbols. */
9086const struct {
9087 const char *name;
9088 lt_ptr_t address;
9089}
9090lt_preloaded_symbols[] =
9091{
9092EOF
9093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9094 cat <<\EOF >> conftest.$ac_ext
9095 {0, (lt_ptr_t) 0}
9096};
9097
9098#ifdef __cplusplus
9099}
9100#endif
9101EOF
9102 # Now try linking the two files.
9103 mv conftest.$ac_objext conftstm.$ac_objext
9104 lt_save_LIBS="$LIBS"
9105 lt_save_CFLAGS="$CFLAGS"
9106 LIBS="conftstm.$ac_objext"
9107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9113 pipe_works=yes
9114 fi
9115 LIBS="$lt_save_LIBS"
9116 CFLAGS="$lt_save_CFLAGS"
9117 else
9118 echo "cannot find nm_test_func in $nlist" >&5
9119 fi
9120 else
9121 echo "cannot find nm_test_var in $nlist" >&5
9122 fi
9123 else
9124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9125 fi
9126 else
9127 echo "$progname: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 fi
9130 rm -f conftest* conftst*
9131
9132 # Do not use the global_symbol_pipe unless it works.
9133 if test "$pipe_works" = yes; then
9134 break
9135 else
9136 lt_cv_sys_global_symbol_pipe=
9137 fi
9138done
9139
9140fi
9141
9142if test -z "$lt_cv_sys_global_symbol_pipe"; then
9143 lt_cv_sys_global_symbol_to_cdecl=
9144fi
9145if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009146 { echo "$as_me:$LINENO: result: failed" >&5
9147echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009148else
Reid Spencera773bd52006-08-04 18:18:08 +00009149 { echo "$as_me:$LINENO: result: ok" >&5
9150echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151fi
9152
9153
Reid Spencera773bd52006-08-04 18:18:08 +00009154{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9155echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009156if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158else
9159 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9160 libltdl_cv_preloaded_symbols=yes
9161 else
9162 libltdl_cv_preloaded_symbols=no
9163 fi
9164
9165fi
Reid Spencera773bd52006-08-04 18:18:08 +00009166{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9167echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009168if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9169
9170cat >>confdefs.h <<\_ACEOF
9171#define HAVE_PRELOADED_SYMBOLS 1
9172_ACEOF
9173
9174fi
9175
9176LIBADD_DL=
9177
9178ac_ext=c
9179ac_cpp='$CPP $CPPFLAGS'
9180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9182ac_compiler_gnu=$ac_cv_c_compiler_gnu
9183
9184
Reid Spencera773bd52006-08-04 18:18:08 +00009185{ echo "$as_me:$LINENO: checking for shl_load" >&5
9186echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009187if test "${ac_cv_func_shl_load+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
9196/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9198#define shl_load innocuous_shl_load
9199
9200/* System header to define __stub macros and hopefully few prototypes,
9201 which can conflict with char shl_load (); below.
9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 <limits.h> exists even on freestanding compilers. */
9204
9205#ifdef __STDC__
9206# include <limits.h>
9207#else
9208# include <assert.h>
9209#endif
9210
9211#undef shl_load
9212
Reid Spencera773bd52006-08-04 18:18:08 +00009213/* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216#ifdef __cplusplus
9217extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219char shl_load ();
9220/* The GNU C library defines this for functions which it implements
9221 to always fail with ENOSYS. Some functions are actually named
9222 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009223#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225#endif
9226
9227int
9228main ()
9229{
Reid Spencera773bd52006-08-04 18:18:08 +00009230return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231 ;
9232 return 0;
9233}
9234_ACEOF
9235rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009236if { (ac_try="$ac_link"
9237case "(($ac_try" in
9238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9240esac
9241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest$ac_exeext &&
9252 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253 ac_cv_func_shl_load=yes
9254else
9255 echo "$as_me: failed program was:" >&5
9256sed 's/^/| /' conftest.$ac_ext >&5
9257
Reid Spencera773bd52006-08-04 18:18:08 +00009258 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259fi
Reid Spencera773bd52006-08-04 18:18:08 +00009260
Scott Michel96dcd2b2007-12-05 21:24:02 +00009261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262 conftest$ac_exeext conftest.$ac_ext
9263fi
Reid Spencera773bd52006-08-04 18:18:08 +00009264{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9265echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009266if test $ac_cv_func_shl_load = yes; then
9267
9268cat >>confdefs.h <<\_ACEOF
9269#define HAVE_SHL_LOAD 1
9270_ACEOF
9271
9272else
Reid Spencera773bd52006-08-04 18:18:08 +00009273 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9274echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278 ac_check_lib_save_LIBS=$LIBS
9279LIBS="-ldld $LIBS"
9280cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h. */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h. */
9286
Reid Spencera773bd52006-08-04 18:18:08 +00009287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290#ifdef __cplusplus
9291extern "C"
9292#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293char shl_load ();
9294int
9295main ()
9296{
Reid Spencera773bd52006-08-04 18:18:08 +00009297return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009298 ;
9299 return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009303if { (ac_try="$ac_link"
9304case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307esac
9308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest$ac_exeext &&
9319 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320 ac_cv_lib_dld_shl_load=yes
9321else
9322 echo "$as_me: failed program was:" >&5
9323sed 's/^/| /' conftest.$ac_ext >&5
9324
Reid Spencera773bd52006-08-04 18:18:08 +00009325 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326fi
Reid Spencera773bd52006-08-04 18:18:08 +00009327
Scott Michel96dcd2b2007-12-05 21:24:02 +00009328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329 conftest$ac_exeext conftest.$ac_ext
9330LIBS=$ac_check_lib_save_LIBS
9331fi
Reid Spencera773bd52006-08-04 18:18:08 +00009332{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9333echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334if test $ac_cv_lib_dld_shl_load = yes; then
9335
9336cat >>confdefs.h <<\_ACEOF
9337#define HAVE_SHL_LOAD 1
9338_ACEOF
9339
9340 LIBADD_DL="$LIBADD_DL -ldld"
9341else
Reid Spencera773bd52006-08-04 18:18:08 +00009342 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9343echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346else
9347 ac_check_lib_save_LIBS=$LIBS
9348LIBS="-ldl $LIBS"
9349cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355
Reid Spencera773bd52006-08-04 18:18:08 +00009356/* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359#ifdef __cplusplus
9360extern "C"
9361#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362char dlopen ();
9363int
9364main ()
9365{
Reid Spencera773bd52006-08-04 18:18:08 +00009366return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367 ;
9368 return 0;
9369}
9370_ACEOF
9371rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009372if { (ac_try="$ac_link"
9373case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389 ac_cv_lib_dl_dlopen=yes
9390else
9391 echo "$as_me: failed program was:" >&5
9392sed 's/^/| /' conftest.$ac_ext >&5
9393
Reid Spencera773bd52006-08-04 18:18:08 +00009394 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395fi
Reid Spencera773bd52006-08-04 18:18:08 +00009396
Scott Michel96dcd2b2007-12-05 21:24:02 +00009397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398 conftest$ac_exeext conftest.$ac_ext
9399LIBS=$ac_check_lib_save_LIBS
9400fi
Reid Spencera773bd52006-08-04 18:18:08 +00009401{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9402echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403if test $ac_cv_lib_dl_dlopen = yes; then
9404
9405cat >>confdefs.h <<\_ACEOF
9406#define HAVE_LIBDL 1
9407_ACEOF
9408
9409 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9410else
9411 cat >conftest.$ac_ext <<_ACEOF
9412/* confdefs.h. */
9413_ACEOF
9414cat confdefs.h >>conftest.$ac_ext
9415cat >>conftest.$ac_ext <<_ACEOF
9416/* end confdefs.h. */
9417#if HAVE_DLFCN_H
9418# include <dlfcn.h>
9419#endif
9420
9421int
9422main ()
9423{
9424dlopen(0, 0);
9425 ;
9426 return 0;
9427}
9428_ACEOF
9429rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009430if { (ac_try="$ac_link"
9431case "(($ac_try" in
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9434esac
9435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009442 (exit $ac_status); } && {
9443 test -z "$ac_c_werror_flag" ||
9444 test ! -s conftest.err
9445 } && test -s conftest$ac_exeext &&
9446 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447
9448cat >>confdefs.h <<\_ACEOF
9449#define HAVE_LIBDL 1
9450_ACEOF
9451 libltdl_cv_func_dlopen="yes"
9452else
9453 echo "$as_me: failed program was:" >&5
9454sed 's/^/| /' conftest.$ac_ext >&5
9455
Reid Spencera773bd52006-08-04 18:18:08 +00009456 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9457echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009458if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461 ac_check_lib_save_LIBS=$LIBS
9462LIBS="-lsvld $LIBS"
9463cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469
Reid Spencera773bd52006-08-04 18:18:08 +00009470/* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473#ifdef __cplusplus
9474extern "C"
9475#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009476char dlopen ();
9477int
9478main ()
9479{
Reid Spencera773bd52006-08-04 18:18:08 +00009480return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481 ;
9482 return 0;
9483}
9484_ACEOF
9485rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009486if { (ac_try="$ac_link"
9487case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest$ac_exeext &&
9502 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503 ac_cv_lib_svld_dlopen=yes
9504else
9505 echo "$as_me: failed program was:" >&5
9506sed 's/^/| /' conftest.$ac_ext >&5
9507
Reid Spencera773bd52006-08-04 18:18:08 +00009508 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009509fi
Reid Spencera773bd52006-08-04 18:18:08 +00009510
Scott Michel96dcd2b2007-12-05 21:24:02 +00009511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 conftest$ac_exeext conftest.$ac_ext
9513LIBS=$ac_check_lib_save_LIBS
9514fi
Reid Spencera773bd52006-08-04 18:18:08 +00009515{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9516echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517if test $ac_cv_lib_svld_dlopen = yes; then
9518
9519cat >>confdefs.h <<\_ACEOF
9520#define HAVE_LIBDL 1
9521_ACEOF
9522
9523 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9524else
Reid Spencera773bd52006-08-04 18:18:08 +00009525 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9526echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 ac_check_lib_save_LIBS=$LIBS
9531LIBS="-ldld $LIBS"
9532cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h. */
9538
Reid Spencera773bd52006-08-04 18:18:08 +00009539/* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542#ifdef __cplusplus
9543extern "C"
9544#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545char dld_link ();
9546int
9547main ()
9548{
Reid Spencera773bd52006-08-04 18:18:08 +00009549return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550 ;
9551 return 0;
9552}
9553_ACEOF
9554rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009555if { (ac_try="$ac_link"
9556case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
9560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572 ac_cv_lib_dld_dld_link=yes
9573else
9574 echo "$as_me: failed program was:" >&5
9575sed 's/^/| /' conftest.$ac_ext >&5
9576
Reid Spencera773bd52006-08-04 18:18:08 +00009577 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009578fi
Reid Spencera773bd52006-08-04 18:18:08 +00009579
Scott Michel96dcd2b2007-12-05 21:24:02 +00009580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581 conftest$ac_exeext conftest.$ac_ext
9582LIBS=$ac_check_lib_save_LIBS
9583fi
Reid Spencera773bd52006-08-04 18:18:08 +00009584{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9585echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586if test $ac_cv_lib_dld_dld_link = yes; then
9587
9588cat >>confdefs.h <<\_ACEOF
9589#define HAVE_DLD 1
9590_ACEOF
9591
9592 LIBADD_DL="$LIBADD_DL -ldld"
9593else
Reid Spencera773bd52006-08-04 18:18:08 +00009594 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9595echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607#define _dyld_func_lookup innocuous__dyld_func_lookup
9608
9609/* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char _dyld_func_lookup (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9613
9614#ifdef __STDC__
9615# include <limits.h>
9616#else
9617# include <assert.h>
9618#endif
9619
9620#undef _dyld_func_lookup
9621
Reid Spencera773bd52006-08-04 18:18:08 +00009622/* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625#ifdef __cplusplus
9626extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628char _dyld_func_lookup ();
9629/* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009632#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634#endif
9635
9636int
9637main ()
9638{
Reid Spencera773bd52006-08-04 18:18:08 +00009639return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009640 ;
9641 return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009645if { (ac_try="$ac_link"
9646case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext &&
9661 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662 ac_cv_func__dyld_func_lookup=yes
9663else
9664 echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
Reid Spencera773bd52006-08-04 18:18:08 +00009667 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668fi
Reid Spencera773bd52006-08-04 18:18:08 +00009669
Scott Michel96dcd2b2007-12-05 21:24:02 +00009670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009671 conftest$ac_exeext conftest.$ac_ext
9672fi
Reid Spencera773bd52006-08-04 18:18:08 +00009673{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9674echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675if test $ac_cv_func__dyld_func_lookup = yes; then
9676
9677cat >>confdefs.h <<\_ACEOF
9678#define HAVE_DYLD 1
9679_ACEOF
9680
9681fi
9682
9683
9684fi
9685
9686
9687fi
9688
9689
9690fi
Reid Spencera773bd52006-08-04 18:18:08 +00009691
Scott Michel96dcd2b2007-12-05 21:24:02 +00009692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693 conftest$ac_exeext conftest.$ac_ext
9694
9695fi
9696
9697
9698fi
9699
9700
9701fi
9702
9703
9704if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9705then
9706 lt_save_LIBS="$LIBS"
9707 LIBS="$LIBS $LIBADD_DL"
9708
9709for ac_func in dlerror
9710do
9711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h. */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h. */
9723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9725#define $ac_func innocuous_$ac_func
9726
9727/* System header to define __stub macros and hopefully few prototypes,
9728 which can conflict with char $ac_func (); below.
9729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9730 <limits.h> exists even on freestanding compilers. */
9731
9732#ifdef __STDC__
9733# include <limits.h>
9734#else
9735# include <assert.h>
9736#endif
9737
9738#undef $ac_func
9739
Reid Spencera773bd52006-08-04 18:18:08 +00009740/* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743#ifdef __cplusplus
9744extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746char $ac_func ();
9747/* The GNU C library defines this for functions which it implements
9748 to always fail with ENOSYS. Some functions are actually named
9749 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009750#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752#endif
9753
9754int
9755main ()
9756{
Reid Spencera773bd52006-08-04 18:18:08 +00009757return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758 ;
9759 return 0;
9760}
9761_ACEOF
9762rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009763if { (ac_try="$ac_link"
9764case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767esac
9768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest$ac_exeext &&
9779 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780 eval "$as_ac_var=yes"
9781else
9782 echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
Reid Spencera773bd52006-08-04 18:18:08 +00009785 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786fi
Reid Spencera773bd52006-08-04 18:18:08 +00009787
Scott Michel96dcd2b2007-12-05 21:24:02 +00009788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789 conftest$ac_exeext conftest.$ac_ext
9790fi
Reid Spencera773bd52006-08-04 18:18:08 +00009791ac_res=`eval echo '${'$as_ac_var'}'`
9792 { echo "$as_me:$LINENO: result: $ac_res" >&5
9793echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794if test `eval echo '${'$as_ac_var'}'` = yes; then
9795 cat >>confdefs.h <<_ACEOF
9796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9797_ACEOF
9798
9799fi
9800done
9801
9802 LIBS="$lt_save_LIBS"
9803fi
9804ac_ext=c
9805ac_cpp='$CPP $CPPFLAGS'
9806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808ac_compiler_gnu=$ac_cv_c_compiler_gnu
9809
9810
9811
Reid Spencera773bd52006-08-04 18:18:08 +00009812{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9813echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817 ac_cv_sys_symbol_underscore=no
9818 cat > conftest.$ac_ext <<EOF
9819void nm_test_func(){}
9820int main(){nm_test_func;return 0;}
9821EOF
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; then
9827 # Now try to grab the symbols.
9828 ac_nlist=conftest.nm
9829 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9830 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && test -s "$ac_nlist"; then
9834 # See whether the symbols have a leading underscore.
9835 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9836 ac_cv_sys_symbol_underscore=yes
9837 else
9838 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9839 :
9840 else
9841 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9842 fi
9843 fi
9844 else
9845 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9846 fi
9847 else
9848 echo "configure: failed program was:" >&5
9849 cat conftest.c >&5
9850 fi
9851 rm -rf conftest*
9852
9853fi
Reid Spencera773bd52006-08-04 18:18:08 +00009854{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9855echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856
9857
9858if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9859 if test x"$libltdl_cv_func_dlopen" = xyes ||
9860 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +00009861 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9862echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863if test "${libltdl_cv_need_uscore+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 libltdl_cv_need_uscore=unknown
9867 save_LIBS="$LIBS"
9868 LIBS="$LIBS $LIBADD_DL"
9869 if test "$cross_compiling" = yes; then :
9870 libltdl_cv_need_uscore=cross
9871else
9872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9873 lt_status=$lt_dlunknown
9874 cat > conftest.$ac_ext <<EOF
Duncan Sands67f1c492007-12-12 23:03:45 +00009875#line 9874 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876#include "confdefs.h"
9877
9878#if HAVE_DLFCN_H
9879#include <dlfcn.h>
9880#endif
9881
9882#include <stdio.h>
9883
9884#ifdef RTLD_GLOBAL
9885# define LT_DLGLOBAL RTLD_GLOBAL
9886#else
9887# ifdef DL_GLOBAL
9888# define LT_DLGLOBAL DL_GLOBAL
9889# else
9890# define LT_DLGLOBAL 0
9891# endif
9892#endif
9893
9894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9895 find out it does not work in some platform. */
9896#ifndef LT_DLLAZY_OR_NOW
9897# ifdef RTLD_LAZY
9898# define LT_DLLAZY_OR_NOW RTLD_LAZY
9899# else
9900# ifdef DL_LAZY
9901# define LT_DLLAZY_OR_NOW DL_LAZY
9902# else
9903# ifdef RTLD_NOW
9904# define LT_DLLAZY_OR_NOW RTLD_NOW
9905# else
9906# ifdef DL_NOW
9907# define LT_DLLAZY_OR_NOW DL_NOW
9908# else
9909# define LT_DLLAZY_OR_NOW 0
9910# endif
9911# endif
9912# endif
9913# endif
9914#endif
9915
9916#ifdef __cplusplus
9917extern "C" void exit (int);
9918#endif
9919
9920void fnord() { int i=42;}
9921int main ()
9922{
9923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9924 int status = $lt_dlunknown;
9925
9926 if (self)
9927 {
9928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9930 /* dlclose (self); */
9931 }
Reid Spencera773bd52006-08-04 18:18:08 +00009932 else
9933 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934
9935 exit (status);
9936}
9937EOF
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +00009943 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 lt_status=$?
9945 case x$lt_status in
9946 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9947 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009948 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949 esac
9950 else :
9951 # compilation failed
9952
9953 fi
9954fi
9955rm -fr conftest*
9956
9957 LIBS="$save_LIBS"
9958
9959fi
Reid Spencera773bd52006-08-04 18:18:08 +00009960{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9961echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962 fi
9963fi
9964
9965if test x"$libltdl_cv_need_uscore" = xyes; then
9966
9967cat >>confdefs.h <<\_ACEOF
9968#define NEED_USCORE 1
9969_ACEOF
9970
9971fi
9972
9973
Reid Spencera773bd52006-08-04 18:18:08 +00009974{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9975echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 # PORTME does your system automatically load deplibs for dlopen?
9980 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9981 # For now, we just catch OSes we know something about -- in the
9982 # future, we'll try test this programmatically.
9983 libltdl_cv_sys_dlopen_deplibs=unknown
9984 case "$host_os" in
9985 aix3*|aix4.1.*|aix4.2.*)
9986 # Unknown whether this is true for these versions of AIX, but
9987 # we want this `case' here to explicitly catch those versions.
9988 libltdl_cv_sys_dlopen_deplibs=unknown
9989 ;;
9990 aix[45]*)
9991 libltdl_cv_sys_dlopen_deplibs=yes
9992 ;;
9993 darwin*)
9994 # Assuming the user has installed a libdl from somewhere, this is true
9995 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9996 libltdl_cv_sys_dlopen_deplibs=yes
9997 ;;
9998 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9999 # GNU and its variants, using gnu ld.so (Glibc)
10000 libltdl_cv_sys_dlopen_deplibs=yes
10001 ;;
10002 hpux10*|hpux11*)
10003 libltdl_cv_sys_dlopen_deplibs=yes
10004 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010005 interix*)
10006 libltdl_cv_sys_dlopen_deplibs=yes
10007 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 irix[12345]*|irix6.[01]*)
10009 # Catch all versions of IRIX before 6.2, and indicate that we don't
10010 # know how it worked for any of those versions.
10011 libltdl_cv_sys_dlopen_deplibs=unknown
10012 ;;
10013 irix*)
10014 # The case above catches anything before 6.2, and it's known that
10015 # at 6.2 and later dlopen does load deplibs.
10016 libltdl_cv_sys_dlopen_deplibs=yes
10017 ;;
10018 netbsd*)
10019 libltdl_cv_sys_dlopen_deplibs=yes
10020 ;;
10021 openbsd*)
10022 libltdl_cv_sys_dlopen_deplibs=yes
10023 ;;
10024 osf[1234]*)
10025 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10026 # it did *not* use an RPATH in a shared library to find objects the
10027 # library depends on, so we explictly say `no'.
10028 libltdl_cv_sys_dlopen_deplibs=no
10029 ;;
10030 osf5.0|osf5.0a|osf5.1)
10031 # dlopen *does* load deplibs and with the right loader patch applied
10032 # it even uses RPATH in a shared library to search for shared objects
10033 # that the library depends on, but there's no easy way to know if that
10034 # patch is installed. Since this is the case, all we can really
10035 # say is unknown -- it depends on the patch being installed. If
10036 # it is, this changes to `yes'. Without it, it would be `no'.
10037 libltdl_cv_sys_dlopen_deplibs=unknown
10038 ;;
10039 osf*)
10040 # the two cases above should catch all versions of osf <= 5.1. Read
10041 # the comments above for what we know about them.
10042 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10043 # is used to find them so we can finally say `yes'.
10044 libltdl_cv_sys_dlopen_deplibs=yes
10045 ;;
10046 solaris*)
10047 libltdl_cv_sys_dlopen_deplibs=yes
10048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10050 libltdl_cv_sys_dlopen_deplibs=yes
10051 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052 esac
10053
10054fi
Reid Spencera773bd52006-08-04 18:18:08 +000010055{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10056echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10058
10059cat >>confdefs.h <<\_ACEOF
10060#define LTDL_DLOPEN_DEPLIBS 1
10061_ACEOF
10062
10063fi
10064
10065
10066for ac_header in argz.h
10067do
10068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074fi
Reid Spencera773bd52006-08-04 18:18:08 +000010075ac_res=`eval echo '${'$as_ac_Header'}'`
10076 { echo "$as_me:$LINENO: result: $ac_res" >&5
10077echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078else
10079 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010080{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082cat >conftest.$ac_ext <<_ACEOF
10083/* confdefs.h. */
10084_ACEOF
10085cat confdefs.h >>conftest.$ac_ext
10086cat >>conftest.$ac_ext <<_ACEOF
10087/* end confdefs.h. */
10088$ac_includes_default
10089#include <$ac_header>
10090_ACEOF
10091rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010092if { (ac_try="$ac_compile"
10093case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108 ac_header_compiler=yes
10109else
10110 echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
Reid Spencera773bd52006-08-04 18:18:08 +000010113 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114fi
Reid Spencera773bd52006-08-04 18:18:08 +000010115
10116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10118echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119
10120# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129#include <$ac_header>
10130_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010131if { (ac_try="$ac_cpp conftest.$ac_ext"
10132case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135esac
10136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010143 (exit $ac_status); } >/dev/null && {
10144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147 ac_header_preproc=yes
10148else
10149 echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_header_preproc=no
10153fi
Reid Spencera773bd52006-08-04 18:18:08 +000010154
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10157echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158
10159# So? What about this header?
10160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10161 yes:no: )
10162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10166 ac_header_preproc=yes
10167 ;;
10168 no:yes:* )
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010181 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182## ----------------------------------- ##
10183## Report this to llvmbugs@cs.uiuc.edu ##
10184## ----------------------------------- ##
10185_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010186 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 ;;
10188esac
Reid Spencera773bd52006-08-04 18:18:08 +000010189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 eval "$as_ac_Header=\$ac_header_preproc"
10195fi
Reid Spencera773bd52006-08-04 18:18:08 +000010196ac_res=`eval echo '${'$as_ac_Header'}'`
10197 { echo "$as_me:$LINENO: result: $ac_res" >&5
10198echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199
10200fi
10201if test `eval echo '${'$as_ac_Header'}'` = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10204_ACEOF
10205
10206fi
10207
10208done
10209
10210
Reid Spencera773bd52006-08-04 18:18:08 +000010211{ echo "$as_me:$LINENO: checking for error_t" >&5
10212echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213if test "${ac_cv_type_error_t+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 cat >conftest.$ac_ext <<_ACEOF
10217/* confdefs.h. */
10218_ACEOF
10219cat confdefs.h >>conftest.$ac_ext
10220cat >>conftest.$ac_ext <<_ACEOF
10221/* end confdefs.h. */
10222#if HAVE_ARGZ_H
10223# include <argz.h>
10224#endif
10225
Reid Spencera773bd52006-08-04 18:18:08 +000010226typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227int
10228main ()
10229{
Reid Spencera773bd52006-08-04 18:18:08 +000010230if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010232if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233 return 0;
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010239if { (ac_try="$ac_compile"
10240case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243esac
10244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255 ac_cv_type_error_t=yes
10256else
10257 echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
Reid Spencera773bd52006-08-04 18:18:08 +000010260 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261fi
Reid Spencera773bd52006-08-04 18:18:08 +000010262
10263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264fi
Reid Spencera773bd52006-08-04 18:18:08 +000010265{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10266echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267if test $ac_cv_type_error_t = yes; then
10268
10269cat >>confdefs.h <<_ACEOF
10270#define HAVE_ERROR_T 1
10271_ACEOF
10272
10273
10274else
10275
10276cat >>confdefs.h <<\_ACEOF
10277#define error_t int
10278_ACEOF
10279
10280fi
10281
10282
10283
10284
10285
10286
10287
10288for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10289do
10290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296 cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h. */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h. */
10302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10304#define $ac_func innocuous_$ac_func
10305
10306/* System header to define __stub macros and hopefully few prototypes,
10307 which can conflict with char $ac_func (); below.
10308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10309 <limits.h> exists even on freestanding compilers. */
10310
10311#ifdef __STDC__
10312# include <limits.h>
10313#else
10314# include <assert.h>
10315#endif
10316
10317#undef $ac_func
10318
Reid Spencera773bd52006-08-04 18:18:08 +000010319/* Override any GCC internal prototype to avoid an error.
10320 Use char because int might match the return type of a GCC
10321 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322#ifdef __cplusplus
10323extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325char $ac_func ();
10326/* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010329#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331#endif
10332
10333int
10334main ()
10335{
Reid Spencera773bd52006-08-04 18:18:08 +000010336return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337 ;
10338 return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest$ac_exeext &&
10358 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359 eval "$as_ac_var=yes"
10360else
10361 echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
Reid Spencera773bd52006-08-04 18:18:08 +000010364 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365fi
Reid Spencera773bd52006-08-04 18:18:08 +000010366
Scott Michel96dcd2b2007-12-05 21:24:02 +000010367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368 conftest$ac_exeext conftest.$ac_ext
10369fi
Reid Spencera773bd52006-08-04 18:18:08 +000010370ac_res=`eval echo '${'$as_ac_var'}'`
10371 { echo "$as_me:$LINENO: result: $ac_res" >&5
10372echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373if test `eval echo '${'$as_ac_var'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10376_ACEOF
10377
10378fi
10379done
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10409 stdio.h unistd.h
10410do
10411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417fi
Reid Spencera773bd52006-08-04 18:18:08 +000010418ac_res=`eval echo '${'$as_ac_Header'}'`
10419 { echo "$as_me:$LINENO: result: $ac_res" >&5
10420echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421else
10422 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010423{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425cat >conftest.$ac_ext <<_ACEOF
10426/* confdefs.h. */
10427_ACEOF
10428cat confdefs.h >>conftest.$ac_ext
10429cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h. */
10431$ac_includes_default
10432#include <$ac_header>
10433_ACEOF
10434rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010435if { (ac_try="$ac_compile"
10436case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442 ac_status=$?
10443 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010447 (exit $ac_status); } && {
10448 test -z "$ac_c_werror_flag" ||
10449 test ! -s conftest.err
10450 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 ac_header_compiler=yes
10452else
10453 echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
Reid Spencera773bd52006-08-04 18:18:08 +000010456 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457fi
Reid Spencera773bd52006-08-04 18:18:08 +000010458
10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10461echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462
10463# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466cat >conftest.$ac_ext <<_ACEOF
10467/* confdefs.h. */
10468_ACEOF
10469cat confdefs.h >>conftest.$ac_ext
10470cat >>conftest.$ac_ext <<_ACEOF
10471/* end confdefs.h. */
10472#include <$ac_header>
10473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010474if { (ac_try="$ac_cpp conftest.$ac_ext"
10475case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010486 (exit $ac_status); } >/dev/null && {
10487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490 ac_header_preproc=yes
10491else
10492 echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 ac_header_preproc=no
10496fi
Reid Spencera773bd52006-08-04 18:18:08 +000010497
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10500echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501
10502# So? What about this header?
10503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10504 yes:no: )
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10509 ac_header_preproc=yes
10510 ;;
10511 no:yes:* )
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010524 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525## ----------------------------------- ##
10526## Report this to llvmbugs@cs.uiuc.edu ##
10527## ----------------------------------- ##
10528_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010529 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 ;;
10531esac
Reid Spencera773bd52006-08-04 18:18:08 +000010532{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536else
10537 eval "$as_ac_Header=\$ac_header_preproc"
10538fi
Reid Spencera773bd52006-08-04 18:18:08 +000010539ac_res=`eval echo '${'$as_ac_Header'}'`
10540 { echo "$as_me:$LINENO: result: $ac_res" >&5
10541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542
10543fi
10544if test `eval echo '${'$as_ac_Header'}'` = yes; then
10545 cat >>confdefs.h <<_ACEOF
10546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10547_ACEOF
10548
10549fi
10550
10551done
10552
10553
10554
10555
10556
10557for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10558do
10559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565fi
Reid Spencera773bd52006-08-04 18:18:08 +000010566ac_res=`eval echo '${'$as_ac_Header'}'`
10567 { echo "$as_me:$LINENO: result: $ac_res" >&5
10568echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569else
10570 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010571{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
10579$ac_includes_default
10580#include <$ac_header>
10581_ACEOF
10582rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010583if { (ac_try="$ac_compile"
10584case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599 ac_header_compiler=yes
10600else
10601 echo "$as_me: failed program was:" >&5
10602sed 's/^/| /' conftest.$ac_ext >&5
10603
Reid Spencera773bd52006-08-04 18:18:08 +000010604 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605fi
Reid Spencera773bd52006-08-04 18:18:08 +000010606
10607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10609echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010610
10611# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010612{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
10620#include <$ac_header>
10621_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010622if { (ac_try="$ac_cpp conftest.$ac_ext"
10623case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626esac
10627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010634 (exit $ac_status); } >/dev/null && {
10635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638 ac_header_preproc=yes
10639else
10640 echo "$as_me: failed program was:" >&5
10641sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_header_preproc=no
10644fi
Reid Spencera773bd52006-08-04 18:18:08 +000010645
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649
10650# So? What about this header?
10651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 yes:no: )
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10658 ;;
10659 no:yes:* )
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010672 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673## ----------------------------------- ##
10674## Report this to llvmbugs@cs.uiuc.edu ##
10675## ----------------------------------- ##
10676_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010677 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 ;;
10679esac
Reid Spencera773bd52006-08-04 18:18:08 +000010680{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685 eval "$as_ac_Header=\$ac_header_preproc"
10686fi
Reid Spencera773bd52006-08-04 18:18:08 +000010687ac_res=`eval echo '${'$as_ac_Header'}'`
10688 { echo "$as_me:$LINENO: result: $ac_res" >&5
10689echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690
10691fi
10692if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10695_ACEOF
10696
10697fi
10698
10699done
10700
10701
10702
10703for ac_header in string.h strings.h
10704do
10705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711fi
Reid Spencera773bd52006-08-04 18:18:08 +000010712ac_res=`eval echo '${'$as_ac_Header'}'`
10713 { echo "$as_me:$LINENO: result: $ac_res" >&5
10714echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715else
10716 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725$ac_includes_default
10726#include <$ac_header>
10727_ACEOF
10728rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010729if { (ac_try="$ac_compile"
10730case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745 ac_header_compiler=yes
10746else
10747 echo "$as_me: failed program was:" >&5
10748sed 's/^/| /' conftest.$ac_ext >&5
10749
Reid Spencera773bd52006-08-04 18:18:08 +000010750 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751fi
Reid Spencera773bd52006-08-04 18:18:08 +000010752
10753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10755echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756
10757# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760cat >conftest.$ac_ext <<_ACEOF
10761/* confdefs.h. */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h. */
10766#include <$ac_header>
10767_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010768if { (ac_try="$ac_cpp conftest.$ac_ext"
10769case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772esac
10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010780 (exit $ac_status); } >/dev/null && {
10781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784 ac_header_preproc=yes
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_header_preproc=no
10790fi
Reid Spencera773bd52006-08-04 18:18:08 +000010791
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010792rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795
10796# So? What about this header?
10797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10798 yes:no: )
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10804 ;;
10805 no:yes:* )
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010818 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819## ----------------------------------- ##
10820## Report this to llvmbugs@cs.uiuc.edu ##
10821## ----------------------------------- ##
10822_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010823 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824 ;;
10825esac
Reid Spencera773bd52006-08-04 18:18:08 +000010826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 eval "$as_ac_Header=\$ac_header_preproc"
10832fi
Reid Spencera773bd52006-08-04 18:18:08 +000010833ac_res=`eval echo '${'$as_ac_Header'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836
10837fi
10838if test `eval echo '${'$as_ac_Header'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10841_ACEOF
10842 break
10843fi
10844
10845done
10846
10847
10848
10849
10850for ac_func in strchr index
10851do
10852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866#define $ac_func innocuous_$ac_func
10867
10868/* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10872
10873#ifdef __STDC__
10874# include <limits.h>
10875#else
10876# include <assert.h>
10877#endif
10878
10879#undef $ac_func
10880
Reid Spencera773bd52006-08-04 18:18:08 +000010881/* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884#ifdef __cplusplus
10885extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010886#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887char $ac_func ();
10888/* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010891#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893#endif
10894
10895int
10896main ()
10897{
Reid Spencera773bd52006-08-04 18:18:08 +000010898return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899 ;
10900 return 0;
10901}
10902_ACEOF
10903rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010904if { (ac_try="$ac_link"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest$ac_exeext &&
10920 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921 eval "$as_ac_var=yes"
10922else
10923 echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
Reid Spencera773bd52006-08-04 18:18:08 +000010926 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927fi
Reid Spencera773bd52006-08-04 18:18:08 +000010928
Scott Michel96dcd2b2007-12-05 21:24:02 +000010929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930 conftest$ac_exeext conftest.$ac_ext
10931fi
Reid Spencera773bd52006-08-04 18:18:08 +000010932ac_res=`eval echo '${'$as_ac_var'}'`
10933 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935if test `eval echo '${'$as_ac_var'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10938_ACEOF
10939 break
10940fi
10941done
10942
10943
10944
10945for ac_func in strrchr rindex
10946do
10947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010948{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h. */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h. */
10959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10961#define $ac_func innocuous_$ac_func
10962
10963/* System header to define __stub macros and hopefully few prototypes,
10964 which can conflict with char $ac_func (); below.
10965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966 <limits.h> exists even on freestanding compilers. */
10967
10968#ifdef __STDC__
10969# include <limits.h>
10970#else
10971# include <assert.h>
10972#endif
10973
10974#undef $ac_func
10975
Reid Spencera773bd52006-08-04 18:18:08 +000010976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979#ifdef __cplusplus
10980extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982char $ac_func ();
10983/* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010986#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988#endif
10989
10990int
10991main ()
10992{
Reid Spencera773bd52006-08-04 18:18:08 +000010993return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994 ;
10995 return 0;
10996}
10997_ACEOF
10998rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010999if { (ac_try="$ac_link"
11000case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest$ac_exeext &&
11015 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016 eval "$as_ac_var=yes"
11017else
11018 echo "$as_me: failed program was:" >&5
11019sed 's/^/| /' conftest.$ac_ext >&5
11020
Reid Spencera773bd52006-08-04 18:18:08 +000011021 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022fi
Reid Spencera773bd52006-08-04 18:18:08 +000011023
Scott Michel96dcd2b2007-12-05 21:24:02 +000011024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025 conftest$ac_exeext conftest.$ac_ext
11026fi
Reid Spencera773bd52006-08-04 18:18:08 +000011027ac_res=`eval echo '${'$as_ac_var'}'`
11028 { echo "$as_me:$LINENO: result: $ac_res" >&5
11029echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030if test `eval echo '${'$as_ac_var'}'` = yes; then
11031 cat >>confdefs.h <<_ACEOF
11032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11033_ACEOF
11034 break
11035fi
11036done
11037
11038
11039
11040for ac_func in memcpy bcopy
11041do
11042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else
11048 cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
11054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11056#define $ac_func innocuous_$ac_func
11057
11058/* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11062
11063#ifdef __STDC__
11064# include <limits.h>
11065#else
11066# include <assert.h>
11067#endif
11068
11069#undef $ac_func
11070
Reid Spencera773bd52006-08-04 18:18:08 +000011071/* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074#ifdef __cplusplus
11075extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077char $ac_func ();
11078/* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011081#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083#endif
11084
11085int
11086main ()
11087{
Reid Spencera773bd52006-08-04 18:18:08 +000011088return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011089 ;
11090 return 0;
11091}
11092_ACEOF
11093rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011094if { (ac_try="$ac_link"
11095case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest$ac_exeext &&
11110 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111 eval "$as_ac_var=yes"
11112else
11113 echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
11115
Reid Spencera773bd52006-08-04 18:18:08 +000011116 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117fi
Reid Spencera773bd52006-08-04 18:18:08 +000011118
Scott Michel96dcd2b2007-12-05 21:24:02 +000011119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120 conftest$ac_exeext conftest.$ac_ext
11121fi
Reid Spencera773bd52006-08-04 18:18:08 +000011122ac_res=`eval echo '${'$as_ac_var'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128_ACEOF
11129 break
11130fi
11131done
11132
11133
11134
11135for ac_func in memmove strcmp
11136do
11137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
11143 cat >conftest.$ac_ext <<_ACEOF
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
11149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151#define $ac_func innocuous_$ac_func
11152
11153/* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11157
11158#ifdef __STDC__
11159# include <limits.h>
11160#else
11161# include <assert.h>
11162#endif
11163
11164#undef $ac_func
11165
Reid Spencera773bd52006-08-04 18:18:08 +000011166/* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169#ifdef __cplusplus
11170extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172char $ac_func ();
11173/* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011176#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178#endif
11179
11180int
11181main ()
11182{
Reid Spencera773bd52006-08-04 18:18:08 +000011183return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184 ;
11185 return 0;
11186}
11187_ACEOF
11188rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011189if { (ac_try="$ac_link"
11190case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest$ac_exeext &&
11205 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206 eval "$as_ac_var=yes"
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
Reid Spencera773bd52006-08-04 18:18:08 +000011211 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212fi
Reid Spencera773bd52006-08-04 18:18:08 +000011213
Scott Michel96dcd2b2007-12-05 21:24:02 +000011214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 conftest$ac_exeext conftest.$ac_ext
11216fi
Reid Spencera773bd52006-08-04 18:18:08 +000011217ac_res=`eval echo '${'$as_ac_var'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220if test `eval echo '${'$as_ac_var'}'` = yes; then
11221 cat >>confdefs.h <<_ACEOF
11222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11223_ACEOF
11224
11225fi
11226done
11227
11228
11229
11230
11231for ac_func in closedir opendir readdir
11232do
11233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11247#define $ac_func innocuous_$ac_func
11248
11249/* System header to define __stub macros and hopefully few prototypes,
11250 which can conflict with char $ac_func (); below.
11251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252 <limits.h> exists even on freestanding compilers. */
11253
11254#ifdef __STDC__
11255# include <limits.h>
11256#else
11257# include <assert.h>
11258#endif
11259
11260#undef $ac_func
11261
Reid Spencera773bd52006-08-04 18:18:08 +000011262/* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265#ifdef __cplusplus
11266extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268char $ac_func ();
11269/* The GNU C library defines this for functions which it implements
11270 to always fail with ENOSYS. Some functions are actually named
11271 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011272#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274#endif
11275
11276int
11277main ()
11278{
Reid Spencera773bd52006-08-04 18:18:08 +000011279return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280 ;
11281 return 0;
11282}
11283_ACEOF
11284rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011285if { (ac_try="$ac_link"
11286case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest$ac_exeext &&
11301 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011302 eval "$as_ac_var=yes"
11303else
11304 echo "$as_me: failed program was:" >&5
11305sed 's/^/| /' conftest.$ac_ext >&5
11306
Reid Spencera773bd52006-08-04 18:18:08 +000011307 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308fi
Reid Spencera773bd52006-08-04 18:18:08 +000011309
Scott Michel96dcd2b2007-12-05 21:24:02 +000011310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 conftest$ac_exeext conftest.$ac_ext
11312fi
Reid Spencera773bd52006-08-04 18:18:08 +000011313ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319_ACEOF
11320
11321fi
11322done
11323
11324
Reid Spencera773bd52006-08-04 18:18:08 +000011325# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011327 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328 case $enableval in
11329 yes) enable_shared=yes ;;
11330 no) enable_shared=no ;;
11331 *)
11332 enable_shared=no
11333 # Look at the argument we got. We use all the common list separators.
11334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11335 for pkg in $enableval; do
11336 IFS="$lt_save_ifs"
11337 if test "X$pkg" = "X$p"; then
11338 enable_shared=yes
11339 fi
11340 done
11341 IFS="$lt_save_ifs"
11342 ;;
11343 esac
11344else
11345 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011346fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347
Reid Spencera773bd52006-08-04 18:18:08 +000011348
11349# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011351 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352 case $enableval in
11353 yes) enable_static=yes ;;
11354 no) enable_static=no ;;
11355 *)
11356 enable_static=no
11357 # Look at the argument we got. We use all the common list separators.
11358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11359 for pkg in $enableval; do
11360 IFS="$lt_save_ifs"
11361 if test "X$pkg" = "X$p"; then
11362 enable_static=yes
11363 fi
11364 done
11365 IFS="$lt_save_ifs"
11366 ;;
11367 esac
11368else
11369 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011370fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371
Reid Spencera773bd52006-08-04 18:18:08 +000011372
11373# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011375 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376 case $enableval in
11377 yes) enable_fast_install=yes ;;
11378 no) enable_fast_install=no ;;
11379 *)
11380 enable_fast_install=no
11381 # Look at the argument we got. We use all the common list separators.
11382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11383 for pkg in $enableval; do
11384 IFS="$lt_save_ifs"
11385 if test "X$pkg" = "X$p"; then
11386 enable_fast_install=yes
11387 fi
11388 done
11389 IFS="$lt_save_ifs"
11390 ;;
11391 esac
11392else
11393 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011394fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395
Reid Spencera773bd52006-08-04 18:18:08 +000011396
11397{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11398echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399if test "${lt_cv_path_SED+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 # Loop through the user's path and test for sed and gsed.
11403# Then use that list of sed's as ones to test for truncation.
11404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for lt_ac_prog in sed gsed; do
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11412 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11413 fi
11414 done
11415 done
11416done
11417lt_ac_max=0
11418lt_ac_count=0
11419# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11420# along with /bin/sed that truncates output.
11421for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000011422 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423 cat /dev/null > conftest.in
11424 lt_ac_count=0
11425 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11426 # Check for GNU sed and select it if it is found.
11427 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11428 lt_cv_path_SED=$lt_ac_sed
11429 break
11430 fi
11431 while true; do
11432 cat conftest.in conftest.in >conftest.tmp
11433 mv conftest.tmp conftest.in
11434 cp conftest.in conftest.nl
11435 echo >>conftest.nl
11436 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11437 cmp -s conftest.out conftest.nl || break
11438 # 10000 chars as input seems more than enough
11439 test $lt_ac_count -gt 10 && break
11440 lt_ac_count=`expr $lt_ac_count + 1`
11441 if test $lt_ac_count -gt $lt_ac_max; then
11442 lt_ac_max=$lt_ac_count
11443 lt_cv_path_SED=$lt_ac_sed
11444 fi
11445 done
11446done
11447
11448fi
11449
11450SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000011451{ echo "$as_me:$LINENO: result: $SED" >&5
11452echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453
11454
Reid Spencera773bd52006-08-04 18:18:08 +000011455# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458else
11459 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000011460fi
11461
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462ac_prog=ld
11463if test "$GCC" = yes; then
11464 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000011465 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11466echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467 case $host in
11468 *-*-mingw*)
11469 # gcc leaves a trailing carriage return which upsets mingw
11470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11471 *)
11472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11473 esac
11474 case $ac_prog in
11475 # Accept absolute paths.
11476 [\\/]* | ?:[\\/]*)
11477 re_direlt='/[^/][^/]*/\.\./'
11478 # Canonicalize the pathname of ld
11479 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11481 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11482 done
11483 test -z "$LD" && LD="$ac_prog"
11484 ;;
11485 "")
11486 # If it fails, then pretend we aren't using GCC.
11487 ac_prog=ld
11488 ;;
11489 *)
11490 # If it is relative, then search for the first ld in PATH.
11491 with_gnu_ld=unknown
11492 ;;
11493 esac
11494elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000011495 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11496echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011497else
Reid Spencera773bd52006-08-04 18:18:08 +000011498 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11499echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500fi
11501if test "${lt_cv_path_LD+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504 if test -z "$LD"; then
11505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11506 for ac_dir in $PATH; do
11507 IFS="$lt_save_ifs"
11508 test -z "$ac_dir" && ac_dir=.
11509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11510 lt_cv_path_LD="$ac_dir/$ac_prog"
11511 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000011512 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513 # Break only if it was the GNU/non-GNU ld that we prefer.
11514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11515 *GNU* | *'with BFD'*)
11516 test "$with_gnu_ld" != no && break
11517 ;;
11518 *)
11519 test "$with_gnu_ld" != yes && break
11520 ;;
11521 esac
11522 fi
11523 done
11524 IFS="$lt_save_ifs"
11525else
11526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11527fi
11528fi
11529
11530LD="$lt_cv_path_LD"
11531if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000011532 { echo "$as_me:$LINENO: result: $LD" >&5
11533echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534else
Reid Spencera773bd52006-08-04 18:18:08 +000011535 { echo "$as_me:$LINENO: result: no" >&5
11536echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537fi
11538test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11539echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11540 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000011541{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11542echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543if test "${lt_cv_prog_gnu_ld+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545else
Reid Spencera773bd52006-08-04 18:18:08 +000011546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547case `$LD -v 2>&1 </dev/null` in
11548*GNU* | *'with BFD'*)
11549 lt_cv_prog_gnu_ld=yes
11550 ;;
11551*)
11552 lt_cv_prog_gnu_ld=no
11553 ;;
11554esac
11555fi
Reid Spencera773bd52006-08-04 18:18:08 +000011556{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11557echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558with_gnu_ld=$lt_cv_prog_gnu_ld
11559
11560
Reid Spencera773bd52006-08-04 18:18:08 +000011561{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11562echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563if test "${lt_cv_ld_reload_flag+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 lt_cv_ld_reload_flag='-r'
11567fi
Reid Spencera773bd52006-08-04 18:18:08 +000011568{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11569echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570reload_flag=$lt_cv_ld_reload_flag
11571case $reload_flag in
11572"" | " "*) ;;
11573*) reload_flag=" $reload_flag" ;;
11574esac
11575reload_cmds='$LD$reload_flag -o $output$reload_objs'
11576case $host_os in
11577 darwin*)
11578 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000011579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580 else
11581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11582 fi
11583 ;;
11584esac
11585
Reid Spencera773bd52006-08-04 18:18:08 +000011586{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11587echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588if test "${lt_cv_deplibs_check_method+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
11591 lt_cv_file_magic_cmd='$MAGIC_CMD'
11592lt_cv_file_magic_test_file=
11593lt_cv_deplibs_check_method='unknown'
11594# Need to set the preceding variable on all platforms that support
11595# interlibrary dependencies.
11596# 'none' -- dependencies not supported.
11597# `unknown' -- same as none, but documents that we really don't know.
11598# 'pass_all' -- all dependencies passed with no checks.
11599# 'test_compile' -- check by making test program.
11600# 'file_magic [[regex]]' -- check by looking for files in library path
11601# which responds to the $file_magic_cmd with a given extended regex.
11602# If you have `file' or equivalent on your system and you're not sure
11603# whether `pass_all' will *always* work, you probably want this one.
11604
11605case $host_os in
11606aix4* | aix5*)
11607 lt_cv_deplibs_check_method=pass_all
11608 ;;
11609
11610beos*)
11611 lt_cv_deplibs_check_method=pass_all
11612 ;;
11613
11614bsdi[45]*)
11615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11616 lt_cv_file_magic_cmd='/usr/bin/file -L'
11617 lt_cv_file_magic_test_file=/shlib/libc.so
11618 ;;
11619
11620cygwin*)
11621 # func_win32_libid is a shell function defined in ltmain.sh
11622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11623 lt_cv_file_magic_cmd='func_win32_libid'
11624 ;;
11625
11626mingw* | pw32*)
11627 # Base MSYS/MinGW do not provide the 'file' command needed by
11628 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11629 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11630 lt_cv_file_magic_cmd='$OBJDUMP -f'
11631 ;;
11632
11633darwin* | rhapsody*)
11634 lt_cv_deplibs_check_method=pass_all
11635 ;;
11636
Reid Spencera773bd52006-08-04 18:18:08 +000011637freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11639 case $host_cpu in
11640 i*86 )
11641 # Not sure whether the presence of OpenBSD here was a mistake.
11642 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000011643 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 +000011644 lt_cv_file_magic_cmd=/usr/bin/file
11645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11646 ;;
11647 esac
11648 else
11649 lt_cv_deplibs_check_method=pass_all
11650 fi
11651 ;;
11652
11653gnu*)
11654 lt_cv_deplibs_check_method=pass_all
11655 ;;
11656
11657hpux10.20* | hpux11*)
11658 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000011659 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011660 ia64*)
11661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11662 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11663 ;;
11664 hppa*64*)
11665 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]'
11666 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11667 ;;
11668 *)
11669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11670 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11671 ;;
11672 esac
11673 ;;
11674
Reid Spencera773bd52006-08-04 18:18:08 +000011675interix3*)
11676 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11678 ;;
11679
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680irix5* | irix6* | nonstopux*)
11681 case $LD in
11682 *-32|*"-32 ") libmagic=32-bit;;
11683 *-n32|*"-n32 ") libmagic=N32;;
11684 *-64|*"-64 ") libmagic=64-bit;;
11685 *) libmagic=never-match;;
11686 esac
11687 lt_cv_deplibs_check_method=pass_all
11688 ;;
11689
11690# This must be Linux ELF.
11691linux*)
11692 lt_cv_deplibs_check_method=pass_all
11693 ;;
11694
11695netbsd*)
11696 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11698 else
11699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11700 fi
11701 ;;
11702
11703newos6*)
11704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11705 lt_cv_file_magic_cmd=/usr/bin/file
11706 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11707 ;;
11708
11709nto-qnx*)
11710 lt_cv_deplibs_check_method=unknown
11711 ;;
11712
11713openbsd*)
11714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11716 else
11717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11718 fi
11719 ;;
11720
11721osf3* | osf4* | osf5*)
11722 lt_cv_deplibs_check_method=pass_all
11723 ;;
11724
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725solaris*)
11726 lt_cv_deplibs_check_method=pass_all
11727 ;;
11728
Reid Spencera773bd52006-08-04 18:18:08 +000011729sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730 case $host_vendor in
11731 motorola)
11732 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]'
11733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11734 ;;
11735 ncr)
11736 lt_cv_deplibs_check_method=pass_all
11737 ;;
11738 sequent)
11739 lt_cv_file_magic_cmd='/bin/file'
11740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11741 ;;
11742 sni)
11743 lt_cv_file_magic_cmd='/bin/file'
11744 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11745 lt_cv_file_magic_test_file=/lib/libc.so
11746 ;;
11747 siemens)
11748 lt_cv_deplibs_check_method=pass_all
11749 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011750 pc)
11751 lt_cv_deplibs_check_method=pass_all
11752 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753 esac
11754 ;;
11755
Reid Spencera773bd52006-08-04 18:18:08 +000011756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757 lt_cv_deplibs_check_method=pass_all
11758 ;;
11759esac
11760
11761fi
Reid Spencera773bd52006-08-04 18:18:08 +000011762{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11763echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764file_magic_cmd=$lt_cv_file_magic_cmd
11765deplibs_check_method=$lt_cv_deplibs_check_method
11766test -z "$deplibs_check_method" && deplibs_check_method=unknown
11767
11768
11769
11770# If no C compiler was specified, use CC.
11771LTCC=${LTCC-"$CC"}
11772
Reid Spencera773bd52006-08-04 18:18:08 +000011773# If no C compiler flags were specified, use CFLAGS.
11774LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11775
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776# Allow CC to be a program name with arguments.
11777compiler=$CC
11778
Reid Spencera773bd52006-08-04 18:18:08 +000011779# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011781 enableval=$enable_libtool_lock;
11782fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11785
11786# Some flags need to be propagated to the compiler or linker for good
11787# libtool support.
11788case $host in
11789ia64-*-hpux*)
11790 # Find out which ABI we are using.
11791 echo 'int i;' > conftest.$ac_ext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; then
11797 case `/usr/bin/file conftest.$ac_objext` in
11798 *ELF-32*)
11799 HPUX_IA64_MODE="32"
11800 ;;
11801 *ELF-64*)
11802 HPUX_IA64_MODE="64"
11803 ;;
11804 esac
11805 fi
11806 rm -rf conftest*
11807 ;;
11808*-*-irix6*)
11809 # Find out which ABI we are using.
Duncan Sands67f1c492007-12-12 23:03:45 +000011810 echo '#line 11809 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812 (eval $ac_compile) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; then
11816 if test "$lt_cv_prog_gnu_ld" = yes; then
11817 case `/usr/bin/file conftest.$ac_objext` in
11818 *32-bit*)
11819 LD="${LD-ld} -melf32bsmip"
11820 ;;
11821 *N32*)
11822 LD="${LD-ld} -melf32bmipn32"
11823 ;;
11824 *64-bit*)
11825 LD="${LD-ld} -melf64bmip"
11826 ;;
11827 esac
11828 else
11829 case `/usr/bin/file conftest.$ac_objext` in
11830 *32-bit*)
11831 LD="${LD-ld} -32"
11832 ;;
11833 *N32*)
11834 LD="${LD-ld} -n32"
11835 ;;
11836 *64-bit*)
11837 LD="${LD-ld} -64"
11838 ;;
11839 esac
11840 fi
11841 fi
11842 rm -rf conftest*
11843 ;;
11844
11845x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11846 # Find out which ABI we are using.
11847 echo 'int i;' > conftest.$ac_ext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000011853 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854 *32-bit*)
11855 case $host in
11856 x86_64-*linux*)
11857 LD="${LD-ld} -m elf_i386"
11858 ;;
11859 ppc64-*linux*|powerpc64-*linux*)
11860 LD="${LD-ld} -m elf32ppclinux"
11861 ;;
11862 s390x-*linux*)
11863 LD="${LD-ld} -m elf_s390"
11864 ;;
11865 sparc64-*linux*)
11866 LD="${LD-ld} -m elf32_sparc"
11867 ;;
11868 esac
11869 ;;
11870 *64-bit*)
11871 case $host in
11872 x86_64-*linux*)
11873 LD="${LD-ld} -m elf_x86_64"
11874 ;;
11875 ppc*-*linux*|powerpc*-*linux*)
11876 LD="${LD-ld} -m elf64ppc"
11877 ;;
11878 s390*-*linux*)
11879 LD="${LD-ld} -m elf64_s390"
11880 ;;
11881 sparc*-*linux*)
11882 LD="${LD-ld} -m elf64_sparc"
11883 ;;
11884 esac
11885 ;;
11886 esac
11887 fi
11888 rm -rf conftest*
11889 ;;
11890
11891*-*-sco3.2v5*)
11892 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11893 SAVE_CFLAGS="$CFLAGS"
11894 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000011895 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11896echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897if test "${lt_cv_cc_needs_belf+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 ac_ext=c
11901ac_cpp='$CPP $CPPFLAGS'
11902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11904ac_compiler_gnu=$ac_cv_c_compiler_gnu
11905
11906 cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h. */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h. */
11912
Reid Spencera773bd52006-08-04 18:18:08 +000011913int
11914main ()
11915{
11916
11917 ;
11918 return 0;
11919}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920_ACEOF
11921rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011922if { (ac_try="$ac_link"
11923case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest$ac_exeext &&
11938 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939 lt_cv_cc_needs_belf=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
Reid Spencera773bd52006-08-04 18:18:08 +000011944 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945fi
Reid Spencera773bd52006-08-04 18:18:08 +000011946
Scott Michel96dcd2b2007-12-05 21:24:02 +000011947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 conftest$ac_exeext conftest.$ac_ext
11949 ac_ext=c
11950ac_cpp='$CPP $CPPFLAGS'
11951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11953ac_compiler_gnu=$ac_cv_c_compiler_gnu
11954
11955fi
Reid Spencera773bd52006-08-04 18:18:08 +000011956{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11957echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11959 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11960 CFLAGS="$SAVE_CFLAGS"
11961 fi
11962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011963sparc*-*solaris*)
11964 # Find out which ABI we are using.
11965 echo 'int i;' > conftest.$ac_ext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; then
11971 case `/usr/bin/file conftest.o` in
11972 *64-bit*)
11973 case $lt_cv_prog_gnu_ld in
11974 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11975 *) LD="${LD-ld} -64" ;;
11976 esac
11977 ;;
11978 esac
11979 fi
11980 rm -rf conftest*
11981 ;;
11982
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983
11984esac
11985
11986need_locks="$enable_libtool_lock"
11987
11988
Reid Spencer2706f8c2004-09-19 23:53:36 +000011989
11990
11991if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11992 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11993 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011994 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000011995ac_cpp='$CXXCPP $CPPFLAGS'
11996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000011999{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12000echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012001if test -z "$CXXCPP"; then
12002 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012003 echo $ECHO_N "(cached) $ECHO_C" >&6
12004else
John Criswell47fdd832003-07-14 16:52:07 +000012005 # Double quotes because CXXCPP needs to be expanded
12006 for CXXCPP in "$CXX -E" "/lib/cpp"
12007 do
12008 ac_preproc_ok=false
12009for ac_cxx_preproc_warn_flag in '' yes
12010do
12011 # Use a header file that comes with gcc, so configuring glibc
12012 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12014 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012015 # On the NeXT, cc -E runs the code through the compiler's parser,
12016 # not just through cpp. "Syntax error" is here to catch this case.
12017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023#ifdef __STDC__
12024# include <limits.h>
12025#else
12026# include <assert.h>
12027#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012028 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012029_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012030if { (ac_try="$ac_cpp conftest.$ac_ext"
12031case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034esac
12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012037 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012038 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012042 (exit $ac_status); } >/dev/null && {
12043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12044 test ! -s conftest.err
12045 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012046 :
12047else
12048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012049sed 's/^/| /' conftest.$ac_ext >&5
12050
John Criswell47fdd832003-07-14 16:52:07 +000012051 # Broken: fails on valid input.
12052continue
12053fi
Reid Spencera773bd52006-08-04 18:18:08 +000012054
John Criswell47fdd832003-07-14 16:52:07 +000012055rm -f conftest.err conftest.$ac_ext
12056
Reid Spencera773bd52006-08-04 18:18:08 +000012057 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012058 # can be detected and how.
12059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012065#include <ac_nonexistent.h>
12066_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012067if { (ac_try="$ac_cpp conftest.$ac_ext"
12068case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012074 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012075 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012079 (exit $ac_status); } >/dev/null && {
12080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12081 test ! -s conftest.err
12082 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012083 # Broken: success on invalid input.
12084continue
12085else
12086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012087sed 's/^/| /' conftest.$ac_ext >&5
12088
John Criswell47fdd832003-07-14 16:52:07 +000012089 # Passes both tests.
12090ac_preproc_ok=:
12091break
12092fi
Reid Spencera773bd52006-08-04 18:18:08 +000012093
John Criswell47fdd832003-07-14 16:52:07 +000012094rm -f conftest.err conftest.$ac_ext
12095
12096done
12097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12098rm -f conftest.err conftest.$ac_ext
12099if $ac_preproc_ok; then
12100 break
John Criswell7a73b802003-06-30 21:59:07 +000012101fi
12102
John Criswell47fdd832003-07-14 16:52:07 +000012103 done
12104 ac_cv_prog_CXXCPP=$CXXCPP
12105
12106fi
12107 CXXCPP=$ac_cv_prog_CXXCPP
12108else
12109 ac_cv_prog_CXXCPP=$CXXCPP
12110fi
Reid Spencera773bd52006-08-04 18:18:08 +000012111{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12112echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012113ac_preproc_ok=false
12114for ac_cxx_preproc_warn_flag in '' yes
12115do
12116 # Use a header file that comes with gcc, so configuring glibc
12117 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12119 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012120 # On the NeXT, cc -E runs the code through the compiler's parser,
12121 # not just through cpp. "Syntax error" is here to catch this case.
12122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128#ifdef __STDC__
12129# include <limits.h>
12130#else
12131# include <assert.h>
12132#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012133 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012134_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012135if { (ac_try="$ac_cpp conftest.$ac_ext"
12136case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012142 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012143 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012147 (exit $ac_status); } >/dev/null && {
12148 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12149 test ! -s conftest.err
12150 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012151 :
12152else
12153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012154sed 's/^/| /' conftest.$ac_ext >&5
12155
John Criswell47fdd832003-07-14 16:52:07 +000012156 # Broken: fails on valid input.
12157continue
12158fi
Reid Spencera773bd52006-08-04 18:18:08 +000012159
John Criswell47fdd832003-07-14 16:52:07 +000012160rm -f conftest.err conftest.$ac_ext
12161
Reid Spencera773bd52006-08-04 18:18:08 +000012162 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012163 # can be detected and how.
12164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012170#include <ac_nonexistent.h>
12171_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012172if { (ac_try="$ac_cpp conftest.$ac_ext"
12173case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012179 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012180 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012184 (exit $ac_status); } >/dev/null && {
12185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12186 test ! -s conftest.err
12187 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012188 # Broken: success on invalid input.
12189continue
12190else
12191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012192sed 's/^/| /' conftest.$ac_ext >&5
12193
John Criswell47fdd832003-07-14 16:52:07 +000012194 # Passes both tests.
12195ac_preproc_ok=:
12196break
12197fi
Reid Spencera773bd52006-08-04 18:18:08 +000012198
John Criswell47fdd832003-07-14 16:52:07 +000012199rm -f conftest.err conftest.$ac_ext
12200
12201done
12202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12203rm -f conftest.err conftest.$ac_ext
12204if $ac_preproc_ok; then
12205 :
12206else
John Criswell0c38eaf2003-09-10 15:17:25 +000012207 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12208See \`config.log' for more details." >&5
12209echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12210See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012211 { (exit 1); exit 1; }; }
12212fi
12213
Reid Spencera773bd52006-08-04 18:18:08 +000012214ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012215ac_cpp='$CXXCPP $CPPFLAGS'
12216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12219
Reid Spencer2706f8c2004-09-19 23:53:36 +000012220fi
12221
John Criswell47fdd832003-07-14 16:52:07 +000012222
12223ac_ext=f
12224ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12225ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12227if test -n "$ac_tool_prefix"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +000012228 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 +000012229 do
12230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012234if test "${ac_cv_prog_F77+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236else
12237 if test -n "$F77"; then
12238 ac_cv_prog_F77="$F77" # Let the user override the test.
12239else
12240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012246 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 +000012247 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251done
12252done
Reid Spencera773bd52006-08-04 18:18:08 +000012253IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012254
12255fi
12256fi
12257F77=$ac_cv_prog_F77
12258if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012259 { echo "$as_me:$LINENO: result: $F77" >&5
12260echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012261else
Reid Spencera773bd52006-08-04 18:18:08 +000012262 { echo "$as_me:$LINENO: result: no" >&5
12263echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012264fi
12265
Reid Spencera773bd52006-08-04 18:18:08 +000012266
John Criswell47fdd832003-07-14 16:52:07 +000012267 test -n "$F77" && break
12268 done
12269fi
12270if test -z "$F77"; then
12271 ac_ct_F77=$F77
Scott Michel96dcd2b2007-12-05 21:24:02 +000012272 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 +000012273do
12274 # Extract the first word of "$ac_prog", so it can be a program name with args.
12275set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012278if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280else
12281 if test -n "$ac_ct_F77"; then
12282 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12283else
12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285for as_dir in $PATH
12286do
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012290 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 +000012291 ac_cv_prog_ac_ct_F77="$ac_prog"
12292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12294 fi
12295done
12296done
Reid Spencera773bd52006-08-04 18:18:08 +000012297IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012298
12299fi
12300fi
12301ac_ct_F77=$ac_cv_prog_ac_ct_F77
12302if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012303 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12304echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012305else
Reid Spencera773bd52006-08-04 18:18:08 +000012306 { echo "$as_me:$LINENO: result: no" >&5
12307echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012308fi
12309
Reid Spencera773bd52006-08-04 18:18:08 +000012310
John Criswell47fdd832003-07-14 16:52:07 +000012311 test -n "$ac_ct_F77" && break
12312done
12313
Reid Spencera773bd52006-08-04 18:18:08 +000012314 if test "x$ac_ct_F77" = x; then
12315 F77=""
12316 else
12317 case $cross_compiling:$ac_tool_warned in
12318yes:)
12319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12320whose name does not start with the host triplet. If you think this
12321configuration is useful to you, please write to autoconf@gnu.org." >&5
12322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12323whose name does not start with the host triplet. If you think this
12324configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12325ac_tool_warned=yes ;;
12326esac
12327 F77=$ac_ct_F77
12328 fi
John Criswell47fdd832003-07-14 16:52:07 +000012329fi
12330
12331
12332# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012333echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012334ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012335{ (ac_try="$ac_compiler --version >&5"
12336case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339esac
12340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012345{ (ac_try="$ac_compiler -v >&5"
12346case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349esac
12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012355{ (ac_try="$ac_compiler -V >&5"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000012365rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000012366
12367# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000012368# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000012369ac_save_ext=$ac_ext
12370ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000012371{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12372echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012373if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375else
12376 cat >conftest.$ac_ext <<_ACEOF
12377 program main
12378#ifndef __GNUC__
12379 choke me
12380#endif
12381
12382 end
12383_ACEOF
12384rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012385if { (ac_try="$ac_compile"
12386case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389esac
12390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012397 (exit $ac_status); } && {
12398 test -z "$ac_f77_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012401 ac_compiler_gnu=yes
12402else
12403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012404sed 's/^/| /' conftest.$ac_ext >&5
12405
Reid Spencera773bd52006-08-04 18:18:08 +000012406 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000012407fi
Reid Spencera773bd52006-08-04 18:18:08 +000012408
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012410ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12411
12412fi
Reid Spencera773bd52006-08-04 18:18:08 +000012413{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12414echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012415ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000012416ac_test_FFLAGS=${FFLAGS+set}
12417ac_save_FFLAGS=$FFLAGS
12418FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000012419{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12420echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012421if test "${ac_cv_prog_f77_g+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423else
12424 FFLAGS=-g
12425cat >conftest.$ac_ext <<_ACEOF
12426 program main
12427
12428 end
12429_ACEOF
12430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012431if { (ac_try="$ac_compile"
12432case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012443 (exit $ac_status); } && {
12444 test -z "$ac_f77_werror_flag" ||
12445 test ! -s conftest.err
12446 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012447 ac_cv_prog_f77_g=yes
12448else
12449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012450sed 's/^/| /' conftest.$ac_ext >&5
12451
Reid Spencera773bd52006-08-04 18:18:08 +000012452 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000012453fi
Reid Spencera773bd52006-08-04 18:18:08 +000012454
12455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012456
12457fi
Reid Spencera773bd52006-08-04 18:18:08 +000012458{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12459echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012460if test "$ac_test_FFLAGS" = set; then
12461 FFLAGS=$ac_save_FFLAGS
12462elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012463 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012464 FFLAGS="-g -O2"
12465 else
12466 FFLAGS="-g"
12467 fi
12468else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012469 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012470 FFLAGS="-O2"
12471 else
12472 FFLAGS=
12473 fi
12474fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012475
12476G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000012477ac_ext=c
12478ac_cpp='$CPP $CPPFLAGS'
12479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12481ac_compiler_gnu=$ac_cv_c_compiler_gnu
12482
12483
12484
12485# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12486
12487# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000012488{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12489echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012490if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000012494 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000012495
12496 case $build_os in
12497 msdosdjgpp*)
12498 # On DJGPP, this test can blow up pretty badly due to problems in libc
12499 # (any single argument exceeding 2000 bytes causes a buffer overrun
12500 # during glob expansion). Even if it were fixed, the result of this
12501 # check would be larger than it should be.
12502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12503 ;;
12504
12505 gnu*)
12506 # Under GNU Hurd, this test is not required because there is
12507 # no limit to the length of command line arguments.
12508 # Libtool will interpret -1 as no limit whatsoever
12509 lt_cv_sys_max_cmd_len=-1;
12510 ;;
12511
12512 cygwin* | mingw*)
12513 # On Win9x/ME, this test blows up -- it succeeds, but takes
12514 # about 5 minutes as the teststring grows exponentially.
12515 # Worse, since 9x/ME are not pre-emptively multitasking,
12516 # you end up with a "frozen" computer, even though with patience
12517 # the test eventually succeeds (with a max line length of 256k).
12518 # Instead, let's just punt: use the minimum linelength reported by
12519 # all of the supported platforms: 8192 (on NT/2K/XP).
12520 lt_cv_sys_max_cmd_len=8192;
12521 ;;
12522
Reid Spencer2706f8c2004-09-19 23:53:36 +000012523 amigaos*)
12524 # On AmigaOS with pdksh, this test takes hours, literally.
12525 # So we just punt and use a minimum line length of 8192.
12526 lt_cv_sys_max_cmd_len=8192;
12527 ;;
12528
Reid Spencera773bd52006-08-04 18:18:08 +000012529 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012530 # This has been around since 386BSD, at least. Likely further.
12531 if test -x /sbin/sysctl; then
12532 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12533 elif test -x /usr/sbin/sysctl; then
12534 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12535 else
Reid Spencera773bd52006-08-04 18:18:08 +000012536 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000012537 fi
12538 # And add a safety zone
12539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000012540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012541 ;;
12542
Reid Spencera773bd52006-08-04 18:18:08 +000012543 interix*)
12544 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12545 lt_cv_sys_max_cmd_len=196608
12546 ;;
12547
12548 osf*)
12549 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12550 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12551 # nice to cause kernel panics so lets avoid the loop below.
12552 # First set a reasonable default.
12553 lt_cv_sys_max_cmd_len=16384
12554 #
12555 if test -x /sbin/sysconfig; then
12556 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12557 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12558 esac
12559 fi
12560 ;;
12561 sco3.2v5*)
12562 lt_cv_sys_max_cmd_len=102400
12563 ;;
12564 sysv5* | sco5v6* | sysv4.2uw2*)
12565 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12566 if test -n "$kargmax"; then
12567 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12568 else
12569 lt_cv_sys_max_cmd_len=32768
12570 fi
12571 ;;
12572 *)
John Criswell47fdd832003-07-14 16:52:07 +000012573 # If test is not a shell built-in, we'll probably end up computing a
12574 # maximum length that is only half of the actual maximum length, but
12575 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012576 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12577 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12578 = "XX$teststring") >/dev/null 2>&1 &&
12579 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000012580 lt_cv_sys_max_cmd_len=$new_result &&
12581 test $i != 17 # 1/2 MB should be enough
12582 do
12583 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012584 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000012585 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000012586 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000012587 # Add a significant safety factor because C++ compilers can tack on massive
12588 # amounts of additional arguments before passing them to the linker.
12589 # It appears as though 1/2 is a usable value.
12590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12591 ;;
12592 esac
12593
12594fi
12595
12596if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012597 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12598echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012599else
Reid Spencera773bd52006-08-04 18:18:08 +000012600 { echo "$as_me:$LINENO: result: none" >&5
12601echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012602fi
12603
12604
12605
12606
12607# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000012608{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12609echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012610if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612else
12613
12614# These are sane defaults that work on at least a few old systems.
12615# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12616
12617# Character class describing NM global symbol codes.
12618symcode='[BCDEGRST]'
12619
12620# Regexp to match symbols that can be accessed directly from C.
12621sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12622
John Criswell47fdd832003-07-14 16:52:07 +000012623# Transform an extracted symbol line into a proper C declaration
12624lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12625
12626# Transform an extracted symbol line into symbol name and symbol address
12627lt_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'"
12628
12629# Define system-specific variables.
12630case $host_os in
12631aix*)
12632 symcode='[BCDT]'
12633 ;;
12634cygwin* | mingw* | pw32*)
12635 symcode='[ABCDGISTW]'
12636 ;;
12637hpux*) # Its linker distinguishes data from code symbols
12638 if test "$host_cpu" = ia64; then
12639 symcode='[ABCDEGRST]'
12640 fi
12641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12642 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'"
12643 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012644linux*)
12645 if test "$host_cpu" = ia64; then
12646 symcode='[ABCDGIRSTW]'
12647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12648 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'"
12649 fi
12650 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012651irix* | nonstopux*)
12652 symcode='[BCDEGRST]'
12653 ;;
12654osf*)
12655 symcode='[BCDEGQRST]'
12656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012657solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012658 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000012659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012660sco3.2v5*)
12661 symcode='[DT]'
12662 ;;
12663sysv4.2uw2*)
12664 symcode='[DT]'
12665 ;;
12666sysv5* | sco5v6* | unixware* | OpenUNIX*)
12667 symcode='[ABDT]'
12668 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012669sysv4)
12670 symcode='[DFNSTU]'
12671 ;;
12672esac
12673
12674# Handle CRLF in mingw tool chain
12675opt_cr=
12676case $build_os in
12677mingw*)
12678 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12679 ;;
12680esac
12681
12682# If we're using GNU nm, then use its standard symbol codes.
12683case `$NM -V 2>&1` in
12684*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012685 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000012686esac
12687
12688# Try without a prefix undercore, then with it.
12689for ac_symprfx in "" "_"; do
12690
Reid Spencera773bd52006-08-04 18:18:08 +000012691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12692 symxfrm="\\1 $ac_symprfx\\2 \\2"
12693
John Criswell47fdd832003-07-14 16:52:07 +000012694 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000012695 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 +000012696
12697 # Check to see that the pipe works correctly.
12698 pipe_works=no
12699
12700 rm -f conftest*
12701 cat > conftest.$ac_ext <<EOF
12702#ifdef __cplusplus
12703extern "C" {
12704#endif
12705char nm_test_var;
12706void nm_test_func(){}
12707#ifdef __cplusplus
12708}
12709#endif
12710int main(){nm_test_var='a';nm_test_func();return(0);}
12711EOF
12712
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; then
12718 # Now try to grab the symbols.
12719 nlist=conftest.nm
12720 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12721 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && test -s "$nlist"; then
12725 # Try sorting and uniquifying the output.
12726 if sort "$nlist" | uniq > "$nlist"T; then
12727 mv -f "$nlist"T "$nlist"
12728 else
12729 rm -f "$nlist"T
12730 fi
12731
12732 # Make sure that we snagged all the symbols we need.
12733 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12734 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12735 cat <<EOF > conftest.$ac_ext
12736#ifdef __cplusplus
12737extern "C" {
12738#endif
12739
12740EOF
12741 # Now generate the symbol file.
12742 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12743
12744 cat <<EOF >> conftest.$ac_ext
12745#if defined (__STDC__) && __STDC__
12746# define lt_ptr_t void *
12747#else
12748# define lt_ptr_t char *
12749# define const
12750#endif
12751
12752/* The mapping between symbol names and symbols. */
12753const struct {
12754 const char *name;
12755 lt_ptr_t address;
12756}
12757lt_preloaded_symbols[] =
12758{
12759EOF
12760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12761 cat <<\EOF >> conftest.$ac_ext
12762 {0, (lt_ptr_t) 0}
12763};
12764
12765#ifdef __cplusplus
12766}
12767#endif
12768EOF
12769 # Now try linking the two files.
12770 mv conftest.$ac_objext conftstm.$ac_objext
12771 lt_save_LIBS="$LIBS"
12772 lt_save_CFLAGS="$CFLAGS"
12773 LIBS="conftstm.$ac_objext"
12774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12780 pipe_works=yes
12781 fi
12782 LIBS="$lt_save_LIBS"
12783 CFLAGS="$lt_save_CFLAGS"
12784 else
12785 echo "cannot find nm_test_func in $nlist" >&5
12786 fi
12787 else
12788 echo "cannot find nm_test_var in $nlist" >&5
12789 fi
12790 else
12791 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12792 fi
12793 else
12794 echo "$progname: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12796 fi
12797 rm -f conftest* conftst*
12798
12799 # Do not use the global_symbol_pipe unless it works.
12800 if test "$pipe_works" = yes; then
12801 break
12802 else
12803 lt_cv_sys_global_symbol_pipe=
12804 fi
12805done
12806
12807fi
12808
12809if test -z "$lt_cv_sys_global_symbol_pipe"; then
12810 lt_cv_sys_global_symbol_to_cdecl=
12811fi
12812if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012813 { echo "$as_me:$LINENO: result: failed" >&5
12814echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012815else
Reid Spencera773bd52006-08-04 18:18:08 +000012816 { echo "$as_me:$LINENO: result: ok" >&5
12817echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012818fi
12819
Reid Spencera773bd52006-08-04 18:18:08 +000012820{ echo "$as_me:$LINENO: checking for objdir" >&5
12821echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012822if test "${lt_cv_objdir+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825 rm -f .libs 2>/dev/null
12826mkdir .libs 2>/dev/null
12827if test -d .libs; then
12828 lt_cv_objdir=.libs
12829else
12830 # MS-DOS does not allow filenames that begin with a dot.
12831 lt_cv_objdir=_libs
12832fi
12833rmdir .libs 2>/dev/null
12834fi
Reid Spencera773bd52006-08-04 18:18:08 +000012835{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12836echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012837objdir=$lt_cv_objdir
12838
12839
12840
12841
12842
12843case $host_os in
12844aix3*)
12845 # AIX sometimes has problems with the GCC collect2 program. For some
12846 # reason, if we set the COLLECT_NAMES environment variable, the problems
12847 # vanish in a puff of smoke.
12848 if test "X${COLLECT_NAMES+set}" != Xset; then
12849 COLLECT_NAMES=
12850 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000012851 fi
12852 ;;
12853esac
12854
John Criswell47fdd832003-07-14 16:52:07 +000012855# Sed substitution that helps us do robust quoting. It backslashifies
12856# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000012857Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000012858sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12859
12860# Same as above, but do not quote variable references.
12861double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12862
12863# Sed substitution to delay expansion of an escaped shell variable in a
12864# double_quote_subst'ed string.
12865delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12866
12867# Sed substitution to avoid accidental globbing in evaled expressions
12868no_glob_subst='s/\*/\\\*/g'
12869
12870# Constants:
12871rm="rm -f"
12872
12873# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000012874default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000012875can_build_shared=yes
12876
Reid Spencera773bd52006-08-04 18:18:08 +000012877# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000012878# which needs '.lib').
12879libext=a
12880ltmain="$ac_aux_dir/ltmain.sh"
12881ofile="$default_ofile"
12882with_gnu_ld="$lt_cv_prog_gnu_ld"
12883
12884if test -n "$ac_tool_prefix"; then
12885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12886set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012889if test "${ac_cv_prog_AR+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891else
12892 if test -n "$AR"; then
12893 ac_cv_prog_AR="$AR" # Let the user override the test.
12894else
12895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896for as_dir in $PATH
12897do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012901 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 +000012902 ac_cv_prog_AR="${ac_tool_prefix}ar"
12903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12905 fi
12906done
12907done
Reid Spencera773bd52006-08-04 18:18:08 +000012908IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012909
12910fi
12911fi
12912AR=$ac_cv_prog_AR
12913if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012914 { echo "$as_me:$LINENO: result: $AR" >&5
12915echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012916else
Reid Spencera773bd52006-08-04 18:18:08 +000012917 { echo "$as_me:$LINENO: result: no" >&5
12918echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012919fi
12920
Reid Spencera773bd52006-08-04 18:18:08 +000012921
John Criswell47fdd832003-07-14 16:52:07 +000012922fi
12923if test -z "$ac_cv_prog_AR"; then
12924 ac_ct_AR=$AR
12925 # Extract the first word of "ar", so it can be a program name with args.
12926set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012929if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931else
12932 if test -n "$ac_ct_AR"; then
12933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12934else
12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012941 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 +000012942 ac_cv_prog_ac_ct_AR="ar"
12943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12945 fi
12946done
12947done
Reid Spencera773bd52006-08-04 18:18:08 +000012948IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012949
John Criswell47fdd832003-07-14 16:52:07 +000012950fi
12951fi
12952ac_ct_AR=$ac_cv_prog_ac_ct_AR
12953if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012954 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12955echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012956else
Reid Spencera773bd52006-08-04 18:18:08 +000012957 { echo "$as_me:$LINENO: result: no" >&5
12958echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012959fi
12960
Reid Spencera773bd52006-08-04 18:18:08 +000012961 if test "x$ac_ct_AR" = x; then
12962 AR="false"
12963 else
12964 case $cross_compiling:$ac_tool_warned in
12965yes:)
12966{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12967whose name does not start with the host triplet. If you think this
12968configuration is useful to you, please write to autoconf@gnu.org." >&5
12969echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12970whose name does not start with the host triplet. If you think this
12971configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12972ac_tool_warned=yes ;;
12973esac
12974 AR=$ac_ct_AR
12975 fi
John Criswell47fdd832003-07-14 16:52:07 +000012976else
12977 AR="$ac_cv_prog_AR"
12978fi
12979
John Criswell7a73b802003-06-30 21:59:07 +000012980if test -n "$ac_tool_prefix"; then
12981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12982set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000012985if test "${ac_cv_prog_RANLIB+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988 if test -n "$RANLIB"; then
12989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12990else
12991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992for as_dir in $PATH
12993do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012997 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 +000012998 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002done
13003done
Reid Spencera773bd52006-08-04 18:18:08 +000013004IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013005
13006fi
13007fi
13008RANLIB=$ac_cv_prog_RANLIB
13009if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013010 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13011echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013012else
Reid Spencera773bd52006-08-04 18:18:08 +000013013 { echo "$as_me:$LINENO: result: no" >&5
13014echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013015fi
13016
Reid Spencera773bd52006-08-04 18:18:08 +000013017
John Criswell7a73b802003-06-30 21:59:07 +000013018fi
13019if test -z "$ac_cv_prog_RANLIB"; then
13020 ac_ct_RANLIB=$RANLIB
13021 # Extract the first word of "ranlib", so it can be a program name with args.
13022set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013025if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028 if test -n "$ac_ct_RANLIB"; then
13029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13030else
13031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032for as_dir in $PATH
13033do
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013037 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 +000013038 ac_cv_prog_ac_ct_RANLIB="ranlib"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042done
13043done
Reid Spencera773bd52006-08-04 18:18:08 +000013044IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013045
John Criswell7a73b802003-06-30 21:59:07 +000013046fi
13047fi
13048ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13049if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013050 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13051echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013052else
Reid Spencera773bd52006-08-04 18:18:08 +000013053 { echo "$as_me:$LINENO: result: no" >&5
13054echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013055fi
13056
Reid Spencera773bd52006-08-04 18:18:08 +000013057 if test "x$ac_ct_RANLIB" = x; then
13058 RANLIB=":"
13059 else
13060 case $cross_compiling:$ac_tool_warned in
13061yes:)
13062{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13063whose name does not start with the host triplet. If you think this
13064configuration is useful to you, please write to autoconf@gnu.org." >&5
13065echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13066whose name does not start with the host triplet. If you think this
13067configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13068ac_tool_warned=yes ;;
13069esac
13070 RANLIB=$ac_ct_RANLIB
13071 fi
John Criswell7a73b802003-06-30 21:59:07 +000013072else
13073 RANLIB="$ac_cv_prog_RANLIB"
13074fi
13075
13076if test -n "$ac_tool_prefix"; then
13077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13078set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013081if test "${ac_cv_prog_STRIP+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084 if test -n "$STRIP"; then
13085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13086else
13087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088for as_dir in $PATH
13089do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013093 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 +000013094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098done
13099done
Reid Spencera773bd52006-08-04 18:18:08 +000013100IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013101
13102fi
13103fi
13104STRIP=$ac_cv_prog_STRIP
13105if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013106 { echo "$as_me:$LINENO: result: $STRIP" >&5
13107echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013108else
Reid Spencera773bd52006-08-04 18:18:08 +000013109 { echo "$as_me:$LINENO: result: no" >&5
13110echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013111fi
13112
Reid Spencera773bd52006-08-04 18:18:08 +000013113
John Criswell7a73b802003-06-30 21:59:07 +000013114fi
13115if test -z "$ac_cv_prog_STRIP"; then
13116 ac_ct_STRIP=$STRIP
13117 # Extract the first word of "strip", so it can be a program name with args.
13118set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013121if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123else
13124 if test -n "$ac_ct_STRIP"; then
13125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013133 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 +000013134 ac_cv_prog_ac_ct_STRIP="strip"
13135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138done
13139done
Reid Spencera773bd52006-08-04 18:18:08 +000013140IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013141
John Criswell7a73b802003-06-30 21:59:07 +000013142fi
13143fi
13144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13145if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013146 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13147echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013148else
Reid Spencera773bd52006-08-04 18:18:08 +000013149 { echo "$as_me:$LINENO: result: no" >&5
13150echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013151fi
13152
Reid Spencera773bd52006-08-04 18:18:08 +000013153 if test "x$ac_ct_STRIP" = x; then
13154 STRIP=":"
13155 else
13156 case $cross_compiling:$ac_tool_warned in
13157yes:)
13158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13159whose name does not start with the host triplet. If you think this
13160configuration is useful to you, please write to autoconf@gnu.org." >&5
13161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13162whose name does not start with the host triplet. If you think this
13163configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13164ac_tool_warned=yes ;;
13165esac
13166 STRIP=$ac_ct_STRIP
13167 fi
John Criswell7a73b802003-06-30 21:59:07 +000013168else
13169 STRIP="$ac_cv_prog_STRIP"
13170fi
13171
13172
John Criswell7a73b802003-06-30 21:59:07 +000013173old_CC="$CC"
13174old_CFLAGS="$CFLAGS"
13175
13176# Set sane defaults for various variables
13177test -z "$AR" && AR=ar
13178test -z "$AR_FLAGS" && AR_FLAGS=cru
13179test -z "$AS" && AS=as
13180test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013181test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013182test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013183test -z "$DLLTOOL" && DLLTOOL=dlltool
13184test -z "$LD" && LD=ld
13185test -z "$LN_S" && LN_S="ln -s"
13186test -z "$MAGIC_CMD" && MAGIC_CMD=file
13187test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013188test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013189test -z "$OBJDUMP" && OBJDUMP=objdump
13190test -z "$RANLIB" && RANLIB=:
13191test -z "$STRIP" && STRIP=:
13192test -z "$ac_objext" && ac_objext=o
13193
John Criswell7a73b802003-06-30 21:59:07 +000013194# Determine commands to create old-style static archives.
13195old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13196old_postinstall_cmds='chmod 644 $oldlib'
13197old_postuninstall_cmds=
13198
13199if test -n "$RANLIB"; then
13200 case $host_os in
13201 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013202 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013203 ;;
13204 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013206 ;;
13207 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013208 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013209fi
13210
Reid Spencera773bd52006-08-04 18:18:08 +000013211for cc_temp in $compiler""; do
13212 case $cc_temp in
13213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13215 \-*) ;;
13216 *) break;;
13217 esac
13218done
13219cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13220
Reid Spencer2706f8c2004-09-19 23:53:36 +000013221
John Criswell47fdd832003-07-14 16:52:07 +000013222# Only perform the check for file, if the check method requires it
13223case $deplibs_check_method in
13224file_magic*)
13225 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013226 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13227echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013228if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013230else
John Criswell47fdd832003-07-14 16:52:07 +000013231 case $MAGIC_CMD in
13232[\\/*] | ?:[\\/]*)
13233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13234 ;;
13235*)
13236 lt_save_MAGIC_CMD="$MAGIC_CMD"
13237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13239 for ac_dir in $ac_dummy; do
13240 IFS="$lt_save_ifs"
13241 test -z "$ac_dir" && ac_dir=.
13242 if test -f $ac_dir/${ac_tool_prefix}file; then
13243 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13244 if test -n "$file_magic_test_file"; then
13245 case $deplibs_check_method in
13246 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13250 $EGREP "$file_magic_regex" > /dev/null; then
13251 :
13252 else
13253 cat <<EOF 1>&2
13254
13255*** Warning: the command libtool uses to detect shared libraries,
13256*** $file_magic_cmd, produces output that libtool cannot recognize.
13257*** The result is that libtool may fail to recognize shared libraries
13258*** as such. This will affect the creation of libtool libraries that
13259*** depend on shared libraries, but programs linked with such libtool
13260*** libraries will work regardless of this problem. Nevertheless, you
13261*** may want to report the problem to your system manager and/or to
13262*** bug-libtool@gnu.org
13263
13264EOF
13265 fi ;;
13266 esac
13267 fi
13268 break
13269 fi
13270 done
13271 IFS="$lt_save_ifs"
13272 MAGIC_CMD="$lt_save_MAGIC_CMD"
13273 ;;
13274esac
John Criswell7a73b802003-06-30 21:59:07 +000013275fi
John Criswell7a73b802003-06-30 21:59:07 +000013276
John Criswell47fdd832003-07-14 16:52:07 +000013277MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13278if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013279 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13280echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013281else
Reid Spencera773bd52006-08-04 18:18:08 +000013282 { echo "$as_me:$LINENO: result: no" >&5
13283echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013284fi
John Criswell7a73b802003-06-30 21:59:07 +000013285
John Criswell47fdd832003-07-14 16:52:07 +000013286if test -z "$lt_cv_path_MAGIC_CMD"; then
13287 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013288 { echo "$as_me:$LINENO: checking for file" >&5
13289echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013290if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293 case $MAGIC_CMD in
13294[\\/*] | ?:[\\/]*)
13295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13296 ;;
13297*)
13298 lt_save_MAGIC_CMD="$MAGIC_CMD"
13299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13301 for ac_dir in $ac_dummy; do
13302 IFS="$lt_save_ifs"
13303 test -z "$ac_dir" && ac_dir=.
13304 if test -f $ac_dir/file; then
13305 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13306 if test -n "$file_magic_test_file"; then
13307 case $deplibs_check_method in
13308 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13312 $EGREP "$file_magic_regex" > /dev/null; then
13313 :
13314 else
13315 cat <<EOF 1>&2
13316
13317*** Warning: the command libtool uses to detect shared libraries,
13318*** $file_magic_cmd, produces output that libtool cannot recognize.
13319*** The result is that libtool may fail to recognize shared libraries
13320*** as such. This will affect the creation of libtool libraries that
13321*** depend on shared libraries, but programs linked with such libtool
13322*** libraries will work regardless of this problem. Nevertheless, you
13323*** may want to report the problem to your system manager and/or to
13324*** bug-libtool@gnu.org
13325
13326EOF
13327 fi ;;
13328 esac
13329 fi
13330 break
13331 fi
13332 done
13333 IFS="$lt_save_ifs"
13334 MAGIC_CMD="$lt_save_MAGIC_CMD"
13335 ;;
13336esac
13337fi
13338
13339MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13340if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013341 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13342echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013343else
Reid Spencera773bd52006-08-04 18:18:08 +000013344 { echo "$as_me:$LINENO: result: no" >&5
13345echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013346fi
13347
13348 else
13349 MAGIC_CMD=:
13350 fi
13351fi
13352
13353 fi
13354 ;;
13355esac
13356
Reid Spencer17795972004-11-18 09:47:37 +000013357enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000013358enable_win32_dll=no
13359
Reid Spencera773bd52006-08-04 18:18:08 +000013360# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000013361if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013362 enableval=$enable_libtool_lock;
13363fi
John Criswell47fdd832003-07-14 16:52:07 +000013364
John Criswell47fdd832003-07-14 16:52:07 +000013365test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13366
John Criswell7a73b802003-06-30 21:59:07 +000013367
Reid Spencera773bd52006-08-04 18:18:08 +000013368# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000013369if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013370 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000013371else
13372 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000013373fi
13374
John Criswell7a73b802003-06-30 21:59:07 +000013375test -z "$pic_mode" && pic_mode=default
13376
John Criswell47fdd832003-07-14 16:52:07 +000013377# Use C for the default configuration in the libtool script
13378tagname=
13379lt_save_CC="$CC"
13380ac_ext=c
13381ac_cpp='$CPP $CPPFLAGS'
13382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384ac_compiler_gnu=$ac_cv_c_compiler_gnu
13385
13386
13387# Source file extension for C test sources.
13388ac_ext=c
13389
13390# Object file extension for compiled C test sources.
13391objext=o
13392objext=$objext
13393
13394# Code to be used in simple compile tests
13395lt_simple_compile_test_code="int some_variable = 0;\n"
13396
13397# Code to be used in simple link tests
13398lt_simple_link_test_code='int main(){return(0);}\n'
13399
13400
13401# If no C compiler was specified, use CC.
13402LTCC=${LTCC-"$CC"}
13403
Reid Spencera773bd52006-08-04 18:18:08 +000013404# If no C compiler flags were specified, use CFLAGS.
13405LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13406
John Criswell47fdd832003-07-14 16:52:07 +000013407# Allow CC to be a program name with arguments.
13408compiler=$CC
13409
13410
Reid Spencera773bd52006-08-04 18:18:08 +000013411# save warnings/boilerplate of simple test code
13412ac_outfile=conftest.$ac_objext
13413printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13414eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13415_lt_compiler_boilerplate=`cat conftest.err`
13416$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013417
Reid Spencera773bd52006-08-04 18:18:08 +000013418ac_outfile=conftest.$ac_objext
13419printf "$lt_simple_link_test_code" >conftest.$ac_ext
13420eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13421_lt_linker_boilerplate=`cat conftest.err`
13422$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013423
13424
John Criswell47fdd832003-07-14 16:52:07 +000013425
13426lt_prog_compiler_no_builtin_flag=
13427
13428if test "$GCC" = yes; then
13429 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13430
Reid Spencer2706f8c2004-09-19 23:53:36 +000013431
Reid Spencera773bd52006-08-04 18:18:08 +000013432{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13433echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013434if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437 lt_cv_prog_compiler_rtti_exceptions=no
13438 ac_outfile=conftest.$ac_objext
13439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13440 lt_compiler_flag="-fno-rtti -fno-exceptions"
13441 # Insert the option either (1) after the last *FLAGS variable, or
13442 # (2) before a word containing "conftest.", or (3) at the end.
13443 # Note that $ac_compile itself does not contain backslashes and begins
13444 # with a dollar sign (not a hyphen), so the echo should work correctly.
13445 # The option is referenced via a variable to avoid confusing sed.
13446 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13449 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000013450 (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013451 (eval "$lt_compile" 2>conftest.err)
13452 ac_status=$?
13453 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000013454 echo "$as_me:13453: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013455 if (exit $ac_status) && test -s "$ac_outfile"; then
13456 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013457 # So say no if there are warnings other than the usual output.
13458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013461 lt_cv_prog_compiler_rtti_exceptions=yes
13462 fi
13463 fi
13464 $rm conftest*
13465
13466fi
Reid Spencera773bd52006-08-04 18:18:08 +000013467{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13468echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013469
13470if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13471 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13472else
13473 :
13474fi
13475
13476fi
13477
13478lt_prog_compiler_wl=
13479lt_prog_compiler_pic=
13480lt_prog_compiler_static=
13481
Reid Spencera773bd52006-08-04 18:18:08 +000013482{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13483echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013484
13485 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000013486 lt_prog_compiler_wl='-Wl,'
13487 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000013488
13489 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013490 aix*)
13491 # All AIX code is PIC.
13492 if test "$host_cpu" = ia64; then
13493 # AIX 5 now supports IA64 processor
13494 lt_prog_compiler_static='-Bstatic'
13495 fi
John Criswell7a73b802003-06-30 21:59:07 +000013496 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013497
John Criswell7a73b802003-06-30 21:59:07 +000013498 amigaos*)
13499 # FIXME: we need at least 68020 code to build shared libraries, but
13500 # adding the `-m68020' flag to GCC prevents building anything better,
13501 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000013502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000013503 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013504
13505 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000013506 # PIC is the default for these OSes.
13507 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013508
13509 mingw* | pw32* | os2*)
13510 # This hack is so that the source file can tell whether it is being
13511 # built for inclusion in a dll (and should export symbols for example).
13512 lt_prog_compiler_pic='-DDLL_EXPORT'
13513 ;;
13514
John Criswell7a73b802003-06-30 21:59:07 +000013515 darwin* | rhapsody*)
13516 # PIC is the default on this platform
13517 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000013518 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000013519 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013520
Reid Spencera773bd52006-08-04 18:18:08 +000013521 interix3*)
13522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13523 # Instead, we relocate shared libraries at runtime.
13524 ;;
13525
John Criswell47fdd832003-07-14 16:52:07 +000013526 msdosdjgpp*)
13527 # Just because we use GCC doesn't mean we suddenly get shared libraries
13528 # on systems that don't support them.
13529 lt_prog_compiler_can_build_shared=no
13530 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013531 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013532
John Criswell7a73b802003-06-30 21:59:07 +000013533 sysv4*MP*)
13534 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000013535 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000013536 fi
13537 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013538
13539 hpux*)
13540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13541 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013542 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013543 hppa*64*|ia64*)
13544 # +Z the default
13545 ;;
13546 *)
13547 lt_prog_compiler_pic='-fPIC'
13548 ;;
13549 esac
13550 ;;
13551
John Criswell7a73b802003-06-30 21:59:07 +000013552 *)
John Criswell47fdd832003-07-14 16:52:07 +000013553 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000013554 ;;
13555 esac
13556 else
John Criswell47fdd832003-07-14 16:52:07 +000013557 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000013558 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013559 aix*)
13560 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013561 if test "$host_cpu" = ia64; then
13562 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000013563 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013564 else
John Criswell47fdd832003-07-14 16:52:07 +000013565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000013566 fi
13567 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013568 darwin*)
13569 # PIC is the default on this platform
13570 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000013571 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013572 xlc*)
13573 lt_prog_compiler_pic='-qnocommon'
13574 lt_prog_compiler_wl='-Wl,'
13575 ;;
13576 esac
13577 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013578
John Criswell47fdd832003-07-14 16:52:07 +000013579 mingw* | pw32* | os2*)
13580 # This hack is so that the source file can tell whether it is being
13581 # built for inclusion in a dll (and should export symbols for example).
13582 lt_prog_compiler_pic='-DDLL_EXPORT'
13583 ;;
13584
John Criswell7a73b802003-06-30 21:59:07 +000013585 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000013586 lt_prog_compiler_wl='-Wl,'
13587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13588 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013589 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013590 hppa*64*|ia64*)
13591 # +Z the default
13592 ;;
13593 *)
13594 lt_prog_compiler_pic='+Z'
13595 ;;
13596 esac
13597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13598 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000013599 ;;
13600
John Criswell47fdd832003-07-14 16:52:07 +000013601 irix5* | irix6* | nonstopux*)
13602 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013603 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000013604 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013605 ;;
13606
13607 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000013608 lt_prog_compiler_pic='-KPIC'
13609 lt_prog_compiler_static='-Bstatic'
13610 ;;
13611
13612 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000013613 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013614 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013615 lt_prog_compiler_wl='-Wl,'
13616 lt_prog_compiler_pic='-KPIC'
13617 lt_prog_compiler_static='-static'
13618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013619 pgcc* | pgf77* | pgf90* | pgf95*)
13620 # Portland Group compilers (*not* the Pentium gcc compiler,
13621 # which looks to be a dead project)
13622 lt_prog_compiler_wl='-Wl,'
13623 lt_prog_compiler_pic='-fpic'
13624 lt_prog_compiler_static='-Bstatic'
13625 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013626 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013627 lt_prog_compiler_wl='-Wl,'
13628 # All Alpha code is PIC.
13629 lt_prog_compiler_static='-non_shared'
13630 ;;
13631 esac
John Criswell7a73b802003-06-30 21:59:07 +000013632 ;;
13633
13634 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000013635 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013636 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000013637 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013638 ;;
13639
John Criswell7a73b802003-06-30 21:59:07 +000013640 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000013641 lt_prog_compiler_pic='-KPIC'
13642 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000013643 case $cc_basename in
13644 f77* | f90* | f95*)
13645 lt_prog_compiler_wl='-Qoption ld ';;
13646 *)
13647 lt_prog_compiler_wl='-Wl,';;
13648 esac
John Criswell7a73b802003-06-30 21:59:07 +000013649 ;;
13650
13651 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000013652 lt_prog_compiler_wl='-Qoption ld '
13653 lt_prog_compiler_pic='-PIC'
13654 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013655 ;;
13656
Reid Spencera773bd52006-08-04 18:18:08 +000013657 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000013658 lt_prog_compiler_wl='-Wl,'
13659 lt_prog_compiler_pic='-KPIC'
13660 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013661 ;;
13662
13663 sysv4*MP*)
13664 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000013665 lt_prog_compiler_pic='-Kconform_pic'
13666 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013667 fi
13668 ;;
13669
Reid Spencera773bd52006-08-04 18:18:08 +000013670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13671 lt_prog_compiler_wl='-Wl,'
13672 lt_prog_compiler_pic='-KPIC'
13673 lt_prog_compiler_static='-Bstatic'
13674 ;;
13675
13676 unicos*)
13677 lt_prog_compiler_wl='-Wl,'
13678 lt_prog_compiler_can_build_shared=no
13679 ;;
13680
John Criswell47fdd832003-07-14 16:52:07 +000013681 uts4*)
13682 lt_prog_compiler_pic='-pic'
13683 lt_prog_compiler_static='-Bstatic'
13684 ;;
13685
John Criswell7a73b802003-06-30 21:59:07 +000013686 *)
John Criswell47fdd832003-07-14 16:52:07 +000013687 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013688 ;;
13689 esac
13690 fi
13691
Reid Spencera773bd52006-08-04 18:18:08 +000013692{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13693echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013694
John Criswell47fdd832003-07-14 16:52:07 +000013695#
13696# Check to make sure the PIC flag actually works.
13697#
13698if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013699
Reid Spencera773bd52006-08-04 18:18:08 +000013700{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13701echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013702if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
John Criswell47fdd832003-07-14 16:52:07 +000013705 lt_prog_compiler_pic_works=no
13706 ac_outfile=conftest.$ac_objext
13707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13708 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13709 # Insert the option either (1) after the last *FLAGS variable, or
13710 # (2) before a word containing "conftest.", or (3) at the end.
13711 # Note that $ac_compile itself does not contain backslashes and begins
13712 # with a dollar sign (not a hyphen), so the echo should work correctly.
13713 # The option is referenced via a variable to avoid confusing sed.
13714 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13717 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000013718 (eval echo "\"\$as_me:13717: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013719 (eval "$lt_compile" 2>conftest.err)
13720 ac_status=$?
13721 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000013722 echo "$as_me:13721: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013723 if (exit $ac_status) && test -s "$ac_outfile"; then
13724 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013725 # So say no if there are warnings other than the usual output.
13726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013729 lt_prog_compiler_pic_works=yes
13730 fi
13731 fi
13732 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013733
John Criswell47fdd832003-07-14 16:52:07 +000013734fi
Reid Spencera773bd52006-08-04 18:18:08 +000013735{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13736echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013737
John Criswell47fdd832003-07-14 16:52:07 +000013738if test x"$lt_prog_compiler_pic_works" = xyes; then
13739 case $lt_prog_compiler_pic in
13740 "" | " "*) ;;
13741 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13742 esac
John Criswell7a73b802003-06-30 21:59:07 +000013743else
John Criswell47fdd832003-07-14 16:52:07 +000013744 lt_prog_compiler_pic=
13745 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013746fi
13747
John Criswell7a73b802003-06-30 21:59:07 +000013748fi
Reid Spencera773bd52006-08-04 18:18:08 +000013749case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013750 # For platforms which do not support PIC, -DPIC is meaningless:
13751 *djgpp*)
13752 lt_prog_compiler_pic=
13753 ;;
13754 *)
13755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13756 ;;
13757esac
John Criswell7a73b802003-06-30 21:59:07 +000013758
Reid Spencera773bd52006-08-04 18:18:08 +000013759#
13760# Check to make sure the static flag actually works.
13761#
13762wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13763{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13764echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13765if test "${lt_prog_compiler_static_works+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767else
13768 lt_prog_compiler_static_works=no
13769 save_LDFLAGS="$LDFLAGS"
13770 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13771 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13773 # The linker can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 if test -s conftest.err; then
13776 # Append any errors to the config.log.
13777 cat conftest.err 1>&5
13778 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13780 if diff conftest.exp conftest.er2 >/dev/null; then
13781 lt_prog_compiler_static_works=yes
13782 fi
13783 else
13784 lt_prog_compiler_static_works=yes
13785 fi
13786 fi
13787 $rm conftest*
13788 LDFLAGS="$save_LDFLAGS"
13789
13790fi
13791{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13792echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13793
13794if test x"$lt_prog_compiler_static_works" = xyes; then
13795 :
13796else
13797 lt_prog_compiler_static=
13798fi
13799
13800
13801{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13802echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013803if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
John Criswell47fdd832003-07-14 16:52:07 +000013806 lt_cv_prog_compiler_c_o=no
13807 $rm -r conftest 2>/dev/null
13808 mkdir conftest
13809 cd conftest
13810 mkdir out
13811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013812
John Criswell47fdd832003-07-14 16:52:07 +000013813 lt_compiler_flag="-o out/conftest2.$ac_objext"
13814 # Insert the option either (1) after the last *FLAGS variable, or
13815 # (2) before a word containing "conftest.", or (3) at the end.
13816 # Note that $ac_compile itself does not contain backslashes and begins
13817 # with a dollar sign (not a hyphen), so the echo should work correctly.
13818 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13821 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000013822 (eval echo "\"\$as_me:13821: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013823 (eval "$lt_compile" 2>out/conftest.err)
13824 ac_status=$?
13825 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000013826 echo "$as_me:13825: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13828 then
13829 # The compiler can only warn and ignore the option if not recognized
13830 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000013831 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013834 lt_cv_prog_compiler_c_o=yes
13835 fi
13836 fi
Reid Spencera773bd52006-08-04 18:18:08 +000013837 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013838 $rm conftest*
13839 # SGI C++ compiler will create directory out/ii_files/ for
13840 # template instantiation
13841 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13842 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013843 cd ..
13844 rmdir conftest
13845 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013846
13847fi
Reid Spencera773bd52006-08-04 18:18:08 +000013848{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13849echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013850
John Criswell7a73b802003-06-30 21:59:07 +000013851
John Criswell7a73b802003-06-30 21:59:07 +000013852hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000013853if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000013854 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000013855 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13856echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013857 hard_links=yes
13858 $rm conftest*
13859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13860 touch conftest.a
13861 ln conftest.a conftest.b 2>&5 || hard_links=no
13862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000013863 { echo "$as_me:$LINENO: result: $hard_links" >&5
13864echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013865 if test "$hard_links" = no; then
13866 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13867echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13868 need_locks=warn
13869 fi
13870else
13871 need_locks=no
13872fi
John Criswell7a73b802003-06-30 21:59:07 +000013873
Reid Spencera773bd52006-08-04 18:18:08 +000013874{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13875echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013876
13877 runpath_var=
13878 allow_undefined_flag=
13879 enable_shared_with_static_runtimes=no
13880 archive_cmds=
13881 archive_expsym_cmds=
13882 old_archive_From_new_cmds=
13883 old_archive_from_expsyms_cmds=
13884 export_dynamic_flag_spec=
13885 whole_archive_flag_spec=
13886 thread_safe_flag_spec=
13887 hardcode_libdir_flag_spec=
13888 hardcode_libdir_flag_spec_ld=
13889 hardcode_libdir_separator=
13890 hardcode_direct=no
13891 hardcode_minus_L=no
13892 hardcode_shlibpath_var=unsupported
13893 link_all_deplibs=unknown
13894 hardcode_automatic=no
13895 module_cmds=
13896 module_expsym_cmds=
13897 always_export_symbols=no
13898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13899 # include_expsyms should be a list of space-separated symbols to be *always*
13900 # included in the symbol list
13901 include_expsyms=
13902 # exclude_expsyms can be an extended regexp of symbols to exclude
13903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13905 # as well as any symbol that contains `d'.
13906 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13908 # platforms (ab)use it in PIC code, but their linkers get confused if
13909 # the symbol is explicitly referenced. Since portable code cannot
13910 # rely on this symbol name, it's probably fine to never include it in
13911 # preloaded symbol tables.
13912 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000013913 # Just being paranoid about ensuring that cc_basename is set.
13914 for cc_temp in $compiler""; do
13915 case $cc_temp in
13916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13918 \-*) ;;
13919 *) break;;
13920 esac
13921done
13922cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000013923
13924 case $host_os in
13925 cygwin* | mingw* | pw32*)
13926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13927 # When not using gcc, we currently assume that we are using
13928 # Microsoft Visual C++.
13929 if test "$GCC" != yes; then
13930 with_gnu_ld=no
13931 fi
13932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013933 interix*)
13934 # we just hope/assume this is gcc and not c89 (= MSVC++)
13935 with_gnu_ld=yes
13936 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013937 openbsd*)
13938 with_gnu_ld=no
13939 ;;
13940 esac
13941
13942 ld_shlibs=yes
13943 if test "$with_gnu_ld" = yes; then
13944 # If archive_cmds runs LD, not CC, wlarc should be empty
13945 wlarc='${wl}'
13946
Reid Spencera773bd52006-08-04 18:18:08 +000013947 # Set some defaults for GNU ld with shared library support. These
13948 # are reset later if shared libraries are not supported. Putting them
13949 # here allows them to be overridden if necessary.
13950 runpath_var=LD_RUN_PATH
13951 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13952 export_dynamic_flag_spec='${wl}--export-dynamic'
13953 # ancient GNU ld didn't support --whole-archive et. al.
13954 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13955 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13956 else
13957 whole_archive_flag_spec=
13958 fi
13959 supports_anon_versioning=no
13960 case `$LD -v 2>/dev/null` in
13961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13964 *\ 2.11.*) ;; # other 2.11 versions
13965 *) supports_anon_versioning=yes ;;
13966 esac
13967
John Criswell47fdd832003-07-14 16:52:07 +000013968 # See if GNU ld supports shared libraries.
13969 case $host_os in
13970 aix3* | aix4* | aix5*)
13971 # On AIX/PPC, the GNU linker is very broken
13972 if test "$host_cpu" != ia64; then
13973 ld_shlibs=no
13974 cat <<EOF 1>&2
13975
13976*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13977*** to be unable to reliably create shared libraries on AIX.
13978*** Therefore, libtool is disabling shared libraries support. If you
13979*** really care for shared libraries, you may want to modify your PATH
13980*** so that a non-GNU linker is found, and then restart.
13981
13982EOF
13983 fi
13984 ;;
13985
13986 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013987 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 +000013988 hardcode_libdir_flag_spec='-L$libdir'
13989 hardcode_minus_L=yes
13990
13991 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13992 # that the semantics of dynamic libraries on AmigaOS, at least up
13993 # to version 4, is to share data among multiple programs linked
13994 # with the same dynamic library. Since this doesn't match the
13995 # behavior of shared libraries on other platforms, we can't use
13996 # them.
13997 ld_shlibs=no
13998 ;;
13999
14000 beos*)
14001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002 allow_undefined_flag=unsupported
14003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14004 # support --undefined. This deserves some investigation. FIXME
14005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006 else
14007 ld_shlibs=no
14008 fi
14009 ;;
14010
14011 cygwin* | mingw* | pw32*)
14012 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14013 # as there is no search path for DLLs.
14014 hardcode_libdir_flag_spec='-L$libdir'
14015 allow_undefined_flag=unsupported
14016 always_export_symbols=no
14017 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014018 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 +000014019
14020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014021 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 +000014022 # If the export-symbols file already is a .def file (1st line
14023 # is EXPORTS), use it as is; otherwise, prepend...
14024 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14025 cp $export_symbols $output_objdir/$soname.def;
14026 else
14027 echo EXPORTS > $output_objdir/$soname.def;
14028 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014029 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14031 else
14032 ld_shlibs=no
14033 fi
14034 ;;
14035
14036 interix3*)
14037 hardcode_direct=no
14038 hardcode_shlibpath_var=no
14039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14040 export_dynamic_flag_spec='${wl}-E'
14041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14042 # Instead, shared libraries are loaded at an image base (0x10000000 by
14043 # default) and relocated if they conflict, which is a slow very memory
14044 # consuming and fragmenting process. To avoid this, we pick a random,
14045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14048 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'
14049 ;;
14050
14051 linux*)
14052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14053 tmp_addflag=
14054 case $cc_basename,$host_cpu in
14055 pgcc*) # Portland Group C compiler
14056 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'
14057 tmp_addflag=' $pic_flag'
14058 ;;
14059 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14060 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'
14061 tmp_addflag=' $pic_flag -Mnomain' ;;
14062 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14063 tmp_addflag=' -i_dynamic' ;;
14064 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14065 tmp_addflag=' -i_dynamic -nofor_main' ;;
14066 ifc* | ifort*) # Intel Fortran compiler
14067 tmp_addflag=' -nofor_main' ;;
14068 esac
14069 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070
14071 if test $supports_anon_versioning = yes; then
14072 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14074 $echo "local: *; };" >> $output_objdir/$libname.ver~
14075 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14076 fi
John Criswell47fdd832003-07-14 16:52:07 +000014077 else
14078 ld_shlibs=no
14079 fi
14080 ;;
14081
14082 netbsd*)
14083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14085 wlarc=
14086 else
14087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14089 fi
14090 ;;
14091
Reid Spencera773bd52006-08-04 18:18:08 +000014092 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014093 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14094 ld_shlibs=no
14095 cat <<EOF 1>&2
14096
14097*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14098*** create shared libraries on Solaris systems. Therefore, libtool
14099*** is disabling shared libraries support. We urge you to upgrade GNU
14100*** binutils to release 2.9.1 or newer. Another option is to modify
14101*** your PATH or compiler configuration so that the native linker is
14102*** used, and then restart.
14103
14104EOF
14105 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108 else
14109 ld_shlibs=no
14110 fi
14111 ;;
14112
Reid Spencera773bd52006-08-04 18:18:08 +000014113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14114 case `$LD -v 2>&1` in
14115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14116 ld_shlibs=no
14117 cat <<_LT_EOF 1>&2
14118
14119*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14120*** reliably create shared libraries on SCO systems. Therefore, libtool
14121*** is disabling shared libraries support. We urge you to upgrade GNU
14122*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14123*** your PATH or compiler configuration so that the native linker is
14124*** used, and then restart.
14125
14126_LT_EOF
14127 ;;
14128 *)
14129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14130 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14133 else
14134 ld_shlibs=no
14135 fi
14136 ;;
14137 esac
14138 ;;
14139
John Criswell47fdd832003-07-14 16:52:07 +000014140 sunos4*)
14141 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14142 wlarc=
14143 hardcode_direct=yes
14144 hardcode_shlibpath_var=no
14145 ;;
14146
14147 *)
14148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14151 else
14152 ld_shlibs=no
14153 fi
14154 ;;
14155 esac
14156
Reid Spencera773bd52006-08-04 18:18:08 +000014157 if test "$ld_shlibs" = no; then
14158 runpath_var=
14159 hardcode_libdir_flag_spec=
14160 export_dynamic_flag_spec=
14161 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014162 fi
14163 else
14164 # PORTME fill in a description of your system's linker (not GNU ld)
14165 case $host_os in
14166 aix3*)
14167 allow_undefined_flag=unsupported
14168 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014169 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 +000014170 # Note: this linker hardcodes the directories in LIBPATH if there
14171 # are no directories specified by -L.
14172 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014173 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014174 # Neither direct hardcoding nor static linking is supported with a
14175 # broken collect2.
14176 hardcode_direct=unsupported
14177 fi
14178 ;;
14179
14180 aix4* | aix5*)
14181 if test "$host_cpu" = ia64; then
14182 # On IA64, the linker does run time linking by default, so we don't
14183 # have to do anything special.
14184 aix_use_runtimelinking=no
14185 exp_sym_flag='-Bexport'
14186 no_entry_flag=""
14187 else
14188 # If we're using GNU nm, then we don't want the "-C" option.
14189 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14190 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14191 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'
14192 else
14193 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'
14194 fi
14195 aix_use_runtimelinking=no
14196
14197 # Test if we are trying to use run time linking or normal
14198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14199 # need to do runtime linking.
14200 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14201 for ld_flag in $LDFLAGS; do
14202 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14203 aix_use_runtimelinking=yes
14204 break
14205 fi
14206 done
Reid Spencera773bd52006-08-04 18:18:08 +000014207 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014208 esac
14209
14210 exp_sym_flag='-bexport'
14211 no_entry_flag='-bnoentry'
14212 fi
14213
14214 # When large executables or shared objects are built, AIX ld can
14215 # have problems creating the table of contents. If linking a library
14216 # or program results in "error TOC overflow" add -mminimal-toc to
14217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14219
14220 archive_cmds=''
14221 hardcode_direct=yes
14222 hardcode_libdir_separator=':'
14223 link_all_deplibs=yes
14224
14225 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014226 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014227 # We only want to do this on AIX 4.2 and lower, the check
14228 # below for broken collect2 doesn't work under 4.3+
14229 collect2name=`${CC} -print-prog-name=collect2`
14230 if test -f "$collect2name" && \
14231 strings "$collect2name" | grep resolve_lib_name >/dev/null
14232 then
14233 # We have reworked collect2
14234 hardcode_direct=yes
14235 else
14236 # We have old collect2
14237 hardcode_direct=unsupported
14238 # It fails to find uninstalled libraries when the uninstalled
14239 # path is not listed in the libpath. Setting hardcode_minus_L
14240 # to unsupported forces relinking
14241 hardcode_minus_L=yes
14242 hardcode_libdir_flag_spec='-L$libdir'
14243 hardcode_libdir_separator=
14244 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014245 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014246 esac
14247 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014248 if test "$aix_use_runtimelinking" = yes; then
14249 shared_flag="$shared_flag "'${wl}-G'
14250 fi
John Criswell47fdd832003-07-14 16:52:07 +000014251 else
14252 # not using gcc
14253 if test "$host_cpu" = ia64; then
14254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14255 # chokes on -Wl,-G. The following line is correct:
14256 shared_flag='-G'
14257 else
Reid Spencera773bd52006-08-04 18:18:08 +000014258 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014259 shared_flag='${wl}-G'
14260 else
14261 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014262 fi
John Criswell47fdd832003-07-14 16:52:07 +000014263 fi
14264 fi
14265
14266 # It seems that -bexpall does not export symbols beginning with
14267 # underscore (_), so it is better to generate a list of symbols to export.
14268 always_export_symbols=yes
14269 if test "$aix_use_runtimelinking" = yes; then
14270 # Warning - without using the other runtime loading flags (-brtl),
14271 # -berok will link without error, but may produce a broken library.
14272 allow_undefined_flag='-berok'
14273 # Determine the default libpath from the value encoded in an empty executable.
14274 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014280
John Criswell7a73b802003-06-30 21:59:07 +000014281int
14282main ()
14283{
John Criswell47fdd832003-07-14 16:52:07 +000014284
John Criswell7a73b802003-06-30 21:59:07 +000014285 ;
14286 return 0;
14287}
14288_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014289rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014290if { (ac_try="$ac_link"
14291case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294esac
14295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest$ac_exeext &&
14306 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014307
John Criswell47fdd832003-07-14 16:52:07 +000014308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14309}'`
14310# Check for a 64-bit object if we didn't find anything.
14311if 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; }
14312}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014313else
14314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014315sed 's/^/| /' conftest.$ac_ext >&5
14316
Reid Spencera773bd52006-08-04 18:18:08 +000014317
John Criswell7a73b802003-06-30 21:59:07 +000014318fi
Reid Spencera773bd52006-08-04 18:18:08 +000014319
Scott Michel96dcd2b2007-12-05 21:24:02 +000014320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014321 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014323
John Criswell47fdd832003-07-14 16:52:07 +000014324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000014325 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 +000014326 else
14327 if test "$host_cpu" = ia64; then
14328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14329 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000014330 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 +000014331 else
14332 # Determine the default libpath from the value encoded in an empty executable.
14333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014339
John Criswell47fdd832003-07-14 16:52:07 +000014340int
14341main ()
14342{
John Criswell7a73b802003-06-30 21:59:07 +000014343
John Criswell47fdd832003-07-14 16:52:07 +000014344 ;
14345 return 0;
14346}
14347_ACEOF
14348rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014349if { (ac_try="$ac_link"
14350case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014361 (exit $ac_status); } && {
14362 test -z "$ac_c_werror_flag" ||
14363 test ! -s conftest.err
14364 } && test -s conftest$ac_exeext &&
14365 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014366
John Criswell47fdd832003-07-14 16:52:07 +000014367aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14368}'`
14369# Check for a 64-bit object if we didn't find anything.
14370if 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; }
14371}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014372else
John Criswell47fdd832003-07-14 16:52:07 +000014373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014374sed 's/^/| /' conftest.$ac_ext >&5
14375
Reid Spencera773bd52006-08-04 18:18:08 +000014376
John Criswell47fdd832003-07-14 16:52:07 +000014377fi
Reid Spencera773bd52006-08-04 18:18:08 +000014378
Scott Michel96dcd2b2007-12-05 21:24:02 +000014379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014380 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014382
John Criswell47fdd832003-07-14 16:52:07 +000014383 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14384 # Warning - without using the other run time loading flags,
14385 # -berok will link without error, but may produce a broken library.
14386 no_undefined_flag=' ${wl}-bernotok'
14387 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000014388 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000014389 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000014390 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014391 # This is similar to how AIX traditionally builds its shared libraries.
14392 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 +000014393 fi
14394 fi
John Criswell7a73b802003-06-30 21:59:07 +000014395 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014396
14397 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014398 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 +000014399 hardcode_libdir_flag_spec='-L$libdir'
14400 hardcode_minus_L=yes
14401 # see comment about different semantics on the GNU ld section
14402 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000014403 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014404
Reid Spencer2706f8c2004-09-19 23:53:36 +000014405 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014406 export_dynamic_flag_spec=-rdynamic
14407 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014408
John Criswell47fdd832003-07-14 16:52:07 +000014409 cygwin* | mingw* | pw32*)
14410 # When not using gcc, we currently assume that we are using
14411 # Microsoft Visual C++.
14412 # hardcode_libdir_flag_spec is actually meaningless, as there is
14413 # no search path for DLLs.
14414 hardcode_libdir_flag_spec=' '
14415 allow_undefined_flag=unsupported
14416 # Tell ltmain to make .lib files, not .a files.
14417 libext=lib
14418 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014419 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014420 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014421 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000014422 # The linker will automatically build a .lib file if we build a DLL.
14423 old_archive_From_new_cmds='true'
14424 # FIXME: Should let the user specify the lib program.
14425 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14426 fix_srcfile_path='`cygpath -w "$srcfile"`'
14427 enable_shared_with_static_runtimes=yes
14428 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014429
John Criswell47fdd832003-07-14 16:52:07 +000014430 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000014431 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014432 rhapsody* | darwin1.[012])
14433 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14434 ;;
14435 *) # Darwin 1.3 on
14436 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14437 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14438 else
14439 case ${MACOSX_DEPLOYMENT_TARGET} in
14440 10.[012])
14441 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14442 ;;
14443 10.*)
14444 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14445 ;;
14446 esac
14447 fi
14448 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014449 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014450 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014451 hardcode_direct=no
14452 hardcode_automatic=yes
14453 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014454 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000014455 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014456 if test "$GCC" = yes ; then
14457 output_verbose_link_cmd='echo'
14458 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14459 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014460 # 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 +000014461 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}'
14462 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 +000014463 else
Reid Spencera773bd52006-08-04 18:18:08 +000014464 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014465 xlc*)
14466 output_verbose_link_cmd='echo'
14467 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14468 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014469 # 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 +000014470 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}'
14471 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 +000014472 ;;
14473 *)
14474 ld_shlibs=no
14475 ;;
14476 esac
John Criswell7a73b802003-06-30 21:59:07 +000014477 fi
John Criswell47fdd832003-07-14 16:52:07 +000014478 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014479
John Criswell47fdd832003-07-14 16:52:07 +000014480 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000014481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014482 hardcode_libdir_flag_spec='-L$libdir'
14483 hardcode_shlibpath_var=no
14484 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014485
John Criswell47fdd832003-07-14 16:52:07 +000014486 freebsd1*)
14487 ld_shlibs=no
14488 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014489
John Criswell47fdd832003-07-14 16:52:07 +000014490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14491 # support. Future versions do this automatically, but an explicit c++rt0.o
14492 # does not break anything, and helps significantly (at the cost of a little
14493 # extra space).
14494 freebsd2.2*)
14495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14496 hardcode_libdir_flag_spec='-R$libdir'
14497 hardcode_direct=yes
14498 hardcode_shlibpath_var=no
14499 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014500
John Criswell47fdd832003-07-14 16:52:07 +000014501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14502 freebsd2*)
14503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14504 hardcode_direct=yes
14505 hardcode_minus_L=yes
14506 hardcode_shlibpath_var=no
14507 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014508
John Criswell47fdd832003-07-14 16:52:07 +000014509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000014510 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000014511 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14512 hardcode_libdir_flag_spec='-R$libdir'
14513 hardcode_direct=yes
14514 hardcode_shlibpath_var=no
14515 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014516
John Criswell47fdd832003-07-14 16:52:07 +000014517 hpux9*)
14518 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014519 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 +000014520 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014521 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 +000014522 fi
14523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14524 hardcode_libdir_separator=:
14525 hardcode_direct=yes
14526
14527 # hardcode_minus_L: Not really in the search PATH,
14528 # but as the default location of the library.
14529 hardcode_minus_L=yes
14530 export_dynamic_flag_spec='${wl}-E'
14531 ;;
14532
Reid Spencera773bd52006-08-04 18:18:08 +000014533 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000014534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14536 else
14537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14538 fi
14539 if test "$with_gnu_ld" = no; then
14540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14541 hardcode_libdir_separator=:
14542
14543 hardcode_direct=yes
14544 export_dynamic_flag_spec='${wl}-E'
14545
14546 # hardcode_minus_L: Not really in the search PATH,
14547 # but as the default location of the library.
14548 hardcode_minus_L=yes
14549 fi
14550 ;;
14551
14552 hpux11*)
14553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14554 case $host_cpu in
14555 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000014556 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14557 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014558 ia64*)
14559 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14560 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014561 *)
14562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14563 ;;
14564 esac
14565 else
Reid Spencera773bd52006-08-04 18:18:08 +000014566 case $host_cpu in
14567 hppa*64*)
14568 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14569 ;;
14570 ia64*)
14571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014572 ;;
14573 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014574 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 +000014575 ;;
14576 esac
14577 fi
14578 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14580 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000014581
Reid Spencera773bd52006-08-04 18:18:08 +000014582 case $host_cpu in
14583 hppa*64*|ia64*)
14584 hardcode_libdir_flag_spec_ld='+b $libdir'
14585 hardcode_direct=no
14586 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000014587 ;;
14588 *)
John Criswell47fdd832003-07-14 16:52:07 +000014589 hardcode_direct=yes
14590 export_dynamic_flag_spec='${wl}-E'
14591
14592 # hardcode_minus_L: Not really in the search PATH,
14593 # but as the default location of the library.
14594 hardcode_minus_L=yes
14595 ;;
14596 esac
14597 fi
14598 ;;
14599
14600 irix5* | irix6* | nonstopux*)
14601 if test "$GCC" = yes; then
14602 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'
14603 else
14604 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'
14605 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14606 fi
14607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14608 hardcode_libdir_separator=:
14609 link_all_deplibs=yes
14610 ;;
14611
14612 netbsd*)
14613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14615 else
14616 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14617 fi
14618 hardcode_libdir_flag_spec='-R$libdir'
14619 hardcode_direct=yes
14620 hardcode_shlibpath_var=no
14621 ;;
14622
14623 newsos6)
14624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14625 hardcode_direct=yes
14626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14627 hardcode_libdir_separator=:
14628 hardcode_shlibpath_var=no
14629 ;;
14630
14631 openbsd*)
14632 hardcode_direct=yes
14633 hardcode_shlibpath_var=no
14634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014636 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 +000014637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14638 export_dynamic_flag_spec='${wl}-E'
14639 else
14640 case $host_os in
14641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_libdir_flag_spec='-R$libdir'
14644 ;;
14645 *)
14646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14648 ;;
14649 esac
14650 fi
14651 ;;
14652
14653 os2*)
14654 hardcode_libdir_flag_spec='-L$libdir'
14655 hardcode_minus_L=yes
14656 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014657 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 +000014658 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14659 ;;
14660
14661 osf3*)
14662 if test "$GCC" = yes; then
14663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14664 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'
14665 else
14666 allow_undefined_flag=' -expect_unresolved \*'
14667 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'
14668 fi
14669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14670 hardcode_libdir_separator=:
14671 ;;
14672
14673 osf4* | osf5*) # as osf3* with the addition of -msym flag
14674 if test "$GCC" = yes; then
14675 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14676 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'
14677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14678 else
14679 allow_undefined_flag=' -expect_unresolved \*'
14680 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 +000014681 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 +000014682 $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 +000014683
John Criswell47fdd832003-07-14 16:52:07 +000014684 # Both c and cxx compiler support -rpath directly
14685 hardcode_libdir_flag_spec='-rpath $libdir'
14686 fi
14687 hardcode_libdir_separator=:
14688 ;;
14689
John Criswell47fdd832003-07-14 16:52:07 +000014690 solaris*)
14691 no_undefined_flag=' -z text'
14692 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014693 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000014694 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_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 $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 +000014697 else
Reid Spencera773bd52006-08-04 18:18:08 +000014698 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000014699 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014700 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14701 $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 +000014702 fi
14703 hardcode_libdir_flag_spec='-R$libdir'
14704 hardcode_shlibpath_var=no
14705 case $host_os in
14706 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014707 *)
14708 # The compiler driver will combine linker options so we
14709 # cannot just pass the convience library names through
14710 # without $wl, iff we do not link with $LD.
14711 # Luckily, gcc supports the same syntax we need for Sun Studio.
14712 # Supported since Solaris 2.6 (maybe 2.5.1?)
14713 case $wlarc in
14714 '')
14715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14716 *)
14717 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' ;;
14718 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000014719 esac
14720 link_all_deplibs=yes
14721 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014722
John Criswell47fdd832003-07-14 16:52:07 +000014723 sunos4*)
14724 if test "x$host_vendor" = xsequent; then
14725 # Use $CC to link under sequent, because it throws in some extra .o
14726 # files that make .init and .fini sections work.
14727 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14728 else
14729 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14730 fi
14731 hardcode_libdir_flag_spec='-L$libdir'
14732 hardcode_direct=yes
14733 hardcode_minus_L=yes
14734 hardcode_shlibpath_var=no
14735 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014736
John Criswell47fdd832003-07-14 16:52:07 +000014737 sysv4)
14738 case $host_vendor in
14739 sni)
14740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14741 hardcode_direct=yes # is this really true???
14742 ;;
14743 siemens)
14744 ## LD is ld it makes a PLAMLIB
14745 ## CC just makes a GrossModule.
14746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14747 reload_cmds='$CC -r -o $output$reload_objs'
14748 hardcode_direct=no
14749 ;;
14750 motorola)
14751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14752 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14753 ;;
14754 esac
14755 runpath_var='LD_RUN_PATH'
14756 hardcode_shlibpath_var=no
14757 ;;
14758
14759 sysv4.3*)
14760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_shlibpath_var=no
14762 export_dynamic_flag_spec='-Bexport'
14763 ;;
14764
14765 sysv4*MP*)
14766 if test -d /usr/nec; then
14767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14768 hardcode_shlibpath_var=no
14769 runpath_var=LD_RUN_PATH
14770 hardcode_runpath_var=yes
14771 ld_shlibs=yes
14772 fi
14773 ;;
14774
Reid Spencera773bd52006-08-04 18:18:08 +000014775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14776 no_undefined_flag='${wl}-z,text'
14777 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014778 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014779 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000014780
John Criswell47fdd832003-07-14 16:52:07 +000014781 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14783 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 +000014784 else
Reid Spencera773bd52006-08-04 18:18:08 +000014785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14786 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 +000014787 fi
John Criswell47fdd832003-07-14 16:52:07 +000014788 ;;
14789
Reid Spencera773bd52006-08-04 18:18:08 +000014790 sysv5* | sco3.2v5* | sco5v6*)
14791 # Note: We can NOT use -z defs as we might desire, because we do not
14792 # link with -lc, and that would cause any symbols used from libc to
14793 # always be unresolved, which means just about no library would
14794 # ever link correctly. If we're not using GNU ld we use -z text
14795 # though, which does catch some bad symbols but isn't as heavy-handed
14796 # as -z defs.
14797 no_undefined_flag='${wl}-z,text'
14798 allow_undefined_flag='${wl}-z,nodefs'
14799 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014800 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014801 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14802 hardcode_libdir_separator=':'
14803 link_all_deplibs=yes
14804 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000014805 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000014806
14807 if test "$GCC" = yes; then
14808 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14810 else
14811 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14813 fi
John Criswell47fdd832003-07-14 16:52:07 +000014814 ;;
14815
14816 uts4*)
14817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_libdir_flag_spec='-L$libdir'
14819 hardcode_shlibpath_var=no
14820 ;;
14821
14822 *)
14823 ld_shlibs=no
14824 ;;
14825 esac
14826 fi
14827
Reid Spencera773bd52006-08-04 18:18:08 +000014828{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14829echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014830test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014831
John Criswell47fdd832003-07-14 16:52:07 +000014832#
14833# Do we need to explicitly link libc?
14834#
14835case "x$archive_cmds_need_lc" in
14836x|xyes)
14837 # Assume -lc should be added
14838 archive_cmds_need_lc=yes
14839
14840 if test "$enable_shared" = yes && test "$GCC" = yes; then
14841 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014842 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014843 # FIXME: we may have to deal with multi-command sequences.
14844 ;;
14845 '$CC '*)
14846 # Test whether the compiler implicitly links with -lc since on some
14847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14848 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000014849 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14850echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014851 $rm conftest*
14852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14853
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } 2>conftest.err; then
14859 soname=conftest
14860 lib=conftest
14861 libobjs=conftest.$ac_objext
14862 deplibs=
14863 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000014864 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000014865 compiler_flags=-v
14866 linker_flags=-v
14867 verstring=
14868 output_objdir=.
14869 libname=conftest
14870 lt_save_allow_undefined_flag=$allow_undefined_flag
14871 allow_undefined_flag=
14872 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14873 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }
14877 then
14878 archive_cmds_need_lc=no
14879 else
14880 archive_cmds_need_lc=yes
14881 fi
14882 allow_undefined_flag=$lt_save_allow_undefined_flag
14883 else
14884 cat conftest.err 1>&5
14885 fi
14886 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000014887 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14888echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014889 ;;
14890 esac
14891 fi
14892 ;;
14893esac
14894
Reid Spencera773bd52006-08-04 18:18:08 +000014895{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14896echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014897library_names_spec=
14898libname_spec='lib$name'
14899soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014900shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000014901postinstall_cmds=
14902postuninstall_cmds=
14903finish_cmds=
14904finish_eval=
14905shlibpath_var=
14906shlibpath_overrides_runpath=unknown
14907version_type=none
14908dynamic_linker="$host_os ld.so"
14909sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014910if test "$GCC" = yes; then
14911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14912 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14913 # if the path contains ";" then we assume it to be the separator
14914 # otherwise default to the standard path separator (i.e. ":") - it is
14915 # assumed that no part of a normal pathname contains ";" but that should
14916 # okay in the real world where ";" in dirpaths is itself problematic.
14917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14918 else
14919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14920 fi
14921else
14922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14923fi
14924need_lib_prefix=unknown
14925hardcode_into_libs=no
14926
14927# when you set need_version to no, make sure it does not cause -set_version
14928# flags to be left without arguments
14929need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000014930
14931case $host_os in
14932aix3*)
14933 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000014935 shlibpath_var=LIBPATH
14936
John Criswell47fdd832003-07-14 16:52:07 +000014937 # AIX 3 has no versioning support, so we append a major version to the name.
14938 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014939 ;;
14940
14941aix4* | aix5*)
14942 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014943 need_lib_prefix=no
14944 need_version=no
14945 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000014946 if test "$host_cpu" = ia64; then
14947 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000014948 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014949 shlibpath_var=LD_LIBRARY_PATH
14950 else
14951 # With GCC up to 2.95.x, collect2 would create an import file
14952 # for dependence libraries. The import file would start with
14953 # the line `#! .'. This would cause the generated library to
14954 # depend on `.', always an invalid library. This was fixed in
14955 # development snapshots of GCC prior to 3.0.
14956 case $host_os in
14957 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000014958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14959 echo ' yes '
14960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14961 :
14962 else
14963 can_build_shared=no
14964 fi
14965 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014966 esac
John Criswell47fdd832003-07-14 16:52:07 +000014967 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14968 # soname into executable. Probably we can add versioning support to
14969 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000014970 if test "$aix_use_runtimelinking" = yes; then
14971 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14972 # instead of lib<name>.a to let people know that these are not
14973 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014975 else
14976 # We preserve .a as extension for shared libraries through AIX4.2
14977 # and later when we are not doing run time linking.
14978 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000014979 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014980 fi
14981 shlibpath_var=LIBPATH
14982 fi
14983 ;;
14984
14985amigaos*)
14986 library_names_spec='$libname.ixlibrary $libname.a'
14987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014988 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 +000014989 ;;
14990
14991beos*)
John Criswell47fdd832003-07-14 16:52:07 +000014992 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014993 dynamic_linker="$host_os ld.so"
14994 shlibpath_var=LIBRARY_PATH
14995 ;;
14996
Reid Spencer2706f8c2004-09-19 23:53:36 +000014997bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000014998 version_type=linux
14999 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015006 # the default ld.so.conf also contains /usr/contrib/lib and
15007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15008 # libtool to hard-code these into programs
15009 ;;
15010
15011cygwin* | mingw* | pw32*)
15012 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015013 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015014 need_version=no
15015 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015016
John Criswell7a73b802003-06-30 21:59:07 +000015017 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015018 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015019 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015021 postinstall_cmds='base_file=`basename \${file}`~
15022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15023 dldir=$destdir/`dirname \$dlpath`~
15024 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015025 $install_prog $dir/$dlname \$dldir/$dlname~
15026 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15028 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015029 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015030 shlibpath_overrides_runpath=yes
15031
15032 case $host_os in
15033 cygwin*)
15034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15035 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 +000015036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015037 ;;
15038 mingw*)
15039 # MinGW DLLs use traditional 'lib' prefix
15040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15043 # It is most probably a Windows format PATH printed by
15044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15045 # path with ; separators, and with drive letters. We can handle the
15046 # drive letters (cygwin fileutils understands them), so leave them,
15047 # especially as we might pass files found there to a mingw objdump,
15048 # which wouldn't understand a cygwinified path. Ahh.
15049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15050 else
15051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15052 fi
15053 ;;
15054 pw32*)
15055 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015056 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 +000015057 ;;
15058 esac
John Criswell7a73b802003-06-30 21:59:07 +000015059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015060
John Criswell7a73b802003-06-30 21:59:07 +000015061 *)
John Criswell47fdd832003-07-14 16:52:07 +000015062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015063 ;;
15064 esac
15065 dynamic_linker='Win32 ld.exe'
15066 # FIXME: first we should search . and the directory the executable is in
15067 shlibpath_var=PATH
15068 ;;
15069
15070darwin* | rhapsody*)
15071 dynamic_linker="$host_os dyld"
15072 version_type=darwin
15073 need_lib_prefix=no
15074 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015076 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015077 shlibpath_overrides_runpath=yes
15078 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015079 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015080 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015081 if test "$GCC" = yes; then
15082 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"`
15083 else
15084 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015085 fi
15086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15087 ;;
15088
15089dgux*)
15090 version_type=linux
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015096 ;;
15097
15098freebsd1*)
15099 dynamic_linker=no
15100 ;;
15101
Reid Spencer2706f8c2004-09-19 23:53:36 +000015102kfreebsd*-gnu)
15103 version_type=linux
15104 need_lib_prefix=no
15105 need_version=no
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15111 dynamic_linker='GNU ld.so'
15112 ;;
15113
Reid Spencera773bd52006-08-04 18:18:08 +000015114freebsd* | dragonfly*)
15115 # DragonFly does not have aout. When/if they implement a new
15116 # versioning mechanism, adjust this.
15117 if test -x /usr/bin/objformat; then
15118 objformat=`/usr/bin/objformat`
15119 else
15120 case $host_os in
15121 freebsd[123]*) objformat=aout ;;
15122 *) objformat=elf ;;
15123 esac
15124 fi
John Criswell7a73b802003-06-30 21:59:07 +000015125 version_type=freebsd-$objformat
15126 case $version_type in
15127 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015129 need_version=no
15130 need_lib_prefix=no
15131 ;;
15132 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015134 need_version=yes
15135 ;;
15136 esac
15137 shlibpath_var=LD_LIBRARY_PATH
15138 case $host_os in
15139 freebsd2*)
15140 shlibpath_overrides_runpath=yes
15141 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015142 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15145 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015148 shlibpath_overrides_runpath=no
15149 hardcode_into_libs=yes
15150 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015151 freebsd*) # from 4.6 on
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15154 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015155 esac
15156 ;;
15157
15158gnu*)
15159 version_type=linux
15160 need_lib_prefix=no
15161 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015164 shlibpath_var=LD_LIBRARY_PATH
15165 hardcode_into_libs=yes
15166 ;;
15167
15168hpux9* | hpux10* | hpux11*)
15169 # Give a soname corresponding to the major version so that dld.sl refuses to
15170 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015171 version_type=sunos
15172 need_lib_prefix=no
15173 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015174 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015175 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015176 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015177 hardcode_into_libs=yes
15178 dynamic_linker="$host_os dld.so"
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 if test "X$HPUX_IA64_MODE" = X32; then
15184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15185 else
15186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15187 fi
15188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15189 ;;
15190 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015191 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015192 hardcode_into_libs=yes
15193 dynamic_linker="$host_os dld.sl"
15194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 soname_spec='${libname}${release}${shared_ext}$major'
15198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15200 ;;
15201 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015202 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015203 dynamic_linker="$host_os dld.sl"
15204 shlibpath_var=SHLIB_PATH
15205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 ;;
15209 esac
John Criswell7a73b802003-06-30 21:59:07 +000015210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15211 postinstall_cmds='chmod 555 $lib'
15212 ;;
15213
Reid Spencera773bd52006-08-04 18:18:08 +000015214interix3*)
15215 version_type=linux
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=no
15223 hardcode_into_libs=yes
15224 ;;
15225
John Criswell47fdd832003-07-14 16:52:07 +000015226irix5* | irix6* | nonstopux*)
15227 case $host_os in
15228 nonstopux*) version_type=nonstopux ;;
15229 *)
15230 if test "$lt_cv_prog_gnu_ld" = yes; then
15231 version_type=linux
15232 else
15233 version_type=irix
15234 fi ;;
15235 esac
John Criswell7a73b802003-06-30 21:59:07 +000015236 need_lib_prefix=no
15237 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015238 soname_spec='${libname}${release}${shared_ext}$major'
15239 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 +000015240 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015241 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015242 libsuff= shlibsuff=
15243 ;;
15244 *)
15245 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15247 libsuff= shlibsuff= libmagic=32-bit;;
15248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15249 libsuff=32 shlibsuff=N32 libmagic=N32;;
15250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015252 *) libsuff= shlibsuff= libmagic=never-match;;
15253 esac
15254 ;;
15255 esac
15256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15257 shlibpath_overrides_runpath=no
15258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015260 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015261 ;;
15262
15263# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015264linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015265 dynamic_linker=no
15266 ;;
15267
15268# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015269linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015270 version_type=linux
15271 need_lib_prefix=no
15272 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 # This implies no fast_install, which is unacceptable.
15279 # Some rework will be needed to allow for fast_install
15280 # before this can be enabled.
15281 hardcode_into_libs=yes
15282
Reid Spencer2706f8c2004-09-19 23:53:36 +000015283 # Append ld.so.conf contents to the search path
15284 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000015285 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 +000015286 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15287 fi
15288
John Criswell7a73b802003-06-30 21:59:07 +000015289 # We used to test for /lib/ld.so.1 and disable shared libraries on
15290 # powerpc, because MkLinux only supported shared libraries with the
15291 # GNU dynamic linker. Since this was broken with cross compilers,
15292 # most powerpc-linux boxes support dynamic linking these days and
15293 # people can always --disable-shared, the test was removed, and we
15294 # assume the GNU/Linux dynamic linker is in use.
15295 dynamic_linker='GNU/Linux ld.so'
15296 ;;
15297
Reid Spencer2706f8c2004-09-19 23:53:36 +000015298knetbsd*-gnu)
15299 version_type=linux
15300 need_lib_prefix=no
15301 need_version=no
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 shlibpath_overrides_runpath=no
15306 hardcode_into_libs=yes
15307 dynamic_linker='GNU ld.so'
15308 ;;
15309
John Criswell7a73b802003-06-30 21:59:07 +000015310netbsd*)
15311 version_type=sunos
15312 need_lib_prefix=no
15313 need_version=no
15314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15317 dynamic_linker='NetBSD (a.out) ld.so'
15318 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015320 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015321 dynamic_linker='NetBSD ld.elf_so'
15322 fi
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 ;;
15327
15328newsos6)
15329 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=yes
15333 ;;
15334
Reid Spencer2706f8c2004-09-19 23:53:36 +000015335nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015336 version_type=linux
15337 need_lib_prefix=no
15338 need_version=no
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015341 shlibpath_var=LD_LIBRARY_PATH
15342 shlibpath_overrides_runpath=yes
15343 ;;
15344
15345openbsd*)
15346 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000015347 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015348 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000015349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15350 case $host_os in
15351 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15352 *) need_version=no ;;
15353 esac
John Criswell47fdd832003-07-14 16:52:07 +000015354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015357 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 +000015358 case $host_os in
15359 openbsd2.[89] | openbsd2.[89].*)
15360 shlibpath_overrides_runpath=no
15361 ;;
15362 *)
15363 shlibpath_overrides_runpath=yes
15364 ;;
15365 esac
John Criswell7a73b802003-06-30 21:59:07 +000015366 else
15367 shlibpath_overrides_runpath=yes
15368 fi
John Criswell7a73b802003-06-30 21:59:07 +000015369 ;;
15370
15371os2*)
15372 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015373 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015374 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015375 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015376 dynamic_linker='OS/2 ld.exe'
15377 shlibpath_var=LIBPATH
15378 ;;
15379
15380osf3* | osf4* | osf5*)
15381 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000015382 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015383 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015384 soname_spec='${libname}${release}${shared_ext}$major'
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015386 shlibpath_var=LD_LIBRARY_PATH
15387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15389 ;;
15390
John Criswell7a73b802003-06-30 21:59:07 +000015391solaris*)
15392 version_type=linux
15393 need_lib_prefix=no
15394 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15400 # ldd complains unless libraries are executable
15401 postinstall_cmds='chmod +x $lib'
15402 ;;
15403
15404sunos4*)
15405 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000015406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 if test "$with_gnu_ld" = yes; then
15411 need_lib_prefix=no
15412 fi
15413 need_version=yes
15414 ;;
15415
Reid Spencera773bd52006-08-04 18:18:08 +000015416sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000015417 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015420 shlibpath_var=LD_LIBRARY_PATH
15421 case $host_vendor in
15422 sni)
15423 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000015424 need_lib_prefix=no
15425 export_dynamic_flag_spec='${wl}-Blargedynsym'
15426 runpath_var=LD_RUN_PATH
15427 ;;
15428 siemens)
15429 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015430 ;;
15431 motorola)
15432 need_lib_prefix=no
15433 need_version=no
15434 shlibpath_overrides_runpath=no
15435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15436 ;;
15437 esac
15438 ;;
15439
John Criswell7a73b802003-06-30 21:59:07 +000015440sysv4*MP*)
15441 if test -d /usr/nec ;then
15442 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15444 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000015445 shlibpath_var=LD_LIBRARY_PATH
15446 fi
15447 ;;
15448
Reid Spencera773bd52006-08-04 18:18:08 +000015449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15450 version_type=freebsd-elf
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 hardcode_into_libs=yes
15457 if test "$with_gnu_ld" = yes; then
15458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15459 shlibpath_overrides_runpath=no
15460 else
15461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15462 shlibpath_overrides_runpath=yes
15463 case $host_os in
15464 sco3.2v5*)
15465 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15466 ;;
15467 esac
15468 fi
15469 sys_lib_dlsearch_path_spec='/usr/lib'
15470 ;;
15471
John Criswell47fdd832003-07-14 16:52:07 +000015472uts4*)
15473 version_type=linux
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 ;;
15478
John Criswell7a73b802003-06-30 21:59:07 +000015479*)
15480 dynamic_linker=no
15481 ;;
15482esac
Reid Spencera773bd52006-08-04 18:18:08 +000015483{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15484echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015485test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015486
Reid Spencera773bd52006-08-04 18:18:08 +000015487variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15488if test "$GCC" = yes; then
15489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15490fi
15491
15492{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15493echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015494hardcode_action=
15495if test -n "$hardcode_libdir_flag_spec" || \
15496 test -n "$runpath_var" || \
15497 test "X$hardcode_automatic" = "Xyes" ; then
15498
15499 # We can hardcode non-existant directories.
15500 if test "$hardcode_direct" != no &&
15501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15502 # have to relink, otherwise we might link with an installed library
15503 # when we should be linking with a yet-to-be-installed one
15504 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15505 test "$hardcode_minus_L" != no; then
15506 # Linking always hardcodes the temporary library directory.
15507 hardcode_action=relink
15508 else
15509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15510 hardcode_action=immediate
15511 fi
15512else
15513 # We cannot hardcode anything, or else we can only hardcode existing
15514 # directories.
15515 hardcode_action=unsupported
15516fi
Reid Spencera773bd52006-08-04 18:18:08 +000015517{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15518echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015519
15520if test "$hardcode_action" = relink; then
15521 # Fast installation is not supported
15522 enable_fast_install=no
15523elif test "$shlibpath_overrides_runpath" = yes ||
15524 test "$enable_shared" = no; then
15525 # Fast installation is not necessary
15526 enable_fast_install=needless
15527fi
15528
15529striplib=
15530old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000015531{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15532echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15534 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15535 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000015536 { echo "$as_me:$LINENO: result: yes" >&5
15537echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015538else
15539# FIXME - insert some real tests, host_os isn't really good enough
15540 case $host_os in
15541 darwin*)
15542 if test -n "$STRIP" ; then
15543 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000015544 { echo "$as_me:$LINENO: result: yes" >&5
15545echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015546 else
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 +000015549fi
15550 ;;
15551 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015552 { echo "$as_me:$LINENO: result: no" >&5
15553echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015554 ;;
15555 esac
15556fi
15557
John Criswell7a73b802003-06-30 21:59:07 +000015558if test "x$enable_dlopen" != xyes; then
15559 enable_dlopen=unknown
15560 enable_dlopen_self=unknown
15561 enable_dlopen_self_static=unknown
15562else
15563 lt_cv_dlopen=no
15564 lt_cv_dlopen_libs=
15565
15566 case $host_os in
15567 beos*)
15568 lt_cv_dlopen="load_add_on"
15569 lt_cv_dlopen_libs=
15570 lt_cv_dlopen_self=yes
15571 ;;
15572
John Criswell47fdd832003-07-14 16:52:07 +000015573 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015574 lt_cv_dlopen="LoadLibrary"
15575 lt_cv_dlopen_libs=
15576 ;;
15577
John Criswell47fdd832003-07-14 16:52:07 +000015578 cygwin*)
15579 lt_cv_dlopen="dlopen"
15580 lt_cv_dlopen_libs=
15581 ;;
15582
15583 darwin*)
15584 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000015585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589else
15590 ac_check_lib_save_LIBS=$LIBS
15591LIBS="-ldl $LIBS"
15592cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015598
Reid Spencera773bd52006-08-04 18:18:08 +000015599/* Override any GCC internal prototype to avoid an error.
15600 Use char because int might match the return type of a GCC
15601 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000015602#ifdef __cplusplus
15603extern "C"
15604#endif
John Criswell47fdd832003-07-14 16:52:07 +000015605char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015606int
15607main ()
15608{
Reid Spencera773bd52006-08-04 18:18:08 +000015609return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015610 ;
15611 return 0;
15612}
15613_ACEOF
15614rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015615if { (ac_try="$ac_link"
15616case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015622 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest$ac_exeext &&
15631 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000015632 ac_cv_lib_dl_dlopen=yes
15633else
15634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015635sed 's/^/| /' conftest.$ac_ext >&5
15636
Reid Spencera773bd52006-08-04 18:18:08 +000015637 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000015638fi
Reid Spencera773bd52006-08-04 18:18:08 +000015639
Scott Michel96dcd2b2007-12-05 21:24:02 +000015640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015641 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015642LIBS=$ac_check_lib_save_LIBS
15643fi
Reid Spencera773bd52006-08-04 18:18:08 +000015644{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015646if test $ac_cv_lib_dl_dlopen = yes; then
15647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15648else
15649
15650 lt_cv_dlopen="dyld"
15651 lt_cv_dlopen_libs=
15652 lt_cv_dlopen_self=yes
15653
15654fi
15655
15656 ;;
15657
John Criswell7a73b802003-06-30 21:59:07 +000015658 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015659 { echo "$as_me:$LINENO: checking for shl_load" >&5
15660echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015661if test "${ac_cv_func_shl_load+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663else
15664 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015670/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15672#define shl_load innocuous_shl_load
15673
John Criswell7a73b802003-06-30 21:59:07 +000015674/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015675 which can conflict with char shl_load (); below.
15676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15677 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015678
John Criswell0c38eaf2003-09-10 15:17:25 +000015679#ifdef __STDC__
15680# include <limits.h>
15681#else
15682# include <assert.h>
15683#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015684
15685#undef shl_load
15686
Reid Spencera773bd52006-08-04 18:18:08 +000015687/* Override any GCC internal prototype to avoid an error.
15688 Use char because int might match the return type of a GCC
15689 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015690#ifdef __cplusplus
15691extern "C"
15692#endif
John Criswell7a73b802003-06-30 21:59:07 +000015693char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015694/* The GNU C library defines this for functions which it implements
15695 to always fail with ENOSYS. Some functions are actually named
15696 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015697#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000015698choke me
John Criswell7a73b802003-06-30 21:59:07 +000015699#endif
15700
John Criswell0c38eaf2003-09-10 15:17:25 +000015701int
15702main ()
15703{
Reid Spencera773bd52006-08-04 18:18:08 +000015704return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015705 ;
15706 return 0;
15707}
15708_ACEOF
15709rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015710if { (ac_try="$ac_link"
15711case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714esac
15715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015717 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015718 grep -v '^ *+' conftest.er1 >conftest.err
15719 rm -f conftest.er1
15720 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015722 (exit $ac_status); } && {
15723 test -z "$ac_c_werror_flag" ||
15724 test ! -s conftest.err
15725 } && test -s conftest$ac_exeext &&
15726 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015727 ac_cv_func_shl_load=yes
15728else
15729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015730sed 's/^/| /' conftest.$ac_ext >&5
15731
Reid Spencera773bd52006-08-04 18:18:08 +000015732 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015733fi
Reid Spencera773bd52006-08-04 18:18:08 +000015734
Scott Michel96dcd2b2007-12-05 21:24:02 +000015735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015736 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015737fi
Reid Spencera773bd52006-08-04 18:18:08 +000015738{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15739echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015740if test $ac_cv_func_shl_load = yes; then
15741 lt_cv_dlopen="shl_load"
15742else
Reid Spencera773bd52006-08-04 18:18:08 +000015743 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15744echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015745if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
15748 ac_check_lib_save_LIBS=$LIBS
15749LIBS="-ldld $LIBS"
15750cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015756
Reid Spencera773bd52006-08-04 18:18:08 +000015757/* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015760#ifdef __cplusplus
15761extern "C"
15762#endif
John Criswell7a73b802003-06-30 21:59:07 +000015763char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015764int
15765main ()
15766{
Reid Spencera773bd52006-08-04 18:18:08 +000015767return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015773if { (ac_try="$ac_link"
15774case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015790 ac_cv_lib_dld_shl_load=yes
15791else
15792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015793sed 's/^/| /' conftest.$ac_ext >&5
15794
Reid Spencera773bd52006-08-04 18:18:08 +000015795 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015796fi
Reid Spencera773bd52006-08-04 18:18:08 +000015797
Scott Michel96dcd2b2007-12-05 21:24:02 +000015798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015799 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015800LIBS=$ac_check_lib_save_LIBS
15801fi
Reid Spencera773bd52006-08-04 18:18:08 +000015802{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15803echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015804if test $ac_cv_lib_dld_shl_load = yes; then
15805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15806else
Reid Spencera773bd52006-08-04 18:18:08 +000015807 { echo "$as_me:$LINENO: checking for dlopen" >&5
15808echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015809if test "${ac_cv_func_dlopen+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811else
15812 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015818/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820#define dlopen innocuous_dlopen
15821
John Criswell7a73b802003-06-30 21:59:07 +000015822/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015823 which can conflict with char dlopen (); below.
15824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015826
John Criswell0c38eaf2003-09-10 15:17:25 +000015827#ifdef __STDC__
15828# include <limits.h>
15829#else
15830# include <assert.h>
15831#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015832
15833#undef dlopen
15834
Reid Spencera773bd52006-08-04 18:18:08 +000015835/* Override any GCC internal prototype to avoid an error.
15836 Use char because int might match the return type of a GCC
15837 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015838#ifdef __cplusplus
15839extern "C"
15840#endif
John Criswell7a73b802003-06-30 21:59:07 +000015841char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015842/* The GNU C library defines this for functions which it implements
15843 to always fail with ENOSYS. Some functions are actually named
15844 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015845#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000015846choke me
John Criswell7a73b802003-06-30 21:59:07 +000015847#endif
15848
John Criswell0c38eaf2003-09-10 15:17:25 +000015849int
15850main ()
15851{
Reid Spencera773bd52006-08-04 18:18:08 +000015852return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015853 ;
15854 return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015858if { (ac_try="$ac_link"
15859case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862esac
15863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015870 (exit $ac_status); } && {
15871 test -z "$ac_c_werror_flag" ||
15872 test ! -s conftest.err
15873 } && test -s conftest$ac_exeext &&
15874 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015875 ac_cv_func_dlopen=yes
15876else
15877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015878sed 's/^/| /' conftest.$ac_ext >&5
15879
Reid Spencera773bd52006-08-04 18:18:08 +000015880 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015881fi
Reid Spencera773bd52006-08-04 18:18:08 +000015882
Scott Michel96dcd2b2007-12-05 21:24:02 +000015883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015884 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015885fi
Reid Spencera773bd52006-08-04 18:18:08 +000015886{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15887echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015888if test $ac_cv_func_dlopen = yes; then
15889 lt_cv_dlopen="dlopen"
15890else
Reid Spencera773bd52006-08-04 18:18:08 +000015891 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15892echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015893if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15895else
15896 ac_check_lib_save_LIBS=$LIBS
15897LIBS="-ldl $LIBS"
15898cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015899/* confdefs.h. */
15900_ACEOF
15901cat confdefs.h >>conftest.$ac_ext
15902cat >>conftest.$ac_ext <<_ACEOF
15903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015904
Reid Spencera773bd52006-08-04 18:18:08 +000015905/* Override any GCC internal prototype to avoid an error.
15906 Use char because int might match the return type of a GCC
15907 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015908#ifdef __cplusplus
15909extern "C"
15910#endif
John Criswell7a73b802003-06-30 21:59:07 +000015911char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015912int
15913main ()
15914{
Reid Spencera773bd52006-08-04 18:18:08 +000015915return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015916 ;
15917 return 0;
15918}
15919_ACEOF
15920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015921if { (ac_try="$ac_link"
15922case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15925esac
15926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015928 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest$ac_exeext &&
15937 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015938 ac_cv_lib_dl_dlopen=yes
15939else
15940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015941sed 's/^/| /' conftest.$ac_ext >&5
15942
Reid Spencera773bd52006-08-04 18:18:08 +000015943 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015944fi
Reid Spencera773bd52006-08-04 18:18:08 +000015945
Scott Michel96dcd2b2007-12-05 21:24:02 +000015946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015947 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015948LIBS=$ac_check_lib_save_LIBS
15949fi
Reid Spencera773bd52006-08-04 18:18:08 +000015950{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15951echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015952if test $ac_cv_lib_dl_dlopen = yes; then
15953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15954else
Reid Spencera773bd52006-08-04 18:18:08 +000015955 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15956echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015957if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959else
15960 ac_check_lib_save_LIBS=$LIBS
15961LIBS="-lsvld $LIBS"
15962cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015968
Reid Spencera773bd52006-08-04 18:18:08 +000015969/* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015972#ifdef __cplusplus
15973extern "C"
15974#endif
John Criswell7a73b802003-06-30 21:59:07 +000015975char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015976int
15977main ()
15978{
Reid Spencera773bd52006-08-04 18:18:08 +000015979return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015980 ;
15981 return 0;
15982}
15983_ACEOF
15984rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015985if { (ac_try="$ac_link"
15986case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989esac
15990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest$ac_exeext &&
16001 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016002 ac_cv_lib_svld_dlopen=yes
16003else
16004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016005sed 's/^/| /' conftest.$ac_ext >&5
16006
Reid Spencera773bd52006-08-04 18:18:08 +000016007 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016008fi
Reid Spencera773bd52006-08-04 18:18:08 +000016009
Scott Michel96dcd2b2007-12-05 21:24:02 +000016010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016011 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016012LIBS=$ac_check_lib_save_LIBS
16013fi
Reid Spencera773bd52006-08-04 18:18:08 +000016014{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16015echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016016if test $ac_cv_lib_svld_dlopen = yes; then
16017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16018else
Reid Spencera773bd52006-08-04 18:18:08 +000016019 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16020echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016021if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023else
16024 ac_check_lib_save_LIBS=$LIBS
16025LIBS="-ldld $LIBS"
16026cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016032
Reid Spencera773bd52006-08-04 18:18:08 +000016033/* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016036#ifdef __cplusplus
16037extern "C"
16038#endif
John Criswell7a73b802003-06-30 21:59:07 +000016039char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016040int
16041main ()
16042{
Reid Spencera773bd52006-08-04 18:18:08 +000016043return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016044 ;
16045 return 0;
16046}
16047_ACEOF
16048rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016049if { (ac_try="$ac_link"
16050case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16053esac
16054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000016061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest$ac_exeext &&
16065 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016066 ac_cv_lib_dld_dld_link=yes
16067else
16068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016069sed 's/^/| /' conftest.$ac_ext >&5
16070
Reid Spencera773bd52006-08-04 18:18:08 +000016071 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016072fi
Reid Spencera773bd52006-08-04 18:18:08 +000016073
Scott Michel96dcd2b2007-12-05 21:24:02 +000016074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016075 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016076LIBS=$ac_check_lib_save_LIBS
16077fi
Reid Spencera773bd52006-08-04 18:18:08 +000016078{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16079echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016080if test $ac_cv_lib_dld_dld_link = yes; then
16081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16082fi
16083
16084
16085fi
16086
16087
16088fi
16089
16090
16091fi
16092
16093
16094fi
16095
16096
16097fi
16098
16099 ;;
16100 esac
16101
16102 if test "x$lt_cv_dlopen" != xno; then
16103 enable_dlopen=yes
16104 else
16105 enable_dlopen=no
16106 fi
16107
16108 case $lt_cv_dlopen in
16109 dlopen)
16110 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016112
16113 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016115
16116 save_LIBS="$LIBS"
16117 LIBS="$lt_cv_dlopen_libs $LIBS"
16118
Reid Spencera773bd52006-08-04 18:18:08 +000016119 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16120echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016121if test "${lt_cv_dlopen_self+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123else
16124 if test "$cross_compiling" = yes; then :
16125 lt_cv_dlopen_self=cross
16126else
John Criswell47fdd832003-07-14 16:52:07 +000016127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016128 lt_status=$lt_dlunknown
16129 cat > conftest.$ac_ext <<EOF
Duncan Sands67f1c492007-12-12 23:03:45 +000016130#line 16129 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016131#include "confdefs.h"
16132
16133#if HAVE_DLFCN_H
16134#include <dlfcn.h>
16135#endif
16136
16137#include <stdio.h>
16138
16139#ifdef RTLD_GLOBAL
16140# define LT_DLGLOBAL RTLD_GLOBAL
16141#else
16142# ifdef DL_GLOBAL
16143# define LT_DLGLOBAL DL_GLOBAL
16144# else
16145# define LT_DLGLOBAL 0
16146# endif
16147#endif
16148
16149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16150 find out it does not work in some platform. */
16151#ifndef LT_DLLAZY_OR_NOW
16152# ifdef RTLD_LAZY
16153# define LT_DLLAZY_OR_NOW RTLD_LAZY
16154# else
16155# ifdef DL_LAZY
16156# define LT_DLLAZY_OR_NOW DL_LAZY
16157# else
16158# ifdef RTLD_NOW
16159# define LT_DLLAZY_OR_NOW RTLD_NOW
16160# else
16161# ifdef DL_NOW
16162# define LT_DLLAZY_OR_NOW DL_NOW
16163# else
16164# define LT_DLLAZY_OR_NOW 0
16165# endif
16166# endif
16167# endif
16168# endif
16169#endif
16170
16171#ifdef __cplusplus
16172extern "C" void exit (int);
16173#endif
16174
16175void fnord() { int i=42;}
16176int main ()
16177{
16178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16179 int status = $lt_dlunknown;
16180
16181 if (self)
16182 {
16183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16185 /* dlclose (self); */
16186 }
Reid Spencera773bd52006-08-04 18:18:08 +000016187 else
16188 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016189
16190 exit (status);
16191}
16192EOF
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016198 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016199 lt_status=$?
16200 case x$lt_status in
16201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016204 esac
16205 else :
16206 # compilation failed
16207 lt_cv_dlopen_self=no
16208 fi
16209fi
16210rm -fr conftest*
16211
16212
16213fi
Reid Spencera773bd52006-08-04 18:18:08 +000016214{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16215echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016216
16217 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16219 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16220echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016221if test "${lt_cv_dlopen_self_static+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223else
16224 if test "$cross_compiling" = yes; then :
16225 lt_cv_dlopen_self_static=cross
16226else
John Criswell47fdd832003-07-14 16:52:07 +000016227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016228 lt_status=$lt_dlunknown
16229 cat > conftest.$ac_ext <<EOF
Duncan Sands67f1c492007-12-12 23:03:45 +000016230#line 16229 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016231#include "confdefs.h"
16232
16233#if HAVE_DLFCN_H
16234#include <dlfcn.h>
16235#endif
16236
16237#include <stdio.h>
16238
16239#ifdef RTLD_GLOBAL
16240# define LT_DLGLOBAL RTLD_GLOBAL
16241#else
16242# ifdef DL_GLOBAL
16243# define LT_DLGLOBAL DL_GLOBAL
16244# else
16245# define LT_DLGLOBAL 0
16246# endif
16247#endif
16248
16249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16250 find out it does not work in some platform. */
16251#ifndef LT_DLLAZY_OR_NOW
16252# ifdef RTLD_LAZY
16253# define LT_DLLAZY_OR_NOW RTLD_LAZY
16254# else
16255# ifdef DL_LAZY
16256# define LT_DLLAZY_OR_NOW DL_LAZY
16257# else
16258# ifdef RTLD_NOW
16259# define LT_DLLAZY_OR_NOW RTLD_NOW
16260# else
16261# ifdef DL_NOW
16262# define LT_DLLAZY_OR_NOW DL_NOW
16263# else
16264# define LT_DLLAZY_OR_NOW 0
16265# endif
16266# endif
16267# endif
16268# endif
16269#endif
16270
16271#ifdef __cplusplus
16272extern "C" void exit (int);
16273#endif
16274
16275void fnord() { int i=42;}
16276int main ()
16277{
16278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16279 int status = $lt_dlunknown;
16280
16281 if (self)
16282 {
16283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16285 /* dlclose (self); */
16286 }
Reid Spencera773bd52006-08-04 18:18:08 +000016287 else
16288 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016289
16290 exit (status);
16291}
16292EOF
16293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016298 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016299 lt_status=$?
16300 case x$lt_status in
16301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016304 esac
16305 else :
16306 # compilation failed
16307 lt_cv_dlopen_self_static=no
16308 fi
16309fi
16310rm -fr conftest*
16311
16312
16313fi
Reid Spencera773bd52006-08-04 18:18:08 +000016314{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16315echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016316 fi
16317
16318 CPPFLAGS="$save_CPPFLAGS"
16319 LDFLAGS="$save_LDFLAGS"
16320 LIBS="$save_LIBS"
16321 ;;
16322 esac
16323
16324 case $lt_cv_dlopen_self in
16325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16326 *) enable_dlopen_self=unknown ;;
16327 esac
16328
16329 case $lt_cv_dlopen_self_static in
16330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16331 *) enable_dlopen_self_static=unknown ;;
16332 esac
16333fi
16334
16335
Reid Spencera773bd52006-08-04 18:18:08 +000016336# Report which library types will actually be built
16337{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16338echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16339{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16340echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016341
Reid Spencera773bd52006-08-04 18:18:08 +000016342{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16343echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016344test "$can_build_shared" = "no" && enable_shared=no
16345
16346# On AIX, shared libraries and static libraries use the same namespace, and
16347# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000016348case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016349aix3*)
16350 test "$enable_shared" = yes && enable_static=no
16351 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000016353 postinstall_cmds='$RANLIB $lib'
16354 fi
16355 ;;
16356
Reid Spencer2706f8c2004-09-19 23:53:36 +000016357aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000016358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16359 test "$enable_shared" = yes && enable_static=no
16360 fi
John Criswell7a73b802003-06-30 21:59:07 +000016361 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016362esac
Reid Spencera773bd52006-08-04 18:18:08 +000016363{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16364echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016365
Reid Spencera773bd52006-08-04 18:18:08 +000016366{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16367echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016368# Make sure either enable_shared or enable_static is yes.
16369test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000016370{ echo "$as_me:$LINENO: result: $enable_static" >&5
16371echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016372
16373# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000016374# libtool distribution, otherwise you forgot to ship ltmain.sh
16375# with your package, and you will get complaints that there are
16376# no rules to generate ltmain.sh.
16377if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000016378 # See if we are running on zsh, and set the options which allow our commands through
16379 # without removal of \ escapes.
16380 if test -n "${ZSH_VERSION+set}" ; then
16381 setopt NO_GLOB_SUBST
16382 fi
John Criswell7a73b802003-06-30 21:59:07 +000016383 # Now quote all the things that may contain metacharacters while being
16384 # careful not to overquote the AC_SUBSTed values. We take copies of the
16385 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000016386 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 +000016387 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000016388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16390 deplibs_check_method reload_flag reload_cmds need_locks \
16391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16392 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000016393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000016394 old_postinstall_cmds old_postuninstall_cmds \
16395 compiler \
16396 CC \
16397 LD \
16398 lt_prog_compiler_wl \
16399 lt_prog_compiler_pic \
16400 lt_prog_compiler_static \
16401 lt_prog_compiler_no_builtin_flag \
16402 export_dynamic_flag_spec \
16403 thread_safe_flag_spec \
16404 whole_archive_flag_spec \
16405 enable_shared_with_static_runtimes \
16406 old_archive_cmds \
16407 old_archive_from_new_cmds \
16408 predep_objects \
16409 postdep_objects \
16410 predeps \
16411 postdeps \
16412 compiler_lib_search_path \
16413 archive_cmds \
16414 archive_expsym_cmds \
16415 postinstall_cmds \
16416 postuninstall_cmds \
16417 old_archive_from_expsyms_cmds \
16418 allow_undefined_flag \
16419 no_undefined_flag \
16420 export_symbols_cmds \
16421 hardcode_libdir_flag_spec \
16422 hardcode_libdir_flag_spec_ld \
16423 hardcode_libdir_separator \
16424 hardcode_automatic \
16425 module_cmds \
16426 module_expsym_cmds \
16427 lt_cv_prog_compiler_c_o \
16428 exclude_expsyms \
16429 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000016430
16431 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000016432 old_archive_cmds | \
16433 old_archive_from_new_cmds | \
16434 archive_cmds | \
16435 archive_expsym_cmds | \
16436 module_cmds | \
16437 module_expsym_cmds | \
16438 old_archive_from_expsyms_cmds | \
16439 export_symbols_cmds | \
16440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000016441 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000016442 old_postinstall_cmds | old_postuninstall_cmds | \
16443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000016444 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016445 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 +000016446 ;;
16447 *)
16448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16449 ;;
16450 esac
16451 done
16452
John Criswell47fdd832003-07-14 16:52:07 +000016453 case $lt_echo in
16454 *'\$0 --fallback-echo"')
16455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16456 ;;
16457 esac
16458
16459cfgfile="${ofile}T"
16460 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16461 $rm -f "$cfgfile"
16462 { echo "$as_me:$LINENO: creating $ofile" >&5
16463echo "$as_me: creating $ofile" >&6;}
16464
16465 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016466#! $SHELL
16467
John Criswell47fdd832003-07-14 16:52:07 +000016468# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000016469# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16470# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16471#
John Criswell47fdd832003-07-14 16:52:07 +000016472# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16473# Free Software Foundation, Inc.
16474#
16475# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000016476# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16477#
16478# This program is free software; you can redistribute it and/or modify
16479# it under the terms of the GNU General Public License as published by
16480# the Free Software Foundation; either version 2 of the License, or
16481# (at your option) any later version.
16482#
16483# This program is distributed in the hope that it will be useful, but
16484# WITHOUT ANY WARRANTY; without even the implied warranty of
16485# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16486# General Public License for more details.
16487#
16488# You should have received a copy of the GNU General Public License
16489# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000016490# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000016491#
16492# As a special exception to the GNU General Public License, if you
16493# distribute this file as part of a program that contains a
16494# configuration script generated by Autoconf, you may include it under
16495# the same distribution terms that you use for the rest of that program.
16496
John Criswell47fdd832003-07-14 16:52:07 +000016497# A sed program that does not truncate output.
16498SED=$lt_SED
16499
John Criswell7a73b802003-06-30 21:59:07 +000016500# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000016501Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000016502
16503# The HP-UX ksh and POSIX shell print the target directory to stdout
16504# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016505(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000016506
John Criswell47fdd832003-07-14 16:52:07 +000016507# The names of the tagged configurations supported by this script.
16508available_tags=
16509
John Criswell7a73b802003-06-30 21:59:07 +000016510# ### BEGIN LIBTOOL CONFIG
16511
16512# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16513
16514# Shell to use when invoking shell scripts.
16515SHELL=$lt_SHELL
16516
16517# Whether or not to build shared libraries.
16518build_libtool_libs=$enable_shared
16519
16520# Whether or not to build static libraries.
16521build_old_libs=$enable_static
16522
16523# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016524build_libtool_need_lc=$archive_cmds_need_lc
16525
16526# Whether or not to disallow shared libs when runtime libs are static
16527allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000016528
16529# Whether or not to optimize for fast installation.
16530fast_install=$enable_fast_install
16531
16532# The host system.
16533host_alias=$host_alias
16534host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000016535host_os=$host_os
16536
16537# The build system.
16538build_alias=$build_alias
16539build=$build
16540build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000016541
16542# An echo program that does not interpret backslashes.
16543echo=$lt_echo
16544
16545# The archiver.
16546AR=$lt_AR
16547AR_FLAGS=$lt_AR_FLAGS
16548
John Criswell47fdd832003-07-14 16:52:07 +000016549# A C compiler.
16550LTCC=$lt_LTCC
16551
Reid Spencera773bd52006-08-04 18:18:08 +000016552# LTCC compiler flags.
16553LTCFLAGS=$lt_LTCFLAGS
16554
John Criswell47fdd832003-07-14 16:52:07 +000016555# A language-specific compiler.
16556CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000016557
16558# Is the compiler the GNU C compiler?
16559with_gcc=$GCC
16560
John Criswell47fdd832003-07-14 16:52:07 +000016561# An ERE matcher.
16562EGREP=$lt_EGREP
16563
John Criswell7a73b802003-06-30 21:59:07 +000016564# The linker used to build libraries.
16565LD=$lt_LD
16566
16567# Whether we need hard or soft links.
16568LN_S=$lt_LN_S
16569
16570# A BSD-compatible nm program.
16571NM=$lt_NM
16572
16573# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000016574STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000016575
16576# Used to examine libraries when file_magic_cmd begins "file"
16577MAGIC_CMD=$MAGIC_CMD
16578
16579# Used on cygwin: DLL creation program.
16580DLLTOOL="$DLLTOOL"
16581
16582# Used on cygwin: object dumper.
16583OBJDUMP="$OBJDUMP"
16584
16585# Used on cygwin: assembler.
16586AS="$AS"
16587
16588# The name of the directory that contains temporary libtool files.
16589objdir=$objdir
16590
16591# How to create reloadable object files.
16592reload_flag=$lt_reload_flag
16593reload_cmds=$lt_reload_cmds
16594
16595# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000016596wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000016597
16598# Object file suffix (normally "o").
16599objext="$ac_objext"
16600
16601# Old archive suffix (normally "a").
16602libext="$libext"
16603
John Criswell47fdd832003-07-14 16:52:07 +000016604# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000016605shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000016606
John Criswell7a73b802003-06-30 21:59:07 +000016607# Executable file suffix (normally "").
16608exeext="$exeext"
16609
16610# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000016611pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000016612pic_mode=$pic_mode
16613
John Criswell47fdd832003-07-14 16:52:07 +000016614# What is the maximum length of a command?
16615max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000016616
John Criswell47fdd832003-07-14 16:52:07 +000016617# Does compiler simultaneously support -c and -o options?
16618compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000016619
Reid Spencera773bd52006-08-04 18:18:08 +000016620# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000016621need_locks=$lt_need_locks
16622
16623# Do we need the lib prefix for modules?
16624need_lib_prefix=$need_lib_prefix
16625
16626# Do we need a version for libraries?
16627need_version=$need_version
16628
16629# Whether dlopen is supported.
16630dlopen_support=$enable_dlopen
16631
16632# Whether dlopen of programs is supported.
16633dlopen_self=$enable_dlopen_self
16634
16635# Whether dlopen of statically linked programs is supported.
16636dlopen_self_static=$enable_dlopen_self_static
16637
16638# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000016639link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000016640
16641# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000016642no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000016643
16644# Compiler flag to allow reflexive dlopens.
16645export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16646
16647# Compiler flag to generate shared objects directly from archives.
16648whole_archive_flag_spec=$lt_whole_archive_flag_spec
16649
16650# Compiler flag to generate thread-safe objects.
16651thread_safe_flag_spec=$lt_thread_safe_flag_spec
16652
16653# Library versioning type.
16654version_type=$version_type
16655
16656# Format of library name prefix.
16657libname_spec=$lt_libname_spec
16658
16659# List of archive names. First name is the real one, the rest are links.
16660# The last name is the one that the linker finds with -lNAME.
16661library_names_spec=$lt_library_names_spec
16662
16663# The coded name of the library, if different from the real name.
16664soname_spec=$lt_soname_spec
16665
16666# Commands used to build and install an old-style archive.
16667RANLIB=$lt_RANLIB
16668old_archive_cmds=$lt_old_archive_cmds
16669old_postinstall_cmds=$lt_old_postinstall_cmds
16670old_postuninstall_cmds=$lt_old_postuninstall_cmds
16671
16672# Create an old-style archive from a shared archive.
16673old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16674
16675# Create a temporary old-style archive to link instead of a shared archive.
16676old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16677
16678# Commands used to build and install a shared archive.
16679archive_cmds=$lt_archive_cmds
16680archive_expsym_cmds=$lt_archive_expsym_cmds
16681postinstall_cmds=$lt_postinstall_cmds
16682postuninstall_cmds=$lt_postuninstall_cmds
16683
John Criswell47fdd832003-07-14 16:52:07 +000016684# Commands used to build a loadable module (assumed same as above if empty)
16685module_cmds=$lt_module_cmds
16686module_expsym_cmds=$lt_module_expsym_cmds
16687
John Criswell7a73b802003-06-30 21:59:07 +000016688# Commands to strip libraries.
16689old_striplib=$lt_old_striplib
16690striplib=$lt_striplib
16691
John Criswell47fdd832003-07-14 16:52:07 +000016692# Dependencies to place before the objects being linked to create a
16693# shared library.
16694predep_objects=$lt_predep_objects
16695
16696# Dependencies to place after the objects being linked to create a
16697# shared library.
16698postdep_objects=$lt_postdep_objects
16699
16700# Dependencies to place before the objects being linked to create a
16701# shared library.
16702predeps=$lt_predeps
16703
16704# Dependencies to place after the objects being linked to create a
16705# shared library.
16706postdeps=$lt_postdeps
16707
16708# The library search path used internally by the compiler when linking
16709# a shared library.
16710compiler_lib_search_path=$lt_compiler_lib_search_path
16711
John Criswell7a73b802003-06-30 21:59:07 +000016712# Method to check whether dependent libraries are shared objects.
16713deplibs_check_method=$lt_deplibs_check_method
16714
16715# Command to use when deplibs_check_method == file_magic.
16716file_magic_cmd=$lt_file_magic_cmd
16717
16718# Flag that allows shared libraries with undefined symbols to be built.
16719allow_undefined_flag=$lt_allow_undefined_flag
16720
16721# Flag that forces no undefined symbols.
16722no_undefined_flag=$lt_no_undefined_flag
16723
16724# Commands used to finish a libtool library installation in a directory.
16725finish_cmds=$lt_finish_cmds
16726
16727# Same as above, but a single script fragment to be evaled but not shown.
16728finish_eval=$lt_finish_eval
16729
16730# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000016731global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000016732
16733# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000016734global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000016735
16736# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000016737global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000016738
16739# This is the shared library runtime path variable.
16740runpath_var=$runpath_var
16741
16742# This is the shared library path variable.
16743shlibpath_var=$shlibpath_var
16744
16745# Is shlibpath searched before the hard-coded library search path?
16746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16747
16748# How to hardcode a shared library path into an executable.
16749hardcode_action=$hardcode_action
16750
16751# Whether we should hardcode library paths into libraries.
16752hardcode_into_libs=$hardcode_into_libs
16753
16754# Flag to hardcode \$libdir into a binary during linking.
16755# This must work even if \$libdir does not exist.
16756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16757
John Criswell47fdd832003-07-14 16:52:07 +000016758# If ld is used when linking, flag to hardcode \$libdir into
16759# a binary during linking. This must work even if \$libdir does
16760# not exist.
16761hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16762
John Criswell7a73b802003-06-30 21:59:07 +000016763# Whether we need a single -rpath flag with a separated argument.
16764hardcode_libdir_separator=$lt_hardcode_libdir_separator
16765
John Criswell47fdd832003-07-14 16:52:07 +000016766# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000016767# resulting binary.
16768hardcode_direct=$hardcode_direct
16769
16770# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16771# resulting binary.
16772hardcode_minus_L=$hardcode_minus_L
16773
16774# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16775# the resulting binary.
16776hardcode_shlibpath_var=$hardcode_shlibpath_var
16777
John Criswell47fdd832003-07-14 16:52:07 +000016778# Set to yes if building a shared library automatically hardcodes DIR into the library
16779# and all subsequent libraries and executables linked against it.
16780hardcode_automatic=$hardcode_automatic
16781
John Criswell7a73b802003-06-30 21:59:07 +000016782# Variables whose values should be saved in libtool wrapper scripts and
16783# restored at relink time.
16784variables_saved_for_relink="$variables_saved_for_relink"
16785
16786# Whether libtool must link a program against all its dependency libraries.
16787link_all_deplibs=$link_all_deplibs
16788
16789# Compile-time system search path for libraries
16790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16791
16792# Run-time system search path for libraries
16793sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16794
16795# Fix the shell variable \$srcfile for the compiler.
16796fix_srcfile_path="$fix_srcfile_path"
16797
16798# Set to yes if exported symbols are required.
16799always_export_symbols=$always_export_symbols
16800
16801# The commands to list exported symbols.
16802export_symbols_cmds=$lt_export_symbols_cmds
16803
16804# The commands to extract the exported symbol list from a shared archive.
16805extract_expsyms_cmds=$lt_extract_expsyms_cmds
16806
16807# Symbols that should not be listed in the preloaded symbols.
16808exclude_expsyms=$lt_exclude_expsyms
16809
16810# Symbols that must always be exported.
16811include_expsyms=$lt_include_expsyms
16812
16813# ### END LIBTOOL CONFIG
16814
16815__EOF__
16816
John Criswell47fdd832003-07-14 16:52:07 +000016817
John Criswell7a73b802003-06-30 21:59:07 +000016818 case $host_os in
16819 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000016820 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016821
16822# AIX sometimes has problems with the GCC collect2 program. For some
16823# reason, if we set the COLLECT_NAMES environment variable, the problems
16824# vanish in a puff of smoke.
16825if test "X${COLLECT_NAMES+set}" != Xset; then
16826 COLLECT_NAMES=
16827 export COLLECT_NAMES
16828fi
16829EOF
16830 ;;
16831 esac
16832
John Criswell7a73b802003-06-30 21:59:07 +000016833 # We use sed instead of cat because bash on DJGPP gets confused if
16834 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16835 # text mode, it properly converts lines to CR/LF. This bash problem
16836 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000016837 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000016838
John Criswell47fdd832003-07-14 16:52:07 +000016839 mv -f "$cfgfile" "$ofile" || \
16840 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000016841 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000016842
16843else
16844 # If there is no Makefile yet, we rely on a make rule to execute
16845 # `config.status --recheck' to rerun these tests and create the
16846 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16848 if test -f "$ltmain_in"; then
16849 test -f Makefile && make "$ltmain"
16850 fi
John Criswell7a73b802003-06-30 21:59:07 +000016851fi
John Criswell7a73b802003-06-30 21:59:07 +000016852
16853
John Criswell47fdd832003-07-14 16:52:07 +000016854ac_ext=c
16855ac_cpp='$CPP $CPPFLAGS'
16856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858ac_compiler_gnu=$ac_cv_c_compiler_gnu
16859
16860CC="$lt_save_CC"
16861
16862
Reid Spencera773bd52006-08-04 18:18:08 +000016863# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000016864if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000016865 withval=$with_tags; tagnames="$withval"
16866fi
16867
John Criswell47fdd832003-07-14 16:52:07 +000016868
16869if test -f "$ltmain" && test -n "$tagnames"; then
16870 if test ! -f "${ofile}"; then
16871 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16872echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16873 fi
16874
16875 if test -z "$LTCC"; then
16876 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16877 if test -z "$LTCC"; then
16878 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16879echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16880 else
16881 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16882echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16883 fi
16884 fi
Reid Spencera773bd52006-08-04 18:18:08 +000016885 if test -z "$LTCFLAGS"; then
16886 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16887 fi
John Criswell47fdd832003-07-14 16:52:07 +000016888
16889 # Extract list of available tagged configurations in $ofile.
16890 # Note that this assumes the entire list is on one line.
16891 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16892
16893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16894 for tagname in $tagnames; do
16895 IFS="$lt_save_ifs"
16896 # Check whether tagname contains only valid characters
16897 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16898 "") ;;
16899 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16900echo "$as_me: error: invalid tag name: $tagname" >&2;}
16901 { (exit 1); exit 1; }; }
16902 ;;
16903 esac
16904
16905 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16906 then
16907 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16908echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16909 { (exit 1); exit 1; }; }
16910 fi
16911
16912 # Update the list of available tags.
16913 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000016914 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000016915
16916 case $tagname in
16917 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016918 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16919 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16920 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000016921 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016922ac_cpp='$CXXCPP $CPPFLAGS'
16923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16926
16927
16928
16929
16930archive_cmds_need_lc_CXX=no
16931allow_undefined_flag_CXX=
16932always_export_symbols_CXX=no
16933archive_expsym_cmds_CXX=
16934export_dynamic_flag_spec_CXX=
16935hardcode_direct_CXX=no
16936hardcode_libdir_flag_spec_CXX=
16937hardcode_libdir_flag_spec_ld_CXX=
16938hardcode_libdir_separator_CXX=
16939hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000016940hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000016941hardcode_automatic_CXX=no
16942module_cmds_CXX=
16943module_expsym_cmds_CXX=
16944link_all_deplibs_CXX=unknown
16945old_archive_cmds_CXX=$old_archive_cmds
16946no_undefined_flag_CXX=
16947whole_archive_flag_spec_CXX=
16948enable_shared_with_static_runtimes_CXX=no
16949
16950# Dependencies to place before and after the object being linked:
16951predep_objects_CXX=
16952postdep_objects_CXX=
16953predeps_CXX=
16954postdeps_CXX=
16955compiler_lib_search_path_CXX=
16956
16957# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000016958ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016959
16960# Object file extension for compiled C++ test sources.
16961objext=o
16962objext_CXX=$objext
16963
16964# Code to be used in simple compile tests
16965lt_simple_compile_test_code="int some_variable = 0;\n"
16966
16967# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000016968lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000016969
16970# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16971
16972# If no C compiler was specified, use CC.
16973LTCC=${LTCC-"$CC"}
16974
Reid Spencera773bd52006-08-04 18:18:08 +000016975# If no C compiler flags were specified, use CFLAGS.
16976LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16977
John Criswell47fdd832003-07-14 16:52:07 +000016978# Allow CC to be a program name with arguments.
16979compiler=$CC
16980
16981
Reid Spencera773bd52006-08-04 18:18:08 +000016982# save warnings/boilerplate of simple test code
16983ac_outfile=conftest.$ac_objext
16984printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16985eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16986_lt_compiler_boilerplate=`cat conftest.err`
16987$rm conftest*
16988
16989ac_outfile=conftest.$ac_objext
16990printf "$lt_simple_link_test_code" >conftest.$ac_ext
16991eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16992_lt_linker_boilerplate=`cat conftest.err`
16993$rm conftest*
16994
16995
John Criswell47fdd832003-07-14 16:52:07 +000016996# Allow CC to be a program name with arguments.
16997lt_save_CC=$CC
16998lt_save_LD=$LD
16999lt_save_GCC=$GCC
17000GCC=$GXX
17001lt_save_with_gnu_ld=$with_gnu_ld
17002lt_save_path_LD=$lt_cv_path_LD
17003if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17004 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17005else
Reid Spencera773bd52006-08-04 18:18:08 +000017006 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017007fi
17008if test -n "${lt_cv_path_LDCXX+set}"; then
17009 lt_cv_path_LD=$lt_cv_path_LDCXX
17010else
Reid Spencera773bd52006-08-04 18:18:08 +000017011 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017012fi
17013test -z "${LDCXX+set}" || LD=$LDCXX
17014CC=${CXX-"c++"}
17015compiler=$CC
17016compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017017for cc_temp in $compiler""; do
17018 case $cc_temp in
17019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17021 \-*) ;;
17022 *) break;;
17023 esac
17024done
17025cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17026
John Criswell47fdd832003-07-14 16:52:07 +000017027
17028# We don't want -fno-exception wen compiling C++ code, so set the
17029# no_builtin_flag separately
17030if test "$GXX" = yes; then
17031 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17032else
17033 lt_prog_compiler_no_builtin_flag_CXX=
17034fi
17035
17036if test "$GXX" = yes; then
17037 # Set up default GNU C++ configuration
17038
17039
Reid Spencera773bd52006-08-04 18:18:08 +000017040# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017041if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017042 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017043else
17044 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017045fi
17046
John Criswell47fdd832003-07-14 16:52:07 +000017047ac_prog=ld
17048if test "$GCC" = yes; then
17049 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017050 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17051echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017052 case $host in
17053 *-*-mingw*)
17054 # gcc leaves a trailing carriage return which upsets mingw
17055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17056 *)
17057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17058 esac
17059 case $ac_prog in
17060 # Accept absolute paths.
17061 [\\/]* | ?:[\\/]*)
17062 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017063 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017064 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17066 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17067 done
17068 test -z "$LD" && LD="$ac_prog"
17069 ;;
17070 "")
17071 # If it fails, then pretend we aren't using GCC.
17072 ac_prog=ld
17073 ;;
17074 *)
17075 # If it is relative, then search for the first ld in PATH.
17076 with_gnu_ld=unknown
17077 ;;
17078 esac
17079elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017080 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17081echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017082else
Reid Spencera773bd52006-08-04 18:18:08 +000017083 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17084echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017085fi
17086if test "${lt_cv_path_LD+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089 if test -z "$LD"; then
17090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17091 for ac_dir in $PATH; do
17092 IFS="$lt_save_ifs"
17093 test -z "$ac_dir" && ac_dir=.
17094 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17095 lt_cv_path_LD="$ac_dir/$ac_prog"
17096 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017097 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017098 # Break only if it was the GNU/non-GNU ld that we prefer.
17099 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17100 *GNU* | *'with BFD'*)
17101 test "$with_gnu_ld" != no && break
17102 ;;
17103 *)
17104 test "$with_gnu_ld" != yes && break
17105 ;;
17106 esac
17107 fi
17108 done
17109 IFS="$lt_save_ifs"
17110else
17111 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17112fi
17113fi
17114
17115LD="$lt_cv_path_LD"
17116if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017117 { echo "$as_me:$LINENO: result: $LD" >&5
17118echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017119else
Reid Spencera773bd52006-08-04 18:18:08 +000017120 { echo "$as_me:$LINENO: result: no" >&5
17121echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017122fi
17123test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17124echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17125 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017126{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17127echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017128if test "${lt_cv_prog_gnu_ld+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130else
Reid Spencera773bd52006-08-04 18:18:08 +000017131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017132case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017133*GNU* | *'with BFD'*)
17134 lt_cv_prog_gnu_ld=yes
17135 ;;
17136*)
17137 lt_cv_prog_gnu_ld=no
17138 ;;
17139esac
17140fi
Reid Spencera773bd52006-08-04 18:18:08 +000017141{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17142echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017143with_gnu_ld=$lt_cv_prog_gnu_ld
17144
17145
17146
17147 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17148 # archiving commands below assume that GNU ld is being used.
17149 if test "$with_gnu_ld" = yes; then
17150 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17151 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'
17152
17153 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17154 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17155
17156 # If archive_cmds runs LD, not CC, wlarc should be empty
17157 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17158 # investigate it a little bit more. (MM)
17159 wlarc='${wl}'
17160
17161 # ancient GNU ld didn't support --whole-archive et. al.
17162 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17163 grep 'no-whole-archive' > /dev/null; then
17164 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17165 else
17166 whole_archive_flag_spec_CXX=
17167 fi
17168 else
17169 with_gnu_ld=no
17170 wlarc=
17171
17172 # A generic and very simple default shared library creation
17173 # command for GNU C++ for the case where it uses the native
17174 # linker, instead of GNU ld. If possible, this setting should
17175 # overridden to take advantage of the native linker features on
17176 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017177 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000017178 fi
17179
17180 # Commands to make compiler produce verbose output that lists
17181 # what "hidden" libraries, object files and flags are used when
17182 # linking a shared library.
17183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17184
17185else
17186 GXX=no
17187 with_gnu_ld=no
17188 wlarc=
17189fi
17190
17191# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000017192{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17193echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017194ld_shlibs_CXX=yes
17195case $host_os in
17196 aix3*)
17197 # FIXME: insert proper C++ library support
17198 ld_shlibs_CXX=no
17199 ;;
17200 aix4* | aix5*)
17201 if test "$host_cpu" = ia64; then
17202 # On IA64, the linker does run time linking by default, so we don't
17203 # have to do anything special.
17204 aix_use_runtimelinking=no
17205 exp_sym_flag='-Bexport'
17206 no_entry_flag=""
17207 else
17208 aix_use_runtimelinking=no
17209
17210 # Test if we are trying to use run time linking or normal
17211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17212 # need to do runtime linking.
17213 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17214 for ld_flag in $LDFLAGS; do
17215 case $ld_flag in
17216 *-brtl*)
17217 aix_use_runtimelinking=yes
17218 break
17219 ;;
17220 esac
17221 done
Reid Spencera773bd52006-08-04 18:18:08 +000017222 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017223 esac
17224
17225 exp_sym_flag='-bexport'
17226 no_entry_flag='-bnoentry'
17227 fi
17228
17229 # When large executables or shared objects are built, AIX ld can
17230 # have problems creating the table of contents. If linking a library
17231 # or program results in "error TOC overflow" add -mminimal-toc to
17232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17234
17235 archive_cmds_CXX=''
17236 hardcode_direct_CXX=yes
17237 hardcode_libdir_separator_CXX=':'
17238 link_all_deplibs_CXX=yes
17239
17240 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017241 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000017242 # We only want to do this on AIX 4.2 and lower, the check
17243 # below for broken collect2 doesn't work under 4.3+
17244 collect2name=`${CC} -print-prog-name=collect2`
17245 if test -f "$collect2name" && \
17246 strings "$collect2name" | grep resolve_lib_name >/dev/null
17247 then
17248 # We have reworked collect2
17249 hardcode_direct_CXX=yes
17250 else
17251 # We have old collect2
17252 hardcode_direct_CXX=unsupported
17253 # It fails to find uninstalled libraries when the uninstalled
17254 # path is not listed in the libpath. Setting hardcode_minus_L
17255 # to unsupported forces relinking
17256 hardcode_minus_L_CXX=yes
17257 hardcode_libdir_flag_spec_CXX='-L$libdir'
17258 hardcode_libdir_separator_CXX=
17259 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017261 esac
17262 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000017263 if test "$aix_use_runtimelinking" = yes; then
17264 shared_flag="$shared_flag "'${wl}-G'
17265 fi
John Criswell47fdd832003-07-14 16:52:07 +000017266 else
17267 # not using gcc
17268 if test "$host_cpu" = ia64; then
17269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17270 # chokes on -Wl,-G. The following line is correct:
17271 shared_flag='-G'
17272 else
17273 if test "$aix_use_runtimelinking" = yes; then
17274 shared_flag='${wl}-G'
17275 else
17276 shared_flag='${wl}-bM:SRE'
17277 fi
17278 fi
17279 fi
17280
17281 # It seems that -bexpall does not export symbols beginning with
17282 # underscore (_), so it is better to generate a list of symbols to export.
17283 always_export_symbols_CXX=yes
17284 if test "$aix_use_runtimelinking" = yes; then
17285 # Warning - without using the other runtime loading flags (-brtl),
17286 # -berok will link without error, but may produce a broken library.
17287 allow_undefined_flag_CXX='-berok'
17288 # Determine the default libpath from the value encoded in an empty executable.
17289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017295
John Criswell47fdd832003-07-14 16:52:07 +000017296int
17297main ()
17298{
17299
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017305if { (ac_try="$ac_link"
17306case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017312 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017317 (exit $ac_status); } && {
17318 test -z "$ac_cxx_werror_flag" ||
17319 test ! -s conftest.err
17320 } && test -s conftest$ac_exeext &&
17321 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017322
17323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17324}'`
17325# Check for a 64-bit object if we didn't find anything.
17326if 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; }
17327}'`; fi
17328else
17329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017330sed 's/^/| /' conftest.$ac_ext >&5
17331
Reid Spencera773bd52006-08-04 18:18:08 +000017332
John Criswell47fdd832003-07-14 16:52:07 +000017333fi
Reid Spencera773bd52006-08-04 18:18:08 +000017334
Scott Michel96dcd2b2007-12-05 21:24:02 +000017335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017336 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17338
17339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17340
Reid Spencera773bd52006-08-04 18:18:08 +000017341 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 +000017342 else
17343 if test "$host_cpu" = ia64; then
17344 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17345 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000017346 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 +000017347 else
17348 # Determine the default libpath from the value encoded in an empty executable.
17349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017355
John Criswell47fdd832003-07-14 16:52:07 +000017356int
17357main ()
17358{
17359
17360 ;
17361 return 0;
17362}
17363_ACEOF
17364rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017365if { (ac_try="$ac_link"
17366case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017377 (exit $ac_status); } && {
17378 test -z "$ac_cxx_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017382
17383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17384}'`
17385# Check for a 64-bit object if we didn't find anything.
17386if 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; }
17387}'`; fi
17388else
17389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017390sed 's/^/| /' conftest.$ac_ext >&5
17391
Reid Spencera773bd52006-08-04 18:18:08 +000017392
John Criswell47fdd832003-07-14 16:52:07 +000017393fi
Reid Spencera773bd52006-08-04 18:18:08 +000017394
Scott Michel96dcd2b2007-12-05 21:24:02 +000017395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017396 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17398
17399 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17400 # Warning - without using the other run time loading flags,
17401 # -berok will link without error, but may produce a broken library.
17402 no_undefined_flag_CXX=' ${wl}-bernotok'
17403 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000017404 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000017405 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000017406 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017407 # This is similar to how AIX traditionally builds its shared libraries.
17408 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 +000017409 fi
17410 fi
17411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017412
17413 beos*)
17414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17415 allow_undefined_flag_CXX=unsupported
17416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17417 # support --undefined. This deserves some investigation. FIXME
17418 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 else
17420 ld_shlibs_CXX=no
17421 fi
17422 ;;
17423
John Criswell47fdd832003-07-14 16:52:07 +000017424 chorus*)
17425 case $cc_basename in
17426 *)
17427 # FIXME: insert proper C++ library support
17428 ld_shlibs_CXX=no
17429 ;;
17430 esac
17431 ;;
17432
17433 cygwin* | mingw* | pw32*)
17434 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17435 # as there is no search path for DLLs.
17436 hardcode_libdir_flag_spec_CXX='-L$libdir'
17437 allow_undefined_flag_CXX=unsupported
17438 always_export_symbols_CXX=no
17439 enable_shared_with_static_runtimes_CXX=yes
17440
17441 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017442 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 +000017443 # If the export-symbols file already is a .def file (1st line
17444 # is EXPORTS), use it as is; otherwise, prepend...
17445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17446 cp $export_symbols $output_objdir/$soname.def;
17447 else
17448 echo EXPORTS > $output_objdir/$soname.def;
17449 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000017450 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000017451 $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 +000017452 else
17453 ld_shlibs_CXX=no
17454 fi
17455 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017456 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000017457 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017458 rhapsody* | darwin1.[012])
17459 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17460 ;;
17461 *) # Darwin 1.3 on
17462 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17463 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17464 else
17465 case ${MACOSX_DEPLOYMENT_TARGET} in
17466 10.[012])
17467 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17468 ;;
17469 10.*)
17470 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17471 ;;
17472 esac
17473 fi
17474 ;;
17475 esac
17476 archive_cmds_need_lc_CXX=no
17477 hardcode_direct_CXX=no
17478 hardcode_automatic_CXX=yes
17479 hardcode_shlibpath_var_CXX=unsupported
17480 whole_archive_flag_spec_CXX=''
17481 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017482
Reid Spencer2706f8c2004-09-19 23:53:36 +000017483 if test "$GXX" = yes ; then
17484 lt_int_apple_cc_single_mod=no
17485 output_verbose_link_cmd='echo'
17486 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17487 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000017488 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000017489 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017490 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 +000017491 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017492 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 +000017493 fi
17494 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017495 # 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 +000017496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017497 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 +000017498 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017499 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 +000017500 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000017501 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 +000017502 else
Reid Spencera773bd52006-08-04 18:18:08 +000017503 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017504 xlc*)
17505 output_verbose_link_cmd='echo'
17506 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'
17507 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017508 # 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 +000017509 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}'
17510 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 +000017511 ;;
17512 *)
17513 ld_shlibs_CXX=no
17514 ;;
17515 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000017516 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017517 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017518
17519 dgux*)
17520 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017521 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000017522 # FIXME: insert proper C++ library support
17523 ld_shlibs_CXX=no
17524 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017525 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000017526 # Green Hills C++ Compiler
17527 # FIXME: insert proper C++ library support
17528 ld_shlibs_CXX=no
17529 ;;
17530 *)
17531 # FIXME: insert proper C++ library support
17532 ld_shlibs_CXX=no
17533 ;;
17534 esac
17535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017536 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000017537 # C++ shared libraries reported to be fairly broken before switch to ELF
17538 ld_shlibs_CXX=no
17539 ;;
17540 freebsd-elf*)
17541 archive_cmds_need_lc_CXX=no
17542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017543 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000017544 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17545 # conventions
17546 ld_shlibs_CXX=yes
17547 ;;
17548 gnu*)
17549 ;;
17550 hpux9*)
17551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17552 hardcode_libdir_separator_CXX=:
17553 export_dynamic_flag_spec_CXX='${wl}-E'
17554 hardcode_direct_CXX=yes
17555 hardcode_minus_L_CXX=yes # Not in the search PATH,
17556 # but as the default
17557 # location of the library.
17558
17559 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017560 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017561 # FIXME: insert proper C++ library support
17562 ld_shlibs_CXX=no
17563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017564 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000017565 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 +000017566 # Commands to make compiler produce verbose output that lists
17567 # what "hidden" libraries, object files and flags are used when
17568 # linking a shared library.
17569 #
17570 # There doesn't appear to be a way to prevent this compiler from
17571 # explicitly linking system object files so we need to strip them
17572 # from the output so that they don't get included in the library
17573 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000017574 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 +000017575 ;;
17576 *)
17577 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017578 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 +000017579 else
17580 # FIXME: insert proper C++ library support
17581 ld_shlibs_CXX=no
17582 fi
17583 ;;
17584 esac
17585 ;;
17586 hpux10*|hpux11*)
17587 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17589 hardcode_libdir_separator_CXX=:
17590
17591 case $host_cpu in
17592 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017593 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000017594 ;;
17595 *)
John Criswell47fdd832003-07-14 16:52:07 +000017596 export_dynamic_flag_spec_CXX='${wl}-E'
17597 ;;
17598 esac
17599 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017600 case $host_cpu in
17601 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017602 hardcode_direct_CXX=no
17603 hardcode_shlibpath_var_CXX=no
17604 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017605 *)
17606 hardcode_direct_CXX=yes
17607 hardcode_minus_L_CXX=yes # Not in the search PATH,
17608 # but as the default
17609 # location of the library.
17610 ;;
17611 esac
17612
17613 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017614 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017615 # FIXME: insert proper C++ library support
17616 ld_shlibs_CXX=no
17617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017618 aCC*)
17619 case $host_cpu in
17620 hppa*64*)
17621 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17622 ;;
17623 ia64*)
17624 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 +000017625 ;;
17626 *)
17627 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17628 ;;
17629 esac
17630 # Commands to make compiler produce verbose output that lists
17631 # what "hidden" libraries, object files and flags are used when
17632 # linking a shared library.
17633 #
17634 # There doesn't appear to be a way to prevent this compiler from
17635 # explicitly linking system object files so we need to strip them
17636 # from the output so that they don't get included in the library
17637 # dependencies.
17638 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'
17639 ;;
17640 *)
17641 if test "$GXX" = yes; then
17642 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017643 case $host_cpu in
17644 hppa*64*)
17645 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17646 ;;
17647 ia64*)
17648 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 +000017649 ;;
17650 *)
17651 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'
17652 ;;
17653 esac
17654 fi
17655 else
17656 # FIXME: insert proper C++ library support
17657 ld_shlibs_CXX=no
17658 fi
17659 ;;
17660 esac
17661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017662 interix3*)
17663 hardcode_direct_CXX=no
17664 hardcode_shlibpath_var_CXX=no
17665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17666 export_dynamic_flag_spec_CXX='${wl}-E'
17667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17668 # Instead, shared libraries are loaded at an image base (0x10000000 by
17669 # default) and relocated if they conflict, which is a slow very memory
17670 # consuming and fragmenting process. To avoid this, we pick a random,
17671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17673 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'
17674 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'
17675 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017676 irix5* | irix6*)
17677 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017678 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017679 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000017680 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 +000017681
17682 # Archives containing C++ object files must be created using
17683 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17684 # necessary to make sure instantiated templates are included
17685 # in the archive.
17686 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17687 ;;
17688 *)
17689 if test "$GXX" = yes; then
17690 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017691 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 +000017692 else
17693 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'
17694 fi
17695 fi
17696 link_all_deplibs_CXX=yes
17697 ;;
17698 esac
17699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17700 hardcode_libdir_separator_CXX=:
17701 ;;
17702 linux*)
17703 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017704 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017705 # Kuck and Associates, Inc. (KAI) C++ Compiler
17706
17707 # KCC will only create a shared library if the output file
17708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17709 # to its proper name (with version) after linking.
17710 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'
17711 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'
17712 # Commands to make compiler produce verbose output that lists
17713 # what "hidden" libraries, object files and flags are used when
17714 # linking a shared library.
17715 #
17716 # There doesn't appear to be a way to prevent this compiler from
17717 # explicitly linking system object files so we need to strip them
17718 # from the output so that they don't get included in the library
17719 # dependencies.
17720 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'
17721
17722 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17724
17725 # Archives containing C++ object files must be created using
17726 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17727 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17728 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017729 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000017730 # Intel C++
17731 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017732 # version 8.0 and above of icpc choke on multiply defined symbols
17733 # if we add $predep_objects and $postdep_objects, however 7.1 and
17734 # earlier do not add the objects themselves.
17735 case `$CC -V 2>&1` in
17736 *"Version 7."*)
17737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17738 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'
17739 ;;
17740 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000017741 tmp_idyn=
17742 case $host_cpu in
17743 ia64*) tmp_idyn=' -i_dynamic';;
17744 esac
17745 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17746 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 +000017747 ;;
17748 esac
John Criswell47fdd832003-07-14 16:52:07 +000017749 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000017750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17752 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17753 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017754 pgCC*)
17755 # Portland Group C++ compiler
17756 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17757 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'
17758
17759 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17761 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'
17762 ;;
17763 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017764 # Compaq C++
17765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17766 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'
17767
17768 runpath_var=LD_RUN_PATH
17769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17770 hardcode_libdir_separator_CXX=:
17771
17772 # Commands to make compiler produce verbose output that lists
17773 # what "hidden" libraries, object files and flags are used when
17774 # linking a shared library.
17775 #
17776 # There doesn't appear to be a way to prevent this compiler from
17777 # explicitly linking system object files so we need to strip them
17778 # from the output so that they don't get included in the library
17779 # dependencies.
17780 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'
17781 ;;
17782 esac
17783 ;;
17784 lynxos*)
17785 # FIXME: insert proper C++ library support
17786 ld_shlibs_CXX=no
17787 ;;
17788 m88k*)
17789 # FIXME: insert proper C++ library support
17790 ld_shlibs_CXX=no
17791 ;;
17792 mvs*)
17793 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017794 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017795 # FIXME: insert proper C++ library support
17796 ld_shlibs_CXX=no
17797 ;;
17798 *)
17799 # FIXME: insert proper C++ library support
17800 ld_shlibs_CXX=no
17801 ;;
17802 esac
17803 ;;
17804 netbsd*)
17805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17806 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17807 wlarc=
17808 hardcode_libdir_flag_spec_CXX='-R$libdir'
17809 hardcode_direct_CXX=yes
17810 hardcode_shlibpath_var_CXX=no
17811 fi
17812 # Workaround some broken pre-1.5 toolchains
17813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17814 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017815 openbsd2*)
17816 # C++ shared libraries are fairly broken
17817 ld_shlibs_CXX=no
17818 ;;
17819 openbsd*)
17820 hardcode_direct_CXX=yes
17821 hardcode_shlibpath_var_CXX=no
17822 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17824 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17825 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17826 export_dynamic_flag_spec_CXX='${wl}-E'
17827 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17828 fi
17829 output_verbose_link_cmd='echo'
17830 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017831 osf3*)
17832 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017833 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017834 # Kuck and Associates, Inc. (KAI) C++ Compiler
17835
17836 # KCC will only create a shared library if the output file
17837 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17838 # to its proper name (with version) after linking.
17839 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'
17840
17841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17842 hardcode_libdir_separator_CXX=:
17843
17844 # Archives containing C++ object files must be created using
17845 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17846 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17847
17848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017849 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017850 # Rational C++ 2.4.1
17851 # FIXME: insert proper C++ library support
17852 ld_shlibs_CXX=no
17853 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017854 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017856 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 +000017857
17858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17859 hardcode_libdir_separator_CXX=:
17860
17861 # Commands to make compiler produce verbose output that lists
17862 # what "hidden" libraries, object files and flags are used when
17863 # linking a shared library.
17864 #
17865 # There doesn't appear to be a way to prevent this compiler from
17866 # explicitly linking system object files so we need to strip them
17867 # from the output so that they don't get included in the library
17868 # dependencies.
17869 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'
17870 ;;
17871 *)
17872 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17873 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017874 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 +000017875
17876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17877 hardcode_libdir_separator_CXX=:
17878
17879 # Commands to make compiler produce verbose output that lists
17880 # what "hidden" libraries, object files and flags are used when
17881 # linking a shared library.
17882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17883
17884 else
17885 # FIXME: insert proper C++ library support
17886 ld_shlibs_CXX=no
17887 fi
17888 ;;
17889 esac
17890 ;;
17891 osf4* | osf5*)
17892 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017893 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017894 # Kuck and Associates, Inc. (KAI) C++ Compiler
17895
17896 # KCC will only create a shared library if the output file
17897 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17898 # to its proper name (with version) after linking.
17899 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'
17900
17901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17902 hardcode_libdir_separator_CXX=:
17903
17904 # Archives containing C++ object files must be created using
17905 # the KAI C++ compiler.
17906 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017908 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017909 # Rational C++ 2.4.1
17910 # FIXME: insert proper C++ library support
17911 ld_shlibs_CXX=no
17912 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017913 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017914 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000017915 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 +000017916 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17917 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000017918 $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 +000017919 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000017920
17921 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17922 hardcode_libdir_separator_CXX=:
17923
17924 # Commands to make compiler produce verbose output that lists
17925 # what "hidden" libraries, object files and flags are used when
17926 # linking a shared library.
17927 #
17928 # There doesn't appear to be a way to prevent this compiler from
17929 # explicitly linking system object files so we need to strip them
17930 # from the output so that they don't get included in the library
17931 # dependencies.
17932 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'
17933 ;;
17934 *)
17935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017937 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 +000017938
17939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17940 hardcode_libdir_separator_CXX=:
17941
17942 # Commands to make compiler produce verbose output that lists
17943 # what "hidden" libraries, object files and flags are used when
17944 # linking a shared library.
17945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17946
17947 else
17948 # FIXME: insert proper C++ library support
17949 ld_shlibs_CXX=no
17950 fi
17951 ;;
17952 esac
17953 ;;
17954 psos*)
17955 # FIXME: insert proper C++ library support
17956 ld_shlibs_CXX=no
17957 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017958 sunos4*)
17959 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017960 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017961 # Sun C++ 4.x
17962 # FIXME: insert proper C++ library support
17963 ld_shlibs_CXX=no
17964 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017965 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000017966 # Lucid
17967 # FIXME: insert proper C++ library support
17968 ld_shlibs_CXX=no
17969 ;;
17970 *)
17971 # FIXME: insert proper C++ library support
17972 ld_shlibs_CXX=no
17973 ;;
17974 esac
17975 ;;
17976 solaris*)
17977 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017978 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017979 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000017980 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017981 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000017982 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 +000017983 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 +000017984 $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 +000017985
17986 hardcode_libdir_flag_spec_CXX='-R$libdir'
17987 hardcode_shlibpath_var_CXX=no
17988 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000017989 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000017990 *)
17991 # The C++ compiler is used as linker so we must use $wl
17992 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000017993 # linker. We must also pass each convience library through
17994 # to the system linker between allextract/defaultextract.
17995 # The C++ compiler will combine linker options so we
17996 # cannot just pass the convience library names through
17997 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000017998 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000017999 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 +000018000 ;;
18001 esac
18002 link_all_deplibs_CXX=yes
18003
Reid Spencera773bd52006-08-04 18:18:08 +000018004 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018005
18006 # Archives containing C++ object files must be created using
18007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18008 # necessary to make sure instantiated templates are included
18009 # in the archive.
18010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18011 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018012 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018013 # Green Hills C++ Compiler
18014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18015
18016 # The C++ compiler must be used to create the archive.
18017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18018 ;;
18019 *)
18020 # GNU C++ compiler with Solaris linker
18021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18023 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018024 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 +000018025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18027
John Criswell47fdd832003-07-14 16:52:07 +000018028 # Commands to make compiler produce verbose output that lists
18029 # what "hidden" libraries, object files and flags are used when
18030 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018031 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018032 else
18033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18034 # platform.
18035 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 +000018036 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18037 $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 +000018038
18039 # Commands to make compiler produce verbose output that lists
18040 # what "hidden" libraries, object files and flags are used when
18041 # linking a shared library.
18042 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18043 fi
18044
18045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18046 fi
18047 ;;
18048 esac
18049 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018050 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18051 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018052 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018053 hardcode_shlibpath_var_CXX=no
18054 runpath_var='LD_RUN_PATH'
18055
18056 case $cc_basename in
18057 CC*)
18058 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18060 ;;
18061 *)
18062 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18063 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18064 ;;
18065 esac
18066 ;;
18067 sysv5* | sco3.2v5* | sco5v6*)
18068 # Note: We can NOT use -z defs as we might desire, because we do not
18069 # link with -lc, and that would cause any symbols used from libc to
18070 # always be unresolved, which means just about no library would
18071 # ever link correctly. If we're not using GNU ld we use -z text
18072 # though, which does catch some bad symbols but isn't as heavy-handed
18073 # as -z defs.
18074 # For security reasons, it is highly recommended that you always
18075 # use absolute paths for naming shared libraries, and exclude the
18076 # DT_RUNPATH tag from executables and libraries. But doing so
18077 # requires that you compile everything twice, which is a pain.
18078 # So that behaviour is only enabled if SCOABSPATH is set to a
18079 # non-empty value in the environment. Most likely only useful for
18080 # creating official distributions of packages.
18081 # This is a hack until libtool officially supports absolute path
18082 # names for shared libraries.
18083 no_undefined_flag_CXX='${wl}-z,text'
18084 allow_undefined_flag_CXX='${wl}-z,nodefs'
18085 archive_cmds_need_lc_CXX=no
18086 hardcode_shlibpath_var_CXX=no
18087 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18088 hardcode_libdir_separator_CXX=':'
18089 link_all_deplibs_CXX=yes
18090 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18091 runpath_var='LD_RUN_PATH'
18092
18093 case $cc_basename in
18094 CC*)
18095 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18097 ;;
18098 *)
18099 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18101 ;;
18102 esac
John Criswell47fdd832003-07-14 16:52:07 +000018103 ;;
18104 tandem*)
18105 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018106 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018107 # NonStop-UX NCC 3.20
18108 # FIXME: insert proper C++ library support
18109 ld_shlibs_CXX=no
18110 ;;
18111 *)
18112 # FIXME: insert proper C++ library support
18113 ld_shlibs_CXX=no
18114 ;;
18115 esac
18116 ;;
18117 vxworks*)
18118 # FIXME: insert proper C++ library support
18119 ld_shlibs_CXX=no
18120 ;;
18121 *)
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 ;;
18125esac
Reid Spencera773bd52006-08-04 18:18:08 +000018126{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18127echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018128test "$ld_shlibs_CXX" = no && can_build_shared=no
18129
18130GCC_CXX="$GXX"
18131LD_CXX="$LD"
18132
John Criswell47fdd832003-07-14 16:52:07 +000018133
18134cat > conftest.$ac_ext <<EOF
18135class Foo
18136{
18137public:
18138 Foo (void) { a = 0; }
18139private:
18140 int a;
18141};
18142EOF
18143
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; then
18149 # Parse the compiler output and extract the necessary
18150 # objects, libraries and library flags.
18151
18152 # Sentinel used to keep track of whether or not we are before
18153 # the conftest object file.
18154 pre_test_object_deps_done=no
18155
18156 # The `*' in the case matches for architectures that use `case' in
18157 # $output_verbose_cmd can trigger glob expansion during the loop
18158 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000018159 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000018160
18161 for p in `eval $output_verbose_link_cmd`; do
18162 case $p in
18163
18164 -L* | -R* | -l*)
18165 # Some compilers place space between "-{L,R}" and the path.
18166 # Remove the space.
18167 if test $p = "-L" \
18168 || test $p = "-R"; then
18169 prev=$p
18170 continue
18171 else
18172 prev=
18173 fi
18174
18175 if test "$pre_test_object_deps_done" = no; then
18176 case $p in
18177 -L* | -R*)
18178 # Internal compiler library paths should come after those
18179 # provided the user. The postdeps already come after the
18180 # user supplied libs so there is no need to process them.
18181 if test -z "$compiler_lib_search_path_CXX"; then
18182 compiler_lib_search_path_CXX="${prev}${p}"
18183 else
18184 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18185 fi
18186 ;;
18187 # The "-l" case would never come before the object being
18188 # linked, so don't bother handling this case.
18189 esac
18190 else
18191 if test -z "$postdeps_CXX"; then
18192 postdeps_CXX="${prev}${p}"
18193 else
18194 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18195 fi
18196 fi
18197 ;;
18198
18199 *.$objext)
18200 # This assumes that the test object file only shows up
18201 # once in the compiler output.
18202 if test "$p" = "conftest.$objext"; then
18203 pre_test_object_deps_done=yes
18204 continue
18205 fi
18206
18207 if test "$pre_test_object_deps_done" = no; then
18208 if test -z "$predep_objects_CXX"; then
18209 predep_objects_CXX="$p"
18210 else
18211 predep_objects_CXX="$predep_objects_CXX $p"
18212 fi
18213 else
18214 if test -z "$postdep_objects_CXX"; then
18215 postdep_objects_CXX="$p"
18216 else
18217 postdep_objects_CXX="$postdep_objects_CXX $p"
18218 fi
18219 fi
18220 ;;
18221
18222 *) ;; # Ignore the rest.
18223
18224 esac
18225 done
18226
18227 # Clean up.
18228 rm -f a.out a.exe
18229else
18230 echo "libtool.m4: error: problem compiling CXX test program"
18231fi
18232
18233$rm -f confest.$objext
18234
Reid Spencera773bd52006-08-04 18:18:08 +000018235# PORTME: override above test on systems where it is broken
18236case $host_os in
18237interix3*)
18238 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18239 # hack all around it, let's just trust "g++" to DTRT.
18240 predep_objects_CXX=
18241 postdep_objects_CXX=
18242 postdeps_CXX=
18243 ;;
18244
18245solaris*)
18246 case $cc_basename in
18247 CC*)
18248 # Adding this requires a known-good setup of shared libraries for
18249 # Sun compiler versions before 5.6, else PIC objects from an old
18250 # archive will be linked into the output, leading to subtle bugs.
18251 postdeps_CXX='-lCstd -lCrun'
18252 ;;
18253 esac
18254 ;;
18255esac
18256
18257
John Criswell47fdd832003-07-14 16:52:07 +000018258case " $postdeps_CXX " in
18259*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18260esac
18261
18262lt_prog_compiler_wl_CXX=
18263lt_prog_compiler_pic_CXX=
18264lt_prog_compiler_static_CXX=
18265
Reid Spencera773bd52006-08-04 18:18:08 +000018266{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018268
18269 # C++ specific cases for pic, static, wl, etc.
18270 if test "$GXX" = yes; then
18271 lt_prog_compiler_wl_CXX='-Wl,'
18272 lt_prog_compiler_static_CXX='-static'
18273
18274 case $host_os in
18275 aix*)
18276 # All AIX code is PIC.
18277 if test "$host_cpu" = ia64; then
18278 # AIX 5 now supports IA64 processor
18279 lt_prog_compiler_static_CXX='-Bstatic'
18280 fi
18281 ;;
18282 amigaos*)
18283 # FIXME: we need at least 68020 code to build shared libraries, but
18284 # adding the `-m68020' flag to GCC prevents building anything better,
18285 # like `-m68040'.
18286 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18287 ;;
18288 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18289 # PIC is the default for these OSes.
18290 ;;
18291 mingw* | os2* | pw32*)
18292 # This hack is so that the source file can tell whether it is being
18293 # built for inclusion in a dll (and should export symbols for example).
18294 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18295 ;;
18296 darwin* | rhapsody*)
18297 # PIC is the default on this platform
18298 # Common symbols not allowed in MH_DYLIB files
18299 lt_prog_compiler_pic_CXX='-fno-common'
18300 ;;
18301 *djgpp*)
18302 # DJGPP does not support shared libraries at all
18303 lt_prog_compiler_pic_CXX=
18304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018305 interix3*)
18306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18307 # Instead, we relocate shared libraries at runtime.
18308 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018309 sysv4*MP*)
18310 if test -d /usr/nec; then
18311 lt_prog_compiler_pic_CXX=-Kconform_pic
18312 fi
18313 ;;
18314 hpux*)
18315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18316 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000018317 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018318 hppa*64*|ia64*)
18319 ;;
18320 *)
18321 lt_prog_compiler_pic_CXX='-fPIC'
18322 ;;
18323 esac
18324 ;;
18325 *)
18326 lt_prog_compiler_pic_CXX='-fPIC'
18327 ;;
18328 esac
18329 else
18330 case $host_os in
18331 aix4* | aix5*)
18332 # All AIX code is PIC.
18333 if test "$host_cpu" = ia64; then
18334 # AIX 5 now supports IA64 processor
18335 lt_prog_compiler_static_CXX='-Bstatic'
18336 else
18337 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18338 fi
18339 ;;
18340 chorus*)
18341 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018342 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000018343 # Green Hills C++ Compiler
18344 # _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"
18345 ;;
18346 esac
18347 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018348 darwin*)
18349 # PIC is the default on this platform
18350 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000018351 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018352 xlc*)
18353 lt_prog_compiler_pic_CXX='-qnocommon'
18354 lt_prog_compiler_wl_CXX='-Wl,'
18355 ;;
18356 esac
18357 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018358 dgux*)
18359 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018360 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018361 lt_prog_compiler_pic_CXX='-KPIC'
18362 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018363 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018364 # Green Hills C++ Compiler
18365 lt_prog_compiler_pic_CXX='-pic'
18366 ;;
18367 *)
18368 ;;
18369 esac
18370 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018371 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018372 # FreeBSD uses GNU C++
18373 ;;
18374 hpux9* | hpux10* | hpux11*)
18375 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018376 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018377 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018378 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000018379 if test "$host_cpu" != ia64; then
18380 lt_prog_compiler_pic_CXX='+Z'
18381 fi
18382 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018383 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018384 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18386 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018387 hppa*64*|ia64*)
18388 # +Z the default
18389 ;;
18390 *)
18391 lt_prog_compiler_pic_CXX='+Z'
18392 ;;
18393 esac
18394 ;;
18395 *)
18396 ;;
18397 esac
18398 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018399 interix*)
18400 # This is c89, which is MS Visual C++ (no shared libs)
18401 # Anyone wants to do a port?
18402 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018403 irix5* | irix6* | nonstopux*)
18404 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018405 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018406 lt_prog_compiler_wl_CXX='-Wl,'
18407 lt_prog_compiler_static_CXX='-non_shared'
18408 # CC pic flag -KPIC is the default.
18409 ;;
18410 *)
18411 ;;
18412 esac
18413 ;;
18414 linux*)
18415 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018416 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018417 # KAI C++ Compiler
18418 lt_prog_compiler_wl_CXX='--backend -Wl,'
18419 lt_prog_compiler_pic_CXX='-fPIC'
18420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018421 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018422 # Intel C++
18423 lt_prog_compiler_wl_CXX='-Wl,'
18424 lt_prog_compiler_pic_CXX='-KPIC'
18425 lt_prog_compiler_static_CXX='-static'
18426 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018427 pgCC*)
18428 # Portland Group C++ compiler.
18429 lt_prog_compiler_wl_CXX='-Wl,'
18430 lt_prog_compiler_pic_CXX='-fpic'
18431 lt_prog_compiler_static_CXX='-Bstatic'
18432 ;;
18433 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018434 # Compaq C++
18435 # Make sure the PIC flag is empty. It appears that all Alpha
18436 # Linux and Compaq Tru64 Unix objects are PIC.
18437 lt_prog_compiler_pic_CXX=
18438 lt_prog_compiler_static_CXX='-non_shared'
18439 ;;
18440 *)
18441 ;;
18442 esac
18443 ;;
18444 lynxos*)
18445 ;;
18446 m88k*)
18447 ;;
18448 mvs*)
18449 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018450 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018451 lt_prog_compiler_pic_CXX='-W c,exportall'
18452 ;;
18453 *)
18454 ;;
18455 esac
18456 ;;
18457 netbsd*)
18458 ;;
18459 osf3* | osf4* | osf5*)
18460 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018461 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018462 lt_prog_compiler_wl_CXX='--backend -Wl,'
18463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018464 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018465 # Rational C++ 2.4.1
18466 lt_prog_compiler_pic_CXX='-pic'
18467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018468 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018469 # Digital/Compaq C++
18470 lt_prog_compiler_wl_CXX='-Wl,'
18471 # Make sure the PIC flag is empty. It appears that all Alpha
18472 # Linux and Compaq Tru64 Unix objects are PIC.
18473 lt_prog_compiler_pic_CXX=
18474 lt_prog_compiler_static_CXX='-non_shared'
18475 ;;
18476 *)
18477 ;;
18478 esac
18479 ;;
18480 psos*)
18481 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018482 solaris*)
18483 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018484 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018485 # Sun C++ 4.2, 5.x and Centerline C++
18486 lt_prog_compiler_pic_CXX='-KPIC'
18487 lt_prog_compiler_static_CXX='-Bstatic'
18488 lt_prog_compiler_wl_CXX='-Qoption ld '
18489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018490 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018491 # Green Hills C++ Compiler
18492 lt_prog_compiler_pic_CXX='-PIC'
18493 ;;
18494 *)
18495 ;;
18496 esac
18497 ;;
18498 sunos4*)
18499 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018500 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018501 # Sun C++ 4.x
18502 lt_prog_compiler_pic_CXX='-pic'
18503 lt_prog_compiler_static_CXX='-Bstatic'
18504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018505 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018506 # Lucid
18507 lt_prog_compiler_pic_CXX='-pic'
18508 ;;
18509 *)
18510 ;;
18511 esac
18512 ;;
18513 tandem*)
18514 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018515 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018516 # NonStop-UX NCC 3.20
18517 lt_prog_compiler_pic_CXX='-KPIC'
18518 ;;
18519 *)
18520 ;;
18521 esac
18522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018523 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18524 case $cc_basename in
18525 CC*)
18526 lt_prog_compiler_wl_CXX='-Wl,'
18527 lt_prog_compiler_pic_CXX='-KPIC'
18528 lt_prog_compiler_static_CXX='-Bstatic'
18529 ;;
18530 esac
John Criswell47fdd832003-07-14 16:52:07 +000018531 ;;
18532 vxworks*)
18533 ;;
18534 *)
18535 lt_prog_compiler_can_build_shared_CXX=no
18536 ;;
18537 esac
18538 fi
18539
Reid Spencera773bd52006-08-04 18:18:08 +000018540{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18541echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018542
18543#
18544# Check to make sure the PIC flag actually works.
18545#
18546if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018547
Reid Spencera773bd52006-08-04 18:18:08 +000018548{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18549echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018550if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18552else
18553 lt_prog_compiler_pic_works_CXX=no
18554 ac_outfile=conftest.$ac_objext
18555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18556 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18557 # Insert the option either (1) after the last *FLAGS variable, or
18558 # (2) before a word containing "conftest.", or (3) at the end.
18559 # Note that $ac_compile itself does not contain backslashes and begins
18560 # with a dollar sign (not a hyphen), so the echo should work correctly.
18561 # The option is referenced via a variable to avoid confusing sed.
18562 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18565 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000018566 (eval echo "\"\$as_me:18565: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018567 (eval "$lt_compile" 2>conftest.err)
18568 ac_status=$?
18569 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000018570 echo "$as_me:18569: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018571 if (exit $ac_status) && test -s "$ac_outfile"; then
18572 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000018573 # So say no if there are warnings other than the usual output.
18574 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018577 lt_prog_compiler_pic_works_CXX=yes
18578 fi
18579 fi
18580 $rm conftest*
18581
18582fi
Reid Spencera773bd52006-08-04 18:18:08 +000018583{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18584echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018585
18586if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18587 case $lt_prog_compiler_pic_CXX in
18588 "" | " "*) ;;
18589 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18590 esac
18591else
18592 lt_prog_compiler_pic_CXX=
18593 lt_prog_compiler_can_build_shared_CXX=no
18594fi
18595
18596fi
Reid Spencera773bd52006-08-04 18:18:08 +000018597case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018598 # For platforms which do not support PIC, -DPIC is meaningless:
18599 *djgpp*)
18600 lt_prog_compiler_pic_CXX=
18601 ;;
18602 *)
18603 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18604 ;;
18605esac
18606
Reid Spencera773bd52006-08-04 18:18:08 +000018607#
18608# Check to make sure the static flag actually works.
18609#
18610wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18611{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18612echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18613if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615else
18616 lt_prog_compiler_static_works_CXX=no
18617 save_LDFLAGS="$LDFLAGS"
18618 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18619 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18620 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18621 # The linker can only warn and ignore the option if not recognized
18622 # So say no if there are warnings
18623 if test -s conftest.err; then
18624 # Append any errors to the config.log.
18625 cat conftest.err 1>&5
18626 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18628 if diff conftest.exp conftest.er2 >/dev/null; then
18629 lt_prog_compiler_static_works_CXX=yes
18630 fi
18631 else
18632 lt_prog_compiler_static_works_CXX=yes
18633 fi
18634 fi
18635 $rm conftest*
18636 LDFLAGS="$save_LDFLAGS"
18637
18638fi
18639{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18640echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18641
18642if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18643 :
18644else
18645 lt_prog_compiler_static_CXX=
18646fi
18647
18648
18649{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18650echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018651if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18653else
18654 lt_cv_prog_compiler_c_o_CXX=no
18655 $rm -r conftest 2>/dev/null
18656 mkdir conftest
18657 cd conftest
18658 mkdir out
18659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18660
John Criswell47fdd832003-07-14 16:52:07 +000018661 lt_compiler_flag="-o out/conftest2.$ac_objext"
18662 # Insert the option either (1) after the last *FLAGS variable, or
18663 # (2) before a word containing "conftest.", or (3) at the end.
18664 # Note that $ac_compile itself does not contain backslashes and begins
18665 # with a dollar sign (not a hyphen), so the echo should work correctly.
18666 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18669 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000018670 (eval echo "\"\$as_me:18669: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018671 (eval "$lt_compile" 2>out/conftest.err)
18672 ac_status=$?
18673 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000018674 echo "$as_me:18673: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18676 then
18677 # The compiler can only warn and ignore the option if not recognized
18678 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000018679 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018682 lt_cv_prog_compiler_c_o_CXX=yes
18683 fi
18684 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018685 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018686 $rm conftest*
18687 # SGI C++ compiler will create directory out/ii_files/ for
18688 # template instantiation
18689 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18690 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018691 cd ..
18692 rmdir conftest
18693 $rm conftest*
18694
18695fi
Reid Spencera773bd52006-08-04 18:18:08 +000018696{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18697echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018698
18699
18700hard_links="nottested"
18701if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18702 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000018703 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18704echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018705 hard_links=yes
18706 $rm conftest*
18707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18708 touch conftest.a
18709 ln conftest.a conftest.b 2>&5 || hard_links=no
18710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000018711 { echo "$as_me:$LINENO: result: $hard_links" >&5
18712echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018713 if test "$hard_links" = no; then
18714 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18715echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18716 need_locks=warn
18717 fi
18718else
18719 need_locks=no
18720fi
18721
Reid Spencera773bd52006-08-04 18:18:08 +000018722{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18723echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018724
18725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18726 case $host_os in
18727 aix4* | aix5*)
18728 # If we're using GNU nm, then we don't want the "-C" option.
18729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18730 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18731 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'
18732 else
18733 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'
18734 fi
18735 ;;
18736 pw32*)
18737 export_symbols_cmds_CXX="$ltdll_cmds"
18738 ;;
18739 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000018740 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 +000018741 ;;
18742 *)
18743 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18744 ;;
18745 esac
18746
Reid Spencera773bd52006-08-04 18:18:08 +000018747{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18748echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018749test "$ld_shlibs_CXX" = no && can_build_shared=no
18750
John Criswell47fdd832003-07-14 16:52:07 +000018751#
18752# Do we need to explicitly link libc?
18753#
18754case "x$archive_cmds_need_lc_CXX" in
18755x|xyes)
18756 # Assume -lc should be added
18757 archive_cmds_need_lc_CXX=yes
18758
18759 if test "$enable_shared" = yes && test "$GCC" = yes; then
18760 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018761 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000018762 # FIXME: we may have to deal with multi-command sequences.
18763 ;;
18764 '$CC '*)
18765 # Test whether the compiler implicitly links with -lc since on some
18766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18767 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000018768 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18769echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018770 $rm conftest*
18771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18772
18773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774 (eval $ac_compile) 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } 2>conftest.err; then
18778 soname=conftest
18779 lib=conftest
18780 libobjs=conftest.$ac_objext
18781 deplibs=
18782 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000018783 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000018784 compiler_flags=-v
18785 linker_flags=-v
18786 verstring=
18787 output_objdir=.
18788 libname=conftest
18789 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18790 allow_undefined_flag_CXX=
18791 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18792 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }
18796 then
18797 archive_cmds_need_lc_CXX=no
18798 else
18799 archive_cmds_need_lc_CXX=yes
18800 fi
18801 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18802 else
18803 cat conftest.err 1>&5
18804 fi
18805 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000018806 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18807echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018808 ;;
18809 esac
18810 fi
18811 ;;
18812esac
18813
Reid Spencera773bd52006-08-04 18:18:08 +000018814{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18815echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018816library_names_spec=
18817libname_spec='lib$name'
18818soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000018819shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000018820postinstall_cmds=
18821postuninstall_cmds=
18822finish_cmds=
18823finish_eval=
18824shlibpath_var=
18825shlibpath_overrides_runpath=unknown
18826version_type=none
18827dynamic_linker="$host_os ld.so"
18828sys_lib_dlsearch_path_spec="/lib /usr/lib"
18829if test "$GCC" = yes; then
18830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18831 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18832 # if the path contains ";" then we assume it to be the separator
18833 # otherwise default to the standard path separator (i.e. ":") - it is
18834 # assumed that no part of a normal pathname contains ";" but that should
18835 # okay in the real world where ";" in dirpaths is itself problematic.
18836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18837 else
18838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18839 fi
18840else
18841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18842fi
18843need_lib_prefix=unknown
18844hardcode_into_libs=no
18845
18846# when you set need_version to no, make sure it does not cause -set_version
18847# flags to be left without arguments
18848need_version=unknown
18849
18850case $host_os in
18851aix3*)
18852 version_type=linux
18853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18854 shlibpath_var=LIBPATH
18855
18856 # AIX 3 has no versioning support, so we append a major version to the name.
18857 soname_spec='${libname}${release}${shared_ext}$major'
18858 ;;
18859
18860aix4* | aix5*)
18861 version_type=linux
18862 need_lib_prefix=no
18863 need_version=no
18864 hardcode_into_libs=yes
18865 if test "$host_cpu" = ia64; then
18866 # AIX 5 supports IA64
18867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18868 shlibpath_var=LD_LIBRARY_PATH
18869 else
18870 # With GCC up to 2.95.x, collect2 would create an import file
18871 # for dependence libraries. The import file would start with
18872 # the line `#! .'. This would cause the generated library to
18873 # depend on `.', always an invalid library. This was fixed in
18874 # development snapshots of GCC prior to 3.0.
18875 case $host_os in
18876 aix4 | aix4.[01] | aix4.[01].*)
18877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18878 echo ' yes '
18879 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18880 :
18881 else
18882 can_build_shared=no
18883 fi
18884 ;;
18885 esac
18886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18887 # soname into executable. Probably we can add versioning support to
18888 # collect2, so additional links can be useful in future.
18889 if test "$aix_use_runtimelinking" = yes; then
18890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18891 # instead of lib<name>.a to let people know that these are not
18892 # typical AIX shared libraries.
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 else
18895 # We preserve .a as extension for shared libraries through AIX4.2
18896 # and later when we are not doing run time linking.
18897 library_names_spec='${libname}${release}.a $libname.a'
18898 soname_spec='${libname}${release}${shared_ext}$major'
18899 fi
18900 shlibpath_var=LIBPATH
18901 fi
18902 ;;
18903
18904amigaos*)
18905 library_names_spec='$libname.ixlibrary $libname.a'
18906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018907 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 +000018908 ;;
18909
18910beos*)
18911 library_names_spec='${libname}${shared_ext}'
18912 dynamic_linker="$host_os ld.so"
18913 shlibpath_var=LIBRARY_PATH
18914 ;;
18915
Reid Spencer2706f8c2004-09-19 23:53:36 +000018916bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000018917 version_type=linux
18918 need_version=no
18919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18920 soname_spec='${libname}${release}${shared_ext}$major'
18921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18922 shlibpath_var=LD_LIBRARY_PATH
18923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18925 # the default ld.so.conf also contains /usr/contrib/lib and
18926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18927 # libtool to hard-code these into programs
18928 ;;
18929
18930cygwin* | mingw* | pw32*)
18931 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000018932 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000018933 need_version=no
18934 need_lib_prefix=no
18935
18936 case $GCC,$host_os in
18937 yes,cygwin* | yes,mingw* | yes,pw32*)
18938 library_names_spec='$libname.dll.a'
18939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000018940 postinstall_cmds='base_file=`basename \${file}`~
18941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18942 dldir=$destdir/`dirname \$dlpath`~
18943 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000018944 $install_prog $dir/$dlname \$dldir/$dlname~
18945 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000018946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18947 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000018948 $rm \$dlpath'
18949 shlibpath_overrides_runpath=yes
18950
18951 case $host_os in
18952 cygwin*)
18953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18954 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 +000018955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000018956 ;;
18957 mingw*)
18958 # MinGW DLLs use traditional 'lib' prefix
18959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18962 # It is most probably a Windows format PATH printed by
18963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18964 # path with ; separators, and with drive letters. We can handle the
18965 # drive letters (cygwin fileutils understands them), so leave them,
18966 # especially as we might pass files found there to a mingw objdump,
18967 # which wouldn't understand a cygwinified path. Ahh.
18968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18969 else
18970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18971 fi
18972 ;;
18973 pw32*)
18974 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000018975 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 +000018976 ;;
18977 esac
18978 ;;
18979
18980 *)
18981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18982 ;;
18983 esac
18984 dynamic_linker='Win32 ld.exe'
18985 # FIXME: first we should search . and the directory the executable is in
18986 shlibpath_var=PATH
18987 ;;
18988
18989darwin* | rhapsody*)
18990 dynamic_linker="$host_os dyld"
18991 version_type=darwin
18992 need_lib_prefix=no
18993 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000018994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000018995 soname_spec='${libname}${release}${major}$shared_ext'
18996 shlibpath_overrides_runpath=yes
18997 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000018998 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000018999 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019000 if test "$GCC" = yes; then
19001 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"`
19002 else
19003 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019004 fi
19005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19006 ;;
19007
19008dgux*)
19009 version_type=linux
19010 need_lib_prefix=no
19011 need_version=no
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 shlibpath_var=LD_LIBRARY_PATH
19015 ;;
19016
19017freebsd1*)
19018 dynamic_linker=no
19019 ;;
19020
Reid Spencer2706f8c2004-09-19 23:53:36 +000019021kfreebsd*-gnu)
19022 version_type=linux
19023 need_lib_prefix=no
19024 need_version=no
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 shlibpath_overrides_runpath=no
19029 hardcode_into_libs=yes
19030 dynamic_linker='GNU ld.so'
19031 ;;
19032
Reid Spencera773bd52006-08-04 18:18:08 +000019033freebsd* | dragonfly*)
19034 # DragonFly does not have aout. When/if they implement a new
19035 # versioning mechanism, adjust this.
19036 if test -x /usr/bin/objformat; then
19037 objformat=`/usr/bin/objformat`
19038 else
19039 case $host_os in
19040 freebsd[123]*) objformat=aout ;;
19041 *) objformat=elf ;;
19042 esac
19043 fi
John Criswell47fdd832003-07-14 16:52:07 +000019044 version_type=freebsd-$objformat
19045 case $version_type in
19046 freebsd-elf*)
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19048 need_version=no
19049 need_lib_prefix=no
19050 ;;
19051 freebsd-*)
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19053 need_version=yes
19054 ;;
19055 esac
19056 shlibpath_var=LD_LIBRARY_PATH
19057 case $host_os in
19058 freebsd2*)
19059 shlibpath_overrides_runpath=yes
19060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019061 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019062 shlibpath_overrides_runpath=yes
19063 hardcode_into_libs=yes
19064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019067 shlibpath_overrides_runpath=no
19068 hardcode_into_libs=yes
19069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019070 freebsd*) # from 4.6 on
19071 shlibpath_overrides_runpath=yes
19072 hardcode_into_libs=yes
19073 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019074 esac
19075 ;;
19076
19077gnu*)
19078 version_type=linux
19079 need_lib_prefix=no
19080 need_version=no
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 hardcode_into_libs=yes
19085 ;;
19086
19087hpux9* | hpux10* | hpux11*)
19088 # Give a soname corresponding to the major version so that dld.sl refuses to
19089 # link against other versions.
19090 version_type=sunos
19091 need_lib_prefix=no
19092 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019093 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019094 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019095 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019096 hardcode_into_libs=yes
19097 dynamic_linker="$host_os dld.so"
19098 shlibpath_var=LD_LIBRARY_PATH
19099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 soname_spec='${libname}${release}${shared_ext}$major'
19102 if test "X$HPUX_IA64_MODE" = X32; then
19103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19104 else
19105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19106 fi
19107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19108 ;;
19109 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019110 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019111 hardcode_into_libs=yes
19112 dynamic_linker="$host_os dld.sl"
19113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19116 soname_spec='${libname}${release}${shared_ext}$major'
19117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19119 ;;
19120 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019121 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019122 dynamic_linker="$host_os dld.sl"
19123 shlibpath_var=SHLIB_PATH
19124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 ;;
19128 esac
19129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19130 postinstall_cmds='chmod 555 $lib'
19131 ;;
19132
Reid Spencera773bd52006-08-04 18:18:08 +000019133interix3*)
19134 version_type=linux
19135 need_lib_prefix=no
19136 need_version=no
19137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19138 soname_spec='${libname}${release}${shared_ext}$major'
19139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19140 shlibpath_var=LD_LIBRARY_PATH
19141 shlibpath_overrides_runpath=no
19142 hardcode_into_libs=yes
19143 ;;
19144
John Criswell47fdd832003-07-14 16:52:07 +000019145irix5* | irix6* | nonstopux*)
19146 case $host_os in
19147 nonstopux*) version_type=nonstopux ;;
19148 *)
19149 if test "$lt_cv_prog_gnu_ld" = yes; then
19150 version_type=linux
19151 else
19152 version_type=irix
19153 fi ;;
19154 esac
19155 need_lib_prefix=no
19156 need_version=no
19157 soname_spec='${libname}${release}${shared_ext}$major'
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19159 case $host_os in
19160 irix5* | nonstopux*)
19161 libsuff= shlibsuff=
19162 ;;
19163 *)
19164 case $LD in # libtool.m4 will add one of these switches to LD
19165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19166 libsuff= shlibsuff= libmagic=32-bit;;
19167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19168 libsuff=32 shlibsuff=N32 libmagic=N32;;
19169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19171 *) libsuff= shlibsuff= libmagic=never-match;;
19172 esac
19173 ;;
19174 esac
19175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19176 shlibpath_overrides_runpath=no
19177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19179 hardcode_into_libs=yes
19180 ;;
19181
19182# No shared lib support for Linux oldld, aout, or coff.
19183linux*oldld* | linux*aout* | linux*coff*)
19184 dynamic_linker=no
19185 ;;
19186
19187# This must be Linux ELF.
19188linux*)
19189 version_type=linux
19190 need_lib_prefix=no
19191 need_version=no
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19195 shlibpath_var=LD_LIBRARY_PATH
19196 shlibpath_overrides_runpath=no
19197 # This implies no fast_install, which is unacceptable.
19198 # Some rework will be needed to allow for fast_install
19199 # before this can be enabled.
19200 hardcode_into_libs=yes
19201
Reid Spencer2706f8c2004-09-19 23:53:36 +000019202 # Append ld.so.conf contents to the search path
19203 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000019204 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 +000019205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19206 fi
19207
John Criswell47fdd832003-07-14 16:52:07 +000019208 # We used to test for /lib/ld.so.1 and disable shared libraries on
19209 # powerpc, because MkLinux only supported shared libraries with the
19210 # GNU dynamic linker. Since this was broken with cross compilers,
19211 # most powerpc-linux boxes support dynamic linking these days and
19212 # people can always --disable-shared, the test was removed, and we
19213 # assume the GNU/Linux dynamic linker is in use.
19214 dynamic_linker='GNU/Linux ld.so'
19215 ;;
19216
Reid Spencer2706f8c2004-09-19 23:53:36 +000019217knetbsd*-gnu)
19218 version_type=linux
19219 need_lib_prefix=no
19220 need_version=no
19221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19222 soname_spec='${libname}${release}${shared_ext}$major'
19223 shlibpath_var=LD_LIBRARY_PATH
19224 shlibpath_overrides_runpath=no
19225 hardcode_into_libs=yes
19226 dynamic_linker='GNU ld.so'
19227 ;;
19228
John Criswell47fdd832003-07-14 16:52:07 +000019229netbsd*)
19230 version_type=sunos
19231 need_lib_prefix=no
19232 need_version=no
19233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19236 dynamic_linker='NetBSD (a.out) ld.so'
19237 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019239 soname_spec='${libname}${release}${shared_ext}$major'
19240 dynamic_linker='NetBSD ld.elf_so'
19241 fi
19242 shlibpath_var=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath=yes
19244 hardcode_into_libs=yes
19245 ;;
19246
19247newsos6)
19248 version_type=linux
19249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250 shlibpath_var=LD_LIBRARY_PATH
19251 shlibpath_overrides_runpath=yes
19252 ;;
19253
Reid Spencer2706f8c2004-09-19 23:53:36 +000019254nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000019255 version_type=linux
19256 need_lib_prefix=no
19257 need_version=no
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 shlibpath_var=LD_LIBRARY_PATH
19261 shlibpath_overrides_runpath=yes
19262 ;;
19263
19264openbsd*)
19265 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000019266 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019267 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000019268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19269 case $host_os in
19270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19271 *) need_version=no ;;
19272 esac
John Criswell47fdd832003-07-14 16:52:07 +000019273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19275 shlibpath_var=LD_LIBRARY_PATH
19276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19277 case $host_os in
19278 openbsd2.[89] | openbsd2.[89].*)
19279 shlibpath_overrides_runpath=no
19280 ;;
19281 *)
19282 shlibpath_overrides_runpath=yes
19283 ;;
19284 esac
19285 else
19286 shlibpath_overrides_runpath=yes
19287 fi
19288 ;;
19289
19290os2*)
19291 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019292 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019293 need_lib_prefix=no
19294 library_names_spec='$libname${shared_ext} $libname.a'
19295 dynamic_linker='OS/2 ld.exe'
19296 shlibpath_var=LIBPATH
19297 ;;
19298
19299osf3* | osf4* | osf5*)
19300 version_type=osf
19301 need_lib_prefix=no
19302 need_version=no
19303 soname_spec='${libname}${release}${shared_ext}$major'
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305 shlibpath_var=LD_LIBRARY_PATH
19306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19308 ;;
19309
John Criswell47fdd832003-07-14 16:52:07 +000019310solaris*)
19311 version_type=linux
19312 need_lib_prefix=no
19313 need_version=no
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 shlibpath_overrides_runpath=yes
19318 hardcode_into_libs=yes
19319 # ldd complains unless libraries are executable
19320 postinstall_cmds='chmod +x $lib'
19321 ;;
19322
19323sunos4*)
19324 version_type=sunos
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 if test "$with_gnu_ld" = yes; then
19330 need_lib_prefix=no
19331 fi
19332 need_version=yes
19333 ;;
19334
Reid Spencera773bd52006-08-04 18:18:08 +000019335sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000019336 version_type=linux
19337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338 soname_spec='${libname}${release}${shared_ext}$major'
19339 shlibpath_var=LD_LIBRARY_PATH
19340 case $host_vendor in
19341 sni)
19342 shlibpath_overrides_runpath=no
19343 need_lib_prefix=no
19344 export_dynamic_flag_spec='${wl}-Blargedynsym'
19345 runpath_var=LD_RUN_PATH
19346 ;;
19347 siemens)
19348 need_lib_prefix=no
19349 ;;
19350 motorola)
19351 need_lib_prefix=no
19352 need_version=no
19353 shlibpath_overrides_runpath=no
19354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19355 ;;
19356 esac
19357 ;;
19358
19359sysv4*MP*)
19360 if test -d /usr/nec ;then
19361 version_type=linux
19362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19363 soname_spec='$libname${shared_ext}.$major'
19364 shlibpath_var=LD_LIBRARY_PATH
19365 fi
19366 ;;
19367
Reid Spencera773bd52006-08-04 18:18:08 +000019368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19369 version_type=freebsd-elf
19370 need_lib_prefix=no
19371 need_version=no
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19373 soname_spec='${libname}${release}${shared_ext}$major'
19374 shlibpath_var=LD_LIBRARY_PATH
19375 hardcode_into_libs=yes
19376 if test "$with_gnu_ld" = yes; then
19377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19378 shlibpath_overrides_runpath=no
19379 else
19380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19381 shlibpath_overrides_runpath=yes
19382 case $host_os in
19383 sco3.2v5*)
19384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19385 ;;
19386 esac
19387 fi
19388 sys_lib_dlsearch_path_spec='/usr/lib'
19389 ;;
19390
John Criswell47fdd832003-07-14 16:52:07 +000019391uts4*)
19392 version_type=linux
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 ;;
19397
19398*)
19399 dynamic_linker=no
19400 ;;
19401esac
Reid Spencera773bd52006-08-04 18:18:08 +000019402{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19403echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019404test "$dynamic_linker" = no && can_build_shared=no
19405
Reid Spencera773bd52006-08-04 18:18:08 +000019406variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19407if test "$GCC" = yes; then
19408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19409fi
19410
19411{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19412echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019413hardcode_action_CXX=
19414if test -n "$hardcode_libdir_flag_spec_CXX" || \
19415 test -n "$runpath_var_CXX" || \
19416 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19417
19418 # We can hardcode non-existant directories.
19419 if test "$hardcode_direct_CXX" != no &&
19420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19421 # have to relink, otherwise we might link with an installed library
19422 # when we should be linking with a yet-to-be-installed one
19423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19424 test "$hardcode_minus_L_CXX" != no; then
19425 # Linking always hardcodes the temporary library directory.
19426 hardcode_action_CXX=relink
19427 else
19428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19429 hardcode_action_CXX=immediate
19430 fi
19431else
19432 # We cannot hardcode anything, or else we can only hardcode existing
19433 # directories.
19434 hardcode_action_CXX=unsupported
19435fi
Reid Spencera773bd52006-08-04 18:18:08 +000019436{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19437echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019438
19439if test "$hardcode_action_CXX" = relink; then
19440 # Fast installation is not supported
19441 enable_fast_install=no
19442elif test "$shlibpath_overrides_runpath" = yes ||
19443 test "$enable_shared" = no; then
19444 # Fast installation is not necessary
19445 enable_fast_install=needless
19446fi
19447
John Criswell47fdd832003-07-14 16:52:07 +000019448
19449# The else clause should only fire when bootstrapping the
19450# libtool distribution, otherwise you forgot to ship ltmain.sh
19451# with your package, and you will get complaints that there are
19452# no rules to generate ltmain.sh.
19453if test -f "$ltmain"; then
19454 # See if we are running on zsh, and set the options which allow our commands through
19455 # without removal of \ escapes.
19456 if test -n "${ZSH_VERSION+set}" ; then
19457 setopt NO_GLOB_SUBST
19458 fi
19459 # Now quote all the things that may contain metacharacters while being
19460 # careful not to overquote the AC_SUBSTed values. We take copies of the
19461 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000019462 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 +000019463 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019464 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19465 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19466 deplibs_check_method reload_flag reload_cmds need_locks \
19467 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19468 lt_cv_sys_global_symbol_to_c_name_address \
19469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19470 old_postinstall_cmds old_postuninstall_cmds \
19471 compiler_CXX \
19472 CC_CXX \
19473 LD_CXX \
19474 lt_prog_compiler_wl_CXX \
19475 lt_prog_compiler_pic_CXX \
19476 lt_prog_compiler_static_CXX \
19477 lt_prog_compiler_no_builtin_flag_CXX \
19478 export_dynamic_flag_spec_CXX \
19479 thread_safe_flag_spec_CXX \
19480 whole_archive_flag_spec_CXX \
19481 enable_shared_with_static_runtimes_CXX \
19482 old_archive_cmds_CXX \
19483 old_archive_from_new_cmds_CXX \
19484 predep_objects_CXX \
19485 postdep_objects_CXX \
19486 predeps_CXX \
19487 postdeps_CXX \
19488 compiler_lib_search_path_CXX \
19489 archive_cmds_CXX \
19490 archive_expsym_cmds_CXX \
19491 postinstall_cmds_CXX \
19492 postuninstall_cmds_CXX \
19493 old_archive_from_expsyms_cmds_CXX \
19494 allow_undefined_flag_CXX \
19495 no_undefined_flag_CXX \
19496 export_symbols_cmds_CXX \
19497 hardcode_libdir_flag_spec_CXX \
19498 hardcode_libdir_flag_spec_ld_CXX \
19499 hardcode_libdir_separator_CXX \
19500 hardcode_automatic_CXX \
19501 module_cmds_CXX \
19502 module_expsym_cmds_CXX \
19503 lt_cv_prog_compiler_c_o_CXX \
19504 exclude_expsyms_CXX \
19505 include_expsyms_CXX; do
19506
19507 case $var in
19508 old_archive_cmds_CXX | \
19509 old_archive_from_new_cmds_CXX | \
19510 archive_cmds_CXX | \
19511 archive_expsym_cmds_CXX | \
19512 module_cmds_CXX | \
19513 module_expsym_cmds_CXX | \
19514 old_archive_from_expsyms_cmds_CXX | \
19515 export_symbols_cmds_CXX | \
19516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19517 postinstall_cmds | postuninstall_cmds | \
19518 old_postinstall_cmds | old_postuninstall_cmds | \
19519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19520 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019521 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 +000019522 ;;
19523 *)
19524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19525 ;;
19526 esac
19527 done
19528
19529 case $lt_echo in
19530 *'\$0 --fallback-echo"')
19531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19532 ;;
19533 esac
19534
19535cfgfile="$ofile"
19536
19537 cat <<__EOF__ >> "$cfgfile"
19538# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19539
19540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19541
19542# Shell to use when invoking shell scripts.
19543SHELL=$lt_SHELL
19544
19545# Whether or not to build shared libraries.
19546build_libtool_libs=$enable_shared
19547
19548# Whether or not to build static libraries.
19549build_old_libs=$enable_static
19550
19551# Whether or not to add -lc for building shared libraries.
19552build_libtool_need_lc=$archive_cmds_need_lc_CXX
19553
19554# Whether or not to disallow shared libs when runtime libs are static
19555allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19556
19557# Whether or not to optimize for fast installation.
19558fast_install=$enable_fast_install
19559
19560# The host system.
19561host_alias=$host_alias
19562host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000019563host_os=$host_os
19564
19565# The build system.
19566build_alias=$build_alias
19567build=$build
19568build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000019569
19570# An echo program that does not interpret backslashes.
19571echo=$lt_echo
19572
19573# The archiver.
19574AR=$lt_AR
19575AR_FLAGS=$lt_AR_FLAGS
19576
19577# A C compiler.
19578LTCC=$lt_LTCC
19579
Reid Spencera773bd52006-08-04 18:18:08 +000019580# LTCC compiler flags.
19581LTCFLAGS=$lt_LTCFLAGS
19582
John Criswell47fdd832003-07-14 16:52:07 +000019583# A language-specific compiler.
19584CC=$lt_compiler_CXX
19585
19586# Is the compiler the GNU C compiler?
19587with_gcc=$GCC_CXX
19588
19589# An ERE matcher.
19590EGREP=$lt_EGREP
19591
19592# The linker used to build libraries.
19593LD=$lt_LD_CXX
19594
19595# Whether we need hard or soft links.
19596LN_S=$lt_LN_S
19597
19598# A BSD-compatible nm program.
19599NM=$lt_NM
19600
19601# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019602STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019603
19604# Used to examine libraries when file_magic_cmd begins "file"
19605MAGIC_CMD=$MAGIC_CMD
19606
19607# Used on cygwin: DLL creation program.
19608DLLTOOL="$DLLTOOL"
19609
19610# Used on cygwin: object dumper.
19611OBJDUMP="$OBJDUMP"
19612
19613# Used on cygwin: assembler.
19614AS="$AS"
19615
19616# The name of the directory that contains temporary libtool files.
19617objdir=$objdir
19618
19619# How to create reloadable object files.
19620reload_flag=$lt_reload_flag
19621reload_cmds=$lt_reload_cmds
19622
19623# How to pass a linker flag through the compiler.
19624wl=$lt_lt_prog_compiler_wl_CXX
19625
19626# Object file suffix (normally "o").
19627objext="$ac_objext"
19628
19629# Old archive suffix (normally "a").
19630libext="$libext"
19631
19632# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019633shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019634
19635# Executable file suffix (normally "").
19636exeext="$exeext"
19637
19638# Additional compiler flags for building library objects.
19639pic_flag=$lt_lt_prog_compiler_pic_CXX
19640pic_mode=$pic_mode
19641
19642# What is the maximum length of a command?
19643max_cmd_len=$lt_cv_sys_max_cmd_len
19644
19645# Does compiler simultaneously support -c and -o options?
19646compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19647
Reid Spencera773bd52006-08-04 18:18:08 +000019648# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000019649need_locks=$lt_need_locks
19650
19651# Do we need the lib prefix for modules?
19652need_lib_prefix=$need_lib_prefix
19653
19654# Do we need a version for libraries?
19655need_version=$need_version
19656
19657# Whether dlopen is supported.
19658dlopen_support=$enable_dlopen
19659
19660# Whether dlopen of programs is supported.
19661dlopen_self=$enable_dlopen_self
19662
19663# Whether dlopen of statically linked programs is supported.
19664dlopen_self_static=$enable_dlopen_self_static
19665
19666# Compiler flag to prevent dynamic linking.
19667link_static_flag=$lt_lt_prog_compiler_static_CXX
19668
19669# Compiler flag to turn off builtin functions.
19670no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19671
19672# Compiler flag to allow reflexive dlopens.
19673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19674
19675# Compiler flag to generate shared objects directly from archives.
19676whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19677
19678# Compiler flag to generate thread-safe objects.
19679thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19680
19681# Library versioning type.
19682version_type=$version_type
19683
19684# Format of library name prefix.
19685libname_spec=$lt_libname_spec
19686
19687# List of archive names. First name is the real one, the rest are links.
19688# The last name is the one that the linker finds with -lNAME.
19689library_names_spec=$lt_library_names_spec
19690
19691# The coded name of the library, if different from the real name.
19692soname_spec=$lt_soname_spec
19693
19694# Commands used to build and install an old-style archive.
19695RANLIB=$lt_RANLIB
19696old_archive_cmds=$lt_old_archive_cmds_CXX
19697old_postinstall_cmds=$lt_old_postinstall_cmds
19698old_postuninstall_cmds=$lt_old_postuninstall_cmds
19699
19700# Create an old-style archive from a shared archive.
19701old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19702
19703# Create a temporary old-style archive to link instead of a shared archive.
19704old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19705
19706# Commands used to build and install a shared archive.
19707archive_cmds=$lt_archive_cmds_CXX
19708archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19709postinstall_cmds=$lt_postinstall_cmds
19710postuninstall_cmds=$lt_postuninstall_cmds
19711
19712# Commands used to build a loadable module (assumed same as above if empty)
19713module_cmds=$lt_module_cmds_CXX
19714module_expsym_cmds=$lt_module_expsym_cmds_CXX
19715
19716# Commands to strip libraries.
19717old_striplib=$lt_old_striplib
19718striplib=$lt_striplib
19719
19720# Dependencies to place before the objects being linked to create a
19721# shared library.
19722predep_objects=$lt_predep_objects_CXX
19723
19724# Dependencies to place after the objects being linked to create a
19725# shared library.
19726postdep_objects=$lt_postdep_objects_CXX
19727
19728# Dependencies to place before the objects being linked to create a
19729# shared library.
19730predeps=$lt_predeps_CXX
19731
19732# Dependencies to place after the objects being linked to create a
19733# shared library.
19734postdeps=$lt_postdeps_CXX
19735
19736# The library search path used internally by the compiler when linking
19737# a shared library.
19738compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19739
19740# Method to check whether dependent libraries are shared objects.
19741deplibs_check_method=$lt_deplibs_check_method
19742
19743# Command to use when deplibs_check_method == file_magic.
19744file_magic_cmd=$lt_file_magic_cmd
19745
19746# Flag that allows shared libraries with undefined symbols to be built.
19747allow_undefined_flag=$lt_allow_undefined_flag_CXX
19748
19749# Flag that forces no undefined symbols.
19750no_undefined_flag=$lt_no_undefined_flag_CXX
19751
19752# Commands used to finish a libtool library installation in a directory.
19753finish_cmds=$lt_finish_cmds
19754
19755# Same as above, but a single script fragment to be evaled but not shown.
19756finish_eval=$lt_finish_eval
19757
19758# Take the output of nm and produce a listing of raw symbols and C names.
19759global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19760
19761# Transform the output of nm in a proper C declaration
19762global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19763
19764# Transform the output of nm in a C name address pair
19765global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19766
19767# This is the shared library runtime path variable.
19768runpath_var=$runpath_var
19769
19770# This is the shared library path variable.
19771shlibpath_var=$shlibpath_var
19772
19773# Is shlibpath searched before the hard-coded library search path?
19774shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19775
19776# How to hardcode a shared library path into an executable.
19777hardcode_action=$hardcode_action_CXX
19778
19779# Whether we should hardcode library paths into libraries.
19780hardcode_into_libs=$hardcode_into_libs
19781
19782# Flag to hardcode \$libdir into a binary during linking.
19783# This must work even if \$libdir does not exist.
19784hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19785
19786# If ld is used when linking, flag to hardcode \$libdir into
19787# a binary during linking. This must work even if \$libdir does
19788# not exist.
19789hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19790
19791# Whether we need a single -rpath flag with a separated argument.
19792hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19793
19794# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19795# resulting binary.
19796hardcode_direct=$hardcode_direct_CXX
19797
19798# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19799# resulting binary.
19800hardcode_minus_L=$hardcode_minus_L_CXX
19801
19802# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19803# the resulting binary.
19804hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19805
19806# Set to yes if building a shared library automatically hardcodes DIR into the library
19807# and all subsequent libraries and executables linked against it.
19808hardcode_automatic=$hardcode_automatic_CXX
19809
19810# Variables whose values should be saved in libtool wrapper scripts and
19811# restored at relink time.
19812variables_saved_for_relink="$variables_saved_for_relink"
19813
19814# Whether libtool must link a program against all its dependency libraries.
19815link_all_deplibs=$link_all_deplibs_CXX
19816
19817# Compile-time system search path for libraries
19818sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19819
19820# Run-time system search path for libraries
19821sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19822
19823# Fix the shell variable \$srcfile for the compiler.
19824fix_srcfile_path="$fix_srcfile_path_CXX"
19825
19826# Set to yes if exported symbols are required.
19827always_export_symbols=$always_export_symbols_CXX
19828
19829# The commands to list exported symbols.
19830export_symbols_cmds=$lt_export_symbols_cmds_CXX
19831
19832# The commands to extract the exported symbol list from a shared archive.
19833extract_expsyms_cmds=$lt_extract_expsyms_cmds
19834
19835# Symbols that should not be listed in the preloaded symbols.
19836exclude_expsyms=$lt_exclude_expsyms_CXX
19837
19838# Symbols that must always be exported.
19839include_expsyms=$lt_include_expsyms_CXX
19840
19841# ### END LIBTOOL TAG CONFIG: $tagname
19842
19843__EOF__
19844
19845
19846else
19847 # If there is no Makefile yet, we rely on a make rule to execute
19848 # `config.status --recheck' to rerun these tests and create the
19849 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19851 if test -f "$ltmain_in"; then
19852 test -f Makefile && make "$ltmain"
19853 fi
John Criswell47fdd832003-07-14 16:52:07 +000019854fi
19855
19856
19857ac_ext=c
19858ac_cpp='$CPP $CPPFLAGS'
19859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19861ac_compiler_gnu=$ac_cv_c_compiler_gnu
19862
19863CC=$lt_save_CC
19864LDCXX=$LD
19865LD=$lt_save_LD
19866GCC=$lt_save_GCC
19867with_gnu_ldcxx=$with_gnu_ld
19868with_gnu_ld=$lt_save_with_gnu_ld
19869lt_cv_path_LDCXX=$lt_cv_path_LD
19870lt_cv_path_LD=$lt_save_path_LD
19871lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19872lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19873
19874 else
19875 tagname=""
19876 fi
19877 ;;
19878
19879 F77)
19880 if test -n "$F77" && test "X$F77" != "Xno"; then
19881
19882ac_ext=f
19883ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19884ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19886
19887
19888archive_cmds_need_lc_F77=no
19889allow_undefined_flag_F77=
19890always_export_symbols_F77=no
19891archive_expsym_cmds_F77=
19892export_dynamic_flag_spec_F77=
19893hardcode_direct_F77=no
19894hardcode_libdir_flag_spec_F77=
19895hardcode_libdir_flag_spec_ld_F77=
19896hardcode_libdir_separator_F77=
19897hardcode_minus_L_F77=no
19898hardcode_automatic_F77=no
19899module_cmds_F77=
19900module_expsym_cmds_F77=
19901link_all_deplibs_F77=unknown
19902old_archive_cmds_F77=$old_archive_cmds
19903no_undefined_flag_F77=
19904whole_archive_flag_spec_F77=
19905enable_shared_with_static_runtimes_F77=no
19906
19907# Source file extension for f77 test sources.
19908ac_ext=f
19909
19910# Object file extension for compiled f77 test sources.
19911objext=o
19912objext_F77=$objext
19913
19914# Code to be used in simple compile tests
19915lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19916
19917# Code to be used in simple link tests
19918lt_simple_link_test_code=" program t\n end\n"
19919
19920# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19921
19922# If no C compiler was specified, use CC.
19923LTCC=${LTCC-"$CC"}
19924
Reid Spencera773bd52006-08-04 18:18:08 +000019925# If no C compiler flags were specified, use CFLAGS.
19926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19927
John Criswell47fdd832003-07-14 16:52:07 +000019928# Allow CC to be a program name with arguments.
19929compiler=$CC
19930
19931
Reid Spencera773bd52006-08-04 18:18:08 +000019932# save warnings/boilerplate of simple test code
19933ac_outfile=conftest.$ac_objext
19934printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19935eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19936_lt_compiler_boilerplate=`cat conftest.err`
19937$rm conftest*
19938
19939ac_outfile=conftest.$ac_objext
19940printf "$lt_simple_link_test_code" >conftest.$ac_ext
19941eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19942_lt_linker_boilerplate=`cat conftest.err`
19943$rm conftest*
19944
19945
John Criswell47fdd832003-07-14 16:52:07 +000019946# Allow CC to be a program name with arguments.
19947lt_save_CC="$CC"
19948CC=${F77-"f77"}
19949compiler=$CC
19950compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000019951for cc_temp in $compiler""; do
19952 case $cc_temp in
19953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19955 \-*) ;;
19956 *) break;;
19957 esac
19958done
19959cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000019960
John Criswell47fdd832003-07-14 16:52:07 +000019961
Reid Spencera773bd52006-08-04 18:18:08 +000019962{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19963echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19964{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
19965echo "${ECHO_T}$can_build_shared" >&6; }
19966
19967{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19968echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019969test "$can_build_shared" = "no" && enable_shared=no
19970
19971# On AIX, shared libraries and static libraries use the same namespace, and
19972# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000019973case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019974aix3*)
19975 test "$enable_shared" = yes && enable_static=no
19976 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019977 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019978 postinstall_cmds='$RANLIB $lib'
19979 fi
19980 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000019982 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19983 test "$enable_shared" = yes && enable_static=no
19984 fi
John Criswell47fdd832003-07-14 16:52:07 +000019985 ;;
19986esac
Reid Spencera773bd52006-08-04 18:18:08 +000019987{ echo "$as_me:$LINENO: result: $enable_shared" >&5
19988echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019989
Reid Spencera773bd52006-08-04 18:18:08 +000019990{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19991echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019992# Make sure either enable_shared or enable_static is yes.
19993test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019994{ echo "$as_me:$LINENO: result: $enable_static" >&5
19995echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019996
19997GCC_F77="$G77"
19998LD_F77="$LD"
19999
20000lt_prog_compiler_wl_F77=
20001lt_prog_compiler_pic_F77=
20002lt_prog_compiler_static_F77=
20003
Reid Spencera773bd52006-08-04 18:18:08 +000020004{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20005echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020006
20007 if test "$GCC" = yes; then
20008 lt_prog_compiler_wl_F77='-Wl,'
20009 lt_prog_compiler_static_F77='-static'
20010
20011 case $host_os in
20012 aix*)
20013 # All AIX code is PIC.
20014 if test "$host_cpu" = ia64; then
20015 # AIX 5 now supports IA64 processor
20016 lt_prog_compiler_static_F77='-Bstatic'
20017 fi
20018 ;;
20019
20020 amigaos*)
20021 # FIXME: we need at least 68020 code to build shared libraries, but
20022 # adding the `-m68020' flag to GCC prevents building anything better,
20023 # like `-m68040'.
20024 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20025 ;;
20026
20027 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20028 # PIC is the default for these OSes.
20029 ;;
20030
20031 mingw* | pw32* | os2*)
20032 # This hack is so that the source file can tell whether it is being
20033 # built for inclusion in a dll (and should export symbols for example).
20034 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20035 ;;
20036
20037 darwin* | rhapsody*)
20038 # PIC is the default on this platform
20039 # Common symbols not allowed in MH_DYLIB files
20040 lt_prog_compiler_pic_F77='-fno-common'
20041 ;;
20042
Reid Spencera773bd52006-08-04 18:18:08 +000020043 interix3*)
20044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20045 # Instead, we relocate shared libraries at runtime.
20046 ;;
20047
John Criswell47fdd832003-07-14 16:52:07 +000020048 msdosdjgpp*)
20049 # Just because we use GCC doesn't mean we suddenly get shared libraries
20050 # on systems that don't support them.
20051 lt_prog_compiler_can_build_shared_F77=no
20052 enable_shared=no
20053 ;;
20054
20055 sysv4*MP*)
20056 if test -d /usr/nec; then
20057 lt_prog_compiler_pic_F77=-Kconform_pic
20058 fi
20059 ;;
20060
20061 hpux*)
20062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20063 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020064 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020065 hppa*64*|ia64*)
20066 # +Z the default
20067 ;;
20068 *)
20069 lt_prog_compiler_pic_F77='-fPIC'
20070 ;;
20071 esac
20072 ;;
20073
20074 *)
20075 lt_prog_compiler_pic_F77='-fPIC'
20076 ;;
20077 esac
20078 else
20079 # PORTME Check for flag to pass linker flags through the system compiler.
20080 case $host_os in
20081 aix*)
20082 lt_prog_compiler_wl_F77='-Wl,'
20083 if test "$host_cpu" = ia64; then
20084 # AIX 5 now supports IA64 processor
20085 lt_prog_compiler_static_F77='-Bstatic'
20086 else
20087 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20088 fi
20089 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020090 darwin*)
20091 # PIC is the default on this platform
20092 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020093 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020094 xlc*)
20095 lt_prog_compiler_pic_F77='-qnocommon'
20096 lt_prog_compiler_wl_F77='-Wl,'
20097 ;;
20098 esac
20099 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020100
20101 mingw* | pw32* | os2*)
20102 # This hack is so that the source file can tell whether it is being
20103 # built for inclusion in a dll (and should export symbols for example).
20104 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20105 ;;
20106
20107 hpux9* | hpux10* | hpux11*)
20108 lt_prog_compiler_wl_F77='-Wl,'
20109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20110 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020111 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020112 hppa*64*|ia64*)
20113 # +Z the default
20114 ;;
20115 *)
20116 lt_prog_compiler_pic_F77='+Z'
20117 ;;
20118 esac
20119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20120 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20121 ;;
20122
20123 irix5* | irix6* | nonstopux*)
20124 lt_prog_compiler_wl_F77='-Wl,'
20125 # PIC (with -KPIC) is the default.
20126 lt_prog_compiler_static_F77='-non_shared'
20127 ;;
20128
20129 newsos6)
20130 lt_prog_compiler_pic_F77='-KPIC'
20131 lt_prog_compiler_static_F77='-Bstatic'
20132 ;;
20133
20134 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020135 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020137 lt_prog_compiler_wl_F77='-Wl,'
20138 lt_prog_compiler_pic_F77='-KPIC'
20139 lt_prog_compiler_static_F77='-static'
20140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020141 pgcc* | pgf77* | pgf90* | pgf95*)
20142 # Portland Group compilers (*not* the Pentium gcc compiler,
20143 # which looks to be a dead project)
20144 lt_prog_compiler_wl_F77='-Wl,'
20145 lt_prog_compiler_pic_F77='-fpic'
20146 lt_prog_compiler_static_F77='-Bstatic'
20147 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020148 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000020149 lt_prog_compiler_wl_F77='-Wl,'
20150 # All Alpha code is PIC.
20151 lt_prog_compiler_static_F77='-non_shared'
20152 ;;
20153 esac
20154 ;;
20155
20156 osf3* | osf4* | osf5*)
20157 lt_prog_compiler_wl_F77='-Wl,'
20158 # All OSF/1 code is PIC.
20159 lt_prog_compiler_static_F77='-non_shared'
20160 ;;
20161
John Criswell47fdd832003-07-14 16:52:07 +000020162 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020163 lt_prog_compiler_pic_F77='-KPIC'
20164 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000020165 case $cc_basename in
20166 f77* | f90* | f95*)
20167 lt_prog_compiler_wl_F77='-Qoption ld ';;
20168 *)
20169 lt_prog_compiler_wl_F77='-Wl,';;
20170 esac
John Criswell47fdd832003-07-14 16:52:07 +000020171 ;;
20172
20173 sunos4*)
20174 lt_prog_compiler_wl_F77='-Qoption ld '
20175 lt_prog_compiler_pic_F77='-PIC'
20176 lt_prog_compiler_static_F77='-Bstatic'
20177 ;;
20178
Reid Spencera773bd52006-08-04 18:18:08 +000020179 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020180 lt_prog_compiler_wl_F77='-Wl,'
20181 lt_prog_compiler_pic_F77='-KPIC'
20182 lt_prog_compiler_static_F77='-Bstatic'
20183 ;;
20184
20185 sysv4*MP*)
20186 if test -d /usr/nec ;then
20187 lt_prog_compiler_pic_F77='-Kconform_pic'
20188 lt_prog_compiler_static_F77='-Bstatic'
20189 fi
20190 ;;
20191
Reid Spencera773bd52006-08-04 18:18:08 +000020192 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20193 lt_prog_compiler_wl_F77='-Wl,'
20194 lt_prog_compiler_pic_F77='-KPIC'
20195 lt_prog_compiler_static_F77='-Bstatic'
20196 ;;
20197
20198 unicos*)
20199 lt_prog_compiler_wl_F77='-Wl,'
20200 lt_prog_compiler_can_build_shared_F77=no
20201 ;;
20202
John Criswell47fdd832003-07-14 16:52:07 +000020203 uts4*)
20204 lt_prog_compiler_pic_F77='-pic'
20205 lt_prog_compiler_static_F77='-Bstatic'
20206 ;;
20207
20208 *)
20209 lt_prog_compiler_can_build_shared_F77=no
20210 ;;
20211 esac
20212 fi
20213
Reid Spencera773bd52006-08-04 18:18:08 +000020214{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20215echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020216
20217#
20218# Check to make sure the PIC flag actually works.
20219#
20220if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020221
Reid Spencera773bd52006-08-04 18:18:08 +000020222{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20223echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020224if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226else
20227 lt_prog_compiler_pic_works_F77=no
20228 ac_outfile=conftest.$ac_objext
20229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20230 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20231 # Insert the option either (1) after the last *FLAGS variable, or
20232 # (2) before a word containing "conftest.", or (3) at the end.
20233 # Note that $ac_compile itself does not contain backslashes and begins
20234 # with a dollar sign (not a hyphen), so the echo should work correctly.
20235 # The option is referenced via a variable to avoid confusing sed.
20236 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000020240 (eval echo "\"\$as_me:20239: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020241 (eval "$lt_compile" 2>conftest.err)
20242 ac_status=$?
20243 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000020244 echo "$as_me:20243: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020245 if (exit $ac_status) && test -s "$ac_outfile"; then
20246 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020247 # So say no if there are warnings other than the usual output.
20248 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020251 lt_prog_compiler_pic_works_F77=yes
20252 fi
20253 fi
20254 $rm conftest*
20255
20256fi
Reid Spencera773bd52006-08-04 18:18:08 +000020257{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20258echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020259
20260if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20261 case $lt_prog_compiler_pic_F77 in
20262 "" | " "*) ;;
20263 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20264 esac
20265else
20266 lt_prog_compiler_pic_F77=
20267 lt_prog_compiler_can_build_shared_F77=no
20268fi
20269
20270fi
Reid Spencera773bd52006-08-04 18:18:08 +000020271case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020272 # For platforms which do not support PIC, -DPIC is meaningless:
20273 *djgpp*)
20274 lt_prog_compiler_pic_F77=
20275 ;;
20276 *)
20277 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20278 ;;
20279esac
20280
Reid Spencera773bd52006-08-04 18:18:08 +000020281#
20282# Check to make sure the static flag actually works.
20283#
20284wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20285{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20286echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20287if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290 lt_prog_compiler_static_works_F77=no
20291 save_LDFLAGS="$LDFLAGS"
20292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20293 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20295 # The linker can only warn and ignore the option if not recognized
20296 # So say no if there are warnings
20297 if test -s conftest.err; then
20298 # Append any errors to the config.log.
20299 cat conftest.err 1>&5
20300 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20302 if diff conftest.exp conftest.er2 >/dev/null; then
20303 lt_prog_compiler_static_works_F77=yes
20304 fi
20305 else
20306 lt_prog_compiler_static_works_F77=yes
20307 fi
20308 fi
20309 $rm conftest*
20310 LDFLAGS="$save_LDFLAGS"
20311
20312fi
20313{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20314echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20315
20316if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20317 :
20318else
20319 lt_prog_compiler_static_F77=
20320fi
20321
20322
20323{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20324echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020325if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 lt_cv_prog_compiler_c_o_F77=no
20329 $rm -r conftest 2>/dev/null
20330 mkdir conftest
20331 cd conftest
20332 mkdir out
20333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20334
John Criswell47fdd832003-07-14 16:52:07 +000020335 lt_compiler_flag="-o out/conftest2.$ac_objext"
20336 # Insert the option either (1) after the last *FLAGS variable, or
20337 # (2) before a word containing "conftest.", or (3) at the end.
20338 # Note that $ac_compile itself does not contain backslashes and begins
20339 # with a dollar sign (not a hyphen), so the echo should work correctly.
20340 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000020344 (eval echo "\"\$as_me:20343: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020345 (eval "$lt_compile" 2>out/conftest.err)
20346 ac_status=$?
20347 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000020348 echo "$as_me:20347: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20350 then
20351 # The compiler can only warn and ignore the option if not recognized
20352 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020356 lt_cv_prog_compiler_c_o_F77=yes
20357 fi
20358 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020359 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020360 $rm conftest*
20361 # SGI C++ compiler will create directory out/ii_files/ for
20362 # template instantiation
20363 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20364 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020365 cd ..
20366 rmdir conftest
20367 $rm conftest*
20368
20369fi
Reid Spencera773bd52006-08-04 18:18:08 +000020370{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20371echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020372
20373
20374hard_links="nottested"
20375if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20376 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020377 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20378echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020379 hard_links=yes
20380 $rm conftest*
20381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20382 touch conftest.a
20383 ln conftest.a conftest.b 2>&5 || hard_links=no
20384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020385 { echo "$as_me:$LINENO: result: $hard_links" >&5
20386echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020387 if test "$hard_links" = no; then
20388 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20389echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20390 need_locks=warn
20391 fi
20392else
20393 need_locks=no
20394fi
20395
Reid Spencera773bd52006-08-04 18:18:08 +000020396{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20397echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020398
20399 runpath_var=
20400 allow_undefined_flag_F77=
20401 enable_shared_with_static_runtimes_F77=no
20402 archive_cmds_F77=
20403 archive_expsym_cmds_F77=
20404 old_archive_From_new_cmds_F77=
20405 old_archive_from_expsyms_cmds_F77=
20406 export_dynamic_flag_spec_F77=
20407 whole_archive_flag_spec_F77=
20408 thread_safe_flag_spec_F77=
20409 hardcode_libdir_flag_spec_F77=
20410 hardcode_libdir_flag_spec_ld_F77=
20411 hardcode_libdir_separator_F77=
20412 hardcode_direct_F77=no
20413 hardcode_minus_L_F77=no
20414 hardcode_shlibpath_var_F77=unsupported
20415 link_all_deplibs_F77=unknown
20416 hardcode_automatic_F77=no
20417 module_cmds_F77=
20418 module_expsym_cmds_F77=
20419 always_export_symbols_F77=no
20420 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20421 # include_expsyms should be a list of space-separated symbols to be *always*
20422 # included in the symbol list
20423 include_expsyms_F77=
20424 # exclude_expsyms can be an extended regexp of symbols to exclude
20425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20427 # as well as any symbol that contains `d'.
20428 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20430 # platforms (ab)use it in PIC code, but their linkers get confused if
20431 # the symbol is explicitly referenced. Since portable code cannot
20432 # rely on this symbol name, it's probably fine to never include it in
20433 # preloaded symbol tables.
20434 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000020435 # Just being paranoid about ensuring that cc_basename is set.
20436 for cc_temp in $compiler""; do
20437 case $cc_temp in
20438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20440 \-*) ;;
20441 *) break;;
20442 esac
20443done
20444cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020445
20446 case $host_os in
20447 cygwin* | mingw* | pw32*)
20448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20449 # When not using gcc, we currently assume that we are using
20450 # Microsoft Visual C++.
20451 if test "$GCC" != yes; then
20452 with_gnu_ld=no
20453 fi
20454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020455 interix*)
20456 # we just hope/assume this is gcc and not c89 (= MSVC++)
20457 with_gnu_ld=yes
20458 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020459 openbsd*)
20460 with_gnu_ld=no
20461 ;;
20462 esac
20463
20464 ld_shlibs_F77=yes
20465 if test "$with_gnu_ld" = yes; then
20466 # If archive_cmds runs LD, not CC, wlarc should be empty
20467 wlarc='${wl}'
20468
Reid Spencera773bd52006-08-04 18:18:08 +000020469 # Set some defaults for GNU ld with shared library support. These
20470 # are reset later if shared libraries are not supported. Putting them
20471 # here allows them to be overridden if necessary.
20472 runpath_var=LD_RUN_PATH
20473 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20474 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20475 # ancient GNU ld didn't support --whole-archive et. al.
20476 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20477 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20478 else
20479 whole_archive_flag_spec_F77=
20480 fi
20481 supports_anon_versioning=no
20482 case `$LD -v 2>/dev/null` in
20483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20486 *\ 2.11.*) ;; # other 2.11 versions
20487 *) supports_anon_versioning=yes ;;
20488 esac
20489
John Criswell47fdd832003-07-14 16:52:07 +000020490 # See if GNU ld supports shared libraries.
20491 case $host_os in
20492 aix3* | aix4* | aix5*)
20493 # On AIX/PPC, the GNU linker is very broken
20494 if test "$host_cpu" != ia64; then
20495 ld_shlibs_F77=no
20496 cat <<EOF 1>&2
20497
20498*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20499*** to be unable to reliably create shared libraries on AIX.
20500*** Therefore, libtool is disabling shared libraries support. If you
20501*** really care for shared libraries, you may want to modify your PATH
20502*** so that a non-GNU linker is found, and then restart.
20503
20504EOF
20505 fi
20506 ;;
20507
20508 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020509 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 +000020510 hardcode_libdir_flag_spec_F77='-L$libdir'
20511 hardcode_minus_L_F77=yes
20512
20513 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20514 # that the semantics of dynamic libraries on AmigaOS, at least up
20515 # to version 4, is to share data among multiple programs linked
20516 # with the same dynamic library. Since this doesn't match the
20517 # behavior of shared libraries on other platforms, we can't use
20518 # them.
20519 ld_shlibs_F77=no
20520 ;;
20521
20522 beos*)
20523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20524 allow_undefined_flag_F77=unsupported
20525 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20526 # support --undefined. This deserves some investigation. FIXME
20527 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20528 else
20529 ld_shlibs_F77=no
20530 fi
20531 ;;
20532
20533 cygwin* | mingw* | pw32*)
20534 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20535 # as there is no search path for DLLs.
20536 hardcode_libdir_flag_spec_F77='-L$libdir'
20537 allow_undefined_flag_F77=unsupported
20538 always_export_symbols_F77=no
20539 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020540 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 +000020541
20542 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000020543 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 +000020544 # If the export-symbols file already is a .def file (1st line
20545 # is EXPORTS), use it as is; otherwise, prepend...
20546 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20547 cp $export_symbols $output_objdir/$soname.def;
20548 else
20549 echo EXPORTS > $output_objdir/$soname.def;
20550 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000020551 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000020552 $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 +000020553 else
Reid Spencera773bd52006-08-04 18:18:08 +000020554 ld_shlibs_F77=no
20555 fi
20556 ;;
20557
20558 interix3*)
20559 hardcode_direct_F77=no
20560 hardcode_shlibpath_var_F77=no
20561 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20562 export_dynamic_flag_spec_F77='${wl}-E'
20563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20564 # Instead, shared libraries are loaded at an image base (0x10000000 by
20565 # default) and relocated if they conflict, which is a slow very memory
20566 # consuming and fragmenting process. To avoid this, we pick a random,
20567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20569 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'
20570 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'
20571 ;;
20572
20573 linux*)
20574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20575 tmp_addflag=
20576 case $cc_basename,$host_cpu in
20577 pgcc*) # Portland Group C compiler
20578 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'
20579 tmp_addflag=' $pic_flag'
20580 ;;
20581 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20582 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'
20583 tmp_addflag=' $pic_flag -Mnomain' ;;
20584 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20585 tmp_addflag=' -i_dynamic' ;;
20586 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20587 tmp_addflag=' -i_dynamic -nofor_main' ;;
20588 ifc* | ifort*) # Intel Fortran compiler
20589 tmp_addflag=' -nofor_main' ;;
20590 esac
20591 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20592
20593 if test $supports_anon_versioning = yes; then
20594 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20596 $echo "local: *; };" >> $output_objdir/$libname.ver~
20597 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20598 fi
20599 else
20600 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020601 fi
20602 ;;
20603
20604 netbsd*)
20605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20606 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20607 wlarc=
20608 else
20609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20611 fi
20612 ;;
20613
Reid Spencera773bd52006-08-04 18:18:08 +000020614 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020615 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20616 ld_shlibs_F77=no
20617 cat <<EOF 1>&2
20618
20619*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20620*** create shared libraries on Solaris systems. Therefore, libtool
20621*** is disabling shared libraries support. We urge you to upgrade GNU
20622*** binutils to release 2.9.1 or newer. Another option is to modify
20623*** your PATH or compiler configuration so that the native linker is
20624*** used, and then restart.
20625
20626EOF
20627 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20630 else
20631 ld_shlibs_F77=no
20632 fi
20633 ;;
20634
Reid Spencera773bd52006-08-04 18:18:08 +000020635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20636 case `$LD -v 2>&1` in
20637 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20638 ld_shlibs_F77=no
20639 cat <<_LT_EOF 1>&2
20640
20641*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20642*** reliably create shared libraries on SCO systems. Therefore, libtool
20643*** is disabling shared libraries support. We urge you to upgrade GNU
20644*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20645*** your PATH or compiler configuration so that the native linker is
20646*** used, and then restart.
20647
20648_LT_EOF
20649 ;;
20650 *)
20651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20652 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20655 else
20656 ld_shlibs_F77=no
20657 fi
20658 ;;
20659 esac
20660 ;;
20661
John Criswell47fdd832003-07-14 16:52:07 +000020662 sunos4*)
20663 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20664 wlarc=
20665 hardcode_direct_F77=yes
20666 hardcode_shlibpath_var_F77=no
20667 ;;
20668
20669 *)
20670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20673 else
20674 ld_shlibs_F77=no
20675 fi
20676 ;;
20677 esac
20678
Reid Spencera773bd52006-08-04 18:18:08 +000020679 if test "$ld_shlibs_F77" = no; then
20680 runpath_var=
20681 hardcode_libdir_flag_spec_F77=
20682 export_dynamic_flag_spec_F77=
20683 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000020684 fi
20685 else
20686 # PORTME fill in a description of your system's linker (not GNU ld)
20687 case $host_os in
20688 aix3*)
20689 allow_undefined_flag_F77=unsupported
20690 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000020691 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 +000020692 # Note: this linker hardcodes the directories in LIBPATH if there
20693 # are no directories specified by -L.
20694 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020695 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000020696 # Neither direct hardcoding nor static linking is supported with a
20697 # broken collect2.
20698 hardcode_direct_F77=unsupported
20699 fi
20700 ;;
20701
20702 aix4* | aix5*)
20703 if test "$host_cpu" = ia64; then
20704 # On IA64, the linker does run time linking by default, so we don't
20705 # have to do anything special.
20706 aix_use_runtimelinking=no
20707 exp_sym_flag='-Bexport'
20708 no_entry_flag=""
20709 else
20710 # If we're using GNU nm, then we don't want the "-C" option.
20711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20712 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20713 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'
20714 else
20715 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'
20716 fi
20717 aix_use_runtimelinking=no
20718
20719 # Test if we are trying to use run time linking or normal
20720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20721 # need to do runtime linking.
20722 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20723 for ld_flag in $LDFLAGS; do
20724 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20725 aix_use_runtimelinking=yes
20726 break
20727 fi
20728 done
Reid Spencera773bd52006-08-04 18:18:08 +000020729 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020730 esac
20731
20732 exp_sym_flag='-bexport'
20733 no_entry_flag='-bnoentry'
20734 fi
20735
20736 # When large executables or shared objects are built, AIX ld can
20737 # have problems creating the table of contents. If linking a library
20738 # or program results in "error TOC overflow" add -mminimal-toc to
20739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20741
20742 archive_cmds_F77=''
20743 hardcode_direct_F77=yes
20744 hardcode_libdir_separator_F77=':'
20745 link_all_deplibs_F77=yes
20746
20747 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000020748 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000020749 # We only want to do this on AIX 4.2 and lower, the check
20750 # below for broken collect2 doesn't work under 4.3+
20751 collect2name=`${CC} -print-prog-name=collect2`
20752 if test -f "$collect2name" && \
20753 strings "$collect2name" | grep resolve_lib_name >/dev/null
20754 then
20755 # We have reworked collect2
20756 hardcode_direct_F77=yes
20757 else
20758 # We have old collect2
20759 hardcode_direct_F77=unsupported
20760 # It fails to find uninstalled libraries when the uninstalled
20761 # path is not listed in the libpath. Setting hardcode_minus_L
20762 # to unsupported forces relinking
20763 hardcode_minus_L_F77=yes
20764 hardcode_libdir_flag_spec_F77='-L$libdir'
20765 hardcode_libdir_separator_F77=
20766 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020767 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020768 esac
20769 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000020770 if test "$aix_use_runtimelinking" = yes; then
20771 shared_flag="$shared_flag "'${wl}-G'
20772 fi
John Criswell47fdd832003-07-14 16:52:07 +000020773 else
20774 # not using gcc
20775 if test "$host_cpu" = ia64; then
20776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20777 # chokes on -Wl,-G. The following line is correct:
20778 shared_flag='-G'
20779 else
Reid Spencera773bd52006-08-04 18:18:08 +000020780 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000020781 shared_flag='${wl}-G'
20782 else
20783 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000020784 fi
John Criswell47fdd832003-07-14 16:52:07 +000020785 fi
20786 fi
20787
20788 # It seems that -bexpall does not export symbols beginning with
20789 # underscore (_), so it is better to generate a list of symbols to export.
20790 always_export_symbols_F77=yes
20791 if test "$aix_use_runtimelinking" = yes; then
20792 # Warning - without using the other runtime loading flags (-brtl),
20793 # -berok will link without error, but may produce a broken library.
20794 allow_undefined_flag_F77='-berok'
20795 # Determine the default libpath from the value encoded in an empty executable.
20796 cat >conftest.$ac_ext <<_ACEOF
20797 program main
20798
20799 end
20800_ACEOF
20801rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020802if { (ac_try="$ac_link"
20803case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806esac
20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020810 grep -v '^ *+' conftest.er1 >conftest.err
20811 rm -f conftest.er1
20812 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020814 (exit $ac_status); } && {
20815 test -z "$ac_f77_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest$ac_exeext &&
20818 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020819
20820aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20821}'`
20822# Check for a 64-bit object if we didn't find anything.
20823if 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; }
20824}'`; fi
20825else
20826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020827sed 's/^/| /' conftest.$ac_ext >&5
20828
Reid Spencera773bd52006-08-04 18:18:08 +000020829
John Criswell47fdd832003-07-14 16:52:07 +000020830fi
Reid Spencera773bd52006-08-04 18:18:08 +000020831
Scott Michel96dcd2b2007-12-05 21:24:02 +000020832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020833 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20835
20836 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000020837 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 +000020838 else
20839 if test "$host_cpu" = ia64; then
20840 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20841 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000020842 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 +000020843 else
20844 # Determine the default libpath from the value encoded in an empty executable.
20845 cat >conftest.$ac_ext <<_ACEOF
20846 program main
20847
20848 end
20849_ACEOF
20850rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020851if { (ac_try="$ac_link"
20852case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855esac
20856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020863 (exit $ac_status); } && {
20864 test -z "$ac_f77_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest$ac_exeext &&
20867 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020868
20869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20870}'`
20871# Check for a 64-bit object if we didn't find anything.
20872if 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; }
20873}'`; fi
20874else
20875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020876sed 's/^/| /' conftest.$ac_ext >&5
20877
Reid Spencera773bd52006-08-04 18:18:08 +000020878
John Criswell47fdd832003-07-14 16:52:07 +000020879fi
Reid Spencera773bd52006-08-04 18:18:08 +000020880
Scott Michel96dcd2b2007-12-05 21:24:02 +000020881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020882 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20884
20885 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20886 # Warning - without using the other run time loading flags,
20887 # -berok will link without error, but may produce a broken library.
20888 no_undefined_flag_F77=' ${wl}-bernotok'
20889 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000020890 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000020891 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000020892 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020893 # This is similar to how AIX traditionally builds its shared libraries.
20894 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 +000020895 fi
20896 fi
20897 ;;
20898
20899 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020900 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 +000020901 hardcode_libdir_flag_spec_F77='-L$libdir'
20902 hardcode_minus_L_F77=yes
20903 # see comment about different semantics on the GNU ld section
20904 ld_shlibs_F77=no
20905 ;;
20906
Reid Spencer2706f8c2004-09-19 23:53:36 +000020907 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020908 export_dynamic_flag_spec_F77=-rdynamic
20909 ;;
20910
20911 cygwin* | mingw* | pw32*)
20912 # When not using gcc, we currently assume that we are using
20913 # Microsoft Visual C++.
20914 # hardcode_libdir_flag_spec is actually meaningless, as there is
20915 # no search path for DLLs.
20916 hardcode_libdir_flag_spec_F77=' '
20917 allow_undefined_flag_F77=unsupported
20918 # Tell ltmain to make .lib files, not .a files.
20919 libext=lib
20920 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020921 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020922 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000020923 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 +000020924 # The linker will automatically build a .lib file if we build a DLL.
20925 old_archive_From_new_cmds_F77='true'
20926 # FIXME: Should let the user specify the lib program.
20927 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000020928 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000020929 enable_shared_with_static_runtimes_F77=yes
20930 ;;
20931
20932 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000020933 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020934 rhapsody* | darwin1.[012])
20935 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20936 ;;
20937 *) # Darwin 1.3 on
20938 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20939 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20940 else
20941 case ${MACOSX_DEPLOYMENT_TARGET} in
20942 10.[012])
20943 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20944 ;;
20945 10.*)
20946 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20947 ;;
20948 esac
20949 fi
20950 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020951 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000020952 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020953 hardcode_direct_F77=no
20954 hardcode_automatic_F77=yes
20955 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000020956 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000020957 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000020958 if test "$GCC" = yes ; then
20959 output_verbose_link_cmd='echo'
20960 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20961 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020962 # 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 +000020963 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}'
20964 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 +000020965 else
Reid Spencera773bd52006-08-04 18:18:08 +000020966 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020967 xlc*)
20968 output_verbose_link_cmd='echo'
20969 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20970 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020971 # 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 +000020972 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}'
20973 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 +000020974 ;;
20975 *)
20976 ld_shlibs_F77=no
20977 ;;
20978 esac
John Criswell47fdd832003-07-14 16:52:07 +000020979 fi
20980 ;;
20981
20982 dgux*)
20983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20984 hardcode_libdir_flag_spec_F77='-L$libdir'
20985 hardcode_shlibpath_var_F77=no
20986 ;;
20987
20988 freebsd1*)
20989 ld_shlibs_F77=no
20990 ;;
20991
20992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20993 # support. Future versions do this automatically, but an explicit c++rt0.o
20994 # does not break anything, and helps significantly (at the cost of a little
20995 # extra space).
20996 freebsd2.2*)
20997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20998 hardcode_libdir_flag_spec_F77='-R$libdir'
20999 hardcode_direct_F77=yes
21000 hardcode_shlibpath_var_F77=no
21001 ;;
21002
21003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21004 freebsd2*)
21005 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21006 hardcode_direct_F77=yes
21007 hardcode_minus_L_F77=yes
21008 hardcode_shlibpath_var_F77=no
21009 ;;
21010
21011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021012 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021013 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21014 hardcode_libdir_flag_spec_F77='-R$libdir'
21015 hardcode_direct_F77=yes
21016 hardcode_shlibpath_var_F77=no
21017 ;;
21018
21019 hpux9*)
21020 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021021 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 +000021022 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021023 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 +000021024 fi
21025 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21026 hardcode_libdir_separator_F77=:
21027 hardcode_direct_F77=yes
21028
21029 # hardcode_minus_L: Not really in the search PATH,
21030 # but as the default location of the library.
21031 hardcode_minus_L_F77=yes
21032 export_dynamic_flag_spec_F77='${wl}-E'
21033 ;;
21034
Reid Spencera773bd52006-08-04 18:18:08 +000021035 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021037 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21038 else
21039 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21040 fi
21041 if test "$with_gnu_ld" = no; then
21042 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21043 hardcode_libdir_separator_F77=:
21044
21045 hardcode_direct_F77=yes
21046 export_dynamic_flag_spec_F77='${wl}-E'
21047
21048 # hardcode_minus_L: Not really in the search PATH,
21049 # but as the default location of the library.
21050 hardcode_minus_L_F77=yes
21051 fi
21052 ;;
21053
21054 hpux11*)
21055 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21056 case $host_cpu in
21057 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021058 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21059 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021060 ia64*)
21061 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21062 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021063 *)
21064 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21065 ;;
21066 esac
21067 else
Reid Spencera773bd52006-08-04 18:18:08 +000021068 case $host_cpu in
21069 hppa*64*)
21070 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21071 ;;
21072 ia64*)
21073 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021074 ;;
21075 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021076 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 +000021077 ;;
21078 esac
21079 fi
21080 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021081 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21082 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021083
Reid Spencera773bd52006-08-04 18:18:08 +000021084 case $host_cpu in
21085 hppa*64*|ia64*)
21086 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21087 hardcode_direct_F77=no
21088 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021089 ;;
21090 *)
John Criswell47fdd832003-07-14 16:52:07 +000021091 hardcode_direct_F77=yes
21092 export_dynamic_flag_spec_F77='${wl}-E'
21093
21094 # hardcode_minus_L: Not really in the search PATH,
21095 # but as the default location of the library.
21096 hardcode_minus_L_F77=yes
21097 ;;
21098 esac
21099 fi
21100 ;;
21101
21102 irix5* | irix6* | nonstopux*)
21103 if test "$GCC" = yes; then
21104 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'
21105 else
21106 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'
21107 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21108 fi
21109 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21110 hardcode_libdir_separator_F77=:
21111 link_all_deplibs_F77=yes
21112 ;;
21113
21114 netbsd*)
21115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21116 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21117 else
21118 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21119 fi
21120 hardcode_libdir_flag_spec_F77='-R$libdir'
21121 hardcode_direct_F77=yes
21122 hardcode_shlibpath_var_F77=no
21123 ;;
21124
21125 newsos6)
21126 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21127 hardcode_direct_F77=yes
21128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21129 hardcode_libdir_separator_F77=:
21130 hardcode_shlibpath_var_F77=no
21131 ;;
21132
21133 openbsd*)
21134 hardcode_direct_F77=yes
21135 hardcode_shlibpath_var_F77=no
21136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21137 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021138 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 +000021139 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21140 export_dynamic_flag_spec_F77='${wl}-E'
21141 else
21142 case $host_os in
21143 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21144 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21145 hardcode_libdir_flag_spec_F77='-R$libdir'
21146 ;;
21147 *)
21148 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21149 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21150 ;;
21151 esac
21152 fi
21153 ;;
21154
21155 os2*)
21156 hardcode_libdir_flag_spec_F77='-L$libdir'
21157 hardcode_minus_L_F77=yes
21158 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021159 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 +000021160 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21161 ;;
21162
21163 osf3*)
21164 if test "$GCC" = yes; then
21165 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21166 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'
21167 else
21168 allow_undefined_flag_F77=' -expect_unresolved \*'
21169 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'
21170 fi
21171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21172 hardcode_libdir_separator_F77=:
21173 ;;
21174
21175 osf4* | osf5*) # as osf3* with the addition of -msym flag
21176 if test "$GCC" = yes; then
21177 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21178 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'
21179 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21180 else
21181 allow_undefined_flag_F77=' -expect_unresolved \*'
21182 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 +000021183 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 +000021184 $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 +000021185
John Criswell47fdd832003-07-14 16:52:07 +000021186 # Both c and cxx compiler support -rpath directly
21187 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21188 fi
21189 hardcode_libdir_separator_F77=:
21190 ;;
21191
John Criswell47fdd832003-07-14 16:52:07 +000021192 solaris*)
21193 no_undefined_flag_F77=' -z text'
21194 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021195 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000021196 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_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 $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 +000021199 else
Reid Spencera773bd52006-08-04 18:18:08 +000021200 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000021201 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021202 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21203 $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 +000021204 fi
21205 hardcode_libdir_flag_spec_F77='-R$libdir'
21206 hardcode_shlibpath_var_F77=no
21207 case $host_os in
21208 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 *)
21210 # The compiler driver will combine linker options so we
21211 # cannot just pass the convience library names through
21212 # without $wl, iff we do not link with $LD.
21213 # Luckily, gcc supports the same syntax we need for Sun Studio.
21214 # Supported since Solaris 2.6 (maybe 2.5.1?)
21215 case $wlarc in
21216 '')
21217 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21218 *)
21219 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' ;;
21220 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000021221 esac
21222 link_all_deplibs_F77=yes
21223 ;;
21224
21225 sunos4*)
21226 if test "x$host_vendor" = xsequent; then
21227 # Use $CC to link under sequent, because it throws in some extra .o
21228 # files that make .init and .fini sections work.
21229 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21230 else
21231 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21232 fi
21233 hardcode_libdir_flag_spec_F77='-L$libdir'
21234 hardcode_direct_F77=yes
21235 hardcode_minus_L_F77=yes
21236 hardcode_shlibpath_var_F77=no
21237 ;;
21238
21239 sysv4)
21240 case $host_vendor in
21241 sni)
21242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21243 hardcode_direct_F77=yes # is this really true???
21244 ;;
21245 siemens)
21246 ## LD is ld it makes a PLAMLIB
21247 ## CC just makes a GrossModule.
21248 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21249 reload_cmds_F77='$CC -r -o $output$reload_objs'
21250 hardcode_direct_F77=no
21251 ;;
21252 motorola)
21253 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21254 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21255 ;;
21256 esac
21257 runpath_var='LD_RUN_PATH'
21258 hardcode_shlibpath_var_F77=no
21259 ;;
21260
21261 sysv4.3*)
21262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21263 hardcode_shlibpath_var_F77=no
21264 export_dynamic_flag_spec_F77='-Bexport'
21265 ;;
21266
21267 sysv4*MP*)
21268 if test -d /usr/nec; then
21269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21270 hardcode_shlibpath_var_F77=no
21271 runpath_var=LD_RUN_PATH
21272 hardcode_runpath_var=yes
21273 ld_shlibs_F77=yes
21274 fi
21275 ;;
21276
Reid Spencera773bd52006-08-04 18:18:08 +000021277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21278 no_undefined_flag_F77='${wl}-z,text'
21279 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021280 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021281 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000021282
John Criswell47fdd832003-07-14 16:52:07 +000021283 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021284 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21285 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 +000021286 else
Reid Spencera773bd52006-08-04 18:18:08 +000021287 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21288 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 +000021289 fi
John Criswell47fdd832003-07-14 16:52:07 +000021290 ;;
21291
Reid Spencera773bd52006-08-04 18:18:08 +000021292 sysv5* | sco3.2v5* | sco5v6*)
21293 # Note: We can NOT use -z defs as we might desire, because we do not
21294 # link with -lc, and that would cause any symbols used from libc to
21295 # always be unresolved, which means just about no library would
21296 # ever link correctly. If we're not using GNU ld we use -z text
21297 # though, which does catch some bad symbols but isn't as heavy-handed
21298 # as -z defs.
21299 no_undefined_flag_F77='${wl}-z,text'
21300 allow_undefined_flag_F77='${wl}-z,nodefs'
21301 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021302 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021303 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21304 hardcode_libdir_separator_F77=':'
21305 link_all_deplibs_F77=yes
21306 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000021307 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000021308
21309 if test "$GCC" = yes; then
21310 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21311 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21312 else
21313 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21315 fi
John Criswell47fdd832003-07-14 16:52:07 +000021316 ;;
21317
21318 uts4*)
21319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21320 hardcode_libdir_flag_spec_F77='-L$libdir'
21321 hardcode_shlibpath_var_F77=no
21322 ;;
21323
21324 *)
21325 ld_shlibs_F77=no
21326 ;;
21327 esac
21328 fi
21329
Reid Spencera773bd52006-08-04 18:18:08 +000021330{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21331echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021332test "$ld_shlibs_F77" = no && can_build_shared=no
21333
John Criswell47fdd832003-07-14 16:52:07 +000021334#
21335# Do we need to explicitly link libc?
21336#
21337case "x$archive_cmds_need_lc_F77" in
21338x|xyes)
21339 # Assume -lc should be added
21340 archive_cmds_need_lc_F77=yes
21341
21342 if test "$enable_shared" = yes && test "$GCC" = yes; then
21343 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021344 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000021345 # FIXME: we may have to deal with multi-command sequences.
21346 ;;
21347 '$CC '*)
21348 # Test whether the compiler implicitly links with -lc since on some
21349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21350 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000021351 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21352echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021353 $rm conftest*
21354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21355
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } 2>conftest.err; then
21361 soname=conftest
21362 lib=conftest
21363 libobjs=conftest.$ac_objext
21364 deplibs=
21365 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000021366 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000021367 compiler_flags=-v
21368 linker_flags=-v
21369 verstring=
21370 output_objdir=.
21371 libname=conftest
21372 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21373 allow_undefined_flag_F77=
21374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21375 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }
21379 then
21380 archive_cmds_need_lc_F77=no
21381 else
21382 archive_cmds_need_lc_F77=yes
21383 fi
21384 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21385 else
21386 cat conftest.err 1>&5
21387 fi
21388 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000021389 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21390echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021391 ;;
21392 esac
21393 fi
21394 ;;
21395esac
21396
Reid Spencera773bd52006-08-04 18:18:08 +000021397{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21398echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021399library_names_spec=
21400libname_spec='lib$name'
21401soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000021403postinstall_cmds=
21404postuninstall_cmds=
21405finish_cmds=
21406finish_eval=
21407shlibpath_var=
21408shlibpath_overrides_runpath=unknown
21409version_type=none
21410dynamic_linker="$host_os ld.so"
21411sys_lib_dlsearch_path_spec="/lib /usr/lib"
21412if test "$GCC" = yes; then
21413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21414 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21415 # if the path contains ";" then we assume it to be the separator
21416 # otherwise default to the standard path separator (i.e. ":") - it is
21417 # assumed that no part of a normal pathname contains ";" but that should
21418 # okay in the real world where ";" in dirpaths is itself problematic.
21419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21420 else
21421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21422 fi
21423else
21424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21425fi
21426need_lib_prefix=unknown
21427hardcode_into_libs=no
21428
21429# when you set need_version to no, make sure it does not cause -set_version
21430# flags to be left without arguments
21431need_version=unknown
21432
21433case $host_os in
21434aix3*)
21435 version_type=linux
21436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21437 shlibpath_var=LIBPATH
21438
21439 # AIX 3 has no versioning support, so we append a major version to the name.
21440 soname_spec='${libname}${release}${shared_ext}$major'
21441 ;;
21442
21443aix4* | aix5*)
21444 version_type=linux
21445 need_lib_prefix=no
21446 need_version=no
21447 hardcode_into_libs=yes
21448 if test "$host_cpu" = ia64; then
21449 # AIX 5 supports IA64
21450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21451 shlibpath_var=LD_LIBRARY_PATH
21452 else
21453 # With GCC up to 2.95.x, collect2 would create an import file
21454 # for dependence libraries. The import file would start with
21455 # the line `#! .'. This would cause the generated library to
21456 # depend on `.', always an invalid library. This was fixed in
21457 # development snapshots of GCC prior to 3.0.
21458 case $host_os in
21459 aix4 | aix4.[01] | aix4.[01].*)
21460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21461 echo ' yes '
21462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21463 :
21464 else
21465 can_build_shared=no
21466 fi
21467 ;;
21468 esac
21469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21470 # soname into executable. Probably we can add versioning support to
21471 # collect2, so additional links can be useful in future.
21472 if test "$aix_use_runtimelinking" = yes; then
21473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21474 # instead of lib<name>.a to let people know that these are not
21475 # typical AIX shared libraries.
21476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21477 else
21478 # We preserve .a as extension for shared libraries through AIX4.2
21479 # and later when we are not doing run time linking.
21480 library_names_spec='${libname}${release}.a $libname.a'
21481 soname_spec='${libname}${release}${shared_ext}$major'
21482 fi
21483 shlibpath_var=LIBPATH
21484 fi
21485 ;;
21486
21487amigaos*)
21488 library_names_spec='$libname.ixlibrary $libname.a'
21489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021490 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 +000021491 ;;
21492
21493beos*)
21494 library_names_spec='${libname}${shared_ext}'
21495 dynamic_linker="$host_os ld.so"
21496 shlibpath_var=LIBRARY_PATH
21497 ;;
21498
Reid Spencer2706f8c2004-09-19 23:53:36 +000021499bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021500 version_type=linux
21501 need_version=no
21502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21503 soname_spec='${libname}${release}${shared_ext}$major'
21504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21505 shlibpath_var=LD_LIBRARY_PATH
21506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21508 # the default ld.so.conf also contains /usr/contrib/lib and
21509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21510 # libtool to hard-code these into programs
21511 ;;
21512
21513cygwin* | mingw* | pw32*)
21514 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000021515 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021516 need_version=no
21517 need_lib_prefix=no
21518
21519 case $GCC,$host_os in
21520 yes,cygwin* | yes,mingw* | yes,pw32*)
21521 library_names_spec='$libname.dll.a'
21522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000021523 postinstall_cmds='base_file=`basename \${file}`~
21524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21525 dldir=$destdir/`dirname \$dlpath`~
21526 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000021527 $install_prog $dir/$dlname \$dldir/$dlname~
21528 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000021529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21530 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000021531 $rm \$dlpath'
21532 shlibpath_overrides_runpath=yes
21533
21534 case $host_os in
21535 cygwin*)
21536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21537 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 +000021538 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021539 ;;
21540 mingw*)
21541 # MinGW DLLs use traditional 'lib' prefix
21542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21544 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21545 # It is most probably a Windows format PATH printed by
21546 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21547 # path with ; separators, and with drive letters. We can handle the
21548 # drive letters (cygwin fileutils understands them), so leave them,
21549 # especially as we might pass files found there to a mingw objdump,
21550 # which wouldn't understand a cygwinified path. Ahh.
21551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21552 else
21553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21554 fi
21555 ;;
21556 pw32*)
21557 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000021558 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 +000021559 ;;
21560 esac
21561 ;;
21562
21563 *)
21564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21565 ;;
21566 esac
21567 dynamic_linker='Win32 ld.exe'
21568 # FIXME: first we should search . and the directory the executable is in
21569 shlibpath_var=PATH
21570 ;;
21571
21572darwin* | rhapsody*)
21573 dynamic_linker="$host_os dyld"
21574 version_type=darwin
21575 need_lib_prefix=no
21576 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000021577 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000021578 soname_spec='${libname}${release}${major}$shared_ext'
21579 shlibpath_overrides_runpath=yes
21580 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000021581 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000021582 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021583 if test "$GCC" = yes; then
21584 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"`
21585 else
21586 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000021587 fi
21588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21589 ;;
21590
21591dgux*)
21592 version_type=linux
21593 need_lib_prefix=no
21594 need_version=no
21595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21596 soname_spec='${libname}${release}${shared_ext}$major'
21597 shlibpath_var=LD_LIBRARY_PATH
21598 ;;
21599
21600freebsd1*)
21601 dynamic_linker=no
21602 ;;
21603
Reid Spencer2706f8c2004-09-19 23:53:36 +000021604kfreebsd*-gnu)
21605 version_type=linux
21606 need_lib_prefix=no
21607 need_version=no
21608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21609 soname_spec='${libname}${release}${shared_ext}$major'
21610 shlibpath_var=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath=no
21612 hardcode_into_libs=yes
21613 dynamic_linker='GNU ld.so'
21614 ;;
21615
Reid Spencera773bd52006-08-04 18:18:08 +000021616freebsd* | dragonfly*)
21617 # DragonFly does not have aout. When/if they implement a new
21618 # versioning mechanism, adjust this.
21619 if test -x /usr/bin/objformat; then
21620 objformat=`/usr/bin/objformat`
21621 else
21622 case $host_os in
21623 freebsd[123]*) objformat=aout ;;
21624 *) objformat=elf ;;
21625 esac
21626 fi
John Criswell47fdd832003-07-14 16:52:07 +000021627 version_type=freebsd-$objformat
21628 case $version_type in
21629 freebsd-elf*)
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21631 need_version=no
21632 need_lib_prefix=no
21633 ;;
21634 freebsd-*)
21635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21636 need_version=yes
21637 ;;
21638 esac
21639 shlibpath_var=LD_LIBRARY_PATH
21640 case $host_os in
21641 freebsd2*)
21642 shlibpath_overrides_runpath=yes
21643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021644 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000021645 shlibpath_overrides_runpath=yes
21646 hardcode_into_libs=yes
21647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000021650 shlibpath_overrides_runpath=no
21651 hardcode_into_libs=yes
21652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021653 freebsd*) # from 4.6 on
21654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21656 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021657 esac
21658 ;;
21659
21660gnu*)
21661 version_type=linux
21662 need_lib_prefix=no
21663 need_version=no
21664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21665 soname_spec='${libname}${release}${shared_ext}$major'
21666 shlibpath_var=LD_LIBRARY_PATH
21667 hardcode_into_libs=yes
21668 ;;
21669
21670hpux9* | hpux10* | hpux11*)
21671 # Give a soname corresponding to the major version so that dld.sl refuses to
21672 # link against other versions.
21673 version_type=sunos
21674 need_lib_prefix=no
21675 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000021676 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021677 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021678 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000021679 hardcode_into_libs=yes
21680 dynamic_linker="$host_os dld.so"
21681 shlibpath_var=LD_LIBRARY_PATH
21682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21684 soname_spec='${libname}${release}${shared_ext}$major'
21685 if test "X$HPUX_IA64_MODE" = X32; then
21686 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21687 else
21688 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21689 fi
21690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21691 ;;
21692 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021693 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021694 hardcode_into_libs=yes
21695 dynamic_linker="$host_os dld.sl"
21696 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699 soname_spec='${libname}${release}${shared_ext}$major'
21700 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21702 ;;
21703 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021704 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021705 dynamic_linker="$host_os dld.sl"
21706 shlibpath_var=SHLIB_PATH
21707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21709 soname_spec='${libname}${release}${shared_ext}$major'
21710 ;;
21711 esac
21712 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21713 postinstall_cmds='chmod 555 $lib'
21714 ;;
21715
Reid Spencera773bd52006-08-04 18:18:08 +000021716interix3*)
21717 version_type=linux
21718 need_lib_prefix=no
21719 need_version=no
21720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21721 soname_spec='${libname}${release}${shared_ext}$major'
21722 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21723 shlibpath_var=LD_LIBRARY_PATH
21724 shlibpath_overrides_runpath=no
21725 hardcode_into_libs=yes
21726 ;;
21727
John Criswell47fdd832003-07-14 16:52:07 +000021728irix5* | irix6* | nonstopux*)
21729 case $host_os in
21730 nonstopux*) version_type=nonstopux ;;
21731 *)
21732 if test "$lt_cv_prog_gnu_ld" = yes; then
21733 version_type=linux
21734 else
21735 version_type=irix
21736 fi ;;
21737 esac
21738 need_lib_prefix=no
21739 need_version=no
21740 soname_spec='${libname}${release}${shared_ext}$major'
21741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21742 case $host_os in
21743 irix5* | nonstopux*)
21744 libsuff= shlibsuff=
21745 ;;
21746 *)
21747 case $LD in # libtool.m4 will add one of these switches to LD
21748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21749 libsuff= shlibsuff= libmagic=32-bit;;
21750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21751 libsuff=32 shlibsuff=N32 libmagic=N32;;
21752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21753 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21754 *) libsuff= shlibsuff= libmagic=never-match;;
21755 esac
21756 ;;
21757 esac
21758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21759 shlibpath_overrides_runpath=no
21760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21762 hardcode_into_libs=yes
21763 ;;
21764
21765# No shared lib support for Linux oldld, aout, or coff.
21766linux*oldld* | linux*aout* | linux*coff*)
21767 dynamic_linker=no
21768 ;;
21769
21770# This must be Linux ELF.
21771linux*)
21772 version_type=linux
21773 need_lib_prefix=no
21774 need_version=no
21775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776 soname_spec='${libname}${release}${shared_ext}$major'
21777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21778 shlibpath_var=LD_LIBRARY_PATH
21779 shlibpath_overrides_runpath=no
21780 # This implies no fast_install, which is unacceptable.
21781 # Some rework will be needed to allow for fast_install
21782 # before this can be enabled.
21783 hardcode_into_libs=yes
21784
Reid Spencer2706f8c2004-09-19 23:53:36 +000021785 # Append ld.so.conf contents to the search path
21786 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000021787 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 +000021788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21789 fi
21790
John Criswell47fdd832003-07-14 16:52:07 +000021791 # We used to test for /lib/ld.so.1 and disable shared libraries on
21792 # powerpc, because MkLinux only supported shared libraries with the
21793 # GNU dynamic linker. Since this was broken with cross compilers,
21794 # most powerpc-linux boxes support dynamic linking these days and
21795 # people can always --disable-shared, the test was removed, and we
21796 # assume the GNU/Linux dynamic linker is in use.
21797 dynamic_linker='GNU/Linux ld.so'
21798 ;;
21799
Reid Spencer2706f8c2004-09-19 23:53:36 +000021800knetbsd*-gnu)
21801 version_type=linux
21802 need_lib_prefix=no
21803 need_version=no
21804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21805 soname_spec='${libname}${release}${shared_ext}$major'
21806 shlibpath_var=LD_LIBRARY_PATH
21807 shlibpath_overrides_runpath=no
21808 hardcode_into_libs=yes
21809 dynamic_linker='GNU ld.so'
21810 ;;
21811
John Criswell47fdd832003-07-14 16:52:07 +000021812netbsd*)
21813 version_type=sunos
21814 need_lib_prefix=no
21815 need_version=no
21816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21819 dynamic_linker='NetBSD (a.out) ld.so'
21820 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000021822 soname_spec='${libname}${release}${shared_ext}$major'
21823 dynamic_linker='NetBSD ld.elf_so'
21824 fi
21825 shlibpath_var=LD_LIBRARY_PATH
21826 shlibpath_overrides_runpath=yes
21827 hardcode_into_libs=yes
21828 ;;
21829
21830newsos6)
21831 version_type=linux
21832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21833 shlibpath_var=LD_LIBRARY_PATH
21834 shlibpath_overrides_runpath=yes
21835 ;;
21836
Reid Spencer2706f8c2004-09-19 23:53:36 +000021837nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000021838 version_type=linux
21839 need_lib_prefix=no
21840 need_version=no
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842 soname_spec='${libname}${release}${shared_ext}$major'
21843 shlibpath_var=LD_LIBRARY_PATH
21844 shlibpath_overrides_runpath=yes
21845 ;;
21846
21847openbsd*)
21848 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000021849 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021850 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000021851 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21852 case $host_os in
21853 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21854 *) need_version=no ;;
21855 esac
John Criswell47fdd832003-07-14 16:52:07 +000021856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21858 shlibpath_var=LD_LIBRARY_PATH
21859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21860 case $host_os in
21861 openbsd2.[89] | openbsd2.[89].*)
21862 shlibpath_overrides_runpath=no
21863 ;;
21864 *)
21865 shlibpath_overrides_runpath=yes
21866 ;;
21867 esac
21868 else
21869 shlibpath_overrides_runpath=yes
21870 fi
21871 ;;
21872
21873os2*)
21874 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021875 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021876 need_lib_prefix=no
21877 library_names_spec='$libname${shared_ext} $libname.a'
21878 dynamic_linker='OS/2 ld.exe'
21879 shlibpath_var=LIBPATH
21880 ;;
21881
21882osf3* | osf4* | osf5*)
21883 version_type=osf
21884 need_lib_prefix=no
21885 need_version=no
21886 soname_spec='${libname}${release}${shared_ext}$major'
21887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21888 shlibpath_var=LD_LIBRARY_PATH
21889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21890 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21891 ;;
21892
John Criswell47fdd832003-07-14 16:52:07 +000021893solaris*)
21894 version_type=linux
21895 need_lib_prefix=no
21896 need_version=no
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 shlibpath_var=LD_LIBRARY_PATH
21900 shlibpath_overrides_runpath=yes
21901 hardcode_into_libs=yes
21902 # ldd complains unless libraries are executable
21903 postinstall_cmds='chmod +x $lib'
21904 ;;
21905
21906sunos4*)
21907 version_type=sunos
21908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21910 shlibpath_var=LD_LIBRARY_PATH
21911 shlibpath_overrides_runpath=yes
21912 if test "$with_gnu_ld" = yes; then
21913 need_lib_prefix=no
21914 fi
21915 need_version=yes
21916 ;;
21917
Reid Spencera773bd52006-08-04 18:18:08 +000021918sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021919 version_type=linux
21920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21921 soname_spec='${libname}${release}${shared_ext}$major'
21922 shlibpath_var=LD_LIBRARY_PATH
21923 case $host_vendor in
21924 sni)
21925 shlibpath_overrides_runpath=no
21926 need_lib_prefix=no
21927 export_dynamic_flag_spec='${wl}-Blargedynsym'
21928 runpath_var=LD_RUN_PATH
21929 ;;
21930 siemens)
21931 need_lib_prefix=no
21932 ;;
21933 motorola)
21934 need_lib_prefix=no
21935 need_version=no
21936 shlibpath_overrides_runpath=no
21937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21938 ;;
21939 esac
21940 ;;
21941
21942sysv4*MP*)
21943 if test -d /usr/nec ;then
21944 version_type=linux
21945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21946 soname_spec='$libname${shared_ext}.$major'
21947 shlibpath_var=LD_LIBRARY_PATH
21948 fi
21949 ;;
21950
Reid Spencera773bd52006-08-04 18:18:08 +000021951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21952 version_type=freebsd-elf
21953 need_lib_prefix=no
21954 need_version=no
21955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21956 soname_spec='${libname}${release}${shared_ext}$major'
21957 shlibpath_var=LD_LIBRARY_PATH
21958 hardcode_into_libs=yes
21959 if test "$with_gnu_ld" = yes; then
21960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21961 shlibpath_overrides_runpath=no
21962 else
21963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21964 shlibpath_overrides_runpath=yes
21965 case $host_os in
21966 sco3.2v5*)
21967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21968 ;;
21969 esac
21970 fi
21971 sys_lib_dlsearch_path_spec='/usr/lib'
21972 ;;
21973
John Criswell47fdd832003-07-14 16:52:07 +000021974uts4*)
21975 version_type=linux
21976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21977 soname_spec='${libname}${release}${shared_ext}$major'
21978 shlibpath_var=LD_LIBRARY_PATH
21979 ;;
21980
21981*)
21982 dynamic_linker=no
21983 ;;
21984esac
Reid Spencera773bd52006-08-04 18:18:08 +000021985{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21986echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021987test "$dynamic_linker" = no && can_build_shared=no
21988
Reid Spencera773bd52006-08-04 18:18:08 +000021989variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21990if test "$GCC" = yes; then
21991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21992fi
21993
21994{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21995echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021996hardcode_action_F77=
21997if test -n "$hardcode_libdir_flag_spec_F77" || \
21998 test -n "$runpath_var_F77" || \
21999 test "X$hardcode_automatic_F77" = "Xyes" ; then
22000
22001 # We can hardcode non-existant directories.
22002 if test "$hardcode_direct_F77" != no &&
22003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22004 # have to relink, otherwise we might link with an installed library
22005 # when we should be linking with a yet-to-be-installed one
22006 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22007 test "$hardcode_minus_L_F77" != no; then
22008 # Linking always hardcodes the temporary library directory.
22009 hardcode_action_F77=relink
22010 else
22011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22012 hardcode_action_F77=immediate
22013 fi
22014else
22015 # We cannot hardcode anything, or else we can only hardcode existing
22016 # directories.
22017 hardcode_action_F77=unsupported
22018fi
Reid Spencera773bd52006-08-04 18:18:08 +000022019{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22020echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022021
22022if test "$hardcode_action_F77" = relink; then
22023 # Fast installation is not supported
22024 enable_fast_install=no
22025elif test "$shlibpath_overrides_runpath" = yes ||
22026 test "$enable_shared" = no; then
22027 # Fast installation is not necessary
22028 enable_fast_install=needless
22029fi
22030
John Criswell47fdd832003-07-14 16:52:07 +000022031
22032# The else clause should only fire when bootstrapping the
22033# libtool distribution, otherwise you forgot to ship ltmain.sh
22034# with your package, and you will get complaints that there are
22035# no rules to generate ltmain.sh.
22036if test -f "$ltmain"; then
22037 # See if we are running on zsh, and set the options which allow our commands through
22038 # without removal of \ escapes.
22039 if test -n "${ZSH_VERSION+set}" ; then
22040 setopt NO_GLOB_SUBST
22041 fi
22042 # Now quote all the things that may contain metacharacters while being
22043 # careful not to overquote the AC_SUBSTed values. We take copies of the
22044 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022045 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 +000022046 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22049 deplibs_check_method reload_flag reload_cmds need_locks \
22050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22051 lt_cv_sys_global_symbol_to_c_name_address \
22052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22053 old_postinstall_cmds old_postuninstall_cmds \
22054 compiler_F77 \
22055 CC_F77 \
22056 LD_F77 \
22057 lt_prog_compiler_wl_F77 \
22058 lt_prog_compiler_pic_F77 \
22059 lt_prog_compiler_static_F77 \
22060 lt_prog_compiler_no_builtin_flag_F77 \
22061 export_dynamic_flag_spec_F77 \
22062 thread_safe_flag_spec_F77 \
22063 whole_archive_flag_spec_F77 \
22064 enable_shared_with_static_runtimes_F77 \
22065 old_archive_cmds_F77 \
22066 old_archive_from_new_cmds_F77 \
22067 predep_objects_F77 \
22068 postdep_objects_F77 \
22069 predeps_F77 \
22070 postdeps_F77 \
22071 compiler_lib_search_path_F77 \
22072 archive_cmds_F77 \
22073 archive_expsym_cmds_F77 \
22074 postinstall_cmds_F77 \
22075 postuninstall_cmds_F77 \
22076 old_archive_from_expsyms_cmds_F77 \
22077 allow_undefined_flag_F77 \
22078 no_undefined_flag_F77 \
22079 export_symbols_cmds_F77 \
22080 hardcode_libdir_flag_spec_F77 \
22081 hardcode_libdir_flag_spec_ld_F77 \
22082 hardcode_libdir_separator_F77 \
22083 hardcode_automatic_F77 \
22084 module_cmds_F77 \
22085 module_expsym_cmds_F77 \
22086 lt_cv_prog_compiler_c_o_F77 \
22087 exclude_expsyms_F77 \
22088 include_expsyms_F77; do
22089
22090 case $var in
22091 old_archive_cmds_F77 | \
22092 old_archive_from_new_cmds_F77 | \
22093 archive_cmds_F77 | \
22094 archive_expsym_cmds_F77 | \
22095 module_cmds_F77 | \
22096 module_expsym_cmds_F77 | \
22097 old_archive_from_expsyms_cmds_F77 | \
22098 export_symbols_cmds_F77 | \
22099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22100 postinstall_cmds | postuninstall_cmds | \
22101 old_postinstall_cmds | old_postuninstall_cmds | \
22102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22103 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022104 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 +000022105 ;;
22106 *)
22107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22108 ;;
22109 esac
22110 done
22111
22112 case $lt_echo in
22113 *'\$0 --fallback-echo"')
22114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22115 ;;
22116 esac
22117
22118cfgfile="$ofile"
22119
22120 cat <<__EOF__ >> "$cfgfile"
22121# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22122
22123# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22124
22125# Shell to use when invoking shell scripts.
22126SHELL=$lt_SHELL
22127
22128# Whether or not to build shared libraries.
22129build_libtool_libs=$enable_shared
22130
22131# Whether or not to build static libraries.
22132build_old_libs=$enable_static
22133
22134# Whether or not to add -lc for building shared libraries.
22135build_libtool_need_lc=$archive_cmds_need_lc_F77
22136
22137# Whether or not to disallow shared libs when runtime libs are static
22138allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22139
22140# Whether or not to optimize for fast installation.
22141fast_install=$enable_fast_install
22142
22143# The host system.
22144host_alias=$host_alias
22145host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000022146host_os=$host_os
22147
22148# The build system.
22149build_alias=$build_alias
22150build=$build
22151build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000022152
22153# An echo program that does not interpret backslashes.
22154echo=$lt_echo
22155
22156# The archiver.
22157AR=$lt_AR
22158AR_FLAGS=$lt_AR_FLAGS
22159
22160# A C compiler.
22161LTCC=$lt_LTCC
22162
Reid Spencera773bd52006-08-04 18:18:08 +000022163# LTCC compiler flags.
22164LTCFLAGS=$lt_LTCFLAGS
22165
John Criswell47fdd832003-07-14 16:52:07 +000022166# A language-specific compiler.
22167CC=$lt_compiler_F77
22168
22169# Is the compiler the GNU C compiler?
22170with_gcc=$GCC_F77
22171
22172# An ERE matcher.
22173EGREP=$lt_EGREP
22174
22175# The linker used to build libraries.
22176LD=$lt_LD_F77
22177
22178# Whether we need hard or soft links.
22179LN_S=$lt_LN_S
22180
22181# A BSD-compatible nm program.
22182NM=$lt_NM
22183
22184# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000022185STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000022186
22187# Used to examine libraries when file_magic_cmd begins "file"
22188MAGIC_CMD=$MAGIC_CMD
22189
22190# Used on cygwin: DLL creation program.
22191DLLTOOL="$DLLTOOL"
22192
22193# Used on cygwin: object dumper.
22194OBJDUMP="$OBJDUMP"
22195
22196# Used on cygwin: assembler.
22197AS="$AS"
22198
22199# The name of the directory that contains temporary libtool files.
22200objdir=$objdir
22201
22202# How to create reloadable object files.
22203reload_flag=$lt_reload_flag
22204reload_cmds=$lt_reload_cmds
22205
22206# How to pass a linker flag through the compiler.
22207wl=$lt_lt_prog_compiler_wl_F77
22208
22209# Object file suffix (normally "o").
22210objext="$ac_objext"
22211
22212# Old archive suffix (normally "a").
22213libext="$libext"
22214
22215# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000022216shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000022217
22218# Executable file suffix (normally "").
22219exeext="$exeext"
22220
22221# Additional compiler flags for building library objects.
22222pic_flag=$lt_lt_prog_compiler_pic_F77
22223pic_mode=$pic_mode
22224
22225# What is the maximum length of a command?
22226max_cmd_len=$lt_cv_sys_max_cmd_len
22227
22228# Does compiler simultaneously support -c and -o options?
22229compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22230
Reid Spencera773bd52006-08-04 18:18:08 +000022231# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000022232need_locks=$lt_need_locks
22233
22234# Do we need the lib prefix for modules?
22235need_lib_prefix=$need_lib_prefix
22236
22237# Do we need a version for libraries?
22238need_version=$need_version
22239
22240# Whether dlopen is supported.
22241dlopen_support=$enable_dlopen
22242
22243# Whether dlopen of programs is supported.
22244dlopen_self=$enable_dlopen_self
22245
22246# Whether dlopen of statically linked programs is supported.
22247dlopen_self_static=$enable_dlopen_self_static
22248
22249# Compiler flag to prevent dynamic linking.
22250link_static_flag=$lt_lt_prog_compiler_static_F77
22251
22252# Compiler flag to turn off builtin functions.
22253no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22254
22255# Compiler flag to allow reflexive dlopens.
22256export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22257
22258# Compiler flag to generate shared objects directly from archives.
22259whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22260
22261# Compiler flag to generate thread-safe objects.
22262thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22263
22264# Library versioning type.
22265version_type=$version_type
22266
22267# Format of library name prefix.
22268libname_spec=$lt_libname_spec
22269
22270# List of archive names. First name is the real one, the rest are links.
22271# The last name is the one that the linker finds with -lNAME.
22272library_names_spec=$lt_library_names_spec
22273
22274# The coded name of the library, if different from the real name.
22275soname_spec=$lt_soname_spec
22276
22277# Commands used to build and install an old-style archive.
22278RANLIB=$lt_RANLIB
22279old_archive_cmds=$lt_old_archive_cmds_F77
22280old_postinstall_cmds=$lt_old_postinstall_cmds
22281old_postuninstall_cmds=$lt_old_postuninstall_cmds
22282
22283# Create an old-style archive from a shared archive.
22284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22285
22286# Create a temporary old-style archive to link instead of a shared archive.
22287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22288
22289# Commands used to build and install a shared archive.
22290archive_cmds=$lt_archive_cmds_F77
22291archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22292postinstall_cmds=$lt_postinstall_cmds
22293postuninstall_cmds=$lt_postuninstall_cmds
22294
22295# Commands used to build a loadable module (assumed same as above if empty)
22296module_cmds=$lt_module_cmds_F77
22297module_expsym_cmds=$lt_module_expsym_cmds_F77
22298
22299# Commands to strip libraries.
22300old_striplib=$lt_old_striplib
22301striplib=$lt_striplib
22302
22303# Dependencies to place before the objects being linked to create a
22304# shared library.
22305predep_objects=$lt_predep_objects_F77
22306
22307# Dependencies to place after the objects being linked to create a
22308# shared library.
22309postdep_objects=$lt_postdep_objects_F77
22310
22311# Dependencies to place before the objects being linked to create a
22312# shared library.
22313predeps=$lt_predeps_F77
22314
22315# Dependencies to place after the objects being linked to create a
22316# shared library.
22317postdeps=$lt_postdeps_F77
22318
22319# The library search path used internally by the compiler when linking
22320# a shared library.
22321compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22322
22323# Method to check whether dependent libraries are shared objects.
22324deplibs_check_method=$lt_deplibs_check_method
22325
22326# Command to use when deplibs_check_method == file_magic.
22327file_magic_cmd=$lt_file_magic_cmd
22328
22329# Flag that allows shared libraries with undefined symbols to be built.
22330allow_undefined_flag=$lt_allow_undefined_flag_F77
22331
22332# Flag that forces no undefined symbols.
22333no_undefined_flag=$lt_no_undefined_flag_F77
22334
22335# Commands used to finish a libtool library installation in a directory.
22336finish_cmds=$lt_finish_cmds
22337
22338# Same as above, but a single script fragment to be evaled but not shown.
22339finish_eval=$lt_finish_eval
22340
22341# Take the output of nm and produce a listing of raw symbols and C names.
22342global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22343
22344# Transform the output of nm in a proper C declaration
22345global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22346
22347# Transform the output of nm in a C name address pair
22348global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22349
22350# This is the shared library runtime path variable.
22351runpath_var=$runpath_var
22352
22353# This is the shared library path variable.
22354shlibpath_var=$shlibpath_var
22355
22356# Is shlibpath searched before the hard-coded library search path?
22357shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22358
22359# How to hardcode a shared library path into an executable.
22360hardcode_action=$hardcode_action_F77
22361
22362# Whether we should hardcode library paths into libraries.
22363hardcode_into_libs=$hardcode_into_libs
22364
22365# Flag to hardcode \$libdir into a binary during linking.
22366# This must work even if \$libdir does not exist.
22367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22368
22369# If ld is used when linking, flag to hardcode \$libdir into
22370# a binary during linking. This must work even if \$libdir does
22371# not exist.
22372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22373
22374# Whether we need a single -rpath flag with a separated argument.
22375hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22376
22377# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22378# resulting binary.
22379hardcode_direct=$hardcode_direct_F77
22380
22381# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22382# resulting binary.
22383hardcode_minus_L=$hardcode_minus_L_F77
22384
22385# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22386# the resulting binary.
22387hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22388
22389# Set to yes if building a shared library automatically hardcodes DIR into the library
22390# and all subsequent libraries and executables linked against it.
22391hardcode_automatic=$hardcode_automatic_F77
22392
22393# Variables whose values should be saved in libtool wrapper scripts and
22394# restored at relink time.
22395variables_saved_for_relink="$variables_saved_for_relink"
22396
22397# Whether libtool must link a program against all its dependency libraries.
22398link_all_deplibs=$link_all_deplibs_F77
22399
22400# Compile-time system search path for libraries
22401sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22402
22403# Run-time system search path for libraries
22404sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22405
22406# Fix the shell variable \$srcfile for the compiler.
22407fix_srcfile_path="$fix_srcfile_path_F77"
22408
22409# Set to yes if exported symbols are required.
22410always_export_symbols=$always_export_symbols_F77
22411
22412# The commands to list exported symbols.
22413export_symbols_cmds=$lt_export_symbols_cmds_F77
22414
22415# The commands to extract the exported symbol list from a shared archive.
22416extract_expsyms_cmds=$lt_extract_expsyms_cmds
22417
22418# Symbols that should not be listed in the preloaded symbols.
22419exclude_expsyms=$lt_exclude_expsyms_F77
22420
22421# Symbols that must always be exported.
22422include_expsyms=$lt_include_expsyms_F77
22423
22424# ### END LIBTOOL TAG CONFIG: $tagname
22425
22426__EOF__
22427
22428
22429else
22430 # If there is no Makefile yet, we rely on a make rule to execute
22431 # `config.status --recheck' to rerun these tests and create the
22432 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022433 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22434 if test -f "$ltmain_in"; then
22435 test -f Makefile && make "$ltmain"
22436 fi
John Criswell47fdd832003-07-14 16:52:07 +000022437fi
22438
22439
22440ac_ext=c
22441ac_cpp='$CPP $CPPFLAGS'
22442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22444ac_compiler_gnu=$ac_cv_c_compiler_gnu
22445
22446CC="$lt_save_CC"
22447
22448 else
22449 tagname=""
22450 fi
22451 ;;
22452
22453 GCJ)
22454 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022455 ac_ext=c
22456ac_cpp='$CPP $CPPFLAGS'
22457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000022460
22461
22462# Source file extension for Java test sources.
22463ac_ext=java
22464
22465# Object file extension for compiled Java test sources.
22466objext=o
22467objext_GCJ=$objext
22468
22469# Code to be used in simple compile tests
22470lt_simple_compile_test_code="class foo {}\n"
22471
22472# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000022473lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000022474
22475# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22476
22477# If no C compiler was specified, use CC.
22478LTCC=${LTCC-"$CC"}
22479
Reid Spencera773bd52006-08-04 18:18:08 +000022480# If no C compiler flags were specified, use CFLAGS.
22481LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22482
John Criswell47fdd832003-07-14 16:52:07 +000022483# Allow CC to be a program name with arguments.
22484compiler=$CC
22485
22486
Reid Spencera773bd52006-08-04 18:18:08 +000022487# save warnings/boilerplate of simple test code
22488ac_outfile=conftest.$ac_objext
22489printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22490eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22491_lt_compiler_boilerplate=`cat conftest.err`
22492$rm conftest*
22493
22494ac_outfile=conftest.$ac_objext
22495printf "$lt_simple_link_test_code" >conftest.$ac_ext
22496eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22497_lt_linker_boilerplate=`cat conftest.err`
22498$rm conftest*
22499
22500
John Criswell47fdd832003-07-14 16:52:07 +000022501# Allow CC to be a program name with arguments.
22502lt_save_CC="$CC"
22503CC=${GCJ-"gcj"}
22504compiler=$CC
22505compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000022506for cc_temp in $compiler""; do
22507 case $cc_temp in
22508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22510 \-*) ;;
22511 *) break;;
22512 esac
22513done
22514cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22515
John Criswell47fdd832003-07-14 16:52:07 +000022516
22517# GCJ did not exist at the time GCC didn't implicitly link libc in.
22518archive_cmds_need_lc_GCJ=no
22519
Reid Spencera773bd52006-08-04 18:18:08 +000022520old_archive_cmds_GCJ=$old_archive_cmds
22521
John Criswell47fdd832003-07-14 16:52:07 +000022522
22523lt_prog_compiler_no_builtin_flag_GCJ=
22524
22525if test "$GCC" = yes; then
22526 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22527
Reid Spencer2706f8c2004-09-19 23:53:36 +000022528
Reid Spencera773bd52006-08-04 18:18:08 +000022529{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22530echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022531if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533else
22534 lt_cv_prog_compiler_rtti_exceptions=no
22535 ac_outfile=conftest.$ac_objext
22536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22537 lt_compiler_flag="-fno-rtti -fno-exceptions"
22538 # Insert the option either (1) after the last *FLAGS variable, or
22539 # (2) before a word containing "conftest.", or (3) at the end.
22540 # Note that $ac_compile itself does not contain backslashes and begins
22541 # with a dollar sign (not a hyphen), so the echo should work correctly.
22542 # The option is referenced via a variable to avoid confusing sed.
22543 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22546 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000022547 (eval echo "\"\$as_me:22546: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022548 (eval "$lt_compile" 2>conftest.err)
22549 ac_status=$?
22550 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000022551 echo "$as_me:22550: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022552 if (exit $ac_status) && test -s "$ac_outfile"; then
22553 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022554 # So say no if there are warnings other than the usual output.
22555 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022558 lt_cv_prog_compiler_rtti_exceptions=yes
22559 fi
22560 fi
22561 $rm conftest*
22562
22563fi
Reid Spencera773bd52006-08-04 18:18:08 +000022564{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22565echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022566
22567if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22568 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22569else
22570 :
22571fi
22572
22573fi
22574
22575lt_prog_compiler_wl_GCJ=
22576lt_prog_compiler_pic_GCJ=
22577lt_prog_compiler_static_GCJ=
22578
Reid Spencera773bd52006-08-04 18:18:08 +000022579{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22580echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022581
22582 if test "$GCC" = yes; then
22583 lt_prog_compiler_wl_GCJ='-Wl,'
22584 lt_prog_compiler_static_GCJ='-static'
22585
22586 case $host_os in
22587 aix*)
22588 # All AIX code is PIC.
22589 if test "$host_cpu" = ia64; then
22590 # AIX 5 now supports IA64 processor
22591 lt_prog_compiler_static_GCJ='-Bstatic'
22592 fi
22593 ;;
22594
22595 amigaos*)
22596 # FIXME: we need at least 68020 code to build shared libraries, but
22597 # adding the `-m68020' flag to GCC prevents building anything better,
22598 # like `-m68040'.
22599 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22600 ;;
22601
22602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22603 # PIC is the default for these OSes.
22604 ;;
22605
22606 mingw* | pw32* | os2*)
22607 # This hack is so that the source file can tell whether it is being
22608 # built for inclusion in a dll (and should export symbols for example).
22609 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22610 ;;
22611
22612 darwin* | rhapsody*)
22613 # PIC is the default on this platform
22614 # Common symbols not allowed in MH_DYLIB files
22615 lt_prog_compiler_pic_GCJ='-fno-common'
22616 ;;
22617
Reid Spencera773bd52006-08-04 18:18:08 +000022618 interix3*)
22619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22620 # Instead, we relocate shared libraries at runtime.
22621 ;;
22622
John Criswell47fdd832003-07-14 16:52:07 +000022623 msdosdjgpp*)
22624 # Just because we use GCC doesn't mean we suddenly get shared libraries
22625 # on systems that don't support them.
22626 lt_prog_compiler_can_build_shared_GCJ=no
22627 enable_shared=no
22628 ;;
22629
22630 sysv4*MP*)
22631 if test -d /usr/nec; then
22632 lt_prog_compiler_pic_GCJ=-Kconform_pic
22633 fi
22634 ;;
22635
22636 hpux*)
22637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22638 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022639 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022640 hppa*64*|ia64*)
22641 # +Z the default
22642 ;;
22643 *)
22644 lt_prog_compiler_pic_GCJ='-fPIC'
22645 ;;
22646 esac
22647 ;;
22648
22649 *)
22650 lt_prog_compiler_pic_GCJ='-fPIC'
22651 ;;
22652 esac
22653 else
22654 # PORTME Check for flag to pass linker flags through the system compiler.
22655 case $host_os in
22656 aix*)
22657 lt_prog_compiler_wl_GCJ='-Wl,'
22658 if test "$host_cpu" = ia64; then
22659 # AIX 5 now supports IA64 processor
22660 lt_prog_compiler_static_GCJ='-Bstatic'
22661 else
22662 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22663 fi
22664 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022665 darwin*)
22666 # PIC is the default on this platform
22667 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000022668 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669 xlc*)
22670 lt_prog_compiler_pic_GCJ='-qnocommon'
22671 lt_prog_compiler_wl_GCJ='-Wl,'
22672 ;;
22673 esac
22674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022675
22676 mingw* | pw32* | os2*)
22677 # This hack is so that the source file can tell whether it is being
22678 # built for inclusion in a dll (and should export symbols for example).
22679 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22680 ;;
22681
22682 hpux9* | hpux10* | hpux11*)
22683 lt_prog_compiler_wl_GCJ='-Wl,'
22684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22685 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022686 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022687 hppa*64*|ia64*)
22688 # +Z the default
22689 ;;
22690 *)
22691 lt_prog_compiler_pic_GCJ='+Z'
22692 ;;
22693 esac
22694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22695 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22696 ;;
22697
22698 irix5* | irix6* | nonstopux*)
22699 lt_prog_compiler_wl_GCJ='-Wl,'
22700 # PIC (with -KPIC) is the default.
22701 lt_prog_compiler_static_GCJ='-non_shared'
22702 ;;
22703
22704 newsos6)
22705 lt_prog_compiler_pic_GCJ='-KPIC'
22706 lt_prog_compiler_static_GCJ='-Bstatic'
22707 ;;
22708
22709 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000022710 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022711 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000022712 lt_prog_compiler_wl_GCJ='-Wl,'
22713 lt_prog_compiler_pic_GCJ='-KPIC'
22714 lt_prog_compiler_static_GCJ='-static'
22715 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022716 pgcc* | pgf77* | pgf90* | pgf95*)
22717 # Portland Group compilers (*not* the Pentium gcc compiler,
22718 # which looks to be a dead project)
22719 lt_prog_compiler_wl_GCJ='-Wl,'
22720 lt_prog_compiler_pic_GCJ='-fpic'
22721 lt_prog_compiler_static_GCJ='-Bstatic'
22722 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022723 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000022724 lt_prog_compiler_wl_GCJ='-Wl,'
22725 # All Alpha code is PIC.
22726 lt_prog_compiler_static_GCJ='-non_shared'
22727 ;;
22728 esac
22729 ;;
22730
22731 osf3* | osf4* | osf5*)
22732 lt_prog_compiler_wl_GCJ='-Wl,'
22733 # All OSF/1 code is PIC.
22734 lt_prog_compiler_static_GCJ='-non_shared'
22735 ;;
22736
John Criswell47fdd832003-07-14 16:52:07 +000022737 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022738 lt_prog_compiler_pic_GCJ='-KPIC'
22739 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000022740 case $cc_basename in
22741 f77* | f90* | f95*)
22742 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22743 *)
22744 lt_prog_compiler_wl_GCJ='-Wl,';;
22745 esac
John Criswell47fdd832003-07-14 16:52:07 +000022746 ;;
22747
22748 sunos4*)
22749 lt_prog_compiler_wl_GCJ='-Qoption ld '
22750 lt_prog_compiler_pic_GCJ='-PIC'
22751 lt_prog_compiler_static_GCJ='-Bstatic'
22752 ;;
22753
Reid Spencera773bd52006-08-04 18:18:08 +000022754 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022755 lt_prog_compiler_wl_GCJ='-Wl,'
22756 lt_prog_compiler_pic_GCJ='-KPIC'
22757 lt_prog_compiler_static_GCJ='-Bstatic'
22758 ;;
22759
22760 sysv4*MP*)
22761 if test -d /usr/nec ;then
22762 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22763 lt_prog_compiler_static_GCJ='-Bstatic'
22764 fi
22765 ;;
22766
Reid Spencera773bd52006-08-04 18:18:08 +000022767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22768 lt_prog_compiler_wl_GCJ='-Wl,'
22769 lt_prog_compiler_pic_GCJ='-KPIC'
22770 lt_prog_compiler_static_GCJ='-Bstatic'
22771 ;;
22772
22773 unicos*)
22774 lt_prog_compiler_wl_GCJ='-Wl,'
22775 lt_prog_compiler_can_build_shared_GCJ=no
22776 ;;
22777
John Criswell47fdd832003-07-14 16:52:07 +000022778 uts4*)
22779 lt_prog_compiler_pic_GCJ='-pic'
22780 lt_prog_compiler_static_GCJ='-Bstatic'
22781 ;;
22782
22783 *)
22784 lt_prog_compiler_can_build_shared_GCJ=no
22785 ;;
22786 esac
22787 fi
22788
Reid Spencera773bd52006-08-04 18:18:08 +000022789{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22790echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022791
22792#
22793# Check to make sure the PIC flag actually works.
22794#
22795if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022796
Reid Spencera773bd52006-08-04 18:18:08 +000022797{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22798echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022799if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801else
22802 lt_prog_compiler_pic_works_GCJ=no
22803 ac_outfile=conftest.$ac_objext
22804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22805 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22806 # Insert the option either (1) after the last *FLAGS variable, or
22807 # (2) before a word containing "conftest.", or (3) at the end.
22808 # Note that $ac_compile itself does not contain backslashes and begins
22809 # with a dollar sign (not a hyphen), so the echo should work correctly.
22810 # The option is referenced via a variable to avoid confusing sed.
22811 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22814 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000022815 (eval echo "\"\$as_me:22814: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022816 (eval "$lt_compile" 2>conftest.err)
22817 ac_status=$?
22818 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000022819 echo "$as_me:22818: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022820 if (exit $ac_status) && test -s "$ac_outfile"; then
22821 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022822 # So say no if there are warnings other than the usual output.
22823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022826 lt_prog_compiler_pic_works_GCJ=yes
22827 fi
22828 fi
22829 $rm conftest*
22830
22831fi
Reid Spencera773bd52006-08-04 18:18:08 +000022832{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22833echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022834
22835if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22836 case $lt_prog_compiler_pic_GCJ in
22837 "" | " "*) ;;
22838 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22839 esac
22840else
22841 lt_prog_compiler_pic_GCJ=
22842 lt_prog_compiler_can_build_shared_GCJ=no
22843fi
22844
22845fi
Reid Spencera773bd52006-08-04 18:18:08 +000022846case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000022847 # For platforms which do not support PIC, -DPIC is meaningless:
22848 *djgpp*)
22849 lt_prog_compiler_pic_GCJ=
22850 ;;
22851 *)
22852 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22853 ;;
22854esac
22855
Reid Spencera773bd52006-08-04 18:18:08 +000022856#
22857# Check to make sure the static flag actually works.
22858#
22859wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22860{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22861echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22862if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22864else
22865 lt_prog_compiler_static_works_GCJ=no
22866 save_LDFLAGS="$LDFLAGS"
22867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22868 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22870 # The linker can only warn and ignore the option if not recognized
22871 # So say no if there are warnings
22872 if test -s conftest.err; then
22873 # Append any errors to the config.log.
22874 cat conftest.err 1>&5
22875 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22877 if diff conftest.exp conftest.er2 >/dev/null; then
22878 lt_prog_compiler_static_works_GCJ=yes
22879 fi
22880 else
22881 lt_prog_compiler_static_works_GCJ=yes
22882 fi
22883 fi
22884 $rm conftest*
22885 LDFLAGS="$save_LDFLAGS"
22886
22887fi
22888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22889echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22890
22891if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22892 :
22893else
22894 lt_prog_compiler_static_GCJ=
22895fi
22896
22897
22898{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22899echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022900if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22902else
22903 lt_cv_prog_compiler_c_o_GCJ=no
22904 $rm -r conftest 2>/dev/null
22905 mkdir conftest
22906 cd conftest
22907 mkdir out
22908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22909
John Criswell47fdd832003-07-14 16:52:07 +000022910 lt_compiler_flag="-o out/conftest2.$ac_objext"
22911 # Insert the option either (1) after the last *FLAGS variable, or
22912 # (2) before a word containing "conftest.", or (3) at the end.
22913 # Note that $ac_compile itself does not contain backslashes and begins
22914 # with a dollar sign (not a hyphen), so the echo should work correctly.
22915 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22918 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000022919 (eval echo "\"\$as_me:22918: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022920 (eval "$lt_compile" 2>out/conftest.err)
22921 ac_status=$?
22922 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000022923 echo "$as_me:22922: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22925 then
22926 # The compiler can only warn and ignore the option if not recognized
22927 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000022928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022931 lt_cv_prog_compiler_c_o_GCJ=yes
22932 fi
22933 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022934 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022935 $rm conftest*
22936 # SGI C++ compiler will create directory out/ii_files/ for
22937 # template instantiation
22938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22939 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022940 cd ..
22941 rmdir conftest
22942 $rm conftest*
22943
22944fi
Reid Spencera773bd52006-08-04 18:18:08 +000022945{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22946echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022947
22948
22949hard_links="nottested"
22950if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22951 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022952 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22953echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022954 hard_links=yes
22955 $rm conftest*
22956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22957 touch conftest.a
22958 ln conftest.a conftest.b 2>&5 || hard_links=no
22959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022960 { echo "$as_me:$LINENO: result: $hard_links" >&5
22961echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022962 if test "$hard_links" = no; then
22963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22964echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22965 need_locks=warn
22966 fi
22967else
22968 need_locks=no
22969fi
22970
Reid Spencera773bd52006-08-04 18:18:08 +000022971{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22972echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022973
22974 runpath_var=
22975 allow_undefined_flag_GCJ=
22976 enable_shared_with_static_runtimes_GCJ=no
22977 archive_cmds_GCJ=
22978 archive_expsym_cmds_GCJ=
22979 old_archive_From_new_cmds_GCJ=
22980 old_archive_from_expsyms_cmds_GCJ=
22981 export_dynamic_flag_spec_GCJ=
22982 whole_archive_flag_spec_GCJ=
22983 thread_safe_flag_spec_GCJ=
22984 hardcode_libdir_flag_spec_GCJ=
22985 hardcode_libdir_flag_spec_ld_GCJ=
22986 hardcode_libdir_separator_GCJ=
22987 hardcode_direct_GCJ=no
22988 hardcode_minus_L_GCJ=no
22989 hardcode_shlibpath_var_GCJ=unsupported
22990 link_all_deplibs_GCJ=unknown
22991 hardcode_automatic_GCJ=no
22992 module_cmds_GCJ=
22993 module_expsym_cmds_GCJ=
22994 always_export_symbols_GCJ=no
22995 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22996 # include_expsyms should be a list of space-separated symbols to be *always*
22997 # included in the symbol list
22998 include_expsyms_GCJ=
22999 # exclude_expsyms can be an extended regexp of symbols to exclude
23000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23002 # as well as any symbol that contains `d'.
23003 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23005 # platforms (ab)use it in PIC code, but their linkers get confused if
23006 # the symbol is explicitly referenced. Since portable code cannot
23007 # rely on this symbol name, it's probably fine to never include it in
23008 # preloaded symbol tables.
23009 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023010 # Just being paranoid about ensuring that cc_basename is set.
23011 for cc_temp in $compiler""; do
23012 case $cc_temp in
23013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23015 \-*) ;;
23016 *) break;;
23017 esac
23018done
23019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023020
23021 case $host_os in
23022 cygwin* | mingw* | pw32*)
23023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23024 # When not using gcc, we currently assume that we are using
23025 # Microsoft Visual C++.
23026 if test "$GCC" != yes; then
23027 with_gnu_ld=no
23028 fi
23029 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023030 interix*)
23031 # we just hope/assume this is gcc and not c89 (= MSVC++)
23032 with_gnu_ld=yes
23033 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023034 openbsd*)
23035 with_gnu_ld=no
23036 ;;
23037 esac
23038
23039 ld_shlibs_GCJ=yes
23040 if test "$with_gnu_ld" = yes; then
23041 # If archive_cmds runs LD, not CC, wlarc should be empty
23042 wlarc='${wl}'
23043
Reid Spencera773bd52006-08-04 18:18:08 +000023044 # Set some defaults for GNU ld with shared library support. These
23045 # are reset later if shared libraries are not supported. Putting them
23046 # here allows them to be overridden if necessary.
23047 runpath_var=LD_RUN_PATH
23048 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23049 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23050 # ancient GNU ld didn't support --whole-archive et. al.
23051 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23052 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23053 else
23054 whole_archive_flag_spec_GCJ=
23055 fi
23056 supports_anon_versioning=no
23057 case `$LD -v 2>/dev/null` in
23058 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23061 *\ 2.11.*) ;; # other 2.11 versions
23062 *) supports_anon_versioning=yes ;;
23063 esac
23064
John Criswell47fdd832003-07-14 16:52:07 +000023065 # See if GNU ld supports shared libraries.
23066 case $host_os in
23067 aix3* | aix4* | aix5*)
23068 # On AIX/PPC, the GNU linker is very broken
23069 if test "$host_cpu" != ia64; then
23070 ld_shlibs_GCJ=no
23071 cat <<EOF 1>&2
23072
23073*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23074*** to be unable to reliably create shared libraries on AIX.
23075*** Therefore, libtool is disabling shared libraries support. If you
23076*** really care for shared libraries, you may want to modify your PATH
23077*** so that a non-GNU linker is found, and then restart.
23078
23079EOF
23080 fi
23081 ;;
23082
23083 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023084 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 +000023085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23086 hardcode_minus_L_GCJ=yes
23087
23088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23089 # that the semantics of dynamic libraries on AmigaOS, at least up
23090 # to version 4, is to share data among multiple programs linked
23091 # with the same dynamic library. Since this doesn't match the
23092 # behavior of shared libraries on other platforms, we can't use
23093 # them.
23094 ld_shlibs_GCJ=no
23095 ;;
23096
23097 beos*)
23098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23099 allow_undefined_flag_GCJ=unsupported
23100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23101 # support --undefined. This deserves some investigation. FIXME
23102 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23103 else
23104 ld_shlibs_GCJ=no
23105 fi
23106 ;;
23107
23108 cygwin* | mingw* | pw32*)
23109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23110 # as there is no search path for DLLs.
23111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23112 allow_undefined_flag_GCJ=unsupported
23113 always_export_symbols_GCJ=no
23114 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023115 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 +000023116
23117 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000023118 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 +000023119 # If the export-symbols file already is a .def file (1st line
23120 # is EXPORTS), use it as is; otherwise, prepend...
23121 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23122 cp $export_symbols $output_objdir/$soname.def;
23123 else
23124 echo EXPORTS > $output_objdir/$soname.def;
23125 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000023126 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000023127 $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 +000023128 else
Reid Spencera773bd52006-08-04 18:18:08 +000023129 ld_shlibs_GCJ=no
23130 fi
23131 ;;
23132
23133 interix3*)
23134 hardcode_direct_GCJ=no
23135 hardcode_shlibpath_var_GCJ=no
23136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23137 export_dynamic_flag_spec_GCJ='${wl}-E'
23138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23139 # Instead, shared libraries are loaded at an image base (0x10000000 by
23140 # default) and relocated if they conflict, which is a slow very memory
23141 # consuming and fragmenting process. To avoid this, we pick a random,
23142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23144 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'
23145 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'
23146 ;;
23147
23148 linux*)
23149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23150 tmp_addflag=
23151 case $cc_basename,$host_cpu in
23152 pgcc*) # Portland Group C compiler
23153 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'
23154 tmp_addflag=' $pic_flag'
23155 ;;
23156 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23157 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'
23158 tmp_addflag=' $pic_flag -Mnomain' ;;
23159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23160 tmp_addflag=' -i_dynamic' ;;
23161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23162 tmp_addflag=' -i_dynamic -nofor_main' ;;
23163 ifc* | ifort*) # Intel Fortran compiler
23164 tmp_addflag=' -nofor_main' ;;
23165 esac
23166 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23167
23168 if test $supports_anon_versioning = yes; then
23169 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23171 $echo "local: *; };" >> $output_objdir/$libname.ver~
23172 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23173 fi
23174 else
23175 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023176 fi
23177 ;;
23178
23179 netbsd*)
23180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23181 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23182 wlarc=
23183 else
23184 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23185 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23186 fi
23187 ;;
23188
Reid Spencera773bd52006-08-04 18:18:08 +000023189 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023190 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23191 ld_shlibs_GCJ=no
23192 cat <<EOF 1>&2
23193
23194*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23195*** create shared libraries on Solaris systems. Therefore, libtool
23196*** is disabling shared libraries support. We urge you to upgrade GNU
23197*** binutils to release 2.9.1 or newer. Another option is to modify
23198*** your PATH or compiler configuration so that the native linker is
23199*** used, and then restart.
23200
23201EOF
23202 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23204 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23205 else
23206 ld_shlibs_GCJ=no
23207 fi
23208 ;;
23209
Reid Spencera773bd52006-08-04 18:18:08 +000023210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23211 case `$LD -v 2>&1` in
23212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23213 ld_shlibs_GCJ=no
23214 cat <<_LT_EOF 1>&2
23215
23216*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23217*** reliably create shared libraries on SCO systems. Therefore, libtool
23218*** is disabling shared libraries support. We urge you to upgrade GNU
23219*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23220*** your PATH or compiler configuration so that the native linker is
23221*** used, and then restart.
23222
23223_LT_EOF
23224 ;;
23225 *)
23226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23227 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23228 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23229 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23230 else
23231 ld_shlibs_GCJ=no
23232 fi
23233 ;;
23234 esac
23235 ;;
23236
John Criswell47fdd832003-07-14 16:52:07 +000023237 sunos4*)
23238 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23239 wlarc=
23240 hardcode_direct_GCJ=yes
23241 hardcode_shlibpath_var_GCJ=no
23242 ;;
23243
23244 *)
23245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23246 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23247 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23248 else
23249 ld_shlibs_GCJ=no
23250 fi
23251 ;;
23252 esac
23253
Reid Spencera773bd52006-08-04 18:18:08 +000023254 if test "$ld_shlibs_GCJ" = no; then
23255 runpath_var=
23256 hardcode_libdir_flag_spec_GCJ=
23257 export_dynamic_flag_spec_GCJ=
23258 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000023259 fi
23260 else
23261 # PORTME fill in a description of your system's linker (not GNU ld)
23262 case $host_os in
23263 aix3*)
23264 allow_undefined_flag_GCJ=unsupported
23265 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000023266 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 +000023267 # Note: this linker hardcodes the directories in LIBPATH if there
23268 # are no directories specified by -L.
23269 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023270 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000023271 # Neither direct hardcoding nor static linking is supported with a
23272 # broken collect2.
23273 hardcode_direct_GCJ=unsupported
23274 fi
23275 ;;
23276
23277 aix4* | aix5*)
23278 if test "$host_cpu" = ia64; then
23279 # On IA64, the linker does run time linking by default, so we don't
23280 # have to do anything special.
23281 aix_use_runtimelinking=no
23282 exp_sym_flag='-Bexport'
23283 no_entry_flag=""
23284 else
23285 # If we're using GNU nm, then we don't want the "-C" option.
23286 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23287 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23288 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'
23289 else
23290 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'
23291 fi
23292 aix_use_runtimelinking=no
23293
23294 # Test if we are trying to use run time linking or normal
23295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23296 # need to do runtime linking.
23297 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23298 for ld_flag in $LDFLAGS; do
23299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23300 aix_use_runtimelinking=yes
23301 break
23302 fi
23303 done
Reid Spencera773bd52006-08-04 18:18:08 +000023304 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023305 esac
23306
23307 exp_sym_flag='-bexport'
23308 no_entry_flag='-bnoentry'
23309 fi
23310
23311 # When large executables or shared objects are built, AIX ld can
23312 # have problems creating the table of contents. If linking a library
23313 # or program results in "error TOC overflow" add -mminimal-toc to
23314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23316
23317 archive_cmds_GCJ=''
23318 hardcode_direct_GCJ=yes
23319 hardcode_libdir_separator_GCJ=':'
23320 link_all_deplibs_GCJ=yes
23321
23322 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023323 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000023324 # We only want to do this on AIX 4.2 and lower, the check
23325 # below for broken collect2 doesn't work under 4.3+
23326 collect2name=`${CC} -print-prog-name=collect2`
23327 if test -f "$collect2name" && \
23328 strings "$collect2name" | grep resolve_lib_name >/dev/null
23329 then
23330 # We have reworked collect2
23331 hardcode_direct_GCJ=yes
23332 else
23333 # We have old collect2
23334 hardcode_direct_GCJ=unsupported
23335 # It fails to find uninstalled libraries when the uninstalled
23336 # path is not listed in the libpath. Setting hardcode_minus_L
23337 # to unsupported forces relinking
23338 hardcode_minus_L_GCJ=yes
23339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23340 hardcode_libdir_separator_GCJ=
23341 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023342 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023343 esac
23344 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000023345 if test "$aix_use_runtimelinking" = yes; then
23346 shared_flag="$shared_flag "'${wl}-G'
23347 fi
John Criswell47fdd832003-07-14 16:52:07 +000023348 else
23349 # not using gcc
23350 if test "$host_cpu" = ia64; then
23351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23352 # chokes on -Wl,-G. The following line is correct:
23353 shared_flag='-G'
23354 else
Reid Spencera773bd52006-08-04 18:18:08 +000023355 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000023356 shared_flag='${wl}-G'
23357 else
23358 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000023359 fi
John Criswell47fdd832003-07-14 16:52:07 +000023360 fi
23361 fi
23362
23363 # It seems that -bexpall does not export symbols beginning with
23364 # underscore (_), so it is better to generate a list of symbols to export.
23365 always_export_symbols_GCJ=yes
23366 if test "$aix_use_runtimelinking" = yes; then
23367 # Warning - without using the other runtime loading flags (-brtl),
23368 # -berok will link without error, but may produce a broken library.
23369 allow_undefined_flag_GCJ='-berok'
23370 # Determine the default libpath from the value encoded in an empty executable.
23371 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023377
John Criswell47fdd832003-07-14 16:52:07 +000023378int
23379main ()
23380{
23381
23382 ;
23383 return 0;
23384}
23385_ACEOF
23386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023387if { (ac_try="$ac_link"
23388case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23391esac
23392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395 grep -v '^ *+' conftest.er1 >conftest.err
23396 rm -f conftest.er1
23397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest$ac_exeext &&
23403 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023404
23405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23406}'`
23407# Check for a 64-bit object if we didn't find anything.
23408if 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; }
23409}'`; fi
23410else
23411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023412sed 's/^/| /' conftest.$ac_ext >&5
23413
Reid Spencera773bd52006-08-04 18:18:08 +000023414
John Criswell47fdd832003-07-14 16:52:07 +000023415fi
Reid Spencera773bd52006-08-04 18:18:08 +000023416
Scott Michel96dcd2b2007-12-05 21:24:02 +000023417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023418 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23420
23421 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000023422 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 +000023423 else
23424 if test "$host_cpu" = ia64; then
23425 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23426 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000023427 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 +000023428 else
23429 # Determine the default libpath from the value encoded in an empty executable.
23430 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023431/* confdefs.h. */
23432_ACEOF
23433cat confdefs.h >>conftest.$ac_ext
23434cat >>conftest.$ac_ext <<_ACEOF
23435/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023436
John Criswell47fdd832003-07-14 16:52:07 +000023437int
23438main ()
23439{
23440
23441 ;
23442 return 0;
23443}
23444_ACEOF
23445rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023446if { (ac_try="$ac_link"
23447case "(($ac_try" in
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449 *) ac_try_echo=$ac_try;;
23450esac
23451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454 grep -v '^ *+' conftest.er1 >conftest.err
23455 rm -f conftest.er1
23456 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023458 (exit $ac_status); } && {
23459 test -z "$ac_c_werror_flag" ||
23460 test ! -s conftest.err
23461 } && test -s conftest$ac_exeext &&
23462 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023463
23464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23465}'`
23466# Check for a 64-bit object if we didn't find anything.
23467if 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; }
23468}'`; fi
23469else
23470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023471sed 's/^/| /' conftest.$ac_ext >&5
23472
Reid Spencera773bd52006-08-04 18:18:08 +000023473
John Criswell47fdd832003-07-14 16:52:07 +000023474fi
Reid Spencera773bd52006-08-04 18:18:08 +000023475
Scott Michel96dcd2b2007-12-05 21:24:02 +000023476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023477 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23479
23480 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23481 # Warning - without using the other run time loading flags,
23482 # -berok will link without error, but may produce a broken library.
23483 no_undefined_flag_GCJ=' ${wl}-bernotok'
23484 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000023485 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000023486 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000023487 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023488 # This is similar to how AIX traditionally builds its shared libraries.
23489 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 +000023490 fi
23491 fi
23492 ;;
23493
23494 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023495 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 +000023496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23497 hardcode_minus_L_GCJ=yes
23498 # see comment about different semantics on the GNU ld section
23499 ld_shlibs_GCJ=no
23500 ;;
23501
Reid Spencer2706f8c2004-09-19 23:53:36 +000023502 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023503 export_dynamic_flag_spec_GCJ=-rdynamic
23504 ;;
23505
23506 cygwin* | mingw* | pw32*)
23507 # When not using gcc, we currently assume that we are using
23508 # Microsoft Visual C++.
23509 # hardcode_libdir_flag_spec is actually meaningless, as there is
23510 # no search path for DLLs.
23511 hardcode_libdir_flag_spec_GCJ=' '
23512 allow_undefined_flag_GCJ=unsupported
23513 # Tell ltmain to make .lib files, not .a files.
23514 libext=lib
23515 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023516 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023517 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000023518 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 +000023519 # The linker will automatically build a .lib file if we build a DLL.
23520 old_archive_From_new_cmds_GCJ='true'
23521 # FIXME: Should let the user specify the lib program.
23522 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000023523 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000023524 enable_shared_with_static_runtimes_GCJ=yes
23525 ;;
23526
23527 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000023528 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023529 rhapsody* | darwin1.[012])
23530 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23531 ;;
23532 *) # Darwin 1.3 on
23533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23534 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23535 else
23536 case ${MACOSX_DEPLOYMENT_TARGET} in
23537 10.[012])
23538 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23539 ;;
23540 10.*)
23541 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23542 ;;
23543 esac
23544 fi
23545 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023546 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000023547 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023548 hardcode_direct_GCJ=no
23549 hardcode_automatic_GCJ=yes
23550 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000023551 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000023552 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000023553 if test "$GCC" = yes ; then
23554 output_verbose_link_cmd='echo'
23555 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23556 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023557 # 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 +000023558 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}'
23559 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 +000023560 else
Reid Spencera773bd52006-08-04 18:18:08 +000023561 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023562 xlc*)
23563 output_verbose_link_cmd='echo'
23564 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23565 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023566 # 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 +000023567 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}'
23568 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 +000023569 ;;
23570 *)
23571 ld_shlibs_GCJ=no
23572 ;;
23573 esac
John Criswell47fdd832003-07-14 16:52:07 +000023574 fi
23575 ;;
23576
23577 dgux*)
23578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23579 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23580 hardcode_shlibpath_var_GCJ=no
23581 ;;
23582
23583 freebsd1*)
23584 ld_shlibs_GCJ=no
23585 ;;
23586
23587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23588 # support. Future versions do this automatically, but an explicit c++rt0.o
23589 # does not break anything, and helps significantly (at the cost of a little
23590 # extra space).
23591 freebsd2.2*)
23592 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23594 hardcode_direct_GCJ=yes
23595 hardcode_shlibpath_var_GCJ=no
23596 ;;
23597
23598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23599 freebsd2*)
23600 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23601 hardcode_direct_GCJ=yes
23602 hardcode_minus_L_GCJ=yes
23603 hardcode_shlibpath_var_GCJ=no
23604 ;;
23605
23606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000023607 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000023608 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23610 hardcode_direct_GCJ=yes
23611 hardcode_shlibpath_var_GCJ=no
23612 ;;
23613
23614 hpux9*)
23615 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000023616 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 +000023617 else
Reid Spencer177dbe22004-10-13 01:01:03 +000023618 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 +000023619 fi
23620 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23621 hardcode_libdir_separator_GCJ=:
23622 hardcode_direct_GCJ=yes
23623
23624 # hardcode_minus_L: Not really in the search PATH,
23625 # but as the default location of the library.
23626 hardcode_minus_L_GCJ=yes
23627 export_dynamic_flag_spec_GCJ='${wl}-E'
23628 ;;
23629
Reid Spencera773bd52006-08-04 18:18:08 +000023630 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000023631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023632 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23633 else
23634 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23635 fi
23636 if test "$with_gnu_ld" = no; then
23637 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23638 hardcode_libdir_separator_GCJ=:
23639
23640 hardcode_direct_GCJ=yes
23641 export_dynamic_flag_spec_GCJ='${wl}-E'
23642
23643 # hardcode_minus_L: Not really in the search PATH,
23644 # but as the default location of the library.
23645 hardcode_minus_L_GCJ=yes
23646 fi
23647 ;;
23648
23649 hpux11*)
23650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23651 case $host_cpu in
23652 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000023653 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023655 ia64*)
23656 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23657 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023658 *)
23659 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23660 ;;
23661 esac
23662 else
Reid Spencera773bd52006-08-04 18:18:08 +000023663 case $host_cpu in
23664 hppa*64*)
23665 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23666 ;;
23667 ia64*)
23668 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023669 ;;
23670 *)
Reid Spencera773bd52006-08-04 18:18:08 +000023671 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 +000023672 ;;
23673 esac
23674 fi
23675 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023676 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23677 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000023678
Reid Spencera773bd52006-08-04 18:18:08 +000023679 case $host_cpu in
23680 hppa*64*|ia64*)
23681 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23682 hardcode_direct_GCJ=no
23683 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023684 ;;
23685 *)
John Criswell47fdd832003-07-14 16:52:07 +000023686 hardcode_direct_GCJ=yes
23687 export_dynamic_flag_spec_GCJ='${wl}-E'
23688
23689 # hardcode_minus_L: Not really in the search PATH,
23690 # but as the default location of the library.
23691 hardcode_minus_L_GCJ=yes
23692 ;;
23693 esac
23694 fi
23695 ;;
23696
23697 irix5* | irix6* | nonstopux*)
23698 if test "$GCC" = yes; then
23699 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'
23700 else
23701 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'
23702 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23703 fi
23704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23705 hardcode_libdir_separator_GCJ=:
23706 link_all_deplibs_GCJ=yes
23707 ;;
23708
23709 netbsd*)
23710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23711 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23712 else
23713 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23714 fi
23715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23716 hardcode_direct_GCJ=yes
23717 hardcode_shlibpath_var_GCJ=no
23718 ;;
23719
23720 newsos6)
23721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23722 hardcode_direct_GCJ=yes
23723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23724 hardcode_libdir_separator_GCJ=:
23725 hardcode_shlibpath_var_GCJ=no
23726 ;;
23727
23728 openbsd*)
23729 hardcode_direct_GCJ=yes
23730 hardcode_shlibpath_var_GCJ=no
23731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23732 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023733 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 +000023734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23735 export_dynamic_flag_spec_GCJ='${wl}-E'
23736 else
23737 case $host_os in
23738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23739 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23740 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23741 ;;
23742 *)
23743 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23745 ;;
23746 esac
23747 fi
23748 ;;
23749
23750 os2*)
23751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23752 hardcode_minus_L_GCJ=yes
23753 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000023754 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 +000023755 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23756 ;;
23757
23758 osf3*)
23759 if test "$GCC" = yes; then
23760 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23761 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'
23762 else
23763 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23764 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'
23765 fi
23766 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23767 hardcode_libdir_separator_GCJ=:
23768 ;;
23769
23770 osf4* | osf5*) # as osf3* with the addition of -msym flag
23771 if test "$GCC" = yes; then
23772 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23773 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'
23774 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23775 else
23776 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23777 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 +000023778 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 +000023779 $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 +000023780
John Criswell47fdd832003-07-14 16:52:07 +000023781 # Both c and cxx compiler support -rpath directly
23782 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23783 fi
23784 hardcode_libdir_separator_GCJ=:
23785 ;;
23786
John Criswell47fdd832003-07-14 16:52:07 +000023787 solaris*)
23788 no_undefined_flag_GCJ=' -z text'
23789 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023790 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000023791 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_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 $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 +000023794 else
Reid Spencera773bd52006-08-04 18:18:08 +000023795 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000023796 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023797 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23798 $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 +000023799 fi
23800 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23801 hardcode_shlibpath_var_GCJ=no
23802 case $host_os in
23803 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023804 *)
23805 # The compiler driver will combine linker options so we
23806 # cannot just pass the convience library names through
23807 # without $wl, iff we do not link with $LD.
23808 # Luckily, gcc supports the same syntax we need for Sun Studio.
23809 # Supported since Solaris 2.6 (maybe 2.5.1?)
23810 case $wlarc in
23811 '')
23812 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23813 *)
23814 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' ;;
23815 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000023816 esac
23817 link_all_deplibs_GCJ=yes
23818 ;;
23819
23820 sunos4*)
23821 if test "x$host_vendor" = xsequent; then
23822 # Use $CC to link under sequent, because it throws in some extra .o
23823 # files that make .init and .fini sections work.
23824 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23825 else
23826 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23827 fi
23828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23829 hardcode_direct_GCJ=yes
23830 hardcode_minus_L_GCJ=yes
23831 hardcode_shlibpath_var_GCJ=no
23832 ;;
23833
23834 sysv4)
23835 case $host_vendor in
23836 sni)
23837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23838 hardcode_direct_GCJ=yes # is this really true???
23839 ;;
23840 siemens)
23841 ## LD is ld it makes a PLAMLIB
23842 ## CC just makes a GrossModule.
23843 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23844 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23845 hardcode_direct_GCJ=no
23846 ;;
23847 motorola)
23848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23849 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23850 ;;
23851 esac
23852 runpath_var='LD_RUN_PATH'
23853 hardcode_shlibpath_var_GCJ=no
23854 ;;
23855
23856 sysv4.3*)
23857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23858 hardcode_shlibpath_var_GCJ=no
23859 export_dynamic_flag_spec_GCJ='-Bexport'
23860 ;;
23861
23862 sysv4*MP*)
23863 if test -d /usr/nec; then
23864 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23865 hardcode_shlibpath_var_GCJ=no
23866 runpath_var=LD_RUN_PATH
23867 hardcode_runpath_var=yes
23868 ld_shlibs_GCJ=yes
23869 fi
23870 ;;
23871
Reid Spencera773bd52006-08-04 18:18:08 +000023872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23873 no_undefined_flag_GCJ='${wl}-z,text'
23874 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023875 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023876 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000023877
John Criswell47fdd832003-07-14 16:52:07 +000023878 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023879 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23880 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 +000023881 else
Reid Spencera773bd52006-08-04 18:18:08 +000023882 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23883 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 +000023884 fi
John Criswell47fdd832003-07-14 16:52:07 +000023885 ;;
23886
Reid Spencera773bd52006-08-04 18:18:08 +000023887 sysv5* | sco3.2v5* | sco5v6*)
23888 # Note: We can NOT use -z defs as we might desire, because we do not
23889 # link with -lc, and that would cause any symbols used from libc to
23890 # always be unresolved, which means just about no library would
23891 # ever link correctly. If we're not using GNU ld we use -z text
23892 # though, which does catch some bad symbols but isn't as heavy-handed
23893 # as -z defs.
23894 no_undefined_flag_GCJ='${wl}-z,text'
23895 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23896 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023897 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023898 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23899 hardcode_libdir_separator_GCJ=':'
23900 link_all_deplibs_GCJ=yes
23901 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000023902 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000023903
23904 if test "$GCC" = yes; then
23905 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23906 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23907 else
23908 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23910 fi
John Criswell47fdd832003-07-14 16:52:07 +000023911 ;;
23912
23913 uts4*)
23914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23916 hardcode_shlibpath_var_GCJ=no
23917 ;;
23918
23919 *)
23920 ld_shlibs_GCJ=no
23921 ;;
23922 esac
23923 fi
23924
Reid Spencera773bd52006-08-04 18:18:08 +000023925{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23926echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023927test "$ld_shlibs_GCJ" = no && can_build_shared=no
23928
John Criswell47fdd832003-07-14 16:52:07 +000023929#
23930# Do we need to explicitly link libc?
23931#
23932case "x$archive_cmds_need_lc_GCJ" in
23933x|xyes)
23934 # Assume -lc should be added
23935 archive_cmds_need_lc_GCJ=yes
23936
23937 if test "$enable_shared" = yes && test "$GCC" = yes; then
23938 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023939 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023940 # FIXME: we may have to deal with multi-command sequences.
23941 ;;
23942 '$CC '*)
23943 # Test whether the compiler implicitly links with -lc since on some
23944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23945 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023946 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23947echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023948 $rm conftest*
23949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23950
23951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23952 (eval $ac_compile) 2>&5
23953 ac_status=$?
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } 2>conftest.err; then
23956 soname=conftest
23957 lib=conftest
23958 libobjs=conftest.$ac_objext
23959 deplibs=
23960 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000023961 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000023962 compiler_flags=-v
23963 linker_flags=-v
23964 verstring=
23965 output_objdir=.
23966 libname=conftest
23967 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23968 allow_undefined_flag_GCJ=
23969 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23970 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23971 ac_status=$?
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }
23974 then
23975 archive_cmds_need_lc_GCJ=no
23976 else
23977 archive_cmds_need_lc_GCJ=yes
23978 fi
23979 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23980 else
23981 cat conftest.err 1>&5
23982 fi
23983 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023984 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23985echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023986 ;;
23987 esac
23988 fi
23989 ;;
23990esac
23991
Reid Spencera773bd52006-08-04 18:18:08 +000023992{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23993echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023994library_names_spec=
23995libname_spec='lib$name'
23996soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023997shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023998postinstall_cmds=
23999postuninstall_cmds=
24000finish_cmds=
24001finish_eval=
24002shlibpath_var=
24003shlibpath_overrides_runpath=unknown
24004version_type=none
24005dynamic_linker="$host_os ld.so"
24006sys_lib_dlsearch_path_spec="/lib /usr/lib"
24007if test "$GCC" = yes; then
24008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24009 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24010 # if the path contains ";" then we assume it to be the separator
24011 # otherwise default to the standard path separator (i.e. ":") - it is
24012 # assumed that no part of a normal pathname contains ";" but that should
24013 # okay in the real world where ";" in dirpaths is itself problematic.
24014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24015 else
24016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24017 fi
24018else
24019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24020fi
24021need_lib_prefix=unknown
24022hardcode_into_libs=no
24023
24024# when you set need_version to no, make sure it does not cause -set_version
24025# flags to be left without arguments
24026need_version=unknown
24027
24028case $host_os in
24029aix3*)
24030 version_type=linux
24031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24032 shlibpath_var=LIBPATH
24033
24034 # AIX 3 has no versioning support, so we append a major version to the name.
24035 soname_spec='${libname}${release}${shared_ext}$major'
24036 ;;
24037
24038aix4* | aix5*)
24039 version_type=linux
24040 need_lib_prefix=no
24041 need_version=no
24042 hardcode_into_libs=yes
24043 if test "$host_cpu" = ia64; then
24044 # AIX 5 supports IA64
24045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24046 shlibpath_var=LD_LIBRARY_PATH
24047 else
24048 # With GCC up to 2.95.x, collect2 would create an import file
24049 # for dependence libraries. The import file would start with
24050 # the line `#! .'. This would cause the generated library to
24051 # depend on `.', always an invalid library. This was fixed in
24052 # development snapshots of GCC prior to 3.0.
24053 case $host_os in
24054 aix4 | aix4.[01] | aix4.[01].*)
24055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24056 echo ' yes '
24057 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24058 :
24059 else
24060 can_build_shared=no
24061 fi
24062 ;;
24063 esac
24064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24065 # soname into executable. Probably we can add versioning support to
24066 # collect2, so additional links can be useful in future.
24067 if test "$aix_use_runtimelinking" = yes; then
24068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24069 # instead of lib<name>.a to let people know that these are not
24070 # typical AIX shared libraries.
24071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24072 else
24073 # We preserve .a as extension for shared libraries through AIX4.2
24074 # and later when we are not doing run time linking.
24075 library_names_spec='${libname}${release}.a $libname.a'
24076 soname_spec='${libname}${release}${shared_ext}$major'
24077 fi
24078 shlibpath_var=LIBPATH
24079 fi
24080 ;;
24081
24082amigaos*)
24083 library_names_spec='$libname.ixlibrary $libname.a'
24084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024085 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 +000024086 ;;
24087
24088beos*)
24089 library_names_spec='${libname}${shared_ext}'
24090 dynamic_linker="$host_os ld.so"
24091 shlibpath_var=LIBRARY_PATH
24092 ;;
24093
Reid Spencer2706f8c2004-09-19 23:53:36 +000024094bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024095 version_type=linux
24096 need_version=no
24097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24098 soname_spec='${libname}${release}${shared_ext}$major'
24099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24100 shlibpath_var=LD_LIBRARY_PATH
24101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24103 # the default ld.so.conf also contains /usr/contrib/lib and
24104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24105 # libtool to hard-code these into programs
24106 ;;
24107
24108cygwin* | mingw* | pw32*)
24109 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000024110 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024111 need_version=no
24112 need_lib_prefix=no
24113
24114 case $GCC,$host_os in
24115 yes,cygwin* | yes,mingw* | yes,pw32*)
24116 library_names_spec='$libname.dll.a'
24117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000024118 postinstall_cmds='base_file=`basename \${file}`~
24119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24120 dldir=$destdir/`dirname \$dlpath`~
24121 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000024122 $install_prog $dir/$dlname \$dldir/$dlname~
24123 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000024124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24125 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000024126 $rm \$dlpath'
24127 shlibpath_overrides_runpath=yes
24128
24129 case $host_os in
24130 cygwin*)
24131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24132 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 +000024133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024134 ;;
24135 mingw*)
24136 # MinGW DLLs use traditional 'lib' prefix
24137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24138 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24139 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24140 # It is most probably a Windows format PATH printed by
24141 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24142 # path with ; separators, and with drive letters. We can handle the
24143 # drive letters (cygwin fileutils understands them), so leave them,
24144 # especially as we might pass files found there to a mingw objdump,
24145 # which wouldn't understand a cygwinified path. Ahh.
24146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24147 else
24148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24149 fi
24150 ;;
24151 pw32*)
24152 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000024153 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 +000024154 ;;
24155 esac
24156 ;;
24157
24158 *)
24159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24160 ;;
24161 esac
24162 dynamic_linker='Win32 ld.exe'
24163 # FIXME: first we should search . and the directory the executable is in
24164 shlibpath_var=PATH
24165 ;;
24166
24167darwin* | rhapsody*)
24168 dynamic_linker="$host_os dyld"
24169 version_type=darwin
24170 need_lib_prefix=no
24171 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000024172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000024173 soname_spec='${libname}${release}${major}$shared_ext'
24174 shlibpath_overrides_runpath=yes
24175 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000024176 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000024177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024178 if test "$GCC" = yes; then
24179 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"`
24180 else
24181 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000024182 fi
24183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24184 ;;
24185
24186dgux*)
24187 version_type=linux
24188 need_lib_prefix=no
24189 need_version=no
24190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24191 soname_spec='${libname}${release}${shared_ext}$major'
24192 shlibpath_var=LD_LIBRARY_PATH
24193 ;;
24194
24195freebsd1*)
24196 dynamic_linker=no
24197 ;;
24198
Reid Spencer2706f8c2004-09-19 23:53:36 +000024199kfreebsd*-gnu)
24200 version_type=linux
24201 need_lib_prefix=no
24202 need_version=no
24203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24204 soname_spec='${libname}${release}${shared_ext}$major'
24205 shlibpath_var=LD_LIBRARY_PATH
24206 shlibpath_overrides_runpath=no
24207 hardcode_into_libs=yes
24208 dynamic_linker='GNU ld.so'
24209 ;;
24210
Reid Spencera773bd52006-08-04 18:18:08 +000024211freebsd* | dragonfly*)
24212 # DragonFly does not have aout. When/if they implement a new
24213 # versioning mechanism, adjust this.
24214 if test -x /usr/bin/objformat; then
24215 objformat=`/usr/bin/objformat`
24216 else
24217 case $host_os in
24218 freebsd[123]*) objformat=aout ;;
24219 *) objformat=elf ;;
24220 esac
24221 fi
John Criswell47fdd832003-07-14 16:52:07 +000024222 version_type=freebsd-$objformat
24223 case $version_type in
24224 freebsd-elf*)
24225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24226 need_version=no
24227 need_lib_prefix=no
24228 ;;
24229 freebsd-*)
24230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24231 need_version=yes
24232 ;;
24233 esac
24234 shlibpath_var=LD_LIBRARY_PATH
24235 case $host_os in
24236 freebsd2*)
24237 shlibpath_overrides_runpath=yes
24238 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024239 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000024240 shlibpath_overrides_runpath=yes
24241 hardcode_into_libs=yes
24242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000024245 shlibpath_overrides_runpath=no
24246 hardcode_into_libs=yes
24247 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024248 freebsd*) # from 4.6 on
24249 shlibpath_overrides_runpath=yes
24250 hardcode_into_libs=yes
24251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024252 esac
24253 ;;
24254
24255gnu*)
24256 version_type=linux
24257 need_lib_prefix=no
24258 need_version=no
24259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24260 soname_spec='${libname}${release}${shared_ext}$major'
24261 shlibpath_var=LD_LIBRARY_PATH
24262 hardcode_into_libs=yes
24263 ;;
24264
24265hpux9* | hpux10* | hpux11*)
24266 # Give a soname corresponding to the major version so that dld.sl refuses to
24267 # link against other versions.
24268 version_type=sunos
24269 need_lib_prefix=no
24270 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000024271 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024272 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024273 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000024274 hardcode_into_libs=yes
24275 dynamic_linker="$host_os dld.so"
24276 shlibpath_var=LD_LIBRARY_PATH
24277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24279 soname_spec='${libname}${release}${shared_ext}$major'
24280 if test "X$HPUX_IA64_MODE" = X32; then
24281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24282 else
24283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24284 fi
24285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24286 ;;
24287 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024288 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024289 hardcode_into_libs=yes
24290 dynamic_linker="$host_os dld.sl"
24291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24294 soname_spec='${libname}${release}${shared_ext}$major'
24295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24297 ;;
24298 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024299 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024300 dynamic_linker="$host_os dld.sl"
24301 shlibpath_var=SHLIB_PATH
24302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24304 soname_spec='${libname}${release}${shared_ext}$major'
24305 ;;
24306 esac
24307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24308 postinstall_cmds='chmod 555 $lib'
24309 ;;
24310
Reid Spencera773bd52006-08-04 18:18:08 +000024311interix3*)
24312 version_type=linux
24313 need_lib_prefix=no
24314 need_version=no
24315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24316 soname_spec='${libname}${release}${shared_ext}$major'
24317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24318 shlibpath_var=LD_LIBRARY_PATH
24319 shlibpath_overrides_runpath=no
24320 hardcode_into_libs=yes
24321 ;;
24322
John Criswell47fdd832003-07-14 16:52:07 +000024323irix5* | irix6* | nonstopux*)
24324 case $host_os in
24325 nonstopux*) version_type=nonstopux ;;
24326 *)
24327 if test "$lt_cv_prog_gnu_ld" = yes; then
24328 version_type=linux
24329 else
24330 version_type=irix
24331 fi ;;
24332 esac
24333 need_lib_prefix=no
24334 need_version=no
24335 soname_spec='${libname}${release}${shared_ext}$major'
24336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24337 case $host_os in
24338 irix5* | nonstopux*)
24339 libsuff= shlibsuff=
24340 ;;
24341 *)
24342 case $LD in # libtool.m4 will add one of these switches to LD
24343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24344 libsuff= shlibsuff= libmagic=32-bit;;
24345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24346 libsuff=32 shlibsuff=N32 libmagic=N32;;
24347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24349 *) libsuff= shlibsuff= libmagic=never-match;;
24350 esac
24351 ;;
24352 esac
24353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24354 shlibpath_overrides_runpath=no
24355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24357 hardcode_into_libs=yes
24358 ;;
24359
24360# No shared lib support for Linux oldld, aout, or coff.
24361linux*oldld* | linux*aout* | linux*coff*)
24362 dynamic_linker=no
24363 ;;
24364
24365# This must be Linux ELF.
24366linux*)
24367 version_type=linux
24368 need_lib_prefix=no
24369 need_version=no
24370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24371 soname_spec='${libname}${release}${shared_ext}$major'
24372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24373 shlibpath_var=LD_LIBRARY_PATH
24374 shlibpath_overrides_runpath=no
24375 # This implies no fast_install, which is unacceptable.
24376 # Some rework will be needed to allow for fast_install
24377 # before this can be enabled.
24378 hardcode_into_libs=yes
24379
Reid Spencer2706f8c2004-09-19 23:53:36 +000024380 # Append ld.so.conf contents to the search path
24381 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000024382 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 +000024383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24384 fi
24385
John Criswell47fdd832003-07-14 16:52:07 +000024386 # We used to test for /lib/ld.so.1 and disable shared libraries on
24387 # powerpc, because MkLinux only supported shared libraries with the
24388 # GNU dynamic linker. Since this was broken with cross compilers,
24389 # most powerpc-linux boxes support dynamic linking these days and
24390 # people can always --disable-shared, the test was removed, and we
24391 # assume the GNU/Linux dynamic linker is in use.
24392 dynamic_linker='GNU/Linux ld.so'
24393 ;;
24394
Reid Spencer2706f8c2004-09-19 23:53:36 +000024395knetbsd*-gnu)
24396 version_type=linux
24397 need_lib_prefix=no
24398 need_version=no
24399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24400 soname_spec='${libname}${release}${shared_ext}$major'
24401 shlibpath_var=LD_LIBRARY_PATH
24402 shlibpath_overrides_runpath=no
24403 hardcode_into_libs=yes
24404 dynamic_linker='GNU ld.so'
24405 ;;
24406
John Criswell47fdd832003-07-14 16:52:07 +000024407netbsd*)
24408 version_type=sunos
24409 need_lib_prefix=no
24410 need_version=no
24411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24414 dynamic_linker='NetBSD (a.out) ld.so'
24415 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024417 soname_spec='${libname}${release}${shared_ext}$major'
24418 dynamic_linker='NetBSD ld.elf_so'
24419 fi
24420 shlibpath_var=LD_LIBRARY_PATH
24421 shlibpath_overrides_runpath=yes
24422 hardcode_into_libs=yes
24423 ;;
24424
24425newsos6)
24426 version_type=linux
24427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24428 shlibpath_var=LD_LIBRARY_PATH
24429 shlibpath_overrides_runpath=yes
24430 ;;
24431
Reid Spencer2706f8c2004-09-19 23:53:36 +000024432nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000024433 version_type=linux
24434 need_lib_prefix=no
24435 need_version=no
24436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24437 soname_spec='${libname}${release}${shared_ext}$major'
24438 shlibpath_var=LD_LIBRARY_PATH
24439 shlibpath_overrides_runpath=yes
24440 ;;
24441
24442openbsd*)
24443 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000024444 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024445 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000024446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24447 case $host_os in
24448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24449 *) need_version=no ;;
24450 esac
John Criswell47fdd832003-07-14 16:52:07 +000024451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24453 shlibpath_var=LD_LIBRARY_PATH
24454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24455 case $host_os in
24456 openbsd2.[89] | openbsd2.[89].*)
24457 shlibpath_overrides_runpath=no
24458 ;;
24459 *)
24460 shlibpath_overrides_runpath=yes
24461 ;;
24462 esac
24463 else
24464 shlibpath_overrides_runpath=yes
24465 fi
24466 ;;
24467
24468os2*)
24469 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024470 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024471 need_lib_prefix=no
24472 library_names_spec='$libname${shared_ext} $libname.a'
24473 dynamic_linker='OS/2 ld.exe'
24474 shlibpath_var=LIBPATH
24475 ;;
24476
24477osf3* | osf4* | osf5*)
24478 version_type=osf
24479 need_lib_prefix=no
24480 need_version=no
24481 soname_spec='${libname}${release}${shared_ext}$major'
24482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24483 shlibpath_var=LD_LIBRARY_PATH
24484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24486 ;;
24487
John Criswell47fdd832003-07-14 16:52:07 +000024488solaris*)
24489 version_type=linux
24490 need_lib_prefix=no
24491 need_version=no
24492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24493 soname_spec='${libname}${release}${shared_ext}$major'
24494 shlibpath_var=LD_LIBRARY_PATH
24495 shlibpath_overrides_runpath=yes
24496 hardcode_into_libs=yes
24497 # ldd complains unless libraries are executable
24498 postinstall_cmds='chmod +x $lib'
24499 ;;
24500
24501sunos4*)
24502 version_type=sunos
24503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24505 shlibpath_var=LD_LIBRARY_PATH
24506 shlibpath_overrides_runpath=yes
24507 if test "$with_gnu_ld" = yes; then
24508 need_lib_prefix=no
24509 fi
24510 need_version=yes
24511 ;;
24512
Reid Spencera773bd52006-08-04 18:18:08 +000024513sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024514 version_type=linux
24515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24516 soname_spec='${libname}${release}${shared_ext}$major'
24517 shlibpath_var=LD_LIBRARY_PATH
24518 case $host_vendor in
24519 sni)
24520 shlibpath_overrides_runpath=no
24521 need_lib_prefix=no
24522 export_dynamic_flag_spec='${wl}-Blargedynsym'
24523 runpath_var=LD_RUN_PATH
24524 ;;
24525 siemens)
24526 need_lib_prefix=no
24527 ;;
24528 motorola)
24529 need_lib_prefix=no
24530 need_version=no
24531 shlibpath_overrides_runpath=no
24532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24533 ;;
24534 esac
24535 ;;
24536
24537sysv4*MP*)
24538 if test -d /usr/nec ;then
24539 version_type=linux
24540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24541 soname_spec='$libname${shared_ext}.$major'
24542 shlibpath_var=LD_LIBRARY_PATH
24543 fi
24544 ;;
24545
Reid Spencera773bd52006-08-04 18:18:08 +000024546sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24547 version_type=freebsd-elf
24548 need_lib_prefix=no
24549 need_version=no
24550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24551 soname_spec='${libname}${release}${shared_ext}$major'
24552 shlibpath_var=LD_LIBRARY_PATH
24553 hardcode_into_libs=yes
24554 if test "$with_gnu_ld" = yes; then
24555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24556 shlibpath_overrides_runpath=no
24557 else
24558 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24559 shlibpath_overrides_runpath=yes
24560 case $host_os in
24561 sco3.2v5*)
24562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24563 ;;
24564 esac
24565 fi
24566 sys_lib_dlsearch_path_spec='/usr/lib'
24567 ;;
24568
John Criswell47fdd832003-07-14 16:52:07 +000024569uts4*)
24570 version_type=linux
24571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24572 soname_spec='${libname}${release}${shared_ext}$major'
24573 shlibpath_var=LD_LIBRARY_PATH
24574 ;;
24575
24576*)
24577 dynamic_linker=no
24578 ;;
24579esac
Reid Spencera773bd52006-08-04 18:18:08 +000024580{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24581echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024582test "$dynamic_linker" = no && can_build_shared=no
24583
Reid Spencera773bd52006-08-04 18:18:08 +000024584variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24585if test "$GCC" = yes; then
24586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24587fi
24588
24589{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24590echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024591hardcode_action_GCJ=
24592if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24593 test -n "$runpath_var_GCJ" || \
24594 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24595
24596 # We can hardcode non-existant directories.
24597 if test "$hardcode_direct_GCJ" != no &&
24598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24599 # have to relink, otherwise we might link with an installed library
24600 # when we should be linking with a yet-to-be-installed one
24601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24602 test "$hardcode_minus_L_GCJ" != no; then
24603 # Linking always hardcodes the temporary library directory.
24604 hardcode_action_GCJ=relink
24605 else
24606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24607 hardcode_action_GCJ=immediate
24608 fi
24609else
24610 # We cannot hardcode anything, or else we can only hardcode existing
24611 # directories.
24612 hardcode_action_GCJ=unsupported
24613fi
Reid Spencera773bd52006-08-04 18:18:08 +000024614{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24615echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024616
24617if test "$hardcode_action_GCJ" = relink; then
24618 # Fast installation is not supported
24619 enable_fast_install=no
24620elif test "$shlibpath_overrides_runpath" = yes ||
24621 test "$enable_shared" = no; then
24622 # Fast installation is not necessary
24623 enable_fast_install=needless
24624fi
24625
John Criswell47fdd832003-07-14 16:52:07 +000024626
24627# The else clause should only fire when bootstrapping the
24628# libtool distribution, otherwise you forgot to ship ltmain.sh
24629# with your package, and you will get complaints that there are
24630# no rules to generate ltmain.sh.
24631if test -f "$ltmain"; then
24632 # See if we are running on zsh, and set the options which allow our commands through
24633 # without removal of \ escapes.
24634 if test -n "${ZSH_VERSION+set}" ; then
24635 setopt NO_GLOB_SUBST
24636 fi
24637 # Now quote all the things that may contain metacharacters while being
24638 # careful not to overquote the AC_SUBSTed values. We take copies of the
24639 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000024640 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 +000024641 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24644 deplibs_check_method reload_flag reload_cmds need_locks \
24645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24646 lt_cv_sys_global_symbol_to_c_name_address \
24647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24648 old_postinstall_cmds old_postuninstall_cmds \
24649 compiler_GCJ \
24650 CC_GCJ \
24651 LD_GCJ \
24652 lt_prog_compiler_wl_GCJ \
24653 lt_prog_compiler_pic_GCJ \
24654 lt_prog_compiler_static_GCJ \
24655 lt_prog_compiler_no_builtin_flag_GCJ \
24656 export_dynamic_flag_spec_GCJ \
24657 thread_safe_flag_spec_GCJ \
24658 whole_archive_flag_spec_GCJ \
24659 enable_shared_with_static_runtimes_GCJ \
24660 old_archive_cmds_GCJ \
24661 old_archive_from_new_cmds_GCJ \
24662 predep_objects_GCJ \
24663 postdep_objects_GCJ \
24664 predeps_GCJ \
24665 postdeps_GCJ \
24666 compiler_lib_search_path_GCJ \
24667 archive_cmds_GCJ \
24668 archive_expsym_cmds_GCJ \
24669 postinstall_cmds_GCJ \
24670 postuninstall_cmds_GCJ \
24671 old_archive_from_expsyms_cmds_GCJ \
24672 allow_undefined_flag_GCJ \
24673 no_undefined_flag_GCJ \
24674 export_symbols_cmds_GCJ \
24675 hardcode_libdir_flag_spec_GCJ \
24676 hardcode_libdir_flag_spec_ld_GCJ \
24677 hardcode_libdir_separator_GCJ \
24678 hardcode_automatic_GCJ \
24679 module_cmds_GCJ \
24680 module_expsym_cmds_GCJ \
24681 lt_cv_prog_compiler_c_o_GCJ \
24682 exclude_expsyms_GCJ \
24683 include_expsyms_GCJ; do
24684
24685 case $var in
24686 old_archive_cmds_GCJ | \
24687 old_archive_from_new_cmds_GCJ | \
24688 archive_cmds_GCJ | \
24689 archive_expsym_cmds_GCJ | \
24690 module_cmds_GCJ | \
24691 module_expsym_cmds_GCJ | \
24692 old_archive_from_expsyms_cmds_GCJ | \
24693 export_symbols_cmds_GCJ | \
24694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24695 postinstall_cmds | postuninstall_cmds | \
24696 old_postinstall_cmds | old_postuninstall_cmds | \
24697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24698 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024699 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 +000024700 ;;
24701 *)
24702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24703 ;;
24704 esac
24705 done
24706
24707 case $lt_echo in
24708 *'\$0 --fallback-echo"')
24709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24710 ;;
24711 esac
24712
24713cfgfile="$ofile"
24714
24715 cat <<__EOF__ >> "$cfgfile"
24716# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24717
24718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24719
24720# Shell to use when invoking shell scripts.
24721SHELL=$lt_SHELL
24722
24723# Whether or not to build shared libraries.
24724build_libtool_libs=$enable_shared
24725
24726# Whether or not to build static libraries.
24727build_old_libs=$enable_static
24728
24729# Whether or not to add -lc for building shared libraries.
24730build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24731
24732# Whether or not to disallow shared libs when runtime libs are static
24733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24734
24735# Whether or not to optimize for fast installation.
24736fast_install=$enable_fast_install
24737
24738# The host system.
24739host_alias=$host_alias
24740host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000024741host_os=$host_os
24742
24743# The build system.
24744build_alias=$build_alias
24745build=$build
24746build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000024747
24748# An echo program that does not interpret backslashes.
24749echo=$lt_echo
24750
24751# The archiver.
24752AR=$lt_AR
24753AR_FLAGS=$lt_AR_FLAGS
24754
24755# A C compiler.
24756LTCC=$lt_LTCC
24757
Reid Spencera773bd52006-08-04 18:18:08 +000024758# LTCC compiler flags.
24759LTCFLAGS=$lt_LTCFLAGS
24760
John Criswell47fdd832003-07-14 16:52:07 +000024761# A language-specific compiler.
24762CC=$lt_compiler_GCJ
24763
24764# Is the compiler the GNU C compiler?
24765with_gcc=$GCC_GCJ
24766
24767# An ERE matcher.
24768EGREP=$lt_EGREP
24769
24770# The linker used to build libraries.
24771LD=$lt_LD_GCJ
24772
24773# Whether we need hard or soft links.
24774LN_S=$lt_LN_S
24775
24776# A BSD-compatible nm program.
24777NM=$lt_NM
24778
24779# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024780STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024781
24782# Used to examine libraries when file_magic_cmd begins "file"
24783MAGIC_CMD=$MAGIC_CMD
24784
24785# Used on cygwin: DLL creation program.
24786DLLTOOL="$DLLTOOL"
24787
24788# Used on cygwin: object dumper.
24789OBJDUMP="$OBJDUMP"
24790
24791# Used on cygwin: assembler.
24792AS="$AS"
24793
24794# The name of the directory that contains temporary libtool files.
24795objdir=$objdir
24796
24797# How to create reloadable object files.
24798reload_flag=$lt_reload_flag
24799reload_cmds=$lt_reload_cmds
24800
24801# How to pass a linker flag through the compiler.
24802wl=$lt_lt_prog_compiler_wl_GCJ
24803
24804# Object file suffix (normally "o").
24805objext="$ac_objext"
24806
24807# Old archive suffix (normally "a").
24808libext="$libext"
24809
24810# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024811shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024812
24813# Executable file suffix (normally "").
24814exeext="$exeext"
24815
24816# Additional compiler flags for building library objects.
24817pic_flag=$lt_lt_prog_compiler_pic_GCJ
24818pic_mode=$pic_mode
24819
24820# What is the maximum length of a command?
24821max_cmd_len=$lt_cv_sys_max_cmd_len
24822
24823# Does compiler simultaneously support -c and -o options?
24824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24825
Reid Spencera773bd52006-08-04 18:18:08 +000024826# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000024827need_locks=$lt_need_locks
24828
24829# Do we need the lib prefix for modules?
24830need_lib_prefix=$need_lib_prefix
24831
24832# Do we need a version for libraries?
24833need_version=$need_version
24834
24835# Whether dlopen is supported.
24836dlopen_support=$enable_dlopen
24837
24838# Whether dlopen of programs is supported.
24839dlopen_self=$enable_dlopen_self
24840
24841# Whether dlopen of statically linked programs is supported.
24842dlopen_self_static=$enable_dlopen_self_static
24843
24844# Compiler flag to prevent dynamic linking.
24845link_static_flag=$lt_lt_prog_compiler_static_GCJ
24846
24847# Compiler flag to turn off builtin functions.
24848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24849
24850# Compiler flag to allow reflexive dlopens.
24851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24852
24853# Compiler flag to generate shared objects directly from archives.
24854whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24855
24856# Compiler flag to generate thread-safe objects.
24857thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24858
24859# Library versioning type.
24860version_type=$version_type
24861
24862# Format of library name prefix.
24863libname_spec=$lt_libname_spec
24864
24865# List of archive names. First name is the real one, the rest are links.
24866# The last name is the one that the linker finds with -lNAME.
24867library_names_spec=$lt_library_names_spec
24868
24869# The coded name of the library, if different from the real name.
24870soname_spec=$lt_soname_spec
24871
24872# Commands used to build and install an old-style archive.
24873RANLIB=$lt_RANLIB
24874old_archive_cmds=$lt_old_archive_cmds_GCJ
24875old_postinstall_cmds=$lt_old_postinstall_cmds
24876old_postuninstall_cmds=$lt_old_postuninstall_cmds
24877
24878# Create an old-style archive from a shared archive.
24879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24880
24881# Create a temporary old-style archive to link instead of a shared archive.
24882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24883
24884# Commands used to build and install a shared archive.
24885archive_cmds=$lt_archive_cmds_GCJ
24886archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24887postinstall_cmds=$lt_postinstall_cmds
24888postuninstall_cmds=$lt_postuninstall_cmds
24889
24890# Commands used to build a loadable module (assumed same as above if empty)
24891module_cmds=$lt_module_cmds_GCJ
24892module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24893
24894# Commands to strip libraries.
24895old_striplib=$lt_old_striplib
24896striplib=$lt_striplib
24897
24898# Dependencies to place before the objects being linked to create a
24899# shared library.
24900predep_objects=$lt_predep_objects_GCJ
24901
24902# Dependencies to place after the objects being linked to create a
24903# shared library.
24904postdep_objects=$lt_postdep_objects_GCJ
24905
24906# Dependencies to place before the objects being linked to create a
24907# shared library.
24908predeps=$lt_predeps_GCJ
24909
24910# Dependencies to place after the objects being linked to create a
24911# shared library.
24912postdeps=$lt_postdeps_GCJ
24913
24914# The library search path used internally by the compiler when linking
24915# a shared library.
24916compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24917
24918# Method to check whether dependent libraries are shared objects.
24919deplibs_check_method=$lt_deplibs_check_method
24920
24921# Command to use when deplibs_check_method == file_magic.
24922file_magic_cmd=$lt_file_magic_cmd
24923
24924# Flag that allows shared libraries with undefined symbols to be built.
24925allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24926
24927# Flag that forces no undefined symbols.
24928no_undefined_flag=$lt_no_undefined_flag_GCJ
24929
24930# Commands used to finish a libtool library installation in a directory.
24931finish_cmds=$lt_finish_cmds
24932
24933# Same as above, but a single script fragment to be evaled but not shown.
24934finish_eval=$lt_finish_eval
24935
24936# Take the output of nm and produce a listing of raw symbols and C names.
24937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24938
24939# Transform the output of nm in a proper C declaration
24940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24941
24942# Transform the output of nm in a C name address pair
24943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24944
24945# This is the shared library runtime path variable.
24946runpath_var=$runpath_var
24947
24948# This is the shared library path variable.
24949shlibpath_var=$shlibpath_var
24950
24951# Is shlibpath searched before the hard-coded library search path?
24952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24953
24954# How to hardcode a shared library path into an executable.
24955hardcode_action=$hardcode_action_GCJ
24956
24957# Whether we should hardcode library paths into libraries.
24958hardcode_into_libs=$hardcode_into_libs
24959
24960# Flag to hardcode \$libdir into a binary during linking.
24961# This must work even if \$libdir does not exist.
24962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24963
24964# If ld is used when linking, flag to hardcode \$libdir into
24965# a binary during linking. This must work even if \$libdir does
24966# not exist.
24967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24968
24969# Whether we need a single -rpath flag with a separated argument.
24970hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24971
24972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24973# resulting binary.
24974hardcode_direct=$hardcode_direct_GCJ
24975
24976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24977# resulting binary.
24978hardcode_minus_L=$hardcode_minus_L_GCJ
24979
24980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24981# the resulting binary.
24982hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24983
24984# Set to yes if building a shared library automatically hardcodes DIR into the library
24985# and all subsequent libraries and executables linked against it.
24986hardcode_automatic=$hardcode_automatic_GCJ
24987
24988# Variables whose values should be saved in libtool wrapper scripts and
24989# restored at relink time.
24990variables_saved_for_relink="$variables_saved_for_relink"
24991
24992# Whether libtool must link a program against all its dependency libraries.
24993link_all_deplibs=$link_all_deplibs_GCJ
24994
24995# Compile-time system search path for libraries
24996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24997
24998# Run-time system search path for libraries
24999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25000
25001# Fix the shell variable \$srcfile for the compiler.
25002fix_srcfile_path="$fix_srcfile_path_GCJ"
25003
25004# Set to yes if exported symbols are required.
25005always_export_symbols=$always_export_symbols_GCJ
25006
25007# The commands to list exported symbols.
25008export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25009
25010# The commands to extract the exported symbol list from a shared archive.
25011extract_expsyms_cmds=$lt_extract_expsyms_cmds
25012
25013# Symbols that should not be listed in the preloaded symbols.
25014exclude_expsyms=$lt_exclude_expsyms_GCJ
25015
25016# Symbols that must always be exported.
25017include_expsyms=$lt_include_expsyms_GCJ
25018
25019# ### END LIBTOOL TAG CONFIG: $tagname
25020
25021__EOF__
25022
25023
25024else
25025 # If there is no Makefile yet, we rely on a make rule to execute
25026 # `config.status --recheck' to rerun these tests and create the
25027 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25029 if test -f "$ltmain_in"; then
25030 test -f Makefile && make "$ltmain"
25031 fi
John Criswell47fdd832003-07-14 16:52:07 +000025032fi
25033
25034
25035ac_ext=c
25036ac_cpp='$CPP $CPPFLAGS'
25037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25039ac_compiler_gnu=$ac_cv_c_compiler_gnu
25040
25041CC="$lt_save_CC"
25042
25043 else
25044 tagname=""
25045 fi
25046 ;;
25047
25048 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025049 ac_ext=c
25050ac_cpp='$CPP $CPPFLAGS'
25051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25053ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025054
25055
25056# Source file extension for RC test sources.
25057ac_ext=rc
25058
25059# Object file extension for compiled RC test sources.
25060objext=o
25061objext_RC=$objext
25062
25063# Code to be used in simple compile tests
25064lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25065
25066# Code to be used in simple link tests
25067lt_simple_link_test_code="$lt_simple_compile_test_code"
25068
25069# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25070
25071# If no C compiler was specified, use CC.
25072LTCC=${LTCC-"$CC"}
25073
Reid Spencera773bd52006-08-04 18:18:08 +000025074# If no C compiler flags were specified, use CFLAGS.
25075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25076
John Criswell47fdd832003-07-14 16:52:07 +000025077# Allow CC to be a program name with arguments.
25078compiler=$CC
25079
25080
Reid Spencera773bd52006-08-04 18:18:08 +000025081# save warnings/boilerplate of simple test code
25082ac_outfile=conftest.$ac_objext
25083printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25085_lt_compiler_boilerplate=`cat conftest.err`
25086$rm conftest*
25087
25088ac_outfile=conftest.$ac_objext
25089printf "$lt_simple_link_test_code" >conftest.$ac_ext
25090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25091_lt_linker_boilerplate=`cat conftest.err`
25092$rm conftest*
25093
25094
John Criswell47fdd832003-07-14 16:52:07 +000025095# Allow CC to be a program name with arguments.
25096lt_save_CC="$CC"
25097CC=${RC-"windres"}
25098compiler=$CC
25099compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000025100for cc_temp in $compiler""; do
25101 case $cc_temp in
25102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25104 \-*) ;;
25105 *) break;;
25106 esac
25107done
25108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25109
John Criswell47fdd832003-07-14 16:52:07 +000025110lt_cv_prog_compiler_c_o_RC=yes
25111
25112# The else clause should only fire when bootstrapping the
25113# libtool distribution, otherwise you forgot to ship ltmain.sh
25114# with your package, and you will get complaints that there are
25115# no rules to generate ltmain.sh.
25116if test -f "$ltmain"; then
25117 # See if we are running on zsh, and set the options which allow our commands through
25118 # without removal of \ escapes.
25119 if test -n "${ZSH_VERSION+set}" ; then
25120 setopt NO_GLOB_SUBST
25121 fi
25122 # Now quote all the things that may contain metacharacters while being
25123 # careful not to overquote the AC_SUBSTed values. We take copies of the
25124 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025125 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 +000025126 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025127 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25128 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25129 deplibs_check_method reload_flag reload_cmds need_locks \
25130 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25131 lt_cv_sys_global_symbol_to_c_name_address \
25132 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25133 old_postinstall_cmds old_postuninstall_cmds \
25134 compiler_RC \
25135 CC_RC \
25136 LD_RC \
25137 lt_prog_compiler_wl_RC \
25138 lt_prog_compiler_pic_RC \
25139 lt_prog_compiler_static_RC \
25140 lt_prog_compiler_no_builtin_flag_RC \
25141 export_dynamic_flag_spec_RC \
25142 thread_safe_flag_spec_RC \
25143 whole_archive_flag_spec_RC \
25144 enable_shared_with_static_runtimes_RC \
25145 old_archive_cmds_RC \
25146 old_archive_from_new_cmds_RC \
25147 predep_objects_RC \
25148 postdep_objects_RC \
25149 predeps_RC \
25150 postdeps_RC \
25151 compiler_lib_search_path_RC \
25152 archive_cmds_RC \
25153 archive_expsym_cmds_RC \
25154 postinstall_cmds_RC \
25155 postuninstall_cmds_RC \
25156 old_archive_from_expsyms_cmds_RC \
25157 allow_undefined_flag_RC \
25158 no_undefined_flag_RC \
25159 export_symbols_cmds_RC \
25160 hardcode_libdir_flag_spec_RC \
25161 hardcode_libdir_flag_spec_ld_RC \
25162 hardcode_libdir_separator_RC \
25163 hardcode_automatic_RC \
25164 module_cmds_RC \
25165 module_expsym_cmds_RC \
25166 lt_cv_prog_compiler_c_o_RC \
25167 exclude_expsyms_RC \
25168 include_expsyms_RC; do
25169
25170 case $var in
25171 old_archive_cmds_RC | \
25172 old_archive_from_new_cmds_RC | \
25173 archive_cmds_RC | \
25174 archive_expsym_cmds_RC | \
25175 module_cmds_RC | \
25176 module_expsym_cmds_RC | \
25177 old_archive_from_expsyms_cmds_RC | \
25178 export_symbols_cmds_RC | \
25179 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25180 postinstall_cmds | postuninstall_cmds | \
25181 old_postinstall_cmds | old_postuninstall_cmds | \
25182 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25183 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025184 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 +000025185 ;;
25186 *)
25187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25188 ;;
25189 esac
25190 done
25191
25192 case $lt_echo in
25193 *'\$0 --fallback-echo"')
25194 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25195 ;;
25196 esac
25197
25198cfgfile="$ofile"
25199
25200 cat <<__EOF__ >> "$cfgfile"
25201# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25202
25203# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25204
25205# Shell to use when invoking shell scripts.
25206SHELL=$lt_SHELL
25207
25208# Whether or not to build shared libraries.
25209build_libtool_libs=$enable_shared
25210
25211# Whether or not to build static libraries.
25212build_old_libs=$enable_static
25213
25214# Whether or not to add -lc for building shared libraries.
25215build_libtool_need_lc=$archive_cmds_need_lc_RC
25216
25217# Whether or not to disallow shared libs when runtime libs are static
25218allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25219
25220# Whether or not to optimize for fast installation.
25221fast_install=$enable_fast_install
25222
25223# The host system.
25224host_alias=$host_alias
25225host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025226host_os=$host_os
25227
25228# The build system.
25229build_alias=$build_alias
25230build=$build
25231build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025232
25233# An echo program that does not interpret backslashes.
25234echo=$lt_echo
25235
25236# The archiver.
25237AR=$lt_AR
25238AR_FLAGS=$lt_AR_FLAGS
25239
25240# A C compiler.
25241LTCC=$lt_LTCC
25242
Reid Spencera773bd52006-08-04 18:18:08 +000025243# LTCC compiler flags.
25244LTCFLAGS=$lt_LTCFLAGS
25245
John Criswell47fdd832003-07-14 16:52:07 +000025246# A language-specific compiler.
25247CC=$lt_compiler_RC
25248
25249# Is the compiler the GNU C compiler?
25250with_gcc=$GCC_RC
25251
25252# An ERE matcher.
25253EGREP=$lt_EGREP
25254
25255# The linker used to build libraries.
25256LD=$lt_LD_RC
25257
25258# Whether we need hard or soft links.
25259LN_S=$lt_LN_S
25260
25261# A BSD-compatible nm program.
25262NM=$lt_NM
25263
25264# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025265STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025266
25267# Used to examine libraries when file_magic_cmd begins "file"
25268MAGIC_CMD=$MAGIC_CMD
25269
25270# Used on cygwin: DLL creation program.
25271DLLTOOL="$DLLTOOL"
25272
25273# Used on cygwin: object dumper.
25274OBJDUMP="$OBJDUMP"
25275
25276# Used on cygwin: assembler.
25277AS="$AS"
25278
25279# The name of the directory that contains temporary libtool files.
25280objdir=$objdir
25281
25282# How to create reloadable object files.
25283reload_flag=$lt_reload_flag
25284reload_cmds=$lt_reload_cmds
25285
25286# How to pass a linker flag through the compiler.
25287wl=$lt_lt_prog_compiler_wl_RC
25288
25289# Object file suffix (normally "o").
25290objext="$ac_objext"
25291
25292# Old archive suffix (normally "a").
25293libext="$libext"
25294
25295# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025296shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025297
25298# Executable file suffix (normally "").
25299exeext="$exeext"
25300
25301# Additional compiler flags for building library objects.
25302pic_flag=$lt_lt_prog_compiler_pic_RC
25303pic_mode=$pic_mode
25304
25305# What is the maximum length of a command?
25306max_cmd_len=$lt_cv_sys_max_cmd_len
25307
25308# Does compiler simultaneously support -c and -o options?
25309compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25310
Reid Spencera773bd52006-08-04 18:18:08 +000025311# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025312need_locks=$lt_need_locks
25313
25314# Do we need the lib prefix for modules?
25315need_lib_prefix=$need_lib_prefix
25316
25317# Do we need a version for libraries?
25318need_version=$need_version
25319
25320# Whether dlopen is supported.
25321dlopen_support=$enable_dlopen
25322
25323# Whether dlopen of programs is supported.
25324dlopen_self=$enable_dlopen_self
25325
25326# Whether dlopen of statically linked programs is supported.
25327dlopen_self_static=$enable_dlopen_self_static
25328
25329# Compiler flag to prevent dynamic linking.
25330link_static_flag=$lt_lt_prog_compiler_static_RC
25331
25332# Compiler flag to turn off builtin functions.
25333no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25334
25335# Compiler flag to allow reflexive dlopens.
25336export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25337
25338# Compiler flag to generate shared objects directly from archives.
25339whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25340
25341# Compiler flag to generate thread-safe objects.
25342thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25343
25344# Library versioning type.
25345version_type=$version_type
25346
25347# Format of library name prefix.
25348libname_spec=$lt_libname_spec
25349
25350# List of archive names. First name is the real one, the rest are links.
25351# The last name is the one that the linker finds with -lNAME.
25352library_names_spec=$lt_library_names_spec
25353
25354# The coded name of the library, if different from the real name.
25355soname_spec=$lt_soname_spec
25356
25357# Commands used to build and install an old-style archive.
25358RANLIB=$lt_RANLIB
25359old_archive_cmds=$lt_old_archive_cmds_RC
25360old_postinstall_cmds=$lt_old_postinstall_cmds
25361old_postuninstall_cmds=$lt_old_postuninstall_cmds
25362
25363# Create an old-style archive from a shared archive.
25364old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25365
25366# Create a temporary old-style archive to link instead of a shared archive.
25367old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25368
25369# Commands used to build and install a shared archive.
25370archive_cmds=$lt_archive_cmds_RC
25371archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25372postinstall_cmds=$lt_postinstall_cmds
25373postuninstall_cmds=$lt_postuninstall_cmds
25374
25375# Commands used to build a loadable module (assumed same as above if empty)
25376module_cmds=$lt_module_cmds_RC
25377module_expsym_cmds=$lt_module_expsym_cmds_RC
25378
25379# Commands to strip libraries.
25380old_striplib=$lt_old_striplib
25381striplib=$lt_striplib
25382
25383# Dependencies to place before the objects being linked to create a
25384# shared library.
25385predep_objects=$lt_predep_objects_RC
25386
25387# Dependencies to place after the objects being linked to create a
25388# shared library.
25389postdep_objects=$lt_postdep_objects_RC
25390
25391# Dependencies to place before the objects being linked to create a
25392# shared library.
25393predeps=$lt_predeps_RC
25394
25395# Dependencies to place after the objects being linked to create a
25396# shared library.
25397postdeps=$lt_postdeps_RC
25398
25399# The library search path used internally by the compiler when linking
25400# a shared library.
25401compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25402
25403# Method to check whether dependent libraries are shared objects.
25404deplibs_check_method=$lt_deplibs_check_method
25405
25406# Command to use when deplibs_check_method == file_magic.
25407file_magic_cmd=$lt_file_magic_cmd
25408
25409# Flag that allows shared libraries with undefined symbols to be built.
25410allow_undefined_flag=$lt_allow_undefined_flag_RC
25411
25412# Flag that forces no undefined symbols.
25413no_undefined_flag=$lt_no_undefined_flag_RC
25414
25415# Commands used to finish a libtool library installation in a directory.
25416finish_cmds=$lt_finish_cmds
25417
25418# Same as above, but a single script fragment to be evaled but not shown.
25419finish_eval=$lt_finish_eval
25420
25421# Take the output of nm and produce a listing of raw symbols and C names.
25422global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25423
25424# Transform the output of nm in a proper C declaration
25425global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25426
25427# Transform the output of nm in a C name address pair
25428global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25429
25430# This is the shared library runtime path variable.
25431runpath_var=$runpath_var
25432
25433# This is the shared library path variable.
25434shlibpath_var=$shlibpath_var
25435
25436# Is shlibpath searched before the hard-coded library search path?
25437shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25438
25439# How to hardcode a shared library path into an executable.
25440hardcode_action=$hardcode_action_RC
25441
25442# Whether we should hardcode library paths into libraries.
25443hardcode_into_libs=$hardcode_into_libs
25444
25445# Flag to hardcode \$libdir into a binary during linking.
25446# This must work even if \$libdir does not exist.
25447hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25448
25449# If ld is used when linking, flag to hardcode \$libdir into
25450# a binary during linking. This must work even if \$libdir does
25451# not exist.
25452hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25453
25454# Whether we need a single -rpath flag with a separated argument.
25455hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25456
25457# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25458# resulting binary.
25459hardcode_direct=$hardcode_direct_RC
25460
25461# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25462# resulting binary.
25463hardcode_minus_L=$hardcode_minus_L_RC
25464
25465# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25466# the resulting binary.
25467hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25468
25469# Set to yes if building a shared library automatically hardcodes DIR into the library
25470# and all subsequent libraries and executables linked against it.
25471hardcode_automatic=$hardcode_automatic_RC
25472
25473# Variables whose values should be saved in libtool wrapper scripts and
25474# restored at relink time.
25475variables_saved_for_relink="$variables_saved_for_relink"
25476
25477# Whether libtool must link a program against all its dependency libraries.
25478link_all_deplibs=$link_all_deplibs_RC
25479
25480# Compile-time system search path for libraries
25481sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25482
25483# Run-time system search path for libraries
25484sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25485
25486# Fix the shell variable \$srcfile for the compiler.
25487fix_srcfile_path="$fix_srcfile_path_RC"
25488
25489# Set to yes if exported symbols are required.
25490always_export_symbols=$always_export_symbols_RC
25491
25492# The commands to list exported symbols.
25493export_symbols_cmds=$lt_export_symbols_cmds_RC
25494
25495# The commands to extract the exported symbol list from a shared archive.
25496extract_expsyms_cmds=$lt_extract_expsyms_cmds
25497
25498# Symbols that should not be listed in the preloaded symbols.
25499exclude_expsyms=$lt_exclude_expsyms_RC
25500
25501# Symbols that must always be exported.
25502include_expsyms=$lt_include_expsyms_RC
25503
25504# ### END LIBTOOL TAG CONFIG: $tagname
25505
25506__EOF__
25507
25508
25509else
25510 # If there is no Makefile yet, we rely on a make rule to execute
25511 # `config.status --recheck' to rerun these tests and create the
25512 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025513 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25514 if test -f "$ltmain_in"; then
25515 test -f Makefile && make "$ltmain"
25516 fi
John Criswell47fdd832003-07-14 16:52:07 +000025517fi
25518
25519
25520ac_ext=c
25521ac_cpp='$CPP $CPPFLAGS'
25522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25524ac_compiler_gnu=$ac_cv_c_compiler_gnu
25525
25526CC="$lt_save_CC"
25527
25528 ;;
25529
25530 *)
25531 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25532echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25533 { (exit 1); exit 1; }; }
25534 ;;
25535 esac
25536
25537 # Append the new tag name to the list of available tags.
25538 if test -n "$tagname" ; then
25539 available_tags="$available_tags $tagname"
25540 fi
25541 fi
25542 done
25543 IFS="$lt_save_ifs"
25544
25545 # Now substitute the updated list of available tags.
25546 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25547 mv "${ofile}T" "$ofile"
25548 chmod +x "$ofile"
25549 else
25550 rm -f "${ofile}T"
25551 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25552echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25553 { (exit 1); exit 1; }; }
25554 fi
25555fi
John Criswell7a73b802003-06-30 21:59:07 +000025556
25557
25558
25559# This can be used to rebuild libtool when needed
25560LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25561
25562# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025563LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025564
25565# Prevent multiple expansion
25566
25567
25568
John Criswell47fdd832003-07-14 16:52:07 +000025569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025586
Reid Spencer582a23c2004-12-29 07:07:57 +000025587if test "$lt_cv_dlopen_self" = "yes" ; then
25588
25589cat >>confdefs.h <<\_ACEOF
25590#define CAN_DLOPEN_SELF 1
25591_ACEOF
25592
25593fi
25594
Reid Spencer7931a782004-12-27 06:15:02 +000025595if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025596 LLVMGCC="llvm-gcc${EXEEXT}"
25597 LLVMGXX="llvm-g++${EXEEXT}"
25598 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25599set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025602if test "${ac_cv_path_LLVMGCC+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25604else
25605 case $LLVMGCC in
25606 [\\/]* | ?:[\\/]*)
25607 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25608 ;;
25609 *)
25610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25611for as_dir in $PATH
25612do
25613 IFS=$as_save_IFS
25614 test -z "$as_dir" && as_dir=.
25615 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025616 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 +000025617 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25619 break 2
25620 fi
25621done
25622done
Reid Spencera773bd52006-08-04 18:18:08 +000025623IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025624
Reid Spencer59473af2004-12-25 07:31:29 +000025625 ;;
25626esac
25627fi
25628LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000025629if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025630 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25631echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025632else
Reid Spencera773bd52006-08-04 18:18:08 +000025633 { echo "$as_me:$LINENO: result: no" >&5
25634echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025635fi
25636
Reid Spencera773bd52006-08-04 18:18:08 +000025637
Reid Spencerc84492c2005-06-02 22:34:49 +000025638 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25639set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025642if test "${ac_cv_path_LLVMGXX+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25644else
25645 case $LLVMGXX in
25646 [\\/]* | ?:[\\/]*)
25647 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25648 ;;
25649 *)
25650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25651for as_dir in $PATH
25652do
25653 IFS=$as_save_IFS
25654 test -z "$as_dir" && as_dir=.
25655 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025656 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 +000025657 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25659 break 2
25660 fi
25661done
25662done
Reid Spencera773bd52006-08-04 18:18:08 +000025663IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025664
Reid Spencer59473af2004-12-25 07:31:29 +000025665 ;;
25666esac
25667fi
25668LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000025669if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025670 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25671echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025672else
Reid Spencera773bd52006-08-04 18:18:08 +000025673 { echo "$as_me:$LINENO: result: no" >&5
25674echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025675fi
25676
Reid Spencera773bd52006-08-04 18:18:08 +000025677
Reid Spencer59473af2004-12-25 07:31:29 +000025678else
Devang Patel5d28b882007-12-04 22:54:47 +000025679 if test -z "$LLVMGCC"; then
25680 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25681 fi
25682 if test -z "$LLVMGXX"; then
25683 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25684 fi
Reid Spencer59473af2004-12-25 07:31:29 +000025685 LLVMGCC=$LLVMGCC
25686
25687 LLVMGXX=$LLVMGXX
25688
25689fi
25690
Reid Spencera773bd52006-08-04 18:18:08 +000025691{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25692echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025693
Reid Spencer86901802004-12-08 23:07:27 +000025694ICC=no
25695IXX=no
25696case $CC in
25697 icc*|icpc*)
25698 ICC=yes
25699 IXX=yes
25700 ;;
25701 *)
25702 ;;
25703esac
25704
Duraid Madina937c60a2006-02-15 07:57:42 +000025705if test "$GCC" != "yes" && test "$ICC" != "yes"
25706then
25707 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25708echo "$as_me: error: gcc|icc required but not found" >&2;}
25709 { (exit 1); exit 1; }; }
25710fi
25711
25712if test "$GXX" != "yes" && test "$IXX" != "yes"
25713then
25714 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25715echo "$as_me: error: g++|icc required but not found" >&2;}
25716 { (exit 1); exit 1; }; }
25717fi
25718
Reid Spencer86901802004-12-08 23:07:27 +000025719if test "$GCC" = "yes"
25720then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025721 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025722 if test "$gccmajor" -lt "3"
25723 then
25724 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025725echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25726 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025727 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025728fi
25729
25730if test -z "$llvm_cv_gnu_make_command"
25731then
25732 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25733echo "$as_me: error: GNU Make required but not found" >&2;}
25734 { (exit 1); exit 1; }; }
25735fi
25736
Reid Spencera773bd52006-08-04 18:18:08 +000025737{ echo "$as_me:$LINENO: result: ok" >&5
25738echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025739
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025740
John Criswell7a73b802003-06-30 21:59:07 +000025741
Reid Spencera773bd52006-08-04 18:18:08 +000025742{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25743echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025744if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25746else
25747 ac_check_lib_save_LIBS=$LIBS
25748LIBS="-lelf $LIBS"
25749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025750/* confdefs.h. */
25751_ACEOF
25752cat confdefs.h >>conftest.$ac_ext
25753cat >>conftest.$ac_ext <<_ACEOF
25754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025755
Reid Spencera773bd52006-08-04 18:18:08 +000025756/* Override any GCC internal prototype to avoid an error.
25757 Use char because int might match the return type of a GCC
25758 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000025759#ifdef __cplusplus
25760extern "C"
25761#endif
John Criswell7a73b802003-06-30 21:59:07 +000025762char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025763int
25764main ()
25765{
Reid Spencera773bd52006-08-04 18:18:08 +000025766return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025767 ;
25768 return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025772if { (ac_try="$ac_link"
25773case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25776esac
25777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025780 grep -v '^ *+' conftest.er1 >conftest.err
25781 rm -f conftest.er1
25782 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025784 (exit $ac_status); } && {
25785 test -z "$ac_c_werror_flag" ||
25786 test ! -s conftest.err
25787 } && test -s conftest$ac_exeext &&
25788 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000025789 ac_cv_lib_elf_elf_begin=yes
25790else
25791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025792sed 's/^/| /' conftest.$ac_ext >&5
25793
Reid Spencera773bd52006-08-04 18:18:08 +000025794 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000025795fi
Reid Spencera773bd52006-08-04 18:18:08 +000025796
Scott Michel96dcd2b2007-12-05 21:24:02 +000025797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025798 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025799LIBS=$ac_check_lib_save_LIBS
25800fi
Reid Spencera773bd52006-08-04 18:18:08 +000025801{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25802echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025803if test $ac_cv_lib_elf_elf_begin = yes; then
25804 cat >>confdefs.h <<_ACEOF
25805#define HAVE_LIBELF 1
25806_ACEOF
25807
25808 LIBS="-lelf $LIBS"
25809
25810fi
25811
25812
Reid Spencera773bd52006-08-04 18:18:08 +000025813{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
25814echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025815if test "${ac_cv_lib_m_sin+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25817else
25818 ac_check_lib_save_LIBS=$LIBS
25819LIBS="-lm $LIBS"
25820cat >conftest.$ac_ext <<_ACEOF
25821/* confdefs.h. */
25822_ACEOF
25823cat confdefs.h >>conftest.$ac_ext
25824cat >>conftest.$ac_ext <<_ACEOF
25825/* end confdefs.h. */
25826
Reid Spencera773bd52006-08-04 18:18:08 +000025827/* Override any GCC internal prototype to avoid an error.
25828 Use char because int might match the return type of a GCC
25829 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000025830#ifdef __cplusplus
25831extern "C"
25832#endif
Reid Spencer3484a992006-01-19 08:31:08 +000025833char sin ();
25834int
25835main ()
25836{
Reid Spencera773bd52006-08-04 18:18:08 +000025837return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000025838 ;
25839 return 0;
25840}
25841_ACEOF
25842rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025843if { (ac_try="$ac_link"
25844case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25847esac
25848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000025850 ac_status=$?
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025855 (exit $ac_status); } && {
25856 test -z "$ac_c_werror_flag" ||
25857 test ! -s conftest.err
25858 } && test -s conftest$ac_exeext &&
25859 $as_test_x conftest$ac_exeext; then
Reid Spencer3484a992006-01-19 08:31:08 +000025860 ac_cv_lib_m_sin=yes
25861else
25862 echo "$as_me: failed program was:" >&5
25863sed 's/^/| /' conftest.$ac_ext >&5
25864
Reid Spencera773bd52006-08-04 18:18:08 +000025865 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000025866fi
Reid Spencera773bd52006-08-04 18:18:08 +000025867
Scott Michel96dcd2b2007-12-05 21:24:02 +000025868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer3484a992006-01-19 08:31:08 +000025869 conftest$ac_exeext conftest.$ac_ext
25870LIBS=$ac_check_lib_save_LIBS
25871fi
Reid Spencera773bd52006-08-04 18:18:08 +000025872{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25873echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025874if test $ac_cv_lib_m_sin = yes; then
25875 cat >>confdefs.h <<_ACEOF
25876#define HAVE_LIBM 1
25877_ACEOF
25878
25879 LIBS="-lm $LIBS"
25880
25881fi
25882
Jeff Cohen28783c32007-01-12 18:22:38 +000025883if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025884
Reid Spencera773bd52006-08-04 18:18:08 +000025885{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25886echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025887if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025888 echo $ECHO_N "(cached) $ECHO_C" >&6
25889else
25890 ac_check_lib_save_LIBS=$LIBS
25891LIBS="-limagehlp $LIBS"
25892cat >conftest.$ac_ext <<_ACEOF
25893/* confdefs.h. */
25894_ACEOF
25895cat confdefs.h >>conftest.$ac_ext
25896cat >>conftest.$ac_ext <<_ACEOF
25897/* end confdefs.h. */
25898
Reid Spencer48fdf912006-06-01 19:03:21 +000025899
Reid Spencer484fc8e2006-06-01 16:55:59 +000025900int
25901main ()
25902{
Reid Spencera773bd52006-08-04 18:18:08 +000025903return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025904 ;
25905 return 0;
25906}
25907_ACEOF
25908rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025909if { (ac_try="$ac_link"
25910case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913esac
25914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025916 ac_status=$?
25917 grep -v '^ *+' conftest.er1 >conftest.err
25918 rm -f conftest.er1
25919 cat conftest.err >&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025921 (exit $ac_status); } && {
25922 test -z "$ac_c_werror_flag" ||
25923 test ! -s conftest.err
25924 } && test -s conftest$ac_exeext &&
25925 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025926 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025927else
25928 echo "$as_me: failed program was:" >&5
25929sed 's/^/| /' conftest.$ac_ext >&5
25930
Reid Spencera773bd52006-08-04 18:18:08 +000025931 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025932fi
Reid Spencera773bd52006-08-04 18:18:08 +000025933
Scott Michel96dcd2b2007-12-05 21:24:02 +000025934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000025935 conftest$ac_exeext conftest.$ac_ext
25936LIBS=$ac_check_lib_save_LIBS
25937fi
Reid Spencera773bd52006-08-04 18:18:08 +000025938{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25939echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025940if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025941 cat >>confdefs.h <<_ACEOF
25942#define HAVE_LIBIMAGEHLP 1
25943_ACEOF
25944
25945 LIBS="-limagehlp $LIBS"
25946
25947fi
25948
25949
Reid Spencera773bd52006-08-04 18:18:08 +000025950{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25951echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025952if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025953 echo $ECHO_N "(cached) $ECHO_C" >&6
25954else
25955 ac_check_lib_save_LIBS=$LIBS
25956LIBS="-lpsapi $LIBS"
25957cat >conftest.$ac_ext <<_ACEOF
25958/* confdefs.h. */
25959_ACEOF
25960cat confdefs.h >>conftest.$ac_ext
25961cat >>conftest.$ac_ext <<_ACEOF
25962/* end confdefs.h. */
25963
Reid Spencer48fdf912006-06-01 19:03:21 +000025964
Reid Spencer484fc8e2006-06-01 16:55:59 +000025965int
25966main ()
25967{
Reid Spencera773bd52006-08-04 18:18:08 +000025968return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025969 ;
25970 return 0;
25971}
25972_ACEOF
25973rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025974if { (ac_try="$ac_link"
25975case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25978esac
25979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025981 ac_status=$?
25982 grep -v '^ *+' conftest.er1 >conftest.err
25983 rm -f conftest.er1
25984 cat conftest.err >&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025986 (exit $ac_status); } && {
25987 test -z "$ac_c_werror_flag" ||
25988 test ! -s conftest.err
25989 } && test -s conftest$ac_exeext &&
25990 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025991 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025992else
25993 echo "$as_me: failed program was:" >&5
25994sed 's/^/| /' conftest.$ac_ext >&5
25995
Reid Spencera773bd52006-08-04 18:18:08 +000025996 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025997fi
Reid Spencera773bd52006-08-04 18:18:08 +000025998
Scott Michel96dcd2b2007-12-05 21:24:02 +000025999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026000 conftest$ac_exeext conftest.$ac_ext
26001LIBS=$ac_check_lib_save_LIBS
26002fi
Reid Spencera773bd52006-08-04 18:18:08 +000026003{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26004echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026005if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026006 cat >>confdefs.h <<_ACEOF
26007#define HAVE_LIBPSAPI 1
26008_ACEOF
26009
26010 LIBS="-lpsapi $LIBS"
26011
26012fi
26013
26014fi
Reid Spencer22177fe2005-07-12 15:24:20 +000026015
Reid Spencera773bd52006-08-04 18:18:08 +000026016{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26017echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000026018if test "${ac_cv_search_lt_dlopen+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26020else
26021 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000026022cat >conftest.$ac_ext <<_ACEOF
26023/* confdefs.h. */
26024_ACEOF
26025cat confdefs.h >>conftest.$ac_ext
26026cat >>conftest.$ac_ext <<_ACEOF
26027/* end confdefs.h. */
26028
Reid Spencera773bd52006-08-04 18:18:08 +000026029/* Override any GCC internal prototype to avoid an error.
26030 Use char because int might match the return type of a GCC
26031 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000026032#ifdef __cplusplus
26033extern "C"
26034#endif
Reid Spencer17795972004-11-18 09:47:37 +000026035char lt_dlopen ();
26036int
26037main ()
26038{
Reid Spencera773bd52006-08-04 18:18:08 +000026039return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000026040 ;
26041 return 0;
26042}
26043_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026044for ac_lib in '' ltdl; do
26045 if test -z "$ac_lib"; then
26046 ac_res="none required"
26047 else
26048 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000026049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026050 fi
26051 rm -f conftest.$ac_objext conftest$ac_exeext
26052if { (ac_try="$ac_link"
26053case "(($ac_try" in
26054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055 *) ac_try_echo=$ac_try;;
26056esac
26057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000026059 ac_status=$?
26060 grep -v '^ *+' conftest.er1 >conftest.err
26061 rm -f conftest.er1
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026064 (exit $ac_status); } && {
26065 test -z "$ac_c_werror_flag" ||
26066 test ! -s conftest.err
26067 } && test -s conftest$ac_exeext &&
26068 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026069 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000026070else
26071 echo "$as_me: failed program was:" >&5
26072sed 's/^/| /' conftest.$ac_ext >&5
26073
Reid Spencera773bd52006-08-04 18:18:08 +000026074
Reid Spencer17795972004-11-18 09:47:37 +000026075fi
Reid Spencera773bd52006-08-04 18:18:08 +000026076
Scott Michel96dcd2b2007-12-05 21:24:02 +000026077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026078 conftest$ac_exeext
26079 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26080 break
Reid Spencer17795972004-11-18 09:47:37 +000026081fi
Reid Spencera773bd52006-08-04 18:18:08 +000026082done
26083if test "${ac_cv_search_lt_dlopen+set}" = set; then
26084 :
26085else
26086 ac_cv_search_lt_dlopen=no
26087fi
26088rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000026089LIBS=$ac_func_search_save_LIBS
26090fi
Reid Spencera773bd52006-08-04 18:18:08 +000026091{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26092echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26093ac_res=$ac_cv_search_lt_dlopen
26094if test "$ac_res" != no; then
26095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000026096
26097cat >>confdefs.h <<\_ACEOF
26098#define HAVE_LT_DLOPEN 1
26099_ACEOF
26100
26101else
26102 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26103 not be available" >&5
26104echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26105 not be available" >&2;}
26106fi
26107
26108
Reid Spencera773bd52006-08-04 18:18:08 +000026109{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26110echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026111if test "${ac_cv_search_dlopen+set}" = set; then
26112 echo $ECHO_N "(cached) $ECHO_C" >&6
26113else
26114 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026115cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026121
Reid Spencera773bd52006-08-04 18:18:08 +000026122/* Override any GCC internal prototype to avoid an error.
26123 Use char because int might match the return type of a GCC
26124 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026125#ifdef __cplusplus
26126extern "C"
26127#endif
John Criswell7a73b802003-06-30 21:59:07 +000026128char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026129int
26130main ()
26131{
Reid Spencera773bd52006-08-04 18:18:08 +000026132return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026133 ;
26134 return 0;
26135}
26136_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026137for ac_lib in '' dl; do
26138 if test -z "$ac_lib"; then
26139 ac_res="none required"
26140 else
26141 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026143 fi
26144 rm -f conftest.$ac_objext conftest$ac_exeext
26145if { (ac_try="$ac_link"
26146case "(($ac_try" in
26147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148 *) ac_try_echo=$ac_try;;
26149esac
26150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026153 grep -v '^ *+' conftest.er1 >conftest.err
26154 rm -f conftest.er1
26155 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026157 (exit $ac_status); } && {
26158 test -z "$ac_c_werror_flag" ||
26159 test ! -s conftest.err
26160 } && test -s conftest$ac_exeext &&
26161 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026162 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026163else
26164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026165sed 's/^/| /' conftest.$ac_ext >&5
26166
Reid Spencera773bd52006-08-04 18:18:08 +000026167
John Criswell7a73b802003-06-30 21:59:07 +000026168fi
Reid Spencera773bd52006-08-04 18:18:08 +000026169
Scott Michel96dcd2b2007-12-05 21:24:02 +000026170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026171 conftest$ac_exeext
26172 if test "${ac_cv_search_dlopen+set}" = set; then
26173 break
John Criswell7a73b802003-06-30 21:59:07 +000026174fi
Reid Spencera773bd52006-08-04 18:18:08 +000026175done
26176if test "${ac_cv_search_dlopen+set}" = set; then
26177 :
26178else
26179 ac_cv_search_dlopen=no
26180fi
26181rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026182LIBS=$ac_func_search_save_LIBS
26183fi
Reid Spencera773bd52006-08-04 18:18:08 +000026184{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26185echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26186ac_res=$ac_cv_search_dlopen
26187if test "$ac_res" != no; then
26188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026189
26190cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000026191#define HAVE_DLOPEN 1
26192_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026193
26194else
Brian Gaekec45be042003-10-07 06:01:34 +000026195 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26196echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000026197fi
26198
26199
Reid Spencera773bd52006-08-04 18:18:08 +000026200{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26201echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026202if test "${ac_cv_search_mallinfo+set}" = set; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26204else
26205 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026206cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026207/* confdefs.h. */
26208_ACEOF
26209cat confdefs.h >>conftest.$ac_ext
26210cat >>conftest.$ac_ext <<_ACEOF
26211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026212
Reid Spencera773bd52006-08-04 18:18:08 +000026213/* Override any GCC internal prototype to avoid an error.
26214 Use char because int might match the return type of a GCC
26215 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026216#ifdef __cplusplus
26217extern "C"
26218#endif
John Criswell7a73b802003-06-30 21:59:07 +000026219char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026220int
26221main ()
26222{
Reid Spencera773bd52006-08-04 18:18:08 +000026223return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026224 ;
26225 return 0;
26226}
26227_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026228for ac_lib in '' malloc; do
26229 if test -z "$ac_lib"; then
26230 ac_res="none required"
26231 else
26232 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026234 fi
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236if { (ac_try="$ac_link"
26237case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26240esac
26241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026243 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026244 grep -v '^ *+' conftest.er1 >conftest.err
26245 rm -f conftest.er1
26246 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest$ac_exeext &&
26252 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026253 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026254else
26255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026256sed 's/^/| /' conftest.$ac_ext >&5
26257
Reid Spencera773bd52006-08-04 18:18:08 +000026258
John Criswell7a73b802003-06-30 21:59:07 +000026259fi
Reid Spencera773bd52006-08-04 18:18:08 +000026260
Scott Michel96dcd2b2007-12-05 21:24:02 +000026261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026262 conftest$ac_exeext
26263 if test "${ac_cv_search_mallinfo+set}" = set; then
26264 break
John Criswell7a73b802003-06-30 21:59:07 +000026265fi
Reid Spencera773bd52006-08-04 18:18:08 +000026266done
26267if test "${ac_cv_search_mallinfo+set}" = set; then
26268 :
26269else
26270 ac_cv_search_mallinfo=no
26271fi
26272rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026273LIBS=$ac_func_search_save_LIBS
26274fi
Reid Spencera773bd52006-08-04 18:18:08 +000026275{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26276echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26277ac_res=$ac_cv_search_mallinfo
26278if test "$ac_res" != no; then
26279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026280
26281cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026282#define HAVE_MALLINFO 1
26283_ACEOF
26284
26285fi
26286
26287
Reid Spencer0a262ba2005-08-24 10:07:20 +000026288if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026289
Reid Spencera773bd52006-08-04 18:18:08 +000026290{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26291echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026292if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294else
26295 ac_check_lib_save_LIBS=$LIBS
26296LIBS="-lpthread $LIBS"
26297cat >conftest.$ac_ext <<_ACEOF
26298/* confdefs.h. */
26299_ACEOF
26300cat confdefs.h >>conftest.$ac_ext
26301cat >>conftest.$ac_ext <<_ACEOF
26302/* end confdefs.h. */
26303
Reid Spencera773bd52006-08-04 18:18:08 +000026304/* Override any GCC internal prototype to avoid an error.
26305 Use char because int might match the return type of a GCC
26306 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000026307#ifdef __cplusplus
26308extern "C"
26309#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000026310char pthread_mutex_init ();
26311int
26312main ()
26313{
Reid Spencera773bd52006-08-04 18:18:08 +000026314return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000026315 ;
26316 return 0;
26317}
26318_ACEOF
26319rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026320if { (ac_try="$ac_link"
26321case "(($ac_try" in
26322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26323 *) ac_try_echo=$ac_try;;
26324esac
26325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26326 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000026327 ac_status=$?
26328 grep -v '^ *+' conftest.er1 >conftest.err
26329 rm -f conftest.er1
26330 cat conftest.err >&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026332 (exit $ac_status); } && {
26333 test -z "$ac_c_werror_flag" ||
26334 test ! -s conftest.err
26335 } && test -s conftest$ac_exeext &&
26336 $as_test_x conftest$ac_exeext; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026337 ac_cv_lib_pthread_pthread_mutex_init=yes
26338else
26339 echo "$as_me: failed program was:" >&5
26340sed 's/^/| /' conftest.$ac_ext >&5
26341
Reid Spencera773bd52006-08-04 18:18:08 +000026342 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000026343fi
Reid Spencera773bd52006-08-04 18:18:08 +000026344
Scott Michel96dcd2b2007-12-05 21:24:02 +000026345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer22177fe2005-07-12 15:24:20 +000026346 conftest$ac_exeext conftest.$ac_ext
26347LIBS=$ac_check_lib_save_LIBS
26348fi
Reid Spencera773bd52006-08-04 18:18:08 +000026349{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26350echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026351if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26352 cat >>confdefs.h <<_ACEOF
26353#define HAVE_LIBPTHREAD 1
26354_ACEOF
26355
26356 LIBS="-lpthread $LIBS"
26357
26358fi
26359
Reid Spencera773bd52006-08-04 18:18:08 +000026360 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26361echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000026362if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26364else
26365 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000026366cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026367/* confdefs.h. */
26368_ACEOF
26369cat confdefs.h >>conftest.$ac_ext
26370cat >>conftest.$ac_ext <<_ACEOF
26371/* end confdefs.h. */
26372
Reid Spencera773bd52006-08-04 18:18:08 +000026373/* Override any GCC internal prototype to avoid an error.
26374 Use char because int might match the return type of a GCC
26375 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000026376#ifdef __cplusplus
26377extern "C"
26378#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000026379char pthread_mutex_lock ();
26380int
26381main ()
26382{
Reid Spencera773bd52006-08-04 18:18:08 +000026383return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000026384 ;
26385 return 0;
26386}
26387_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026388for ac_lib in '' pthread; do
26389 if test -z "$ac_lib"; then
26390 ac_res="none required"
26391 else
26392 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000026393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026394 fi
26395 rm -f conftest.$ac_objext conftest$ac_exeext
26396if { (ac_try="$ac_link"
26397case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26400esac
26401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026404 grep -v '^ *+' conftest.er1 >conftest.err
26405 rm -f conftest.er1
26406 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026408 (exit $ac_status); } && {
26409 test -z "$ac_c_werror_flag" ||
26410 test ! -s conftest.err
26411 } && test -s conftest$ac_exeext &&
26412 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026413 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000026414else
26415 echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
Reid Spencera773bd52006-08-04 18:18:08 +000026418
Brian Gaeke5f268f72003-12-05 19:29:01 +000026419fi
Reid Spencera773bd52006-08-04 18:18:08 +000026420
Scott Michel96dcd2b2007-12-05 21:24:02 +000026421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026422 conftest$ac_exeext
26423 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26424 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000026425fi
Reid Spencera773bd52006-08-04 18:18:08 +000026426done
26427if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26428 :
26429else
26430 ac_cv_search_pthread_mutex_lock=no
26431fi
26432rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026433LIBS=$ac_func_search_save_LIBS
26434fi
Reid Spencera773bd52006-08-04 18:18:08 +000026435{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26436echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26437ac_res=$ac_cv_search_pthread_mutex_lock
26438if test "$ac_res" != no; then
26439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026440
John Criswell40468462004-09-24 21:19:06 +000026441cat >>confdefs.h <<\_ACEOF
26442#define HAVE_PTHREAD_MUTEX_LOCK 1
26443_ACEOF
26444
26445fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026446
Reid Spencer0a262ba2005-08-24 10:07:20 +000026447fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026448
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026449
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026450# Check whether --with-udis86 was given.
26451if test "${with_udis86+set}" = set; then
26452 withval=$with_udis86;
26453 USE_UDIS86=1
26454
26455 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000026456 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026457 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26458 esac
26459
26460{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26461echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26462if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26463 echo $ECHO_N "(cached) $ECHO_C" >&6
26464else
26465 ac_check_lib_save_LIBS=$LIBS
26466LIBS="-ludis86 $LIBS"
26467cat >conftest.$ac_ext <<_ACEOF
26468/* confdefs.h. */
26469_ACEOF
26470cat confdefs.h >>conftest.$ac_ext
26471cat >>conftest.$ac_ext <<_ACEOF
26472/* end confdefs.h. */
26473
26474/* Override any GCC internal prototype to avoid an error.
26475 Use char because int might match the return type of a GCC
26476 builtin and then its argument prototype would still apply. */
26477#ifdef __cplusplus
26478extern "C"
26479#endif
26480char ud_init ();
26481int
26482main ()
26483{
26484return ud_init ();
26485 ;
26486 return 0;
26487}
26488_ACEOF
26489rm -f conftest.$ac_objext conftest$ac_exeext
26490if { (ac_try="$ac_link"
26491case "(($ac_try" in
26492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493 *) ac_try_echo=$ac_try;;
26494esac
26495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496 (eval "$ac_link") 2>conftest.er1
26497 ac_status=$?
26498 grep -v '^ *+' conftest.er1 >conftest.err
26499 rm -f conftest.er1
26500 cat conftest.err >&5
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026502 (exit $ac_status); } && {
26503 test -z "$ac_c_werror_flag" ||
26504 test ! -s conftest.err
26505 } && test -s conftest$ac_exeext &&
26506 $as_test_x conftest$ac_exeext; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026507 ac_cv_lib_udis86_ud_init=yes
26508else
26509 echo "$as_me: failed program was:" >&5
26510sed 's/^/| /' conftest.$ac_ext >&5
26511
26512 ac_cv_lib_udis86_ud_init=no
26513fi
26514
Scott Michel96dcd2b2007-12-05 21:24:02 +000026515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026516 conftest$ac_exeext conftest.$ac_ext
26517LIBS=$ac_check_lib_save_LIBS
26518fi
26519{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26520echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26521if test $ac_cv_lib_udis86_ud_init = yes; then
26522 cat >>confdefs.h <<_ACEOF
26523#define HAVE_LIBUDIS86 1
26524_ACEOF
26525
26526 LIBS="-ludis86 $LIBS"
26527
26528else
26529
26530 echo "Error! You need to have libudis86 around."
26531 exit -1
26532
26533fi
26534
26535
26536else
26537 USE_UDIS86=0
26538
26539fi
26540
26541
26542cat >>confdefs.h <<_ACEOF
26543#define USE_UDIS86 $USE_UDIS86
26544_ACEOF
26545
26546
26547
Reid Spencer59473af2004-12-25 07:31:29 +000026548
26549
26550
26551
26552
26553ac_header_dirent=no
26554for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26555 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000026556{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26557echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026559 echo $ECHO_N "(cached) $ECHO_C" >&6
26560else
26561 cat >conftest.$ac_ext <<_ACEOF
26562/* confdefs.h. */
26563_ACEOF
26564cat confdefs.h >>conftest.$ac_ext
26565cat >>conftest.$ac_ext <<_ACEOF
26566/* end confdefs.h. */
26567#include <sys/types.h>
26568#include <$ac_hdr>
26569
26570int
26571main ()
26572{
26573if ((DIR *) 0)
26574return 0;
26575 ;
26576 return 0;
26577}
26578_ACEOF
26579rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026580if { (ac_try="$ac_compile"
26581case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26584esac
26585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026587 ac_status=$?
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026592 (exit $ac_status); } && {
26593 test -z "$ac_c_werror_flag" ||
26594 test ! -s conftest.err
26595 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026596 eval "$as_ac_Header=yes"
26597else
26598 echo "$as_me: failed program was:" >&5
26599sed 's/^/| /' conftest.$ac_ext >&5
26600
Reid Spencera773bd52006-08-04 18:18:08 +000026601 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000026602fi
Reid Spencera773bd52006-08-04 18:18:08 +000026603
26604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026605fi
Reid Spencera773bd52006-08-04 18:18:08 +000026606ac_res=`eval echo '${'$as_ac_Header'}'`
26607 { echo "$as_me:$LINENO: result: $ac_res" >&5
26608echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026609if test `eval echo '${'$as_ac_Header'}'` = yes; then
26610 cat >>confdefs.h <<_ACEOF
26611#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26612_ACEOF
26613
26614ac_header_dirent=$ac_hdr; break
26615fi
26616
26617done
26618# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26619if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000026620 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26621echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026622if test "${ac_cv_search_opendir+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26624else
26625 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026626cat >conftest.$ac_ext <<_ACEOF
26627/* confdefs.h. */
26628_ACEOF
26629cat confdefs.h >>conftest.$ac_ext
26630cat >>conftest.$ac_ext <<_ACEOF
26631/* end confdefs.h. */
26632
Reid Spencera773bd52006-08-04 18:18:08 +000026633/* Override any GCC internal prototype to avoid an error.
26634 Use char because int might match the return type of a GCC
26635 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026636#ifdef __cplusplus
26637extern "C"
26638#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026639char opendir ();
26640int
26641main ()
26642{
Reid Spencera773bd52006-08-04 18:18:08 +000026643return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026644 ;
26645 return 0;
26646}
26647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026648for ac_lib in '' dir; do
26649 if test -z "$ac_lib"; then
26650 ac_res="none required"
26651 else
26652 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026654 fi
26655 rm -f conftest.$ac_objext conftest$ac_exeext
26656if { (ac_try="$ac_link"
26657case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26660esac
26661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026663 ac_status=$?
26664 grep -v '^ *+' conftest.er1 >conftest.err
26665 rm -f conftest.er1
26666 cat conftest.err >&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026668 (exit $ac_status); } && {
26669 test -z "$ac_c_werror_flag" ||
26670 test ! -s conftest.err
26671 } && test -s conftest$ac_exeext &&
26672 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026673 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026674else
26675 echo "$as_me: failed program was:" >&5
26676sed 's/^/| /' conftest.$ac_ext >&5
26677
Reid Spencera773bd52006-08-04 18:18:08 +000026678
Reid Spencer59473af2004-12-25 07:31:29 +000026679fi
Reid Spencera773bd52006-08-04 18:18:08 +000026680
Scott Michel96dcd2b2007-12-05 21:24:02 +000026681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026682 conftest$ac_exeext
26683 if test "${ac_cv_search_opendir+set}" = set; then
26684 break
Reid Spencer59473af2004-12-25 07:31:29 +000026685fi
Reid Spencera773bd52006-08-04 18:18:08 +000026686done
26687if test "${ac_cv_search_opendir+set}" = set; then
26688 :
26689else
26690 ac_cv_search_opendir=no
26691fi
26692rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026693LIBS=$ac_func_search_save_LIBS
26694fi
Reid Spencera773bd52006-08-04 18:18:08 +000026695{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26696echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26697ac_res=$ac_cv_search_opendir
26698if test "$ac_res" != no; then
26699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026700
26701fi
26702
26703else
Reid Spencera773bd52006-08-04 18:18:08 +000026704 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26705echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026706if test "${ac_cv_search_opendir+set}" = set; then
26707 echo $ECHO_N "(cached) $ECHO_C" >&6
26708else
26709 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026710cat >conftest.$ac_ext <<_ACEOF
26711/* confdefs.h. */
26712_ACEOF
26713cat confdefs.h >>conftest.$ac_ext
26714cat >>conftest.$ac_ext <<_ACEOF
26715/* end confdefs.h. */
26716
Reid Spencera773bd52006-08-04 18:18:08 +000026717/* Override any GCC internal prototype to avoid an error.
26718 Use char because int might match the return type of a GCC
26719 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026720#ifdef __cplusplus
26721extern "C"
26722#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026723char opendir ();
26724int
26725main ()
26726{
Reid Spencera773bd52006-08-04 18:18:08 +000026727return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026728 ;
26729 return 0;
26730}
26731_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026732for ac_lib in '' x; do
26733 if test -z "$ac_lib"; then
26734 ac_res="none required"
26735 else
26736 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026738 fi
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740if { (ac_try="$ac_link"
26741case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26744esac
26745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26746 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026747 ac_status=$?
26748 grep -v '^ *+' conftest.er1 >conftest.err
26749 rm -f conftest.er1
26750 cat conftest.err >&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026752 (exit $ac_status); } && {
26753 test -z "$ac_c_werror_flag" ||
26754 test ! -s conftest.err
26755 } && test -s conftest$ac_exeext &&
26756 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026757 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026758else
26759 echo "$as_me: failed program was:" >&5
26760sed 's/^/| /' conftest.$ac_ext >&5
26761
Reid Spencera773bd52006-08-04 18:18:08 +000026762
Reid Spencer59473af2004-12-25 07:31:29 +000026763fi
Reid Spencera773bd52006-08-04 18:18:08 +000026764
Scott Michel96dcd2b2007-12-05 21:24:02 +000026765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026766 conftest$ac_exeext
26767 if test "${ac_cv_search_opendir+set}" = set; then
26768 break
Reid Spencer59473af2004-12-25 07:31:29 +000026769fi
Reid Spencera773bd52006-08-04 18:18:08 +000026770done
26771if test "${ac_cv_search_opendir+set}" = set; then
26772 :
26773else
26774 ac_cv_search_opendir=no
26775fi
26776rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026777LIBS=$ac_func_search_save_LIBS
26778fi
Reid Spencera773bd52006-08-04 18:18:08 +000026779{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26780echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26781ac_res=$ac_cv_search_opendir
26782if test "$ac_res" != no; then
26783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026784
26785fi
26786
26787fi
26788
Reid Spencera773bd52006-08-04 18:18:08 +000026789{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26790echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026791if test "${ac_cv_header_mmap_anon+set}" = set; then
26792 echo $ECHO_N "(cached) $ECHO_C" >&6
26793else
26794 ac_ext=c
26795ac_cpp='$CPP $CPPFLAGS'
26796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26798ac_compiler_gnu=$ac_cv_c_compiler_gnu
26799
26800 cat >conftest.$ac_ext <<_ACEOF
26801/* confdefs.h. */
26802_ACEOF
26803cat confdefs.h >>conftest.$ac_ext
26804cat >>conftest.$ac_ext <<_ACEOF
26805/* end confdefs.h. */
26806#include <sys/mman.h>
26807#include <unistd.h>
26808#include <fcntl.h>
26809int
26810main ()
26811{
26812mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26813 ;
26814 return 0;
26815}
26816_ACEOF
26817rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026818if { (ac_try="$ac_compile"
26819case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26822esac
26823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026825 ac_status=$?
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026830 (exit $ac_status); } && {
26831 test -z "$ac_c_werror_flag" ||
26832 test ! -s conftest.err
26833 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026834 ac_cv_header_mmap_anon=yes
26835else
26836 echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
Reid Spencera773bd52006-08-04 18:18:08 +000026839 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000026840fi
Reid Spencera773bd52006-08-04 18:18:08 +000026841
26842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026843 ac_ext=c
26844ac_cpp='$CPP $CPPFLAGS'
26845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26847ac_compiler_gnu=$ac_cv_c_compiler_gnu
26848
26849
26850fi
Reid Spencera773bd52006-08-04 18:18:08 +000026851{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26852echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026853if test "$ac_cv_header_mmap_anon" = yes; then
26854
26855cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026856#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026857_ACEOF
26858
26859fi
26860
Reid Spencera773bd52006-08-04 18:18:08 +000026861{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26862echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026863if test "${ac_cv_header_stat_broken+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26865else
26866 cat >conftest.$ac_ext <<_ACEOF
26867/* confdefs.h. */
26868_ACEOF
26869cat confdefs.h >>conftest.$ac_ext
26870cat >>conftest.$ac_ext <<_ACEOF
26871/* end confdefs.h. */
26872#include <sys/types.h>
26873#include <sys/stat.h>
26874
Reid Spencera773bd52006-08-04 18:18:08 +000026875#if defined S_ISBLK && defined S_IFDIR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026876extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026877#endif
26878
Reid Spencera773bd52006-08-04 18:18:08 +000026879#if defined S_ISBLK && defined S_IFCHR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026880extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026881#endif
26882
Reid Spencera773bd52006-08-04 18:18:08 +000026883#if defined S_ISLNK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026884extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026885#endif
26886
Reid Spencera773bd52006-08-04 18:18:08 +000026887#if defined S_ISSOCK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026888extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026889#endif
26890
26891_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +000026892rm -f conftest.$ac_objext
26893if { (ac_try="$ac_compile"
26894case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897esac
26898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_compile") 2>conftest.er1
26900 ac_status=$?
26901 grep -v '^ *+' conftest.er1 >conftest.err
26902 rm -f conftest.er1
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } && {
26906 test -z "$ac_c_werror_flag" ||
26907 test ! -s conftest.err
26908 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026909 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000026910else
26911 echo "$as_me: failed program was:" >&5
26912sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer59473af2004-12-25 07:31:29 +000026913
Scott Michel96dcd2b2007-12-05 21:24:02 +000026914 ac_cv_header_stat_broken=yes
26915fi
26916
26917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026918fi
Reid Spencera773bd52006-08-04 18:18:08 +000026919{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26920echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026921if test $ac_cv_header_stat_broken = yes; then
26922
26923cat >>confdefs.h <<\_ACEOF
26924#define STAT_MACROS_BROKEN 1
26925_ACEOF
26926
26927fi
26928
Reid Spencera773bd52006-08-04 18:18:08 +000026929{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26930echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026931if test "${ac_cv_header_stdc+set}" = set; then
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26933else
26934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026935/* confdefs.h. */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026940#include <stdlib.h>
26941#include <stdarg.h>
26942#include <string.h>
26943#include <float.h>
26944
John Criswell0c38eaf2003-09-10 15:17:25 +000026945int
26946main ()
26947{
26948
26949 ;
26950 return 0;
26951}
John Criswell7a73b802003-06-30 21:59:07 +000026952_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026953rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026954if { (ac_try="$ac_compile"
26955case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26958esac
26959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026962 grep -v '^ *+' conftest.er1 >conftest.err
26963 rm -f conftest.er1
26964 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
26969 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000026970 ac_cv_header_stdc=yes
26971else
26972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026973sed 's/^/| /' conftest.$ac_ext >&5
26974
Reid Spencera773bd52006-08-04 18:18:08 +000026975 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026976fi
Reid Spencera773bd52006-08-04 18:18:08 +000026977
26978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026979
26980if test $ac_cv_header_stdc = yes; then
26981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26982 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026983/* confdefs.h. */
26984_ACEOF
26985cat confdefs.h >>conftest.$ac_ext
26986cat >>conftest.$ac_ext <<_ACEOF
26987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026988#include <string.h>
26989
26990_ACEOF
26991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026992 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026993 :
26994else
26995 ac_cv_header_stdc=no
26996fi
26997rm -f conftest*
26998
26999fi
27000
27001if test $ac_cv_header_stdc = yes; then
27002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27003 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027004/* confdefs.h. */
27005_ACEOF
27006cat confdefs.h >>conftest.$ac_ext
27007cat >>conftest.$ac_ext <<_ACEOF
27008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027009#include <stdlib.h>
27010
27011_ACEOF
27012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027013 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027014 :
27015else
27016 ac_cv_header_stdc=no
27017fi
27018rm -f conftest*
27019
27020fi
27021
27022if test $ac_cv_header_stdc = yes; then
27023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27024 if test "$cross_compiling" = yes; then
27025 :
27026else
27027 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027028/* confdefs.h. */
27029_ACEOF
27030cat confdefs.h >>conftest.$ac_ext
27031cat >>conftest.$ac_ext <<_ACEOF
27032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027033#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000027034#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000027035#if ((' ' & 0x0FF) == 0x020)
27036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27038#else
John Criswell0c38eaf2003-09-10 15:17:25 +000027039# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027040 (('a' <= (c) && (c) <= 'i') \
27041 || ('j' <= (c) && (c) <= 'r') \
27042 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000027043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27044#endif
27045
27046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27047int
27048main ()
27049{
27050 int i;
27051 for (i = 0; i < 256; i++)
27052 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000027053 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000027054 return 2;
27055 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000027056}
27057_ACEOF
27058rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027059if { (ac_try="$ac_link"
27060case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27063esac
27064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072esac
27073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27078 :
27079else
27080 echo "$as_me: program exited with status $ac_status" >&5
27081echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027082sed 's/^/| /' conftest.$ac_ext >&5
27083
John Criswell7a73b802003-06-30 21:59:07 +000027084( exit $ac_status )
27085ac_cv_header_stdc=no
27086fi
Reid Spencera773bd52006-08-04 18:18:08 +000027087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27088fi
27089
27090
John Criswell7a73b802003-06-30 21:59:07 +000027091fi
27092fi
Reid Spencera773bd52006-08-04 18:18:08 +000027093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027095if test $ac_cv_header_stdc = yes; then
27096
27097cat >>confdefs.h <<\_ACEOF
27098#define STDC_HEADERS 1
27099_ACEOF
27100
27101fi
27102
Reid Spencera773bd52006-08-04 18:18:08 +000027103{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27104echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027105if test "${ac_cv_header_sys_wait_h+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27107else
27108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027109/* confdefs.h. */
27110_ACEOF
27111cat confdefs.h >>conftest.$ac_ext
27112cat >>conftest.$ac_ext <<_ACEOF
27113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027114#include <sys/types.h>
27115#include <sys/wait.h>
27116#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000027117# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000027118#endif
27119#ifndef WIFEXITED
27120# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27121#endif
27122
John Criswell7a73b802003-06-30 21:59:07 +000027123int
27124main ()
27125{
27126 int s;
27127 wait (&s);
27128 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27129 ;
27130 return 0;
27131}
27132_ACEOF
27133rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027134if { (ac_try="$ac_compile"
27135case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27138esac
27139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027141 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027150 ac_cv_header_sys_wait_h=yes
27151else
27152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027153sed 's/^/| /' conftest.$ac_ext >&5
27154
Reid Spencera773bd52006-08-04 18:18:08 +000027155 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000027156fi
Reid Spencera773bd52006-08-04 18:18:08 +000027157
27158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027159fi
Reid Spencera773bd52006-08-04 18:18:08 +000027160{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27161echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027162if test $ac_cv_header_sys_wait_h = yes; then
27163
27164cat >>confdefs.h <<\_ACEOF
27165#define HAVE_SYS_WAIT_H 1
27166_ACEOF
27167
27168fi
27169
Reid Spencera773bd52006-08-04 18:18:08 +000027170{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27171echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027172if test "${ac_cv_header_time+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174else
27175 cat >conftest.$ac_ext <<_ACEOF
27176/* confdefs.h. */
27177_ACEOF
27178cat confdefs.h >>conftest.$ac_ext
27179cat >>conftest.$ac_ext <<_ACEOF
27180/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027181#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027182#include <sys/time.h>
27183#include <time.h>
27184
27185int
27186main ()
27187{
27188if ((struct tm *) 0)
27189return 0;
27190 ;
27191 return 0;
27192}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027193_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027194rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027195if { (ac_try="$ac_compile"
27196case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27199esac
27200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027202 ac_status=$?
27203 grep -v '^ *+' conftest.er1 >conftest.err
27204 rm -f conftest.er1
27205 cat conftest.err >&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027207 (exit $ac_status); } && {
27208 test -z "$ac_c_werror_flag" ||
27209 test ! -s conftest.err
27210 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027211 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027212else
27213 echo "$as_me: failed program was:" >&5
27214sed 's/^/| /' conftest.$ac_ext >&5
27215
Reid Spencera773bd52006-08-04 18:18:08 +000027216 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027217fi
Reid Spencera773bd52006-08-04 18:18:08 +000027218
27219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027220fi
Reid Spencera773bd52006-08-04 18:18:08 +000027221{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27222echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027223if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027224
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027225cat >>confdefs.h <<\_ACEOF
27226#define TIME_WITH_SYS_TIME 1
27227_ACEOF
27228
27229fi
27230
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027231
Reid Spencer59473af2004-12-25 07:31:29 +000027232
27233
27234
27235
27236
27237
27238for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27239do
27240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027245 echo $ECHO_N "(cached) $ECHO_C" >&6
27246fi
Reid Spencera773bd52006-08-04 18:18:08 +000027247ac_res=`eval echo '${'$as_ac_Header'}'`
27248 { echo "$as_me:$LINENO: result: $ac_res" >&5
27249echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027250else
27251 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027252{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027254cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027255/* confdefs.h. */
27256_ACEOF
27257cat confdefs.h >>conftest.$ac_ext
27258cat >>conftest.$ac_ext <<_ACEOF
27259/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027260$ac_includes_default
27261#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027262_ACEOF
27263rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027264if { (ac_try="$ac_compile"
27265case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027271 ac_status=$?
27272 grep -v '^ *+' conftest.er1 >conftest.err
27273 rm -f conftest.er1
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027276 (exit $ac_status); } && {
27277 test -z "$ac_c_werror_flag" ||
27278 test ! -s conftest.err
27279 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027280 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027281else
27282 echo "$as_me: failed program was:" >&5
27283sed 's/^/| /' conftest.$ac_ext >&5
27284
Reid Spencera773bd52006-08-04 18:18:08 +000027285 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027286fi
Reid Spencera773bd52006-08-04 18:18:08 +000027287
27288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27290echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027291
Reid Spencer59473af2004-12-25 07:31:29 +000027292# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027293{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027295cat >conftest.$ac_ext <<_ACEOF
27296/* confdefs.h. */
27297_ACEOF
27298cat confdefs.h >>conftest.$ac_ext
27299cat >>conftest.$ac_ext <<_ACEOF
27300/* end confdefs.h. */
27301#include <$ac_header>
27302_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027303if { (ac_try="$ac_cpp conftest.$ac_ext"
27304case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307esac
27308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027310 ac_status=$?
27311 grep -v '^ *+' conftest.er1 >conftest.err
27312 rm -f conftest.er1
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027315 (exit $ac_status); } >/dev/null && {
27316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27317 test ! -s conftest.err
27318 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027319 ac_header_preproc=yes
27320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ac_header_preproc=no
27325fi
Reid Spencera773bd52006-08-04 18:18:08 +000027326
Reid Spencer59473af2004-12-25 07:31:29 +000027327rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027328{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27329echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027330
27331# So? What about this header?
27332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27333 yes:no: )
27334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27338 ac_header_preproc=yes
27339 ;;
27340 no:yes:* )
27341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027353 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027354## ----------------------------------- ##
27355## Report this to llvmbugs@cs.uiuc.edu ##
27356## ----------------------------------- ##
27357_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027358 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027359 ;;
27360esac
Reid Spencera773bd52006-08-04 18:18:08 +000027361{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027364 echo $ECHO_N "(cached) $ECHO_C" >&6
27365else
27366 eval "$as_ac_Header=\$ac_header_preproc"
27367fi
Reid Spencera773bd52006-08-04 18:18:08 +000027368ac_res=`eval echo '${'$as_ac_Header'}'`
27369 { echo "$as_me:$LINENO: result: $ac_res" >&5
27370echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371
27372fi
Reid Spencer59473af2004-12-25 07:31:29 +000027373if test `eval echo '${'$as_ac_Header'}'` = yes; then
27374 cat >>confdefs.h <<_ACEOF
27375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027376_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027377
27378fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027379
Reid Spencer59473af2004-12-25 07:31:29 +000027380done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027381
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027382
27383
Reid Spencer59473af2004-12-25 07:31:29 +000027384
27385
27386
27387
Reid Spencercdb08a32006-06-05 16:11:07 +000027388for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027389do
27390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027395 echo $ECHO_N "(cached) $ECHO_C" >&6
27396fi
Reid Spencera773bd52006-08-04 18:18:08 +000027397ac_res=`eval echo '${'$as_ac_Header'}'`
27398 { echo "$as_me:$LINENO: result: $ac_res" >&5
27399echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027400else
27401 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027402{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027404cat >conftest.$ac_ext <<_ACEOF
27405/* confdefs.h. */
27406_ACEOF
27407cat confdefs.h >>conftest.$ac_ext
27408cat >>conftest.$ac_ext <<_ACEOF
27409/* end confdefs.h. */
27410$ac_includes_default
27411#include <$ac_header>
27412_ACEOF
27413rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027414if { (ac_try="$ac_compile"
27415case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27418esac
27419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027421 ac_status=$?
27422 grep -v '^ *+' conftest.er1 >conftest.err
27423 rm -f conftest.er1
27424 cat conftest.err >&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027430 ac_header_compiler=yes
27431else
27432 echo "$as_me: failed program was:" >&5
27433sed 's/^/| /' conftest.$ac_ext >&5
27434
Reid Spencera773bd52006-08-04 18:18:08 +000027435 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000027436fi
Reid Spencera773bd52006-08-04 18:18:08 +000027437
27438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27440echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027441
27442# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027443{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027445cat >conftest.$ac_ext <<_ACEOF
27446/* confdefs.h. */
27447_ACEOF
27448cat confdefs.h >>conftest.$ac_ext
27449cat >>conftest.$ac_ext <<_ACEOF
27450/* end confdefs.h. */
27451#include <$ac_header>
27452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027453if { (ac_try="$ac_cpp conftest.$ac_ext"
27454case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27457esac
27458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027465 (exit $ac_status); } >/dev/null && {
27466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27468 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027469 ac_header_preproc=yes
27470else
27471 echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
27474 ac_header_preproc=no
27475fi
Reid Spencera773bd52006-08-04 18:18:08 +000027476
Reid Spencer59473af2004-12-25 07:31:29 +000027477rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27479echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027480
27481# So? What about this header?
27482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27483 yes:no: )
27484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27488 ac_header_preproc=yes
27489 ;;
27490 no:yes:* )
27491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027503 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027504## ----------------------------------- ##
27505## Report this to llvmbugs@cs.uiuc.edu ##
27506## ----------------------------------- ##
27507_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027508 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027509 ;;
27510esac
Reid Spencera773bd52006-08-04 18:18:08 +000027511{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027514 echo $ECHO_N "(cached) $ECHO_C" >&6
27515else
27516 eval "$as_ac_Header=\$ac_header_preproc"
27517fi
Reid Spencera773bd52006-08-04 18:18:08 +000027518ac_res=`eval echo '${'$as_ac_Header'}'`
27519 { echo "$as_me:$LINENO: result: $ac_res" >&5
27520echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027521
27522fi
27523if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27526_ACEOF
27527
27528fi
27529
27530done
27531
27532
Reid Spencerbe3e4192007-08-17 05:45:26 +000027533for ac_header in windows.h
27534do
27535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27540 echo $ECHO_N "(cached) $ECHO_C" >&6
27541fi
27542ac_res=`eval echo '${'$as_ac_Header'}'`
27543 { echo "$as_me:$LINENO: result: $ac_res" >&5
27544echo "${ECHO_T}$ac_res" >&6; }
27545else
27546 # Is the header compilable?
27547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27549cat >conftest.$ac_ext <<_ACEOF
27550/* confdefs.h. */
27551_ACEOF
27552cat confdefs.h >>conftest.$ac_ext
27553cat >>conftest.$ac_ext <<_ACEOF
27554/* end confdefs.h. */
27555$ac_includes_default
27556#include <$ac_header>
27557_ACEOF
27558rm -f conftest.$ac_objext
27559if { (ac_try="$ac_compile"
27560case "(($ac_try" in
27561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27562 *) ac_try_echo=$ac_try;;
27563esac
27564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27565 (eval "$ac_compile") 2>conftest.er1
27566 ac_status=$?
27567 grep -v '^ *+' conftest.er1 >conftest.err
27568 rm -f conftest.er1
27569 cat conftest.err >&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027571 (exit $ac_status); } && {
27572 test -z "$ac_c_werror_flag" ||
27573 test ! -s conftest.err
27574 } && test -s conftest.$ac_objext; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027575 ac_header_compiler=yes
27576else
27577 echo "$as_me: failed program was:" >&5
27578sed 's/^/| /' conftest.$ac_ext >&5
27579
27580 ac_header_compiler=no
27581fi
27582
27583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27585echo "${ECHO_T}$ac_header_compiler" >&6; }
27586
27587# Is the header present?
27588{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27590cat >conftest.$ac_ext <<_ACEOF
27591/* confdefs.h. */
27592_ACEOF
27593cat confdefs.h >>conftest.$ac_ext
27594cat >>conftest.$ac_ext <<_ACEOF
27595/* end confdefs.h. */
27596#include <$ac_header>
27597_ACEOF
27598if { (ac_try="$ac_cpp conftest.$ac_ext"
27599case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27602esac
27603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27605 ac_status=$?
27606 grep -v '^ *+' conftest.er1 >conftest.err
27607 rm -f conftest.er1
27608 cat conftest.err >&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027610 (exit $ac_status); } >/dev/null && {
27611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27612 test ! -s conftest.err
27613 }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027614 ac_header_preproc=yes
27615else
27616 echo "$as_me: failed program was:" >&5
27617sed 's/^/| /' conftest.$ac_ext >&5
27618
27619 ac_header_preproc=no
27620fi
27621
27622rm -f conftest.err conftest.$ac_ext
27623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27624echo "${ECHO_T}$ac_header_preproc" >&6; }
27625
27626# So? What about this header?
27627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27628 yes:no: )
27629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27633 ac_header_preproc=yes
27634 ;;
27635 no:yes:* )
27636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27648 ( cat <<\_ASBOX
27649## ----------------------------------- ##
27650## Report this to llvmbugs@cs.uiuc.edu ##
27651## ----------------------------------- ##
27652_ASBOX
27653 ) | sed "s/^/$as_me: WARNING: /" >&2
27654 ;;
27655esac
27656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27660else
27661 eval "$as_ac_Header=\$ac_header_preproc"
27662fi
27663ac_res=`eval echo '${'$as_ac_Header'}'`
27664 { echo "$as_me:$LINENO: result: $ac_res" >&5
27665echo "${ECHO_T}$ac_res" >&6; }
27666
27667fi
27668if test `eval echo '${'$as_ac_Header'}'` = yes; then
27669 cat >>confdefs.h <<_ACEOF
27670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27671_ACEOF
27672
27673fi
27674
27675done
Reid Spencer59473af2004-12-25 07:31:29 +000027676
27677
27678
27679
Reid Spencerbe3e4192007-08-17 05:45:26 +000027680
27681for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027682do
27683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027688 echo $ECHO_N "(cached) $ECHO_C" >&6
27689fi
Reid Spencera773bd52006-08-04 18:18:08 +000027690ac_res=`eval echo '${'$as_ac_Header'}'`
27691 { echo "$as_me:$LINENO: result: $ac_res" >&5
27692echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027693else
27694 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027695{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027697cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027698/* confdefs.h. */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h. */
27703$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027704#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027705_ACEOF
27706rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027707if { (ac_try="$ac_compile"
27708case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27711esac
27712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027715 grep -v '^ *+' conftest.er1 >conftest.err
27716 rm -f conftest.er1
27717 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027719 (exit $ac_status); } && {
27720 test -z "$ac_c_werror_flag" ||
27721 test ! -s conftest.err
27722 } && test -s conftest.$ac_objext; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027723 ac_header_compiler=yes
27724else
27725 echo "$as_me: failed program was:" >&5
27726sed 's/^/| /' conftest.$ac_ext >&5
27727
Reid Spencera773bd52006-08-04 18:18:08 +000027728 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027729fi
Reid Spencera773bd52006-08-04 18:18:08 +000027730
27731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27733echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027734
27735# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027738cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027739/* confdefs.h. */
27740_ACEOF
27741cat confdefs.h >>conftest.$ac_ext
27742cat >>conftest.$ac_ext <<_ACEOF
27743/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027744#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027746if { (ac_try="$ac_cpp conftest.$ac_ext"
27747case "(($ac_try" in
27748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749 *) ac_try_echo=$ac_try;;
27750esac
27751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027753 ac_status=$?
27754 grep -v '^ *+' conftest.er1 >conftest.err
27755 rm -f conftest.er1
27756 cat conftest.err >&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027758 (exit $ac_status); } >/dev/null && {
27759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27760 test ! -s conftest.err
27761 }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027762 ac_header_preproc=yes
27763else
27764 echo "$as_me: failed program was:" >&5
27765sed 's/^/| /' conftest.$ac_ext >&5
27766
27767 ac_header_preproc=no
27768fi
Reid Spencera773bd52006-08-04 18:18:08 +000027769
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027770rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027771{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27772echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027773
27774# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27776 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027781 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027782 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027783 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027796 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027797## ----------------------------------- ##
27798## Report this to llvmbugs@cs.uiuc.edu ##
27799## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027800_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027801 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027802 ;;
27803esac
Reid Spencera773bd52006-08-04 18:18:08 +000027804{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027807 echo $ECHO_N "(cached) $ECHO_C" >&6
27808else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027809 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027810fi
Reid Spencera773bd52006-08-04 18:18:08 +000027811ac_res=`eval echo '${'$as_ac_Header'}'`
27812 { echo "$as_me:$LINENO: result: $ac_res" >&5
27813echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027814
27815fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027816if test `eval echo '${'$as_ac_Header'}'` = yes; then
27817 cat >>confdefs.h <<_ACEOF
27818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027819_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027820
27821fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027823done
27824
John Criswell7ed43ad2004-07-19 16:12:29 +000027825
Reid Spencercdb08a32006-06-05 16:11:07 +000027826
Reid Spencera6d990a2006-09-14 06:17:21 +000027827
27828for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000027829do
27830as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027835 echo $ECHO_N "(cached) $ECHO_C" >&6
27836fi
Reid Spencera773bd52006-08-04 18:18:08 +000027837ac_res=`eval echo '${'$as_ac_Header'}'`
27838 { echo "$as_me:$LINENO: result: $ac_res" >&5
27839echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027840else
27841 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027842{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027844cat >conftest.$ac_ext <<_ACEOF
27845/* confdefs.h. */
27846_ACEOF
27847cat confdefs.h >>conftest.$ac_ext
27848cat >>conftest.$ac_ext <<_ACEOF
27849/* end confdefs.h. */
27850$ac_includes_default
27851#include <$ac_header>
27852_ACEOF
27853rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027854if { (ac_try="$ac_compile"
27855case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27858esac
27859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027861 ac_status=$?
27862 grep -v '^ *+' conftest.er1 >conftest.err
27863 rm -f conftest.er1
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027866 (exit $ac_status); } && {
27867 test -z "$ac_c_werror_flag" ||
27868 test ! -s conftest.err
27869 } && test -s conftest.$ac_objext; then
Chris Lattner0b142592005-11-14 06:57:34 +000027870 ac_header_compiler=yes
27871else
27872 echo "$as_me: failed program was:" >&5
27873sed 's/^/| /' conftest.$ac_ext >&5
27874
Reid Spencera773bd52006-08-04 18:18:08 +000027875 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000027876fi
Reid Spencera773bd52006-08-04 18:18:08 +000027877
27878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27880echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027881
27882# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027883{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027885cat >conftest.$ac_ext <<_ACEOF
27886/* confdefs.h. */
27887_ACEOF
27888cat confdefs.h >>conftest.$ac_ext
27889cat >>conftest.$ac_ext <<_ACEOF
27890/* end confdefs.h. */
27891#include <$ac_header>
27892_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027893if { (ac_try="$ac_cpp conftest.$ac_ext"
27894case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27897esac
27898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027900 ac_status=$?
27901 grep -v '^ *+' conftest.er1 >conftest.err
27902 rm -f conftest.er1
27903 cat conftest.err >&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027905 (exit $ac_status); } >/dev/null && {
27906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27907 test ! -s conftest.err
27908 }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027909 ac_header_preproc=yes
27910else
27911 echo "$as_me: failed program was:" >&5
27912sed 's/^/| /' conftest.$ac_ext >&5
27913
27914 ac_header_preproc=no
27915fi
Reid Spencera773bd52006-08-04 18:18:08 +000027916
Chris Lattner0b142592005-11-14 06:57:34 +000027917rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027918{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27919echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027920
27921# So? What about this header?
27922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27923 yes:no: )
27924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27928 ac_header_preproc=yes
27929 ;;
27930 no:yes:* )
27931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027943 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000027944## ----------------------------------- ##
27945## Report this to llvmbugs@cs.uiuc.edu ##
27946## ----------------------------------- ##
27947_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027948 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000027949 ;;
27950esac
Reid Spencera773bd52006-08-04 18:18:08 +000027951{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027954 echo $ECHO_N "(cached) $ECHO_C" >&6
27955else
27956 eval "$as_ac_Header=\$ac_header_preproc"
27957fi
Reid Spencera773bd52006-08-04 18:18:08 +000027958ac_res=`eval echo '${'$as_ac_Header'}'`
27959 { echo "$as_me:$LINENO: result: $ac_res" >&5
27960echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027961
27962fi
27963if test `eval echo '${'$as_ac_Header'}'` = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27966_ACEOF
27967
27968fi
27969
27970done
27971
Reid Spencer0a262ba2005-08-24 10:07:20 +000027972if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027973
27974for ac_header in pthread.h
27975do
27976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000027981 echo $ECHO_N "(cached) $ECHO_C" >&6
27982fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000027983ac_res=`eval echo '${'$as_ac_Header'}'`
27984 { echo "$as_me:$LINENO: result: $ac_res" >&5
27985echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027986else
27987 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000027988{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027990cat >conftest.$ac_ext <<_ACEOF
27991/* confdefs.h. */
27992_ACEOF
27993cat confdefs.h >>conftest.$ac_ext
27994cat >>conftest.$ac_ext <<_ACEOF
27995/* end confdefs.h. */
27996$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000027997#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000027998_ACEOF
27999rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028000if { (ac_try="$ac_compile"
28001case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28004esac
28005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028007 ac_status=$?
28008 grep -v '^ *+' conftest.er1 >conftest.err
28009 rm -f conftest.er1
28010 cat conftest.err >&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028012 (exit $ac_status); } && {
28013 test -z "$ac_c_werror_flag" ||
28014 test ! -s conftest.err
28015 } && test -s conftest.$ac_objext; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028016 ac_header_compiler=yes
28017else
28018 echo "$as_me: failed program was:" >&5
28019sed 's/^/| /' conftest.$ac_ext >&5
28020
Reid Spencera773bd52006-08-04 18:18:08 +000028021 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000028022fi
Reid Spencera773bd52006-08-04 18:18:08 +000028023
28024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28026echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028027
28028# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028031cat >conftest.$ac_ext <<_ACEOF
28032/* confdefs.h. */
28033_ACEOF
28034cat confdefs.h >>conftest.$ac_ext
28035cat >>conftest.$ac_ext <<_ACEOF
28036/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000028037#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028039if { (ac_try="$ac_cpp conftest.$ac_ext"
28040case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28043esac
28044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028046 ac_status=$?
28047 grep -v '^ *+' conftest.er1 >conftest.err
28048 rm -f conftest.er1
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028051 (exit $ac_status); } >/dev/null && {
28052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28053 test ! -s conftest.err
28054 }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028055 ac_header_preproc=yes
28056else
28057 echo "$as_me: failed program was:" >&5
28058sed 's/^/| /' conftest.$ac_ext >&5
28059
28060 ac_header_preproc=no
28061fi
Reid Spencera773bd52006-08-04 18:18:08 +000028062
Reid Spencer0a262ba2005-08-24 10:07:20 +000028063rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28065echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028066
28067# So? What about this header?
28068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28069 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000028074 ac_header_preproc=yes
28075 ;;
28076 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028089 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000028090## ----------------------------------- ##
28091## Report this to llvmbugs@cs.uiuc.edu ##
28092## ----------------------------------- ##
28093_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028094 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000028095 ;;
28096esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000028097{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028100 echo $ECHO_N "(cached) $ECHO_C" >&6
28101else
Reid Spencerbe3e4192007-08-17 05:45:26 +000028102 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000028103fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028104ac_res=`eval echo '${'$as_ac_Header'}'`
28105 { echo "$as_me:$LINENO: result: $ac_res" >&5
28106echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028107
28108fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028109if test `eval echo '${'$as_ac_Header'}'` = yes; then
28110 cat >>confdefs.h <<_ACEOF
28111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28112_ACEOF
28113 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000028114
28115else
28116 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028117
28118fi
28119
Reid Spencerbe3e4192007-08-17 05:45:26 +000028120done
Reid Spencer1000b732006-12-01 00:37:14 +000028121
28122else
28123 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028124
28125fi
Reid Spencer8085cff2005-01-16 02:58:39 +000028126
28127
Reid Spencerb2ed05262006-11-03 18:04:08 +000028128
28129 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28130echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28131if test "${ac_cv_huge_val_sanity+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28133else
28134
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028135 ac_ext=cpp
28136ac_cpp='$CXXCPP $CPPFLAGS'
28137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000028140
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028141 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000028142 if test "$cross_compiling" = yes; then
28143 ac_cv_huge_val_sanity=yes
28144else
28145 cat >conftest.$ac_ext <<_ACEOF
28146/* confdefs.h. */
28147_ACEOF
28148cat confdefs.h >>conftest.$ac_ext
28149cat >>conftest.$ac_ext <<_ACEOF
28150/* end confdefs.h. */
28151#include <math.h>
28152int
28153main ()
28154{
28155double x = HUGE_VAL; return x != x;
28156 ;
28157 return 0;
28158}
28159_ACEOF
28160rm -f conftest$ac_exeext
28161if { (ac_try="$ac_link"
28162case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28165esac
28166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167 (eval "$ac_link") 2>&5
28168 ac_status=$?
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28171 { (case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_try") 2>&5
28177 ac_status=$?
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); }; }; then
28180 ac_cv_huge_val_sanity=yes
28181else
28182 echo "$as_me: program exited with status $ac_status" >&5
28183echo "$as_me: failed program was:" >&5
28184sed 's/^/| /' conftest.$ac_ext >&5
28185
28186( exit $ac_status )
28187ac_cv_huge_val_sanity=no
28188fi
28189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28190fi
28191
28192
28193 ac_ext=c
28194ac_cpp='$CPP $CPPFLAGS'
28195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28197ac_compiler_gnu=$ac_cv_c_compiler_gnu
28198
28199
28200fi
28201{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28202echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28203 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28204
28205
Reid Spencera773bd52006-08-04 18:18:08 +000028206{ echo "$as_me:$LINENO: checking for pid_t" >&5
28207echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028208if test "${ac_cv_type_pid_t+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210else
28211 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028212/* confdefs.h. */
28213_ACEOF
28214cat confdefs.h >>conftest.$ac_ext
28215cat >>conftest.$ac_ext <<_ACEOF
28216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028217$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028218typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028219int
28220main ()
28221{
Reid Spencera773bd52006-08-04 18:18:08 +000028222if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028223 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028224if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028225 return 0;
28226 ;
28227 return 0;
28228}
28229_ACEOF
28230rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028231if { (ac_try="$ac_compile"
28232case "(($ac_try" in
28233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 *) ac_try_echo=$ac_try;;
28235esac
28236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028239 grep -v '^ *+' conftest.er1 >conftest.err
28240 rm -f conftest.er1
28241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028243 (exit $ac_status); } && {
28244 test -z "$ac_c_werror_flag" ||
28245 test ! -s conftest.err
28246 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028247 ac_cv_type_pid_t=yes
28248else
28249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028250sed 's/^/| /' conftest.$ac_ext >&5
28251
Reid Spencera773bd52006-08-04 18:18:08 +000028252 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028253fi
Reid Spencera773bd52006-08-04 18:18:08 +000028254
28255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028256fi
Reid Spencera773bd52006-08-04 18:18:08 +000028257{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28258echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028259if test $ac_cv_type_pid_t = yes; then
28260 :
28261else
28262
28263cat >>confdefs.h <<_ACEOF
28264#define pid_t int
28265_ACEOF
28266
28267fi
28268
Reid Spencera773bd52006-08-04 18:18:08 +000028269{ echo "$as_me:$LINENO: checking for size_t" >&5
28270echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028271if test "${ac_cv_type_size_t+set}" = set; then
28272 echo $ECHO_N "(cached) $ECHO_C" >&6
28273else
28274 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028275/* confdefs.h. */
28276_ACEOF
28277cat confdefs.h >>conftest.$ac_ext
28278cat >>conftest.$ac_ext <<_ACEOF
28279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028280$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028281typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028282int
28283main ()
28284{
Reid Spencera773bd52006-08-04 18:18:08 +000028285if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028286 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028287if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028288 return 0;
28289 ;
28290 return 0;
28291}
28292_ACEOF
28293rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028294if { (ac_try="$ac_compile"
28295case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28298esac
28299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028301 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028302 grep -v '^ *+' conftest.er1 >conftest.err
28303 rm -f conftest.er1
28304 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028306 (exit $ac_status); } && {
28307 test -z "$ac_c_werror_flag" ||
28308 test ! -s conftest.err
28309 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028310 ac_cv_type_size_t=yes
28311else
28312 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028313sed 's/^/| /' conftest.$ac_ext >&5
28314
Reid Spencera773bd52006-08-04 18:18:08 +000028315 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028316fi
Reid Spencera773bd52006-08-04 18:18:08 +000028317
28318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028319fi
Reid Spencera773bd52006-08-04 18:18:08 +000028320{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28321echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028322if test $ac_cv_type_size_t = yes; then
28323 :
28324else
28325
28326cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028327#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000028328_ACEOF
28329
28330fi
28331
Reid Spencera773bd52006-08-04 18:18:08 +000028332{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28333echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028334if test "${ac_cv_type_signal+set}" = set; then
28335 echo $ECHO_N "(cached) $ECHO_C" >&6
28336else
28337 cat >conftest.$ac_ext <<_ACEOF
28338/* confdefs.h. */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h. */
28343#include <sys/types.h>
28344#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028345
28346int
28347main ()
28348{
Reid Spencera773bd52006-08-04 18:18:08 +000028349return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028350 ;
28351 return 0;
28352}
28353_ACEOF
28354rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028355if { (ac_try="$ac_compile"
28356case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28359esac
28360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028362 ac_status=$?
28363 grep -v '^ *+' conftest.er1 >conftest.err
28364 rm -f conftest.er1
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028367 (exit $ac_status); } && {
28368 test -z "$ac_c_werror_flag" ||
28369 test ! -s conftest.err
28370 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +000028371 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028372else
28373 echo "$as_me: failed program was:" >&5
28374sed 's/^/| /' conftest.$ac_ext >&5
28375
Reid Spencera773bd52006-08-04 18:18:08 +000028376 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028377fi
Reid Spencera773bd52006-08-04 18:18:08 +000028378
28379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028380fi
Reid Spencera773bd52006-08-04 18:18:08 +000028381{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28382echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028383
28384cat >>confdefs.h <<_ACEOF
28385#define RETSIGTYPE $ac_cv_type_signal
28386_ACEOF
28387
28388
Reid Spencera773bd52006-08-04 18:18:08 +000028389{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28390echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028391if test "${ac_cv_struct_tm+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28393else
28394 cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400#include <sys/types.h>
28401#include <time.h>
28402
28403int
28404main ()
28405{
Scott Michel96dcd2b2007-12-05 21:24:02 +000028406struct tm tm;
28407 int *p = &tm.tm_sec;
28408 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028409 ;
28410 return 0;
28411}
28412_ACEOF
28413rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028414if { (ac_try="$ac_compile"
28415case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28418esac
28419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028421 ac_status=$?
28422 grep -v '^ *+' conftest.er1 >conftest.err
28423 rm -f conftest.er1
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028426 (exit $ac_status); } && {
28427 test -z "$ac_c_werror_flag" ||
28428 test ! -s conftest.err
28429 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028430 ac_cv_struct_tm=time.h
28431else
28432 echo "$as_me: failed program was:" >&5
28433sed 's/^/| /' conftest.$ac_ext >&5
28434
Reid Spencera773bd52006-08-04 18:18:08 +000028435 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028436fi
Reid Spencera773bd52006-08-04 18:18:08 +000028437
28438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028439fi
Reid Spencera773bd52006-08-04 18:18:08 +000028440{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28441echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028442if test $ac_cv_struct_tm = sys/time.h; then
28443
28444cat >>confdefs.h <<\_ACEOF
28445#define TM_IN_SYS_TIME 1
28446_ACEOF
28447
28448fi
28449
Reid Spencera773bd52006-08-04 18:18:08 +000028450{ echo "$as_me:$LINENO: checking for int64_t" >&5
28451echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028452if test "${ac_cv_type_int64_t+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28454else
28455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028461$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028462typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028463int
28464main ()
28465{
Reid Spencera773bd52006-08-04 18:18:08 +000028466if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028467 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028468if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028469 return 0;
28470 ;
28471 return 0;
28472}
28473_ACEOF
28474rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028475if { (ac_try="$ac_compile"
28476case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28479esac
28480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028483 grep -v '^ *+' conftest.er1 >conftest.err
28484 rm -f conftest.er1
28485 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028487 (exit $ac_status); } && {
28488 test -z "$ac_c_werror_flag" ||
28489 test ! -s conftest.err
28490 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028491 ac_cv_type_int64_t=yes
28492else
28493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028494sed 's/^/| /' conftest.$ac_ext >&5
28495
Reid Spencera773bd52006-08-04 18:18:08 +000028496 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028497fi
Reid Spencera773bd52006-08-04 18:18:08 +000028498
28499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028500fi
Reid Spencera773bd52006-08-04 18:18:08 +000028501{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28502echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028503if test $ac_cv_type_int64_t = yes; then
28504
28505cat >>confdefs.h <<_ACEOF
28506#define HAVE_INT64_T 1
28507_ACEOF
28508
28509
28510else
28511 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28512echo "$as_me: error: Type int64_t required but not found" >&2;}
28513 { (exit 1); exit 1; }; }
28514fi
28515
Reid Spencera773bd52006-08-04 18:18:08 +000028516{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28517echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028518if test "${ac_cv_type_uint64_t+set}" = set; then
28519 echo $ECHO_N "(cached) $ECHO_C" >&6
28520else
28521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028522/* confdefs.h. */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028527$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028528typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028529int
28530main ()
28531{
Reid Spencera773bd52006-08-04 18:18:08 +000028532if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028533 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028534if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028535 return 0;
28536 ;
28537 return 0;
28538}
28539_ACEOF
28540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028541if { (ac_try="$ac_compile"
28542case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028549 grep -v '^ *+' conftest.er1 >conftest.err
28550 rm -f conftest.er1
28551 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028553 (exit $ac_status); } && {
28554 test -z "$ac_c_werror_flag" ||
28555 test ! -s conftest.err
28556 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028557 ac_cv_type_uint64_t=yes
28558else
28559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028560sed 's/^/| /' conftest.$ac_ext >&5
28561
Reid Spencera773bd52006-08-04 18:18:08 +000028562 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028563fi
Reid Spencera773bd52006-08-04 18:18:08 +000028564
28565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028566fi
Reid Spencera773bd52006-08-04 18:18:08 +000028567{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28568echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028569if test $ac_cv_type_uint64_t = yes; then
28570
28571cat >>confdefs.h <<_ACEOF
28572#define HAVE_UINT64_T 1
28573_ACEOF
28574
28575
28576else
Reid Spencera773bd52006-08-04 18:18:08 +000028577 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28578echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028579if test "${ac_cv_type_u_int64_t+set}" = set; then
28580 echo $ECHO_N "(cached) $ECHO_C" >&6
28581else
28582 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
28588$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028589typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000028590int
28591main ()
28592{
Reid Spencera773bd52006-08-04 18:18:08 +000028593if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000028594 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028595if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000028596 return 0;
28597 ;
28598 return 0;
28599}
28600_ACEOF
28601rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028602if { (ac_try="$ac_compile"
28603case "(($ac_try" in
28604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 *) ac_try_echo=$ac_try;;
28606esac
28607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028609 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028610 grep -v '^ *+' conftest.er1 >conftest.err
28611 rm -f conftest.er1
28612 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028614 (exit $ac_status); } && {
28615 test -z "$ac_c_werror_flag" ||
28616 test ! -s conftest.err
28617 } && test -s conftest.$ac_objext; then
John Criswell679ff312004-09-02 18:44:44 +000028618 ac_cv_type_u_int64_t=yes
28619else
28620 echo "$as_me: failed program was:" >&5
28621sed 's/^/| /' conftest.$ac_ext >&5
28622
Reid Spencera773bd52006-08-04 18:18:08 +000028623 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000028624fi
Reid Spencera773bd52006-08-04 18:18:08 +000028625
28626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028627fi
Reid Spencera773bd52006-08-04 18:18:08 +000028628{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28629echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028630if test $ac_cv_type_u_int64_t = yes; then
28631
28632cat >>confdefs.h <<_ACEOF
28633#define HAVE_U_INT64_T 1
28634_ACEOF
28635
28636
Misha Brukmanceca9042004-09-02 23:02:30 +000028637else
28638 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28639echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28640 { (exit 1); exit 1; }; }
28641fi
28642
John Criswell679ff312004-09-02 18:44:44 +000028643fi
28644
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028645
28646
28647
28648
28649
28650
28651
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028652
28653
Reid Spencerdf3be822006-01-23 08:15:53 +000028654for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028655do
28656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028657{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28659if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661else
28662 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28670#define $ac_func innocuous_$ac_func
28671
28672/* System header to define __stub macros and hopefully few prototypes,
28673 which can conflict with char $ac_func (); below.
28674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28675 <limits.h> exists even on freestanding compilers. */
28676
28677#ifdef __STDC__
28678# include <limits.h>
28679#else
28680# include <assert.h>
28681#endif
28682
28683#undef $ac_func
28684
Reid Spencera773bd52006-08-04 18:18:08 +000028685/* Override any GCC internal prototype to avoid an error.
28686 Use char because int might match the return type of a GCC
28687 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028688#ifdef __cplusplus
28689extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028690#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028691char $ac_func ();
28692/* The GNU C library defines this for functions which it implements
28693 to always fail with ENOSYS. Some functions are actually named
28694 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028695#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028696choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028697#endif
John Criswell7a73b802003-06-30 21:59:07 +000028698
John Criswell7a73b802003-06-30 21:59:07 +000028699int
28700main ()
28701{
Reid Spencera773bd52006-08-04 18:18:08 +000028702return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028703 ;
28704 return 0;
28705}
28706_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028707rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028708if { (ac_try="$ac_link"
28709case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28712esac
28713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028715 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028716 grep -v '^ *+' conftest.er1 >conftest.err
28717 rm -f conftest.er1
28718 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028720 (exit $ac_status); } && {
28721 test -z "$ac_c_werror_flag" ||
28722 test ! -s conftest.err
28723 } && test -s conftest$ac_exeext &&
28724 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028725 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028726else
28727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028728sed 's/^/| /' conftest.$ac_ext >&5
28729
Reid Spencera773bd52006-08-04 18:18:08 +000028730 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028731fi
Reid Spencera773bd52006-08-04 18:18:08 +000028732
Scott Michel96dcd2b2007-12-05 21:24:02 +000028733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028734 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028735fi
Reid Spencera773bd52006-08-04 18:18:08 +000028736ac_res=`eval echo '${'$as_ac_var'}'`
28737 { echo "$as_me:$LINENO: result: $ac_res" >&5
28738echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028739if test `eval echo '${'$as_ac_var'}'` = yes; then
28740 cat >>confdefs.h <<_ACEOF
28741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028742_ACEOF
28743
28744fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028745done
John Criswell7a73b802003-06-30 21:59:07 +000028746
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028747
28748
28749
Reid Spencer6af3d262004-12-15 04:01:48 +000028750
Reid Spencer96cf5872007-07-13 10:05:30 +000028751for ac_func in powf fmodf strtof round
28752do
28753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28758else
28759 cat >conftest.$ac_ext <<_ACEOF
28760/* confdefs.h. */
28761_ACEOF
28762cat confdefs.h >>conftest.$ac_ext
28763cat >>conftest.$ac_ext <<_ACEOF
28764/* end confdefs.h. */
28765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28767#define $ac_func innocuous_$ac_func
28768
28769/* System header to define __stub macros and hopefully few prototypes,
28770 which can conflict with char $ac_func (); below.
28771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28772 <limits.h> exists even on freestanding compilers. */
28773
28774#ifdef __STDC__
28775# include <limits.h>
28776#else
28777# include <assert.h>
28778#endif
28779
28780#undef $ac_func
28781
28782/* Override any GCC internal prototype to avoid an error.
28783 Use char because int might match the return type of a GCC
28784 builtin and then its argument prototype would still apply. */
28785#ifdef __cplusplus
28786extern "C"
28787#endif
28788char $ac_func ();
28789/* The GNU C library defines this for functions which it implements
28790 to always fail with ENOSYS. Some functions are actually named
28791 something starting with __ and the normal name is an alias. */
28792#if defined __stub_$ac_func || defined __stub___$ac_func
28793choke me
28794#endif
28795
28796int
28797main ()
28798{
28799return $ac_func ();
28800 ;
28801 return 0;
28802}
28803_ACEOF
28804rm -f conftest.$ac_objext conftest$ac_exeext
28805if { (ac_try="$ac_link"
28806case "(($ac_try" in
28807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28808 *) ac_try_echo=$ac_try;;
28809esac
28810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28811 (eval "$ac_link") 2>conftest.er1
28812 ac_status=$?
28813 grep -v '^ *+' conftest.er1 >conftest.err
28814 rm -f conftest.er1
28815 cat conftest.err >&5
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028817 (exit $ac_status); } && {
28818 test -z "$ac_c_werror_flag" ||
28819 test ! -s conftest.err
28820 } && test -s conftest$ac_exeext &&
28821 $as_test_x conftest$ac_exeext; then
Reid Spencer96cf5872007-07-13 10:05:30 +000028822 eval "$as_ac_var=yes"
28823else
28824 echo "$as_me: failed program was:" >&5
28825sed 's/^/| /' conftest.$ac_ext >&5
28826
28827 eval "$as_ac_var=no"
28828fi
28829
Scott Michel96dcd2b2007-12-05 21:24:02 +000028830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer96cf5872007-07-13 10:05:30 +000028831 conftest$ac_exeext conftest.$ac_ext
28832fi
28833ac_res=`eval echo '${'$as_ac_var'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835echo "${ECHO_T}$ac_res" >&6; }
28836if test `eval echo '${'$as_ac_var'}'` = yes; then
28837 cat >>confdefs.h <<_ACEOF
28838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28839_ACEOF
28840
28841fi
28842done
28843
28844
28845
28846
28847
Reid Spencer6af3d262004-12-15 04:01:48 +000028848
Reid Spencerb90645c2007-02-16 19:17:20 +000028849for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28850do
28851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28852{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28854if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28855 echo $ECHO_N "(cached) $ECHO_C" >&6
28856else
28857 cat >conftest.$ac_ext <<_ACEOF
28858/* confdefs.h. */
28859_ACEOF
28860cat confdefs.h >>conftest.$ac_ext
28861cat >>conftest.$ac_ext <<_ACEOF
28862/* end confdefs.h. */
28863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28865#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000028866
Reid Spencerb90645c2007-02-16 19:17:20 +000028867/* System header to define __stub macros and hopefully few prototypes,
28868 which can conflict with char $ac_func (); below.
28869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28870 <limits.h> exists even on freestanding compilers. */
28871
28872#ifdef __STDC__
28873# include <limits.h>
28874#else
28875# include <assert.h>
28876#endif
28877
28878#undef $ac_func
28879
28880/* Override any GCC internal prototype to avoid an error.
28881 Use char because int might match the return type of a GCC
28882 builtin and then its argument prototype would still apply. */
28883#ifdef __cplusplus
28884extern "C"
28885#endif
28886char $ac_func ();
28887/* The GNU C library defines this for functions which it implements
28888 to always fail with ENOSYS. Some functions are actually named
28889 something starting with __ and the normal name is an alias. */
28890#if defined __stub_$ac_func || defined __stub___$ac_func
28891choke me
28892#endif
28893
28894int
28895main ()
28896{
28897return $ac_func ();
28898 ;
28899 return 0;
28900}
28901_ACEOF
28902rm -f conftest.$ac_objext conftest$ac_exeext
28903if { (ac_try="$ac_link"
28904case "(($ac_try" in
28905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28907esac
28908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_link") 2>conftest.er1
28910 ac_status=$?
28911 grep -v '^ *+' conftest.er1 >conftest.err
28912 rm -f conftest.er1
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028915 (exit $ac_status); } && {
28916 test -z "$ac_c_werror_flag" ||
28917 test ! -s conftest.err
28918 } && test -s conftest$ac_exeext &&
28919 $as_test_x conftest$ac_exeext; then
Reid Spencerb90645c2007-02-16 19:17:20 +000028920 eval "$as_ac_var=yes"
28921else
28922 echo "$as_me: failed program was:" >&5
28923sed 's/^/| /' conftest.$ac_ext >&5
28924
28925 eval "$as_ac_var=no"
28926fi
28927
Scott Michel96dcd2b2007-12-05 21:24:02 +000028928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb90645c2007-02-16 19:17:20 +000028929 conftest$ac_exeext conftest.$ac_ext
28930fi
28931ac_res=`eval echo '${'$as_ac_var'}'`
28932 { echo "$as_me:$LINENO: result: $ac_res" >&5
28933echo "${ECHO_T}$ac_res" >&6; }
28934if test `eval echo '${'$as_ac_var'}'` = yes; then
28935 cat >>confdefs.h <<_ACEOF
28936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28937_ACEOF
28938
28939fi
28940done
28941
28942
28943
28944
28945for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000028946do
28947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028948{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000028951 echo $ECHO_N "(cached) $ECHO_C" >&6
28952else
28953 cat >conftest.$ac_ext <<_ACEOF
28954/* confdefs.h. */
28955_ACEOF
28956cat confdefs.h >>conftest.$ac_ext
28957cat >>conftest.$ac_ext <<_ACEOF
28958/* end confdefs.h. */
28959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28961#define $ac_func innocuous_$ac_func
28962
28963/* System header to define __stub macros and hopefully few prototypes,
28964 which can conflict with char $ac_func (); below.
28965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966 <limits.h> exists even on freestanding compilers. */
28967
28968#ifdef __STDC__
28969# include <limits.h>
28970#else
28971# include <assert.h>
28972#endif
28973
28974#undef $ac_func
28975
Reid Spencera773bd52006-08-04 18:18:08 +000028976/* Override any GCC internal prototype to avoid an error.
28977 Use char because int might match the return type of a GCC
28978 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000028979#ifdef __cplusplus
28980extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000028981#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000028982char $ac_func ();
28983/* The GNU C library defines this for functions which it implements
28984 to always fail with ENOSYS. Some functions are actually named
28985 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028986#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000028987choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000028988#endif
28989
28990int
28991main ()
28992{
Reid Spencera773bd52006-08-04 18:18:08 +000028993return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000028994 ;
28995 return 0;
28996}
28997_ACEOF
28998rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028999if { (ac_try="$ac_link"
29000case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29003esac
29004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029006 ac_status=$?
29007 grep -v '^ *+' conftest.er1 >conftest.err
29008 rm -f conftest.er1
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest$ac_exeext &&
29015 $as_test_x conftest$ac_exeext; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029016 eval "$as_ac_var=yes"
29017else
29018 echo "$as_me: failed program was:" >&5
29019sed 's/^/| /' conftest.$ac_ext >&5
29020
Reid Spencera773bd52006-08-04 18:18:08 +000029021 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029022fi
Reid Spencera773bd52006-08-04 18:18:08 +000029023
Scott Michel96dcd2b2007-12-05 21:24:02 +000029024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerdf3be822006-01-23 08:15:53 +000029025 conftest$ac_exeext conftest.$ac_ext
29026fi
Reid Spencera773bd52006-08-04 18:18:08 +000029027ac_res=`eval echo '${'$as_ac_var'}'`
29028 { echo "$as_me:$LINENO: result: $ac_res" >&5
29029echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029030if test `eval echo '${'$as_ac_var'}'` = yes; then
29031 cat >>confdefs.h <<_ACEOF
29032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29033_ACEOF
29034
29035fi
29036done
29037
29038
29039
29040
29041
29042
29043
29044
29045for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029046do
29047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053 cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29061#define $ac_func innocuous_$ac_func
29062
29063/* System header to define __stub macros and hopefully few prototypes,
29064 which can conflict with char $ac_func (); below.
29065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29066 <limits.h> exists even on freestanding compilers. */
29067
29068#ifdef __STDC__
29069# include <limits.h>
29070#else
29071# include <assert.h>
29072#endif
29073
29074#undef $ac_func
29075
Reid Spencera773bd52006-08-04 18:18:08 +000029076/* Override any GCC internal prototype to avoid an error.
29077 Use char because int might match the return type of a GCC
29078 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000029079#ifdef __cplusplus
29080extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000029081#endif
Reid Spencer7931a782004-12-27 06:15:02 +000029082char $ac_func ();
29083/* The GNU C library defines this for functions which it implements
29084 to always fail with ENOSYS. Some functions are actually named
29085 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029086#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000029087choke me
Reid Spencer7931a782004-12-27 06:15:02 +000029088#endif
29089
29090int
29091main ()
29092{
Reid Spencera773bd52006-08-04 18:18:08 +000029093return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000029094 ;
29095 return 0;
29096}
29097_ACEOF
29098rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029099if { (ac_try="$ac_link"
29100case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29103esac
29104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000029106 ac_status=$?
29107 grep -v '^ *+' conftest.er1 >conftest.err
29108 rm -f conftest.er1
29109 cat conftest.err >&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029111 (exit $ac_status); } && {
29112 test -z "$ac_c_werror_flag" ||
29113 test ! -s conftest.err
29114 } && test -s conftest$ac_exeext &&
29115 $as_test_x conftest$ac_exeext; then
Reid Spencer7931a782004-12-27 06:15:02 +000029116 eval "$as_ac_var=yes"
29117else
29118 echo "$as_me: failed program was:" >&5
29119sed 's/^/| /' conftest.$ac_ext >&5
29120
Reid Spencera773bd52006-08-04 18:18:08 +000029121 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000029122fi
Reid Spencera773bd52006-08-04 18:18:08 +000029123
Scott Michel96dcd2b2007-12-05 21:24:02 +000029124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer7931a782004-12-27 06:15:02 +000029125 conftest$ac_exeext conftest.$ac_ext
29126fi
Reid Spencera773bd52006-08-04 18:18:08 +000029127ac_res=`eval echo '${'$as_ac_var'}'`
29128 { echo "$as_me:$LINENO: result: $ac_res" >&5
29129echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000029130if test `eval echo '${'$as_ac_var'}'` = yes; then
29131 cat >>confdefs.h <<_ACEOF
29132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29133_ACEOF
29134
29135fi
29136done
29137
29138
Reid Spencerba46ca32004-12-31 05:49:15 +000029139
29140
Chris Lattner0b142592005-11-14 06:57:34 +000029141
Chris Lattner511f11d2005-11-14 07:25:50 +000029142for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029143do
29144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149else
29150 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029151/* confdefs.h. */
29152_ACEOF
29153cat confdefs.h >>conftest.$ac_ext
29154cat >>conftest.$ac_ext <<_ACEOF
29155/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29158#define $ac_func innocuous_$ac_func
29159
29160/* System header to define __stub macros and hopefully few prototypes,
29161 which can conflict with char $ac_func (); below.
29162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29163 <limits.h> exists even on freestanding compilers. */
29164
29165#ifdef __STDC__
29166# include <limits.h>
29167#else
29168# include <assert.h>
29169#endif
29170
29171#undef $ac_func
29172
Reid Spencera773bd52006-08-04 18:18:08 +000029173/* Override any GCC internal prototype to avoid an error.
29174 Use char because int might match the return type of a GCC
29175 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029176#ifdef __cplusplus
29177extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029178#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029179char $ac_func ();
29180/* The GNU C library defines this for functions which it implements
29181 to always fail with ENOSYS. Some functions are actually named
29182 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029183#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029184choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029185#endif
John Criswell7a73b802003-06-30 21:59:07 +000029186
John Criswell7a73b802003-06-30 21:59:07 +000029187int
29188main ()
29189{
Reid Spencera773bd52006-08-04 18:18:08 +000029190return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029191 ;
29192 return 0;
29193}
29194_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029195rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029196if { (ac_try="$ac_link"
29197case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29200esac
29201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029204 grep -v '^ *+' conftest.er1 >conftest.err
29205 rm -f conftest.er1
29206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029208 (exit $ac_status); } && {
29209 test -z "$ac_c_werror_flag" ||
29210 test ! -s conftest.err
29211 } && test -s conftest$ac_exeext &&
29212 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029213 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029214else
29215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029216sed 's/^/| /' conftest.$ac_ext >&5
29217
Reid Spencera773bd52006-08-04 18:18:08 +000029218 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029219fi
Reid Spencera773bd52006-08-04 18:18:08 +000029220
Scott Michel96dcd2b2007-12-05 21:24:02 +000029221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029222 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029223fi
Reid Spencera773bd52006-08-04 18:18:08 +000029224ac_res=`eval echo '${'$as_ac_var'}'`
29225 { echo "$as_me:$LINENO: result: $ac_res" >&5
29226echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029227if test `eval echo '${'$as_ac_var'}'` = yes; then
29228 cat >>confdefs.h <<_ACEOF
29229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029230_ACEOF
29231
29232fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029233done
John Criswell7a73b802003-06-30 21:59:07 +000029234
Reid Spencercdb08a32006-06-05 16:11:07 +000029235
29236
29237
29238
Reid Spencerafa22e22006-12-10 23:29:19 +000029239for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000029240do
29241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029245 echo $ECHO_N "(cached) $ECHO_C" >&6
29246else
29247 cat >conftest.$ac_ext <<_ACEOF
29248/* confdefs.h. */
29249_ACEOF
29250cat confdefs.h >>conftest.$ac_ext
29251cat >>conftest.$ac_ext <<_ACEOF
29252/* end confdefs.h. */
29253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29255#define $ac_func innocuous_$ac_func
29256
29257/* System header to define __stub macros and hopefully few prototypes,
29258 which can conflict with char $ac_func (); below.
29259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29260 <limits.h> exists even on freestanding compilers. */
29261
29262#ifdef __STDC__
29263# include <limits.h>
29264#else
29265# include <assert.h>
29266#endif
29267
29268#undef $ac_func
29269
Reid Spencera773bd52006-08-04 18:18:08 +000029270/* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000029273#ifdef __cplusplus
29274extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000029275#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000029276char $ac_func ();
29277/* The GNU C library defines this for functions which it implements
29278 to always fail with ENOSYS. Some functions are actually named
29279 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029280#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000029281choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000029282#endif
29283
29284int
29285main ()
29286{
Reid Spencera773bd52006-08-04 18:18:08 +000029287return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000029288 ;
29289 return 0;
29290}
29291_ACEOF
29292rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029293if { (ac_try="$ac_link"
29294case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29297esac
29298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000029300 ac_status=$?
29301 grep -v '^ *+' conftest.er1 >conftest.err
29302 rm -f conftest.er1
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029305 (exit $ac_status); } && {
29306 test -z "$ac_c_werror_flag" ||
29307 test ! -s conftest.err
29308 } && test -s conftest$ac_exeext &&
29309 $as_test_x conftest$ac_exeext; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029310 eval "$as_ac_var=yes"
29311else
29312 echo "$as_me: failed program was:" >&5
29313sed 's/^/| /' conftest.$ac_ext >&5
29314
Reid Spencera773bd52006-08-04 18:18:08 +000029315 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000029316fi
Reid Spencera773bd52006-08-04 18:18:08 +000029317
Scott Michel96dcd2b2007-12-05 21:24:02 +000029318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencercdb08a32006-06-05 16:11:07 +000029319 conftest$ac_exeext conftest.$ac_ext
29320fi
Reid Spencera773bd52006-08-04 18:18:08 +000029321ac_res=`eval echo '${'$as_ac_var'}'`
29322 { echo "$as_me:$LINENO: result: $ac_res" >&5
29323echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000029324if test `eval echo '${'$as_ac_var'}'` = yes; then
29325 cat >>confdefs.h <<_ACEOF
29326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29327_ACEOF
29328
29329fi
29330done
29331
Reid Spencera773bd52006-08-04 18:18:08 +000029332{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29333echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029334if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029335 echo $ECHO_N "(cached) $ECHO_C" >&6
29336else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029337 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029338ac_cpp='$CPP $CPPFLAGS'
29339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29341ac_compiler_gnu=$ac_cv_c_compiler_gnu
29342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029343 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029344 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029345else
29346 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000029347
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029348 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000029349_ACEOF
29350cat confdefs.h >>conftest.$ac_ext
29351cat >>conftest.$ac_ext <<_ACEOF
29352/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029353
John Criswella0137d32003-10-13 16:22:01 +000029354#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000029355#include <stdlib.h>
29356
John Criswella0137d32003-10-13 16:22:01 +000029357int
29358main ()
29359{
29360
Reid Spencer2706f8c2004-09-19 23:53:36 +000029361volatile double A, B;
29362char Buffer[100];
29363A = 1;
29364A /= 10.0;
29365sprintf(Buffer, "%a", A);
29366B = atof(Buffer);
29367if (A != B)
29368 return (1);
29369if (A != 0x1.999999999999ap-4)
29370 return (1);
29371return (0);
John Criswella0137d32003-10-13 16:22:01 +000029372 ;
29373 return 0;
29374}
29375_ACEOF
29376rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029377if { (ac_try="$ac_link"
29378case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29381esac
29382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029387 { (case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29390esac
29391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029393 ac_status=$?
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029396 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000029397else
29398 echo "$as_me: program exited with status $ac_status" >&5
29399echo "$as_me: failed program was:" >&5
29400sed 's/^/| /' conftest.$ac_ext >&5
29401
29402( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000029403llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029404fi
Reid Spencera773bd52006-08-04 18:18:08 +000029405rm -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 +000029406fi
Reid Spencera773bd52006-08-04 18:18:08 +000029407
29408
Reid Spencer2706f8c2004-09-19 23:53:36 +000029409 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029410ac_cpp='$CPP $CPPFLAGS'
29411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29413ac_compiler_gnu=$ac_cv_c_compiler_gnu
29414
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029415fi
Reid Spencera773bd52006-08-04 18:18:08 +000029416{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29417echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029418 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000029419
29420cat >>confdefs.h <<\_ACEOF
29421#define HAVE_PRINTF_A 1
29422_ACEOF
29423
Reid Spencer2706f8c2004-09-19 23:53:36 +000029424 fi
John Criswella0137d32003-10-13 16:22:01 +000029425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029426# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29427# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000029428{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29429echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029430if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000029431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432else
John Criswell0021c312004-02-13 21:57:29 +000029433 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000029434/* confdefs.h. */
29435_ACEOF
29436cat confdefs.h >>conftest.$ac_ext
29437cat >>conftest.$ac_ext <<_ACEOF
29438/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029439#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000029440int
29441main ()
29442{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029443char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000029444 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000029445 ;
29446 return 0;
29447}
29448_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029449rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029450if { (ac_try="$ac_link"
29451case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29454esac
29455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000029457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029458 grep -v '^ *+' conftest.er1 >conftest.err
29459 rm -f conftest.er1
29460 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000029461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029462 (exit $ac_status); } && {
29463 test -z "$ac_c_werror_flag" ||
29464 test ! -s conftest.err
29465 } && test -s conftest$ac_exeext &&
29466 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029467 ac_cv_working_alloca_h=yes
29468else
29469 echo "$as_me: failed program was:" >&5
29470sed 's/^/| /' conftest.$ac_ext >&5
29471
Reid Spencera773bd52006-08-04 18:18:08 +000029472 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000029473fi
Reid Spencera773bd52006-08-04 18:18:08 +000029474
Scott Michel96dcd2b2007-12-05 21:24:02 +000029475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029476 conftest$ac_exeext conftest.$ac_ext
29477fi
Reid Spencera773bd52006-08-04 18:18:08 +000029478{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29479echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029480if test $ac_cv_working_alloca_h = yes; then
29481
29482cat >>confdefs.h <<\_ACEOF
29483#define HAVE_ALLOCA_H 1
29484_ACEOF
29485
29486fi
29487
Reid Spencera773bd52006-08-04 18:18:08 +000029488{ echo "$as_me:$LINENO: checking for alloca" >&5
29489echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029490if test "${ac_cv_func_alloca_works+set}" = set; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29492else
29493 cat >conftest.$ac_ext <<_ACEOF
29494/* confdefs.h. */
29495_ACEOF
29496cat confdefs.h >>conftest.$ac_ext
29497cat >>conftest.$ac_ext <<_ACEOF
29498/* end confdefs.h. */
29499#ifdef __GNUC__
29500# define alloca __builtin_alloca
29501#else
29502# ifdef _MSC_VER
29503# include <malloc.h>
29504# define alloca _alloca
29505# else
Scott Michel96dcd2b2007-12-05 21:24:02 +000029506# ifdef HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029507# include <alloca.h>
29508# else
29509# ifdef _AIX
29510 #pragma alloca
29511# else
29512# ifndef alloca /* predefined by HP cc +Olibcalls */
29513char *alloca ();
29514# endif
29515# endif
29516# endif
29517# endif
29518#endif
29519
29520int
29521main ()
29522{
29523char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000029524 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029525 ;
29526 return 0;
29527}
29528_ACEOF
29529rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029530if { (ac_try="$ac_link"
29531case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29534esac
29535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029537 ac_status=$?
29538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029542 (exit $ac_status); } && {
29543 test -z "$ac_c_werror_flag" ||
29544 test ! -s conftest.err
29545 } && test -s conftest$ac_exeext &&
29546 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029547 ac_cv_func_alloca_works=yes
29548else
29549 echo "$as_me: failed program was:" >&5
29550sed 's/^/| /' conftest.$ac_ext >&5
29551
Reid Spencera773bd52006-08-04 18:18:08 +000029552 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029553fi
Reid Spencera773bd52006-08-04 18:18:08 +000029554
Scott Michel96dcd2b2007-12-05 21:24:02 +000029555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029556 conftest$ac_exeext conftest.$ac_ext
29557fi
Reid Spencera773bd52006-08-04 18:18:08 +000029558{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29559echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029560
29561if test $ac_cv_func_alloca_works = yes; then
29562
29563cat >>confdefs.h <<\_ACEOF
29564#define HAVE_ALLOCA 1
29565_ACEOF
29566
29567else
29568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29569# that cause trouble. Some versions do not even contain alloca or
29570# contain a buggy version. If you still want to use their alloca,
29571# use ar to extract alloca.o from them instead of compiling alloca.c.
29572
Reid Spencera773bd52006-08-04 18:18:08 +000029573ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029574
29575cat >>confdefs.h <<\_ACEOF
29576#define C_ALLOCA 1
29577_ACEOF
29578
29579
Reid Spencera773bd52006-08-04 18:18:08 +000029580{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29581echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029582if test "${ac_cv_os_cray+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29584else
29585 cat >conftest.$ac_ext <<_ACEOF
29586/* confdefs.h. */
29587_ACEOF
29588cat confdefs.h >>conftest.$ac_ext
29589cat >>conftest.$ac_ext <<_ACEOF
29590/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029591#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029592webecray
29593#else
29594wenotbecray
29595#endif
29596
29597_ACEOF
29598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29599 $EGREP "webecray" >/dev/null 2>&1; then
29600 ac_cv_os_cray=yes
29601else
29602 ac_cv_os_cray=no
29603fi
29604rm -f conftest*
29605
29606fi
Reid Spencera773bd52006-08-04 18:18:08 +000029607{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29608echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029609if test $ac_cv_os_cray = yes; then
29610 for ac_func in _getb67 GETB67 getb67; do
29611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029615 echo $ECHO_N "(cached) $ECHO_C" >&6
29616else
29617 cat >conftest.$ac_ext <<_ACEOF
29618/* confdefs.h. */
29619_ACEOF
29620cat confdefs.h >>conftest.$ac_ext
29621cat >>conftest.$ac_ext <<_ACEOF
29622/* end confdefs.h. */
29623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29625#define $ac_func innocuous_$ac_func
29626
29627/* System header to define __stub macros and hopefully few prototypes,
29628 which can conflict with char $ac_func (); below.
29629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29630 <limits.h> exists even on freestanding compilers. */
29631
29632#ifdef __STDC__
29633# include <limits.h>
29634#else
29635# include <assert.h>
29636#endif
29637
29638#undef $ac_func
29639
Reid Spencera773bd52006-08-04 18:18:08 +000029640/* Override any GCC internal prototype to avoid an error.
29641 Use char because int might match the return type of a GCC
29642 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029643#ifdef __cplusplus
29644extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029645#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029646char $ac_func ();
29647/* The GNU C library defines this for functions which it implements
29648 to always fail with ENOSYS. Some functions are actually named
29649 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029650#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029651choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029652#endif
29653
29654int
29655main ()
29656{
Reid Spencera773bd52006-08-04 18:18:08 +000029657return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029658 ;
29659 return 0;
29660}
29661_ACEOF
29662rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029663if { (ac_try="$ac_link"
29664case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667esac
29668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029670 ac_status=$?
29671 grep -v '^ *+' conftest.er1 >conftest.err
29672 rm -f conftest.er1
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029675 (exit $ac_status); } && {
29676 test -z "$ac_c_werror_flag" ||
29677 test ! -s conftest.err
29678 } && test -s conftest$ac_exeext &&
29679 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029680 eval "$as_ac_var=yes"
29681else
29682 echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
Reid Spencera773bd52006-08-04 18:18:08 +000029685 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029686fi
Reid Spencera773bd52006-08-04 18:18:08 +000029687
Scott Michel96dcd2b2007-12-05 21:24:02 +000029688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029689 conftest$ac_exeext conftest.$ac_ext
29690fi
Reid Spencera773bd52006-08-04 18:18:08 +000029691ac_res=`eval echo '${'$as_ac_var'}'`
29692 { echo "$as_me:$LINENO: result: $ac_res" >&5
29693echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029694if test `eval echo '${'$as_ac_var'}'` = yes; then
29695
29696cat >>confdefs.h <<_ACEOF
29697#define CRAY_STACKSEG_END $ac_func
29698_ACEOF
29699
29700 break
29701fi
29702
29703 done
29704fi
29705
Reid Spencera773bd52006-08-04 18:18:08 +000029706{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29707echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029708if test "${ac_cv_c_stack_direction+set}" = set; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29710else
29711 if test "$cross_compiling" = yes; then
29712 ac_cv_c_stack_direction=0
29713else
29714 cat >conftest.$ac_ext <<_ACEOF
29715/* confdefs.h. */
29716_ACEOF
29717cat confdefs.h >>conftest.$ac_ext
29718cat >>conftest.$ac_ext <<_ACEOF
29719/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029720$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029721int
29722find_stack_direction ()
29723{
29724 static char *addr = 0;
29725 auto char dummy;
29726 if (addr == 0)
29727 {
29728 addr = &dummy;
29729 return find_stack_direction ();
29730 }
John Criswell0021c312004-02-13 21:57:29 +000029731 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029732 return (&dummy > addr) ? 1 : -1;
29733}
John Criswell0021c312004-02-13 21:57:29 +000029734
John Criswell0021c312004-02-13 21:57:29 +000029735int
29736main ()
29737{
Reid Spencera773bd52006-08-04 18:18:08 +000029738 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000029739}
29740_ACEOF
29741rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029742if { (ac_try="$ac_link"
29743case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29746esac
29747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029752 { (case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755esac
29756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029758 ac_status=$?
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029761 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029762else
29763 echo "$as_me: program exited with status $ac_status" >&5
29764echo "$as_me: failed program was:" >&5
29765sed 's/^/| /' conftest.$ac_ext >&5
29766
29767( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029768ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029769fi
Reid Spencera773bd52006-08-04 18:18:08 +000029770rm -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 +000029771fi
Reid Spencera773bd52006-08-04 18:18:08 +000029772
29773
John Criswell0021c312004-02-13 21:57:29 +000029774fi
Reid Spencera773bd52006-08-04 18:18:08 +000029775{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29776echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029777
29778cat >>confdefs.h <<_ACEOF
29779#define STACK_DIRECTION $ac_cv_c_stack_direction
29780_ACEOF
29781
29782
John Criswell0021c312004-02-13 21:57:29 +000029783fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029784
29785
Reid Spencera773bd52006-08-04 18:18:08 +000029786{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29787echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029788if test "${ac_cv_func_rand48+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29790else
Reid Spencera773bd52006-08-04 18:18:08 +000029791 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029792ac_cpp='$CXXCPP $CPPFLAGS'
29793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29796
29797 cat >conftest.$ac_ext <<_ACEOF
29798/* confdefs.h. */
29799_ACEOF
29800cat confdefs.h >>conftest.$ac_ext
29801cat >>conftest.$ac_ext <<_ACEOF
29802/* end confdefs.h. */
29803#include <stdlib.h>
29804int
29805main ()
29806{
29807srand48(0);lrand48();drand48();
29808 ;
29809 return 0;
29810}
29811_ACEOF
29812rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029813if { (ac_try="$ac_compile"
29814case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029820 ac_status=$?
29821 grep -v '^ *+' conftest.er1 >conftest.err
29822 rm -f conftest.er1
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029825 (exit $ac_status); } && {
29826 test -z "$ac_cxx_werror_flag" ||
29827 test ! -s conftest.err
29828 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029829 ac_cv_func_rand48=yes
29830else
29831 echo "$as_me: failed program was:" >&5
29832sed 's/^/| /' conftest.$ac_ext >&5
29833
Reid Spencera773bd52006-08-04 18:18:08 +000029834 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029835fi
Reid Spencera773bd52006-08-04 18:18:08 +000029836
29837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029838 ac_ext=c
29839ac_cpp='$CPP $CPPFLAGS'
29840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29842ac_compiler_gnu=$ac_cv_c_compiler_gnu
29843
29844fi
Reid Spencera773bd52006-08-04 18:18:08 +000029845{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29846echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029847
29848if test "$ac_cv_func_rand48" = "yes" ; then
29849
29850cat >>confdefs.h <<\_ACEOF
29851#define HAVE_RAND48 1
29852_ACEOF
29853
29854fi
John Criswell0021c312004-02-13 21:57:29 +000029855
29856
Reid Spencera773bd52006-08-04 18:18:08 +000029857{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29858echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029859if test "${ac_cv_cxx_namespaces+set}" = set; then
29860 echo $ECHO_N "(cached) $ECHO_C" >&6
29861else
Reid Spencera773bd52006-08-04 18:18:08 +000029862 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029863ac_cpp='$CXXCPP $CPPFLAGS'
29864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29867
29868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029869/* confdefs.h. */
29870_ACEOF
29871cat confdefs.h >>conftest.$ac_ext
29872cat >>conftest.$ac_ext <<_ACEOF
29873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029874namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029875int
29876main ()
29877{
29878using namespace Outer::Inner; return i;
29879 ;
29880 return 0;
29881}
29882_ACEOF
29883rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029884if { (ac_try="$ac_compile"
29885case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29888esac
29889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029891 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029892 grep -v '^ *+' conftest.er1 >conftest.err
29893 rm -f conftest.er1
29894 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029896 (exit $ac_status); } && {
29897 test -z "$ac_cxx_werror_flag" ||
29898 test ! -s conftest.err
29899 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000029900 ac_cv_cxx_namespaces=yes
29901else
29902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029903sed 's/^/| /' conftest.$ac_ext >&5
29904
Reid Spencera773bd52006-08-04 18:18:08 +000029905 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000029906fi
Reid Spencera773bd52006-08-04 18:18:08 +000029907
29908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029909 ac_ext=c
29910ac_cpp='$CPP $CPPFLAGS'
29911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29913ac_compiler_gnu=$ac_cv_c_compiler_gnu
29914
29915
29916fi
Reid Spencera773bd52006-08-04 18:18:08 +000029917{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29918echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029919if test "$ac_cv_cxx_namespaces" = yes; then
29920
29921cat >>confdefs.h <<\_ACEOF
29922#define HAVE_NAMESPACES
29923_ACEOF
29924
29925fi
29926
Reid Spencera773bd52006-08-04 18:18:08 +000029927{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29928echo $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 +000029929if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029930 echo $ECHO_N "(cached) $ECHO_C" >&6
29931else
29932
Reid Spencera773bd52006-08-04 18:18:08 +000029933 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029934ac_cpp='$CXXCPP $CPPFLAGS'
29935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29938
29939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029945#include <ext/hash_map>
29946#ifdef HAVE_NAMESPACES
29947using namespace std;
29948#endif
John Criswell7a73b802003-06-30 21:59:07 +000029949int
29950main ()
29951{
Brian Gaeke90583492003-11-10 03:06:28 +000029952hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029953 ;
29954 return 0;
29955}
29956_ACEOF
29957rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029958if { (ac_try="$ac_compile"
29959case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29962esac
29963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029966 grep -v '^ *+' conftest.er1 >conftest.err
29967 rm -f conftest.er1
29968 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029970 (exit $ac_status); } && {
29971 test -z "$ac_cxx_werror_flag" ||
29972 test ! -s conftest.err
29973 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000029974 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029975else
29976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029977sed 's/^/| /' conftest.$ac_ext >&5
29978
Reid Spencera773bd52006-08-04 18:18:08 +000029979 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029980fi
Reid Spencera773bd52006-08-04 18:18:08 +000029981
29982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029983 ac_ext=c
29984ac_cpp='$CPP $CPPFLAGS'
29985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29987ac_compiler_gnu=$ac_cv_c_compiler_gnu
29988
John Criswell7a73b802003-06-30 21:59:07 +000029989fi
Reid Spencera773bd52006-08-04 18:18:08 +000029990{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29991echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000029992 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29993 then
John Criswell9f011862004-09-24 18:28:00 +000029994
29995cat >>confdefs.h <<\_ACEOF
29996#define HAVE_STD_EXT_HASH_MAP 1
29997_ACEOF
29998
29999 else
30000
30001cat >>confdefs.h <<\_ACEOF
30002#define HAVE_STD_EXT_HASH_MAP 0
30003_ACEOF
30004
Brian Gaeke90583492003-11-10 03:06:28 +000030005 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030006
Reid Spencera773bd52006-08-04 18:18:08 +000030007 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30008echo $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 +000030009if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30011else
30012
Reid Spencera773bd52006-08-04 18:18:08 +000030013 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030014ac_cpp='$CXXCPP $CPPFLAGS'
30015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30018
30019 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030020/* confdefs.h. */
30021_ACEOF
30022cat confdefs.h >>conftest.$ac_ext
30023cat >>conftest.$ac_ext <<_ACEOF
30024/* end confdefs.h. */
30025#include <ext/hash_map>
30026#ifdef HAVE_NAMESPACES
30027using namespace __gnu_cxx;
30028#endif
30029int
30030main ()
30031{
30032hash_map<int,int> t;
30033 ;
30034 return 0;
30035}
30036_ACEOF
30037rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030038if { (ac_try="$ac_compile"
30039case "(($ac_try" in
30040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041 *) ac_try_echo=$ac_try;;
30042esac
30043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030046 grep -v '^ *+' conftest.er1 >conftest.err
30047 rm -f conftest.er1
30048 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030050 (exit $ac_status); } && {
30051 test -z "$ac_cxx_werror_flag" ||
30052 test ! -s conftest.err
30053 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030054 ac_cv_cxx_have_gnu_ext_hash_map=yes
30055else
30056 echo "$as_me: failed program was:" >&5
30057sed 's/^/| /' conftest.$ac_ext >&5
30058
Reid Spencera773bd52006-08-04 18:18:08 +000030059 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030060fi
Reid Spencera773bd52006-08-04 18:18:08 +000030061
30062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030063 ac_ext=c
30064ac_cpp='$CPP $CPPFLAGS'
30065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30067ac_compiler_gnu=$ac_cv_c_compiler_gnu
30068
30069fi
Reid Spencera773bd52006-08-04 18:18:08 +000030070{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30071echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030072 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30073 then
John Criswell9f011862004-09-24 18:28:00 +000030074
30075cat >>confdefs.h <<\_ACEOF
30076#define HAVE_GNU_EXT_HASH_MAP 1
30077_ACEOF
30078
30079 else
30080
30081cat >>confdefs.h <<\_ACEOF
30082#define HAVE_GNU_EXT_HASH_MAP 0
30083_ACEOF
30084
Brian Gaeke90583492003-11-10 03:06:28 +000030085 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030086
Reid Spencera773bd52006-08-04 18:18:08 +000030087 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30088echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030089if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30091else
John Criswell7a73b802003-06-30 21:59:07 +000030092
Reid Spencera773bd52006-08-04 18:18:08 +000030093 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030094ac_cpp='$CXXCPP $CPPFLAGS'
30095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30098
30099 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030100/* confdefs.h. */
30101_ACEOF
30102cat confdefs.h >>conftest.$ac_ext
30103cat >>conftest.$ac_ext <<_ACEOF
30104/* end confdefs.h. */
30105#include <hash_map>
30106int
30107main ()
30108{
30109hash_map<int,int> t;
30110 ;
30111 return 0;
30112}
30113_ACEOF
30114rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030115if { (ac_try="$ac_compile"
30116case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119esac
30120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030123 grep -v '^ *+' conftest.er1 >conftest.err
30124 rm -f conftest.er1
30125 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030127 (exit $ac_status); } && {
30128 test -z "$ac_cxx_werror_flag" ||
30129 test ! -s conftest.err
30130 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030131 ac_cv_cxx_have_global_hash_map=yes
30132else
30133 echo "$as_me: failed program was:" >&5
30134sed 's/^/| /' conftest.$ac_ext >&5
30135
Reid Spencera773bd52006-08-04 18:18:08 +000030136 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000030137fi
Reid Spencera773bd52006-08-04 18:18:08 +000030138
30139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030140 ac_ext=c
30141ac_cpp='$CPP $CPPFLAGS'
30142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30144ac_compiler_gnu=$ac_cv_c_compiler_gnu
30145
30146fi
Reid Spencera773bd52006-08-04 18:18:08 +000030147{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30148echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030149 if test "$ac_cv_cxx_have_global_hash_map" = yes
30150 then
John Criswell9f011862004-09-24 18:28:00 +000030151
30152cat >>confdefs.h <<\_ACEOF
30153#define HAVE_GLOBAL_HASH_MAP 1
30154_ACEOF
30155
30156 else
30157
30158cat >>confdefs.h <<\_ACEOF
30159#define HAVE_GLOBAL_HASH_MAP 0
30160_ACEOF
30161
Brian Gaeke90583492003-11-10 03:06:28 +000030162 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030163
Reid Spencera773bd52006-08-04 18:18:08 +000030164{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30165echo $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 +000030166if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168else
30169
Reid Spencera773bd52006-08-04 18:18:08 +000030170 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030171ac_cpp='$CXXCPP $CPPFLAGS'
30172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30175
30176 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030177/* confdefs.h. */
30178_ACEOF
30179cat confdefs.h >>conftest.$ac_ext
30180cat >>conftest.$ac_ext <<_ACEOF
30181/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030182#include <ext/hash_set>
30183#ifdef HAVE_NAMESPACES
30184using namespace std;
30185#endif
John Criswell7a73b802003-06-30 21:59:07 +000030186int
30187main ()
30188{
Brian Gaeke90583492003-11-10 03:06:28 +000030189hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030190 ;
30191 return 0;
30192}
30193_ACEOF
30194rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030195if { (ac_try="$ac_compile"
30196case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30199esac
30200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030203 grep -v '^ *+' conftest.er1 >conftest.err
30204 rm -f conftest.er1
30205 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030207 (exit $ac_status); } && {
30208 test -z "$ac_cxx_werror_flag" ||
30209 test ! -s conftest.err
30210 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030211 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030212else
30213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030214sed 's/^/| /' conftest.$ac_ext >&5
30215
Reid Spencera773bd52006-08-04 18:18:08 +000030216 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030217fi
Reid Spencera773bd52006-08-04 18:18:08 +000030218
30219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030220 ac_ext=c
30221ac_cpp='$CPP $CPPFLAGS'
30222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30224ac_compiler_gnu=$ac_cv_c_compiler_gnu
30225
30226fi
Reid Spencera773bd52006-08-04 18:18:08 +000030227{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30228echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030229 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30230 then
John Criswell9f011862004-09-24 18:28:00 +000030231
30232cat >>confdefs.h <<\_ACEOF
30233#define HAVE_STD_EXT_HASH_SET 1
30234_ACEOF
30235
30236 else
30237
30238cat >>confdefs.h <<\_ACEOF
30239#define HAVE_STD_EXT_HASH_SET 0
30240_ACEOF
30241
Brian Gaeke90583492003-11-10 03:06:28 +000030242 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030243
Reid Spencera773bd52006-08-04 18:18:08 +000030244 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30245echo $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 +000030246if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30248else
30249
Reid Spencera773bd52006-08-04 18:18:08 +000030250 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030251ac_cpp='$CXXCPP $CPPFLAGS'
30252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30255
John Criswell7a73b802003-06-30 21:59:07 +000030256 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030257/* confdefs.h. */
30258_ACEOF
30259cat confdefs.h >>conftest.$ac_ext
30260cat >>conftest.$ac_ext <<_ACEOF
30261/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030262#include <ext/hash_set>
30263#ifdef HAVE_NAMESPACES
30264using namespace __gnu_cxx;
30265#endif
John Criswell7a73b802003-06-30 21:59:07 +000030266int
30267main ()
30268{
Brian Gaeke90583492003-11-10 03:06:28 +000030269hash_set<int> t;
30270 ;
30271 return 0;
30272}
30273_ACEOF
30274rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030275if { (ac_try="$ac_compile"
30276case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30279esac
30280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030282 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030283 grep -v '^ *+' conftest.er1 >conftest.err
30284 rm -f conftest.er1
30285 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030287 (exit $ac_status); } && {
30288 test -z "$ac_cxx_werror_flag" ||
30289 test ! -s conftest.err
30290 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030291 ac_cv_cxx_have_gnu_ext_hash_set=yes
30292else
30293 echo "$as_me: failed program was:" >&5
30294sed 's/^/| /' conftest.$ac_ext >&5
30295
Reid Spencera773bd52006-08-04 18:18:08 +000030296 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000030297fi
Reid Spencera773bd52006-08-04 18:18:08 +000030298
30299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030300 ac_ext=c
30301ac_cpp='$CPP $CPPFLAGS'
30302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30304ac_compiler_gnu=$ac_cv_c_compiler_gnu
30305
30306fi
Reid Spencera773bd52006-08-04 18:18:08 +000030307{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30308echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030309 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30310 then
John Criswell9f011862004-09-24 18:28:00 +000030311
30312cat >>confdefs.h <<\_ACEOF
30313#define HAVE_GNU_EXT_HASH_SET 1
30314_ACEOF
30315
30316 else
30317
30318cat >>confdefs.h <<\_ACEOF
30319#define HAVE_GNU_EXT_HASH_SET 0
30320_ACEOF
30321
Brian Gaeke90583492003-11-10 03:06:28 +000030322 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030323
Reid Spencera773bd52006-08-04 18:18:08 +000030324 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30325echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030326if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30328else
30329
Reid Spencera773bd52006-08-04 18:18:08 +000030330 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030331ac_cpp='$CXXCPP $CPPFLAGS'
30332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30335
30336 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030337/* confdefs.h. */
30338_ACEOF
30339cat confdefs.h >>conftest.$ac_ext
30340cat >>conftest.$ac_ext <<_ACEOF
30341/* end confdefs.h. */
30342#include <hash_set>
30343int
30344main ()
30345{
John Criswell7a73b802003-06-30 21:59:07 +000030346hash_set<int> t; return 0;
30347 ;
30348 return 0;
30349}
30350_ACEOF
30351rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030352if { (ac_try="$ac_compile"
30353case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30356esac
30357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030359 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030360 grep -v '^ *+' conftest.er1 >conftest.err
30361 rm -f conftest.er1
30362 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030364 (exit $ac_status); } && {
30365 test -z "$ac_cxx_werror_flag" ||
30366 test ! -s conftest.err
30367 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030368 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030369else
30370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030371sed 's/^/| /' conftest.$ac_ext >&5
30372
Reid Spencera773bd52006-08-04 18:18:08 +000030373 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030374fi
Reid Spencera773bd52006-08-04 18:18:08 +000030375
30376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030377 ac_ext=c
30378ac_cpp='$CPP $CPPFLAGS'
30379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30381ac_compiler_gnu=$ac_cv_c_compiler_gnu
30382
John Criswell7a73b802003-06-30 21:59:07 +000030383fi
Reid Spencera773bd52006-08-04 18:18:08 +000030384{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30385echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030386 if test "$ac_cv_cxx_have_global_hash_set" = yes
30387 then
John Criswell9f011862004-09-24 18:28:00 +000030388
30389cat >>confdefs.h <<\_ACEOF
30390#define HAVE_GLOBAL_HASH_SET 1
30391_ACEOF
30392
30393 else
30394
30395cat >>confdefs.h <<\_ACEOF
30396#define HAVE_GLOBAL_HASH_SET 0
30397_ACEOF
30398
Brian Gaeke90583492003-11-10 03:06:28 +000030399 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030400
Reid Spencera773bd52006-08-04 18:18:08 +000030401{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30402echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030403if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30404 echo $ECHO_N "(cached) $ECHO_C" >&6
30405else
30406
Reid Spencera773bd52006-08-04 18:18:08 +000030407 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030408ac_cpp='$CXXCPP $CPPFLAGS'
30409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30412
30413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030414/* confdefs.h. */
30415_ACEOF
30416cat confdefs.h >>conftest.$ac_ext
30417cat >>conftest.$ac_ext <<_ACEOF
30418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030419#include <iterator>
30420#ifdef HAVE_NAMESPACES
30421using namespace std;
30422#endif
John Criswell7a73b802003-06-30 21:59:07 +000030423int
30424main ()
30425{
30426iterator<int,int,int> t; return 0;
30427 ;
30428 return 0;
30429}
30430_ACEOF
30431rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030432if { (ac_try="$ac_compile"
30433case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436esac
30437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030444 (exit $ac_status); } && {
30445 test -z "$ac_cxx_werror_flag" ||
30446 test ! -s conftest.err
30447 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030448 ac_cv_cxx_have_std_iterator=yes
30449else
30450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030451sed 's/^/| /' conftest.$ac_ext >&5
30452
Reid Spencera773bd52006-08-04 18:18:08 +000030453 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030454fi
Reid Spencera773bd52006-08-04 18:18:08 +000030455
30456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030457 ac_ext=c
30458ac_cpp='$CPP $CPPFLAGS'
30459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30461ac_compiler_gnu=$ac_cv_c_compiler_gnu
30462
30463
30464fi
Reid Spencera773bd52006-08-04 18:18:08 +000030465{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30466echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030467if test "$ac_cv_cxx_have_std_iterator" = yes
30468then
John Criswell40468462004-09-24 21:19:06 +000030469
30470cat >>confdefs.h <<\_ACEOF
30471#define HAVE_STD_ITERATOR 1
30472_ACEOF
30473
30474else
30475
30476cat >>confdefs.h <<\_ACEOF
30477#define HAVE_STD_ITERATOR 0
30478_ACEOF
30479
John Criswell7a73b802003-06-30 21:59:07 +000030480fi
30481
Reid Spencera773bd52006-08-04 18:18:08 +000030482{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30483echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030484if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30485 echo $ECHO_N "(cached) $ECHO_C" >&6
30486else
30487
Reid Spencera773bd52006-08-04 18:18:08 +000030488 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030489ac_cpp='$CXXCPP $CPPFLAGS'
30490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30493
30494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030495/* confdefs.h. */
30496_ACEOF
30497cat confdefs.h >>conftest.$ac_ext
30498cat >>conftest.$ac_ext <<_ACEOF
30499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030500#include <iterator>
30501#ifdef HAVE_NAMESPACES
30502using namespace std;
30503#endif
John Criswell7a73b802003-06-30 21:59:07 +000030504int
30505main ()
30506{
John Criswellc78022e2003-07-29 19:11:58 +000030507bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030508 ;
30509 return 0;
30510}
30511_ACEOF
30512rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030513if { (ac_try="$ac_compile"
30514case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30517esac
30518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030521 grep -v '^ *+' conftest.er1 >conftest.err
30522 rm -f conftest.er1
30523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030525 (exit $ac_status); } && {
30526 test -z "$ac_cxx_werror_flag" ||
30527 test ! -s conftest.err
30528 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030529 ac_cv_cxx_have_bi_iterator=yes
30530else
30531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030532sed 's/^/| /' conftest.$ac_ext >&5
30533
Reid Spencera773bd52006-08-04 18:18:08 +000030534 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030535fi
Reid Spencera773bd52006-08-04 18:18:08 +000030536
30537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030538 ac_ext=c
30539ac_cpp='$CPP $CPPFLAGS'
30540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30542ac_compiler_gnu=$ac_cv_c_compiler_gnu
30543
30544
30545fi
Reid Spencera773bd52006-08-04 18:18:08 +000030546{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30547echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030548if test "$ac_cv_cxx_have_bi_iterator" = yes
30549then
John Criswell40468462004-09-24 21:19:06 +000030550
30551cat >>confdefs.h <<\_ACEOF
30552#define HAVE_BI_ITERATOR 1
30553_ACEOF
30554
30555else
30556
30557cat >>confdefs.h <<\_ACEOF
30558#define HAVE_BI_ITERATOR 0
30559_ACEOF
30560
John Criswell7a73b802003-06-30 21:59:07 +000030561fi
30562
Reid Spencera773bd52006-08-04 18:18:08 +000030563{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30564echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030565if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30567else
30568
Reid Spencera773bd52006-08-04 18:18:08 +000030569 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030570ac_cpp='$CXXCPP $CPPFLAGS'
30571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30574
30575 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030576/* confdefs.h. */
30577_ACEOF
30578cat confdefs.h >>conftest.$ac_ext
30579cat >>conftest.$ac_ext <<_ACEOF
30580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030581#include <iterator>
30582#ifdef HAVE_NAMESPACES
30583using namespace std;
30584#endif
John Criswell7a73b802003-06-30 21:59:07 +000030585int
30586main ()
30587{
John Criswellc78022e2003-07-29 19:11:58 +000030588forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030589 ;
30590 return 0;
30591}
30592_ACEOF
30593rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030594if { (ac_try="$ac_compile"
30595case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30598esac
30599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030606 (exit $ac_status); } && {
30607 test -z "$ac_cxx_werror_flag" ||
30608 test ! -s conftest.err
30609 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030610 ac_cv_cxx_have_fwd_iterator=yes
30611else
30612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030613sed 's/^/| /' conftest.$ac_ext >&5
30614
Reid Spencera773bd52006-08-04 18:18:08 +000030615 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030616fi
Reid Spencera773bd52006-08-04 18:18:08 +000030617
30618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030619 ac_ext=c
30620ac_cpp='$CPP $CPPFLAGS'
30621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30623ac_compiler_gnu=$ac_cv_c_compiler_gnu
30624
30625
30626fi
Reid Spencera773bd52006-08-04 18:18:08 +000030627{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30628echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030629if test "$ac_cv_cxx_have_fwd_iterator" = yes
30630then
John Criswell40468462004-09-24 21:19:06 +000030631
30632cat >>confdefs.h <<\_ACEOF
30633#define HAVE_FWD_ITERATOR 1
30634_ACEOF
30635
30636else
30637
30638cat >>confdefs.h <<\_ACEOF
30639#define HAVE_FWD_ITERATOR 0
30640_ACEOF
30641
John Criswell7a73b802003-06-30 21:59:07 +000030642fi
30643
30644
Reid Spencera773bd52006-08-04 18:18:08 +000030645{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30646echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030647if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30648 echo $ECHO_N "(cached) $ECHO_C" >&6
30649else
Reid Spencera773bd52006-08-04 18:18:08 +000030650 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030651ac_cpp='$CXXCPP $CPPFLAGS'
30652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30655
Reid Spencerabec8f92004-10-27 23:03:44 +000030656 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030657/* confdefs.h. */
30658_ACEOF
30659cat confdefs.h >>conftest.$ac_ext
30660cat >>conftest.$ac_ext <<_ACEOF
30661/* end confdefs.h. */
30662#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030663int
30664main ()
30665{
30666float f; isnan(f);
30667 ;
30668 return 0;
30669}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030670_ACEOF
30671rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030672if { (ac_try="$ac_compile"
30673case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676esac
30677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030680 grep -v '^ *+' conftest.er1 >conftest.err
30681 rm -f conftest.er1
30682 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030684 (exit $ac_status); } && {
30685 test -z "$ac_cxx_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030688 ac_cv_func_isnan_in_math_h=yes
30689else
30690 echo "$as_me: failed program was:" >&5
30691sed 's/^/| /' conftest.$ac_ext >&5
30692
Reid Spencera773bd52006-08-04 18:18:08 +000030693 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030694fi
Reid Spencera773bd52006-08-04 18:18:08 +000030695
30696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030697 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030698ac_cpp='$CPP $CPPFLAGS'
30699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30701ac_compiler_gnu=$ac_cv_c_compiler_gnu
30702
30703fi
Reid Spencera773bd52006-08-04 18:18:08 +000030704{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30705echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030706
30707
30708if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030709
30710cat >>confdefs.h <<\_ACEOF
30711#define HAVE_ISNAN_IN_MATH_H 1
30712_ACEOF
30713
Reid Spencerabec8f92004-10-27 23:03:44 +000030714fi
30715
Reid Spencera773bd52006-08-04 18:18:08 +000030716{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30717echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030718if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30719 echo $ECHO_N "(cached) $ECHO_C" >&6
30720else
Reid Spencera773bd52006-08-04 18:18:08 +000030721 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030722ac_cpp='$CXXCPP $CPPFLAGS'
30723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30726
Reid Spencerabec8f92004-10-27 23:03:44 +000030727 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030728/* confdefs.h. */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h. */
30733#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030734int
30735main ()
30736{
30737float f; isnan(f);
30738 ;
30739 return 0;
30740}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030741_ACEOF
30742rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030743if { (ac_try="$ac_compile"
30744case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30747esac
30748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030751 grep -v '^ *+' conftest.er1 >conftest.err
30752 rm -f conftest.er1
30753 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030755 (exit $ac_status); } && {
30756 test -z "$ac_cxx_werror_flag" ||
30757 test ! -s conftest.err
30758 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030759 ac_cv_func_isnan_in_cmath=yes
30760else
30761 echo "$as_me: failed program was:" >&5
30762sed 's/^/| /' conftest.$ac_ext >&5
30763
Reid Spencera773bd52006-08-04 18:18:08 +000030764 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030765fi
Reid Spencera773bd52006-08-04 18:18:08 +000030766
30767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030768 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030769ac_cpp='$CPP $CPPFLAGS'
30770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30772ac_compiler_gnu=$ac_cv_c_compiler_gnu
30773
30774fi
Reid Spencera773bd52006-08-04 18:18:08 +000030775{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30776echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030777
30778if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030779
30780cat >>confdefs.h <<\_ACEOF
30781#define HAVE_ISNAN_IN_CMATH 1
30782_ACEOF
30783
Reid Spencerabec8f92004-10-27 23:03:44 +000030784fi
30785
Reid Spencera773bd52006-08-04 18:18:08 +000030786{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30787echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030788if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
Reid Spencera773bd52006-08-04 18:18:08 +000030791 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030792ac_cpp='$CXXCPP $CPPFLAGS'
30793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30796
Reid Spencerabec8f92004-10-27 23:03:44 +000030797 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030798/* confdefs.h. */
30799_ACEOF
30800cat confdefs.h >>conftest.$ac_ext
30801cat >>conftest.$ac_ext <<_ACEOF
30802/* end confdefs.h. */
30803#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030804int
30805main ()
30806{
30807float f; std::isnan(f);
30808 ;
30809 return 0;
30810}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030811_ACEOF
30812rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030813if { (ac_try="$ac_compile"
30814case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30817esac
30818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030820 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030821 grep -v '^ *+' conftest.er1 >conftest.err
30822 rm -f conftest.er1
30823 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030825 (exit $ac_status); } && {
30826 test -z "$ac_cxx_werror_flag" ||
30827 test ! -s conftest.err
30828 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030829 ac_cv_func_std_isnan_in_cmath=yes
30830else
30831 echo "$as_me: failed program was:" >&5
30832sed 's/^/| /' conftest.$ac_ext >&5
30833
Reid Spencera773bd52006-08-04 18:18:08 +000030834 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030835fi
Reid Spencera773bd52006-08-04 18:18:08 +000030836
30837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030838 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030839ac_cpp='$CPP $CPPFLAGS'
30840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842ac_compiler_gnu=$ac_cv_c_compiler_gnu
30843
30844fi
Reid Spencera773bd52006-08-04 18:18:08 +000030845{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30846echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030847
30848if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030849
30850cat >>confdefs.h <<\_ACEOF
30851#define HAVE_STD_ISNAN_IN_CMATH 1
30852_ACEOF
30853
Reid Spencerabec8f92004-10-27 23:03:44 +000030854fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030855
30856
Reid Spencera773bd52006-08-04 18:18:08 +000030857{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30858echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030859if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30860 echo $ECHO_N "(cached) $ECHO_C" >&6
30861else
Reid Spencera773bd52006-08-04 18:18:08 +000030862 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030863ac_cpp='$CXXCPP $CPPFLAGS'
30864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30867
Reid Spencerabec8f92004-10-27 23:03:44 +000030868 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030869/* confdefs.h. */
30870_ACEOF
30871cat confdefs.h >>conftest.$ac_ext
30872cat >>conftest.$ac_ext <<_ACEOF
30873/* end confdefs.h. */
30874#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030875int
30876main ()
30877{
30878float f; isinf(f);
30879 ;
30880 return 0;
30881}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030882_ACEOF
30883rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030884if { (ac_try="$ac_compile"
30885case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30888esac
30889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030891 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030892 grep -v '^ *+' conftest.er1 >conftest.err
30893 rm -f conftest.er1
30894 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030896 (exit $ac_status); } && {
30897 test -z "$ac_cxx_werror_flag" ||
30898 test ! -s conftest.err
30899 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030900 ac_cv_func_isinf_in_math_h=yes
30901else
30902 echo "$as_me: failed program was:" >&5
30903sed 's/^/| /' conftest.$ac_ext >&5
30904
Reid Spencera773bd52006-08-04 18:18:08 +000030905 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030906fi
Reid Spencera773bd52006-08-04 18:18:08 +000030907
30908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030909 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030910ac_cpp='$CPP $CPPFLAGS'
30911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30913ac_compiler_gnu=$ac_cv_c_compiler_gnu
30914
30915fi
Reid Spencera773bd52006-08-04 18:18:08 +000030916{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30917echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030918
30919if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030920
30921cat >>confdefs.h <<\_ACEOF
30922#define HAVE_ISINF_IN_MATH_H 1
30923_ACEOF
30924
Reid Spencerabec8f92004-10-27 23:03:44 +000030925fi
30926
Reid Spencera773bd52006-08-04 18:18:08 +000030927{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30928echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030929if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30931else
Reid Spencera773bd52006-08-04 18:18:08 +000030932 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030933ac_cpp='$CXXCPP $CPPFLAGS'
30934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30937
Reid Spencerabec8f92004-10-27 23:03:44 +000030938 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030939/* confdefs.h. */
30940_ACEOF
30941cat confdefs.h >>conftest.$ac_ext
30942cat >>conftest.$ac_ext <<_ACEOF
30943/* end confdefs.h. */
30944#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030945int
30946main ()
30947{
30948float f; isinf(f);
30949 ;
30950 return 0;
30951}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030952_ACEOF
30953rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030954if { (ac_try="$ac_compile"
30955case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30958esac
30959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030962 grep -v '^ *+' conftest.er1 >conftest.err
30963 rm -f conftest.er1
30964 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030966 (exit $ac_status); } && {
30967 test -z "$ac_cxx_werror_flag" ||
30968 test ! -s conftest.err
30969 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030970 ac_cv_func_isinf_in_cmath=yes
30971else
30972 echo "$as_me: failed program was:" >&5
30973sed 's/^/| /' conftest.$ac_ext >&5
30974
Reid Spencera773bd52006-08-04 18:18:08 +000030975 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030976fi
Reid Spencera773bd52006-08-04 18:18:08 +000030977
30978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030979 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030980ac_cpp='$CPP $CPPFLAGS'
30981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30983ac_compiler_gnu=$ac_cv_c_compiler_gnu
30984
30985fi
Reid Spencera773bd52006-08-04 18:18:08 +000030986{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30987echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030988
30989if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030990
30991cat >>confdefs.h <<\_ACEOF
30992#define HAVE_ISINF_IN_CMATH 1
30993_ACEOF
30994
Reid Spencerabec8f92004-10-27 23:03:44 +000030995fi
30996
Reid Spencera773bd52006-08-04 18:18:08 +000030997{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30998echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030999if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31001else
Reid Spencera773bd52006-08-04 18:18:08 +000031002 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031003ac_cpp='$CXXCPP $CPPFLAGS'
31004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31007
Reid Spencerabec8f92004-10-27 23:03:44 +000031008 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031009/* confdefs.h. */
31010_ACEOF
31011cat confdefs.h >>conftest.$ac_ext
31012cat >>conftest.$ac_ext <<_ACEOF
31013/* end confdefs.h. */
31014#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031015int
31016main ()
31017{
31018float f; std::isinf(f)}
31019 ;
31020 return 0;
31021}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031022_ACEOF
31023rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031024if { (ac_try="$ac_compile"
31025case "(($ac_try" in
31026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027 *) ac_try_echo=$ac_try;;
31028esac
31029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031031 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031032 grep -v '^ *+' conftest.er1 >conftest.err
31033 rm -f conftest.er1
31034 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031036 (exit $ac_status); } && {
31037 test -z "$ac_cxx_werror_flag" ||
31038 test ! -s conftest.err
31039 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031040 ac_cv_func_std_isinf_in_cmath=yes
31041else
31042 echo "$as_me: failed program was:" >&5
31043sed 's/^/| /' conftest.$ac_ext >&5
31044
Reid Spencera773bd52006-08-04 18:18:08 +000031045 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031046fi
Reid Spencera773bd52006-08-04 18:18:08 +000031047
31048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031049 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031050ac_cpp='$CPP $CPPFLAGS'
31051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31053ac_compiler_gnu=$ac_cv_c_compiler_gnu
31054
31055fi
Reid Spencera773bd52006-08-04 18:18:08 +000031056{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31057echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031058
31059if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031060
31061cat >>confdefs.h <<\_ACEOF
31062#define HAVE_STD_ISINF_IN_CMATH 1
31063_ACEOF
31064
Reid Spencerabec8f92004-10-27 23:03:44 +000031065fi
31066
Reid Spencera773bd52006-08-04 18:18:08 +000031067{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31068echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000031069if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31070 echo $ECHO_N "(cached) $ECHO_C" >&6
31071else
Reid Spencera773bd52006-08-04 18:18:08 +000031072 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000031073ac_cpp='$CXXCPP $CPPFLAGS'
31074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31077
Reid Spencerabec8f92004-10-27 23:03:44 +000031078 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000031079/* confdefs.h. */
31080_ACEOF
31081cat confdefs.h >>conftest.$ac_ext
31082cat >>conftest.$ac_ext <<_ACEOF
31083/* end confdefs.h. */
31084#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031085int
31086main ()
31087{
31088float f; finite(f);
31089 ;
31090 return 0;
31091}
Brian Gaeked59a6472004-07-21 03:33:58 +000031092_ACEOF
31093rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031094if { (ac_try="$ac_compile"
31095case "(($ac_try" in
31096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097 *) ac_try_echo=$ac_try;;
31098esac
31099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000031101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031102 grep -v '^ *+' conftest.er1 >conftest.err
31103 rm -f conftest.er1
31104 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000031105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031106 (exit $ac_status); } && {
31107 test -z "$ac_cxx_werror_flag" ||
31108 test ! -s conftest.err
31109 } && test -s conftest.$ac_objext; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031110 ac_cv_func_finite_in_ieeefp_h=yes
31111else
31112 echo "$as_me: failed program was:" >&5
31113sed 's/^/| /' conftest.$ac_ext >&5
31114
Reid Spencera773bd52006-08-04 18:18:08 +000031115 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000031116fi
Reid Spencera773bd52006-08-04 18:18:08 +000031117
31118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031119 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000031120ac_cpp='$CPP $CPPFLAGS'
31121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31123ac_compiler_gnu=$ac_cv_c_compiler_gnu
31124
31125fi
Reid Spencera773bd52006-08-04 18:18:08 +000031126{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31127echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031128
Brian Gaeke6802b552004-10-28 05:06:45 +000031129if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031130
31131cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000031132#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000031133_ACEOF
31134
Reid Spencerabec8f92004-10-27 23:03:44 +000031135fi
31136
31137
31138
Reid Spencer30fe5262007-01-20 07:48:49 +000031139if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000031140
31141
31142for ac_header in stdlib.h unistd.h
31143do
31144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031149 echo $ECHO_N "(cached) $ECHO_C" >&6
31150fi
Reid Spencera773bd52006-08-04 18:18:08 +000031151ac_res=`eval echo '${'$as_ac_Header'}'`
31152 { echo "$as_me:$LINENO: result: $ac_res" >&5
31153echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031154else
31155 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000031156{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031158cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031159/* confdefs.h. */
31160_ACEOF
31161cat confdefs.h >>conftest.$ac_ext
31162cat >>conftest.$ac_ext <<_ACEOF
31163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031164$ac_includes_default
31165#include <$ac_header>
31166_ACEOF
31167rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031168if { (ac_try="$ac_compile"
31169case "(($ac_try" in
31170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171 *) ac_try_echo=$ac_try;;
31172esac
31173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031176 grep -v '^ *+' conftest.er1 >conftest.err
31177 rm -f conftest.er1
31178 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031180 (exit $ac_status); } && {
31181 test -z "$ac_c_werror_flag" ||
31182 test ! -s conftest.err
31183 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031184 ac_header_compiler=yes
31185else
31186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031187sed 's/^/| /' conftest.$ac_ext >&5
31188
Reid Spencera773bd52006-08-04 18:18:08 +000031189 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000031190fi
Reid Spencera773bd52006-08-04 18:18:08 +000031191
31192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31194echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031195
31196# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000031197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031199cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031200/* confdefs.h. */
31201_ACEOF
31202cat confdefs.h >>conftest.$ac_ext
31203cat >>conftest.$ac_ext <<_ACEOF
31204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031205#include <$ac_header>
31206_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031207if { (ac_try="$ac_cpp conftest.$ac_ext"
31208case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31211esac
31212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031214 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000031215 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000031216 rm -f conftest.er1
31217 cat conftest.err >&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031219 (exit $ac_status); } >/dev/null && {
31220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31221 test ! -s conftest.err
31222 }; then
John Criswell7a73b802003-06-30 21:59:07 +000031223 ac_header_preproc=yes
31224else
31225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031226sed 's/^/| /' conftest.$ac_ext >&5
31227
John Criswell7a73b802003-06-30 21:59:07 +000031228 ac_header_preproc=no
31229fi
Reid Spencera773bd52006-08-04 18:18:08 +000031230
John Criswell7a73b802003-06-30 21:59:07 +000031231rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000031232{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31233echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031234
31235# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31237 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000031238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31242 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000031243 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031244 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000031245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000031253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000031257 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000031258## ----------------------------------- ##
31259## Report this to llvmbugs@cs.uiuc.edu ##
31260## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000031261_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000031262 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000031263 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031264esac
Reid Spencera773bd52006-08-04 18:18:08 +000031265{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031268 echo $ECHO_N "(cached) $ECHO_C" >&6
31269else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031270 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000031271fi
Reid Spencera773bd52006-08-04 18:18:08 +000031272ac_res=`eval echo '${'$as_ac_Header'}'`
31273 { echo "$as_me:$LINENO: result: $ac_res" >&5
31274echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031275
31276fi
31277if test `eval echo '${'$as_ac_Header'}'` = yes; then
31278 cat >>confdefs.h <<_ACEOF
31279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31280_ACEOF
31281
31282fi
31283
31284done
31285
31286
31287for ac_func in getpagesize
31288do
31289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294else
31295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031296/* confdefs.h. */
31297_ACEOF
31298cat confdefs.h >>conftest.$ac_ext
31299cat >>conftest.$ac_ext <<_ACEOF
31300/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31303#define $ac_func innocuous_$ac_func
31304
John Criswell7a73b802003-06-30 21:59:07 +000031305/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031306 which can conflict with char $ac_func (); below.
31307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31308 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031309
John Criswell0c38eaf2003-09-10 15:17:25 +000031310#ifdef __STDC__
31311# include <limits.h>
31312#else
31313# include <assert.h>
31314#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031315
31316#undef $ac_func
31317
Reid Spencera773bd52006-08-04 18:18:08 +000031318/* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000031321#ifdef __cplusplus
31322extern "C"
31323#endif
John Criswell7a73b802003-06-30 21:59:07 +000031324char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031325/* The GNU C library defines this for functions which it implements
31326 to always fail with ENOSYS. Some functions are actually named
31327 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031328#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000031329choke me
John Criswell7a73b802003-06-30 21:59:07 +000031330#endif
31331
John Criswell0c38eaf2003-09-10 15:17:25 +000031332int
31333main ()
31334{
Reid Spencera773bd52006-08-04 18:18:08 +000031335return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031341if { (ac_try="$ac_link"
31342case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031353 (exit $ac_status); } && {
31354 test -z "$ac_c_werror_flag" ||
31355 test ! -s conftest.err
31356 } && test -s conftest$ac_exeext &&
31357 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000031358 eval "$as_ac_var=yes"
31359else
31360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031361sed 's/^/| /' conftest.$ac_ext >&5
31362
Reid Spencera773bd52006-08-04 18:18:08 +000031363 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031364fi
Reid Spencera773bd52006-08-04 18:18:08 +000031365
Scott Michel96dcd2b2007-12-05 21:24:02 +000031366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031367 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031368fi
Reid Spencera773bd52006-08-04 18:18:08 +000031369ac_res=`eval echo '${'$as_ac_var'}'`
31370 { echo "$as_me:$LINENO: result: $ac_res" >&5
31371echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031372if test `eval echo '${'$as_ac_var'}'` = yes; then
31373 cat >>confdefs.h <<_ACEOF
31374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31375_ACEOF
31376
31377fi
31378done
31379
Reid Spencera773bd52006-08-04 18:18:08 +000031380{ echo "$as_me:$LINENO: checking for working mmap" >&5
31381echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031382if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384else
31385 if test "$cross_compiling" = yes; then
31386 ac_cv_func_mmap_fixed_mapped=no
31387else
31388 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031389/* confdefs.h. */
31390_ACEOF
31391cat confdefs.h >>conftest.$ac_ext
31392cat >>conftest.$ac_ext <<_ACEOF
31393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031394$ac_includes_default
31395/* malloc might have been renamed as rpl_malloc. */
31396#undef malloc
31397
31398/* Thanks to Mike Haertel and Jim Avera for this test.
31399 Here is a matrix of mmap possibilities:
31400 mmap private not fixed
31401 mmap private fixed at somewhere currently unmapped
31402 mmap private fixed at somewhere already mapped
31403 mmap shared not fixed
31404 mmap shared fixed at somewhere currently unmapped
31405 mmap shared fixed at somewhere already mapped
31406 For private mappings, we should verify that changes cannot be read()
31407 back from the file, nor mmap's back from the file at a different
31408 address. (There have been systems where private was not correctly
31409 implemented like the infamous i386 svr4.0, and systems where the
31410 VM page cache was not coherent with the file system buffer cache
31411 like early versions of FreeBSD and possibly contemporary NetBSD.)
31412 For shared mappings, we should conversely verify that changes get
31413 propagated back to all the places they're supposed to be.
31414
31415 Grep wants private fixed already mapped.
31416 The main things grep needs to know about mmap are:
31417 * does it exist and is it safe to write into the mmap'd area
31418 * how to use it (BSD variants) */
31419
31420#include <fcntl.h>
31421#include <sys/mman.h>
31422
Scott Michel96dcd2b2007-12-05 21:24:02 +000031423#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000031424char *malloc ();
31425#endif
31426
31427/* This mess was copied from the GNU getpagesize.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031428#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000031429/* Assume that all systems that can run configure have sys/param.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031430# ifndef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031431# define HAVE_SYS_PARAM_H 1
31432# endif
31433
31434# ifdef _SC_PAGESIZE
31435# define getpagesize() sysconf(_SC_PAGESIZE)
31436# else /* no _SC_PAGESIZE */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031437# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031438# include <sys/param.h>
31439# ifdef EXEC_PAGESIZE
31440# define getpagesize() EXEC_PAGESIZE
31441# else /* no EXEC_PAGESIZE */
31442# ifdef NBPG
31443# define getpagesize() NBPG * CLSIZE
31444# ifndef CLSIZE
31445# define CLSIZE 1
31446# endif /* no CLSIZE */
31447# else /* no NBPG */
31448# ifdef NBPC
31449# define getpagesize() NBPC
31450# else /* no NBPC */
31451# ifdef PAGESIZE
31452# define getpagesize() PAGESIZE
31453# endif /* PAGESIZE */
31454# endif /* no NBPC */
31455# endif /* no NBPG */
31456# endif /* no EXEC_PAGESIZE */
31457# else /* no HAVE_SYS_PARAM_H */
31458# define getpagesize() 8192 /* punt totally */
31459# endif /* no HAVE_SYS_PARAM_H */
31460# endif /* no _SC_PAGESIZE */
31461
31462#endif /* no HAVE_GETPAGESIZE */
31463
31464int
31465main ()
31466{
31467 char *data, *data2, *data3;
31468 int i, pagesize;
31469 int fd;
31470
31471 pagesize = getpagesize ();
31472
31473 /* First, make a file with some known garbage in it. */
31474 data = (char *) malloc (pagesize);
31475 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000031476 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031477 for (i = 0; i < pagesize; ++i)
31478 *(data + i) = rand ();
31479 umask (0);
31480 fd = creat ("conftest.mmap", 0600);
31481 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031482 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031483 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031484 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031485 close (fd);
31486
31487 /* Next, try to mmap the file at a fixed address which already has
31488 something else allocated at it. If we can, also make sure that
31489 we see the same garbage. */
31490 fd = open ("conftest.mmap", O_RDWR);
31491 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031492 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031493 data2 = (char *) malloc (2 * pagesize);
31494 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000031495 return 1;
31496 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000031497 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000031498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000031499 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031500 for (i = 0; i < pagesize; ++i)
31501 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031502 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031503
31504 /* Finally, make sure that changes to the mapped area do not
31505 percolate back to the file as seen by read(). (This is a bug on
31506 some variants of i386 svr4.0.) */
31507 for (i = 0; i < pagesize; ++i)
31508 *(data2 + i) = *(data2 + i) + 1;
31509 data3 = (char *) malloc (pagesize);
31510 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000031511 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031512 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031513 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031514 for (i = 0; i < pagesize; ++i)
31515 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031516 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031517 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000031518 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031519}
31520_ACEOF
31521rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031522if { (ac_try="$ac_link"
31523case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31526esac
31527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031529 ac_status=$?
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
31541 ac_cv_func_mmap_fixed_mapped=yes
31542else
31543 echo "$as_me: program exited with status $ac_status" >&5
31544echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031545sed 's/^/| /' conftest.$ac_ext >&5
31546
John Criswell7a73b802003-06-30 21:59:07 +000031547( exit $ac_status )
31548ac_cv_func_mmap_fixed_mapped=no
31549fi
Reid Spencera773bd52006-08-04 18:18:08 +000031550rm -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 +000031551fi
Reid Spencera773bd52006-08-04 18:18:08 +000031552
31553
John Criswell7a73b802003-06-30 21:59:07 +000031554fi
Reid Spencera773bd52006-08-04 18:18:08 +000031555{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31556echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031557if test $ac_cv_func_mmap_fixed_mapped = yes; then
31558
31559cat >>confdefs.h <<\_ACEOF
31560#define HAVE_MMAP 1
31561_ACEOF
31562
31563fi
31564rm -f conftest.mmap
31565
Reid Spencer30fe5262007-01-20 07:48:49 +000031566 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031567echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031568if test "${ac_cv_func_mmap_file+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31570else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031571 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031572ac_cpp='$CPP $CPPFLAGS'
31573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31575ac_compiler_gnu=$ac_cv_c_compiler_gnu
31576
31577 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031578 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031579else
31580 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031581
Reid Spencer777ce172004-09-20 04:09:56 +000031582 /* confdefs.h. */
31583_ACEOF
31584cat confdefs.h >>conftest.$ac_ext
31585cat >>conftest.$ac_ext <<_ACEOF
31586/* end confdefs.h. */
31587
John Criswell7a73b802003-06-30 21:59:07 +000031588#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031589#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031590#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031591
31592int
31593main ()
31594{
John Criswell7a73b802003-06-30 21:59:07 +000031595
31596 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031597 fd = creat ("foo",0777);
31598 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31599 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031600 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031601 ;
31602 return 0;
31603}
John Criswell7a73b802003-06-30 21:59:07 +000031604_ACEOF
31605rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031606if { (ac_try="$ac_link"
31607case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31610esac
31611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031616 { (case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31619esac
31620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; }; then
31625 ac_cv_func_mmap_file=yes
31626else
31627 echo "$as_me: program exited with status $ac_status" >&5
31628echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031629sed 's/^/| /' conftest.$ac_ext >&5
31630
John Criswell7a73b802003-06-30 21:59:07 +000031631( exit $ac_status )
31632ac_cv_func_mmap_file=no
31633fi
Reid Spencera773bd52006-08-04 18:18:08 +000031634rm -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 +000031635fi
Reid Spencera773bd52006-08-04 18:18:08 +000031636
31637
John Criswell7a73b802003-06-30 21:59:07 +000031638 ac_ext=c
31639ac_cpp='$CPP $CPPFLAGS'
31640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31642ac_compiler_gnu=$ac_cv_c_compiler_gnu
31643
31644
31645fi
Reid Spencera773bd52006-08-04 18:18:08 +000031646{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31647echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031648if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031649
31650cat >>confdefs.h <<\_ACEOF
31651#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031652_ACEOF
31653
31654 MMAP_FILE=yes
31655
31656fi
31657
Reid Spencer30fe5262007-01-20 07:48:49 +000031658 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031659echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031660if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31661 echo $ECHO_N "(cached) $ECHO_C" >&6
31662else
Reid Spencer582a23c2004-12-29 07:07:57 +000031663 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031664 ac_cv_need_dev_zero_for_mmap=yes
31665 else
31666 ac_cv_need_dev_zero_for_mmap=no
31667 fi
31668
31669fi
Reid Spencera773bd52006-08-04 18:18:08 +000031670{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31671echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031672if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31673
31674cat >>confdefs.h <<\_ACEOF
31675#define NEED_DEV_ZERO_FOR_MMAP 1
31676_ACEOF
31677
31678fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031679
Reid Spencer30fe5262007-01-20 07:48:49 +000031680 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31681 then
31682 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000031683echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031684 fi
31685 if test "$ac_cv_func_mmap_file" = "no"
31686 then
31687 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031688echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031689 fi
John Criswellb13092b2003-07-22 21:00:24 +000031690fi
John Criswell7a73b802003-06-30 21:59:07 +000031691
31692
Reid Spencer9372f152007-07-30 20:13:24 +000031693
31694for ac_func in __dso_handle
31695do
31696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31697{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31699if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31700 echo $ECHO_N "(cached) $ECHO_C" >&6
31701else
31702 cat >conftest.$ac_ext <<_ACEOF
31703/* confdefs.h. */
31704_ACEOF
31705cat confdefs.h >>conftest.$ac_ext
31706cat >>conftest.$ac_ext <<_ACEOF
31707/* end confdefs.h. */
31708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31710#define $ac_func innocuous_$ac_func
31711
31712/* System header to define __stub macros and hopefully few prototypes,
31713 which can conflict with char $ac_func (); below.
31714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31715 <limits.h> exists even on freestanding compilers. */
31716
31717#ifdef __STDC__
31718# include <limits.h>
31719#else
31720# include <assert.h>
31721#endif
31722
31723#undef $ac_func
31724
31725/* Override any GCC internal prototype to avoid an error.
31726 Use char because int might match the return type of a GCC
31727 builtin and then its argument prototype would still apply. */
31728#ifdef __cplusplus
31729extern "C"
31730#endif
31731char $ac_func ();
31732/* The GNU C library defines this for functions which it implements
31733 to always fail with ENOSYS. Some functions are actually named
31734 something starting with __ and the normal name is an alias. */
31735#if defined __stub_$ac_func || defined __stub___$ac_func
31736choke me
31737#endif
31738
31739int
31740main ()
31741{
31742return $ac_func ();
31743 ;
31744 return 0;
31745}
31746_ACEOF
31747rm -f conftest.$ac_objext conftest$ac_exeext
31748if { (ac_try="$ac_link"
31749case "(($ac_try" in
31750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31751 *) ac_try_echo=$ac_try;;
31752esac
31753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31754 (eval "$ac_link") 2>conftest.er1
31755 ac_status=$?
31756 grep -v '^ *+' conftest.er1 >conftest.err
31757 rm -f conftest.er1
31758 cat conftest.err >&5
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031760 (exit $ac_status); } && {
31761 test -z "$ac_c_werror_flag" ||
31762 test ! -s conftest.err
31763 } && test -s conftest$ac_exeext &&
31764 $as_test_x conftest$ac_exeext; then
Reid Spencer9372f152007-07-30 20:13:24 +000031765 eval "$as_ac_var=yes"
31766else
31767 echo "$as_me: failed program was:" >&5
31768sed 's/^/| /' conftest.$ac_ext >&5
31769
31770 eval "$as_ac_var=no"
31771fi
31772
Scott Michel96dcd2b2007-12-05 21:24:02 +000031773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer9372f152007-07-30 20:13:24 +000031774 conftest$ac_exeext conftest.$ac_ext
31775fi
31776ac_res=`eval echo '${'$as_ac_var'}'`
31777 { echo "$as_me:$LINENO: result: $ac_res" >&5
31778echo "${ECHO_T}$ac_res" >&6; }
31779if test `eval echo '${'$as_ac_var'}'` = yes; then
31780 cat >>confdefs.h <<_ACEOF
31781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31782_ACEOF
31783
31784fi
31785done
31786
31787
Reid Spencera773bd52006-08-04 18:18:08 +000031788{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31789echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031790if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31791 echo $ECHO_N "(cached) $ECHO_C" >&6
31792else
31793 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031794if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031795 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000031796 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31797 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031798 if test $? -eq 0 ; then
31799 llvm_cv_llvmgcc_sanity="yes"
31800 fi
31801 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031802fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031803fi
Reid Spencera773bd52006-08-04 18:18:08 +000031804{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31805echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031806
31807if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000031808 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31809echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000031810 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031811 LLVMCC1=$llvmcc1path
31812
Reid Spencer502935f2004-12-22 05:56:56 +000031813 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031814 LLVMCC1PLUS=$llvmcc1pluspath
31815
Reid Spencer502935f2004-12-22 05:56:56 +000031816 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31817 LLVMGCCDIR=$llvmgccdir
31818
Reid Spencer282d8c12006-12-21 22:55:41 +000031819 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31820 LLVMGCCLIBEXEC=$llvmgcclibexec
31821
Reid Spencerb5d75b82006-05-09 00:31:01 +000031822 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031823 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31824 LLVMGCC_VERSION=$llvmgccversion
31825
31826 LLVMGCC_MAJVERS=$llvmgccmajvers
31827
Reid Spencer0d238182007-04-21 21:28:52 +000031828 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31829 LLVMGCC_LANGS=$llvmgcclangs
31830
31831 { echo "$as_me:$LINENO: result: ok" >&5
31832echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000031833fi
31834
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031835SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031836
31837
Reid Spencere9de0912004-08-20 09:03:57 +000031838# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031839# information into substitutions that will end up in Makefile.config.in
31840# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000031841if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000031842 prefix="/usr/local"
31843fi
Reid Spencere9de0912004-08-20 09:03:57 +000031844eval LLVM_PREFIX="${prefix}";
31845eval LLVM_BINDIR="${prefix}/bin";
31846eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031847eval LLVM_DATADIR="${prefix}/share/llvm";
31848eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31849eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031850eval LLVM_INCLUDEDIR="${prefix}/include";
31851eval LLVM_INFODIR="${prefix}/info";
31852eval LLVM_MANDIR="${prefix}/man";
31853LLVM_CONFIGTIME=`date`
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031865# Place the various directores into the config.h file as #defines so that we
31866# can know about the installation paths within LLVM.
31867
Reid Spencere9de0912004-08-20 09:03:57 +000031868cat >>confdefs.h <<_ACEOF
31869#define LLVM_PREFIX "$LLVM_PREFIX"
31870_ACEOF
31871
31872
31873cat >>confdefs.h <<_ACEOF
31874#define LLVM_BINDIR "$LLVM_BINDIR"
31875_ACEOF
31876
31877
31878cat >>confdefs.h <<_ACEOF
31879#define LLVM_LIBDIR "$LLVM_LIBDIR"
31880_ACEOF
31881
31882
31883cat >>confdefs.h <<_ACEOF
31884#define LLVM_DATADIR "$LLVM_DATADIR"
31885_ACEOF
31886
31887
31888cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000031889#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031890_ACEOF
31891
31892
31893cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031894#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031895_ACEOF
31896
31897
31898cat >>confdefs.h <<_ACEOF
31899#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31900_ACEOF
31901
31902
31903cat >>confdefs.h <<_ACEOF
31904#define LLVM_INFODIR "$LLVM_INFODIR"
31905_ACEOF
31906
31907
31908cat >>confdefs.h <<_ACEOF
31909#define LLVM_MANDIR "$LLVM_MANDIR"
31910_ACEOF
31911
31912
31913cat >>confdefs.h <<_ACEOF
31914#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31915_ACEOF
31916
31917
Eric Christopher790e11c2007-12-01 00:34:39 +000031918cat >>confdefs.h <<_ACEOF
31919#define LLVM_HOSTTRIPLE "$host"
31920_ACEOF
31921
31922
Gordon Henriksenc0efff82007-10-02 09:50:32 +000031923# Determine which bindings to build.
31924if test "$BINDINGS_TO_BUILD" = auto ; then
31925 BINDINGS_TO_BUILD=""
31926 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31927 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31928 fi
31929fi
31930BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31931
31932
31933# This isn't really configurey, but it avoids having to repeat the list in
31934# other files.
31935ALL_BINDINGS=ocaml
31936
31937
Gordon Henriksenf0915682007-10-02 16:42:22 +000031938# Do any work necessary to ensure that bindings have what they need.
31939binding_prereqs_failed=0
31940for a_binding in $BINDINGS_TO_BUILD ; do
31941 case "$a_binding" in
31942 ocaml)
31943 if test "x$OCAMLC" = x ; then
31944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31945echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31946 binding_prereqs_failed=1
31947 fi
31948 if test "x$OCAMLDEP" = x ; then
31949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31950echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31951 binding_prereqs_failed=1
31952 fi
31953 if test "x$OCAMLOPT" = x ; then
31954 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31955echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31956 fi
31957 if test "x$with_ocaml_libdir" != xauto ; then
31958 OCAML_LIBDIR=$with_ocaml_libdir
31959
31960 else
31961 ocaml_stdlib="`"$OCAMLC" -where`"
31962 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31963 then
31964 # ocaml stdlib is beneath our prefix; use stdlib
31965 OCAML_LIBDIR=$ocaml_stdlib
31966
31967 else
31968 # ocaml stdlib is outside our prefix; use libdir/ocaml
31969 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31970
31971 fi
31972 fi
31973 ;;
31974 esac
31975done
31976if test "$binding_prereqs_failed" = 1 ; then
31977 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31978echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31979 { (exit 1); exit 1; }; }
31980fi
31981
31982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031983
Reid Spencera773bd52006-08-04 18:18:08 +000031984ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031985
Reid Spencera773bd52006-08-04 18:18:08 +000031986ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031987
Reid Spencera773bd52006-08-04 18:18:08 +000031988ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031989
Reid Spencera773bd52006-08-04 18:18:08 +000031990ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031991
Reid Spencera773bd52006-08-04 18:18:08 +000031992ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031993
31994
Reid Spencera773bd52006-08-04 18:18:08 +000031995ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031996
31997
Reid Spencerea949cf2006-08-16 00:45:38 +000031998ac_config_files="$ac_config_files llvm.spec"
31999
32000
Reid Spencera773bd52006-08-04 18:18:08 +000032001ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000032002
32003
Reid Spencera773bd52006-08-04 18:18:08 +000032004ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000032005
32006
Reid Spencera773bd52006-08-04 18:18:08 +000032007ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000032008
Reid Spencera773bd52006-08-04 18:18:08 +000032009ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032010
32011
Reid Spencera773bd52006-08-04 18:18:08 +000032012ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032013
32014
Reid Spencera773bd52006-08-04 18:18:08 +000032015ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032016
32017
Reid Spencera773bd52006-08-04 18:18:08 +000032018ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032019
32020
Reid Spencer8b2e1412006-11-17 03:32:33 +000032021ac_config_commands="$ac_config_commands runtime/Makefile"
32022
32023
Reid Spencera773bd52006-08-04 18:18:08 +000032024ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032025
32026
Reid Spencera773bd52006-08-04 18:18:08 +000032027ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032028
32029
Reid Spencera773bd52006-08-04 18:18:08 +000032030ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032031
32032
Reid Spencera773bd52006-08-04 18:18:08 +000032033ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032034
32035
Reid Spencera773bd52006-08-04 18:18:08 +000032036ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032037
32038
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032039ac_config_commands="$ac_config_commands bindings/Makefile"
32040
32041
32042ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32043
32044
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032045
John Criswell7a73b802003-06-30 21:59:07 +000032046cat >confcache <<\_ACEOF
32047# This file is a shell script that caches the results of configure
32048# tests run on this system so they can be shared between configure
32049# scripts and configure runs, see configure's option --config-cache.
32050# It is not useful on other systems. If it contains results you don't
32051# want to keep, you may remove or edit it.
32052#
32053# config.status only pays attention to the cache file if you give it
32054# the --recheck option to rerun configure.
32055#
John Criswell0c38eaf2003-09-10 15:17:25 +000032056# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000032057# loading this file, other *unset* `ac_cv_foo' will be assigned the
32058# following values.
32059
32060_ACEOF
32061
32062# The following way of writing the cache mishandles newlines in values,
32063# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000032064# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000032065# Ultrix sh set writes to stderr and can't be redirected directly,
32066# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000032067(
32068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32069 eval ac_val=\$$ac_var
32070 case $ac_val in #(
32071 *${as_nl}*)
32072 case $ac_var in #(
32073 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32074echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32075 esac
32076 case $ac_var in #(
32077 _ | IFS | as_nl) ;; #(
32078 *) $as_unset $ac_var ;;
32079 esac ;;
32080 esac
32081 done
32082
John Criswell7a73b802003-06-30 21:59:07 +000032083 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000032084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32085 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000032086 # `set' does not quote correctly, so add quotes (double-quote
32087 # substitution turns \\\\ into \\, and sed turns \\ into \).
32088 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032089 "s/'/'\\\\''/g;
32090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000032091 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000032092 *)
32093 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000032094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000032095 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032096 esac |
32097 sort
32098) |
John Criswell7a73b802003-06-30 21:59:07 +000032099 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032100 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000032101 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000032102 :clear
John Criswell7a73b802003-06-30 21:59:07 +000032103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32104 t end
Reid Spencera773bd52006-08-04 18:18:08 +000032105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32106 :end' >>confcache
32107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32108 if test -w "$cache_file"; then
32109 test "x$cache_file" != "x/dev/null" &&
32110 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32111echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032112 cat confcache >$cache_file
32113 else
Reid Spencera773bd52006-08-04 18:18:08 +000032114 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32115echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032116 fi
32117fi
32118rm -f confcache
32119
32120test "x$prefix" = xNONE && prefix=$ac_default_prefix
32121# Let make expand exec_prefix.
32122test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32123
John Criswell7a73b802003-06-30 21:59:07 +000032124DEFS=-DHAVE_CONFIG_H
32125
John Criswell0c38eaf2003-09-10 15:17:25 +000032126ac_libobjs=
32127ac_ltlibobjs=
32128for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32129 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000032130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32131 ac_i=`echo "$ac_i" | sed "$ac_script"`
32132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32133 # will be set to the directory where LIBOBJS objects are built.
32134 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32135 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000032136done
32137LIBOBJS=$ac_libobjs
32138
32139LTLIBOBJS=$ac_ltlibobjs
32140
32141
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032142if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32143 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32144Usually this means the macro was only invoked conditionally." >&5
32145echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32146Usually this means the macro was only invoked conditionally." >&2;}
32147 { (exit 1); exit 1; }; }
32148fi
32149if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32150 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32151Usually this means the macro was only invoked conditionally." >&5
32152echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32153Usually this means the macro was only invoked conditionally." >&2;}
32154 { (exit 1); exit 1; }; }
32155fi
John Criswell7a73b802003-06-30 21:59:07 +000032156
32157: ${CONFIG_STATUS=./config.status}
32158ac_clean_files_save=$ac_clean_files
32159ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32160{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32161echo "$as_me: creating $CONFIG_STATUS" >&6;}
32162cat >$CONFIG_STATUS <<_ACEOF
32163#! $SHELL
32164# Generated by $as_me.
32165# Run this file to recreate the current configuration.
32166# Compiler output produced by configure, useful for debugging
32167# configure, is in config.log if it exists.
32168
32169debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000032170ac_cs_recheck=false
32171ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000032172SHELL=\${CONFIG_SHELL-$SHELL}
32173_ACEOF
32174
32175cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032176## --------------------- ##
32177## M4sh Initialization. ##
32178## --------------------- ##
32179
Scott Michel96dcd2b2007-12-05 21:24:02 +000032180# Be more Bourne compatible
32181DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000032182if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32183 emulate sh
32184 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32186 # is contrary to our usage. Disable this feature.
32187 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000032188 setopt NO_GLOB_SUBST
32189else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032190 case `(set -o) 2>/dev/null` in
32191 *posix*) set -o posix ;;
32192esac
32193
John Criswell7a73b802003-06-30 21:59:07 +000032194fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032195
32196
John Criswell7a73b802003-06-30 21:59:07 +000032197
John Criswell7a73b802003-06-30 21:59:07 +000032198
Reid Spencera773bd52006-08-04 18:18:08 +000032199# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000032200# Avoid depending upon Character Ranges.
32201as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32202as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32203as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32204as_cr_digits='0123456789'
32205as_cr_alnum=$as_cr_Letters$as_cr_digits
32206
32207# The user is always right.
32208if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032209 echo "#! /bin/sh" >conf$$.sh
32210 echo "exit 0" >>conf$$.sh
32211 chmod +x conf$$.sh
32212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032213 PATH_SEPARATOR=';'
32214 else
32215 PATH_SEPARATOR=:
32216 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000032217 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000032218fi
32219
Reid Spencera773bd52006-08-04 18:18:08 +000032220# Support unset when possible.
32221if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32222 as_unset=unset
32223else
32224 as_unset=false
32225fi
John Criswell7a73b802003-06-30 21:59:07 +000032226
Reid Spencera773bd52006-08-04 18:18:08 +000032227
32228# IFS
32229# We need space, tab and new line, in precisely that order. Quoting is
32230# there to prevent editors from complaining about space-tab.
32231# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32232# splitting by setting IFS to empty value.)
32233as_nl='
32234'
32235IFS=" "" $as_nl"
32236
32237# Find who we are. Look in the path if we contain no directory separator.
32238case $0 in
32239 *[\\/]* ) as_myself=$0 ;;
32240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000032241for as_dir in $PATH
32242do
32243 IFS=$as_save_IFS
32244 test -z "$as_dir" && as_dir=.
32245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32246done
Reid Spencera773bd52006-08-04 18:18:08 +000032247IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000032248
Reid Spencera773bd52006-08-04 18:18:08 +000032249 ;;
32250esac
32251# We did not find ourselves, most probably we were run as `sh COMMAND'
32252# in which case we are not to be found in the path.
32253if test "x$as_myself" = x; then
32254 as_myself=$0
32255fi
32256if test ! -f "$as_myself"; then
32257 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32258 { (exit 1); exit 1; }
32259fi
32260
32261# Work around bugs in pre-3.0 UWIN ksh.
32262for as_var in ENV MAIL MAILPATH
32263do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32264done
32265PS1='$ '
32266PS2='> '
32267PS4='+ '
32268
32269# NLS nuisances.
32270for as_var in \
32271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32273 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000032274do
Reid Spencera773bd52006-08-04 18:18:08 +000032275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32276 eval $as_var=C; export $as_var
32277 else
32278 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32279 fi
32280done
32281
32282# Required to use basename.
32283if expr a : '\(a\)' >/dev/null 2>&1 &&
32284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32285 as_expr=expr
32286else
32287 as_expr=false
32288fi
32289
32290if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32291 as_basename=basename
32292else
32293 as_basename=false
32294fi
32295
32296
32297# Name of the executable.
32298as_me=`$as_basename -- "$0" ||
32299$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32300 X"$0" : 'X\(//\)$' \| \
32301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32302echo X/"$0" |
32303 sed '/^.*\/\([^/][^/]*\)\/*$/{
32304 s//\1/
32305 q
32306 }
32307 /^X\/\(\/\/\)$/{
32308 s//\1/
32309 q
32310 }
32311 /^X\/\(\/\).*/{
32312 s//\1/
32313 q
32314 }
32315 s/.*/./; q'`
32316
32317# CDPATH.
32318$as_unset CDPATH
32319
32320
32321
John Criswell7a73b802003-06-30 21:59:07 +000032322 as_lineno_1=$LINENO
32323 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000032324 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000032325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000032326
32327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32328 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000032329 # line-number line after each line using $LINENO; the second 'sed'
32330 # does the real work. The second script uses 'N' to pair each
32331 # line-number line with the line containing $LINENO, and appends
32332 # trailing '-' during substitution so that $LINENO is not a special
32333 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000032334 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000032335 # scripts with optimization help from Paolo Bonzini. Blame Lee
32336 # E. McMahon (1931-1989) for sed's syntax. :-)
32337 sed -n '
32338 p
32339 /[$]LINENO/=
32340 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000032341 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032342 s/[$]LINENO.*/&-/
32343 t lineno
32344 b
32345 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000032346 N
Reid Spencera773bd52006-08-04 18:18:08 +000032347 :loop
32348 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000032349 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000032350 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000032351 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000032352 chmod +x "$as_me.lineno" ||
32353 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000032354 { (exit 1); exit 1; }; }
32355
32356 # Don't try to exec as it changes $[0], causing all sort of problems
32357 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000032358 # original and so on. Autoconf is especially sensitive to this).
32359 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000032360 # Exit status is that of the last command.
32361 exit
32362}
32363
32364
Reid Spencera773bd52006-08-04 18:18:08 +000032365if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32366 as_dirname=dirname
32367else
32368 as_dirname=false
32369fi
32370
32371ECHO_C= ECHO_N= ECHO_T=
32372case `echo -n x` in
32373-n*)
32374 case `echo 'x\c'` in
32375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32376 *) ECHO_C='\c';;
32377 esac;;
32378*)
32379 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000032380esac
32381
Reid Spencera773bd52006-08-04 18:18:08 +000032382if expr a : '\(a\)' >/dev/null 2>&1 &&
32383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000032384 as_expr=expr
32385else
32386 as_expr=false
32387fi
32388
32389rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000032390if test -d conf$$.dir; then
32391 rm -f conf$$.dir/conf$$.file
32392else
32393 rm -f conf$$.dir
32394 mkdir conf$$.dir
32395fi
John Criswell7a73b802003-06-30 21:59:07 +000032396echo >conf$$.file
32397if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000032398 as_ln_s='ln -s'
32399 # ... but there are two gotchas:
32400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32402 # In both cases, we have to default to `cp -p'.
32403 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000032404 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000032405elif ln conf$$.file conf$$ 2>/dev/null; then
32406 as_ln_s=ln
32407else
32408 as_ln_s='cp -p'
32409fi
Reid Spencera773bd52006-08-04 18:18:08 +000032410rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32411rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000032412
John Criswell0c38eaf2003-09-10 15:17:25 +000032413if mkdir -p . 2>/dev/null; then
32414 as_mkdir_p=:
32415else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032416 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000032417 as_mkdir_p=false
32418fi
32419
Scott Michel96dcd2b2007-12-05 21:24:02 +000032420if test -x / >/dev/null 2>&1; then
32421 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000032422else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032423 if ls -dL / >/dev/null 2>&1; then
32424 as_ls_L_option=L
32425 else
32426 as_ls_L_option=
32427 fi
32428 as_test_x='
32429 eval sh -c '\''
32430 if test -d "$1"; then
32431 test -d "$1/.";
32432 else
32433 case $1 in
32434 -*)set "./$1";;
32435 esac;
32436 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32437 ???[sx]*):;;*)false;;esac;fi
32438 '\'' sh
32439 '
Reid Spencera773bd52006-08-04 18:18:08 +000032440fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032441as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000032442
32443# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032445
32446# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032448
32449
John Criswell7a73b802003-06-30 21:59:07 +000032450exec 6>&1
32451
Reid Spencera773bd52006-08-04 18:18:08 +000032452# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000032453# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000032454# values after options handling.
32455ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000032456This file was extended by llvm $as_me 2.2svn, which was
Scott Michel96dcd2b2007-12-05 21:24:02 +000032457generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000032458
32459 CONFIG_FILES = $CONFIG_FILES
32460 CONFIG_HEADERS = $CONFIG_HEADERS
32461 CONFIG_LINKS = $CONFIG_LINKS
32462 CONFIG_COMMANDS = $CONFIG_COMMANDS
32463 $ $0 $@
32464
Reid Spencera773bd52006-08-04 18:18:08 +000032465on `(hostname || uname -n) 2>/dev/null | sed 1q`
32466"
32467
John Criswell7a73b802003-06-30 21:59:07 +000032468_ACEOF
32469
Reid Spencera773bd52006-08-04 18:18:08 +000032470cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032471# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000032472config_files="$ac_config_files"
32473config_headers="$ac_config_headers"
32474config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000032475
Reid Spencera773bd52006-08-04 18:18:08 +000032476_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032477
32478cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032479ac_cs_usage="\
32480\`$as_me' instantiates files from templates according to the
32481current configuration.
32482
32483Usage: $0 [OPTIONS] [FILE]...
32484
32485 -h, --help print this help, then exit
Scott Michel96dcd2b2007-12-05 21:24:02 +000032486 -V, --version print version number and configuration settings, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000032487 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000032488 -d, --debug don't remove temporary files
32489 --recheck update $as_me by reconfiguring in the same conditions
32490 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032491 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000032492 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032493 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000032494
32495Configuration files:
32496$config_files
32497
32498Configuration headers:
32499$config_headers
32500
John Criswellc764fbc2003-09-06 15:17:13 +000032501Configuration commands:
32502$config_commands
32503
John Criswell7a73b802003-06-30 21:59:07 +000032504Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000032505
Reid Spencera773bd52006-08-04 18:18:08 +000032506_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032507cat >>$CONFIG_STATUS <<_ACEOF
32508ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000032509llvm config.status 2.2svn
Scott Michel96dcd2b2007-12-05 21:24:02 +000032510configured by $0, generated by GNU Autoconf 2.61,
Reid Spencera773bd52006-08-04 18:18:08 +000032511 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000032512
Reid Spencera773bd52006-08-04 18:18:08 +000032513Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000032514This config.status script is free software; the Free Software Foundation
32515gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000032516
32517ac_pwd='$ac_pwd'
32518srcdir='$srcdir'
32519INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000032520_ACEOF
32521
32522cat >>$CONFIG_STATUS <<\_ACEOF
32523# If no file are specified by the user, then we need to provide default
32524# value. By we need to know if files were specified by the user.
32525ac_need_defaults=:
32526while test $# != 0
32527do
32528 case $1 in
32529 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000032530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032532 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000032533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032534 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000032535 ac_option=$1
32536 ac_optarg=$2
32537 ac_shift=shift
32538 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032539 esac
32540
John Criswell0c38eaf2003-09-10 15:17:25 +000032541 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000032542 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000032543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32544 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32546 echo "$ac_cs_version"; exit ;;
32547 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000032548 debug=: ;;
32549 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000032550 $ac_shift
32551 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032552 ac_need_defaults=false;;
32553 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000032554 $ac_shift
32555 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032556 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000032557 --he | --h)
32558 # Conflict between --help and --header
32559 { echo "$as_me: error: ambiguous option: $1
32560Try \`$0 --help' for more information." >&2
32561 { (exit 1); exit 1; }; };;
32562 --help | --hel | -h )
32563 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000032564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32566 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000032567
32568 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000032569 -*) { echo "$as_me: error: unrecognized option: $1
32570Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032571 { (exit 1); exit 1; }; } ;;
32572
Reid Spencera773bd52006-08-04 18:18:08 +000032573 *) ac_config_targets="$ac_config_targets $1"
32574 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000032575
32576 esac
32577 shift
32578done
32579
John Criswell0c38eaf2003-09-10 15:17:25 +000032580ac_configure_extra_args=
32581
32582if $ac_cs_silent; then
32583 exec 6>/dev/null
32584 ac_configure_extra_args="$ac_configure_extra_args --silent"
32585fi
32586
32587_ACEOF
32588cat >>$CONFIG_STATUS <<_ACEOF
32589if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000032590 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32591 CONFIG_SHELL=$SHELL
32592 export CONFIG_SHELL
32593 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000032594fi
32595
John Criswell7a73b802003-06-30 21:59:07 +000032596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032597cat >>$CONFIG_STATUS <<\_ACEOF
32598exec 5>>config.log
32599{
32600 echo
32601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32602## Running $as_me. ##
32603_ASBOX
32604 echo "$ac_log"
32605} >&5
John Criswell7a73b802003-06-30 21:59:07 +000032606
Reid Spencera773bd52006-08-04 18:18:08 +000032607_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032608cat >>$CONFIG_STATUS <<_ACEOF
32609#
Reid Spencera773bd52006-08-04 18:18:08 +000032610# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000032611#
Reid Spencerc0682832005-02-24 19:05:19 +000032612llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000032613
32614_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032615
John Criswell7a73b802003-06-30 21:59:07 +000032616cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032617
32618# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000032619for ac_config_target in $ac_config_targets
32620do
Reid Spencera773bd52006-08-04 18:18:08 +000032621 case $ac_config_target in
32622 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32623 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32624 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32625 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32626 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32627 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000032628 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032629 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32630 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32631 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32632 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32633 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32634 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32635 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000032636 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032637 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32638 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32639 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32640 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32641 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032642 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32643 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032644
John Criswell7a73b802003-06-30 21:59:07 +000032645 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32646echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32647 { (exit 1); exit 1; }; };;
32648 esac
32649done
32650
Reid Spencera773bd52006-08-04 18:18:08 +000032651
John Criswell7a73b802003-06-30 21:59:07 +000032652# If the user did not use the arguments to specify the items to instantiate,
32653# then the envvar interface is used. Set only those that are not.
32654# We use the long form for the default assignment because of an extremely
32655# bizarre bug on SunOS 4.1.3.
32656if $ac_need_defaults; then
32657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000032659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000032660fi
32661
John Criswell0c38eaf2003-09-10 15:17:25 +000032662# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000032663# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000032664# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000032665# Hook for its removal unless debugging.
32666# Note that there is a small window in which the directory will not be cleaned:
32667# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000032668$debug ||
32669{
Reid Spencera773bd52006-08-04 18:18:08 +000032670 tmp=
32671 trap 'exit_status=$?
32672 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32673' 0
John Criswell7a73b802003-06-30 21:59:07 +000032674 trap '{ (exit 1); exit 1; }' 1 2 13 15
32675}
John Criswell7a73b802003-06-30 21:59:07 +000032676# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000032677
John Criswell7a73b802003-06-30 21:59:07 +000032678{
Reid Spencera773bd52006-08-04 18:18:08 +000032679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032680 test -n "$tmp" && test -d "$tmp"
32681} ||
32682{
Reid Spencera773bd52006-08-04 18:18:08 +000032683 tmp=./conf$$-$RANDOM
32684 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000032685} ||
32686{
John Criswell0c38eaf2003-09-10 15:17:25 +000032687 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032688 { (exit 1); exit 1; }
32689}
32690
John Criswell7a73b802003-06-30 21:59:07 +000032691#
Reid Spencera773bd52006-08-04 18:18:08 +000032692# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000032693#
32694
32695# No need to generate the scripts if there are no CONFIG_FILES.
32696# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000032697if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000032698
32699_ACEOF
32700
Reid Spencera773bd52006-08-04 18:18:08 +000032701
32702
32703ac_delim='%!_!# '
32704for ac_last_try in false false false false false :; do
32705 cat >conf$$subs.sed <<_ACEOF
32706SHELL!$SHELL$ac_delim
32707PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32708PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32709PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32710PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32711PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32712PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32713exec_prefix!$exec_prefix$ac_delim
32714prefix!$prefix$ac_delim
32715program_transform_name!$program_transform_name$ac_delim
32716bindir!$bindir$ac_delim
32717sbindir!$sbindir$ac_delim
32718libexecdir!$libexecdir$ac_delim
32719datarootdir!$datarootdir$ac_delim
32720datadir!$datadir$ac_delim
32721sysconfdir!$sysconfdir$ac_delim
32722sharedstatedir!$sharedstatedir$ac_delim
32723localstatedir!$localstatedir$ac_delim
32724includedir!$includedir$ac_delim
32725oldincludedir!$oldincludedir$ac_delim
32726docdir!$docdir$ac_delim
32727infodir!$infodir$ac_delim
32728htmldir!$htmldir$ac_delim
32729dvidir!$dvidir$ac_delim
32730pdfdir!$pdfdir$ac_delim
32731psdir!$psdir$ac_delim
32732libdir!$libdir$ac_delim
32733localedir!$localedir$ac_delim
32734mandir!$mandir$ac_delim
32735DEFS!$DEFS$ac_delim
32736ECHO_C!$ECHO_C$ac_delim
32737ECHO_N!$ECHO_N$ac_delim
32738ECHO_T!$ECHO_T$ac_delim
32739LIBS!$LIBS$ac_delim
32740build_alias!$build_alias$ac_delim
32741host_alias!$host_alias$ac_delim
32742target_alias!$target_alias$ac_delim
32743LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32744subdirs!$subdirs$ac_delim
32745build!$build$ac_delim
32746build_cpu!$build_cpu$ac_delim
32747build_vendor!$build_vendor$ac_delim
32748build_os!$build_os$ac_delim
32749host!$host$ac_delim
32750host_cpu!$host_cpu$ac_delim
32751host_vendor!$host_vendor$ac_delim
32752host_os!$host_os$ac_delim
32753target!$target$ac_delim
32754target_cpu!$target_cpu$ac_delim
32755target_vendor!$target_vendor$ac_delim
32756target_os!$target_os$ac_delim
32757OS!$OS$ac_delim
32758LINKALL!$LINKALL$ac_delim
32759NOLINKALL!$NOLINKALL$ac_delim
32760LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32761LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32762ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000032763ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032764CC!$CC$ac_delim
32765CFLAGS!$CFLAGS$ac_delim
32766LDFLAGS!$LDFLAGS$ac_delim
32767CPPFLAGS!$CPPFLAGS$ac_delim
32768ac_ct_CC!$ac_ct_CC$ac_delim
32769EXEEXT!$EXEEXT$ac_delim
32770OBJEXT!$OBJEXT$ac_delim
32771CPP!$CPP$ac_delim
32772GREP!$GREP$ac_delim
32773EGREP!$EGREP$ac_delim
32774LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32775BUILD_CC!$BUILD_CC$ac_delim
32776BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32777CVSBUILD!$CVSBUILD$ac_delim
32778ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32779DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000032780ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32781EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032782DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032783JIT!$JIT$ac_delim
32784TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32785ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32786ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032787ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032788TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000032789ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032790EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32791CXX!$CXX$ac_delim
32792CXXFLAGS!$CXXFLAGS$ac_delim
32793ac_ct_CXX!$ac_ct_CXX$ac_delim
32794LEX!$LEX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032795LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000032796LEXLIB!$LEXLIB$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032797FLEX!$FLEX$ac_delim
32798YACC!$YACC$ac_delim
32799YFLAGS!$YFLAGS$ac_delim
32800BISON!$BISON$ac_delim
32801NM!$NM$ac_delim
32802ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032803_ACEOF
32804
32805 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32806 break
32807 elif $ac_last_try; then
32808 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32809echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32810 { (exit 1); exit 1; }; }
32811 else
32812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000032813 fi
Reid Spencera773bd52006-08-04 18:18:08 +000032814done
32815
32816ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32817if test -n "$ac_eof"; then
32818 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32819 ac_eof=`expr $ac_eof + 1`
32820fi
32821
32822cat >>$CONFIG_STATUS <<_ACEOF
32823cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32825_ACEOF
32826sed '
32827s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32828s/^/s,@/; s/!/@,|#_!!_#|/
32829:n
32830t n
32831s/'"$ac_delim"'$/,g/; t
32832s/$/\\/; p
32833N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32834' >>$CONFIG_STATUS <conf$$subs.sed
32835rm -f conf$$subs.sed
32836cat >>$CONFIG_STATUS <<_ACEOF
32837CEOF$ac_eof
32838_ACEOF
32839
32840
32841ac_delim='%!_!# '
32842for ac_last_try in false false false false false :; do
32843 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000032844LN_S!$LN_S$ac_delim
32845CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032846CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032847DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032848FIND!$FIND$ac_delim
32849MKDIR!$MKDIR$ac_delim
32850MV!$MV$ac_delim
32851RANLIB!$RANLIB$ac_delim
32852RM!$RM$ac_delim
32853SED!$SED$ac_delim
32854TAR!$TAR$ac_delim
32855BINPWD!$BINPWD$ac_delim
32856GRAPHVIZ!$GRAPHVIZ$ac_delim
32857DOT!$DOT$ac_delim
32858GV!$GV$ac_delim
32859DOTTY!$DOTTY$ac_delim
32860PERL!$PERL$ac_delim
32861HAVE_PERL!$HAVE_PERL$ac_delim
32862INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32863INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32864INSTALL_DATA!$INSTALL_DATA$ac_delim
32865BZIP2!$BZIP2$ac_delim
32866DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032867GROFF!$GROFF$ac_delim
32868GZIP!$GZIP$ac_delim
32869POD2HTML!$POD2HTML$ac_delim
32870POD2MAN!$POD2MAN$ac_delim
32871RUNTEST!$RUNTEST$ac_delim
32872TCLSH!$TCLSH$ac_delim
32873ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000032874OCAMLC!$OCAMLC$ac_delim
32875OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000032876OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032877INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32878INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32879CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32880CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32881LIBADD_DL!$LIBADD_DL$ac_delim
32882ECHO!$ECHO$ac_delim
32883AR!$AR$ac_delim
32884STRIP!$STRIP$ac_delim
32885CXXCPP!$CXXCPP$ac_delim
32886F77!$F77$ac_delim
32887FFLAGS!$FFLAGS$ac_delim
32888ac_ct_F77!$ac_ct_F77$ac_delim
32889LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032890LLVMGCC!$LLVMGCC$ac_delim
32891LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000032892USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000032893HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000032894HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032895ALLOCA!$ALLOCA$ac_delim
32896MMAP_FILE!$MMAP_FILE$ac_delim
32897LLVMCC1!$LLVMCC1$ac_delim
32898LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32899LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000032900LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032901LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32902LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000032903LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032904SHLIBEXT!$SHLIBEXT$ac_delim
32905LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32906LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32907LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32908LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32909LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32910LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32911LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32912LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32913LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32914LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000032915BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32916ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000032917OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032918LIBOBJS!$LIBOBJS$ac_delim
32919LTLIBOBJS!$LTLIBOBJS$ac_delim
32920_ACEOF
32921
Gordon Henriksenf0915682007-10-02 16:42:22 +000032922 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000032923 break
32924 elif $ac_last_try; then
32925 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32926echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32927 { (exit 1); exit 1; }; }
32928 else
32929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32930 fi
32931done
32932
32933ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32934if test -n "$ac_eof"; then
32935 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32936 ac_eof=`expr $ac_eof + 1`
32937fi
32938
32939cat >>$CONFIG_STATUS <<_ACEOF
32940cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32941/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32942_ACEOF
32943sed '
32944s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32945s/^/s,@/; s/!/@,|#_!!_#|/
32946:n
32947t n
32948s/'"$ac_delim"'$/,g/; t
32949s/$/\\/; p
32950N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32951' >>$CONFIG_STATUS <conf$$subs.sed
32952rm -f conf$$subs.sed
32953cat >>$CONFIG_STATUS <<_ACEOF
32954:end
32955s/|#_!!_#|//g
32956CEOF$ac_eof
32957_ACEOF
32958
32959
32960# VPATH may cause trouble with some makes, so we remove $(srcdir),
32961# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32962# trailing colons and then remove the whole line if VPATH becomes empty
32963# (actually we leave an empty line to preserve line numbers).
32964if test "x$srcdir" = x.; then
32965 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32966s/:*\$(srcdir):*/:/
32967s/:*\${srcdir}:*/:/
32968s/:*@srcdir@:*/:/
32969s/^\([^=]*=[ ]*\):*/\1/
32970s/:*$//
32971s/^[^=]*=[ ]*$//
32972}'
32973fi
32974
32975cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032976fi # test -n "$CONFIG_FILES"
32977
Reid Spencera773bd52006-08-04 18:18:08 +000032978
32979for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32980do
32981 case $ac_tag in
32982 :[FHLC]) ac_mode=$ac_tag; continue;;
32983 esac
32984 case $ac_mode$ac_tag in
32985 :[FHL]*:*);;
32986 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32987echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32988 { (exit 1); exit 1; }; };;
32989 :[FH]-) ac_tag=-:-;;
32990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32991 esac
32992 ac_save_IFS=$IFS
32993 IFS=:
32994 set x $ac_tag
32995 IFS=$ac_save_IFS
32996 shift
32997 ac_file=$1
32998 shift
32999
33000 case $ac_mode in
33001 :L) ac_source=$1;;
33002 :[FH])
33003 ac_file_inputs=
33004 for ac_f
33005 do
33006 case $ac_f in
33007 -) ac_f="$tmp/stdin";;
33008 *) # Look for the file first in the build tree, then in the source tree
33009 # (if the path is not absolute). The absolute path cannot be DOS-style,
33010 # because $ac_f cannot contain `:'.
33011 test -f "$ac_f" ||
33012 case $ac_f in
33013 [\\/$]*) false;;
33014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33015 esac ||
33016 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33017echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33018 { (exit 1); exit 1; }; };;
33019 esac
33020 ac_file_inputs="$ac_file_inputs $ac_f"
33021 done
33022
33023 # Let's still pretend it is `configure' which instantiates (i.e., don't
33024 # use $as_me), people would be surprised to read:
33025 # /* config.h. Generated by config.status. */
33026 configure_input="Generated from "`IFS=:
33027 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33028 if test x"$ac_file" != x-; then
33029 configure_input="$ac_file. $configure_input"
33030 { echo "$as_me:$LINENO: creating $ac_file" >&5
33031echo "$as_me: creating $ac_file" >&6;}
33032 fi
33033
33034 case $ac_tag in
33035 *:-:* | *:-) cat >"$tmp/stdin";;
33036 esac
33037 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033038 esac
33039
Reid Spencera773bd52006-08-04 18:18:08 +000033040 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000033041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033042 X"$ac_file" : 'X\(//\)[^/]' \| \
33043 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000033045echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000033046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33047 s//\1/
33048 q
33049 }
33050 /^X\(\/\/\)[^/].*/{
33051 s//\1/
33052 q
33053 }
33054 /^X\(\/\/\)$/{
33055 s//\1/
33056 q
33057 }
33058 /^X\(\/\).*/{
33059 s//\1/
33060 q
33061 }
33062 s/.*/./; q'`
33063 { as_dir="$ac_dir"
33064 case $as_dir in #(
33065 -*) as_dir=./$as_dir;;
33066 esac
33067 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000033068 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033069 while :; do
33070 case $as_dir in #(
33071 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33072 *) as_qdir=$as_dir;;
33073 esac
33074 as_dirs="'$as_qdir' $as_dirs"
33075 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033077 X"$as_dir" : 'X\(//\)[^/]' \| \
33078 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033080echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33082 s//\1/
33083 q
33084 }
33085 /^X\(\/\/\)[^/].*/{
33086 s//\1/
33087 q
33088 }
33089 /^X\(\/\/\)$/{
33090 s//\1/
33091 q
33092 }
33093 /^X\(\/\).*/{
33094 s//\1/
33095 q
33096 }
33097 s/.*/./; q'`
33098 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000033099 done
Reid Spencera773bd52006-08-04 18:18:08 +000033100 test -z "$as_dirs" || eval "mkdir $as_dirs"
33101 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33102echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000033103 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000033104 ac_builddir=.
33105
Reid Spencera773bd52006-08-04 18:18:08 +000033106case "$ac_dir" in
33107.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33108*)
John Criswell7a73b802003-06-30 21:59:07 +000033109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033110 # A ".." for each directory in $ac_dir_suffix.
33111 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33112 case $ac_top_builddir_sub in
33113 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33114 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33115 esac ;;
33116esac
33117ac_abs_top_builddir=$ac_pwd
33118ac_abs_builddir=$ac_pwd$ac_dir_suffix
33119# for backward compatibility:
33120ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000033121
33122case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033123 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000033124 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033125 ac_top_srcdir=$ac_top_builddir_sub
33126 ac_abs_top_srcdir=$ac_pwd ;;
33127 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000033128 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033129 ac_top_srcdir=$srcdir
33130 ac_abs_top_srcdir=$srcdir ;;
33131 *) # Relative name.
33132 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33133 ac_top_srcdir=$ac_top_build_prefix$srcdir
33134 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000033135esac
Reid Spencera773bd52006-08-04 18:18:08 +000033136ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000033137
John Criswell7a73b802003-06-30 21:59:07 +000033138
Reid Spencera773bd52006-08-04 18:18:08 +000033139 case $ac_mode in
33140 :F)
33141 #
33142 # CONFIG_FILE
33143 #
John Criswell7a73b802003-06-30 21:59:07 +000033144
33145 case $INSTALL in
33146 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033147 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000033148 esac
John Criswell7a73b802003-06-30 21:59:07 +000033149_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033150
33151cat >>$CONFIG_STATUS <<\_ACEOF
33152# If the template does not know about datarootdir, expand it.
33153# FIXME: This hack should be removed a few years after 2.60.
33154ac_datarootdir_hack=; ac_datarootdir_seen=
33155
33156case `sed -n '/datarootdir/ {
33157 p
33158 q
33159}
33160/@datadir@/p
33161/@docdir@/p
33162/@infodir@/p
33163/@localedir@/p
33164/@mandir@/p
33165' $ac_file_inputs` in
33166*datarootdir*) ac_datarootdir_seen=yes;;
33167*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33168 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33169echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33170_ACEOF
33171cat >>$CONFIG_STATUS <<_ACEOF
33172 ac_datarootdir_hack='
33173 s&@datadir@&$datadir&g
33174 s&@docdir@&$docdir&g
33175 s&@infodir@&$infodir&g
33176 s&@localedir@&$localedir&g
33177 s&@mandir@&$mandir&g
33178 s&\\\${datarootdir}&$datarootdir&g' ;;
33179esac
33180_ACEOF
33181
33182# Neutralize VPATH when `$srcdir' = `.'.
33183# Shell code in configure.ac might set extrasub.
33184# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000033185cat >>$CONFIG_STATUS <<_ACEOF
33186 sed "$ac_vpsub
33187$extrasub
33188_ACEOF
33189cat >>$CONFIG_STATUS <<\_ACEOF
33190:t
33191/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000033192s&@configure_input@&$configure_input&;t t
33193s&@top_builddir@&$ac_top_builddir_sub&;t t
33194s&@srcdir@&$ac_srcdir&;t t
33195s&@abs_srcdir@&$ac_abs_srcdir&;t t
33196s&@top_srcdir@&$ac_top_srcdir&;t t
33197s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33198s&@builddir@&$ac_builddir&;t t
33199s&@abs_builddir@&$ac_abs_builddir&;t t
33200s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33201s&@INSTALL@&$ac_INSTALL&;t t
33202$ac_datarootdir_hack
33203" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000033204
Reid Spencera773bd52006-08-04 18:18:08 +000033205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33208 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33209which seems to be undefined. Please make sure it is defined." >&5
33210echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33211which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000033212
Reid Spencera773bd52006-08-04 18:18:08 +000033213 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000033214 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000033215 -) cat "$tmp/out"; rm -f "$tmp/out";;
33216 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000033217 esac
Reid Spencera773bd52006-08-04 18:18:08 +000033218 ;;
33219 :H)
33220 #
33221 # CONFIG_HEADER
33222 #
John Criswell7a73b802003-06-30 21:59:07 +000033223_ACEOF
33224
Reid Spencera773bd52006-08-04 18:18:08 +000033225# Transform confdefs.h into a sed script `conftest.defines', that
33226# substitutes the proper values into config.h.in to produce config.h.
33227rm -f conftest.defines conftest.tail
33228# First, append a space to every undef/define line, to ease matching.
33229echo 's/$/ /' >conftest.defines
33230# Then, protect against being on the right side of a sed subst, or in
33231# an unquoted here document, in config.status. If some macros were
33232# called several times there might be several #defines for the same
33233# symbol, which is useless. But do not sort them, since the last
33234# AC_DEFINE must be honored.
33235ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33236# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33237# NAME is the cpp macro being defined, VALUE is the value it is being given.
33238# PARAMS is the parameter list in the macro definition--in most cases, it's
33239# just an empty string.
33240ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33241ac_dB='\\)[ (].*,\\1define\\2'
33242ac_dC=' '
33243ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000033244
Reid Spencera773bd52006-08-04 18:18:08 +000033245uniq confdefs.h |
33246 sed -n '
33247 t rset
33248 :rset
33249 s/^[ ]*#[ ]*define[ ][ ]*//
33250 t ok
33251 d
33252 :ok
33253 s/[\\&,]/\\&/g
33254 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33255 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33256 ' >>conftest.defines
33257
33258# Remove the space that was appended to ease matching.
33259# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000033260# example, in the case of _POSIX_SOURCE, which is predefined and required
33261# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000033262# (The regexp can be short, since the line contains either #define or #undef.)
33263echo 's/ $//
33264s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000033265
Reid Spencera773bd52006-08-04 18:18:08 +000033266# Break up conftest.defines:
33267ac_max_sed_lines=50
33268
33269# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33270# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33271# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33272# et cetera.
33273ac_in='$ac_file_inputs'
33274ac_out='"$tmp/out1"'
33275ac_nxt='"$tmp/out2"'
33276
33277while :
John Criswell7a73b802003-06-30 21:59:07 +000033278do
Reid Spencera773bd52006-08-04 18:18:08 +000033279 # Write a here document:
33280 cat >>$CONFIG_STATUS <<_ACEOF
33281 # First, check the format of the line:
33282 cat >"\$tmp/defines.sed" <<\\CEOF
33283/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33284/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33285b
33286:def
33287_ACEOF
33288 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033289 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033290 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33291 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33292 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33293 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000033294 rm -f conftest.defines
33295 mv conftest.tail conftest.defines
33296done
Reid Spencera773bd52006-08-04 18:18:08 +000033297rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000033298
Reid Spencera773bd52006-08-04 18:18:08 +000033299echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033300cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033301 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000033302 echo "/* $configure_input */" >"$tmp/config.h"
33303 cat "$ac_result" >>"$tmp/config.h"
33304 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33306echo "$as_me: $ac_file is unchanged" >&6;}
33307 else
John Criswell7a73b802003-06-30 21:59:07 +000033308 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000033309 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000033310 fi
33311 else
Reid Spencera773bd52006-08-04 18:18:08 +000033312 echo "/* $configure_input */"
33313 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000033314 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033315 rm -f "$tmp/out12"
33316 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033317
Reid Spencera773bd52006-08-04 18:18:08 +000033318 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33319echo "$as_me: executing $ac_file commands" >&6;}
33320 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033321 esac
John Criswell7a73b802003-06-30 21:59:07 +000033322
Reid Spencera773bd52006-08-04 18:18:08 +000033323
33324 case $ac_file$ac_mode in
33325 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33326 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33327 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33328 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33329 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33330 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33331 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33332 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033333 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33334 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033335 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33336 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33337 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33338 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33339 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33340 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33341 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33342 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33343 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33344 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033345 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33346 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33347 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33348 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033349
33350 esac
33351done # for ac_tag
33352
John Criswell7a73b802003-06-30 21:59:07 +000033353
33354{ (exit 0); exit 0; }
33355_ACEOF
33356chmod +x $CONFIG_STATUS
33357ac_clean_files=$ac_clean_files_save
33358
33359
33360# configure is writing to config.log, and then calls config.status.
33361# config.status does its own redirection, appending to config.log.
33362# Unfortunately, on DOS this fails, as config.log is still kept open
33363# by configure, so config.status won't be able to write to it; its
33364# output is simply discarded. So we exec the FD to /dev/null,
33365# effectively closing config.log, so it can be properly (re)opened and
33366# appended to by config.status. When coming back to configure, we
33367# need to make the FD available again.
33368if test "$no_create" != yes; then
33369 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033370 ac_config_status_args=
33371 test "$silent" = yes &&
33372 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000033373 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000033374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000033375 exec 5>>config.log
33376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33377 # would make configure fail if this is the last instruction.
33378 $ac_cs_success || { (exit 1); exit 1; }
33379fi
33380
John Criswell12399a12003-09-30 15:55:44 +000033381#
33382# CONFIG_SUBDIRS section.
33383#
33384if test "$no_recursion" != yes; then
33385
33386 # Remove --cache-file and --srcdir arguments so they do not pile up.
33387 ac_sub_configure_args=
33388 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000033389 eval "set x $ac_configure_args"
33390 shift
33391 for ac_arg
33392 do
John Criswell12399a12003-09-30 15:55:44 +000033393 if test -n "$ac_prev"; then
33394 ac_prev=
33395 continue
33396 fi
33397 case $ac_arg in
33398 -cache-file | --cache-file | --cache-fil | --cache-fi \
33399 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33400 ac_prev=cache_file ;;
33401 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33402 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33403 | --c=*)
33404 ;;
33405 --config-cache | -C)
33406 ;;
33407 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33408 ac_prev=srcdir ;;
33409 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33410 ;;
33411 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33412 ac_prev=prefix ;;
33413 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033415 *)
33416 case $ac_arg in
33417 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33418 esac
33419 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000033420 esac
33421 done
33422
33423 # Always prepend --prefix to ensure using the same prefix
33424 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000033425 ac_arg="--prefix=$prefix"
33426 case $ac_arg in
33427 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33428 esac
Scott Michel96dcd2b2007-12-05 21:24:02 +000033429 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33430
33431 # Pass --silent
33432 if test "$silent" = yes; then
33433 ac_sub_configure_args="--silent $ac_sub_configure_args"
33434 fi
John Criswell12399a12003-09-30 15:55:44 +000033435
33436 ac_popdir=`pwd`
33437 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33438
33439 # Do not complain, so a configure script can configure whichever
33440 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000033441 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000033442
Reid Spencera773bd52006-08-04 18:18:08 +000033443 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33444 echo "$as_me:$LINENO: $ac_msg" >&5
33445 echo "$ac_msg" >&6
33446 { as_dir="$ac_dir"
33447 case $as_dir in #(
33448 -*) as_dir=./$as_dir;;
33449 esac
33450 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000033451 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033452 while :; do
33453 case $as_dir in #(
33454 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33455 *) as_qdir=$as_dir;;
33456 esac
33457 as_dirs="'$as_qdir' $as_dirs"
33458 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000033459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033460 X"$as_dir" : 'X\(//\)[^/]' \| \
33461 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000033463echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33465 s//\1/
33466 q
33467 }
33468 /^X\(\/\/\)[^/].*/{
33469 s//\1/
33470 q
33471 }
33472 /^X\(\/\/\)$/{
33473 s//\1/
33474 q
33475 }
33476 /^X\(\/\).*/{
33477 s//\1/
33478 q
33479 }
33480 s/.*/./; q'`
33481 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000033482 done
Reid Spencera773bd52006-08-04 18:18:08 +000033483 test -z "$as_dirs" || eval "mkdir $as_dirs"
33484 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33485echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000033486 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000033487 ac_builddir=.
33488
Reid Spencera773bd52006-08-04 18:18:08 +000033489case "$ac_dir" in
33490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33491*)
John Criswell12399a12003-09-30 15:55:44 +000033492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033493 # A ".." for each directory in $ac_dir_suffix.
33494 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33495 case $ac_top_builddir_sub in
33496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33498 esac ;;
33499esac
33500ac_abs_top_builddir=$ac_pwd
33501ac_abs_builddir=$ac_pwd$ac_dir_suffix
33502# for backward compatibility:
33503ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000033504
33505case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033506 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000033507 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033508 ac_top_srcdir=$ac_top_builddir_sub
33509 ac_abs_top_srcdir=$ac_pwd ;;
33510 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000033511 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033512 ac_top_srcdir=$srcdir
33513 ac_abs_top_srcdir=$srcdir ;;
33514 *) # Relative name.
33515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33516 ac_top_srcdir=$ac_top_build_prefix$srcdir
33517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000033518esac
Reid Spencera773bd52006-08-04 18:18:08 +000033519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000033520
33521
Reid Spencera773bd52006-08-04 18:18:08 +000033522 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000033523
33524 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000033525 if test -f "$ac_srcdir/configure.gnu"; then
33526 ac_sub_configure=$ac_srcdir/configure.gnu
33527 elif test -f "$ac_srcdir/configure"; then
33528 ac_sub_configure=$ac_srcdir/configure
33529 elif test -f "$ac_srcdir/configure.in"; then
33530 # This should be Cygnus configure.
33531 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000033532 else
33533 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33534echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33535 ac_sub_configure=
33536 fi
33537
33538 # The recursion is here.
33539 if test -n "$ac_sub_configure"; then
33540 # Make the cache file name correct relative to the subdirectory.
33541 case $cache_file in
33542 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033543 *) # Relative name.
33544 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000033545 esac
33546
Reid Spencera773bd52006-08-04 18:18:08 +000033547 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33548echo "$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 +000033549 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000033550 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33551 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000033552 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000033553echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33554 { (exit 1); exit 1; }; }
33555 fi
33556
Reid Spencera773bd52006-08-04 18:18:08 +000033557 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000033558 done
33559fi
33560