]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/configure
re PR fortran/42048 ([F03] Erroneous syntax error message on TBP call)
[gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3 1#! /bin/sh
b2dad0e3 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
b2dad0e3
BK
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
ff66d28f 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ff66d28f
PE
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ff66d28f
PE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
ff66d28f
PE
31fi
32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ff66d28f
PE
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
ff66d28f
PE
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ff66d28f 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
ff66d28f 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
ff66d28f 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
ff66d28f 372
5213506e
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ff66d28f
PE
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ff66d28f
PE
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
ff66d28f 391
5213506e 392as_me=`$as_basename -- "$0" ||
ff66d28f
PE
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
4312e020 410
7eed349e
PC
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
8a165db0 417
ff66d28f 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
ff66d28f 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
ff66d28f 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ff66d28f 436 t loop
5213506e 437 s/-\n.*//
ff66d28f 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ff66d28f
PE
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
ff66d28f
PE
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
ff66d28f
PE
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
ff66d28f 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
ff66d28f 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
7eed349e 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
7eed349e 483 fi
ff66d28f
PE
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
ff66d28f
PE
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
ff66d28f 492else
ec2075e9 493 test -d ./-p && rmdir ./-p
ff66d28f
PE
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
ff66d28f
PE
519
520# Sed expression to map a string onto a valid CPP name.
ec2075e9 521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
522
523# Sed expression to map a string onto a valid variable name.
ec2075e9 524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
525
526
1cf3d07d
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
5213506e
RW
676exec 7<&0 </dev/null 6>&1
677
ff66d28f
PE
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
ff66d28f
PE
683#
684# Initializations.
685#
b2dad0e3 686ac_default_prefix=/usr/local
5213506e 687ac_clean_files=
ff66d28f 688ac_config_libobj_dir=.
5213506e 689LIBOBJS=
ff66d28f
PE
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
7eed349e 694
ff66d28f 695# Identity of this package.
fbe057bb
PE
696PACKAGE_NAME='package-unused'
697PACKAGE_TARNAME='libstdc++'
ff66d28f 698PACKAGE_VERSION='version-unused'
fbe057bb 699PACKAGE_STRING='package-unused version-unused'
ff66d28f 700PACKAGE_BUGREPORT=''
5213506e 701PACKAGE_URL=''
ff66d28f
PE
702
703ac_unique_file="src/ios.cc"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
5213506e 707#ifdef HAVE_SYS_TYPES_H
ff66d28f
PE
708# include <sys/types.h>
709#endif
5213506e 710#ifdef HAVE_SYS_STAT_H
ff66d28f
PE
711# include <sys/stat.h>
712#endif
5213506e 713#ifdef STDC_HEADERS
ff66d28f
PE
714# include <stdlib.h>
715# include <stddef.h>
716#else
5213506e 717# ifdef HAVE_STDLIB_H
ff66d28f
PE
718# include <stdlib.h>
719# endif
720#endif
5213506e
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ff66d28f
PE
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
5213506e 727#ifdef HAVE_STRINGS_H
ff66d28f
PE
728# include <strings.h>
729#endif
5213506e 730#ifdef HAVE_INTTYPES_H
ff66d28f 731# include <inttypes.h>
ff66d28f 732#endif
5213506e
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
ff66d28f
PE
737# include <unistd.h>
738#endif"
739
5213506e
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744LIBSUPCXX_PICFLAGS
745WARN_FLAGS
746OPTIMIZE_CXXFLAGS
747TOPLEVEL_INCLUDES
748GLIBCXX_INCLUDES
749glibcxx_toolexeclibdir
750glibcxx_toolexecdir
751gxx_include_dir
752glibcxx_prefixdir
753ERROR_CONSTANTS_SRCDIR
754OS_INC_SRCDIR
755ABI_TWEAKS_SRCDIR
756CPU_DEFINES_SRCDIR
757ATOMIC_FLAGS
758ATOMIC_WORD_SRCDIR
759ATOMICITY_SRCDIR
760baseline_dir
761GLIBCXX_LDBL_COMPAT_FALSE
762GLIBCXX_LDBL_COMPAT_TRUE
763ENABLE_VISIBILITY_FALSE
764ENABLE_VISIBILITY_TRUE
765ENABLE_SYMVERS_DARWIN_FALSE
766ENABLE_SYMVERS_DARWIN_TRUE
767ENABLE_SYMVERS_GNU_NAMESPACE_FALSE
768ENABLE_SYMVERS_GNU_NAMESPACE_TRUE
769ENABLE_SYMVERS_GNU_FALSE
770ENABLE_SYMVERS_GNU_TRUE
771ENABLE_SYMVERS_FALSE
772ENABLE_SYMVERS_TRUE
773port_specific_symbol_files
774SYMVER_FILE
775LTLIBICONV
776LIBICONV
777OPT_LDFLAGS
778SECTION_LDFLAGS
779GLIBCXX_LIBS
780EXTRA_CXX_FLAGS
781ENABLE_PARALLEL_FALSE
782ENABLE_PARALLEL_TRUE
783GLIBCXX_BUILD_DEBUG_FALSE
784GLIBCXX_BUILD_DEBUG_TRUE
785DEBUG_FLAGS
786GLIBCXX_C_HEADERS_EXTRA_FALSE
787GLIBCXX_C_HEADERS_EXTRA_TRUE
788GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE
789GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE
790GLIBCXX_C_HEADERS_C_GLOBAL_FALSE
791GLIBCXX_C_HEADERS_C_GLOBAL_TRUE
792GLIBCXX_C_HEADERS_C_STD_FALSE
793GLIBCXX_C_HEADERS_C_STD_TRUE
794GLIBCXX_C_HEADERS_C_FALSE
795GLIBCXX_C_HEADERS_C_TRUE
796C_INCLUDE_DIR
797ALLOCATOR_NAME
798ALLOCATOR_H
799CLOCALE_INTERNAL_H
800CLOCALE_CC
801CTIME_CC
802CTIME_H
803CNUMERIC_CC
804CMONEY_CC
805CMESSAGES_CC
806CCTYPE_CC
807CCOLLATE_CC
808CCODECVT_CC
809CMESSAGES_H
810CLOCALE_H
811USE_NLS
812glibcxx_localedir
813glibcxx_POFILES
814glibcxx_MOFILES
815check_msgfmt
816BASIC_FILE_CC
817BASIC_FILE_H
818CSTDIO_H
819SECTION_FLAGS
820WERROR
821glibcxx_thread_h
822glibcxx_PCHFLAGS
823GLIBCXX_BUILD_PCH_FALSE
824GLIBCXX_BUILD_PCH_TRUE
825GLIBCXX_HOSTED_FALSE
826GLIBCXX_HOSTED_TRUE
827enable_static
828enable_shared
829CXXCPP
830OTOOL64
831OTOOL
832LIPO
833NMEDIT
834DSYMUTIL
835lt_ECHO
836OBJDUMP
837NM
838ac_ct_DUMPBIN
839DUMPBIN
840LD
841FGREP
842SED
843LIBTOOL
844EGREP
845GREP
846CPP
847MAINT
848MAINTAINER_MODE_FALSE
849MAINTAINER_MODE_TRUE
850RANLIB
851AR
852AS
853LN_S
854toplevel_srcdir
855glibcxx_srcdir
856glibcxx_builddir
857ac_ct_CXX
858CXXFLAGS
859CXX
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867am__untar
868am__tar
869AMTAR
870am__leading_dot
871SET_MAKE
872AWK
873mkdir_p
874MKDIR_P
875INSTALL_STRIP_PROGRAM
876STRIP
877install_sh
878MAKEINFO
879AUTOHEADER
880AUTOMAKE
881AUTOCONF
882ACLOCAL
883VERSION
884PACKAGE
885CYGPATH_W
886am__isrc
887INSTALL_DATA
888INSTALL_SCRIPT
889INSTALL_PROGRAM
890target_os
891target_vendor
892target_cpu
893target
894host_os
895host_vendor
896host_cpu
897host
898build_os
899build_vendor
900build_cpu
901build
902multi_basedir
903libtool_VERSION
904target_alias
905host_alias
906build_alias
907LIBS
908ECHO_T
909ECHO_N
910ECHO_C
911DEFS
912mandir
913localedir
914libdir
915psdir
916pdfdir
917dvidir
918htmldir
919infodir
920docdir
921oldincludedir
922includedir
923localstatedir
924sharedstatedir
925sysconfdir
926datadir
927datarootdir
928libexecdir
929sbindir
930bindir
931program_transform_name
932prefix
933exec_prefix
934PACKAGE_URL
935PACKAGE_BUGREPORT
936PACKAGE_STRING
937PACKAGE_VERSION
938PACKAGE_TARNAME
939PACKAGE_NAME
940PATH_SEPARATOR
941SHELL'
ff66d28f 942ac_subst_files=''
5213506e
RW
943ac_user_opts='
944enable_option_checking
945enable_multilib
946with_target_subdir
947with_cross_host
948with_newlib
949enable_maintainer_mode
950enable_shared
951enable_static
952with_pic
953enable_fast_install
954with_gnu_ld
955enable_libtool_lock
956enable_hosted_libstdcxx
957enable_sjlj_exceptions
958enable_libstdcxx_pch
959enable_cstdio
960enable_clocale
961enable_nls
962enable_libstdcxx_allocator
963enable_cheaders
964enable_long_long
965enable_wchar_t
966enable_c99
967enable_concept_checks
968enable_libstdcxx_debug_flags
969enable_libstdcxx_debug
970enable_cxx_flags
971enable_fully_dynamic_string
972enable_libstdcxx_time
973enable_tls
974enable_rpath
975with_libiconv_prefix
976with_system_libunwind
977enable_linux_futex
978enable_symvers
979enable_visibility
980with_gxx_include_dir
981enable_version_specific_runtime_libs
982'
983 ac_precious_vars='build_alias
984host_alias
985target_alias
986CPP
987CPPFLAGS
988CXX
989CXXFLAGS
990LDFLAGS
991LIBS
992CCC
993CXXCPP'
994
b2dad0e3
BK
995
996# Initialize some variables set by options.
ff66d28f
PE
997ac_init_help=
998ac_init_version=false
5213506e
RW
999ac_unrecognized_opts=
1000ac_unrecognized_sep=
b2dad0e3
BK
1001# The variables have the same names as the options, with
1002# dashes changed to underlines.
ff66d28f 1003cache_file=/dev/null
b2dad0e3 1004exec_prefix=NONE
b2dad0e3 1005no_create=
b2dad0e3
BK
1006no_recursion=
1007prefix=NONE
1008program_prefix=NONE
1009program_suffix=NONE
1010program_transform_name=s,x,x,
1011silent=
1012site=
1013srcdir=
b2dad0e3
BK
1014verbose=
1015x_includes=NONE
1016x_libraries=NONE
ff66d28f
PE
1017
1018# Installation directory options.
1019# These are left unexpanded so users can "make install exec_prefix=/foo"
1020# and all the variables that are supposed to be based on exec_prefix
1021# by default will actually change.
1022# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 1023# (The list follows the same order as the GNU Coding Standards.)
b2dad0e3
BK
1024bindir='${exec_prefix}/bin'
1025sbindir='${exec_prefix}/sbin'
1026libexecdir='${exec_prefix}/libexec'
5213506e
RW
1027datarootdir='${prefix}/share'
1028datadir='${datarootdir}'
b2dad0e3
BK
1029sysconfdir='${prefix}/etc'
1030sharedstatedir='${prefix}/com'
1031localstatedir='${prefix}/var'
b2dad0e3
BK
1032includedir='${prefix}/include'
1033oldincludedir='/usr/include'
5213506e
RW
1034docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1035infodir='${datarootdir}/info'
1036htmldir='${docdir}'
1037dvidir='${docdir}'
1038pdfdir='${docdir}'
1039psdir='${docdir}'
1040libdir='${exec_prefix}/lib'
1041localedir='${datarootdir}/locale'
1042mandir='${datarootdir}/man'
b2dad0e3 1043
b2dad0e3 1044ac_prev=
5213506e 1045ac_dashdash=
b2dad0e3
BK
1046for ac_option
1047do
b2dad0e3
BK
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
5213506e 1050 eval $ac_prev=\$ac_option
b2dad0e3
BK
1051 ac_prev=
1052 continue
1053 fi
1054
5213506e
RW
1055 case $ac_option in
1056 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 *) ac_optarg=yes ;;
1058 esac
b2dad0e3
BK
1059
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1061
5213506e
RW
1062 case $ac_dashdash$ac_option in
1063 --)
1064 ac_dashdash=yes ;;
b2dad0e3
BK
1065
1066 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067 ac_prev=bindir ;;
1068 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ff66d28f 1069 bindir=$ac_optarg ;;
b2dad0e3
BK
1070
1071 -build | --build | --buil | --bui | --bu)
ff66d28f 1072 ac_prev=build_alias ;;
b2dad0e3 1073 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ff66d28f 1074 build_alias=$ac_optarg ;;
b2dad0e3
BK
1075
1076 -cache-file | --cache-file | --cache-fil | --cache-fi \
1077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078 ac_prev=cache_file ;;
1079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ff66d28f
PE
1081 cache_file=$ac_optarg ;;
1082
1083 --config-cache | -C)
1084 cache_file=config.cache ;;
b2dad0e3 1085
5213506e 1086 -datadir | --datadir | --datadi | --datad)
b2dad0e3 1087 ac_prev=datadir ;;
5213506e 1088 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ff66d28f 1089 datadir=$ac_optarg ;;
b2dad0e3 1090
5213506e
RW
1091 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092 | --dataroo | --dataro | --datar)
1093 ac_prev=datarootdir ;;
1094 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096 datarootdir=$ac_optarg ;;
1097
b2dad0e3 1098 -disable-* | --disable-*)
5213506e 1099 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b2dad0e3 1100 # Reject names that are not valid shell variable names.
5213506e
RW
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid feature name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107"enable_$ac_useropt"
1108"*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval enable_$ac_useropt=no ;;
1113
1114 -docdir | --docdir | --docdi | --doc | --do)
1115 ac_prev=docdir ;;
1116 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117 docdir=$ac_optarg ;;
1118
1119 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120 ac_prev=dvidir ;;
1121 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122 dvidir=$ac_optarg ;;
b2dad0e3
BK
1123
1124 -enable-* | --enable-*)
5213506e 1125 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b2dad0e3 1126 # Reject names that are not valid shell variable names.
5213506e
RW
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"enable_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
7eed349e 1137 esac
5213506e 1138 eval enable_$ac_useropt=\$ac_optarg ;;
b2dad0e3
BK
1139
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
ff66d28f 1147 exec_prefix=$ac_optarg ;;
b2dad0e3
BK
1148
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1152
ff66d28f
PE
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
b2dad0e3
BK
1159
1160 -host | --host | --hos | --ho)
ff66d28f 1161 ac_prev=host_alias ;;
b2dad0e3 1162 -host=* | --host=* | --hos=* | --ho=*)
ff66d28f 1163 host_alias=$ac_optarg ;;
b2dad0e3 1164
5213506e
RW
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1170
b2dad0e3
BK
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
ff66d28f 1176 includedir=$ac_optarg ;;
b2dad0e3
BK
1177
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ff66d28f 1181 infodir=$ac_optarg ;;
b2dad0e3
BK
1182
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ff66d28f 1186 libdir=$ac_optarg ;;
b2dad0e3
BK
1187
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
ff66d28f 1193 libexecdir=$ac_optarg ;;
b2dad0e3 1194
5213506e
RW
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1199
b2dad0e3 1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1201 | --localstate | --localstat | --localsta | --localst | --locals)
b2dad0e3
BK
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ff66d28f 1205 localstatedir=$ac_optarg ;;
b2dad0e3
BK
1206
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ff66d28f 1210 mandir=$ac_optarg ;;
b2dad0e3
BK
1211
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1215
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ff66d28f 1217 | --no-cr | --no-c | -n)
b2dad0e3
BK
1218 no_create=yes ;;
1219
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1223
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ff66d28f 1231 oldincludedir=$ac_optarg ;;
b2dad0e3
BK
1232
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ff66d28f 1236 prefix=$ac_optarg ;;
b2dad0e3
BK
1237
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ff66d28f 1243 program_prefix=$ac_optarg ;;
b2dad0e3
BK
1244
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ff66d28f 1250 program_suffix=$ac_optarg ;;
b2dad0e3
BK
1251
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
ff66d28f 1267 program_transform_name=$ac_optarg ;;
b2dad0e3 1268
5213506e
RW
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1273
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1278
b2dad0e3
BK
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1282
1283 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284 ac_prev=sbindir ;;
1285 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286 | --sbi=* | --sb=*)
ff66d28f 1287 sbindir=$ac_optarg ;;
b2dad0e3
BK
1288
1289 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291 | --sharedst | --shareds | --shared | --share | --shar \
1292 | --sha | --sh)
1293 ac_prev=sharedstatedir ;;
1294 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297 | --sha=* | --sh=*)
ff66d28f 1298 sharedstatedir=$ac_optarg ;;
b2dad0e3
BK
1299
1300 -site | --site | --sit)
1301 ac_prev=site ;;
1302 -site=* | --site=* | --sit=*)
ff66d28f 1303 site=$ac_optarg ;;
b2dad0e3
BK
1304
1305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306 ac_prev=srcdir ;;
1307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ff66d28f 1308 srcdir=$ac_optarg ;;
b2dad0e3
BK
1309
1310 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311 | --syscon | --sysco | --sysc | --sys | --sy)
1312 ac_prev=sysconfdir ;;
1313 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ff66d28f 1315 sysconfdir=$ac_optarg ;;
b2dad0e3
BK
1316
1317 -target | --target | --targe | --targ | --tar | --ta | --t)
ff66d28f 1318 ac_prev=target_alias ;;
b2dad0e3 1319 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ff66d28f 1320 target_alias=$ac_optarg ;;
b2dad0e3
BK
1321
1322 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 verbose=yes ;;
1324
ff66d28f
PE
1325 -version | --version | --versio | --versi | --vers | -V)
1326 ac_init_version=: ;;
b2dad0e3
BK
1327
1328 -with-* | --with-*)
5213506e 1329 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b2dad0e3 1330 # Reject names that are not valid shell variable names.
5213506e
RW
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error "invalid package name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"with_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
7eed349e 1341 esac
5213506e 1342 eval with_$ac_useropt=\$ac_optarg ;;
b2dad0e3
BK
1343
1344 -without-* | --without-*)
5213506e 1345 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b2dad0e3 1346 # Reject names that are not valid shell variable names.
5213506e
RW
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1352 *"
1353"with_$ac_useropt"
1354"*) ;;
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1357 esac
1358 eval with_$ac_useropt=no ;;
b2dad0e3
BK
1359
1360 --x)
1361 # Obsolete; use --with-x.
1362 with_x=yes ;;
1363
1364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365 | --x-incl | --x-inc | --x-in | --x-i)
1366 ac_prev=x_includes ;;
1367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ff66d28f 1369 x_includes=$ac_optarg ;;
b2dad0e3
BK
1370
1371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373 ac_prev=x_libraries ;;
1374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ff66d28f 1376 x_libraries=$ac_optarg ;;
b2dad0e3 1377
5213506e
RW
1378 -*) as_fn_error "unrecognized option: \`$ac_option'
1379Try \`$0 --help' for more information."
b2dad0e3
BK
1380 ;;
1381
ff66d28f
PE
1382 *=*)
1383 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1384 # Reject names that are not valid shell variable names.
5213506e
RW
1385 case $ac_envvar in #(
1386 '' | [0-9]* | *[!_$as_cr_alnum]* )
1387 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1388 esac
1389 eval $ac_envvar=\$ac_optarg
ff66d28f
PE
1390 export $ac_envvar ;;
1391
b2dad0e3 1392 *)
ff66d28f 1393 # FIXME: should be removed in autoconf 3.0.
5213506e 1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ff66d28f 1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ff66d28f 1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
b2dad0e3
BK
1398 ;;
1399
1400 esac
1401done
1402
1403if test -n "$ac_prev"; then
ff66d28f 1404 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1405 as_fn_error "missing argument to $ac_option"
b2dad0e3 1406fi
b2dad0e3 1407
5213506e
RW
1408if test -n "$ac_unrecognized_opts"; then
1409 case $enable_option_checking in
1410 no) ;;
1411 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1412 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
7eed349e 1413 esac
5213506e 1414fi
7eed349e 1415
5213506e
RW
1416# Check all directory arguments for consistency.
1417for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418 datadir sysconfdir sharedstatedir localstatedir includedir \
1419 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420 libdir localedir mandir
7eed349e 1421do
5213506e
RW
1422 eval ac_val=\$$ac_var
1423 # Remove trailing slashes.
1424 case $ac_val in
1425 */ )
1426 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427 eval $ac_var=\$ac_val;;
1428 esac
1429 # Be sure to have absolute directory names.
7eed349e 1430 case $ac_val in
5213506e
RW
1431 [\\/$]* | ?:[\\/]* ) continue;;
1432 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b2dad0e3 1433 esac
5213506e 1434 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
b2dad0e3
BK
1435done
1436
ff66d28f
PE
1437# There might be people who depend on the old broken behavior: `$host'
1438# used to hold the argument of --host etc.
1439# FIXME: To remove some day.
1440build=$build_alias
1441host=$host_alias
1442target=$target_alias
b2dad0e3 1443
ff66d28f
PE
1444# FIXME: To remove some day.
1445if test "x$host_alias" != x; then
1446 if test "x$build_alias" = x; then
1447 cross_compiling=maybe
5213506e 1448 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ff66d28f
PE
1449 If a cross compiler is detected then cross compile mode will be used." >&2
1450 elif test "x$build_alias" != "x$host_alias"; then
1451 cross_compiling=yes
1452 fi
1453fi
1454
1455ac_tool_prefix=
1456test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458test "$silent" = yes && exec 6>/dev/null
b2dad0e3 1459
b2dad0e3 1460
5213506e
RW
1461ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462ac_ls_di=`ls -di .` &&
1463ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error "working directory cannot be determined"
1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error "pwd does not report name of working directory"
1467
1468
b2dad0e3
BK
1469# Find the source files, if location was not specified.
1470if test -z "$srcdir"; then
1471 ac_srcdir_defaulted=yes
5213506e
RW
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir=`$as_dirname -- "$as_myself" ||
1474$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478$as_echo X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\/\)[^/].*/{
1484 s//\1/
1485 q
1486 }
1487 /^X\(\/\/\)$/{
1488 s//\1/
1489 q
1490 }
1491 /^X\(\/\).*/{
1492 s//\1/
1493 q
1494 }
1495 s/.*/./; q'`
b2dad0e3 1496 srcdir=$ac_confdir
5213506e 1497 if test ! -r "$srcdir/$ac_unique_file"; then
b2dad0e3
BK
1498 srcdir=..
1499 fi
1500else
1501 ac_srcdir_defaulted=no
1502fi
5213506e
RW
1503if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1506fi
1507ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508ac_abs_confdir=`(
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1510 pwd)`
1511# When building in place, set srcdir=.
1512if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 srcdir=.
1514fi
1515# Remove unnecessary trailing slashes from srcdir.
1516# Double slashes in file names in object file debugging info
1517# mess up M-x gdb in Emacs.
1518case $srcdir in
1519*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520esac
1521for ac_var in $ac_precious_vars; do
1522 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_${ac_var}_value=\$${ac_var}
1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526done
ff66d28f
PE
1527
1528#
1529# Report the --help message.
1530#
1531if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1534 cat <<_ACEOF
fbe057bb 1535\`configure' configures package-unused version-unused to adapt to many kinds of systems.
ff66d28f
PE
1536
1537Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540VAR=VALUE. See below for descriptions of some of the useful variables.
1541
1542Defaults for the options are specified in brackets.
1543
1544Configuration:
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554
ff66d28f
PE
1555Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1557 [$ac_default_prefix]
ff66d28f 1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1559 [PREFIX]
ff66d28f
PE
1560
1561By default, \`make install' will install all the files in
1562\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564for instance \`--prefix=\$HOME'.
1565
1566For better control, use the options below.
1567
1568Fine tuning of the installation directories:
5213506e
RW
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/libstdc++]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
ff66d28f
PE
1588_ACEOF
1589
1590 cat <<\_ACEOF
1591
1592Program names:
1593 --program-prefix=PREFIX prepend PREFIX to installed program names
1594 --program-suffix=SUFFIX append SUFFIX to installed program names
1595 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1596
1597System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 --target=TARGET configure for building compilers for TARGET [HOST]
1601_ACEOF
1602fi
1603
1604if test -n "$ac_init_help"; then
1605 case $ac_init_help in
fbe057bb 1606 short | recursive ) echo "Configuration of package-unused version-unused:";;
ff66d28f
PE
1607 esac
1608 cat <<\_ACEOF
1609
1610Optional Features:
5213506e 1611 --disable-option-checking ignore unrecognized --enable/--with options
ff66d28f
PE
1612 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7eaf73d7
KC
1614 --enable-multilib build many library versions (default)
1615 --enable-maintainer-mode enable make rules and dependencies not useful
1616 (and sometimes confusing) to the casual installer
5213506e
RW
1617 --enable-shared[=PKGS] build shared libraries [default=yes]
1618 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1619 --enable-fast-install[=PKGS]
1620 optimize for fast installation [default=yes]
ff66d28f 1621 --disable-libtool-lock avoid locking (might break parallel builds)
92eabea2
PE
1622 --disable-hosted-libstdcxx
1623 only build freestanding C++ runtime support
ff66d28f 1624 --enable-sjlj-exceptions
517da0ce
MM
1625 force use of builtin_setjmp for exceptions
1626 [default=auto]
1627 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
1628 [default=$is_hosted]
5213506e 1629 --enable-cstdio=PACKAGE use target-specific I/O package [default=stdio]
ff66d28f 1630 --enable-clocale[=MODEL]
5213506e 1631 use MODEL for target locale package [default=auto]
517da0ce 1632 --enable-nls use Native Language Support (default)
8b0d6051
BK
1633 --enable-libstdcxx-allocator=KIND
1634 use KIND for target std::allocator base
1635 [default=auto]
5213506e 1636 --enable-cheaders=KIND construct "C" headers for g++ [default=$c_model]
347669a0
BK
1637 --enable-long-long enable template specializations for 'long long'
1638 [default=yes]
1639 --enable-wchar_t enable template specializations for 'wchar_t'
517da0ce 1640 [default=yes]
5213506e 1641 --enable-c99 turns on ISO/IEC 9899:1999 support [default=yes]
517da0ce 1642 --enable-concept-checks use Boost-derived template checks [default=no]
ff66d28f 1643 --enable-libstdcxx-debug-flags=FLAGS
517da0ce
MM
1644 pass compiler FLAGS when building debug library
1645 [default="-g3 -O0"]
ff66d28f
PE
1646 --enable-libstdcxx-debug
1647 build extra debug library [default=no]
1648 --enable-cxx-flags=FLAGS
5213506e 1649 pass compiler FLAGS when building library [default=]
1165dc50
PC
1650 --enable-fully-dynamic-string
1651 do not put empty strings in per-process static
1652 memory [default=no]
959d14e1 1653 --enable-libstdcxx-time=KIND
727cd0bc 1654 use KIND for check type [default=no]
2fb31455 1655 --enable-tls Use thread-local storage [default=yes]
5f34ed87 1656 --disable-rpath do not hardcode runtime library paths
5213506e 1657 --enable-linux-futex use the Linux futex system call [default=default]
517da0ce
MM
1658 --enable-symvers=STYLE enables symbol versioning of the shared library
1659 [default=yes]
98e615b4 1660 --enable-visibility enables visibility safe usage [default=yes]
ff66d28f 1661 --enable-version-specific-runtime-libs
517da0ce
MM
1662 Specify that runtime libraries should be installed
1663 in a compiler-specific directory
ff66d28f
PE
1664
1665Optional Packages:
1666 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1667 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1668 --with-target-subdir=SUBDIR
1669 configuring in a subdirectory
517da0ce
MM
1670 --with-cross-host=HOST configuring with a cross compiler
1671 --with-newlib assume newlib as a system C library
1cf3d07d
SE
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1673 both]
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ff66d28f 1675 --with-gnu-ld assume the C compiler uses GNU ld default=no
4ffe6e87
BK
1676 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1677 --without-libiconv-prefix don't search for libiconv in includedir and libdir
a5d137be 1678 --with-system-libunwind use installed libunwind
ff66d28f
PE
1679 --with-gxx-include-dir=DIR
1680 installation directory for include files
1681
1682Some influential environment variables:
517da0ce
MM
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
5213506e
RW
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
517da0ce
MM
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
517da0ce 1692 CPP C preprocessor
464aea98 1693 CXXCPP C++ preprocessor
ff66d28f
PE
1694
1695Use these variables to override the choices made by `configure' or to help
1696it to find libraries and programs with nonstandard names/locations.
1697
5213506e 1698Report bugs to the package provider.
ff66d28f 1699_ACEOF
5213506e 1700ac_status=$?
ff66d28f
PE
1701fi
1702
1703if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
ff66d28f 1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 continue
ff66d28f
PE
1709 ac_builddir=.
1710
5213506e
RW
1711case "$ac_dir" in
1712.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713*)
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 esac ;;
1721esac
1722ac_abs_top_builddir=$ac_pwd
1723ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724# for backward compatibility:
1725ac_top_builddir=$ac_top_build_prefix
ff66d28f
PE
1726
1727case $srcdir in
5213506e 1728 .) # We are building in place.
ff66d28f 1729 ac_srcdir=.
5213506e
RW
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
ff66d28f 1733 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1736 *) # Relative name.
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ec2075e9 1740esac
5213506e
RW
1741ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure" --help=recursive
ff66d28f 1751 else
5213506e
RW
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 fi || ac_status=$?
1754 cd "$ac_pwd" || { ac_status=$?; break; }
ff66d28f
PE
1755 done
1756fi
1757
5213506e 1758test -n "$ac_init_help" && exit $ac_status
ff66d28f
PE
1759if $ac_init_version; then
1760 cat <<\_ACEOF
fbe057bb 1761package-unused configure version-unused
5213506e 1762generated by GNU Autoconf 2.64
ff66d28f 1763
5213506e 1764Copyright (C) 2009 Free Software Foundation, Inc.
ff66d28f
PE
1765This configure script is free software; the Free Software Foundation
1766gives unlimited permission to copy, distribute and modify it.
1767_ACEOF
5213506e 1768 exit
b2dad0e3 1769fi
ff66d28f 1770
5213506e
RW
1771## ------------------------ ##
1772## Autoconf initialization. ##
1773## ------------------------ ##
ff66d28f 1774
5213506e
RW
1775# ac_fn_c_try_compile LINENO
1776# --------------------------
1777# Try to compile conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_compile ()
ff66d28f 1779{
5213506e
RW
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 1805
5213506e
RW
1806 ac_retval=1
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
ff66d28f 1810
5213506e 1811} # ac_fn_c_try_compile
ff66d28f 1812
5213506e
RW
1813# ac_fn_cxx_try_compile LINENO
1814# ----------------------------
1815# Try to compile conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_cxx_try_compile ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 1843
5213506e
RW
1844 ac_retval=1
1845fi
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
ff66d28f 1848
5213506e 1849} # ac_fn_cxx_try_compile
ff66d28f 1850
5213506e
RW
1851# ac_fn_c_try_cpp LINENO
1852# ----------------------
1853# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_c_try_cpp ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } >/dev/null && {
1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 1880
5213506e
RW
1881 ac_retval=1
1882fi
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
ff66d28f 1885
5213506e 1886} # ac_fn_c_try_cpp
ff66d28f 1887
5213506e
RW
1888# ac_fn_c_try_link LINENO
1889# -----------------------
1890# Try to link conftest.$ac_ext, and return whether this succeeded.
1891ac_fn_c_try_link ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext conftest$ac_exeext
1895 if { { ac_try="$ac_link"
1896case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1908 fi
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_c_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest$ac_exeext && {
1914 test "$cross_compiling" = yes ||
1915 $as_test_x conftest$ac_exeext
1916 }; then :
1917 ac_retval=0
1918else
1919 $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 1921
5213506e
RW
1922 ac_retval=1
1923fi
1924 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1925 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1926 # interfere with the next link command; also delete a directory that is
1927 # left behind by Apple's compiler. We do this before executing the actions.
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 return $ac_retval
ff66d28f 1931
5213506e 1932} # ac_fn_c_try_link
ff66d28f 1933
5213506e
RW
1934# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1935# -------------------------------------------------------
1936# Tests whether HEADER exists and can be compiled using the include files in
1937# INCLUDES, setting the cache variable VAR accordingly.
1938ac_fn_c_check_header_compile ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
1943if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1944 $as_echo_n "(cached) " >&6
1945else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949#include <$2>
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 eval "$3=yes"
1953else
1954 eval "$3=no"
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ff66d28f 1962
5213506e 1963} # ac_fn_c_check_header_compile
ff66d28f 1964
5213506e
RW
1965# ac_fn_c_try_run LINENO
1966# ----------------------
1967# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1968# that executables *can* be run.
1969ac_fn_c_try_run ()
7eed349e 1970{
5213506e
RW
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_link"
1973case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_link") 2>&5
1980 ac_status=$?
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1983 { { case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986esac
1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988$as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_try") 2>&5
1990 ac_status=$?
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; }; }; then :
1993 ac_retval=0
1994else
1995 $as_echo "$as_me: program exited with status $ac_status" >&5
1996 $as_echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 1998
5213506e
RW
1999 ac_retval=$ac_status
2000fi
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 return $ac_retval
ff66d28f 2004
5213506e 2005} # ac_fn_c_try_run
ff66d28f 2006
5213506e
RW
2007# ac_fn_c_check_func LINENO FUNC VAR
2008# ----------------------------------
2009# Tests whether FUNC exists, setting the cache variable VAR accordingly
2010ac_fn_c_check_func ()
2011{
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014$as_echo_n "checking for $2... " >&6; }
2015if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017else
2018 if test x$gcc_no_link = xyes; then
2019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2020fi
2021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025#define $2 innocuous_$2
ff66d28f 2026
5213506e
RW
2027/* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
ff66d28f 2031
5213506e
RW
2032#ifdef __STDC__
2033# include <limits.h>
2034#else
2035# include <assert.h>
2036#endif
ff66d28f 2037
5213506e 2038#undef $2
ff66d28f 2039
5213506e
RW
2040/* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2043#ifdef __cplusplus
2044extern "C"
2045#endif
2046char $2 ();
2047/* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050#if defined __stub_$2 || defined __stub___$2
2051choke me
2052#endif
ff66d28f 2053
5213506e
RW
2054int
2055main ()
2056{
2057return $2 ();
2058 ;
2059 return 0;
2060}
ff66d28f 2061_ACEOF
5213506e
RW
2062if ac_fn_c_try_link "$LINENO"; then :
2063 eval "$3=yes"
2064else
2065 eval "$3=no"
2066fi
2067rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ff66d28f 2074
5213506e 2075} # ac_fn_c_check_func
ff66d28f 2076
5213506e
RW
2077# ac_fn_cxx_try_cpp LINENO
2078# ------------------------
2079# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_cxx_try_cpp ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089$as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091 ac_status=$?
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2096 fi
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } >/dev/null && {
2099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2101 }; then :
2102 ac_retval=0
2103else
2104 $as_echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2106
5213506e
RW
2107 ac_retval=1
2108fi
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 return $ac_retval
ff66d28f 2111
5213506e 2112} # ac_fn_cxx_try_cpp
ff66d28f 2113
5213506e
RW
2114# ac_fn_cxx_try_link LINENO
2115# -------------------------
2116# Try to link conftest.$ac_ext, and return whether this succeeded.
2117ac_fn_cxx_try_link ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 rm -f conftest.$ac_objext conftest$ac_exeext
2121 if { { ac_try="$ac_link"
2122case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125esac
2126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127$as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_link") 2>conftest.err
2129 ac_status=$?
2130 if test -s conftest.err; then
2131 grep -v '^ *+' conftest.err >conftest.er1
2132 cat conftest.er1 >&5
2133 mv -f conftest.er1 conftest.err
2134 fi
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136 test $ac_status = 0; } && {
2137 test -z "$ac_cxx_werror_flag" ||
2138 test ! -s conftest.err
2139 } && test -s conftest$ac_exeext && {
2140 test "$cross_compiling" = yes ||
2141 $as_test_x conftest$ac_exeext
2142 }; then :
2143 ac_retval=0
2144else
2145 $as_echo "$as_me: failed program was:" >&5
2146sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 ac_retval=1
2149fi
2150 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2151 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2152 # interfere with the next link command; also delete a directory that is
2153 # left behind by Apple's compiler. We do this before executing the actions.
2154 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 return $ac_retval
2157
2158} # ac_fn_cxx_try_link
2159
2160# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2161# -------------------------------------------------------
2162# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2163# the include files in INCLUDES and setting the cache variable VAR
2164# accordingly.
2165ac_fn_c_check_header_mongrel ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170$as_echo_n "checking for $2... " >&6; }
2171if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2173fi
2174eval ac_res=\$$3
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176$as_echo "$ac_res" >&6; }
2177else
2178 # Is the header compilable?
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2180$as_echo_n "checking $2 usability... " >&6; }
2181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$4
2184#include <$2>
ff66d28f 2185_ACEOF
5213506e
RW
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_header_compiler=yes
2188else
2189 ac_header_compiler=no
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2193$as_echo "$ac_header_compiler" >&6; }
ff66d28f 2194
5213506e
RW
2195# Is the header present?
2196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2197$as_echo_n "checking $2 presence... " >&6; }
2198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200#include <$2>
2201_ACEOF
2202if ac_fn_c_try_cpp "$LINENO"; then :
2203 ac_header_preproc=yes
2204else
2205 ac_header_preproc=no
2206fi
2207rm -f conftest.err conftest.$ac_ext
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2209$as_echo "$ac_header_preproc" >&6; }
ff66d28f 2210
5213506e
RW
2211# So? What about this header?
2212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2213 yes:no: )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2215$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2217$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2218 ;;
2219 no:yes:* )
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2221$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2223$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2225$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2227$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 ;;
2231esac
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233$as_echo_n "checking for $2... " >&6; }
2234if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2236else
2237 eval "$3=\$ac_header_compiler"
b2dad0e3 2238fi
5213506e
RW
2239eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241$as_echo "$ac_res" >&6; }
2242fi
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
b2dad0e3 2244
5213506e
RW
2245} # ac_fn_c_check_header_mongrel
2246
2247# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2248# ---------------------------------------------------------
2249# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2250# the include files in INCLUDES and setting the cache variable VAR
2251# accordingly.
2252ac_fn_cxx_check_header_mongrel ()
2253{
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257$as_echo_n "checking for $2... " >&6; }
2258if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2260fi
2261eval ac_res=\$$3
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263$as_echo "$ac_res" >&6; }
b2dad0e3 2264else
5213506e
RW
2265 # Is the header compilable?
2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2267$as_echo_n "checking $2 usability... " >&6; }
2268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h. */
2270$4
2271#include <$2>
2272_ACEOF
2273if ac_fn_cxx_try_compile "$LINENO"; then :
2274 ac_header_compiler=yes
2275else
2276 ac_header_compiler=no
ff66d28f 2277fi
5213506e
RW
2278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2280$as_echo "$ac_header_compiler" >&6; }
ff66d28f 2281
5213506e
RW
2282# Is the header present?
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2284$as_echo_n "checking $2 presence... " >&6; }
2285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286/* end confdefs.h. */
2287#include <$2>
2288_ACEOF
2289if ac_fn_cxx_try_cpp "$LINENO"; then :
2290 ac_header_preproc=yes
2291else
2292 ac_header_preproc=no
2293fi
2294rm -f conftest.err conftest.$ac_ext
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2296$as_echo "$ac_header_preproc" >&6; }
2297
2298# So? What about this header?
2299case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2300 yes:no: )
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2302$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2304$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2305 ;;
2306 no:yes:* )
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2308$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2310$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2312$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2314$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2316$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2317 ;;
2318esac
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320$as_echo_n "checking for $2... " >&6; }
2321if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2322 $as_echo_n "(cached) " >&6
2323else
2324 eval "$3=\$ac_header_compiler"
2325fi
2326eval ac_res=\$$3
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
2329fi
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331
2332} # ac_fn_cxx_check_header_mongrel
2333
2334# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335# -------------------------------------------
2336# Tests whether TYPE exists after having included INCLUDES, setting cache
2337# variable VAR accordingly.
2338ac_fn_c_check_type ()
2339{
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 eval "$3=no"
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$4
2350int
2351main ()
2352{
2353if (sizeof ($2))
2354 return 0;
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361/* end confdefs.h. */
2362$4
2363int
2364main ()
2365{
2366if (sizeof (($2)))
2367 return 0;
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372if ac_fn_c_try_compile "$LINENO"; then :
2373
2374else
2375 eval "$3=yes"
2376fi
2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378fi
2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380fi
2381eval ac_res=\$$3
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383$as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385
2386} # ac_fn_c_check_type
2387
2388# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2389# --------------------------------------------
2390# Tries to find the compile-time value of EXPR in a program that includes
2391# INCLUDES, setting VAR accordingly. Returns whether the value could be
2392# computed
2393ac_fn_c_compute_int ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 if test "$cross_compiling" = yes; then
2397 # Depending upon the size, compute the lo and hi bounds.
2398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399/* end confdefs.h. */
2400$4
2401int
2402main ()
2403{
2404static int test_array [1 - 2 * !(($2) >= 0)];
2405test_array [0] = 0
2406
2407 ;
2408 return 0;
2409}
2410_ACEOF
2411if ac_fn_c_try_compile "$LINENO"; then :
2412 ac_lo=0 ac_mid=0
2413 while :; do
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415/* end confdefs.h. */
2416$4
2417int
2418main ()
2419{
2420static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2421test_array [0] = 0
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427if ac_fn_c_try_compile "$LINENO"; then :
2428 ac_hi=$ac_mid; break
2429else
2430 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2431 if test $ac_lo -le $ac_mid; then
2432 ac_lo= ac_hi=
2433 break
2434 fi
2435 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2436fi
2437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 done
2439else
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441/* end confdefs.h. */
2442$4
2443int
2444main ()
2445{
2446static int test_array [1 - 2 * !(($2) < 0)];
2447test_array [0] = 0
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_hi=-1 ac_mid=-1
2455 while :; do
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h. */
2458$4
2459int
2460main ()
2461{
2462static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2463test_array [0] = 0
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_lo=$ac_mid; break
2471else
2472 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2473 if test $ac_mid -le $ac_hi; then
2474 ac_lo= ac_hi=
2475 break
2476 fi
2477 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 done
2481else
2482 ac_lo= ac_hi=
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487# Binary search between lo and hi bounds.
2488while test "x$ac_lo" != "x$ac_hi"; do
2489 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h. */
2492$4
2493int
2494main ()
2495{
2496static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2497test_array [0] = 0
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503if ac_fn_c_try_compile "$LINENO"; then :
2504 ac_hi=$ac_mid
2505else
2506 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2507fi
2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509done
2510case $ac_lo in #((
2511?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2512'') ac_retval=1 ;;
2513esac
2514 else
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516/* end confdefs.h. */
2517$4
2518static long int longval () { return $2; }
2519static unsigned long int ulongval () { return $2; }
2520#include <stdio.h>
2521#include <stdlib.h>
2522int
2523main ()
2524{
2525
2526 FILE *f = fopen ("conftest.val", "w");
2527 if (! f)
2528 return 1;
2529 if (($2) < 0)
2530 {
2531 long int i = longval ();
2532 if (i != ($2))
2533 return 1;
2534 fprintf (f, "%ld", i);
2535 }
2536 else
2537 {
2538 unsigned long int i = ulongval ();
2539 if (i != ($2))
2540 return 1;
2541 fprintf (f, "%lu", i);
2542 }
2543 /* Do not output a trailing newline, as this causes \r\n confusion
2544 on some platforms. */
2545 return ferror (f) || fclose (f) != 0;
2546
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551if ac_fn_c_try_run "$LINENO"; then :
2552 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2553else
2554 ac_retval=1
2555fi
2556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2557 conftest.$ac_objext conftest.beam conftest.$ac_ext
2558rm -f conftest.val
2559
2560 fi
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 return $ac_retval
2563
2564} # ac_fn_c_compute_int
2565cat >config.log <<_ACEOF
2566This file contains any messages produced by compilers while
2567running configure, to aid debugging if configure makes a mistake.
2568
2569It was created by package-unused $as_me version-unused, which was
2570generated by GNU Autoconf 2.64. Invocation command line was
2571
2572 $ $0 $@
2573
2574_ACEOF
2575exec 5>>config.log
2576{
2577cat <<_ASUNAME
2578## --------- ##
2579## Platform. ##
2580## --------- ##
2581
2582hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2583uname -m = `(uname -m) 2>/dev/null || echo unknown`
2584uname -r = `(uname -r) 2>/dev/null || echo unknown`
2585uname -s = `(uname -s) 2>/dev/null || echo unknown`
2586uname -v = `(uname -v) 2>/dev/null || echo unknown`
2587
2588/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2589/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2590
2591/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2592/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2593/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2594/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2595/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2596/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2597/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2598
2599_ASUNAME
2600
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 $as_echo "PATH: $as_dir"
2607 done
2608IFS=$as_save_IFS
2609
2610} >&5
2611
2612cat >&5 <<_ACEOF
2613
2614
2615## ----------- ##
2616## Core tests. ##
2617## ----------- ##
2618
2619_ACEOF
2620
2621
2622# Keep a trace of the command line.
2623# Strip out --no-create and --no-recursion so they do not pile up.
2624# Strip out --silent because we don't want to record it for future runs.
2625# Also quote any args containing shell meta-characters.
2626# Make two passes to allow for proper duplicate-argument suppression.
2627ac_configure_args=
2628ac_configure_args0=
2629ac_configure_args1=
2630ac_must_keep_next=false
2631for ac_pass in 1 2
2632do
2633 for ac_arg
2634 do
2635 case $ac_arg in
2636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2638 | -silent | --silent | --silen | --sile | --sil)
2639 continue ;;
2640 *\'*)
2641 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 esac
2643 case $ac_pass in
2644 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2645 2)
2646 as_fn_append ac_configure_args1 " '$ac_arg'"
2647 if test $ac_must_keep_next = true; then
2648 ac_must_keep_next=false # Got value, back to normal.
2649 else
2650 case $ac_arg in
2651 *=* | --config-cache | -C | -disable-* | --disable-* \
2652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2654 | -with-* | --with-* | -without-* | --without-* | --x)
2655 case "$ac_configure_args0 " in
2656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2657 esac
2658 ;;
2659 -* ) ac_must_keep_next=true ;;
2660 esac
2661 fi
2662 as_fn_append ac_configure_args " '$ac_arg'"
2663 ;;
2664 esac
2665 done
2666done
2667{ ac_configure_args0=; unset ac_configure_args0;}
2668{ ac_configure_args1=; unset ac_configure_args1;}
2669
2670# When interrupted or exit'd, cleanup temporary files, and complete
2671# config.log. We remove comments because anyway the quotes in there
2672# would cause problems or look ugly.
2673# WARNING: Use '\'' to represent an apostrophe within the trap.
2674# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2675trap 'exit_status=$?
2676 # Save into config.log some information that might help in debugging.
2677 {
2678 echo
2679
2680 cat <<\_ASBOX
2681## ---------------- ##
2682## Cache variables. ##
2683## ---------------- ##
2684_ASBOX
2685 echo
2686 # The following way of writing the cache mishandles newlines in values,
2687(
2688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2689 eval ac_val=\$$ac_var
2690 case $ac_val in #(
2691 *${as_nl}*)
2692 case $ac_var in #(
2693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2694$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2695 esac
2696 case $ac_var in #(
2697 _ | IFS | as_nl) ;; #(
2698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2699 *) { eval $ac_var=; unset $ac_var;} ;;
2700 esac ;;
2701 esac
2702 done
2703 (set) 2>&1 |
2704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2705 *${as_nl}ac_space=\ *)
2706 sed -n \
2707 "s/'\''/'\''\\\\'\'''\''/g;
2708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2709 ;; #(
2710 *)
2711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2712 ;;
2713 esac |
2714 sort
2715)
2716 echo
2717
2718 cat <<\_ASBOX
2719## ----------------- ##
2720## Output variables. ##
2721## ----------------- ##
2722_ASBOX
2723 echo
2724 for ac_var in $ac_subst_vars
2725 do
2726 eval ac_val=\$$ac_var
2727 case $ac_val in
2728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2729 esac
2730 $as_echo "$ac_var='\''$ac_val'\''"
2731 done | sort
2732 echo
2733
2734 if test -n "$ac_subst_files"; then
2735 cat <<\_ASBOX
2736## ------------------- ##
2737## File substitutions. ##
2738## ------------------- ##
2739_ASBOX
2740 echo
2741 for ac_var in $ac_subst_files
2742 do
2743 eval ac_val=\$$ac_var
2744 case $ac_val in
2745 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2746 esac
2747 $as_echo "$ac_var='\''$ac_val'\''"
2748 done | sort
2749 echo
2750 fi
2751
2752 if test -s confdefs.h; then
2753 cat <<\_ASBOX
2754## ----------- ##
2755## confdefs.h. ##
2756## ----------- ##
2757_ASBOX
2758 echo
2759 cat confdefs.h
2760 echo
2761 fi
2762 test "$ac_signal" != 0 &&
2763 $as_echo "$as_me: caught signal $ac_signal"
2764 $as_echo "$as_me: exit $exit_status"
2765 } >&5
2766 rm -f core *.core core.conftest.* &&
2767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2768 exit $exit_status
2769' 0
2770for ac_signal in 1 2 13 15; do
2771 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2772done
2773ac_signal=0
2774
2775# confdefs.h avoids OS command line length limits that DEFS can exceed.
2776rm -f -r conftest* confdefs.h
2777
2778$as_echo "/* confdefs.h */" > confdefs.h
2779
2780# Predefined preprocessor variables.
2781
2782cat >>confdefs.h <<_ACEOF
2783#define PACKAGE_NAME "$PACKAGE_NAME"
2784_ACEOF
2785
2786cat >>confdefs.h <<_ACEOF
2787#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2788_ACEOF
2789
2790cat >>confdefs.h <<_ACEOF
2791#define PACKAGE_VERSION "$PACKAGE_VERSION"
2792_ACEOF
2793
2794cat >>confdefs.h <<_ACEOF
2795#define PACKAGE_STRING "$PACKAGE_STRING"
2796_ACEOF
2797
2798cat >>confdefs.h <<_ACEOF
2799#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2800_ACEOF
2801
2802cat >>confdefs.h <<_ACEOF
2803#define PACKAGE_URL "$PACKAGE_URL"
2804_ACEOF
2805
2806
2807# Let the site file select an alternate cache file if it wants to.
2808# Prefer an explicitly selected file to automatically selected ones.
2809ac_site_file1=NONE
2810ac_site_file2=NONE
2811if test -n "$CONFIG_SITE"; then
2812 ac_site_file1=$CONFIG_SITE
2813elif test "x$prefix" != xNONE; then
2814 ac_site_file1=$prefix/share/config.site
2815 ac_site_file2=$prefix/etc/config.site
2816else
2817 ac_site_file1=$ac_default_prefix/share/config.site
2818 ac_site_file2=$ac_default_prefix/etc/config.site
2819fi
2820for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2821do
2822 test "x$ac_site_file" = xNONE && continue
2823 if test -r "$ac_site_file"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2825$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2826 sed 's/^/| /' "$ac_site_file" >&5
2827 . "$ac_site_file"
2828 fi
2829done
2830
2831if test -r "$cache_file"; then
2832 # Some versions of bash will fail to source /dev/null (special
2833 # files actually), so we avoid doing that.
2834 if test -f "$cache_file"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2836$as_echo "$as_me: loading cache $cache_file" >&6;}
2837 case $cache_file in
2838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2839 *) . "./$cache_file";;
2840 esac
2841 fi
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2844$as_echo "$as_me: creating cache $cache_file" >&6;}
2845 >$cache_file
2846fi
2847
2848# Check that the precious variables saved in the cache have kept the same
2849# value.
ff66d28f 2850ac_cache_corrupted=false
5213506e 2851for ac_var in $ac_precious_vars; do
ff66d28f
PE
2852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2853 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2855 eval ac_new_val=\$ac_env_${ac_var}_value
ff66d28f
PE
2856 case $ac_old_set,$ac_new_set in
2857 set,)
5213506e
RW
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2859$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ff66d28f
PE
2860 ac_cache_corrupted=: ;;
2861 ,set)
5213506e
RW
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2863$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ff66d28f
PE
2864 ac_cache_corrupted=: ;;
2865 ,);;
2866 *)
2867 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2868 # differences in whitespace do not lead to failure.
2869 ac_old_val_w=`echo x $ac_old_val`
2870 ac_new_val_w=`echo x $ac_new_val`
2871 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2873$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2874 ac_cache_corrupted=:
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2877$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2878 eval $ac_var=\$ac_old_val
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2881$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2883$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ff66d28f
PE
2884 fi;;
2885 esac
2886 # Pass precious variables to config.status.
2887 if test "$ac_new_set" = set; then
2888 case $ac_new_val in
5213506e 2889 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ff66d28f
PE
2890 *) ac_arg=$ac_var=$ac_new_val ;;
2891 esac
2892 case " $ac_configure_args " in
2893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2894 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
ff66d28f
PE
2895 esac
2896 fi
2897done
2898if $ac_cache_corrupted; then
5213506e
RW
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2902$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2903 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b2dad0e3 2904fi
5213506e
RW
2905## -------------------- ##
2906## Main body of script. ##
2907## -------------------- ##
b2dad0e3 2908
7eed349e
PC
2909ac_ext=c
2910ac_cpp='$CPP $CPPFLAGS'
2911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914
b2dad0e3 2915
e2c20fae 2916
6706f116 2917
33590f13
BK
2918
2919
5213506e 2920ac_config_headers="$ac_config_headers config.h"
ff66d28f
PE
2921
2922
2923# This works around the fact that libtool configuration may change LD
2924# for this particular configuration, but some shells, instead of
2925# keeping the changes in LD private, export them just because LD is
2926# exported. Only used at the end of this file.
2927### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
2928
2929# For libtool versioning info, format is CURRENT:REVISION:AGE
41bc3c4a 2930libtool_VERSION=6:14:0
ff66d28f
PE
2931
2932
2933# Find the rest of the source tree framework.
076e5443 2934# Default to --enable-multilib
5213506e
RW
2935# Check whether --enable-multilib was given.
2936if test "${enable_multilib+set}" = set; then :
2937 enableval=$enable_multilib; case "$enableval" in
ff66d28f
PE
2938 yes) multilib=yes ;;
2939 no) multilib=no ;;
5213506e 2940 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
ff66d28f
PE
2941 esac
2942else
2943 multilib=yes
5213506e
RW
2944fi
2945
ff66d28f
PE
2946
2947# We may get other options which we leave undocumented:
2948# --with-target-subdir, --with-multisrctop, --with-multisubdir
2949# See config-ml.in if you want the gory details.
2950
2951if test "$srcdir" = "."; then
2952 if test "$with_target_subdir" != "."; then
2953 multi_basedir="$srcdir/$with_multisrctop../.."
2954 else
2955 multi_basedir="$srcdir/$with_multisrctop.."
2956 fi
2957else
2958 multi_basedir="$srcdir/.."
2959fi
2960
2961
5b043f08
GK
2962# Even if the default multilib is not a cross compilation,
2963# it may be that some of the other multilibs are.
2964if test $cross_compiling = no && test $multilib = yes \
2965 && test "x${with_multisubdir}" != x ; then
2966 cross_compiling=maybe
2967fi
2968
5213506e 2969ac_config_commands="$ac_config_commands default-1"
ff66d28f
PE
2970
2971
076e5443
PB
2972# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2973#
2974# You will slowly go insane if you do not grok the following fact: when
2975# building v3 as part of the compiler, the top-level /target/ becomes the
2976# library's /host/. configure then causes --target to default to --host,
2977# exactly like any other package using autoconf. Therefore, 'target' and
2978# 'host' will always be the same. This makes sense both for native and
2979# cross compilers, just think about it for a little while. :-)
2980#
2981# Also, if v3 is being configured as part of a cross compiler, the top-level
2982# configure script will pass the "real" host as $with_cross_host.
2983#
2984# Do not delete or change the following two lines. For why, see
2985# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2986ac_aux_dir=
5213506e
RW
2987for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2988 for ac_t in install-sh install.sh shtool; do
2989 if test -f "$ac_dir/$ac_t"; then
2990 ac_aux_dir=$ac_dir
2991 ac_install_sh="$ac_aux_dir/$ac_t -c"
2992 break 2
2993 fi
2994 done
b2dad0e3
BK
2995done
2996if test -z "$ac_aux_dir"; then
5213506e 2997 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b2dad0e3 2998fi
5213506e
RW
2999
3000# These three variables are undocumented and unsupported,
3001# and are intended to be withdrawn in a future Autoconf release.
3002# They can cause serious problems if a builder's source tree is in a directory
3003# whose full name contains unusual characters.
3004ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3005ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3006ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3007
ff66d28f 3008
ff66d28f 3009# Make sure we can run config.sub.
5213506e
RW
3010$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3011 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3012
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3014$as_echo_n "checking build system type... " >&6; }
3015if test "${ac_cv_build+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017else
3018 ac_build_alias=$build_alias
3019test "x$ac_build_alias" = x &&
3020 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3021test "x$ac_build_alias" = x &&
3022 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3023ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3024 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3025
3026fi
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3028$as_echo "$ac_cv_build" >&6; }
3029case $ac_cv_build in
3030*-*-*) ;;
3031*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3032esac
ff66d28f 3033build=$ac_cv_build
5213506e
RW
3034ac_save_IFS=$IFS; IFS='-'
3035set x $ac_cv_build
3036shift
3037build_cpu=$1
3038build_vendor=$2
3039shift; shift
3040# Remember, the first character of IFS is used to create $*,
3041# except with old shells:
3042build_os=$*
3043IFS=$ac_save_IFS
3044case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7eed349e
PC
3045
3046
5213506e
RW
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3048$as_echo_n "checking host system type... " >&6; }
3049if test "${ac_cv_host+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051else
3052 if test "x$host_alias" = x; then
3053 ac_cv_host=$ac_cv_build
ff66d28f 3054else
5213506e
RW
3055 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3056 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3057fi
ff66d28f
PE
3058
3059fi
5213506e
RW
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3061$as_echo "$ac_cv_host" >&6; }
3062case $ac_cv_host in
3063*-*-*) ;;
3064*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3065esac
ff66d28f 3066host=$ac_cv_host
5213506e
RW
3067ac_save_IFS=$IFS; IFS='-'
3068set x $ac_cv_host
3069shift
3070host_cpu=$1
3071host_vendor=$2
3072shift; shift
3073# Remember, the first character of IFS is used to create $*,
3074# except with old shells:
3075host_os=$*
3076IFS=$ac_save_IFS
3077case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7eed349e
PC
3078
3079
5213506e
RW
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3081$as_echo_n "checking target system type... " >&6; }
3082if test "${ac_cv_target+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
ff66d28f 3084else
5213506e
RW
3085 if test "x$target_alias" = x; then
3086 ac_cv_target=$ac_cv_host
3087else
3088 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3089 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3090fi
ff66d28f
PE
3091
3092fi
5213506e
RW
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3094$as_echo "$ac_cv_target" >&6; }
3095case $ac_cv_target in
3096*-*-*) ;;
3097*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3098esac
ff66d28f 3099target=$ac_cv_target
5213506e
RW
3100ac_save_IFS=$IFS; IFS='-'
3101set x $ac_cv_target
3102shift
3103target_cpu=$1
3104target_vendor=$2
3105shift; shift
3106# Remember, the first character of IFS is used to create $*,
3107# except with old shells:
3108target_os=$*
3109IFS=$ac_save_IFS
3110case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b2dad0e3 3111
b2dad0e3
BK
3112
3113# The aliases save the names the user supplied, while $host etc.
3114# will get canonicalized.
ff66d28f
PE
3115test -n "$target_alias" &&
3116 test "$program_prefix$program_suffix$program_transform_name" = \
3117 NONENONEs,x,x, &&
3118 program_prefix=${target_alias}-
5213506e 3119
ff66d28f
PE
3120target_alias=${target_alias-$host_alias}
3121
3122# Handy for debugging:
3123#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3124
0df3f383
PE
3125if test "$build" != "$host"; then
3126 # We are being configured with some form of cross compiler.
3127 GLIBCXX_IS_NATIVE=false
0646b059
GK
3128 case "$host","$target" in
3129 # Darwin crosses can use the host system's libraries and headers,
3130 # because of the fat library support. Of course, it must be the
3131 # same version of Darwin on both sides. Allow the user to
3132 # just say --target=foo-darwin without a version number to mean
3133 # "the version on this system".
3134 *-*-darwin*,*-*-darwin*)
3135 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
3136 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
3137 if test $hostos = $targetos -o $targetos = darwin ; then
3138 GLIBCXX_IS_NATIVE=true
3139 fi
3140 ;;
3141
3142 *)
3a24bf5d 3143
0646b059
GK
3144 ;;
3145 esac
0df3f383
PE
3146else
3147 GLIBCXX_IS_NATIVE=true
3148fi
3149
ff66d28f
PE
3150# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3151# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3152# 1.x: minimum required version
3153# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3154# of other PACKAGE_* variables will, however, and there's nothing
fbe057bb 3155# we can do about that; they come from AC_INIT).
ff66d28f
PE
3156# foreign: we don't follow the normal rules for GNU packages (no COPYING
3157# file in the top srcdir, etc, etc), so stop complaining.
3158# no-dependencies: turns off auto dependency generation (just for now)
2d52e9e3
PE
3159# -Wall: turns on all automake warnings...
3160# -Wno-portability: ...except this one, since GNU make is now required.
5213506e
RW
3161am__api_version='1.11'
3162
ff66d28f
PE
3163# Find a good install program. We prefer a C program (faster),
3164# so one script is as good as another. But avoid the broken or
3165# incompatible versions:
3166# SysV /etc/install, /usr/sbin/install
3167# SunOS /usr/etc/install
3168# IRIX /sbin/install
3169# AIX /bin/install
3170# AmigaOS /C/install, which installs bootblocks on floppy discs
3171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3172# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ec2075e9 3174# OS/2's system install, which has a completely different semantic
ff66d28f 3175# ./install, which can be erroneously created by make from ./install.sh.
d60a2d4d 3176# Reject install programs that cannot install multiple files.
5213506e
RW
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3178$as_echo_n "checking for a BSD-compatible install... " >&6; }
ff66d28f 3179if test -z "$INSTALL"; then
5213506e
RW
3180if test "${ac_cv_path_install+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
ff66d28f
PE
3182else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
5213506e
RW
3188 # Account for people who put trailing slashes in PATH elements.
3189case $as_dir/ in #((
3190 ./ | .// | /[cC]/* | \
ff66d28f 3191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3192 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
ff66d28f
PE
3193 /usr/ucb/* ) ;;
3194 *)
3195 # OSF1 and SCO ODT 3.0 have their own names for install.
3196 # Don't use installbsd from OSF since it installs stuff as root
3197 # by default.
3198 for ac_prog in ginstall scoinst install; do
3199 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 3200 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ec2075e9
BK
3201 if test $ac_prog = install &&
3202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203 # AIX install. It has an incompatible calling convention.
3204 :
3205 elif test $ac_prog = install &&
3206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3207 # program-specific install script used by HP pwplus--don't use.
3208 :
3209 else
d60a2d4d
ILT
3210 rm -rf conftest.one conftest.two conftest.dir
3211 echo one > conftest.one
3212 echo two > conftest.two
3213 mkdir conftest.dir
3214 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3215 test -s conftest.one && test -s conftest.two &&
3216 test -s conftest.dir/conftest.one &&
3217 test -s conftest.dir/conftest.two
3218 then
3219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3220 break 3
3221 fi
ec2075e9
BK
3222 fi
3223 fi
ff66d28f
PE
3224 done
3225 done
3226 ;;
b2dad0e3 3227esac
5213506e
RW
3228
3229 done
3230IFS=$as_save_IFS
b2dad0e3 3231
d60a2d4d 3232rm -rf conftest.one conftest.two conftest.dir
b2dad0e3 3233
b2dad0e3 3234fi
ff66d28f
PE
3235 if test "${ac_cv_path_install+set}" = set; then
3236 INSTALL=$ac_cv_path_install
3237 else
d60a2d4d
ILT
3238 # As a last resort, use the slow shell script. Don't cache a
3239 # value for INSTALL within a source directory, because that will
ff66d28f 3240 # break other packages using the cache if that directory is
d60a2d4d 3241 # removed, or if the value is a relative name.
ff66d28f
PE
3242 INSTALL=$ac_install_sh
3243 fi
3244fi
5213506e
RW
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3246$as_echo "$INSTALL" >&6; }
b2dad0e3 3247
ff66d28f
PE
3248# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3249# It thinks the first close brace ends the variable substitution.
3250test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b2dad0e3 3251
ff66d28f 3252test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b2dad0e3 3253
ff66d28f 3254test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b2dad0e3 3255
5213506e
RW
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3257$as_echo_n "checking whether build environment is sane... " >&6; }
ff66d28f
PE
3258# Just in case
3259sleep 1
3260echo timestamp > conftest.file
5213506e
RW
3261# Reject unsafe characters in $srcdir or the absolute working directory
3262# name. Accept space and tab only in the latter.
3263am_lf='
3264'
3265case `pwd` in
3266 *[\\\"\#\$\&\'\`$am_lf]*)
3267 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3268esac
3269case $srcdir in
3270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3271 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3272esac
3273
ff66d28f
PE
3274# Do `set' in a subshell so we don't clobber the current shell's
3275# arguments. Must try -L first in case configure is actually a
3276# symlink; some systems play weird games with the mod time of symlinks
3277# (eg FreeBSD returns the mod time of the symlink's containing
3278# directory).
3279if (
5213506e 3280 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
ff66d28f
PE
3281 if test "$*" = "X"; then
3282 # -L didn't work.
5213506e 3283 set X `ls -t "$srcdir/configure" conftest.file`
ff66d28f
PE
3284 fi
3285 rm -f conftest.file
3286 if test "$*" != "X $srcdir/configure conftest.file" \
3287 && test "$*" != "X conftest.file $srcdir/configure"; then
b2dad0e3 3288
ff66d28f
PE
3289 # If neither matched, then we have a broken ls. This can happen
3290 # if, for instance, CONFIG_SHELL is bash and it inherits a
3291 # broken ls alias from the environment. This has actually
3292 # happened. Such a system could not be considered "sane".
5213506e
RW
3293 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3294alias in your environment" "$LINENO" 5
ff66d28f 3295 fi
b2dad0e3 3296
ff66d28f
PE
3297 test "$2" = conftest.file
3298 )
3299then
3300 # Ok.
3301 :
33590f13 3302else
5213506e
RW
3303 as_fn_error "newly created file is older than distributed files!
3304Check your system clock" "$LINENO" 5
33590f13 3305fi
5213506e
RW
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307$as_echo "yes" >&6; }
ff66d28f 3308test "$program_prefix" != NONE &&
5213506e 3309 program_transform_name="s&^&$program_prefix&;$program_transform_name"
ff66d28f
PE
3310# Use a double $ so make ignores it.
3311test "$program_suffix" != NONE &&
5213506e
RW
3312 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3313# Double any \ or $.
ff66d28f 3314# By default was `s,x,x', remove it if useless.
5213506e
RW
3315ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3316program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b2dad0e3 3317
ff66d28f
PE
3318# expand $ac_aux_dir to an absolute path
3319am_aux_dir=`cd $ac_aux_dir && pwd`
33590f13 3320
5213506e
RW
3321if test x"${MISSING+set}" != xset; then
3322 case $am_aux_dir in
3323 *\ * | *\ *)
3324 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3325 *)
3326 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3327 esac
3328fi
ff66d28f
PE
3329# Use eval to expand $SHELL
3330if eval "$MISSING --run true"; then
3331 am_missing_run="$MISSING --run "
b2dad0e3 3332else
ff66d28f 3333 am_missing_run=
5213506e
RW
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3335$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7eaf73d7
KC
3336fi
3337
5213506e
RW
3338if test x"${install_sh}" != xset; then
3339 case $am_aux_dir in
3340 *\ * | *\ *)
3341 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3342 *)
3343 install_sh="\${SHELL} $am_aux_dir/install-sh"
3344 esac
3345fi
3346
3347# Installed binaries are usually stripped using `strip' when the user
3348# run `make install-strip'. However `strip' might not be the right
3349# tool to use in cross-compilation environments, therefore Automake
3350# will honor the `STRIP' environment variable to overrule this program.
3351if test "$cross_compiling" != no; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3354set dummy ${ac_tool_prefix}strip; ac_word=$2
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356$as_echo_n "checking for $ac_word... " >&6; }
3357if test "${ac_cv_prog_STRIP+set}" = set; then :
3358 $as_echo_n "(cached) " >&6
c98b201b 3359else
5213506e
RW
3360 if test -n "$STRIP"; then
3361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
c98b201b 3362else
ff66d28f
PE
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
5213506e
RW
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3372 break 2
3373 fi
3374done
5213506e
RW
3375 done
3376IFS=$as_save_IFS
ff66d28f 3377
c98b201b
PE
3378fi
3379fi
5213506e
RW
3380STRIP=$ac_cv_prog_STRIP
3381if test -n "$STRIP"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3383$as_echo "$STRIP" >&6; }
c98b201b 3384else
5213506e
RW
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
c98b201b
PE
3387fi
3388
c98b201b 3389
5213506e
RW
3390fi
3391if test -z "$ac_cv_prog_STRIP"; then
3392 ac_ct_STRIP=$STRIP
3393 # Extract the first word of "strip", so it can be a program name with args.
3394set dummy strip; ac_word=$2
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
ff66d28f 3399else
5213506e
RW
3400 if test -n "$ac_ct_STRIP"; then
3401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7eed349e 3402else
5213506e
RW
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_ac_ct_STRIP="strip"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415 done
3416IFS=$as_save_IFS
3417
7eed349e 3418fi
33590f13 3419fi
5213506e
RW
3420ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3421if test -n "$ac_ct_STRIP"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3423$as_echo "$ac_ct_STRIP" >&6; }
33590f13 3424else
5213506e
RW
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
33590f13
BK
3427fi
3428
5213506e
RW
3429 if test "x$ac_ct_STRIP" = x; then
3430 STRIP=":"
3431 else
3432 case $cross_compiling:$ac_tool_warned in
3433yes:)
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3436ac_tool_warned=yes ;;
3437esac
3438 STRIP=$ac_ct_STRIP
3439 fi
ff66d28f 3440else
5213506e 3441 STRIP="$ac_cv_prog_STRIP"
ff66d28f 3442fi
33590f13 3443
33590f13 3444fi
5213506e 3445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
33590f13 3446
5213506e
RW
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3448$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3449if test -z "$MKDIR_P"; then
3450 if test "${ac_cv_path_mkdir+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3455do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_prog in mkdir gmkdir; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3461 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3462 'mkdir (GNU coreutils) '* | \
3463 'mkdir (coreutils) '* | \
3464 'mkdir (fileutils) '4.1*)
3465 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3466 break 3;;
3467 esac
3468 done
3469 done
3470 done
3471IFS=$as_save_IFS
33590f13 3472
5213506e 3473fi
33590f13 3474
5213506e
RW
3475 if test "${ac_cv_path_mkdir+set}" = set; then
3476 MKDIR_P="$ac_cv_path_mkdir -p"
3477 else
3478 # As a last resort, use the slow shell script. Don't cache a
3479 # value for MKDIR_P within a source directory, because that will
3480 # break other packages using the cache if that directory is
3481 # removed, or if the value is a relative name.
3482 test -d ./--version && rmdir ./--version
3483 MKDIR_P="$ac_install_sh -d"
3484 fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3487$as_echo "$MKDIR_P" >&6; }
ff66d28f 3488
5213506e
RW
3489mkdir_p="$MKDIR_P"
3490case $mkdir_p in
3491 [\\/$]* | ?:[\\/]*) ;;
3492 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3493esac
ff66d28f 3494
5213506e
RW
3495for ac_prog in gawk mawk nawk awk
3496do
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498set dummy $ac_prog; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if test "${ac_cv_prog_AWK+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
33590f13 3503else
5213506e
RW
3504 if test -n "$AWK"; then
3505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
33590f13 3506else
ff66d28f
PE
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
5213506e
RW
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_AWK="$ac_prog"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3516 break 2
3517 fi
3518done
5213506e
RW
3519 done
3520IFS=$as_save_IFS
ff66d28f 3521
33590f13
BK
3522fi
3523fi
5213506e
RW
3524AWK=$ac_cv_prog_AWK
3525if test -n "$AWK"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3527$as_echo "$AWK" >&6; }
33590f13 3528else
5213506e
RW
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
33590f13
BK
3531fi
3532
5213506e
RW
3533
3534 test -n "$AWK" && break
ff66d28f
PE
3535done
3536
5213506e
RW
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3538$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3539set x ${MAKE-make}
3540ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3541if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3542 $as_echo_n "(cached) " >&6
3543else
3544 cat >conftest.make <<\_ACEOF
3545SHELL = /bin/sh
3546all:
3547 @echo '@@@%%%=$(MAKE)=@@@%%%'
3548_ACEOF
3549# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3550case `${MAKE-make} -f conftest.make 2>/dev/null` in
3551 *@@@%%%=?*=@@@%%%*)
3552 eval ac_cv_prog_make_${ac_make}_set=yes;;
3553 *)
3554 eval ac_cv_prog_make_${ac_make}_set=no;;
3555esac
3556rm -f conftest.make
b2dad0e3 3557fi
5213506e
RW
3558if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560$as_echo "yes" >&6; }
3561 SET_MAKE=
b2dad0e3 3562else
5213506e
RW
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565 SET_MAKE="MAKE=${MAKE-make}"
b2dad0e3
BK
3566fi
3567
5213506e
RW
3568rm -rf .tst 2>/dev/null
3569mkdir .tst 2>/dev/null
3570if test -d .tst; then
3571 am__leading_dot=.
b2dad0e3 3572else
5213506e
RW
3573 am__leading_dot=_
3574fi
3575rmdir .tst 2>/dev/null
3576
3577if test "`cd $srcdir && pwd`" != "`pwd`"; then
3578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3579 # is not polluted with repeated "-I."
3580 am__isrc=' -I$(srcdir)'
3581 # test to see if srcdir already configured
3582 if test -f $srcdir/config.status; then
3583 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3584 fi
b2dad0e3 3585fi
ff66d28f 3586
5213506e
RW
3587# test whether we have cygpath
3588if test -z "$CYGPATH_W"; then
3589 if (cygpath --version) >/dev/null 2>/dev/null; then
3590 CYGPATH_W='cygpath -w'
3591 else
3592 CYGPATH_W=echo
3593 fi
b2dad0e3 3594fi
5213506e
RW
3595
3596
3597# Define the identity of the package.
3598 PACKAGE='libstdc++'
3599 VERSION='version-unused'
3600
3601
3602# Some tools Automake needs.
3603
3604ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3605
3606
3607AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3608
3609
3610AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3611
3612
3613AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3614
3615
3616MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
b2dad0e3 3617
ff66d28f
PE
3618# We need awk for the "check" target. The system "awk" is bad on
3619# some platforms.
a60945f8
PC
3620# Always define AMTAR for backward compatibility.
3621
3622AMTAR=${AMTAR-"${am_missing_run}tar"}
3623
3624am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3625
3626
b2dad0e3 3627
b2dad0e3 3628
b2dad0e3 3629
ff66d28f 3630
3a24bf5d
KC
3631
3632
ae66da3b
RW
3633# We're almost certainly being configured before anything else which uses
3634# C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
3635# we not cache the value of CXX that we "discover" here, because it's set
3636# to something unique for us and libjava. Other target libraries need to
3637# find CXX for themselves. We yank the rug out from under the normal AC_*
3638# process by sneakily renaming the cache variable. This also lets us debug
3639# the value of "our" CXX in postmortems.
3640#
3641# We must also force CXX to /not/ be a precious variable, otherwise the
3642# wrong (non-multilib-adjusted) value will be used in multilibs. This
3643# little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
3644# effect, CXXFLAGS is no longer automagically subst'd, so we have to do
3645# that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
3646#
3647# -fno-builtin must be present here so that a non-conflicting form of
3648# std::exit can be guessed by AC_PROG_CXX, and used in later tests.
464aea98 3649
464aea98 3650
464aea98 3651
464aea98 3652
ae66da3b
RW
3653save_CXXFLAGS="$CXXFLAGS"
3654CXXFLAGS="$CXXFLAGS -fno-builtin"
464aea98
JM
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
ff66d28f
PE
3660if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3662set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
3665if test "${ac_cv_prog_CC+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
b2dad0e3 3667else
ff66d28f
PE
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 3670else
ff66d28f
PE
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
5213506e
RW
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 3678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3680 break 2
3681 fi
3682done
5213506e
RW
3683 done
3684IFS=$as_save_IFS
ff66d28f 3685
b2dad0e3
BK
3686fi
3687fi
ff66d28f
PE
3688CC=$ac_cv_prog_CC
3689if test -n "$CC"; then
5213506e
RW
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691$as_echo "$CC" >&6; }
b2dad0e3 3692else
5213506e
RW
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
b2dad0e3
BK
3695fi
3696
5213506e 3697
ff66d28f
PE
3698fi
3699if test -z "$ac_cv_prog_CC"; then
3700 ac_ct_CC=$CC
3701 # Extract the first word of "gcc", so it can be a program name with args.
3702set dummy gcc; ac_word=$2
5213506e
RW
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
3705if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
b2dad0e3 3707else
ff66d28f
PE
3708 if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 3710else
ff66d28f
PE
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
5213506e
RW
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 3718 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3720 break 2
3721 fi
3722done
5213506e
RW
3723 done
3724IFS=$as_save_IFS
ff66d28f 3725
b2dad0e3
BK
3726fi
3727fi
ff66d28f
PE
3728ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729if test -n "$ac_ct_CC"; then
5213506e
RW
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731$as_echo "$ac_ct_CC" >&6; }
b2dad0e3 3732else
5213506e
RW
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
b2dad0e3 3735fi
b2dad0e3 3736
5213506e
RW
3737 if test "x$ac_ct_CC" = x; then
3738 CC=""
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741yes:)
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744ac_tool_warned=yes ;;
3745esac
3746 CC=$ac_ct_CC
3747 fi
ff66d28f
PE
3748else
3749 CC="$ac_cv_prog_CC"
b2dad0e3
BK
3750fi
3751
ff66d28f 3752if test -z "$CC"; then
5213506e
RW
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ff66d28f 3755set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
3758if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
ff66d28f
PE
3760else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
5213506e
RW
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f 3773 break 2
b2dad0e3 3774 fi
ff66d28f 3775done
5213506e
RW
3776 done
3777IFS=$as_save_IFS
93b85586 3778
ff66d28f
PE
3779fi
3780fi
3781CC=$ac_cv_prog_CC
3782if test -n "$CC"; then
5213506e
RW
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784$as_echo "$CC" >&6; }
7eed349e 3785else
5213506e
RW
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787$as_echo "no" >&6; }
7eed349e
PC
3788fi
3789
7eed349e 3790
5213506e 3791 fi
ff66d28f
PE
3792fi
3793if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795set dummy cc; ac_word=$2
5213506e
RW
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
3798if test "${ac_cv_prog_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
b2dad0e3 3800else
ff66d28f
PE
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 3803else
ff66d28f
PE
3804 ac_prog_rejected=no
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
5213506e
RW
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f
PE
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3814 continue
3815 fi
3816 ac_cv_prog_CC="cc"
5213506e 3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3818 break 2
3819 fi
3820done
5213506e
RW
3821 done
3822IFS=$as_save_IFS
ff66d28f
PE
3823
3824if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3827 shift
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3832 shift
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3834 fi
b2dad0e3
BK
3835fi
3836fi
ff66d28f
PE
3837fi
3838CC=$ac_cv_prog_CC
3839if test -n "$CC"; then
5213506e
RW
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841$as_echo "$CC" >&6; }
b2dad0e3 3842else
5213506e
RW
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844$as_echo "no" >&6; }
b2dad0e3
BK
3845fi
3846
5213506e 3847
ff66d28f
PE
3848fi
3849if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
5213506e 3851 for ac_prog in cl.exe
ff66d28f
PE
3852 do
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if test "${ac_cv_prog_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
b2dad0e3 3859else
ff66d28f
PE
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 3862else
ff66d28f
PE
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
5213506e
RW
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3872 break 2
3873 fi
3874done
5213506e
RW
3875 done
3876IFS=$as_save_IFS
ff66d28f 3877
b2dad0e3
BK
3878fi
3879fi
ff66d28f
PE
3880CC=$ac_cv_prog_CC
3881if test -n "$CC"; then
5213506e
RW
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883$as_echo "$CC" >&6; }
b2dad0e3 3884else
5213506e
RW
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
b2dad0e3
BK
3887fi
3888
5213506e 3889
ff66d28f
PE
3890 test -n "$CC" && break
3891 done
3892fi
3893if test -z "$CC"; then
3894 ac_ct_CC=$CC
5213506e 3895 for ac_prog in cl.exe
ff66d28f
PE
3896do
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898set dummy $ac_prog; ac_word=$2
5213506e
RW
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
3901if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
b2dad0e3 3903else
ff66d28f
PE
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 3906else
ff66d28f
PE
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
5213506e
RW
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 3914 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
3916 break 2
3917 fi
3918done
5213506e
RW
3919 done
3920IFS=$as_save_IFS
ff66d28f 3921
b2dad0e3
BK
3922fi
3923fi
ff66d28f
PE
3924ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925if test -n "$ac_ct_CC"; then
5213506e
RW
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3927$as_echo "$ac_ct_CC" >&6; }
b2dad0e3 3928else
5213506e
RW
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
b2dad0e3
BK
3931fi
3932
5213506e 3933
ff66d28f
PE
3934 test -n "$ac_ct_CC" && break
3935done
b2dad0e3 3936
5213506e
RW
3937 if test "x$ac_ct_CC" = x; then
3938 CC=""
3939 else
3940 case $cross_compiling:$ac_tool_warned in
3941yes:)
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944ac_tool_warned=yes ;;
3945esac
3946 CC=$ac_ct_CC
3947 fi
ff66d28f
PE
3948fi
3949
3950fi
3951
3952
5213506e
RW
3953test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955as_fn_error "no acceptable C compiler found in \$PATH
3956See \`config.log' for more details." "$LINENO" 5; }
ff66d28f
PE
3957
3958# Provide some information about the compiler.
5213506e
RW
3959$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960set X $ac_compile
3961ac_compiler=$2
3962for ac_option in --version -v -V -qversion; do
3963 { { ac_try="$ac_compiler $ac_option >&5"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ff66d28f 3971 ac_status=$?
5213506e
RW
3972 if test -s conftest.err; then
3973 sed '10a\
3974... rest of stderr output deleted ...
3975 10q' conftest.err >conftest.er1
3976 cat conftest.er1 >&5
3977 rm -f conftest.er1 conftest.err
3978 fi
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981done
ff66d28f 3982
5213506e 3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
3984/* end confdefs.h. */
3985
3a24bf5d
KC
3986int
3987main ()
3988{
3989
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994# FIXME: Cleanup?
5213506e 3995if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3a24bf5d
KC
3996 (eval $ac_link) 2>&5
3997 ac_status=$?
5213506e
RW
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; then :
3a24bf5d
KC
4000 gcc_no_link=no
4001else
4002 gcc_no_link=yes
4003fi
3a24bf5d
KC
4004if test x$gcc_no_link = xyes; then
4005 # Setting cross_compile will disable run tests; it will
4006 # also disable AC_CHECK_FILE but that's generally
4007 # correct if we can't link.
4008 cross_compiling=yes
4009 EXEEXT=
4010else
5213506e 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3a24bf5d
KC
4012/* end confdefs.h. */
4013
ff66d28f
PE
4014int
4015main ()
4016{
4017
4018 ;
4019 return 0;
4020}
4021_ACEOF
4022ac_clean_files_save=$ac_clean_files
5213506e 4023ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
ff66d28f
PE
4024# Try to create an executable without -o first, disregard a.out.
4025# It will help us diagnose broken compilers, and finding out an intuition
4026# of exeext.
5213506e
RW
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4028$as_echo_n "checking for C compiler default output file name... " >&6; }
4029ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4030
4031# The possible output files:
4032ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4033
4034ac_rmfiles=
4035for ac_file in $ac_files
4036do
4037 case $ac_file in
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4039 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4040 esac
4041done
4042rm -f $ac_rmfiles
4043
4044if { { ac_try="$ac_link_default"
4045case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048esac
4049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050$as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link_default") 2>&5
4052 ac_status=$?
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4056# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4057# in a Makefile. We should not override ac_cv_exeext if it was cached,
4058# so that the user can short-circuit this test for compilers unknown to
4059# Autoconf.
4060for ac_file in $ac_files ''
ff66d28f
PE
4061do
4062 test -f "$ac_file" || continue
4063 case $ac_file in
5213506e 4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ec2075e9 4065 ;;
ff66d28f 4066 [ab].out )
ec2075e9
BK
4067 # We found the default executable, but exeext='' is most
4068 # certainly right.
4069 break;;
ff66d28f 4070 *.* )
5213506e
RW
4071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4072 then :; else
4073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4074 fi
4075 # We set ac_cv_exeext here because the later test for it is not
4076 # safe: cross compilers may not add the suffix if given an `-o'
4077 # argument, so we may need to know it at that point already.
4078 # Even if this section looks crufty: it has the advantage of
4079 # actually working.
ec2075e9 4080 break;;
ff66d28f 4081 * )
ec2075e9 4082 break;;
ff66d28f
PE
4083 esac
4084done
5213506e
RW
4085test "$ac_cv_exeext" = no && ac_cv_exeext=
4086
b2dad0e3 4087else
5213506e
RW
4088 ac_file=''
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4091$as_echo "$ac_file" >&6; }
4092if test -z "$ac_file"; then :
4093 $as_echo "$as_me: failed program was:" >&5
ff66d28f
PE
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
5213506e
RW
4096{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098{ as_fn_set_status 77
4099as_fn_error "C compiler cannot create executables
4100See \`config.log' for more details." "$LINENO" 5; }; }
ff66d28f 4101fi
ff66d28f 4102ac_exeext=$ac_cv_exeext
ff66d28f 4103
5213506e 4104# Check that the compiler produces executables we can run. If not, either
ff66d28f 4105# the compiler is broken, or we cross compile.
5213506e
RW
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4107$as_echo_n "checking whether the C compiler works... " >&6; }
ff66d28f
PE
4108# If not cross compiling, check that we can run a simple program.
4109if test "$cross_compiling" != yes; then
4110 if { ac_try='./$ac_file'
5213506e
RW
4111 { { case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116$as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_try") 2>&5
ff66d28f 4118 ac_status=$?
5213506e
RW
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; }; then
ff66d28f
PE
4121 cross_compiling=no
4122 else
4123 if test "$cross_compiling" = maybe; then
4124 cross_compiling=yes
4125 else
5213506e
RW
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128as_fn_error "cannot run C compiled programs.
ff66d28f 4129If you meant to cross compile, use \`--host'.
5213506e 4130See \`config.log' for more details." "$LINENO" 5; }
b2dad0e3 4131 fi
ff66d28f 4132 fi
b2dad0e3 4133fi
5213506e
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4135$as_echo "yes" >&6; }
ff66d28f 4136
5213506e 4137rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
ff66d28f 4138ac_clean_files=$ac_clean_files_save
5213506e 4139# Check that the compiler produces executables we can run. If not, either
ff66d28f 4140# the compiler is broken, or we cross compile.
5213506e
RW
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4142$as_echo_n "checking whether we are cross compiling... " >&6; }
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4144$as_echo "$cross_compiling" >&6; }
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4147$as_echo_n "checking for suffix of executables... " >&6; }
4148if { { ac_try="$ac_link"
4149case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154$as_echo "$ac_try_echo"; } >&5
4155 (eval "$ac_link") 2>&5
ff66d28f 4156 ac_status=$?
5213506e
RW
4157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158 test $ac_status = 0; }; then :
ff66d28f
PE
4159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4160# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4161# work properly (i.e., refer to `conftest.exe'), while it won't with
4162# `rm'.
4163for ac_file in conftest.exe conftest conftest.*; do
4164 test -f "$ac_file" || continue
4165 case $ac_file in
5213506e 4166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ff66d28f 4167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ec2075e9 4168 break;;
ff66d28f
PE
4169 * ) break;;
4170 esac
4171done
b2dad0e3 4172else
5213506e
RW
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175as_fn_error "cannot compute suffix of executables: cannot compile and link
4176See \`config.log' for more details." "$LINENO" 5; }
b2dad0e3 4177fi
ff66d28f 4178rm -f conftest$ac_cv_exeext
5213506e
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4180$as_echo "$ac_cv_exeext" >&6; }
ff66d28f
PE
4181
4182rm -f conftest.$ac_ext
4183EXEEXT=$ac_cv_exeext
4184ac_exeext=$EXEEXT
3a24bf5d 4185fi
5213506e
RW
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4187$as_echo_n "checking for suffix of object files... " >&6; }
4188if test "${ac_cv_objext+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
ff66d28f 4190else
5213506e 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
4192/* end confdefs.h. */
4193
4194int
4195main ()
4196{
4197
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.o conftest.obj
5213506e
RW
4203if { { ac_try="$ac_compile"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209$as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_compile") 2>&5
4211 ac_status=$?
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; then :
4214 for ac_file in conftest.o conftest.obj conftest.*; do
4215 test -f "$ac_file" || continue;
ff66d28f 4216 case $ac_file in
5213506e 4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ff66d28f
PE
4218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4219 break;;
4220 esac
4221done
b2dad0e3 4222else
5213506e 4223 $as_echo "$as_me: failed program was:" >&5
ff66d28f
PE
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
5213506e
RW
4226{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228as_fn_error "cannot compute suffix of object files: cannot compile
4229See \`config.log' for more details." "$LINENO" 5; }
46840bcd 4230fi
ff66d28f 4231rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 4232fi
5213506e
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4234$as_echo "$ac_cv_objext" >&6; }
ff66d28f
PE
4235OBJEXT=$ac_cv_objext
4236ac_objext=$OBJEXT
5213506e
RW
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4238$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4239if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
ff66d28f 4241else
5213506e 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 4243/* end confdefs.h. */
46840bcd 4244
ff66d28f
PE
4245int
4246main ()
4247{
4248#ifndef __GNUC__
4249 choke me
4250#endif
4251
4252 ;
4253 return 0;
4254}
4255_ACEOF
5213506e 4256if ac_fn_c_try_compile "$LINENO"; then :
ff66d28f
PE
4257 ac_compiler_gnu=yes
4258else
5213506e 4259 ac_compiler_gnu=no
ff66d28f 4260fi
5213506e 4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
4262ac_cv_c_compiler_gnu=$ac_compiler_gnu
4263
4264fi
5213506e
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4266$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4267if test $ac_compiler_gnu = yes; then
4268 GCC=yes
4269else
4270 GCC=
4271fi
ff66d28f
PE
4272ac_test_CFLAGS=${CFLAGS+set}
4273ac_save_CFLAGS=$CFLAGS
5213506e
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275$as_echo_n "checking whether $CC accepts -g... " >&6; }
4276if test "${ac_cv_prog_cc_g+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
ff66d28f 4278else
5213506e
RW
4279 ac_save_c_werror_flag=$ac_c_werror_flag
4280 ac_c_werror_flag=yes
4281 ac_cv_prog_cc_g=no
4282 CFLAGS="-g"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
4284/* end confdefs.h. */
4285
4286int
4287main ()
4288{
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
5213506e 4294if ac_fn_c_try_compile "$LINENO"; then :
ff66d28f 4295 ac_cv_prog_cc_g=yes
b2dad0e3 4296else
5213506e
RW
4297 CFLAGS=""
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h. */
b2dad0e3 4300
5213506e
RW
4301int
4302main ()
4303{
4304
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309if ac_fn_c_try_compile "$LINENO"; then :
4310
4311else
4312 ac_c_werror_flag=$ac_save_c_werror_flag
4313 CFLAGS="-g"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h. */
4316
4317int
4318main ()
4319{
4320
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_g=yes
4327fi
4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b2dad0e3 4329fi
5213506e 4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 4331fi
5213506e
RW
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_c_werror_flag=$ac_save_c_werror_flag
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4336$as_echo "$ac_cv_prog_cc_g" >&6; }
ff66d28f
PE
4337if test "$ac_test_CFLAGS" = set; then
4338 CFLAGS=$ac_save_CFLAGS
4339elif test $ac_cv_prog_cc_g = yes; then
4340 if test "$GCC" = yes; then
4341 CFLAGS="-g -O2"
b2dad0e3 4342 else
ff66d28f 4343 CFLAGS="-g"
b2dad0e3 4344 fi
ff66d28f
PE
4345else
4346 if test "$GCC" = yes; then
4347 CFLAGS="-O2"
4348 else
4349 CFLAGS=
4350 fi
4351fi
5213506e
RW
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4354if test "${ac_cv_prog_cc_c89+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
ff66d28f 4356else
5213506e 4357 ac_cv_prog_cc_c89=no
ff66d28f 4358ac_save_CC=$CC
5213506e 4359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
4360/* end confdefs.h. */
4361#include <stdarg.h>
4362#include <stdio.h>
4363#include <sys/types.h>
4364#include <sys/stat.h>
4365/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4366struct buf { int x; };
4367FILE * (*rcsopen) (struct buf *, struct stat *, int);
4368static char *e (p, i)
4369 char **p;
4370 int i;
4371{
4372 return p[i];
4373}
4374static char *f (char * (*g) (char **, int), char **p, ...)
4375{
4376 char *s;
4377 va_list v;
4378 va_start (v,p);
4379 s = g (p, va_arg (v,int));
4380 va_end (v);
4381 return s;
4382}
ec2075e9
BK
4383
4384/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4385 function prototypes and stuff, but not '\xHH' hex character constants.
4386 These don't provoke an error unfortunately, instead are silently treated
5213506e 4387 as 'x'. The following induces an error, until -std is added to get
ec2075e9
BK
4388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4389 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4390 that's true only with -std. */
ec2075e9
BK
4391int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392
5213506e
RW
4393/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4394 inside strings and character constants. */
4395#define FOO(x) 'x'
4396int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397
ff66d28f
PE
4398int test (int i, double x);
4399struct s1 {int (*f) (int a);};
4400struct s2 {int (*f) (double a);};
4401int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4402int argc;
4403char **argv;
4404int
4405main ()
4406{
4407return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4408 ;
4409 return 0;
4410}
4411_ACEOF
5213506e
RW
4412for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ff66d28f
PE
4414do
4415 CC="$ac_save_CC $ac_arg"
5213506e
RW
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_c89=$ac_arg
b2dad0e3 4418fi
5213506e
RW
4419rm -f core conftest.err conftest.$ac_objext
4420 test "x$ac_cv_prog_cc_c89" != "xno" && break
ff66d28f 4421done
5213506e 4422rm -f conftest.$ac_ext
ff66d28f 4423CC=$ac_save_CC
b2dad0e3 4424
ff66d28f 4425fi
5213506e
RW
4426# AC_CACHE_VAL
4427case "x$ac_cv_prog_cc_c89" in
4428 x)
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4430$as_echo "none needed" >&6; } ;;
4431 xno)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4433$as_echo "unsupported" >&6; } ;;
ff66d28f 4434 *)
5213506e
RW
4435 CC="$CC $ac_cv_prog_cc_c89"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4437$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ff66d28f 4438esac
5213506e 4439if test "x$ac_cv_prog_cc_c89" != xno; then :
b2dad0e3 4440
7eed349e
PC
4441fi
4442
ff66d28f
PE
4443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
5213506e 4449ac_ext=cpp
ff66d28f
PE
4450ac_cpp='$CXXCPP $CPPFLAGS'
4451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4454if test -z "$CXX"; then
4455 if test -n "$CCC"; then
4456 CXX=$CCC
4457 else
4458 if test -n "$ac_tool_prefix"; then
4459 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
ff66d28f
PE
4460 do
4461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464$as_echo_n "checking for $ac_word... " >&6; }
4465if test "${glibcxx_cv_prog_CXX+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
ff66d28f
PE
4467else
4468 if test -n "$CXX"; then
4469 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
5213506e
RW
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 4478 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
4480 break 2
4481 fi
4482done
5213506e
RW
4483 done
4484IFS=$as_save_IFS
ff66d28f
PE
4485
4486fi
4487fi
4488CXX=$glibcxx_cv_prog_CXX
4489if test -n "$CXX"; then
5213506e
RW
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4491$as_echo "$CXX" >&6; }
b2dad0e3 4492else
5213506e
RW
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494$as_echo "no" >&6; }
b2dad0e3 4495fi
b2dad0e3 4496
5213506e 4497
ff66d28f
PE
4498 test -n "$CXX" && break
4499 done
4500fi
4501if test -z "$CXX"; then
4502 ac_ct_CXX=$CXX
5213506e 4503 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
ff66d28f
PE
4504do
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506set dummy $ac_prog; ac_word=$2
5213506e
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508$as_echo_n "checking for $ac_word... " >&6; }
4509if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
ff66d28f
PE
4511else
4512 if test -n "$ac_ct_CXX"; then
4513 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
5213506e
RW
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 4522 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f 4524 break 2
b2dad0e3 4525 fi
ff66d28f 4526done
5213506e
RW
4527 done
4528IFS=$as_save_IFS
ff66d28f 4529
b2dad0e3 4530fi
ff66d28f
PE
4531fi
4532ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4533if test -n "$ac_ct_CXX"; then
5213506e
RW
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4535$as_echo "$ac_ct_CXX" >&6; }
ff66d28f 4536else
5213506e
RW
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
b2dad0e3
BK
4539fi
4540
5213506e 4541
ff66d28f
PE
4542 test -n "$ac_ct_CXX" && break
4543done
ff66d28f 4544
5213506e
RW
4545 if test "x$ac_ct_CXX" = x; then
4546 CXX="g++"
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549yes:)
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552ac_tool_warned=yes ;;
4553esac
4554 CXX=$ac_ct_CXX
4555 fi
ff66d28f
PE
4556fi
4557
5213506e
RW
4558 fi
4559fi
ff66d28f 4560# Provide some information about the compiler.
5213506e
RW
4561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4562set X $ac_compile
4563ac_compiler=$2
4564for ac_option in --version -v -V -qversion; do
4565 { { ac_try="$ac_compiler $ac_option >&5"
4566case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571$as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ff66d28f 4573 ac_status=$?
5213506e
RW
4574 if test -s conftest.err; then
4575 sed '10a\
4576... rest of stderr output deleted ...
4577 10q' conftest.err >conftest.er1
4578 cat conftest.er1 >&5
4579 rm -f conftest.er1 conftest.err
4580 fi
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }
4583done
ff66d28f 4584
5213506e
RW
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4586$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4587if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
ff66d28f 4589else
5213506e 4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
4591/* end confdefs.h. */
4592
4593int
4594main ()
4595{
4596#ifndef __GNUC__
4597 choke me
4598#endif
4599
4600 ;
4601 return 0;
4602}
4603_ACEOF
5213506e 4604if ac_fn_cxx_try_compile "$LINENO"; then :
ff66d28f
PE
4605 ac_compiler_gnu=yes
4606else
5213506e 4607 ac_compiler_gnu=no
ff66d28f 4608fi
5213506e 4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
4610ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4611
4612fi
5213506e
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4614$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4615if test $ac_compiler_gnu = yes; then
4616 GXX=yes
4617else
4618 GXX=
4619fi
ff66d28f
PE
4620ac_test_CXXFLAGS=${CXXFLAGS+set}
4621ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4623$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4624if test "${ac_cv_prog_cxx_g+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
ff66d28f 4626else
5213506e
RW
4627 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4628 ac_cxx_werror_flag=yes
4629 ac_cv_prog_cxx_g=no
4630 CXXFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
4632/* end confdefs.h. */
4633
4634int
4635main ()
4636{
b2dad0e3 4637
ff66d28f
PE
4638 ;
4639 return 0;
4640}
4641_ACEOF
5213506e 4642if ac_fn_cxx_try_compile "$LINENO"; then :
ff66d28f
PE
4643 ac_cv_prog_cxx_g=yes
4644else
5213506e
RW
4645 CXXFLAGS=""
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 4647/* end confdefs.h. */
5213506e 4648
ff66d28f
PE
4649int
4650main ()
4651{
5213506e 4652
ff66d28f
PE
4653 ;
4654 return 0;
4655}
4656_ACEOF
5213506e 4657if ac_fn_cxx_try_compile "$LINENO"; then :
b2dad0e3 4658
5213506e
RW
4659else
4660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4661 CXXFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 4663/* end confdefs.h. */
5213506e 4664
ff66d28f
PE
4665int
4666main ()
4667{
5213506e 4668
ff66d28f
PE
4669 ;
4670 return 0;
4671}
4672_ACEOF
5213506e
RW
4673if ac_fn_cxx_try_compile "$LINENO"; then :
4674 ac_cv_prog_cxx_g=yes
4312e020 4675fi
5213506e
RW
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4684$as_echo "$ac_cv_prog_cxx_g" >&6; }
4685if test "$ac_test_CXXFLAGS" = set; then
4686 CXXFLAGS=$ac_save_CXXFLAGS
4687elif test $ac_cv_prog_cxx_g = yes; then
4688 if test "$GXX" = yes; then
4689 CXXFLAGS="-g -O2"
4690 else
4691 CXXFLAGS="-g"
4692 fi
4693else
4694 if test "$GXX" = yes; then
4695 CXXFLAGS="-O2"
4696 else
4697 CXXFLAGS=
4698 fi
8a165db0 4699fi
ff66d28f
PE
4700ac_ext=c
4701ac_cpp='$CPP $CPPFLAGS'
4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 4705
ae66da3b 4706CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
4707
4708
33590f13 4709
f6dda651 4710
ae66da3b
RW
4711# Runs configure.host, and assorted other critical bits. Sets
4712# up critical shell variables.
4713
4714ac_ext=c
4715ac_cpp='$CPP $CPPFLAGS'
4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4720$as_echo_n "checking how to run the C preprocessor... " >&6; }
ae66da3b
RW
4721# On Suns, sometimes $CPP names a directory.
4722if test -n "$CPP" && test -d "$CPP"; then
4723 CPP=
4724fi
4725if test -z "$CPP"; then
5213506e
RW
4726 if test "${ac_cv_prog_CPP+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
ae66da3b
RW
4728else
4729 # Double quotes because CPP needs to be expanded
4730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4731 do
4732 ac_preproc_ok=false
4733for ac_c_preproc_warn_flag in '' yes
4734do
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
4737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
4739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae66da3b
RW
4742/* end confdefs.h. */
4743#ifdef __STDC__
4744# include <limits.h>
4745#else
4746# include <assert.h>
4747#endif
4748 Syntax error
4749_ACEOF
5213506e 4750if ac_fn_c_try_cpp "$LINENO"; then :
ae66da3b 4751
5213506e 4752else
ae66da3b
RW
4753 # Broken: fails on valid input.
4754continue
4755fi
4756rm -f conftest.err conftest.$ac_ext
4757
5213506e 4758 # OK, works on sane cases. Now check whether nonexistent headers
ae66da3b 4759 # can be detected and how.
5213506e 4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae66da3b
RW
4761/* end confdefs.h. */
4762#include <ac_nonexistent.h>
4763_ACEOF
5213506e 4764if ac_fn_c_try_cpp "$LINENO"; then :
ae66da3b
RW
4765 # Broken: success on invalid input.
4766continue
4767else
ae66da3b
RW
4768 # Passes both tests.
4769ac_preproc_ok=:
4770break
4771fi
4772rm -f conftest.err conftest.$ac_ext
4773
4774done
4775# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776rm -f conftest.err conftest.$ac_ext
5213506e 4777if $ac_preproc_ok; then :
ae66da3b
RW
4778 break
4779fi
4780
4781 done
4782 ac_cv_prog_CPP=$CPP
4783
4784fi
4785 CPP=$ac_cv_prog_CPP
4786else
4787 ac_cv_prog_CPP=$CPP
4788fi
5213506e
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4790$as_echo "$CPP" >&6; }
ae66da3b
RW
4791ac_preproc_ok=false
4792for ac_c_preproc_warn_flag in '' yes
4793do
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae66da3b
RW
4801/* end confdefs.h. */
4802#ifdef __STDC__
4803# include <limits.h>
4804#else
4805# include <assert.h>
4806#endif
4807 Syntax error
4808_ACEOF
5213506e 4809if ac_fn_c_try_cpp "$LINENO"; then :
ae66da3b 4810
5213506e 4811else
ae66da3b
RW
4812 # Broken: fails on valid input.
4813continue
4814fi
4815rm -f conftest.err conftest.$ac_ext
4816
5213506e 4817 # OK, works on sane cases. Now check whether nonexistent headers
ae66da3b 4818 # can be detected and how.
5213506e 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae66da3b
RW
4820/* end confdefs.h. */
4821#include <ac_nonexistent.h>
4822_ACEOF
5213506e 4823if ac_fn_c_try_cpp "$LINENO"; then :
ae66da3b
RW
4824 # Broken: success on invalid input.
4825continue
4826else
ae66da3b
RW
4827 # Passes both tests.
4828ac_preproc_ok=:
4829break
4830fi
4831rm -f conftest.err conftest.$ac_ext
4832
4833done
4834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4835rm -f conftest.err conftest.$ac_ext
5213506e
RW
4836if $ac_preproc_ok; then :
4837
ae66da3b 4838else
5213506e
RW
4839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4841as_fn_error "C preprocessor \"$CPP\" fails sanity check
4842See \`config.log' for more details." "$LINENO" 5; }
ae66da3b
RW
4843fi
4844
4845ac_ext=c
4846ac_cpp='$CPP $CPPFLAGS'
4847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850
4851
5213506e
RW
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4853$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4854if test "${ac_cv_path_GREP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
ae66da3b 4856else
5213506e
RW
4857 if test -z "$GREP"; then
4858 ac_path_GREP_found=false
4859 # Loop through the user's path and test for each of PROGNAME-LIST
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_prog in grep ggrep; do
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4868 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4869# Check for GNU ac_path_GREP and select it if it is found.
4870 # Check for GNU $ac_path_GREP
4871case `"$ac_path_GREP" --version 2>&1` in
4872*GNU*)
4873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4874*)
4875 ac_count=0
4876 $as_echo_n 0123456789 >"conftest.in"
4877 while :
4878 do
4879 cat "conftest.in" "conftest.in" >"conftest.tmp"
4880 mv "conftest.tmp" "conftest.in"
4881 cp "conftest.in" "conftest.nl"
4882 $as_echo 'GREP' >> "conftest.nl"
4883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885 as_fn_arith $ac_count + 1 && ac_count=$as_val
4886 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4887 # Best one so far, save it but keep looking for a better one
4888 ac_cv_path_GREP="$ac_path_GREP"
4889 ac_path_GREP_max=$ac_count
4890 fi
4891 # 10*(2^10) chars as input seems more than enough
4892 test $ac_count -gt 10 && break
4893 done
4894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895esac
4896
4897 $ac_path_GREP_found && break 3
4898 done
4899 done
4900 done
4901IFS=$as_save_IFS
4902 if test -z "$ac_cv_path_GREP"; then
4903 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904 fi
4905else
4906 ac_cv_path_GREP=$GREP
4907fi
4908
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4911$as_echo "$ac_cv_path_GREP" >&6; }
4912 GREP="$ac_cv_path_GREP"
4913
4914
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4916$as_echo_n "checking for egrep... " >&6; }
4917if test "${ac_cv_path_EGREP+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919else
4920 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4921 then ac_cv_path_EGREP="$GREP -E"
4922 else
4923 if test -z "$EGREP"; then
4924 ac_path_EGREP_found=false
4925 # Loop through the user's path and test for each of PROGNAME-LIST
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_prog in egrep; do
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4934 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4935# Check for GNU ac_path_EGREP and select it if it is found.
4936 # Check for GNU $ac_path_EGREP
4937case `"$ac_path_EGREP" --version 2>&1` in
4938*GNU*)
4939 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4940*)
4941 ac_count=0
4942 $as_echo_n 0123456789 >"conftest.in"
4943 while :
4944 do
4945 cat "conftest.in" "conftest.in" >"conftest.tmp"
4946 mv "conftest.tmp" "conftest.in"
4947 cp "conftest.in" "conftest.nl"
4948 $as_echo 'EGREP' >> "conftest.nl"
4949 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951 as_fn_arith $ac_count + 1 && ac_count=$as_val
4952 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4953 # Best one so far, save it but keep looking for a better one
4954 ac_cv_path_EGREP="$ac_path_EGREP"
4955 ac_path_EGREP_max=$ac_count
4956 fi
4957 # 10*(2^10) chars as input seems more than enough
4958 test $ac_count -gt 10 && break
4959 done
4960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961esac
4962
4963 $ac_path_EGREP_found && break 3
4964 done
4965 done
4966 done
4967IFS=$as_save_IFS
4968 if test -z "$ac_cv_path_EGREP"; then
4969 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970 fi
4971else
4972 ac_cv_path_EGREP=$EGREP
ae66da3b 4973fi
5213506e
RW
4974
4975 fi
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4978$as_echo "$ac_cv_path_EGREP" >&6; }
4979 EGREP="$ac_cv_path_EGREP"
ae66da3b
RW
4980
4981
4982
4983 # Keep these sync'd with the list in Makefile.am. The first provides an
4984 # expandable list at autoconf time; the second provides an expandable list
4985 # (i.e., shell variable) at configure time.
4986
4987 SUBDIRS='include libsupc++ python src doc po testsuite'
4988
4989 # These need to be absolute paths, yet at the same time need to
4990 # canonicalize only relative paths, because then amd will not unmount
4991 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4992 glibcxx_builddir=`${PWDCMD-pwd}`
4993 case $srcdir in
4994 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
4995 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4996 esac
4997 toplevel_srcdir=${glibcxx_srcdir}/..
4998
4999
5000
5001
5002 # We use these options to decide which functions to include. They are
5003 # set from the top level.
5004
5213506e
RW
5005# Check whether --with-target-subdir was given.
5006if test "${with_target_subdir+set}" = set; then :
5007 withval=$with_target_subdir;
5008fi
ae66da3b 5009
ae66da3b
RW
5010
5011
5213506e
RW
5012# Check whether --with-cross-host was given.
5013if test "${with_cross_host+set}" = set; then :
5014 withval=$with_cross_host;
5015fi
ae66da3b 5016
ae66da3b
RW
5017
5018
5213506e
RW
5019# Check whether --with-newlib was given.
5020if test "${with_newlib+set}" = set; then :
5021 withval=$with_newlib;
5022fi
ae66da3b 5023
ae66da3b 5024
ff66d28f
PE
5025 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
5026 # available). Uncomment the next line to force a particular method.
5213506e
RW
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5028$as_echo_n "checking whether ln -s works... " >&6; }
ff66d28f
PE
5029LN_S=$as_ln_s
5030if test "$LN_S" = "ln -s"; then
5213506e
RW
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032$as_echo "yes" >&6; }
2f235b6d 5033else
5213506e
RW
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5035$as_echo "no, using $LN_S" >&6; }
2f235b6d 5036fi
2f235b6d 5037
ff66d28f 5038 #LN_S='cp -p'
2f235b6d 5039
ff66d28f
PE
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5042set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if test "${ac_cv_prog_AS+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
2f235b6d 5047else
ff66d28f
PE
5048 if test -n "$AS"; then
5049 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 5050else
ff66d28f
PE
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5213506e
RW
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 5058 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
5060 break 2
5061 fi
5062done
5213506e
RW
5063 done
5064IFS=$as_save_IFS
ff66d28f 5065
2f235b6d 5066fi
2f235b6d 5067fi
ff66d28f
PE
5068AS=$ac_cv_prog_AS
5069if test -n "$AS"; then
5213506e
RW
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5071$as_echo "$AS" >&6; }
2f235b6d 5072else
5213506e
RW
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
2f235b6d
PE
5075fi
5076
5213506e 5077
ff66d28f
PE
5078fi
5079if test -z "$ac_cv_prog_AS"; then
5080 ac_ct_AS=$AS
5081 # Extract the first word of "as", so it can be a program name with args.
5082set dummy as; ac_word=$2
5213506e
RW
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
ff66d28f
PE
5087else
5088 if test -n "$ac_ct_AS"; then
5089 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5213506e
RW
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 5098 ac_cv_prog_ac_ct_AS="as"
5213506e 5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
5100 break 2
5101 fi
5102done
5213506e
RW
5103 done
5104IFS=$as_save_IFS
2f235b6d 5105
ff66d28f
PE
5106fi
5107fi
5108ac_ct_AS=$ac_cv_prog_ac_ct_AS
5109if test -n "$ac_ct_AS"; then
5213506e
RW
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5111$as_echo "$ac_ct_AS" >&6; }
ff66d28f 5112else
5213506e
RW
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
ff66d28f 5115fi
2f235b6d 5116
5213506e
RW
5117 if test "x$ac_ct_AS" = x; then
5118 AS=""
5119 else
5120 case $cross_compiling:$ac_tool_warned in
5121yes:)
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124ac_tool_warned=yes ;;
5125esac
5126 AS=$ac_ct_AS
5127 fi
ff66d28f
PE
5128else
5129 AS="$ac_cv_prog_AS"
2f235b6d 5130fi
2f235b6d 5131
ff66d28f
PE
5132 if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5134set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if test "${ac_cv_prog_AR+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
ff66d28f
PE
5139else
5140 if test -n "$AR"; then
5141 ac_cv_prog_AR="$AR" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5213506e
RW
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 5150 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
5152 break 2
5153 fi
5154done
5213506e
RW
5155 done
5156IFS=$as_save_IFS
2f235b6d 5157
ff66d28f
PE
5158fi
5159fi
5160AR=$ac_cv_prog_AR
5161if test -n "$AR"; then
5213506e
RW
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5163$as_echo "$AR" >&6; }
ff66d28f 5164else
5213506e
RW
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
ff66d28f 5167fi
2f235b6d 5168
5213506e 5169
ff66d28f
PE
5170fi
5171if test -z "$ac_cv_prog_AR"; then
5172 ac_ct_AR=$AR
5173 # Extract the first word of "ar", so it can be a program name with args.
5174set dummy ar; ac_word=$2
5213506e
RW
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
5177if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
ff66d28f
PE
5179else
5180 if test -n "$ac_ct_AR"; then
5181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5213506e
RW
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 5190 ac_cv_prog_ac_ct_AR="ar"
5213506e 5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
5192 break 2
5193 fi
5194done
5213506e
RW
5195 done
5196IFS=$as_save_IFS
2f235b6d 5197
ff66d28f
PE
5198fi
5199fi
5200ac_ct_AR=$ac_cv_prog_ac_ct_AR
5201if test -n "$ac_ct_AR"; then
5213506e
RW
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5203$as_echo "$ac_ct_AR" >&6; }
2f235b6d 5204else
5213506e
RW
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
2f235b6d
PE
5207fi
5208
5213506e
RW
5209 if test "x$ac_ct_AR" = x; then
5210 AR=""
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216ac_tool_warned=yes ;;
5217esac
5218 AR=$ac_ct_AR
5219 fi
2f235b6d 5220else
ff66d28f 5221 AR="$ac_cv_prog_AR"
2f235b6d
PE
5222fi
5223
ff66d28f
PE
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5226set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228$as_echo_n "checking for $ac_word... " >&6; }
5229if test "${ac_cv_prog_RANLIB+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
ff66d28f
PE
5231else
5232 if test -n "$RANLIB"; then
5233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5213506e
RW
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 5242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
5244 break 2
5245 fi
5246done
5213506e
RW
5247 done
5248IFS=$as_save_IFS
ff66d28f
PE
5249
5250fi
5251fi
5252RANLIB=$ac_cv_prog_RANLIB
5253if test -n "$RANLIB"; then
5213506e
RW
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5255$as_echo "$RANLIB" >&6; }
2f235b6d 5256else
5213506e
RW
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
2f235b6d
PE
5259fi
5260
5213506e 5261
ff66d28f
PE
5262fi
5263if test -z "$ac_cv_prog_RANLIB"; then
5264 ac_ct_RANLIB=$RANLIB
5265 # Extract the first word of "ranlib", so it can be a program name with args.
5266set dummy ranlib; ac_word=$2
5213506e
RW
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268$as_echo_n "checking for $ac_word... " >&6; }
5269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
ff66d28f
PE
5271else
5272 if test -n "$ac_ct_RANLIB"; then
5273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 5274else
ff66d28f
PE
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5213506e
RW
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 5282 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
5284 break 2
5285 fi
5286done
5213506e
RW
5287 done
5288IFS=$as_save_IFS
ff66d28f 5289
ff66d28f
PE
5290fi
5291fi
5292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5293if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5295$as_echo "$ac_ct_RANLIB" >&6; }
ff66d28f 5296else
5213506e
RW
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
2f235b6d
PE
5299fi
5300
5213506e
RW
5301 if test "x$ac_ct_RANLIB" = x; then
5302 RANLIB="ranlib-not-found-in-path-error"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305yes:)
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308ac_tool_warned=yes ;;
5309esac
5310 RANLIB=$ac_ct_RANLIB
5311 fi
2f235b6d 5312else
ff66d28f 5313 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
5314fi
5315
5316
5213506e
RW
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5319$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5320 # Check whether --enable-maintainer-mode was given.
5321if test "${enable_maintainer_mode+set}" = set; then :
5322 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ff66d28f
PE
5323else
5324 USE_MAINTAINER_MODE=no
5213506e 5325fi
7eed349e 5326
5213506e
RW
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5328$as_echo "$USE_MAINTAINER_MODE" >&6; }
5329 if test $USE_MAINTAINER_MODE = yes; then
ff66d28f
PE
5330 MAINTAINER_MODE_TRUE=
5331 MAINTAINER_MODE_FALSE='#'
5332else
5333 MAINTAINER_MODE_TRUE='#'
5334 MAINTAINER_MODE_FALSE=
5335fi
5336
5337 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 5338
5780a46b 5339
f4c79fef 5340
92eabea2
PE
5341 # Set up safe default values for all subsequent AM_CONDITIONAL tests
5342 # which are themselves conditionally expanded.
5343 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
5344 ## other macros from doing the same. This should be automated.) -pme
ff66d28f 5345
464aea98
JM
5346 # Check for uClibc since Linux platforms use different configuration
5347 # directories depending on the C library in use.
5213506e 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
464aea98
JM
5349/* end confdefs.h. */
5350
5351 #include <stdio.h>
5352 #if __UCLIBC__
5353 _using_uclibc
5354 #endif
5355
5356_ACEOF
5357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 5358 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
464aea98
JM
5359 uclibc=yes
5360else
5361 uclibc=no
5362fi
5363rm -f conftest*
5364
5365
ff66d28f
PE
5366 # Find platform-specific directories containing configuration info.
5367 # Also possibly modify flags used elsewhere, as needed by the platform.
5368
5369 . $glibcxx_srcdir/configure.host
5213506e
RW
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
5371$as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
5373$as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
ff66d28f
PE
5374
5375
5376
be95b355
BS
5377if test "x${with_newlib}" != "xyes"; then
5378 enable_dlopen=yes
1cf3d07d
SE
5379
5380
5381
be95b355 5382fi
25e5de9a
PG
5383case `pwd` in
5384 *\ * | *\ *)
5213506e
RW
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5386$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
25e5de9a 5387esac
1cf3d07d
SE
5388
5389
5390
25e5de9a
PG
5391macro_version='2.2.6'
5392macro_revision='1.3012'
1cf3d07d 5393
1cf3d07d
SE
5394
5395
5396
5397
5398
5399
5400
1cf3d07d
SE
5401
5402
5403
5404
5405
25e5de9a 5406ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 5407
5213506e
RW
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5409$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5410if test "${ac_cv_path_SED+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412else
5413 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5414 for ac_i in 1 2 3 4 5 6 7; do
5415 ac_script="$ac_script$as_nl$ac_script"
5416 done
5417 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5418 { ac_script=; unset ac_script;}
5419 if test -z "$SED"; then
5420 ac_path_SED_found=false
5421 # Loop through the user's path and test for each of PROGNAME-LIST
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5213506e 5427 for ac_prog in sed gsed; do
7eed349e 5428 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
5429 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5430 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5431# Check for GNU ac_path_SED and select it if it is found.
5432 # Check for GNU $ac_path_SED
5433case `"$ac_path_SED" --version 2>&1` in
5434*GNU*)
5435 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5436*)
5437 ac_count=0
5438 $as_echo_n 0123456789 >"conftest.in"
5439 while :
5440 do
5441 cat "conftest.in" "conftest.in" >"conftest.tmp"
5442 mv "conftest.tmp" "conftest.in"
5443 cp "conftest.in" "conftest.nl"
5444 $as_echo '' >> "conftest.nl"
5445 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447 as_fn_arith $ac_count + 1 && ac_count=$as_val
5448 if test $ac_count -gt ${ac_path_SED_max-0}; then
5449 # Best one so far, save it but keep looking for a better one
5450 ac_cv_path_SED="$ac_path_SED"
5451 ac_path_SED_max=$ac_count
5452 fi
5453 # 10*(2^10) chars as input seems more than enough
5454 test $ac_count -gt 10 && break
5455 done
5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457esac
5458
5459 $ac_path_SED_found && break 3
7eed349e 5460 done
8a165db0 5461 done
5213506e 5462 done
8a165db0 5463IFS=$as_save_IFS
5213506e
RW
5464 if test -z "$ac_cv_path_SED"; then
5465 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7eed349e 5466 fi
5213506e
RW
5467else
5468 ac_cv_path_SED=$SED
1cf3d07d
SE
5469fi
5470
5213506e
RW
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5473$as_echo "$ac_cv_path_SED" >&6; }
5474 SED="$ac_cv_path_SED"
5475 rm -f conftest.sed
1cf3d07d
SE
5476
5477test -z "$SED" && SED=sed
5478Xsed="$SED -e 1s/^X//"
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5213506e
RW
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5491$as_echo_n "checking for fgrep... " >&6; }
5492if test "${ac_cv_path_FGREP+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
1cf3d07d 5494else
5213506e
RW
5495 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5496 then ac_cv_path_FGREP="$GREP -F"
5497 else
5498 if test -z "$FGREP"; then
5499 ac_path_FGREP_found=false
5500 # Loop through the user's path and test for each of PROGNAME-LIST
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_prog in fgrep; do
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5509 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5510# Check for GNU ac_path_FGREP and select it if it is found.
5511 # Check for GNU $ac_path_FGREP
5512case `"$ac_path_FGREP" --version 2>&1` in
5513*GNU*)
5514 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5515*)
5516 ac_count=0
5517 $as_echo_n 0123456789 >"conftest.in"
5518 while :
5519 do
5520 cat "conftest.in" "conftest.in" >"conftest.tmp"
5521 mv "conftest.tmp" "conftest.in"
5522 cp "conftest.in" "conftest.nl"
5523 $as_echo 'FGREP' >> "conftest.nl"
5524 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5526 as_fn_arith $ac_count + 1 && ac_count=$as_val
5527 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5528 # Best one so far, save it but keep looking for a better one
5529 ac_cv_path_FGREP="$ac_path_FGREP"
5530 ac_path_FGREP_max=$ac_count
5531 fi
5532 # 10*(2^10) chars as input seems more than enough
5533 test $ac_count -gt 10 && break
5534 done
5535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5536esac
5537
5538 $ac_path_FGREP_found && break 3
5539 done
5540 done
5541 done
5542IFS=$as_save_IFS
5543 if test -z "$ac_cv_path_FGREP"; then
5544 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5545 fi
5546else
5547 ac_cv_path_FGREP=$FGREP
5548fi
5549
5550 fi
1cf3d07d 5551fi
5213506e
RW
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5553$as_echo "$ac_cv_path_FGREP" >&6; }
5554 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
5555
5556
5557test -z "$GREP" && GREP=grep
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5213506e
RW
5577# Check whether --with-gnu-ld was given.
5578if test "${with_gnu_ld+set}" = set; then :
5579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
b2dad0e3
BK
5580else
5581 with_gnu_ld=no
5213506e
RW
5582fi
5583
b2dad0e3 5584ac_prog=ld
c21b6f87 5585if test "$GCC" = yes; then
b2dad0e3 5586 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5588$as_echo_n "checking for ld used by $CC... " >&6; }
3df64633
AO
5589 case $host in
5590 *-*-mingw*)
5591 # gcc leaves a trailing carriage return which upsets mingw
5592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5593 *)
5594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5595 esac
c21b6f87 5596 case $ac_prog in
b2dad0e3 5597 # Accept absolute paths.
1cf3d07d 5598 [\\/]* | ?:[\\/]*)
b2dad0e3 5599 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5600 # Canonicalize the pathname of ld
5601 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5602 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5603 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b2dad0e3
BK
5604 done
5605 test -z "$LD" && LD="$ac_prog"
5606 ;;
5607 "")
5608 # If it fails, then pretend we aren't using GCC.
5609 ac_prog=ld
5610 ;;
5611 *)
5612 # If it is relative, then search for the first ld in PATH.
5613 with_gnu_ld=unknown
5614 ;;
5615 esac
5616elif test "$with_gnu_ld" = yes; then
5213506e
RW
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5618$as_echo_n "checking for GNU ld... " >&6; }
b2dad0e3 5619else
5213506e
RW
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5621$as_echo_n "checking for non-GNU ld... " >&6; }
b2dad0e3 5622fi
5213506e
RW
5623if test "${lt_cv_path_LD+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
b2dad0e3
BK
5625else
5626 if test -z "$LD"; then
1cf3d07d 5627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
b2dad0e3 5628 for ac_dir in $PATH; do
1cf3d07d 5629 IFS="$lt_save_ifs"
b2dad0e3 5630 test -z "$ac_dir" && ac_dir=.
3840fa2a 5631 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 5632 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3 5633 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5634 # but apparently some variants of GNU ld only accept -v.
b2dad0e3 5635 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5636 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5637 *GNU* | *'with BFD'*)
b2dad0e3 5638 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5639 ;;
5640 *)
b2dad0e3 5641 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5642 ;;
5643 esac
b2dad0e3
BK
5644 fi
5645 done
1cf3d07d 5646 IFS="$lt_save_ifs"
b2dad0e3 5647else
c21b6f87 5648 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
5649fi
5650fi
5651
c21b6f87 5652LD="$lt_cv_path_LD"
b2dad0e3 5653if test -n "$LD"; then
5213506e
RW
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5655$as_echo "$LD" >&6; }
b2dad0e3 5656else
5213506e
RW
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
b2dad0e3 5659fi
5213506e
RW
5660test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5662$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5663if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
b2dad0e3 5665else
1cf3d07d
SE
5666 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5667case `$LD -v 2>&1 </dev/null` in
5668*GNU* | *'with BFD'*)
c21b6f87 5669 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5670 ;;
5671*)
c21b6f87 5672 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5673 ;;
5674esac
b2dad0e3 5675fi
5213506e
RW
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5677$as_echo "$lt_cv_prog_gnu_ld" >&6; }
c21b6f87 5678with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 5679
b2dad0e3
BK
5680
5681
1cf3d07d
SE
5682
5683
5684
5685
5686
5687
5213506e
RW
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5689$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5690if test "${lt_cv_path_NM+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
b2dad0e3
BK
5692else
5693 if test -n "$NM"; then
5694 # Let the user override the test.
c21b6f87 5695 lt_cv_path_NM="$NM"
b2dad0e3 5696else
1cf3d07d
SE
5697 lt_nm_to_check="${ac_tool_prefix}nm"
5698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5699 lt_nm_to_check="$lt_nm_to_check nm"
5700 fi
5701 for lt_tmp_nm in $lt_nm_to_check; do
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5704 IFS="$lt_save_ifs"
5705 test -z "$ac_dir" && ac_dir=.
5706 tmp_nm="$ac_dir/$lt_tmp_nm"
5707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5708 # Check to see if the nm accepts a BSD-compat flag.
5709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5710 # nm: unknown option "B" ignored
5711 # Tru64's nm complains that /dev/null is an invalid object file
5712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5713 */dev/null* | *'Invalid file or object type'*)
5714 lt_cv_path_NM="$tmp_nm -B"
5715 break
5716 ;;
5717 *)
5718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5719 */dev/null*)
5720 lt_cv_path_NM="$tmp_nm -p"
5721 break
5722 ;;
5723 *)
5724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5725 continue # so that we can try to find one that supports BSD flags
5726 ;;
5727 esac
5728 ;;
5729 esac
b2dad0e3 5730 fi
1cf3d07d
SE
5731 done
5732 IFS="$lt_save_ifs"
b2dad0e3 5733 done
1cf3d07d 5734 : ${lt_cv_path_NM=no}
b2dad0e3
BK
5735fi
5736fi
5213506e
RW
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5738$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
5739if test "$lt_cv_path_NM" != "no"; then
5740 NM="$lt_cv_path_NM"
5741else
5742 # Didn't find any BSD compatible name lister, look for dumpbin.
5743 if test -n "$ac_tool_prefix"; then
5744 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5745 do
5746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749$as_echo_n "checking for $ac_word... " >&6; }
5750if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
3df64633 5752else
1cf3d07d
SE
5753 if test -n "$DUMPBIN"; then
5754 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5213506e
RW
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5763 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5765 break 2
5766 fi
5767done
5213506e
RW
5768 done
5769IFS=$as_save_IFS
3df64633 5770
1cf3d07d
SE
5771fi
5772fi
5773DUMPBIN=$ac_cv_prog_DUMPBIN
5774if test -n "$DUMPBIN"; then
5213506e
RW
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5776$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5777else
5213506e
RW
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
1cf3d07d 5780fi
c21b6f87 5781
5213506e 5782
1cf3d07d
SE
5783 test -n "$DUMPBIN" && break
5784 done
5785fi
5786if test -z "$DUMPBIN"; then
5787 ac_ct_DUMPBIN=$DUMPBIN
5788 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5789do
5790 # Extract the first word of "$ac_prog", so it can be a program name with args.
5791set dummy $ac_prog; ac_word=$2
5213506e
RW
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5796else
5797 if test -n "$ac_ct_DUMPBIN"; then
5798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5213506e
RW
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5809 break 2
3df64633 5810 fi
1cf3d07d 5811done
5213506e
RW
5812 done
5813IFS=$as_save_IFS
3df64633 5814
1cf3d07d
SE
5815fi
5816fi
5817ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5818if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5820$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5821else
5213506e
RW
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
1cf3d07d 5824fi
3df64633 5825
5213506e 5826
1cf3d07d
SE
5827 test -n "$ac_ct_DUMPBIN" && break
5828done
3df64633 5829
5213506e
RW
5830 if test "x$ac_ct_DUMPBIN" = x; then
5831 DUMPBIN=":"
5832 else
5833 case $cross_compiling:$ac_tool_warned in
5834yes:)
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837ac_tool_warned=yes ;;
5838esac
5839 DUMPBIN=$ac_ct_DUMPBIN
5840 fi
1cf3d07d 5841fi
3df64633 5842
3df64633 5843
1cf3d07d
SE
5844 if test "$DUMPBIN" != ":"; then
5845 NM="$DUMPBIN"
3df64633 5846 fi
1cf3d07d
SE
5847fi
5848test -z "$NM" && NM=nm
3df64633 5849
3df64633 5850
3df64633 5851
3df64633 5852
bfa1e6b1 5853
3df64633 5854
5213506e
RW
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5856$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5857if test "${lt_cv_nm_interface+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5859else
5860 lt_cv_nm_interface="BSD nm"
5861 echo "int some_variable = 0;" > conftest.$ac_ext
5213506e 5862 (eval echo "\"\$as_me:5862: $ac_compile\"" >&5)
1cf3d07d
SE
5863 (eval "$ac_compile" 2>conftest.err)
5864 cat conftest.err >&5
5213506e 5865 (eval echo "\"\$as_me:5865: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5866 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5867 cat conftest.err >&5
5213506e 5868 (eval echo "\"\$as_me:5868: output\"" >&5)
1cf3d07d
SE
5869 cat conftest.out >&5
5870 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5871 lt_cv_nm_interface="MS dumpbin"
5872 fi
5873 rm -f conftest*
3df64633 5874fi
5213506e
RW
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5876$as_echo "$lt_cv_nm_interface" >&6; }
3df64633 5877
6dab073b 5878# find the maximum length of command line arguments
5213506e
RW
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5880$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5881if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
6dab073b
MS
5883else
5884 i=0
5885 teststring="ABCD"
5886
5887 case $build_os in
5888 msdosdjgpp*)
5889 # On DJGPP, this test can blow up pretty badly due to problems in libc
5890 # (any single argument exceeding 2000 bytes causes a buffer overrun
5891 # during glob expansion). Even if it were fixed, the result of this
5892 # check would be larger than it should be.
5893 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5894 ;;
5895
1cf3d07d
SE
5896 gnu*)
5897 # Under GNU Hurd, this test is not required because there is
5898 # no limit to the length of command line arguments.
5899 # Libtool will interpret -1 as no limit whatsoever
5900 lt_cv_sys_max_cmd_len=-1;
5901 ;;
5902
25e5de9a 5903 cygwin* | mingw* | cegcc*)
6dab073b
MS
5904 # On Win9x/ME, this test blows up -- it succeeds, but takes
5905 # about 5 minutes as the teststring grows exponentially.
5906 # Worse, since 9x/ME are not pre-emptively multitasking,
5907 # you end up with a "frozen" computer, even though with patience
5908 # the test eventually succeeds (with a max line length of 256k).
5909 # Instead, let's just punt: use the minimum linelength reported by
5910 # all of the supported platforms: 8192 (on NT/2K/XP).
5911 lt_cv_sys_max_cmd_len=8192;
5912 ;;
5913
5914 amigaos*)
5915 # On AmigaOS with pdksh, this test takes hours, literally.
5916 # So we just punt and use a minimum line length of 8192.
5917 lt_cv_sys_max_cmd_len=8192;
5918 ;;
5919
5920 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5921 # This has been around since 386BSD, at least. Likely further.
5922 if test -x /sbin/sysctl; then
5923 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5924 elif test -x /usr/sbin/sysctl; then
5925 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5926 else
1cf3d07d 5927 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5928 fi
5929 # And add a safety zone
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932 ;;
1cf3d07d
SE
5933
5934 interix*)
5935 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5936 lt_cv_sys_max_cmd_len=196608
5937 ;;
5938
5939 osf*)
5940 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5941 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5942 # nice to cause kernel panics so lets avoid the loop below.
5943 # First set a reasonable default.
5944 lt_cv_sys_max_cmd_len=16384
5945 #
5946 if test -x /sbin/sysconfig; then
5947 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5948 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5949 esac
5950 fi
5951 ;;
5952 sco3.2v5*)
5953 lt_cv_sys_max_cmd_len=102400
5954 ;;
5955 sysv5* | sco5v6* | sysv4.2uw2*)
5956 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5957 if test -n "$kargmax"; then
5958 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5959 else
5960 lt_cv_sys_max_cmd_len=32768
5961 fi
5962 ;;
5963 *)
25e5de9a
PG
5964 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5965 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5968 else
5969 # Make teststring a little bigger before we do anything with it.
5970 # a 1K string should be a reasonable start.
5971 for i in 1 2 3 4 5 6 7 8 ; do
5972 teststring=$teststring$teststring
5973 done
5974 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5975 # If test is not a shell built-in, we'll probably end up computing a
5976 # maximum length that is only half of the actual maximum length, but
5977 # we can't tell.
5978 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5979 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5980 test $i != 17 # 1/2 MB should be enough
5981 do
5982 i=`expr $i + 1`
5983 teststring=$teststring$teststring
5984 done
5985 # Only check the string length outside the loop.
5986 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5987 teststring=
5988 # Add a significant safety factor because C++ compilers can tack on
5989 # massive amounts of additional arguments before passing them to the
5990 # linker. It appears as though 1/2 is a usable value.
5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5992 fi
1cf3d07d 5993 ;;
6dab073b
MS
5994 esac
5995
5996fi
5997
1cf3d07d 5998if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6000$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 6001else
5213506e
RW
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6003$as_echo "none" >&6; }
6dab073b 6004fi
1cf3d07d 6005max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
6006
6007
1cf3d07d
SE
6008
6009
6010
6011
1cf3d07d
SE
6012: ${CP="cp -f"}
6013: ${MV="mv -f"}
6014: ${RM="rm -f"}
6015
5213506e
RW
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6017$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
6018# Try some XSI features
6019xsi_shell=no
6020( _lt_dummy="a/b/c"
6021 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
25e5de9a
PG
6022 = c,a/b,, \
6023 && eval 'test $(( 1 + 1 )) -eq 2 \
6024 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 6025 && xsi_shell=yes
5213506e
RW
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6027$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
6028
6029
5213506e
RW
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6031$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
6032lt_shell_append=no
6033( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6034 >/dev/null 2>&1 \
6035 && lt_shell_append=yes
5213506e
RW
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6037$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
6038
6039
6040if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6041 lt_unset=unset
3df64633 6042else
1cf3d07d
SE
6043 lt_unset=false
6044fi
3df64633 6045
3df64633 6046
1cf3d07d
SE
6047
6048
6049
6050# test EBCDIC or ASCII
6051case `echo X|tr X '\101'` in
6052 A) # ASCII based system
6053 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6054 lt_SP2NL='tr \040 \012'
6055 lt_NL2SP='tr \015\012 \040\040'
6056 ;;
6057 *) # EBCDIC based system
6058 lt_SP2NL='tr \100 \n'
6059 lt_NL2SP='tr \r\n \100\100'
3df64633
AO
6060 ;;
6061esac
3df64633 6062
1cf3d07d
SE
6063
6064
6065
6066
6067
6068
6069
6070
5213506e
RW
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6072$as_echo_n "checking for $LD option to reload object files... " >&6; }
6073if test "${lt_cv_ld_reload_flag+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
3df64633 6075else
1cf3d07d 6076 lt_cv_ld_reload_flag='-r'
3df64633 6077fi
5213506e
RW
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6079$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
6080reload_flag=$lt_cv_ld_reload_flag
6081case $reload_flag in
6082"" | " "*) ;;
6083*) reload_flag=" $reload_flag" ;;
6084esac
6085reload_cmds='$LD$reload_flag -o $output$reload_objs'
6086case $host_os in
6087 darwin*)
6088 if test "$GCC" = yes; then
6089 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6090 else
6091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6092 fi
6093 ;;
6094esac
3df64633 6095
1cf3d07d
SE
6096
6097
6098
6099
6100
6101
6102
6103
25e5de9a
PG
6104if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6106set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
25e5de9a
PG
6111else
6112 if test -n "$OBJDUMP"; then
6113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
5213506e
RW
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 6122 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
6124 break 2
6125 fi
6126done
5213506e
RW
6127 done
6128IFS=$as_save_IFS
25e5de9a
PG
6129
6130fi
6131fi
6132OBJDUMP=$ac_cv_prog_OBJDUMP
6133if test -n "$OBJDUMP"; then
5213506e
RW
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6135$as_echo "$OBJDUMP" >&6; }
25e5de9a 6136else
5213506e
RW
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
25e5de9a
PG
6139fi
6140
5213506e 6141
25e5de9a
PG
6142fi
6143if test -z "$ac_cv_prog_OBJDUMP"; then
6144 ac_ct_OBJDUMP=$OBJDUMP
6145 # Extract the first word of "objdump", so it can be a program name with args.
6146set dummy objdump; ac_word=$2
5213506e
RW
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
25e5de9a
PG
6151else
6152 if test -n "$ac_ct_OBJDUMP"; then
6153 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
5213506e
RW
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 6162 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
6164 break 2
6165 fi
6166done
5213506e
RW
6167 done
6168IFS=$as_save_IFS
25e5de9a 6169
25e5de9a
PG
6170fi
6171fi
6172ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6173if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6175$as_echo "$ac_ct_OBJDUMP" >&6; }
25e5de9a 6176else
5213506e
RW
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178$as_echo "no" >&6; }
25e5de9a
PG
6179fi
6180
5213506e
RW
6181 if test "x$ac_ct_OBJDUMP" = x; then
6182 OBJDUMP="false"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185yes:)
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188ac_tool_warned=yes ;;
6189esac
6190 OBJDUMP=$ac_ct_OBJDUMP
6191 fi
25e5de9a
PG
6192else
6193 OBJDUMP="$ac_cv_prog_OBJDUMP"
6194fi
6195
6196test -z "$OBJDUMP" && OBJDUMP=objdump
6197
6198
6199
6200
6201
6202
6203
6204
1cf3d07d 6205
5213506e
RW
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6207$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6208if test "${lt_cv_deplibs_check_method+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
3df64633 6210else
1cf3d07d
SE
6211 lt_cv_file_magic_cmd='$MAGIC_CMD'
6212lt_cv_file_magic_test_file=
6213lt_cv_deplibs_check_method='unknown'
6214# Need to set the preceding variable on all platforms that support
6215# interlibrary dependencies.
6216# 'none' -- dependencies not supported.
6217# `unknown' -- same as none, but documents that we really don't know.
6218# 'pass_all' -- all dependencies passed with no checks.
6219# 'test_compile' -- check by making test program.
6220# 'file_magic [[regex]]' -- check by looking for files in library path
6221# which responds to the $file_magic_cmd with a given extended regex.
6222# If you have `file' or equivalent on your system and you're not sure
6223# whether `pass_all' will *always* work, you probably want this one.
6224
6225case $host_os in
716e4bc6 6226aix[4-9]*)
1cf3d07d
SE
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229
6230beos*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234bsdi[45]*)
6235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6236 lt_cv_file_magic_cmd='/usr/bin/file -L'
6237 lt_cv_file_magic_test_file=/shlib/libc.so
6238 ;;
6239
6240cygwin*)
6241 # func_win32_libid is a shell function defined in ltmain.sh
6242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6243 lt_cv_file_magic_cmd='func_win32_libid'
6244 ;;
6245
6246mingw* | pw32*)
6247 # Base MSYS/MinGW do not provide the 'file' command needed by
6248 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6249 # unless we find 'file', for example because we are cross-compiling.
6250 if ( file / ) >/dev/null 2>&1; then
6251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6252 lt_cv_file_magic_cmd='func_win32_libid'
6253 else
6254 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6255 lt_cv_file_magic_cmd='$OBJDUMP -f'
6256 fi
6257 ;;
6258
25e5de9a
PG
6259cegcc)
6260 # use the weaker test based on 'objdump'. See mingw*.
6261 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6262 lt_cv_file_magic_cmd='$OBJDUMP -f'
6263 ;;
6264
1cf3d07d
SE
6265darwin* | rhapsody*)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268
6269freebsd* | dragonfly*)
6270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6271 case $host_cpu in
6272 i*86 )
6273 # Not sure whether the presence of OpenBSD here was a mistake.
6274 # Let's accept both of them until this is cleared up.
6275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6276 lt_cv_file_magic_cmd=/usr/bin/file
6277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6278 ;;
6279 esac
6280 else
6281 lt_cv_deplibs_check_method=pass_all
6282 fi
3df64633 6283 ;;
1cf3d07d
SE
6284
6285gnu*)
6286 lt_cv_deplibs_check_method=pass_all
3df64633 6287 ;;
1cf3d07d
SE
6288
6289hpux10.20* | hpux11*)
6290 lt_cv_file_magic_cmd=/usr/bin/file
6291 case $host_cpu in
6292 ia64*)
6293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6295 ;;
6296 hppa*64*)
6297 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]'
6298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6299 ;;
3df64633 6300 *)
1cf3d07d
SE
6301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6303 ;;
6304 esac
6305 ;;
3df64633 6306
1cf3d07d
SE
6307interix[3-9]*)
6308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6310 ;;
3df64633 6311
1cf3d07d
SE
6312irix5* | irix6* | nonstopux*)
6313 case $LD in
6314 *-32|*"-32 ") libmagic=32-bit;;
6315 *-n32|*"-n32 ") libmagic=N32;;
6316 *-64|*"-64 ") libmagic=64-bit;;
6317 *) libmagic=never-match;;
6318 esac
6319 lt_cv_deplibs_check_method=pass_all
3df64633 6320 ;;
3df64633 6321
1cf3d07d 6322# This must be Linux ELF.
7a9d3fe8 6323linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
3df64633 6326
1cf3d07d
SE
6327netbsd*)
6328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633 6330 else
1cf3d07d 6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3df64633 6332 fi
1cf3d07d
SE
6333 ;;
6334
6335newos6*)
6336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339 ;;
6340
6341*nto* | *qnx*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
3df64633 6344
1cf3d07d
SE
6345openbsd*)
6346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6348 else
6349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633
AO
6350 fi
6351 ;;
1cf3d07d
SE
6352
6353osf3* | osf4* | osf5*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357rdos*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
6360
6361solaris*)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364
6365sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369sysv4 | sysv4.3*)
6370 case $host_vendor in
6371 motorola)
6372 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]'
6373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6374 ;;
6375 ncr)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378 sequent)
6379 lt_cv_file_magic_cmd='/bin/file'
6380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6381 ;;
6382 sni)
6383 lt_cv_file_magic_cmd='/bin/file'
6384 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6385 lt_cv_file_magic_test_file=/lib/libc.so
6386 ;;
6387 siemens)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390 pc)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393 esac
6394 ;;
6395
6396tpf*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
3df64633
AO
6399esac
6400
1cf3d07d 6401fi
5213506e
RW
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6403$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
6404file_magic_cmd=$lt_cv_file_magic_cmd
6405deplibs_check_method=$lt_cv_deplibs_check_method
6406test -z "$deplibs_check_method" && deplibs_check_method=unknown
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
ff66d28f 6419if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
6420 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6421set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423$as_echo_n "checking for $ac_word... " >&6; }
6424if test "${ac_cv_prog_AR+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
3df64633 6426else
1cf3d07d
SE
6427 if test -n "$AR"; then
6428 ac_cv_prog_AR="$AR" # Let the user override the test.
3df64633 6429else
ff66d28f
PE
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
5213506e
RW
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6437 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
6439 break 2
6440 fi
6441done
5213506e
RW
6442 done
6443IFS=$as_save_IFS
ff66d28f 6444
3df64633
AO
6445fi
6446fi
1cf3d07d
SE
6447AR=$ac_cv_prog_AR
6448if test -n "$AR"; then
5213506e
RW
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6450$as_echo "$AR" >&6; }
3df64633 6451else
5213506e
RW
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453$as_echo "no" >&6; }
3df64633
AO
6454fi
6455
5213506e 6456
ff66d28f 6457fi
1cf3d07d
SE
6458if test -z "$ac_cv_prog_AR"; then
6459 ac_ct_AR=$AR
6460 # Extract the first word of "ar", so it can be a program name with args.
6461set dummy ar; ac_word=$2
5213506e
RW
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463$as_echo_n "checking for $ac_word... " >&6; }
6464if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
3df64633 6466else
1cf3d07d
SE
6467 if test -n "$ac_ct_AR"; then
6468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3df64633 6469else
ff66d28f
PE
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
5213506e
RW
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6477 ac_cv_prog_ac_ct_AR="ar"
5213506e 6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
6479 break 2
6480 fi
6481done
5213506e
RW
6482 done
6483IFS=$as_save_IFS
ff66d28f 6484
3df64633
AO
6485fi
6486fi
1cf3d07d
SE
6487ac_ct_AR=$ac_cv_prog_ac_ct_AR
6488if test -n "$ac_ct_AR"; then
5213506e
RW
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6490$as_echo "$ac_ct_AR" >&6; }
3df64633 6491else
5213506e
RW
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493$as_echo "no" >&6; }
3df64633
AO
6494fi
6495
5213506e
RW
6496 if test "x$ac_ct_AR" = x; then
6497 AR="false"
6498 else
6499 case $cross_compiling:$ac_tool_warned in
6500yes:)
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503ac_tool_warned=yes ;;
6504esac
6505 AR=$ac_ct_AR
6506 fi
3df64633 6507else
1cf3d07d 6508 AR="$ac_cv_prog_AR"
3df64633
AO
6509fi
6510
1cf3d07d
SE
6511test -z "$AR" && AR=ar
6512test -z "$AR_FLAGS" && AR_FLAGS=cru
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
ff66d28f
PE
6524if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 6526set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if test "${ac_cv_prog_STRIP+set}" = set; then :
6530 $as_echo_n "(cached) " >&6
3df64633
AO
6531else
6532 if test -n "$STRIP"; then
6533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6534else
ff66d28f
PE
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
5213506e
RW
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 6542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
6544 break 2
6545 fi
6546done
5213506e
RW
6547 done
6548IFS=$as_save_IFS
ff66d28f 6549
3df64633
AO
6550fi
6551fi
ff66d28f 6552STRIP=$ac_cv_prog_STRIP
3df64633 6553if test -n "$STRIP"; then
5213506e
RW
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6555$as_echo "$STRIP" >&6; }
3df64633 6556else
5213506e
RW
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558$as_echo "no" >&6; }
3df64633
AO
6559fi
6560
5213506e 6561
ff66d28f 6562fi
3df64633 6563if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 6564 ac_ct_STRIP=$STRIP
3df64633
AO
6565 # Extract the first word of "strip", so it can be a program name with args.
6566set dummy strip; ac_word=$2
5213506e
RW
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568$as_echo_n "checking for $ac_word... " >&6; }
6569if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
3df64633 6571else
ff66d28f
PE
6572 if test -n "$ac_ct_STRIP"; then
6573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 6574else
ff66d28f
PE
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
5213506e
RW
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ff66d28f 6582 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff66d28f
PE
6584 break 2
6585 fi
6586done
5213506e
RW
6587 done
6588IFS=$as_save_IFS
ff66d28f 6589
3df64633
AO
6590fi
6591fi
ff66d28f
PE
6592ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6593if test -n "$ac_ct_STRIP"; then
5213506e
RW
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6595$as_echo "$ac_ct_STRIP" >&6; }
3df64633 6596else
5213506e
RW
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598$as_echo "no" >&6; }
3df64633
AO
6599fi
6600
5213506e
RW
6601 if test "x$ac_ct_STRIP" = x; then
6602 STRIP=":"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608ac_tool_warned=yes ;;
6609esac
6610 STRIP=$ac_ct_STRIP
6611 fi
3df64633 6612else
ff66d28f 6613 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
6614fi
6615
1cf3d07d 6616test -z "$STRIP" && STRIP=:
b2dad0e3 6617
ff66d28f 6618
3840fa2a 6619
3840fa2a 6620
b2dad0e3 6621
ff66d28f 6622
1cf3d07d
SE
6623if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if test "${ac_cv_prog_RANLIB+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
3df64633 6630else
1cf3d07d
SE
6631 if test -n "$RANLIB"; then
6632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
5213506e
RW
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 6643 break 2
b2dad0e3 6644 fi
1cf3d07d 6645done
5213506e
RW
6646 done
6647IFS=$as_save_IFS
b2dad0e3 6648
1cf3d07d
SE
6649fi
6650fi
6651RANLIB=$ac_cv_prog_RANLIB
6652if test -n "$RANLIB"; then
5213506e
RW
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6654$as_echo "$RANLIB" >&6; }
1cf3d07d 6655else
5213506e
RW
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
1cf3d07d 6658fi
38cca750 6659
5213506e 6660
1cf3d07d
SE
6661fi
6662if test -z "$ac_cv_prog_RANLIB"; then
6663 ac_ct_RANLIB=$RANLIB
6664 # Extract the first word of "ranlib", so it can be a program name with args.
6665set dummy ranlib; ac_word=$2
5213506e
RW
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6669 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6670else
6671 if test -n "$ac_ct_RANLIB"; then
6672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
5213506e
RW
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6681 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 6683 break 2
162c7cd9 6684 fi
1cf3d07d 6685done
5213506e
RW
6686 done
6687IFS=$as_save_IFS
162c7cd9 6688
1cf3d07d
SE
6689fi
6690fi
6691ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6692if test -n "$ac_ct_RANLIB"; then
5213506e
RW
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6694$as_echo "$ac_ct_RANLIB" >&6; }
b2dad0e3 6695else
5213506e
RW
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
1cf3d07d 6698fi
ff66d28f 6699
5213506e
RW
6700 if test "x$ac_ct_RANLIB" = x; then
6701 RANLIB=":"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704yes:)
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709 RANLIB=$ac_ct_RANLIB
6710 fi
1cf3d07d
SE
6711else
6712 RANLIB="$ac_cv_prog_RANLIB"
6713fi
ff66d28f 6714
1cf3d07d 6715test -z "$RANLIB" && RANLIB=:
ff66d28f 6716
1cf3d07d
SE
6717
6718
6719
6720
6721
6722# Determine commands to create old-style static archives.
25e5de9a 6723old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6724old_postinstall_cmds='chmod 644 $oldlib'
6725old_postuninstall_cmds=
6726
6727if test -n "$RANLIB"; then
6728 case $host_os in
6729 openbsd*)
6730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6731 ;;
6732 *)
6733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6734 ;;
6735 esac
6736 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6737fi
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772# If no C compiler was specified, use CC.
6773LTCC=${LTCC-"$CC"}
6774
6775# If no C compiler flags were specified, use CFLAGS.
6776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
6778# Allow CC to be a program name with arguments.
6779compiler=$CC
6780
6781
6782# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6785if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6787else
6788
6789# These are sane defaults that work on at least a few old systems.
6790# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6791
6792# Character class describing NM global symbol codes.
6793symcode='[BCDEGRST]'
6794
6795# Regexp to match symbols that can be accessed directly from C.
6796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798# Define system-specific variables.
6799case $host_os in
6800aix*)
6801 symcode='[BCDT]'
6802 ;;
25e5de9a 6803cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6804 symcode='[ABCDGISTW]'
6805 ;;
6806hpux*)
6807 if test "$host_cpu" = ia64; then
6808 symcode='[ABCDEGRST]'
6809 fi
6810 ;;
6811irix* | nonstopux*)
6812 symcode='[BCDEGRST]'
6813 ;;
6814osf*)
6815 symcode='[BCDEGQRST]'
6816 ;;
6817solaris*)
6818 symcode='[BDRT]'
6819 ;;
6820sco3.2v5*)
6821 symcode='[DT]'
6822 ;;
6823sysv4.2uw2*)
6824 symcode='[DT]'
6825 ;;
6826sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827 symcode='[ABDT]'
6828 ;;
6829sysv4)
6830 symcode='[DFNSTU]'
6831 ;;
6832esac
6833
6834# If we're using GNU nm, then use its standard symbol codes.
6835case `$NM -V 2>&1` in
6836*GNU* | *'with BFD'*)
6837 symcode='[ABCDGIRSTW]' ;;
6838esac
6839
6840# Transform an extracted symbol line into a proper C declaration.
6841# Some systems (esp. on ia64) link data and code symbols differently,
6842# so use this general approach.
6843lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6844
6845# Transform an extracted symbol line into symbol name and symbol address
6846lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
25e5de9a 6847lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
6848
6849# Handle CRLF in mingw tool chain
6850opt_cr=
6851case $build_os in
6852mingw*)
6853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6854 ;;
6855esac
6856
6857# Try without a prefix underscore, then with it.
6858for ac_symprfx in "" "_"; do
6859
6860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861 symxfrm="\\1 $ac_symprfx\\2 \\2"
6862
6863 # Write the raw and C identifiers.
6864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6865 # Fake it for dumpbin and say T for any non-static function
6866 # and D for any global variable.
6867 # Also find C++ and __fastcall symbols from MSVC++,
6868 # which start with @ or ?.
6869 lt_cv_sys_global_symbol_pipe="$AWK '"\
6870" {last_section=section; section=\$ 3};"\
6871" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6872" \$ 0!~/External *\|/{next};"\
6873" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6874" {if(hide[section]) next};"\
6875" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6876" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6877" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6878" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6879" ' prfx=^$ac_symprfx"
6880 else
6881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882 fi
6883
6884 # Check to see that the pipe works correctly.
6885 pipe_works=no
6886
6887 rm -f conftest*
6888 cat > conftest.$ac_ext <<_LT_EOF
6889#ifdef __cplusplus
6890extern "C" {
6891#endif
6892char nm_test_var;
6893void nm_test_func(void);
6894void nm_test_func(void){}
6895#ifdef __cplusplus
6896}
6897#endif
6898int main(){nm_test_var='a';nm_test_func();return(0);}
6899_LT_EOF
6900
5213506e 6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6902 (eval $ac_compile) 2>&5
6903 ac_status=$?
5213506e
RW
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
1cf3d07d
SE
6906 # Now try to grab the symbols.
6907 nlist=conftest.nm
5213506e 6908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1cf3d07d
SE
6909 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6910 ac_status=$?
5213506e
RW
6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6913 # Try sorting and uniquifying the output.
6914 if sort "$nlist" | uniq > "$nlist"T; then
6915 mv -f "$nlist"T "$nlist"
6916 else
6917 rm -f "$nlist"T
6918 fi
6919
6920 # Make sure that we snagged all the symbols we need.
6921 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6922 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6923 cat <<_LT_EOF > conftest.$ac_ext
6924#ifdef __cplusplus
6925extern "C" {
6926#endif
6927
6928_LT_EOF
6929 # Now generate the symbol file.
6930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6931
6932 cat <<_LT_EOF >> conftest.$ac_ext
6933
6934/* The mapping between symbol names and symbols. */
6935const struct {
6936 const char *name;
6937 void *address;
6938}
6939lt__PROGRAM__LTX_preloaded_symbols[] =
6940{
6941 { "@PROGRAM@", (void *) 0 },
6942_LT_EOF
6943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6944 cat <<\_LT_EOF >> conftest.$ac_ext
6945 {0, (void *) 0}
6946};
6947
6948/* This works around a problem in FreeBSD linker */
6949#ifdef FREEBSD_WORKAROUND
6950static const void *lt_preloaded_setup() {
6951 return lt__PROGRAM__LTX_preloaded_symbols;
6952}
6953#endif
6954
6955#ifdef __cplusplus
6956}
6957#endif
6958_LT_EOF
6959 # Now try linking the two files.
6960 mv conftest.$ac_objext conftstm.$ac_objext
6961 lt_save_LIBS="$LIBS"
6962 lt_save_CFLAGS="$CFLAGS"
6963 LIBS="conftstm.$ac_objext"
6964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6966 (eval $ac_link) 2>&5
6967 ac_status=$?
5213506e
RW
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6970 pipe_works=yes
6971 fi
6972 LIBS="$lt_save_LIBS"
6973 CFLAGS="$lt_save_CFLAGS"
6974 else
6975 echo "cannot find nm_test_func in $nlist" >&5
6976 fi
6977 else
6978 echo "cannot find nm_test_var in $nlist" >&5
6979 fi
6980 else
6981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6982 fi
6983 else
6984 echo "$progname: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 fi
25e5de9a 6987 rm -rf conftest* conftst*
1cf3d07d
SE
6988
6989 # Do not use the global_symbol_pipe unless it works.
6990 if test "$pipe_works" = yes; then
6991 break
6992 else
6993 lt_cv_sys_global_symbol_pipe=
6994 fi
6995done
6996
6997fi
6998
6999if test -z "$lt_cv_sys_global_symbol_pipe"; then
7000 lt_cv_sys_global_symbol_to_cdecl=
7001fi
7002if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7004$as_echo "failed" >&6; }
1cf3d07d 7005else
5213506e
RW
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7007$as_echo "ok" >&6; }
1cf3d07d
SE
7008fi
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
25e5de9a
PG
7024
7025
7026
7027
7028
1cf3d07d
SE
7029
7030
5213506e
RW
7031# Check whether --enable-libtool-lock was given.
7032if test "${enable_libtool_lock+set}" = set; then :
7033 enableval=$enable_libtool_lock;
7034fi
1cf3d07d 7035
1cf3d07d
SE
7036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038# Some flags need to be propagated to the compiler or linker for good
7039# libtool support.
7040case $host in
7041ia64-*-hpux*)
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
5213506e 7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
5213506e
RW
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
1cf3d07d
SE
7049 case `/usr/bin/file conftest.$ac_objext` in
7050 *ELF-32*)
7051 HPUX_IA64_MODE="32"
7052 ;;
7053 *ELF-64*)
7054 HPUX_IA64_MODE="64"
7055 ;;
7056 esac
7057 fi
7058 rm -rf conftest*
7059 ;;
7060*-*-irix6*)
7061 # Find out which ABI we are using.
5213506e
RW
7062 echo '#line 7062 "configure"' > conftest.$ac_ext
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7064 (eval $ac_compile) 2>&5
7065 ac_status=$?
5213506e
RW
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
1cf3d07d
SE
7068 if test "$lt_cv_prog_gnu_ld" = yes; then
7069 case `/usr/bin/file conftest.$ac_objext` in
7070 *32-bit*)
7071 LD="${LD-ld} -melf32bsmip"
7072 ;;
7073 *N32*)
7074 LD="${LD-ld} -melf32bmipn32"
7075 ;;
7076 *64-bit*)
7077 LD="${LD-ld} -melf64bmip"
7078 ;;
7079 esac
7080 else
7081 case `/usr/bin/file conftest.$ac_objext` in
7082 *32-bit*)
7083 LD="${LD-ld} -32"
7084 ;;
7085 *N32*)
7086 LD="${LD-ld} -n32"
7087 ;;
7088 *64-bit*)
7089 LD="${LD-ld} -64"
7090 ;;
7091 esac
7092 fi
7093 fi
7094 rm -rf conftest*
7095 ;;
7096
7097x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7098s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
5213506e 7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
5213506e
RW
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
1cf3d07d
SE
7106 case `/usr/bin/file conftest.o` in
7107 *32-bit*)
7108 case $host in
7109 x86_64-*kfreebsd*-gnu)
7110 LD="${LD-ld} -m elf_i386_fbsd"
7111 ;;
7112 x86_64-*linux*)
7113 LD="${LD-ld} -m elf_i386"
7114 ;;
7115 ppc64-*linux*|powerpc64-*linux*)
7116 LD="${LD-ld} -m elf32ppclinux"
7117 ;;
7118 s390x-*linux*)
7119 LD="${LD-ld} -m elf_s390"
7120 ;;
7121 sparc64-*linux*)
7122 LD="${LD-ld} -m elf32_sparc"
7123 ;;
7124 esac
7125 ;;
7126 *64-bit*)
7127 case $host in
7128 x86_64-*kfreebsd*-gnu)
7129 LD="${LD-ld} -m elf_x86_64_fbsd"
7130 ;;
7131 x86_64-*linux*)
7132 LD="${LD-ld} -m elf_x86_64"
7133 ;;
7134 ppc*-*linux*|powerpc*-*linux*)
7135 LD="${LD-ld} -m elf64ppc"
7136 ;;
7137 s390*-*linux*|s390*-*tpf*)
7138 LD="${LD-ld} -m elf64_s390"
7139 ;;
7140 sparc*-*linux*)
7141 LD="${LD-ld} -m elf64_sparc"
7142 ;;
7143 esac
7144 ;;
7145 esac
7146 fi
7147 rm -rf conftest*
7148 ;;
7149
7150*-*-sco3.2v5*)
7151 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7152 SAVE_CFLAGS="$CFLAGS"
7153 CFLAGS="$CFLAGS -belf"
5213506e
RW
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7155$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7156if test "${lt_cv_cc_needs_belf+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7158else
7159 ac_ext=c
7160ac_cpp='$CPP $CPPFLAGS'
7161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
7165 if test x$gcc_no_link = xyes; then
5213506e 7166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 7167fi
5213506e 7168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 7169/* end confdefs.h. */
3df64633 7170
ff66d28f
PE
7171int
7172main ()
7173{
b2dad0e3 7174
ff66d28f
PE
7175 ;
7176 return 0;
7177}
7178_ACEOF
5213506e 7179if ac_fn_c_try_link "$LINENO"; then :
b2dad0e3
BK
7180 lt_cv_cc_needs_belf=yes
7181else
5213506e 7182 lt_cv_cc_needs_belf=no
b2dad0e3 7183fi
5213506e
RW
7184rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
3df64633 7186 ac_ext=c
3df64633 7187ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
7188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7190ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 7191
b2dad0e3 7192fi
5213506e
RW
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7194$as_echo "$lt_cv_cc_needs_belf" >&6; }
b2dad0e3
BK
7195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7197 CFLAGS="$SAVE_CFLAGS"
7198 fi
7199 ;;
1cf3d07d
SE
7200sparc*-*solaris*)
7201 # Find out which ABI we are using.
7202 echo 'int i;' > conftest.$ac_ext
5213506e 7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
5213506e
RW
7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
1cf3d07d
SE
7208 case `/usr/bin/file conftest.o` in
7209 *64-bit*)
7210 case $lt_cv_prog_gnu_ld in
7211 yes*) LD="${LD-ld} -m elf64_sparc" ;;
25e5de9a
PG
7212 *)
7213 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7214 LD="${LD-ld} -64"
7215 fi
7216 ;;
1cf3d07d
SE
7217 esac
7218 ;;
7219 esac
7220 fi
7221 rm -rf conftest*
7222 ;;
b2dad0e3
BK
7223esac
7224
1cf3d07d 7225need_locks="$enable_libtool_lock"
b2dad0e3 7226
25e5de9a
PG
7227
7228 case $host_os in
7229 rhapsody* | darwin*)
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7232set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
7235if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
25e5de9a
PG
7237else
7238 if test -n "$DSYMUTIL"; then
7239 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
5213506e
RW
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7248 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7250 break 2
7251 fi
7252done
5213506e
RW
7253 done
7254IFS=$as_save_IFS
25e5de9a
PG
7255
7256fi
7257fi
7258DSYMUTIL=$ac_cv_prog_DSYMUTIL
7259if test -n "$DSYMUTIL"; then
5213506e
RW
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7261$as_echo "$DSYMUTIL" >&6; }
25e5de9a 7262else
5213506e
RW
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264$as_echo "no" >&6; }
25e5de9a
PG
7265fi
7266
5213506e 7267
25e5de9a
PG
7268fi
7269if test -z "$ac_cv_prog_DSYMUTIL"; then
7270 ac_ct_DSYMUTIL=$DSYMUTIL
7271 # Extract the first word of "dsymutil", so it can be a program name with args.
7272set dummy dsymutil; ac_word=$2
5213506e
RW
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
7275if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
25e5de9a
PG
7277else
7278 if test -n "$ac_ct_DSYMUTIL"; then
7279 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
5213506e
RW
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7288 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7290 break 2
7291 fi
7292done
5213506e
RW
7293 done
7294IFS=$as_save_IFS
25e5de9a 7295
25e5de9a
PG
7296fi
7297fi
7298ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7299if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7301$as_echo "$ac_ct_DSYMUTIL" >&6; }
25e5de9a 7302else
5213506e
RW
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
25e5de9a
PG
7305fi
7306
5213506e
RW
7307 if test "x$ac_ct_DSYMUTIL" = x; then
7308 DSYMUTIL=":"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314ac_tool_warned=yes ;;
7315esac
7316 DSYMUTIL=$ac_ct_DSYMUTIL
7317 fi
25e5de9a
PG
7318else
7319 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7320fi
7321
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7324set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326$as_echo_n "checking for $ac_word... " >&6; }
7327if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
25e5de9a
PG
7329else
7330 if test -n "$NMEDIT"; then
7331 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
5213506e
RW
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7342 break 2
7343 fi
7344done
5213506e
RW
7345 done
7346IFS=$as_save_IFS
25e5de9a
PG
7347
7348fi
7349fi
7350NMEDIT=$ac_cv_prog_NMEDIT
7351if test -n "$NMEDIT"; then
5213506e
RW
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7353$as_echo "$NMEDIT" >&6; }
25e5de9a 7354else
5213506e
RW
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356$as_echo "no" >&6; }
25e5de9a
PG
7357fi
7358
5213506e 7359
25e5de9a
PG
7360fi
7361if test -z "$ac_cv_prog_NMEDIT"; then
7362 ac_ct_NMEDIT=$NMEDIT
7363 # Extract the first word of "nmedit", so it can be a program name with args.
7364set dummy nmedit; ac_word=$2
5213506e
RW
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
25e5de9a
PG
7369else
7370 if test -n "$ac_ct_NMEDIT"; then
7371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
5213506e
RW
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7380 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7382 break 2
7383 fi
7384done
5213506e
RW
7385 done
7386IFS=$as_save_IFS
25e5de9a 7387
25e5de9a
PG
7388fi
7389fi
7390ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7391if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7393$as_echo "$ac_ct_NMEDIT" >&6; }
25e5de9a 7394else
5213506e
RW
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
25e5de9a
PG
7397fi
7398
5213506e
RW
7399 if test "x$ac_ct_NMEDIT" = x; then
7400 NMEDIT=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403yes:)
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408 NMEDIT=$ac_ct_NMEDIT
7409 fi
25e5de9a
PG
7410else
7411 NMEDIT="$ac_cv_prog_NMEDIT"
7412fi
7413
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7416set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418$as_echo_n "checking for $ac_word... " >&6; }
7419if test "${ac_cv_prog_LIPO+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
25e5de9a
PG
7421else
7422 if test -n "$LIPO"; then
7423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
5213506e
RW
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7432 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7434 break 2
7435 fi
7436done
5213506e
RW
7437 done
7438IFS=$as_save_IFS
25e5de9a
PG
7439
7440fi
7441fi
7442LIPO=$ac_cv_prog_LIPO
7443if test -n "$LIPO"; then
5213506e
RW
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7445$as_echo "$LIPO" >&6; }
25e5de9a 7446else
5213506e
RW
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448$as_echo "no" >&6; }
25e5de9a
PG
7449fi
7450
5213506e 7451
25e5de9a
PG
7452fi
7453if test -z "$ac_cv_prog_LIPO"; then
7454 ac_ct_LIPO=$LIPO
7455 # Extract the first word of "lipo", so it can be a program name with args.
7456set dummy lipo; ac_word=$2
5213506e
RW
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458$as_echo_n "checking for $ac_word... " >&6; }
7459if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
25e5de9a
PG
7461else
7462 if test -n "$ac_ct_LIPO"; then
7463 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
5213506e
RW
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7472 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7474 break 2
7475 fi
7476done
5213506e
RW
7477 done
7478IFS=$as_save_IFS
25e5de9a 7479
25e5de9a
PG
7480fi
7481fi
7482ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7483if test -n "$ac_ct_LIPO"; then
5213506e
RW
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7485$as_echo "$ac_ct_LIPO" >&6; }
25e5de9a 7486else
5213506e
RW
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
25e5de9a
PG
7489fi
7490
5213506e
RW
7491 if test "x$ac_ct_LIPO" = x; then
7492 LIPO=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500 LIPO=$ac_ct_LIPO
7501 fi
25e5de9a
PG
7502else
7503 LIPO="$ac_cv_prog_LIPO"
7504fi
7505
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7508set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510$as_echo_n "checking for $ac_word... " >&6; }
7511if test "${ac_cv_prog_OTOOL+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
25e5de9a
PG
7513else
7514 if test -n "$OTOOL"; then
7515 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7516else
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
5213506e
RW
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7524 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7526 break 2
7527 fi
7528done
5213506e
RW
7529 done
7530IFS=$as_save_IFS
25e5de9a
PG
7531
7532fi
7533fi
7534OTOOL=$ac_cv_prog_OTOOL
7535if test -n "$OTOOL"; then
5213506e
RW
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7537$as_echo "$OTOOL" >&6; }
25e5de9a 7538else
5213506e
RW
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
25e5de9a
PG
7541fi
7542
5213506e 7543
25e5de9a
PG
7544fi
7545if test -z "$ac_cv_prog_OTOOL"; then
7546 ac_ct_OTOOL=$OTOOL
7547 # Extract the first word of "otool", so it can be a program name with args.
7548set dummy otool; ac_word=$2
5213506e
RW
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550$as_echo_n "checking for $ac_word... " >&6; }
7551if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
25e5de9a
PG
7553else
7554 if test -n "$ac_ct_OTOOL"; then
7555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7556else
7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
5213506e
RW
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7564 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7566 break 2
7567 fi
7568done
5213506e
RW
7569 done
7570IFS=$as_save_IFS
25e5de9a 7571
25e5de9a
PG
7572fi
7573fi
7574ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7575if test -n "$ac_ct_OTOOL"; then
5213506e
RW
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7577$as_echo "$ac_ct_OTOOL" >&6; }
25e5de9a 7578else
5213506e
RW
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
25e5de9a
PG
7581fi
7582
5213506e
RW
7583 if test "x$ac_ct_OTOOL" = x; then
7584 OTOOL=":"
7585 else
7586 case $cross_compiling:$ac_tool_warned in
7587yes:)
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590ac_tool_warned=yes ;;
7591esac
7592 OTOOL=$ac_ct_OTOOL
7593 fi
25e5de9a
PG
7594else
7595 OTOOL="$ac_cv_prog_OTOOL"
7596fi
7597
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7600set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602$as_echo_n "checking for $ac_word... " >&6; }
7603if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
25e5de9a
PG
7605else
7606 if test -n "$OTOOL64"; then
7607 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
5213506e
RW
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7616 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7618 break 2
7619 fi
7620done
5213506e
RW
7621 done
7622IFS=$as_save_IFS
25e5de9a
PG
7623
7624fi
7625fi
7626OTOOL64=$ac_cv_prog_OTOOL64
7627if test -n "$OTOOL64"; then
5213506e
RW
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7629$as_echo "$OTOOL64" >&6; }
25e5de9a 7630else
5213506e
RW
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632$as_echo "no" >&6; }
25e5de9a
PG
7633fi
7634
5213506e 7635
25e5de9a
PG
7636fi
7637if test -z "$ac_cv_prog_OTOOL64"; then
7638 ac_ct_OTOOL64=$OTOOL64
7639 # Extract the first word of "otool64", so it can be a program name with args.
7640set dummy otool64; ac_word=$2
5213506e
RW
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642$as_echo_n "checking for $ac_word... " >&6; }
7643if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
25e5de9a
PG
7645else
7646 if test -n "$ac_ct_OTOOL64"; then
7647 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7648else
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
5213506e
RW
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25e5de9a 7656 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25e5de9a
PG
7658 break 2
7659 fi
7660done
5213506e
RW
7661 done
7662IFS=$as_save_IFS
25e5de9a 7663
25e5de9a
PG
7664fi
7665fi
7666ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7667if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7669$as_echo "$ac_ct_OTOOL64" >&6; }
25e5de9a 7670else
5213506e
RW
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672$as_echo "no" >&6; }
25e5de9a
PG
7673fi
7674
5213506e
RW
7675 if test "x$ac_ct_OTOOL64" = x; then
7676 OTOOL64=":"
7677 else
7678 case $cross_compiling:$ac_tool_warned in
7679yes:)
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682ac_tool_warned=yes ;;
7683esac
7684 OTOOL64=$ac_ct_OTOOL64
7685 fi
25e5de9a
PG
7686else
7687 OTOOL64="$ac_cv_prog_OTOOL64"
7688fi
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
5213506e
RW
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7717$as_echo_n "checking for -single_module linker flag... " >&6; }
7718if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
25e5de9a
PG
7720else
7721 lt_cv_apple_cc_single_mod=no
7722 if test -z "${LT_MULTI_MODULE}"; then
7723 # By default we will add the -single_module flag. You can override
7724 # by either setting the environment variable LT_MULTI_MODULE
7725 # non-empty at configure time, or by adding -multi_module to the
7726 # link flags.
7727 rm -rf libconftest.dylib*
7728 echo "int foo(void){return 1;}" > conftest.c
7729 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7730-dynamiclib -Wl,-single_module conftest.c" >&5
7731 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7732 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7733 _lt_result=$?
7734 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7735 lt_cv_apple_cc_single_mod=yes
7736 else
7737 cat conftest.err >&5
7738 fi
7739 rm -rf libconftest.dylib*
7740 rm -f conftest.*
7741 fi
7742fi
5213506e
RW
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7744$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7746$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7747if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
25e5de9a
PG
7749else
7750 lt_cv_ld_exported_symbols_list=no
7751 save_LDFLAGS=$LDFLAGS
7752 echo "_main" > conftest.sym
7753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7754 if test x$gcc_no_link = xyes; then
5213506e 7755 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25e5de9a 7756fi
5213506e 7757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25e5de9a
PG
7758/* end confdefs.h. */
7759
7760int
7761main ()
7762{
7763
7764 ;
7765 return 0;
7766}
7767_ACEOF
5213506e 7768if ac_fn_c_try_link "$LINENO"; then :
25e5de9a
PG
7769 lt_cv_ld_exported_symbols_list=yes
7770else
5213506e 7771 lt_cv_ld_exported_symbols_list=no
25e5de9a 7772fi
5213506e
RW
7773rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
25e5de9a
PG
7775 LDFLAGS="$save_LDFLAGS"
7776
7777fi
5213506e
RW
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7779$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
25e5de9a
PG
7780 case $host_os in
7781 rhapsody* | darwin1.[012])
7782 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7783 darwin1.*)
7784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7785 darwin*) # darwin 5.x on
7786 # if running on 10.5 or later, the deployment target defaults
7787 # to the OS version, if on x86, and 10.4, the deployment
7788 # target defaults to 10.4. Don't you love it?
7789 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7790 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7792 10.[012]*)
7793 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7794 10.*)
7795 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7796 esac
7797 ;;
7798 esac
7799 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7800 _lt_dar_single_mod='$single_module'
7801 fi
7802 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7803 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7804 else
7805 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7806 fi
7807 if test "$DSYMUTIL" != ":"; then
7808 _lt_dsymutil='~$DSYMUTIL $lib || :'
7809 else
7810 _lt_dsymutil=
7811 fi
7812 ;;
7813 esac
7814
5213506e
RW
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7816$as_echo_n "checking for ANSI C header files... " >&6; }
7817if test "${ac_cv_header_stdc+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
1cf3d07d 7819else
5213506e 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7821/* end confdefs.h. */
7822#include <stdlib.h>
7823#include <stdarg.h>
7824#include <string.h>
7825#include <float.h>
ff66d28f 7826
1cf3d07d
SE
7827int
7828main ()
ff66d28f 7829{
1cf3d07d
SE
7830
7831 ;
7832 return 0;
7833}
7834_ACEOF
5213506e 7835if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7836 ac_cv_header_stdc=yes
7837else
5213506e 7838 ac_cv_header_stdc=no
b2dad0e3 7839fi
5213506e 7840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b2dad0e3 7841
1cf3d07d
SE
7842if test $ac_cv_header_stdc = yes; then
7843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7845/* end confdefs.h. */
7846#include <string.h>
b2dad0e3 7847
1cf3d07d
SE
7848_ACEOF
7849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7850 $EGREP "memchr" >/dev/null 2>&1; then :
7851
b2dad0e3 7852else
1cf3d07d 7853 ac_cv_header_stdc=no
b2dad0e3 7854fi
1cf3d07d 7855rm -f conftest*
b2dad0e3 7856
1cf3d07d 7857fi
b2dad0e3 7858
1cf3d07d
SE
7859if test $ac_cv_header_stdc = yes; then
7860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7862/* end confdefs.h. */
7863#include <stdlib.h>
b2dad0e3 7864
1cf3d07d
SE
7865_ACEOF
7866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7867 $EGREP "free" >/dev/null 2>&1; then :
7868
1cf3d07d
SE
7869else
7870 ac_cv_header_stdc=no
7871fi
7872rm -f conftest*
b2dad0e3 7873
1cf3d07d 7874fi
b2dad0e3 7875
1cf3d07d
SE
7876if test $ac_cv_header_stdc = yes; then
7877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7878 if test "$cross_compiling" = yes; then :
1cf3d07d 7879 :
ff66d28f 7880else
5213506e 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 7882/* end confdefs.h. */
1cf3d07d 7883#include <ctype.h>
5213506e 7884#include <stdlib.h>
1cf3d07d
SE
7885#if ((' ' & 0x0FF) == 0x020)
7886# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7887# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
ff66d28f 7888#else
1cf3d07d
SE
7889# define ISLOWER(c) \
7890 (('a' <= (c) && (c) <= 'i') \
7891 || ('j' <= (c) && (c) <= 'r') \
7892 || ('s' <= (c) && (c) <= 'z'))
7893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
ff66d28f 7894#endif
1cf3d07d
SE
7895
7896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7897int
7898main ()
7899{
7900 int i;
7901 for (i = 0; i < 256; i++)
7902 if (XOR (islower (i), ISLOWER (i))
7903 || toupper (i) != TOUPPER (i))
5213506e
RW
7904 return 2;
7905 return 0;
1cf3d07d 7906}
ff66d28f 7907_ACEOF
5213506e 7908if ac_fn_c_try_run "$LINENO"; then :
ff66d28f 7909
5213506e
RW
7910else
7911 ac_cv_header_stdc=no
1cf3d07d 7912fi
5213506e
RW
7913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7915fi
5213506e 7916
1cf3d07d
SE
7917fi
7918fi
5213506e
RW
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7920$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7921if test $ac_cv_header_stdc = yes; then
7922
5213506e 7923$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7924
7925fi
7926
7927# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d 7928for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4cdc8761 7929 inttypes.h stdint.h unistd.h
5213506e
RW
7930do :
7931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7932ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7933"
7934eval as_val=\$$as_ac_Header
7935 if test "x$as_val" = x""yes; then :
1cf3d07d 7936 cat >>confdefs.h <<_ACEOF
5213506e 7937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
7938_ACEOF
7939
7940fi
7941
7942done
7943
7944
1cf3d07d 7945for ac_header in dlfcn.h
5213506e
RW
7946do :
7947 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7948"
7949if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 7950 cat >>confdefs.h <<_ACEOF
5213506e 7951#define HAVE_DLFCN_H 1
1cf3d07d
SE
7952_ACEOF
7953
7954fi
7955
7956done
7957
7958
7959
5213506e 7960ac_ext=cpp
1cf3d07d
SE
7961ac_cpp='$CXXCPP $CPPFLAGS'
7962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
7965if test -z "$CXX"; then
7966 if test -n "$CCC"; then
7967 CXX=$CCC
7968 else
7969 if test -n "$ac_tool_prefix"; then
7970 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1cf3d07d
SE
7971 do
7972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${glibcxx_cv_prog_CXX+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7978else
7979 if test -n "$CXX"; then
7980 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
5213506e
RW
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7989 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7991 break 2
7992 fi
7993done
5213506e
RW
7994 done
7995IFS=$as_save_IFS
1cf3d07d
SE
7996
7997fi
7998fi
7999CXX=$glibcxx_cv_prog_CXX
8000if test -n "$CXX"; then
5213506e
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8002$as_echo "$CXX" >&6; }
1cf3d07d 8003else
5213506e
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
1cf3d07d
SE
8006fi
8007
5213506e 8008
1cf3d07d
SE
8009 test -n "$CXX" && break
8010 done
8011fi
8012if test -z "$CXX"; then
8013 ac_ct_CXX=$CXX
5213506e 8014 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1cf3d07d
SE
8015do
8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
8017set dummy $ac_prog; ac_word=$2
5213506e
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8022else
8023 if test -n "$ac_ct_CXX"; then
8024 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
5213506e
RW
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8033 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8035 break 2
8036 fi
8037done
5213506e
RW
8038 done
8039IFS=$as_save_IFS
1cf3d07d
SE
8040
8041fi
8042fi
8043ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8044if test -n "$ac_ct_CXX"; then
5213506e
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8046$as_echo "$ac_ct_CXX" >&6; }
1cf3d07d 8047else
5213506e
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
1cf3d07d
SE
8050fi
8051
5213506e 8052
1cf3d07d
SE
8053 test -n "$ac_ct_CXX" && break
8054done
1cf3d07d 8055
5213506e
RW
8056 if test "x$ac_ct_CXX" = x; then
8057 CXX="g++"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065 CXX=$ac_ct_CXX
8066 fi
1cf3d07d
SE
8067fi
8068
5213506e
RW
8069 fi
8070fi
1cf3d07d 8071# Provide some information about the compiler.
5213506e
RW
8072$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8073set X $ac_compile
8074ac_compiler=$2
8075for ac_option in --version -v -V -qversion; do
8076 { { ac_try="$ac_compiler $ac_option >&5"
8077case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080esac
8081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8082$as_echo "$ac_try_echo"; } >&5
8083 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 8084 ac_status=$?
5213506e
RW
8085 if test -s conftest.err; then
8086 sed '10a\
8087... rest of stderr output deleted ...
8088 10q' conftest.err >conftest.er1
8089 cat conftest.er1 >&5
8090 rm -f conftest.er1 conftest.err
8091 fi
8092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093 test $ac_status = 0; }
8094done
1cf3d07d 8095
5213506e
RW
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8097$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8098if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
1cf3d07d 8100else
5213506e 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8102/* end confdefs.h. */
8103
8104int
8105main ()
8106{
8107#ifndef __GNUC__
8108 choke me
8109#endif
8110
8111 ;
8112 return 0;
8113}
8114_ACEOF
5213506e 8115if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
8116 ac_compiler_gnu=yes
8117else
5213506e 8118 ac_compiler_gnu=no
1cf3d07d 8119fi
5213506e 8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
8121ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8122
8123fi
5213506e
RW
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8125$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8126if test $ac_compiler_gnu = yes; then
8127 GXX=yes
8128else
8129 GXX=
8130fi
1cf3d07d
SE
8131ac_test_CXXFLAGS=${CXXFLAGS+set}
8132ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8134$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8135if test "${ac_cv_prog_cxx_g+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
1cf3d07d 8137else
5213506e
RW
8138 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8139 ac_cxx_werror_flag=yes
8140 ac_cv_prog_cxx_g=no
8141 CXXFLAGS="-g"
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8143/* end confdefs.h. */
8144
8145int
8146main ()
8147{
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
5213506e 8153if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
8154 ac_cv_prog_cxx_g=yes
8155else
5213506e
RW
8156 CXXFLAGS=""
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8158/* end confdefs.h. */
5213506e 8159
1cf3d07d
SE
8160int
8161main ()
8162{
5213506e 8163
1cf3d07d
SE
8164 ;
8165 return 0;
8166}
8167_ACEOF
5213506e 8168if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d 8169
5213506e
RW
8170else
8171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8172 CXXFLAGS="-g"
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8174/* end confdefs.h. */
5213506e 8175
1cf3d07d
SE
8176int
8177main ()
8178{
5213506e 8179
1cf3d07d
SE
8180 ;
8181 return 0;
8182}
8183_ACEOF
5213506e
RW
8184if ac_fn_cxx_try_compile "$LINENO"; then :
8185 ac_cv_prog_cxx_g=yes
1cf3d07d 8186fi
5213506e
RW
8187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8195$as_echo "$ac_cv_prog_cxx_g" >&6; }
8196if test "$ac_test_CXXFLAGS" = set; then
8197 CXXFLAGS=$ac_save_CXXFLAGS
8198elif test $ac_cv_prog_cxx_g = yes; then
8199 if test "$GXX" = yes; then
8200 CXXFLAGS="-g -O2"
8201 else
8202 CXXFLAGS="-g"
8203 fi
8204else
8205 if test "$GXX" = yes; then
8206 CXXFLAGS="-O2"
8207 else
8208 CXXFLAGS=
8209 fi
1cf3d07d 8210fi
1cf3d07d
SE
8211ac_ext=c
8212ac_cpp='$CPP $CPPFLAGS'
8213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8215ac_compiler_gnu=$ac_cv_c_compiler_gnu
8216
8217if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8218 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8219 (test "X$CXX" != "Xg++"))) ; then
5213506e 8220 ac_ext=cpp
1cf3d07d
SE
8221ac_cpp='$CXXCPP $CPPFLAGS'
8222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8226$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1cf3d07d 8227if test -z "$CXXCPP"; then
5213506e
RW
8228 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8230else
8231 # Double quotes because CXXCPP needs to be expanded
8232 for CXXCPP in "$CXX -E" "/lib/cpp"
8233 do
8234 ac_preproc_ok=false
8235for ac_cxx_preproc_warn_flag in '' yes
8236do
8237 # Use a header file that comes with gcc, so configuring glibc
8238 # with a fresh cross-compiler works.
8239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 # <limits.h> exists even on freestanding compilers.
8241 # On the NeXT, cc -E runs the code through the compiler's parser,
8242 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8244/* end confdefs.h. */
8245#ifdef __STDC__
8246# include <limits.h>
8247#else
8248# include <assert.h>
8249#endif
8250 Syntax error
8251_ACEOF
5213506e 8252if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d 8253
5213506e 8254else
1cf3d07d
SE
8255 # Broken: fails on valid input.
8256continue
8257fi
8258rm -f conftest.err conftest.$ac_ext
8259
5213506e 8260 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 8261 # can be detected and how.
5213506e 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8263/* end confdefs.h. */
8264#include <ac_nonexistent.h>
8265_ACEOF
5213506e 8266if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d
SE
8267 # Broken: success on invalid input.
8268continue
8269else
1cf3d07d
SE
8270 # Passes both tests.
8271ac_preproc_ok=:
8272break
8273fi
8274rm -f conftest.err conftest.$ac_ext
8275
8276done
8277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8278rm -f conftest.err conftest.$ac_ext
5213506e 8279if $ac_preproc_ok; then :
1cf3d07d
SE
8280 break
8281fi
8282
8283 done
8284 ac_cv_prog_CXXCPP=$CXXCPP
8285
8286fi
8287 CXXCPP=$ac_cv_prog_CXXCPP
8288else
8289 ac_cv_prog_CXXCPP=$CXXCPP
8290fi
5213506e
RW
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8292$as_echo "$CXXCPP" >&6; }
1cf3d07d
SE
8293ac_preproc_ok=false
8294for ac_cxx_preproc_warn_flag in '' yes
8295do
8296 # Use a header file that comes with gcc, so configuring glibc
8297 # with a fresh cross-compiler works.
8298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299 # <limits.h> exists even on freestanding compilers.
8300 # On the NeXT, cc -E runs the code through the compiler's parser,
8301 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8303/* end confdefs.h. */
8304#ifdef __STDC__
8305# include <limits.h>
8306#else
8307# include <assert.h>
8308#endif
8309 Syntax error
8310_ACEOF
5213506e 8311if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d 8312
5213506e 8313else
1cf3d07d
SE
8314 # Broken: fails on valid input.
8315continue
8316fi
8317rm -f conftest.err conftest.$ac_ext
8318
5213506e 8319 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 8320 # can be detected and how.
5213506e 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8322/* end confdefs.h. */
8323#include <ac_nonexistent.h>
8324_ACEOF
5213506e 8325if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d
SE
8326 # Broken: success on invalid input.
8327continue
8328else
1cf3d07d
SE
8329 # Passes both tests.
8330ac_preproc_ok=:
8331break
8332fi
8333rm -f conftest.err conftest.$ac_ext
8334
8335done
8336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8337rm -f conftest.err conftest.$ac_ext
5213506e
RW
8338if $ac_preproc_ok; then :
8339
1cf3d07d 8340else
5213506e
RW
8341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18c04407 8343_lt_caught_CXX_error=yes; }
1cf3d07d
SE
8344fi
8345
8346ac_ext=c
8347ac_cpp='$CPP $CPPFLAGS'
8348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8350ac_compiler_gnu=$ac_cv_c_compiler_gnu
8351
8352else
8353 _lt_caught_CXX_error=yes
8354fi
8355
8356
8357
8358
8359
25e5de9a
PG
8360# Set options
8361
8362
8363
8364
8365 enable_win32_dll=no
8366
8367
5213506e
RW
8368 # Check whether --enable-shared was given.
8369if test "${enable_shared+set}" = set; then :
8370 enableval=$enable_shared; p=${PACKAGE-default}
25e5de9a
PG
8371 case $enableval in
8372 yes) enable_shared=yes ;;
8373 no) enable_shared=no ;;
8374 *)
8375 enable_shared=no
8376 # Look at the argument we got. We use all the common list separators.
8377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8378 for pkg in $enableval; do
8379 IFS="$lt_save_ifs"
8380 if test "X$pkg" = "X$p"; then
8381 enable_shared=yes
8382 fi
8383 done
8384 IFS="$lt_save_ifs"
8385 ;;
8386 esac
8387else
8388 enable_shared=yes
5213506e 8389fi
25e5de9a
PG
8390
8391
8392
8393
8394
8395
8396
8397
5213506e
RW
8398
8399 # Check whether --enable-static was given.
8400if test "${enable_static+set}" = set; then :
8401 enableval=$enable_static; p=${PACKAGE-default}
25e5de9a
PG
8402 case $enableval in
8403 yes) enable_static=yes ;;
8404 no) enable_static=no ;;
8405 *)
8406 enable_static=no
8407 # Look at the argument we got. We use all the common list separators.
8408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8409 for pkg in $enableval; do
8410 IFS="$lt_save_ifs"
8411 if test "X$pkg" = "X$p"; then
8412 enable_static=yes
8413 fi
8414 done
8415 IFS="$lt_save_ifs"
8416 ;;
8417 esac
8418else
8419 enable_static=yes
5213506e 8420fi
25e5de9a
PG
8421
8422
8423
8424
8425
8426
8427
8428
8429
5213506e
RW
8430
8431# Check whether --with-pic was given.
8432if test "${with_pic+set}" = set; then :
8433 withval=$with_pic; pic_mode="$withval"
25e5de9a
PG
8434else
8435 pic_mode=default
5213506e
RW
8436fi
8437
25e5de9a
PG
8438
8439test -z "$pic_mode" && pic_mode=default
8440
8441
8442
8443
8444
8445
8446
5213506e
RW
8447 # Check whether --enable-fast-install was given.
8448if test "${enable_fast_install+set}" = set; then :
8449 enableval=$enable_fast_install; p=${PACKAGE-default}
25e5de9a
PG
8450 case $enableval in
8451 yes) enable_fast_install=yes ;;
8452 no) enable_fast_install=no ;;
8453 *)
8454 enable_fast_install=no
8455 # Look at the argument we got. We use all the common list separators.
8456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8457 for pkg in $enableval; do
8458 IFS="$lt_save_ifs"
8459 if test "X$pkg" = "X$p"; then
8460 enable_fast_install=yes
8461 fi
8462 done
8463 IFS="$lt_save_ifs"
8464 ;;
8465 esac
8466else
8467 enable_fast_install=yes
5213506e
RW
8468fi
8469
25e5de9a
PG
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
1cf3d07d
SE
8480# This can be used to rebuild libtool when needed
8481LIBTOOL_DEPS="$ltmain"
8482
8483# Always use our own libtool.
8484LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510test -z "$LN_S" && LN_S="ln -s"
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525if test -n "${ZSH_VERSION+set}" ; then
8526 setopt NO_GLOB_SUBST
8527fi
8528
5213506e
RW
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8530$as_echo_n "checking for objdir... " >&6; }
8531if test "${lt_cv_objdir+set}" = set; then :
8532 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8533else
8534 rm -f .libs 2>/dev/null
8535mkdir .libs 2>/dev/null
8536if test -d .libs; then
8537 lt_cv_objdir=.libs
8538else
8539 # MS-DOS does not allow filenames that begin with a dot.
8540 lt_cv_objdir=_libs
8541fi
8542rmdir .libs 2>/dev/null
8543fi
5213506e
RW
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8545$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
8546objdir=$lt_cv_objdir
8547
8548
8549
8550
8551
8552cat >>confdefs.h <<_ACEOF
8553#define LT_OBJDIR "$lt_cv_objdir/"
8554_ACEOF
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572case $host_os in
8573aix3*)
8574 # AIX sometimes has problems with the GCC collect2 program. For some
8575 # reason, if we set the COLLECT_NAMES environment variable, the problems
8576 # vanish in a puff of smoke.
8577 if test "X${COLLECT_NAMES+set}" != Xset; then
8578 COLLECT_NAMES=
8579 export COLLECT_NAMES
8580 fi
8581 ;;
8582esac
8583
8584# Sed substitution that helps us do robust quoting. It backslashifies
8585# metacharacters that are still active within double-quoted strings.
8586sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8587
8588# Same as above, but do not quote variable references.
8589double_quote_subst='s/\(["`\\]\)/\\\1/g'
8590
8591# Sed substitution to delay expansion of an escaped shell variable in a
8592# double_quote_subst'ed string.
8593delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8594
8595# Sed substitution to delay expansion of an escaped single quote.
8596delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8597
8598# Sed substitution to avoid accidental globbing in evaled expressions
8599no_glob_subst='s/\*/\\\*/g'
8600
8601# Global variables:
8602ofile=libtool
8603can_build_shared=yes
8604
8605# All known linkers require a `.a' archive for static linking (except MSVC,
8606# which needs '.lib').
8607libext=a
8608
8609with_gnu_ld="$lt_cv_prog_gnu_ld"
8610
8611old_CC="$CC"
8612old_CFLAGS="$CFLAGS"
8613
8614# Set sane defaults for various variables
8615test -z "$CC" && CC=cc
8616test -z "$LTCC" && LTCC=$CC
8617test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8618test -z "$LD" && LD=ld
8619test -z "$ac_objext" && ac_objext=o
8620
8621for cc_temp in $compiler""; do
8622 case $cc_temp in
8623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8625 \-*) ;;
8626 *) break;;
8627 esac
8628done
8629cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8630
8631
8632# Only perform the check for file, if the check method requires it
8633test -z "$MAGIC_CMD" && MAGIC_CMD=file
8634case $deplibs_check_method in
8635file_magic*)
8636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8638$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8639if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8641else
8642 case $MAGIC_CMD in
8643[\\/*] | ?:[\\/]*)
8644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 ;;
8646*)
8647 lt_save_MAGIC_CMD="$MAGIC_CMD"
8648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8650 for ac_dir in $ac_dummy; do
8651 IFS="$lt_save_ifs"
8652 test -z "$ac_dir" && ac_dir=.
8653 if test -f $ac_dir/${ac_tool_prefix}file; then
8654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8655 if test -n "$file_magic_test_file"; then
8656 case $deplibs_check_method in
8657 "file_magic "*)
8658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8661 $EGREP "$file_magic_regex" > /dev/null; then
8662 :
8663 else
8664 cat <<_LT_EOF 1>&2
8665
8666*** Warning: the command libtool uses to detect shared libraries,
8667*** $file_magic_cmd, produces output that libtool cannot recognize.
8668*** The result is that libtool may fail to recognize shared libraries
8669*** as such. This will affect the creation of libtool libraries that
8670*** depend on shared libraries, but programs linked with such libtool
8671*** libraries will work regardless of this problem. Nevertheless, you
8672*** may want to report the problem to your system manager and/or to
8673*** bug-libtool@gnu.org
8674
8675_LT_EOF
8676 fi ;;
8677 esac
8678 fi
8679 break
8680 fi
8681 done
8682 IFS="$lt_save_ifs"
8683 MAGIC_CMD="$lt_save_MAGIC_CMD"
8684 ;;
8685esac
8686fi
8687
8688MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8689if test -n "$MAGIC_CMD"; then
5213506e
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8691$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8692else
5213506e
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
1cf3d07d
SE
8695fi
8696
8697
8698
8699
8700
8701if test -z "$lt_cv_path_MAGIC_CMD"; then
8702 if test -n "$ac_tool_prefix"; then
5213506e
RW
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8704$as_echo_n "checking for file... " >&6; }
8705if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8707else
8708 case $MAGIC_CMD in
8709[\\/*] | ?:[\\/]*)
8710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8711 ;;
8712*)
8713 lt_save_MAGIC_CMD="$MAGIC_CMD"
8714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8716 for ac_dir in $ac_dummy; do
8717 IFS="$lt_save_ifs"
8718 test -z "$ac_dir" && ac_dir=.
8719 if test -f $ac_dir/file; then
8720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8721 if test -n "$file_magic_test_file"; then
8722 case $deplibs_check_method in
8723 "file_magic "*)
8724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8727 $EGREP "$file_magic_regex" > /dev/null; then
8728 :
8729 else
8730 cat <<_LT_EOF 1>&2
8731
8732*** Warning: the command libtool uses to detect shared libraries,
8733*** $file_magic_cmd, produces output that libtool cannot recognize.
8734*** The result is that libtool may fail to recognize shared libraries
8735*** as such. This will affect the creation of libtool libraries that
8736*** depend on shared libraries, but programs linked with such libtool
8737*** libraries will work regardless of this problem. Nevertheless, you
8738*** may want to report the problem to your system manager and/or to
8739*** bug-libtool@gnu.org
8740
8741_LT_EOF
8742 fi ;;
8743 esac
8744 fi
8745 break
8746 fi
8747 done
8748 IFS="$lt_save_ifs"
8749 MAGIC_CMD="$lt_save_MAGIC_CMD"
8750 ;;
8751esac
8752fi
8753
8754MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8755if test -n "$MAGIC_CMD"; then
5213506e
RW
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8757$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8758else
5213506e
RW
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760$as_echo "no" >&6; }
1cf3d07d
SE
8761fi
8762
8763
8764 else
8765 MAGIC_CMD=:
8766 fi
8767fi
8768
8769 fi
8770 ;;
8771esac
8772
8773# Use C for the default configuration in the libtool script
8774
8775lt_save_CC="$CC"
8776ac_ext=c
8777ac_cpp='$CPP $CPPFLAGS'
8778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8780ac_compiler_gnu=$ac_cv_c_compiler_gnu
8781
8782
8783# Source file extension for C test sources.
8784ac_ext=c
8785
8786# Object file extension for compiled C test sources.
8787objext=o
8788objext=$objext
8789
8790# Code to be used in simple compile tests
8791lt_simple_compile_test_code="int some_variable = 0;"
8792
8793# Code to be used in simple link tests
8794lt_simple_link_test_code='int main(){return(0);}'
8795
8796
8797
8798
8799
8800
8801
8802# If no C compiler was specified, use CC.
8803LTCC=${LTCC-"$CC"}
8804
8805# If no C compiler flags were specified, use CFLAGS.
8806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8807
8808# Allow CC to be a program name with arguments.
8809compiler=$CC
8810
8811# Save the default compiler, since it gets overwritten when the other
8812# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8813compiler_DEFAULT=$CC
8814
8815# save warnings/boilerplate of simple test code
8816ac_outfile=conftest.$ac_objext
8817echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8818eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8819_lt_compiler_boilerplate=`cat conftest.err`
8820$RM conftest*
8821
8822ac_outfile=conftest.$ac_objext
8823echo "$lt_simple_link_test_code" >conftest.$ac_ext
8824eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8825_lt_linker_boilerplate=`cat conftest.err`
25e5de9a 8826$RM -r conftest*
1cf3d07d
SE
8827
8828
8829## CAVEAT EMPTOR:
8830## There is no encapsulation within the following macros, do not change
8831## the running order or otherwise move them around unless you know exactly
8832## what you are doing...
8833if test -n "$compiler"; then
8834
8835lt_prog_compiler_no_builtin_flag=
8836
8837if test "$GCC" = yes; then
8838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8839
5213506e
RW
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8841$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8842if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8844else
8845 lt_cv_prog_compiler_rtti_exceptions=no
8846 ac_outfile=conftest.$ac_objext
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848 lt_compiler_flag="-fno-rtti -fno-exceptions"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 # The option is referenced via a variable to avoid confusing sed.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
5213506e 8858 (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
1cf3d07d
SE
8859 (eval "$lt_compile" 2>conftest.err)
8860 ac_status=$?
8861 cat conftest.err >&5
5213506e 8862 echo "$as_me:8862: \$? = $ac_status" >&5
1cf3d07d
SE
8863 if (exit $ac_status) && test -s "$ac_outfile"; then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings other than the usual output.
8866 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_rtti_exceptions=yes
8870 fi
8871 fi
8872 $RM conftest*
8873
8874fi
5213506e
RW
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8876$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
8877
8878if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8879 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8880else
8881 :
8882fi
8883
8884fi
8885
8886
8887
8888
8889
8890
8891 lt_prog_compiler_wl=
8892lt_prog_compiler_pic=
8893lt_prog_compiler_static=
8894
5213506e
RW
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8896$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
8897
8898 if test "$GCC" = yes; then
8899 lt_prog_compiler_wl='-Wl,'
8900 lt_prog_compiler_static='-static'
8901
8902 case $host_os in
8903 aix*)
8904 # All AIX code is PIC.
8905 if test "$host_cpu" = ia64; then
8906 # AIX 5 now supports IA64 processor
8907 lt_prog_compiler_static='-Bstatic'
8908 fi
8909 ;;
8910
8911 amigaos*)
25e5de9a
PG
8912 case $host_cpu in
8913 powerpc)
8914 # see comment about AmigaOS4 .so support
8915 lt_prog_compiler_pic='-fPIC'
8916 ;;
8917 m68k)
8918 # FIXME: we need at least 68020 code to build shared libraries, but
8919 # adding the `-m68020' flag to GCC prevents building anything better,
8920 # like `-m68040'.
8921 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8922 ;;
8923 esac
1cf3d07d
SE
8924 ;;
8925
8926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8927 # PIC is the default for these OSes.
8928 ;;
8929
25e5de9a 8930 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8931 # This hack is so that the source file can tell whether it is being
8932 # built for inclusion in a dll (and should export symbols for example).
8933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8934 # (--disable-auto-import) libraries
8935 lt_prog_compiler_pic='-DDLL_EXPORT'
8936 ;;
8937
8938 darwin* | rhapsody*)
8939 # PIC is the default on this platform
8940 # Common symbols not allowed in MH_DYLIB files
8941 lt_prog_compiler_pic='-fno-common'
8942 ;;
8943
8944 hpux*)
25e5de9a
PG
8945 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8946 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8947 # sets the default TLS model and affects inlining.
1cf3d07d 8948 case $host_cpu in
25e5de9a 8949 hppa*64*)
1cf3d07d
SE
8950 # +Z the default
8951 ;;
8952 *)
8953 lt_prog_compiler_pic='-fPIC'
8954 ;;
8955 esac
8956 ;;
8957
8958 interix[3-9]*)
8959 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8960 # Instead, we relocate shared libraries at runtime.
8961 ;;
8962
8963 msdosdjgpp*)
8964 # Just because we use GCC doesn't mean we suddenly get shared libraries
8965 # on systems that don't support them.
8966 lt_prog_compiler_can_build_shared=no
8967 enable_shared=no
8968 ;;
8969
8970 *nto* | *qnx*)
8971 # QNX uses GNU C++, but need to define -shared option too, otherwise
8972 # it will coredump.
8973 lt_prog_compiler_pic='-fPIC -shared'
8974 ;;
8975
8976 sysv4*MP*)
8977 if test -d /usr/nec; then
8978 lt_prog_compiler_pic=-Kconform_pic
8979 fi
8980 ;;
8981
8982 *)
8983 lt_prog_compiler_pic='-fPIC'
8984 ;;
8985 esac
8986 else
8987 # PORTME Check for flag to pass linker flags through the system compiler.
8988 case $host_os in
8989 aix*)
8990 lt_prog_compiler_wl='-Wl,'
8991 if test "$host_cpu" = ia64; then
8992 # AIX 5 now supports IA64 processor
8993 lt_prog_compiler_static='-Bstatic'
8994 else
8995 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8996 fi
8997 ;;
1cf3d07d 8998
25e5de9a 8999 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9000 # This hack is so that the source file can tell whether it is being
9001 # built for inclusion in a dll (and should export symbols for example).
9002 lt_prog_compiler_pic='-DDLL_EXPORT'
9003 ;;
9004
9005 hpux9* | hpux10* | hpux11*)
9006 lt_prog_compiler_wl='-Wl,'
9007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9008 # not for PA HP-UX.
9009 case $host_cpu in
9010 hppa*64*|ia64*)
9011 # +Z the default
9012 ;;
9013 *)
9014 lt_prog_compiler_pic='+Z'
9015 ;;
9016 esac
9017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9018 lt_prog_compiler_static='${wl}-a ${wl}archive'
9019 ;;
9020
9021 irix5* | irix6* | nonstopux*)
9022 lt_prog_compiler_wl='-Wl,'
9023 # PIC (with -KPIC) is the default.
9024 lt_prog_compiler_static='-non_shared'
9025 ;;
9026
7a9d3fe8 9027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9028 case $cc_basename in
25e5de9a
PG
9029 # old Intel for x86_64 which still supported -KPIC.
9030 ecc*)
1cf3d07d
SE
9031 lt_prog_compiler_wl='-Wl,'
9032 lt_prog_compiler_pic='-KPIC'
9033 lt_prog_compiler_static='-static'
9034 ;;
25e5de9a
PG
9035 # icc used to be incompatible with GCC.
9036 # ICC 10 doesn't accept -KPIC any more.
9037 icc* | ifort*)
9038 lt_prog_compiler_wl='-Wl,'
9039 lt_prog_compiler_pic='-fPIC'
9040 lt_prog_compiler_static='-static'
9041 ;;
9042 # Lahey Fortran 8.1.
9043 lf95*)
9044 lt_prog_compiler_wl='-Wl,'
9045 lt_prog_compiler_pic='--shared'
9046 lt_prog_compiler_static='--static'
9047 ;;
1cf3d07d
SE
9048 pgcc* | pgf77* | pgf90* | pgf95*)
9049 # Portland Group compilers (*not* the Pentium gcc compiler,
9050 # which looks to be a dead project)
9051 lt_prog_compiler_wl='-Wl,'
9052 lt_prog_compiler_pic='-fpic'
9053 lt_prog_compiler_static='-Bstatic'
9054 ;;
9055 ccc*)
9056 lt_prog_compiler_wl='-Wl,'
9057 # All Alpha code is PIC.
9058 lt_prog_compiler_static='-non_shared'
9059 ;;
25e5de9a
PG
9060 xl*)
9061 # IBM XL C 8.0/Fortran 10.1 on PPC
9062 lt_prog_compiler_wl='-Wl,'
9063 lt_prog_compiler_pic='-qpic'
9064 lt_prog_compiler_static='-qstaticlink'
9065 ;;
1cf3d07d
SE
9066 *)
9067 case `$CC -V 2>&1 | sed 5q` in
9068 *Sun\ C*)
9069 # Sun C 5.9
9070 lt_prog_compiler_pic='-KPIC'
9071 lt_prog_compiler_static='-Bstatic'
9072 lt_prog_compiler_wl='-Wl,'
9073 ;;
9074 *Sun\ F*)
9075 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9076 lt_prog_compiler_pic='-KPIC'
9077 lt_prog_compiler_static='-Bstatic'
9078 lt_prog_compiler_wl=''
9079 ;;
9080 esac
9081 ;;
9082 esac
9083 ;;
9084
9085 newsos6)
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-Bstatic'
9088 ;;
9089
9090 *nto* | *qnx*)
9091 # QNX uses GNU C++, but need to define -shared option too, otherwise
9092 # it will coredump.
9093 lt_prog_compiler_pic='-fPIC -shared'
9094 ;;
9095
9096 osf3* | osf4* | osf5*)
9097 lt_prog_compiler_wl='-Wl,'
9098 # All OSF/1 code is PIC.
9099 lt_prog_compiler_static='-non_shared'
9100 ;;
9101
9102 rdos*)
9103 lt_prog_compiler_static='-non_shared'
9104 ;;
9105
9106 solaris*)
9107 lt_prog_compiler_pic='-KPIC'
9108 lt_prog_compiler_static='-Bstatic'
9109 case $cc_basename in
9110 f77* | f90* | f95*)
9111 lt_prog_compiler_wl='-Qoption ld ';;
9112 *)
9113 lt_prog_compiler_wl='-Wl,';;
9114 esac
9115 ;;
9116
9117 sunos4*)
9118 lt_prog_compiler_wl='-Qoption ld '
9119 lt_prog_compiler_pic='-PIC'
9120 lt_prog_compiler_static='-Bstatic'
9121 ;;
9122
9123 sysv4 | sysv4.2uw2* | sysv4.3*)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-KPIC'
9126 lt_prog_compiler_static='-Bstatic'
9127 ;;
9128
9129 sysv4*MP*)
9130 if test -d /usr/nec ;then
9131 lt_prog_compiler_pic='-Kconform_pic'
9132 lt_prog_compiler_static='-Bstatic'
9133 fi
9134 ;;
9135
9136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9137 lt_prog_compiler_wl='-Wl,'
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9140 ;;
9141
9142 unicos*)
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_can_build_shared=no
9145 ;;
9146
9147 uts4*)
9148 lt_prog_compiler_pic='-pic'
9149 lt_prog_compiler_static='-Bstatic'
9150 ;;
9151
9152 *)
9153 lt_prog_compiler_can_build_shared=no
9154 ;;
9155 esac
9156 fi
9157
9158case $host_os in
9159 # For platforms which do not support PIC, -DPIC is meaningless:
9160 *djgpp*)
9161 lt_prog_compiler_pic=
9162 ;;
9163 *)
9164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9165 ;;
9166esac
5213506e
RW
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9168$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9169
9170
9171
9172
9173
9174
9175#
9176# Check to make sure the PIC flag actually works.
9177#
9178if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9180$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9181if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
1cf3d07d 9183else
25e5de9a 9184 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9185 ac_outfile=conftest.$ac_objext
9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
5213506e 9197 (eval echo "\"\$as_me:9197: $lt_compile\"" >&5)
1cf3d07d
SE
9198 (eval "$lt_compile" 2>conftest.err)
9199 ac_status=$?
9200 cat conftest.err >&5
5213506e 9201 echo "$as_me:9201: \$? = $ac_status" >&5
1cf3d07d
SE
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
9205 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25e5de9a 9208 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9209 fi
9210 fi
9211 $RM conftest*
9212
9213fi
5213506e
RW
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9215$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9216
25e5de9a 9217if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9218 case $lt_prog_compiler_pic in
9219 "" | " "*) ;;
9220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9221 esac
9222else
9223 lt_prog_compiler_pic=
9224 lt_prog_compiler_can_build_shared=no
9225fi
9226
9227fi
9228
9229
9230
9231
9232
9233
9234#
9235# Check to make sure the static flag actually works.
9236#
9237wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9239$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9240if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
1cf3d07d 9242else
25e5de9a 9243 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9244 save_LDFLAGS="$LDFLAGS"
9245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9248 # The linker can only warn and ignore the option if not recognized
9249 # So say no if there are warnings
9250 if test -s conftest.err; then
9251 # Append any errors to the config.log.
9252 cat conftest.err 1>&5
9253 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9255 if diff conftest.exp conftest.er2 >/dev/null; then
25e5de9a 9256 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9257 fi
9258 else
25e5de9a 9259 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9260 fi
9261 fi
25e5de9a 9262 $RM -r conftest*
1cf3d07d
SE
9263 LDFLAGS="$save_LDFLAGS"
9264
9265fi
5213506e
RW
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9267$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9268
25e5de9a 9269if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9270 :
9271else
9272 lt_prog_compiler_static=
9273fi
9274
9275
9276
9277
9278
9279
9280
5213506e
RW
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9282$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9283if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9285else
9286 lt_cv_prog_compiler_c_o=no
9287 $RM -r conftest 2>/dev/null
9288 mkdir conftest
9289 cd conftest
9290 mkdir out
9291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9292
9293 lt_compiler_flag="-o out/conftest2.$ac_objext"
9294 # Insert the option either (1) after the last *FLAGS variable, or
9295 # (2) before a word containing "conftest.", or (3) at the end.
9296 # Note that $ac_compile itself does not contain backslashes and begins
9297 # with a dollar sign (not a hyphen), so the echo should work correctly.
9298 lt_compile=`echo "$ac_compile" | $SED \
9299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9301 -e 's:$: $lt_compiler_flag:'`
5213506e 9302 (eval echo "\"\$as_me:9302: $lt_compile\"" >&5)
1cf3d07d
SE
9303 (eval "$lt_compile" 2>out/conftest.err)
9304 ac_status=$?
9305 cat out/conftest.err >&5
5213506e 9306 echo "$as_me:9306: \$? = $ac_status" >&5
1cf3d07d
SE
9307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9308 then
9309 # The compiler can only warn and ignore the option if not recognized
9310 # So say no if there are warnings
9311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9314 lt_cv_prog_compiler_c_o=yes
9315 fi
9316 fi
9317 chmod u+w . 2>&5
9318 $RM conftest*
9319 # SGI C++ compiler will create directory out/ii_files/ for
9320 # template instantiation
9321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9322 $RM out/* && rmdir out
9323 cd ..
9324 $RM -r conftest
9325 $RM conftest*
9326
9327fi
5213506e
RW
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9329$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9330
9331
9332
9333
9334
9335
5213506e
RW
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9337$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9338if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9340else
9341 lt_cv_prog_compiler_c_o=no
9342 $RM -r conftest 2>/dev/null
9343 mkdir conftest
9344 cd conftest
9345 mkdir out
9346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9347
9348 lt_compiler_flag="-o out/conftest2.$ac_objext"
9349 # Insert the option either (1) after the last *FLAGS variable, or
9350 # (2) before a word containing "conftest.", or (3) at the end.
9351 # Note that $ac_compile itself does not contain backslashes and begins
9352 # with a dollar sign (not a hyphen), so the echo should work correctly.
9353 lt_compile=`echo "$ac_compile" | $SED \
9354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9356 -e 's:$: $lt_compiler_flag:'`
5213506e 9357 (eval echo "\"\$as_me:9357: $lt_compile\"" >&5)
1cf3d07d
SE
9358 (eval "$lt_compile" 2>out/conftest.err)
9359 ac_status=$?
9360 cat out/conftest.err >&5
5213506e 9361 echo "$as_me:9361: \$? = $ac_status" >&5
1cf3d07d
SE
9362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9363 then
9364 # The compiler can only warn and ignore the option if not recognized
9365 # So say no if there are warnings
9366 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9369 lt_cv_prog_compiler_c_o=yes
9370 fi
9371 fi
9372 chmod u+w . 2>&5
9373 $RM conftest*
9374 # SGI C++ compiler will create directory out/ii_files/ for
9375 # template instantiation
9376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9377 $RM out/* && rmdir out
9378 cd ..
9379 $RM -r conftest
9380 $RM conftest*
9381
9382fi
5213506e
RW
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9384$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9385
9386
9387
9388
9389hard_links="nottested"
9390if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9391 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9393$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9394 hard_links=yes
9395 $RM conftest*
9396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9397 touch conftest.a
9398 ln conftest.a conftest.b 2>&5 || hard_links=no
9399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9401$as_echo "$hard_links" >&6; }
1cf3d07d 9402 if test "$hard_links" = no; then
5213506e
RW
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9404$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9405 need_locks=warn
9406 fi
9407else
9408 need_locks=no
9409fi
9410
9411
9412
9413
9414
9415
5213506e
RW
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9417$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9418
9419 runpath_var=
9420 allow_undefined_flag=
9421 always_export_symbols=no
9422 archive_cmds=
9423 archive_expsym_cmds=
9424 compiler_needs_object=no
9425 enable_shared_with_static_runtimes=no
9426 export_dynamic_flag_spec=
9427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9428 hardcode_automatic=no
9429 hardcode_direct=no
9430 hardcode_direct_absolute=no
9431 hardcode_libdir_flag_spec=
9432 hardcode_libdir_flag_spec_ld=
9433 hardcode_libdir_separator=
9434 hardcode_minus_L=no
9435 hardcode_shlibpath_var=unsupported
9436 inherit_rpath=no
9437 link_all_deplibs=unknown
9438 module_cmds=
9439 module_expsym_cmds=
9440 old_archive_from_new_cmds=
9441 old_archive_from_expsyms_cmds=
9442 thread_safe_flag_spec=
9443 whole_archive_flag_spec=
9444 # include_expsyms should be a list of space-separated symbols to be *always*
9445 # included in the symbol list
9446 include_expsyms=
9447 # exclude_expsyms can be an extended regexp of symbols to exclude
9448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9450 # as well as any symbol that contains `d'.
25e5de9a 9451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9453 # platforms (ab)use it in PIC code, but their linkers get confused if
9454 # the symbol is explicitly referenced. Since portable code cannot
9455 # rely on this symbol name, it's probably fine to never include it in
9456 # preloaded symbol tables.
25e5de9a 9457 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9458 extract_expsyms_cmds=
9459
9460 case $host_os in
25e5de9a 9461 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9463 # When not using gcc, we currently assume that we are using
9464 # Microsoft Visual C++.
9465 if test "$GCC" != yes; then
9466 with_gnu_ld=no
9467 fi
9468 ;;
9469 interix*)
9470 # we just hope/assume this is gcc and not c89 (= MSVC++)
9471 with_gnu_ld=yes
9472 ;;
9473 openbsd*)
9474 with_gnu_ld=no
9475 ;;
9476 esac
9477
9478 ld_shlibs=yes
9479 if test "$with_gnu_ld" = yes; then
9480 # If archive_cmds runs LD, not CC, wlarc should be empty
9481 wlarc='${wl}'
9482
9483 # Set some defaults for GNU ld with shared library support. These
9484 # are reset later if shared libraries are not supported. Putting them
9485 # here allows them to be overridden if necessary.
9486 runpath_var=LD_RUN_PATH
9487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488 export_dynamic_flag_spec='${wl}--export-dynamic'
9489 # ancient GNU ld didn't support --whole-archive et. al.
9490 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9491 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9492 else
9493 whole_archive_flag_spec=
9494 fi
9495 supports_anon_versioning=no
9496 case `$LD -v 2>&1` in
9497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9500 *\ 2.11.*) ;; # other 2.11 versions
9501 *) supports_anon_versioning=yes ;;
9502 esac
9503
9504 # See if GNU ld supports shared libraries.
9505 case $host_os in
716e4bc6 9506 aix[3-9]*)
1cf3d07d
SE
9507 # On AIX/PPC, the GNU linker is very broken
9508 if test "$host_cpu" != ia64; then
9509 ld_shlibs=no
9510 cat <<_LT_EOF 1>&2
9511
9512*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9513*** to be unable to reliably create shared libraries on AIX.
9514*** Therefore, libtool is disabling shared libraries support. If you
9515*** really care for shared libraries, you may want to modify your PATH
9516*** so that a non-GNU linker is found, and then restart.
9517
9518_LT_EOF
9519 fi
9520 ;;
9521
9522 amigaos*)
25e5de9a
PG
9523 case $host_cpu in
9524 powerpc)
9525 # see comment about AmigaOS4 .so support
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds=''
9528 ;;
9529 m68k)
9530 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)'
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9533 ;;
9534 esac
1cf3d07d
SE
9535 ;;
9536
9537 beos*)
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 allow_undefined_flag=unsupported
9540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9541 # support --undefined. This deserves some investigation. FIXME
9542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 else
9544 ld_shlibs=no
9545 fi
9546 ;;
9547
25e5de9a 9548 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9550 # as there is no search path for DLLs.
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 allow_undefined_flag=unsupported
9553 always_export_symbols=no
9554 enable_shared_with_static_runtimes=yes
9555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9556
9557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9559 # If the export-symbols file already is a .def file (1st line
9560 # is EXPORTS), use it as is; otherwise, prepend...
9561 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9562 cp $export_symbols $output_objdir/$soname.def;
9563 else
9564 echo EXPORTS > $output_objdir/$soname.def;
9565 cat $export_symbols >> $output_objdir/$soname.def;
9566 fi~
9567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9568 else
9569 ld_shlibs=no
9570 fi
9571 ;;
9572
9573 interix[3-9]*)
9574 hardcode_direct=no
9575 hardcode_shlibpath_var=no
9576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577 export_dynamic_flag_spec='${wl}-E'
9578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9579 # Instead, shared libraries are loaded at an image base (0x10000000 by
9580 # default) and relocated if they conflict, which is a slow very memory
9581 # consuming and fragmenting process. To avoid this, we pick a random,
9582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9584 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9585 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'
9586 ;;
9587
7a9d3fe8 9588 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9589 tmp_diet=no
9590 if test "$host_os" = linux-dietlibc; then
9591 case $cc_basename in
9592 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9593 esac
9594 fi
9595 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9596 && test "$tmp_diet" = no
9597 then
9598 tmp_addflag=
25e5de9a 9599 tmp_sharedflag='-shared'
1cf3d07d
SE
9600 case $cc_basename,$host_cpu in
9601 pgcc*) # Portland Group C compiler
9602 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'
9603 tmp_addflag=' $pic_flag'
9604 ;;
9605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9606 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'
9607 tmp_addflag=' $pic_flag -Mnomain' ;;
9608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9609 tmp_addflag=' -i_dynamic' ;;
9610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9611 tmp_addflag=' -i_dynamic -nofor_main' ;;
9612 ifc* | ifort*) # Intel Fortran compiler
9613 tmp_addflag=' -nofor_main' ;;
25e5de9a
PG
9614 lf95*) # Lahey Fortran 8.1
9615 whole_archive_flag_spec=
9616 tmp_sharedflag='--shared' ;;
9617 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9618 tmp_sharedflag='-qmkshrobj'
9619 tmp_addflag= ;;
1cf3d07d
SE
9620 esac
9621 case `$CC -V 2>&1 | sed 5q` in
9622 *Sun\ C*) # Sun C 5.9
9623 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9624 compiler_needs_object=yes
9625 tmp_sharedflag='-G' ;;
9626 *Sun\ F*) # Sun Fortran 8.3
9627 tmp_sharedflag='-G' ;;
1cf3d07d
SE
9628 esac
9629 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630
9631 if test "x$supports_anon_versioning" = xyes; then
9632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9634 echo "local: *; };" >> $output_objdir/$libname.ver~
9635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9636 fi
25e5de9a
PG
9637
9638 case $cc_basename in
9639 xlf*)
9640 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9641 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9642 hardcode_libdir_flag_spec=
9643 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9644 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9645 if test "x$supports_anon_versioning" = xyes; then
9646 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9648 echo "local: *; };" >> $output_objdir/$libname.ver~
9649 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9650 fi
9651 ;;
9652 esac
1cf3d07d
SE
9653 else
9654 ld_shlibs=no
9655 fi
9656 ;;
9657
9658 netbsd*)
9659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9660 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9661 wlarc=
9662 else
9663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9665 fi
9666 ;;
9667
9668 solaris*)
9669 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9670 ld_shlibs=no
9671 cat <<_LT_EOF 1>&2
9672
9673*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9674*** create shared libraries on Solaris systems. Therefore, libtool
9675*** is disabling shared libraries support. We urge you to upgrade GNU
9676*** binutils to release 2.9.1 or newer. Another option is to modify
9677*** your PATH or compiler configuration so that the native linker is
9678*** used, and then restart.
9679
9680_LT_EOF
9681 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684 else
9685 ld_shlibs=no
9686 fi
9687 ;;
9688
9689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9690 case `$LD -v 2>&1` in
9691 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9692 ld_shlibs=no
9693 cat <<_LT_EOF 1>&2
9694
9695*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9696*** reliably create shared libraries on SCO systems. Therefore, libtool
9697*** is disabling shared libraries support. We urge you to upgrade GNU
9698*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9699*** your PATH or compiler configuration so that the native linker is
9700*** used, and then restart.
9701
9702_LT_EOF
9703 ;;
9704 *)
9705 # For security reasons, it is highly recommended that you always
9706 # use absolute paths for naming shared libraries, and exclude the
9707 # DT_RUNPATH tag from executables and libraries. But doing so
9708 # requires that you compile everything twice, which is a pain.
9709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9713 else
9714 ld_shlibs=no
9715 fi
9716 ;;
9717 esac
9718 ;;
9719
9720 sunos4*)
9721 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9722 wlarc=
9723 hardcode_direct=yes
9724 hardcode_shlibpath_var=no
9725 ;;
9726
9727 *)
9728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9731 else
9732 ld_shlibs=no
9733 fi
9734 ;;
9735 esac
9736
9737 if test "$ld_shlibs" = no; then
9738 runpath_var=
9739 hardcode_libdir_flag_spec=
9740 export_dynamic_flag_spec=
9741 whole_archive_flag_spec=
9742 fi
9743 else
9744 # PORTME fill in a description of your system's linker (not GNU ld)
9745 case $host_os in
9746 aix3*)
9747 allow_undefined_flag=unsupported
9748 always_export_symbols=yes
9749 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'
9750 # Note: this linker hardcodes the directories in LIBPATH if there
9751 # are no directories specified by -L.
9752 hardcode_minus_L=yes
9753 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9754 # Neither direct hardcoding nor static linking is supported with a
9755 # broken collect2.
9756 hardcode_direct=unsupported
9757 fi
9758 ;;
9759
716e4bc6 9760 aix[4-9]*)
1cf3d07d
SE
9761 if test "$host_cpu" = ia64; then
9762 # On IA64, the linker does run time linking by default, so we don't
9763 # have to do anything special.
9764 aix_use_runtimelinking=no
9765 exp_sym_flag='-Bexport'
9766 no_entry_flag=""
9767 else
9768 # If we're using GNU nm, then we don't want the "-C" option.
9769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9771 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'
9772 else
9773 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'
9774 fi
9775 aix_use_runtimelinking=no
9776
9777 # Test if we are trying to use run time linking or normal
9778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9779 # need to do runtime linking.
716e4bc6 9780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
9781 for ld_flag in $LDFLAGS; do
9782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9783 aix_use_runtimelinking=yes
9784 break
9785 fi
9786 done
9787 ;;
9788 esac
9789
9790 exp_sym_flag='-bexport'
9791 no_entry_flag='-bnoentry'
9792 fi
9793
9794 # When large executables or shared objects are built, AIX ld can
9795 # have problems creating the table of contents. If linking a library
9796 # or program results in "error TOC overflow" add -mminimal-toc to
9797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9799
9800 archive_cmds=''
9801 hardcode_direct=yes
9802 hardcode_direct_absolute=yes
9803 hardcode_libdir_separator=':'
9804 link_all_deplibs=yes
9805 file_list_spec='${wl}-f,'
9806
9807 if test "$GCC" = yes; then
9808 case $host_os in aix4.[012]|aix4.[012].*)
9809 # We only want to do this on AIX 4.2 and lower, the check
9810 # below for broken collect2 doesn't work under 4.3+
9811 collect2name=`${CC} -print-prog-name=collect2`
9812 if test -f "$collect2name" &&
9813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9814 then
9815 # We have reworked collect2
9816 :
9817 else
9818 # We have old collect2
9819 hardcode_direct=unsupported
9820 # It fails to find uninstalled libraries when the uninstalled
9821 # path is not listed in the libpath. Setting hardcode_minus_L
9822 # to unsupported forces relinking
9823 hardcode_minus_L=yes
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_libdir_separator=
9826 fi
9827 ;;
9828 esac
9829 shared_flag='-shared'
9830 if test "$aix_use_runtimelinking" = yes; then
9831 shared_flag="$shared_flag "'${wl}-G'
9832 fi
9833 else
9834 # not using gcc
9835 if test "$host_cpu" = ia64; then
9836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9837 # chokes on -Wl,-G. The following line is correct:
9838 shared_flag='-G'
9839 else
9840 if test "$aix_use_runtimelinking" = yes; then
9841 shared_flag='${wl}-G'
9842 else
9843 shared_flag='${wl}-bM:SRE'
9844 fi
9845 fi
9846 fi
9847
25e5de9a 9848 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
9849 # It seems that -bexpall does not export symbols beginning with
9850 # underscore (_), so it is better to generate a list of symbols to export.
9851 always_export_symbols=yes
9852 if test "$aix_use_runtimelinking" = yes; then
9853 # Warning - without using the other runtime loading flags (-brtl),
9854 # -berok will link without error, but may produce a broken library.
9855 allow_undefined_flag='-berok'
9856 # Determine the default libpath from the value encoded in an
9857 # empty executable.
9858 if test x$gcc_no_link = xyes; then
5213506e 9859 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9860fi
5213506e 9861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9862/* end confdefs.h. */
9863
9864int
9865main ()
9866{
9867
9868 ;
9869 return 0;
9870}
9871_ACEOF
5213506e 9872if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9873
9874lt_aix_libpath_sed='
9875 /Import File Strings/,/^$/ {
9876 /^0/ {
9877 s/^0 *\(.*\)$/\1/
9878 p
9879 }
9880 }'
9881aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882# Check for a 64-bit object if we didn't find anything.
9883if test -z "$aix_libpath"; then
9884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9885fi
1cf3d07d 9886fi
5213506e
RW
9887rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9889if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9890
9891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9892 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9893 else
9894 if test "$host_cpu" = ia64; then
9895 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9896 allow_undefined_flag="-z nodefs"
9897 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"
9898 else
9899 # Determine the default libpath from the value encoded in an
9900 # empty executable.
9901 if test x$gcc_no_link = xyes; then
5213506e 9902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9903fi
5213506e 9904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9905/* end confdefs.h. */
9906
9907int
9908main ()
9909{
9910
9911 ;
9912 return 0;
9913}
9914_ACEOF
5213506e 9915if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9916
9917lt_aix_libpath_sed='
9918 /Import File Strings/,/^$/ {
9919 /^0/ {
9920 s/^0 *\(.*\)$/\1/
9921 p
9922 }
9923 }'
9924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925# Check for a 64-bit object if we didn't find anything.
9926if test -z "$aix_libpath"; then
9927 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9928fi
1cf3d07d 9929fi
5213506e
RW
9930rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9933
9934 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9935 # Warning - without using the other run time loading flags,
9936 # -berok will link without error, but may produce a broken library.
9937 no_undefined_flag=' ${wl}-bernotok'
9938 allow_undefined_flag=' ${wl}-berok'
9939 # Exported symbols can be pulled into shared objects from archives
9940 whole_archive_flag_spec='$convenience'
9941 archive_cmds_need_lc=yes
9942 # This is similar to how AIX traditionally builds its shared libraries.
9943 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'
9944 fi
9945 fi
9946 ;;
9947
9948 amigaos*)
25e5de9a
PG
9949 case $host_cpu in
9950 powerpc)
9951 # see comment about AmigaOS4 .so support
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds=''
9954 ;;
9955 m68k)
9956 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)'
9957 hardcode_libdir_flag_spec='-L$libdir'
9958 hardcode_minus_L=yes
9959 ;;
9960 esac
1cf3d07d
SE
9961 ;;
9962
9963 bsdi[45]*)
9964 export_dynamic_flag_spec=-rdynamic
9965 ;;
9966
25e5de9a 9967 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9968 # When not using gcc, we currently assume that we are using
9969 # Microsoft Visual C++.
9970 # hardcode_libdir_flag_spec is actually meaningless, as there is
9971 # no search path for DLLs.
9972 hardcode_libdir_flag_spec=' '
9973 allow_undefined_flag=unsupported
9974 # Tell ltmain to make .lib files, not .a files.
9975 libext=lib
9976 # Tell ltmain to make .dll files, not .so files.
9977 shrext_cmds=".dll"
9978 # FIXME: Setting linknames here is a bad hack.
9979 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9980 # The linker will automatically build a .lib file if we build a DLL.
9981 old_archive_from_new_cmds='true'
9982 # FIXME: Should let the user specify the lib program.
9983 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9984 fix_srcfile_path='`cygpath -w "$srcfile"`'
9985 enable_shared_with_static_runtimes=yes
9986 ;;
9987
9988 darwin* | rhapsody*)
1cf3d07d 9989
25e5de9a
PG
9990
9991 archive_cmds_need_lc=no
9992 hardcode_direct=no
9993 hardcode_automatic=yes
9994 hardcode_shlibpath_var=unsupported
9995 whole_archive_flag_spec=''
9996 link_all_deplibs=yes
9997 allow_undefined_flag="$_lt_dar_allow_undefined"
9998 case $cc_basename in
9999 ifort*) _lt_dar_can_shared=yes ;;
10000 *) _lt_dar_can_shared=$GCC ;;
10001 esac
10002 if test "$_lt_dar_can_shared" = "yes"; then
10003 output_verbose_link_cmd=echo
10004 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10005 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10006 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10007 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10008
10009 else
10010 ld_shlibs=no
10011 fi
10012
1cf3d07d
SE
10013 ;;
10014
10015 dgux*)
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_libdir_flag_spec='-L$libdir'
10018 hardcode_shlibpath_var=no
10019 ;;
10020
10021 freebsd1*)
10022 ld_shlibs=no
10023 ;;
10024
10025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10026 # support. Future versions do this automatically, but an explicit c++rt0.o
10027 # does not break anything, and helps significantly (at the cost of a little
10028 # extra space).
10029 freebsd2.2*)
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_direct=yes
10033 hardcode_shlibpath_var=no
10034 ;;
10035
10036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10037 freebsd2*)
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10045 freebsd* | dragonfly*)
10046 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 hpux9*)
10053 if test "$GCC" = yes; then
10054 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'
10055 else
10056 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'
10057 fi
10058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_direct=yes
10061
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10065 export_dynamic_flag_spec='${wl}-E'
10066 ;;
10067
10068 hpux10*)
10069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 else
10072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10073 fi
10074 if test "$with_gnu_ld" = no; then
10075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10076 hardcode_libdir_flag_spec_ld='+b $libdir'
10077 hardcode_libdir_separator=:
10078 hardcode_direct=yes
10079 hardcode_direct_absolute=yes
10080 export_dynamic_flag_spec='${wl}-E'
10081 # hardcode_minus_L: Not really in the search PATH,
10082 # but as the default location of the library.
10083 hardcode_minus_L=yes
10084 fi
10085 ;;
10086
10087 hpux11*)
10088 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10089 case $host_cpu in
10090 hppa*64*)
10091 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 ;;
10093 ia64*)
25e5de9a 10094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10095 ;;
10096 *)
10097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10098 ;;
10099 esac
10100 else
10101 case $host_cpu in
10102 hppa*64*)
10103 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 ;;
10105 ia64*)
10106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10107 ;;
10108 *)
10109 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10110 ;;
10111 esac
10112 fi
10113 if test "$with_gnu_ld" = no; then
10114 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10115 hardcode_libdir_separator=:
10116
10117 case $host_cpu in
10118 hppa*64*|ia64*)
10119 hardcode_direct=no
10120 hardcode_shlibpath_var=no
10121 ;;
10122 *)
10123 hardcode_direct=yes
10124 hardcode_direct_absolute=yes
10125 export_dynamic_flag_spec='${wl}-E'
10126
10127 # hardcode_minus_L: Not really in the search PATH,
10128 # but as the default location of the library.
10129 hardcode_minus_L=yes
10130 ;;
10131 esac
10132 fi
10133 ;;
10134
10135 irix5* | irix6* | nonstopux*)
10136 if test "$GCC" = yes; then
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10138 # Try to use the -exported_symbol ld option, if it does not
10139 # work, assume that -exports_file does not work either and
10140 # implicitly export all symbols.
10141 save_LDFLAGS="$LDFLAGS"
10142 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10143 if test x$gcc_no_link = xyes; then
5213506e 10144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10145fi
5213506e
RW
10146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h. */
1cf3d07d
SE
10148int foo(void) {}
10149_ACEOF
5213506e 10150if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10152
1cf3d07d 10153fi
5213506e
RW
10154rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10156 LDFLAGS="$save_LDFLAGS"
10157 else
10158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10160 fi
10161 archive_cmds_need_lc='no'
10162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10163 hardcode_libdir_separator=:
10164 inherit_rpath=yes
10165 link_all_deplibs=yes
10166 ;;
10167
10168 netbsd*)
10169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10171 else
10172 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10173 fi
10174 hardcode_libdir_flag_spec='-R$libdir'
10175 hardcode_direct=yes
10176 hardcode_shlibpath_var=no
10177 ;;
10178
10179 newsos6)
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_direct=yes
10182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10183 hardcode_libdir_separator=:
10184 hardcode_shlibpath_var=no
10185 ;;
10186
10187 *nto* | *qnx*)
10188 ;;
10189
10190 openbsd*)
25e5de9a
PG
10191 if test -f /usr/libexec/ld.so; then
10192 hardcode_direct=yes
10193 hardcode_shlibpath_var=no
10194 hardcode_direct_absolute=yes
10195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25e5de9a 10197 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
25e5de9a
PG
10199 export_dynamic_flag_spec='${wl}-E'
10200 else
10201 case $host_os in
10202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_libdir_flag_spec='-R$libdir'
10205 ;;
10206 *)
10207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10209 ;;
10210 esac
10211 fi
10212 else
10213 ld_shlibs=no
1cf3d07d
SE
10214 fi
10215 ;;
10216
10217 os2*)
10218 hardcode_libdir_flag_spec='-L$libdir'
10219 hardcode_minus_L=yes
10220 allow_undefined_flag=unsupported
10221 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'
10222 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10223 ;;
10224
10225 osf3*)
10226 if test "$GCC" = yes; then
10227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10228 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10229 else
10230 allow_undefined_flag=' -expect_unresolved \*'
10231 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10232 fi
10233 archive_cmds_need_lc='no'
10234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235 hardcode_libdir_separator=:
10236 ;;
10237
10238 osf4* | osf5*) # as osf3* with the addition of -msym flag
10239 if test "$GCC" = yes; then
10240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10241 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10243 else
10244 allow_undefined_flag=' -expect_unresolved \*'
10245 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10246 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10247 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10248
10249 # Both c and cxx compiler support -rpath directly
10250 hardcode_libdir_flag_spec='-rpath $libdir'
10251 fi
10252 archive_cmds_need_lc='no'
10253 hardcode_libdir_separator=:
10254 ;;
10255
10256 solaris*)
10257 no_undefined_flag=' -z defs'
10258 if test "$GCC" = yes; then
10259 wlarc='${wl}'
10260 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10262 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10263 else
10264 case `$CC -V 2>&1` in
10265 *"Compilers 5.0"*)
10266 wlarc=''
10267 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10270 ;;
10271 *)
10272 wlarc='${wl}'
10273 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10275 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10276 ;;
10277 esac
10278 fi
10279 hardcode_libdir_flag_spec='-R$libdir'
10280 hardcode_shlibpath_var=no
10281 case $host_os in
10282 solaris2.[0-5] | solaris2.[0-5].*) ;;
10283 *)
10284 # The compiler driver will combine and reorder linker options,
10285 # but understands `-z linker_flag'. GCC discards it without `$wl',
10286 # but is careful enough not to reorder.
10287 # Supported since Solaris 2.6 (maybe 2.5.1?)
10288 if test "$GCC" = yes; then
10289 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10290 else
10291 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10292 fi
10293 ;;
10294 esac
10295 link_all_deplibs=yes
10296 ;;
10297
10298 sunos4*)
10299 if test "x$host_vendor" = xsequent; then
10300 # Use $CC to link under sequent, because it throws in some extra .o
10301 # files that make .init and .fini sections work.
10302 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10303 else
10304 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10305 fi
10306 hardcode_libdir_flag_spec='-L$libdir'
10307 hardcode_direct=yes
10308 hardcode_minus_L=yes
10309 hardcode_shlibpath_var=no
10310 ;;
10311
10312 sysv4)
10313 case $host_vendor in
10314 sni)
10315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_direct=yes # is this really true???
10317 ;;
10318 siemens)
10319 ## LD is ld it makes a PLAMLIB
10320 ## CC just makes a GrossModule.
10321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10322 reload_cmds='$CC -r -o $output$reload_objs'
10323 hardcode_direct=no
10324 ;;
10325 motorola)
10326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10328 ;;
10329 esac
10330 runpath_var='LD_RUN_PATH'
10331 hardcode_shlibpath_var=no
10332 ;;
10333
10334 sysv4.3*)
10335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10336 hardcode_shlibpath_var=no
10337 export_dynamic_flag_spec='-Bexport'
10338 ;;
10339
10340 sysv4*MP*)
10341 if test -d /usr/nec; then
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_shlibpath_var=no
10344 runpath_var=LD_RUN_PATH
10345 hardcode_runpath_var=yes
10346 ld_shlibs=yes
10347 fi
10348 ;;
10349
10350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10351 no_undefined_flag='${wl}-z,text'
10352 archive_cmds_need_lc=no
10353 hardcode_shlibpath_var=no
10354 runpath_var='LD_RUN_PATH'
10355
10356 if test "$GCC" = yes; then
10357 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 else
10360 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 fi
10363 ;;
10364
10365 sysv5* | sco3.2v5* | sco5v6*)
10366 # Note: We can NOT use -z defs as we might desire, because we do not
10367 # link with -lc, and that would cause any symbols used from libc to
10368 # always be unresolved, which means just about no library would
10369 # ever link correctly. If we're not using GNU ld we use -z text
10370 # though, which does catch some bad symbols but isn't as heavy-handed
10371 # as -z defs.
10372 no_undefined_flag='${wl}-z,text'
10373 allow_undefined_flag='${wl}-z,nodefs'
10374 archive_cmds_need_lc=no
10375 hardcode_shlibpath_var=no
10376 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10377 hardcode_libdir_separator=':'
10378 link_all_deplibs=yes
10379 export_dynamic_flag_spec='${wl}-Bexport'
10380 runpath_var='LD_RUN_PATH'
10381
10382 if test "$GCC" = yes; then
10383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 else
10386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 fi
10389 ;;
10390
10391 uts4*)
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 *)
10398 ld_shlibs=no
10399 ;;
10400 esac
10401
10402 if test x$host_vendor = xsni; then
10403 case $host in
10404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10405 export_dynamic_flag_spec='${wl}-Blargedynsym'
10406 ;;
10407 esac
10408 fi
10409 fi
10410
5213506e
RW
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10412$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10413test "$ld_shlibs" = no && can_build_shared=no
10414
10415with_gnu_ld=$with_gnu_ld
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431#
10432# Do we need to explicitly link libc?
10433#
10434case "x$archive_cmds_need_lc" in
10435x|xyes)
10436 # Assume -lc should be added
10437 archive_cmds_need_lc=yes
10438
10439 if test "$enable_shared" = yes && test "$GCC" = yes; then
10440 case $archive_cmds in
10441 *'~'*)
10442 # FIXME: we may have to deal with multi-command sequences.
10443 ;;
10444 '$CC '*)
10445 # Test whether the compiler implicitly links with -lc since on some
10446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10447 # to ld, don't add -lc before -lgcc.
5213506e
RW
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10449$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10450if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
baafc534
RW
10452else
10453 $RM conftest*
10454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10455
5213506e 10456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10457 (eval $ac_compile) 2>&5
10458 ac_status=$?
5213506e
RW
10459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10460 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10461 soname=conftest
10462 lib=conftest
10463 libobjs=conftest.$ac_objext
10464 deplibs=
10465 wl=$lt_prog_compiler_wl
10466 pic_flag=$lt_prog_compiler_pic
10467 compiler_flags=-v
10468 linker_flags=-v
10469 verstring=
10470 output_objdir=.
10471 libname=conftest
10472 lt_save_allow_undefined_flag=$allow_undefined_flag
10473 allow_undefined_flag=
5213506e 10474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
10475 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10476 ac_status=$?
5213506e
RW
10477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10478 test $ac_status = 0; }
baafc534
RW
10479 then
10480 lt_cv_archive_cmds_need_lc=no
10481 else
10482 lt_cv_archive_cmds_need_lc=yes
10483 fi
10484 allow_undefined_flag=$lt_save_allow_undefined_flag
10485 else
10486 cat conftest.err 1>&5
10487 fi
10488 $RM conftest*
10489
10490fi
5213506e
RW
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10492$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10493 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10494 ;;
10495 esac
10496 fi
10497 ;;
10498esac
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
5213506e
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10657$as_echo_n "checking dynamic linker characteristics... " >&6; }
25e5de9a
PG
10658
10659if test "$GCC" = yes; then
1cf3d07d
SE
10660 case $host_os in
10661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10662 *) lt_awk_arg="/^libraries:/" ;;
10663 esac
10664 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10665 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10666 # if the path contains ";" then we assume it to be the separator
10667 # otherwise default to the standard path separator (i.e. ":") - it is
10668 # assumed that no part of a normal pathname contains ";" but that should
10669 # okay in the real world where ";" in dirpaths is itself problematic.
10670 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10671 else
10672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10673 fi
10674 # Ok, now we have the path, separated by spaces, we can step through it
10675 # and add multilib dir if necessary.
10676 lt_tmp_lt_search_path_spec=
10677 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10678 for lt_sys_path in $lt_search_path_spec; do
10679 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10681 else
10682 test -d "$lt_sys_path" && \
10683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10684 fi
10685 done
10686 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10687BEGIN {RS=" "; FS="/|\n";} {
10688 lt_foo="";
10689 lt_count=0;
10690 for (lt_i = NF; lt_i > 0; lt_i--) {
10691 if ($lt_i != "" && $lt_i != ".") {
10692 if ($lt_i == "..") {
10693 lt_count++;
10694 } else {
10695 if (lt_count == 0) {
10696 lt_foo="/" $lt_i lt_foo;
10697 } else {
10698 lt_count--;
10699 }
10700 }
10701 }
10702 }
10703 if (lt_foo != "") { lt_freq[lt_foo]++; }
10704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10705}'`
10706 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10707else
10708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10709fi
10710library_names_spec=
10711libname_spec='lib$name'
10712soname_spec=
10713shrext_cmds=".so"
10714postinstall_cmds=
10715postuninstall_cmds=
10716finish_cmds=
10717finish_eval=
10718shlibpath_var=
10719shlibpath_overrides_runpath=unknown
10720version_type=none
10721dynamic_linker="$host_os ld.so"
10722sys_lib_dlsearch_path_spec="/lib /usr/lib"
10723need_lib_prefix=unknown
10724hardcode_into_libs=no
10725
10726# when you set need_version to no, make sure it does not cause -set_version
10727# flags to be left without arguments
10728need_version=unknown
10729
10730case $host_os in
10731aix3*)
10732 version_type=linux
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10734 shlibpath_var=LIBPATH
10735
10736 # AIX 3 has no versioning support, so we append a major version to the name.
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 ;;
10739
716e4bc6 10740aix[4-9]*)
1cf3d07d
SE
10741 version_type=linux
10742 need_lib_prefix=no
10743 need_version=no
10744 hardcode_into_libs=yes
10745 if test "$host_cpu" = ia64; then
10746 # AIX 5 supports IA64
10747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 else
10750 # With GCC up to 2.95.x, collect2 would create an import file
10751 # for dependence libraries. The import file would start with
10752 # the line `#! .'. This would cause the generated library to
10753 # depend on `.', always an invalid library. This was fixed in
10754 # development snapshots of GCC prior to 3.0.
10755 case $host_os in
10756 aix4 | aix4.[01] | aix4.[01].*)
10757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10758 echo ' yes '
10759 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10760 :
10761 else
10762 can_build_shared=no
10763 fi
10764 ;;
10765 esac
10766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10767 # soname into executable. Probably we can add versioning support to
10768 # collect2, so additional links can be useful in future.
10769 if test "$aix_use_runtimelinking" = yes; then
10770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10771 # instead of lib<name>.a to let people know that these are not
10772 # typical AIX shared libraries.
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 else
10775 # We preserve .a as extension for shared libraries through AIX4.2
10776 # and later when we are not doing run time linking.
10777 library_names_spec='${libname}${release}.a $libname.a'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 fi
10780 shlibpath_var=LIBPATH
10781 fi
10782 ;;
10783
10784amigaos*)
25e5de9a
PG
10785 case $host_cpu in
10786 powerpc)
10787 # Since July 2007 AmigaOS4 officially supports .so libraries.
10788 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 ;;
10791 m68k)
1cf3d07d
SE
10792 library_names_spec='$libname.ixlibrary $libname.a'
10793 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10794 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'
25e5de9a
PG
10795 ;;
10796 esac
1cf3d07d
SE
10797 ;;
10798
10799beos*)
10800 library_names_spec='${libname}${shared_ext}'
10801 dynamic_linker="$host_os ld.so"
10802 shlibpath_var=LIBRARY_PATH
10803 ;;
10804
10805bsdi[45]*)
10806 version_type=linux
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10814 # the default ld.so.conf also contains /usr/contrib/lib and
10815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10816 # libtool to hard-code these into programs
10817 ;;
10818
25e5de9a 10819cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10820 version_type=windows
10821 shrext_cmds=".dll"
10822 need_version=no
10823 need_lib_prefix=no
10824
25e5de9a
PG
10825 case $GCC,$host_os in
10826 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
10827 library_names_spec='$libname.dll.a'
10828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10829 postinstall_cmds='base_file=`basename \${file}`~
10830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10831 dldir=$destdir/`dirname \$dlpath`~
10832 test -d \$dldir || mkdir -p \$dldir~
10833 $install_prog $dir/$dlname \$dldir/$dlname~
10834 chmod a+x \$dldir/$dlname~
10835 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10836 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10837 fi'
10838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839 dlpath=$dir/\$dldll~
10840 $RM \$dlpath'
10841 shlibpath_overrides_runpath=yes
10842
10843 case $host_os in
10844 cygwin*)
10845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10848 ;;
25e5de9a 10849 mingw* | cegcc*)
1cf3d07d
SE
10850 # MinGW DLLs use traditional 'lib' prefix
10851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10854 # It is most probably a Windows format PATH printed by
10855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856 # path with ; separators, and with drive letters. We can handle the
10857 # drive letters (cygwin fileutils understands them), so leave them,
10858 # especially as we might pass files found there to a mingw objdump,
10859 # which wouldn't understand a cygwinified path. Ahh.
10860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861 else
10862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10863 fi
10864 ;;
10865 pw32*)
10866 # pw32 DLLs use 'pw' prefix rather than 'lib'
10867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10868 ;;
10869 esac
10870 ;;
10871
10872 *)
10873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10874 ;;
10875 esac
10876 dynamic_linker='Win32 ld.exe'
10877 # FIXME: first we should search . and the directory the executable is in
10878 shlibpath_var=PATH
10879 ;;
10880
10881darwin* | rhapsody*)
10882 dynamic_linker="$host_os dyld"
10883 version_type=darwin
10884 need_lib_prefix=no
10885 need_version=no
10886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10887 soname_spec='${libname}${release}${major}$shared_ext'
10888 shlibpath_overrides_runpath=yes
10889 shlibpath_var=DYLD_LIBRARY_PATH
10890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10891
10892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10894 ;;
10895
10896dgux*)
10897 version_type=linux
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 ;;
10904
10905freebsd1*)
10906 dynamic_linker=no
10907 ;;
10908
10909freebsd* | dragonfly*)
10910 # DragonFly does not have aout. When/if they implement a new
10911 # versioning mechanism, adjust this.
10912 if test -x /usr/bin/objformat; then
10913 objformat=`/usr/bin/objformat`
10914 else
10915 case $host_os in
10916 freebsd[123]*) objformat=aout ;;
10917 *) objformat=elf ;;
10918 esac
10919 fi
10920 version_type=freebsd-$objformat
10921 case $version_type in
10922 freebsd-elf*)
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10924 need_version=no
10925 need_lib_prefix=no
10926 ;;
10927 freebsd-*)
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10929 need_version=yes
10930 ;;
10931 esac
10932 shlibpath_var=LD_LIBRARY_PATH
10933 case $host_os in
10934 freebsd2*)
10935 shlibpath_overrides_runpath=yes
10936 ;;
10937 freebsd3.[01]* | freebsdelf3.[01]*)
10938 shlibpath_overrides_runpath=yes
10939 hardcode_into_libs=yes
10940 ;;
10941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 ;;
10946 *) # from 4.6 on, and DragonFly
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10949 ;;
10950 esac
10951 ;;
10952
10953gnu*)
10954 version_type=linux
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 hardcode_into_libs=yes
10961 ;;
10962
10963hpux9* | hpux10* | hpux11*)
10964 # Give a soname corresponding to the major version so that dld.sl refuses to
10965 # link against other versions.
10966 version_type=sunos
10967 need_lib_prefix=no
10968 need_version=no
10969 case $host_cpu in
10970 ia64*)
10971 shrext_cmds='.so'
10972 hardcode_into_libs=yes
10973 dynamic_linker="$host_os dld.so"
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 if test "X$HPUX_IA64_MODE" = X32; then
10979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10980 else
10981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10982 fi
10983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984 ;;
10985 hppa*64*)
10986 shrext_cmds='.sl'
10987 hardcode_into_libs=yes
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995 ;;
10996 *)
10997 shrext_cmds='.sl'
10998 dynamic_linker="$host_os dld.sl"
10999 shlibpath_var=SHLIB_PATH
11000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 ;;
11004 esac
11005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11006 postinstall_cmds='chmod 555 $lib'
11007 ;;
11008
11009interix[3-9]*)
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=no
11018 hardcode_into_libs=yes
11019 ;;
11020
11021irix5* | irix6* | nonstopux*)
11022 case $host_os in
11023 nonstopux*) version_type=nonstopux ;;
11024 *)
11025 if test "$lt_cv_prog_gnu_ld" = yes; then
11026 version_type=linux
11027 else
11028 version_type=irix
11029 fi ;;
11030 esac
11031 need_lib_prefix=no
11032 need_version=no
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11035 case $host_os in
11036 irix5* | nonstopux*)
11037 libsuff= shlibsuff=
11038 ;;
11039 *)
11040 case $LD in # libtool.m4 will add one of these switches to LD
11041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11042 libsuff= shlibsuff= libmagic=32-bit;;
11043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11044 libsuff=32 shlibsuff=N32 libmagic=N32;;
11045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11047 *) libsuff= shlibsuff= libmagic=never-match;;
11048 esac
11049 ;;
11050 esac
11051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11052 shlibpath_overrides_runpath=no
11053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11055 hardcode_into_libs=yes
11056 ;;
11057
11058# No shared lib support for Linux oldld, aout, or coff.
11059linux*oldld* | linux*aout* | linux*coff*)
11060 dynamic_linker=no
11061 ;;
11062
11063# This must be Linux ELF.
7a9d3fe8 11064linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11065 version_type=linux
11066 need_lib_prefix=no
11067 need_version=no
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
baafc534 11073
1cf3d07d 11074 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11075 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
baafc534
RW
11077else
11078 lt_cv_shlibpath_overrides_runpath=no
11079 save_LDFLAGS=$LDFLAGS
11080 save_libdir=$libdir
11081 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11082 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11083 if test x$gcc_no_link = xyes; then
5213506e 11084 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11085fi
5213506e 11086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11087/* end confdefs.h. */
11088
11089int
11090main ()
11091{
11092
11093 ;
11094 return 0;
11095}
11096_ACEOF
5213506e
RW
11097if ac_fn_c_try_link "$LINENO"; then :
11098 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11099 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11100fi
1cf3d07d 11101fi
5213506e
RW
11102rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11104 LDFLAGS=$save_LDFLAGS
11105 libdir=$save_libdir
11106
11107fi
11108
11109 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11110
11111 # This implies no fast_install, which is unacceptable.
11112 # Some rework will be needed to allow for fast_install
11113 # before this can be enabled.
11114 hardcode_into_libs=yes
11115
11116 # Append ld.so.conf contents to the search path
11117 if test -f /etc/ld.so.conf; then
25e5de9a 11118 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
11119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11120 fi
11121
11122 # We used to test for /lib/ld.so.1 and disable shared libraries on
11123 # powerpc, because MkLinux only supported shared libraries with the
11124 # GNU dynamic linker. Since this was broken with cross compilers,
11125 # most powerpc-linux boxes support dynamic linking these days and
11126 # people can always --disable-shared, the test was removed, and we
11127 # assume the GNU/Linux dynamic linker is in use.
11128 dynamic_linker='GNU/Linux ld.so'
11129 ;;
11130
11131netbsd*)
11132 version_type=sunos
11133 need_lib_prefix=no
11134 need_version=no
11135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11138 dynamic_linker='NetBSD (a.out) ld.so'
11139 else
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 dynamic_linker='NetBSD ld.elf_so'
11143 fi
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 hardcode_into_libs=yes
11147 ;;
11148
11149newsos6)
11150 version_type=linux
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 ;;
11155
11156*nto* | *qnx*)
11157 version_type=qnx
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=no
11164 hardcode_into_libs=yes
11165 dynamic_linker='ldqnx.so'
11166 ;;
11167
11168openbsd*)
11169 version_type=sunos
11170 sys_lib_dlsearch_path_spec="/usr/lib"
11171 need_lib_prefix=no
11172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11173 case $host_os in
11174 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11175 *) need_version=no ;;
11176 esac
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11181 case $host_os in
11182 openbsd2.[89] | openbsd2.[89].*)
11183 shlibpath_overrides_runpath=no
11184 ;;
11185 *)
11186 shlibpath_overrides_runpath=yes
11187 ;;
11188 esac
11189 else
11190 shlibpath_overrides_runpath=yes
11191 fi
11192 ;;
11193
11194os2*)
11195 libname_spec='$name'
11196 shrext_cmds=".dll"
11197 need_lib_prefix=no
11198 library_names_spec='$libname${shared_ext} $libname.a'
11199 dynamic_linker='OS/2 ld.exe'
11200 shlibpath_var=LIBPATH
11201 ;;
11202
11203osf3* | osf4* | osf5*)
11204 version_type=osf
11205 need_lib_prefix=no
11206 need_version=no
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11212 ;;
11213
11214rdos*)
11215 dynamic_linker=no
11216 ;;
11217
11218solaris*)
11219 version_type=linux
11220 need_lib_prefix=no
11221 need_version=no
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 shlibpath_overrides_runpath=yes
11226 hardcode_into_libs=yes
11227 # ldd complains unless libraries are executable
11228 postinstall_cmds='chmod +x $lib'
11229 ;;
11230
11231sunos4*)
11232 version_type=sunos
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 shlibpath_overrides_runpath=yes
11237 if test "$with_gnu_ld" = yes; then
11238 need_lib_prefix=no
11239 fi
11240 need_version=yes
11241 ;;
11242
11243sysv4 | sysv4.3*)
11244 version_type=linux
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 case $host_vendor in
11249 sni)
11250 shlibpath_overrides_runpath=no
11251 need_lib_prefix=no
11252 runpath_var=LD_RUN_PATH
11253 ;;
11254 siemens)
11255 need_lib_prefix=no
11256 ;;
11257 motorola)
11258 need_lib_prefix=no
11259 need_version=no
11260 shlibpath_overrides_runpath=no
11261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11262 ;;
11263 esac
11264 ;;
11265
11266sysv4*MP*)
11267 if test -d /usr/nec ;then
11268 version_type=linux
11269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11270 soname_spec='$libname${shared_ext}.$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 fi
11273 ;;
11274
11275sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11276 version_type=freebsd-elf
11277 need_lib_prefix=no
11278 need_version=no
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=yes
11283 hardcode_into_libs=yes
11284 if test "$with_gnu_ld" = yes; then
11285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11286 else
11287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11288 case $host_os in
11289 sco3.2v5*)
11290 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11291 ;;
11292 esac
11293 fi
11294 sys_lib_dlsearch_path_spec='/usr/lib'
11295 ;;
11296
11297tpf*)
11298 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11299 version_type=linux
11300 need_lib_prefix=no
11301 need_version=no
25e5de9a 11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=no
11305 hardcode_into_libs=yes
11306 ;;
11307
11308uts4*)
11309 version_type=linux
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 shlibpath_var=LD_LIBRARY_PATH
11313 ;;
11314
11315*)
11316 dynamic_linker=no
11317 ;;
11318esac
5213506e
RW
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11320$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11321test "$dynamic_linker" = no && can_build_shared=no
11322
11323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11324if test "$GCC" = yes; then
11325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11326fi
11327
25e5de9a
PG
11328if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11329 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11330fi
11331if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11332 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11333fi
11334
1cf3d07d
SE
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
5213506e
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11422$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11423hardcode_action=
11424if test -n "$hardcode_libdir_flag_spec" ||
11425 test -n "$runpath_var" ||
11426 test "X$hardcode_automatic" = "Xyes" ; then
11427
11428 # We can hardcode non-existent directories.
11429 if test "$hardcode_direct" != no &&
11430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11431 # have to relink, otherwise we might link with an installed library
11432 # when we should be linking with a yet-to-be-installed one
11433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11434 test "$hardcode_minus_L" != no; then
11435 # Linking always hardcodes the temporary library directory.
11436 hardcode_action=relink
11437 else
11438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11439 hardcode_action=immediate
11440 fi
11441else
11442 # We cannot hardcode anything, or else we can only hardcode existing
11443 # directories.
11444 hardcode_action=unsupported
11445fi
5213506e
RW
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11447$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
11448
11449if test "$hardcode_action" = relink ||
11450 test "$inherit_rpath" = yes; then
11451 # Fast installation is not supported
11452 enable_fast_install=no
11453elif test "$shlibpath_overrides_runpath" = yes ||
11454 test "$enable_shared" = no; then
11455 # Fast installation is not necessary
11456 enable_fast_install=needless
11457fi
11458
11459
11460
11461
11462
11463
11464 if test "x$enable_dlopen" != xyes; then
11465 enable_dlopen=unknown
11466 enable_dlopen_self=unknown
11467 enable_dlopen_self_static=unknown
11468else
11469 lt_cv_dlopen=no
11470 lt_cv_dlopen_libs=
11471
11472 case $host_os in
11473 beos*)
11474 lt_cv_dlopen="load_add_on"
11475 lt_cv_dlopen_libs=
11476 lt_cv_dlopen_self=yes
11477 ;;
11478
25e5de9a 11479 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11480 lt_cv_dlopen="LoadLibrary"
11481 lt_cv_dlopen_libs=
11482 ;;
11483
11484 cygwin*)
11485 lt_cv_dlopen="dlopen"
11486 lt_cv_dlopen_libs=
11487 ;;
11488
11489 darwin*)
11490 # if libdl is installed we need to link against it
5213506e
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492$as_echo_n "checking for dlopen in -ldl... " >&6; }
11493if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11495else
11496 ac_check_lib_save_LIBS=$LIBS
11497LIBS="-ldl $LIBS"
11498if test x$gcc_no_link = xyes; then
5213506e 11499 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11500fi
5213506e 11501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11502/* end confdefs.h. */
11503
5213506e
RW
11504/* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11507#ifdef __cplusplus
11508extern "C"
11509#endif
1cf3d07d
SE
11510char dlopen ();
11511int
11512main ()
11513{
5213506e 11514return dlopen ();
1cf3d07d
SE
11515 ;
11516 return 0;
11517}
11518_ACEOF
5213506e 11519if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11520 ac_cv_lib_dl_dlopen=yes
11521else
5213506e 11522 ac_cv_lib_dl_dlopen=no
1cf3d07d 11523fi
5213506e
RW
11524rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11526LIBS=$ac_check_lib_save_LIBS
11527fi
5213506e
RW
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11529$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11530if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11532else
11533
11534 lt_cv_dlopen="dyld"
11535 lt_cv_dlopen_libs=
11536 lt_cv_dlopen_self=yes
11537
11538fi
11539
11540 ;;
11541
11542 *)
5213506e
RW
11543 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11544if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
11545 lt_cv_dlopen="shl_load"
11546else
5213506e
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11548$as_echo_n "checking for shl_load in -ldld... " >&6; }
11549if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11551else
11552 ac_check_lib_save_LIBS=$LIBS
11553LIBS="-ldld $LIBS"
11554if test x$gcc_no_link = xyes; then
5213506e 11555 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11556fi
5213506e 11557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11558/* end confdefs.h. */
11559
5213506e
RW
11560/* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11563#ifdef __cplusplus
11564extern "C"
11565#endif
1cf3d07d
SE
11566char shl_load ();
11567int
11568main ()
11569{
5213506e 11570return shl_load ();
1cf3d07d
SE
11571 ;
11572 return 0;
11573}
11574_ACEOF
5213506e 11575if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11576 ac_cv_lib_dld_shl_load=yes
11577else
5213506e 11578 ac_cv_lib_dld_shl_load=no
1cf3d07d 11579fi
5213506e
RW
11580rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11582LIBS=$ac_check_lib_save_LIBS
11583fi
5213506e
RW
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11585$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11586if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
25e5de9a 11587 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 11588else
5213506e
RW
11589 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11590if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
11591 lt_cv_dlopen="dlopen"
11592else
5213506e
RW
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11594$as_echo_n "checking for dlopen in -ldl... " >&6; }
11595if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11597else
11598 ac_check_lib_save_LIBS=$LIBS
11599LIBS="-ldl $LIBS"
11600if test x$gcc_no_link = xyes; then
5213506e 11601 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11602fi
5213506e 11603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11604/* end confdefs.h. */
11605
5213506e
RW
11606/* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11609#ifdef __cplusplus
11610extern "C"
11611#endif
1cf3d07d
SE
11612char dlopen ();
11613int
11614main ()
11615{
5213506e 11616return dlopen ();
1cf3d07d
SE
11617 ;
11618 return 0;
11619}
11620_ACEOF
5213506e 11621if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11622 ac_cv_lib_dl_dlopen=yes
11623else
5213506e 11624 ac_cv_lib_dl_dlopen=no
1cf3d07d 11625fi
5213506e
RW
11626rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11628LIBS=$ac_check_lib_save_LIBS
11629fi
5213506e
RW
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11631$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11632if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11634else
5213506e
RW
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11636$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11637if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11639else
11640 ac_check_lib_save_LIBS=$LIBS
11641LIBS="-lsvld $LIBS"
11642if test x$gcc_no_link = xyes; then
5213506e 11643 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11644fi
5213506e 11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11646/* end confdefs.h. */
11647
5213506e
RW
11648/* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11651#ifdef __cplusplus
11652extern "C"
11653#endif
1cf3d07d
SE
11654char dlopen ();
11655int
11656main ()
11657{
5213506e 11658return dlopen ();
1cf3d07d
SE
11659 ;
11660 return 0;
11661}
11662_ACEOF
5213506e 11663if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11664 ac_cv_lib_svld_dlopen=yes
11665else
5213506e 11666 ac_cv_lib_svld_dlopen=no
1cf3d07d 11667fi
5213506e
RW
11668rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11670LIBS=$ac_check_lib_save_LIBS
11671fi
5213506e
RW
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11673$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11674if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
11675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11676else
5213506e
RW
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11678$as_echo_n "checking for dld_link in -ldld... " >&6; }
11679if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11681else
11682 ac_check_lib_save_LIBS=$LIBS
11683LIBS="-ldld $LIBS"
11684if test x$gcc_no_link = xyes; then
5213506e 11685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11686fi
5213506e 11687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11688/* end confdefs.h. */
11689
5213506e
RW
11690/* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11693#ifdef __cplusplus
11694extern "C"
11695#endif
1cf3d07d
SE
11696char dld_link ();
11697int
11698main ()
11699{
5213506e 11700return dld_link ();
1cf3d07d
SE
11701 ;
11702 return 0;
11703}
11704_ACEOF
5213506e 11705if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11706 ac_cv_lib_dld_dld_link=yes
11707else
5213506e 11708 ac_cv_lib_dld_dld_link=no
1cf3d07d 11709fi
5213506e
RW
11710rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11712LIBS=$ac_check_lib_save_LIBS
11713fi
5213506e
RW
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11715$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11716if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
25e5de9a 11717 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
11718fi
11719
11720
11721fi
11722
11723
11724fi
11725
11726
11727fi
11728
11729
11730fi
11731
11732
11733fi
11734
11735 ;;
11736 esac
11737
11738 if test "x$lt_cv_dlopen" != xno; then
11739 enable_dlopen=yes
11740 else
11741 enable_dlopen=no
11742 fi
11743
11744 case $lt_cv_dlopen in
11745 dlopen)
11746 save_CPPFLAGS="$CPPFLAGS"
11747 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11748
11749 save_LDFLAGS="$LDFLAGS"
11750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11751
11752 save_LIBS="$LIBS"
11753 LIBS="$lt_cv_dlopen_libs $LIBS"
11754
5213506e
RW
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11756$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11757if test "${lt_cv_dlopen_self+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11759else
11760 if test "$cross_compiling" = yes; then :
11761 lt_cv_dlopen_self=cross
11762else
11763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11764 lt_status=$lt_dlunknown
11765 cat > conftest.$ac_ext <<_LT_EOF
5213506e 11766#line 11766 "configure"
1cf3d07d
SE
11767#include "confdefs.h"
11768
11769#if HAVE_DLFCN_H
11770#include <dlfcn.h>
11771#endif
11772
11773#include <stdio.h>
11774
11775#ifdef RTLD_GLOBAL
11776# define LT_DLGLOBAL RTLD_GLOBAL
11777#else
11778# ifdef DL_GLOBAL
11779# define LT_DLGLOBAL DL_GLOBAL
11780# else
11781# define LT_DLGLOBAL 0
11782# endif
11783#endif
11784
11785/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11786 find out it does not work in some platform. */
11787#ifndef LT_DLLAZY_OR_NOW
11788# ifdef RTLD_LAZY
11789# define LT_DLLAZY_OR_NOW RTLD_LAZY
11790# else
11791# ifdef DL_LAZY
11792# define LT_DLLAZY_OR_NOW DL_LAZY
11793# else
11794# ifdef RTLD_NOW
11795# define LT_DLLAZY_OR_NOW RTLD_NOW
11796# else
11797# ifdef DL_NOW
11798# define LT_DLLAZY_OR_NOW DL_NOW
11799# else
11800# define LT_DLLAZY_OR_NOW 0
11801# endif
11802# endif
11803# endif
11804# endif
11805#endif
11806
1cf3d07d
SE
11807void fnord() { int i=42;}
11808int main ()
11809{
11810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11811 int status = $lt_dlunknown;
11812
11813 if (self)
11814 {
11815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 /* dlclose (self); */
11818 }
11819 else
11820 puts (dlerror ());
11821
25e5de9a 11822 return status;
1cf3d07d
SE
11823}
11824_LT_EOF
5213506e 11825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11826 (eval $ac_link) 2>&5
11827 ac_status=$?
5213506e
RW
11828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11829 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11830 (./conftest; exit; ) >&5 2>/dev/null
11831 lt_status=$?
11832 case x$lt_status in
11833 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11834 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11835 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11836 esac
11837 else :
11838 # compilation failed
11839 lt_cv_dlopen_self=no
11840 fi
11841fi
11842rm -fr conftest*
11843
11844
11845fi
5213506e
RW
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11847$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
11848
11849 if test "x$lt_cv_dlopen_self" = xyes; then
11850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11852$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11853if test "${lt_cv_dlopen_self_static+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11855else
11856 if test "$cross_compiling" = yes; then :
11857 lt_cv_dlopen_self_static=cross
11858else
11859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11860 lt_status=$lt_dlunknown
11861 cat > conftest.$ac_ext <<_LT_EOF
5213506e 11862#line 11862 "configure"
1cf3d07d
SE
11863#include "confdefs.h"
11864
11865#if HAVE_DLFCN_H
11866#include <dlfcn.h>
11867#endif
11868
11869#include <stdio.h>
11870
11871#ifdef RTLD_GLOBAL
11872# define LT_DLGLOBAL RTLD_GLOBAL
11873#else
11874# ifdef DL_GLOBAL
11875# define LT_DLGLOBAL DL_GLOBAL
11876# else
11877# define LT_DLGLOBAL 0
11878# endif
11879#endif
11880
11881/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11882 find out it does not work in some platform. */
11883#ifndef LT_DLLAZY_OR_NOW
11884# ifdef RTLD_LAZY
11885# define LT_DLLAZY_OR_NOW RTLD_LAZY
11886# else
11887# ifdef DL_LAZY
11888# define LT_DLLAZY_OR_NOW DL_LAZY
11889# else
11890# ifdef RTLD_NOW
11891# define LT_DLLAZY_OR_NOW RTLD_NOW
11892# else
11893# ifdef DL_NOW
11894# define LT_DLLAZY_OR_NOW DL_NOW
11895# else
11896# define LT_DLLAZY_OR_NOW 0
11897# endif
11898# endif
11899# endif
11900# endif
11901#endif
11902
1cf3d07d
SE
11903void fnord() { int i=42;}
11904int main ()
11905{
11906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11907 int status = $lt_dlunknown;
11908
11909 if (self)
11910 {
11911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11913 /* dlclose (self); */
11914 }
11915 else
11916 puts (dlerror ());
11917
25e5de9a 11918 return status;
1cf3d07d
SE
11919}
11920_LT_EOF
5213506e 11921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11922 (eval $ac_link) 2>&5
11923 ac_status=$?
5213506e
RW
11924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11926 (./conftest; exit; ) >&5 2>/dev/null
11927 lt_status=$?
11928 case x$lt_status in
11929 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11930 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11931 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11932 esac
11933 else :
11934 # compilation failed
11935 lt_cv_dlopen_self_static=no
11936 fi
11937fi
11938rm -fr conftest*
11939
11940
11941fi
5213506e
RW
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11943$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
11944 fi
11945
11946 CPPFLAGS="$save_CPPFLAGS"
11947 LDFLAGS="$save_LDFLAGS"
11948 LIBS="$save_LIBS"
11949 ;;
11950 esac
11951
11952 case $lt_cv_dlopen_self in
11953 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11954 *) enable_dlopen_self=unknown ;;
11955 esac
11956
11957 case $lt_cv_dlopen_self_static in
11958 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11959 *) enable_dlopen_self_static=unknown ;;
11960 esac
11961fi
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979striplib=
11980old_striplib=
5213506e
RW
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11982$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11983if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11984 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11985 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987$as_echo "yes" >&6; }
1cf3d07d
SE
11988else
11989# FIXME - insert some real tests, host_os isn't really good enough
11990 case $host_os in
11991 darwin*)
11992 if test -n "$STRIP" ; then
11993 striplib="$STRIP -x"
11994 old_striplib="$STRIP -S"
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11996$as_echo "yes" >&6; }
1cf3d07d 11997 else
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
1cf3d07d
SE
12000 fi
12001 ;;
12002 *)
5213506e
RW
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
1cf3d07d
SE
12005 ;;
12006 esac
12007fi
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020 # Report which library types will actually be built
5213506e
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12022$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12024$as_echo "$can_build_shared" >&6; }
1cf3d07d 12025
5213506e
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12027$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
12028 test "$can_build_shared" = "no" && enable_shared=no
12029
12030 # On AIX, shared libraries and static libraries use the same namespace, and
12031 # are all built from PIC.
12032 case $host_os in
12033 aix3*)
12034 test "$enable_shared" = yes && enable_static=no
12035 if test -n "$RANLIB"; then
12036 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12037 postinstall_cmds='$RANLIB $lib'
12038 fi
12039 ;;
12040
716e4bc6 12041 aix[4-9]*)
1cf3d07d
SE
12042 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12043 test "$enable_shared" = yes && enable_static=no
12044 fi
12045 ;;
12046 esac
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12048$as_echo "$enable_shared" >&6; }
1cf3d07d 12049
5213506e
RW
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12051$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
12052 # Make sure either enable_shared or enable_static is yes.
12053 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12055$as_echo "$enable_static" >&6; }
1cf3d07d
SE
12056
12057
12058
12059
12060fi
12061ac_ext=c
12062ac_cpp='$CPP $CPPFLAGS'
12063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12065ac_compiler_gnu=$ac_cv_c_compiler_gnu
12066
12067CC="$lt_save_CC"
12068
12069
5213506e 12070ac_ext=cpp
1cf3d07d
SE
12071ac_cpp='$CXXCPP $CPPFLAGS'
12072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12075
12076archive_cmds_need_lc_CXX=no
12077allow_undefined_flag_CXX=
12078always_export_symbols_CXX=no
12079archive_expsym_cmds_CXX=
12080compiler_needs_object_CXX=no
12081export_dynamic_flag_spec_CXX=
12082hardcode_direct_CXX=no
12083hardcode_direct_absolute_CXX=no
12084hardcode_libdir_flag_spec_CXX=
12085hardcode_libdir_flag_spec_ld_CXX=
12086hardcode_libdir_separator_CXX=
12087hardcode_minus_L_CXX=no
12088hardcode_shlibpath_var_CXX=unsupported
12089hardcode_automatic_CXX=no
12090inherit_rpath_CXX=no
12091module_cmds_CXX=
12092module_expsym_cmds_CXX=
12093link_all_deplibs_CXX=unknown
12094old_archive_cmds_CXX=$old_archive_cmds
12095no_undefined_flag_CXX=
12096whole_archive_flag_spec_CXX=
12097enable_shared_with_static_runtimes_CXX=no
12098
12099# Source file extension for C++ test sources.
12100ac_ext=cpp
12101
12102# Object file extension for compiled C++ test sources.
12103objext=o
12104objext_CXX=$objext
12105
12106# No sense in running all these tests if we already determined that
12107# the CXX compiler isn't working. Some variables (like enable_shared)
12108# are currently assumed to apply to all compilers on this platform,
12109# and will be corrupted by setting them based on a non-working compiler.
12110if test "$_lt_caught_CXX_error" != yes; then
12111 # Code to be used in simple compile tests
12112 lt_simple_compile_test_code="int some_variable = 0;"
12113
12114 # Code to be used in simple link tests
12115 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12116
12117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12118
12119
12120
12121
12122
12123
12124# If no C compiler was specified, use CC.
12125LTCC=${LTCC-"$CC"}
12126
12127# If no C compiler flags were specified, use CFLAGS.
12128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12129
12130# Allow CC to be a program name with arguments.
12131compiler=$CC
12132
12133
12134 # save warnings/boilerplate of simple test code
12135 ac_outfile=conftest.$ac_objext
12136echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12137eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12138_lt_compiler_boilerplate=`cat conftest.err`
12139$RM conftest*
12140
12141 ac_outfile=conftest.$ac_objext
12142echo "$lt_simple_link_test_code" >conftest.$ac_ext
12143eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12144_lt_linker_boilerplate=`cat conftest.err`
25e5de9a 12145$RM -r conftest*
1cf3d07d
SE
12146
12147
12148 # Allow CC to be a program name with arguments.
12149 lt_save_CC=$CC
12150 lt_save_LD=$LD
12151 lt_save_GCC=$GCC
12152 GCC=$GXX
12153 lt_save_with_gnu_ld=$with_gnu_ld
12154 lt_save_path_LD=$lt_cv_path_LD
12155 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12156 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12157 else
12158 $as_unset lt_cv_prog_gnu_ld
12159 fi
12160 if test -n "${lt_cv_path_LDCXX+set}"; then
12161 lt_cv_path_LD=$lt_cv_path_LDCXX
12162 else
12163 $as_unset lt_cv_path_LD
12164 fi
12165 test -z "${LDCXX+set}" || LD=$LDCXX
12166 CC=${CXX-"c++"}
12167 compiler=$CC
12168 compiler_CXX=$CC
12169 for cc_temp in $compiler""; do
12170 case $cc_temp in
12171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12173 \-*) ;;
12174 *) break;;
12175 esac
12176done
12177cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12178
12179
12180 if test -n "$compiler"; then
12181 # We don't want -fno-exception when compiling C++ code, so set the
12182 # no_builtin_flag separately
12183 if test "$GXX" = yes; then
12184 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12185 else
12186 lt_prog_compiler_no_builtin_flag_CXX=
12187 fi
12188
12189 if test "$GXX" = yes; then
12190 # Set up default GNU C++ configuration
12191
12192
12193
5213506e
RW
12194# Check whether --with-gnu-ld was given.
12195if test "${with_gnu_ld+set}" = set; then :
12196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
12197else
12198 with_gnu_ld=no
5213506e
RW
12199fi
12200
1cf3d07d
SE
12201ac_prog=ld
12202if test "$GCC" = yes; then
12203 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12205$as_echo_n "checking for ld used by $CC... " >&6; }
1cf3d07d
SE
12206 case $host in
12207 *-*-mingw*)
12208 # gcc leaves a trailing carriage return which upsets mingw
12209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12210 *)
12211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12212 esac
12213 case $ac_prog in
12214 # Accept absolute paths.
12215 [\\/]* | ?:[\\/]*)
12216 re_direlt='/[^/][^/]*/\.\./'
12217 # Canonicalize the pathname of ld
12218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12221 done
12222 test -z "$LD" && LD="$ac_prog"
12223 ;;
12224 "")
12225 # If it fails, then pretend we aren't using GCC.
12226 ac_prog=ld
12227 ;;
12228 *)
12229 # If it is relative, then search for the first ld in PATH.
12230 with_gnu_ld=unknown
12231 ;;
12232 esac
12233elif test "$with_gnu_ld" = yes; then
5213506e
RW
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12235$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 12236else
5213506e
RW
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12238$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 12239fi
5213506e
RW
12240if test "${lt_cv_path_LD+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12242else
12243 if test -z "$LD"; then
12244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12245 for ac_dir in $PATH; do
12246 IFS="$lt_save_ifs"
12247 test -z "$ac_dir" && ac_dir=.
12248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12249 lt_cv_path_LD="$ac_dir/$ac_prog"
12250 # Check to see if the program is GNU ld. I'd rather use --version,
12251 # but apparently some variants of GNU ld only accept -v.
12252 # Break only if it was the GNU/non-GNU ld that we prefer.
12253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12254 *GNU* | *'with BFD'*)
12255 test "$with_gnu_ld" != no && break
12256 ;;
12257 *)
12258 test "$with_gnu_ld" != yes && break
12259 ;;
12260 esac
12261 fi
12262 done
12263 IFS="$lt_save_ifs"
12264else
12265 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12266fi
12267fi
12268
12269LD="$lt_cv_path_LD"
12270if test -n "$LD"; then
5213506e
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12272$as_echo "$LD" >&6; }
1cf3d07d 12273else
5213506e
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
1cf3d07d 12276fi
5213506e
RW
12277test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12279$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12280if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12282else
12283 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12284case `$LD -v 2>&1 </dev/null` in
12285*GNU* | *'with BFD'*)
12286 lt_cv_prog_gnu_ld=yes
12287 ;;
12288*)
12289 lt_cv_prog_gnu_ld=no
12290 ;;
12291esac
12292fi
5213506e
RW
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12294$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
12295with_gnu_ld=$lt_cv_prog_gnu_ld
12296
12297
12298
12299
12300
12301
12302
12303 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12304 # archiving commands below assume that GNU ld is being used.
12305 if test "$with_gnu_ld" = yes; then
12306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307 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'
12308
12309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12311
12312 # If archive_cmds runs LD, not CC, wlarc should be empty
12313 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12314 # investigate it a little bit more. (MM)
12315 wlarc='${wl}'
12316
12317 # ancient GNU ld didn't support --whole-archive et. al.
12318 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12319 $GREP 'no-whole-archive' > /dev/null; then
12320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12321 else
12322 whole_archive_flag_spec_CXX=
12323 fi
12324 else
12325 with_gnu_ld=no
12326 wlarc=
12327
12328 # A generic and very simple default shared library creation
12329 # command for GNU C++ for the case where it uses the native
12330 # linker, instead of GNU ld. If possible, this setting should
12331 # overridden to take advantage of the native linker features on
12332 # the platform it is being used on.
12333 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12334 fi
12335
12336 # Commands to make compiler produce verbose output that lists
12337 # what "hidden" libraries, object files and flags are used when
12338 # linking a shared library.
713e2ea6 12339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
1cf3d07d
SE
12340
12341 else
12342 GXX=no
12343 with_gnu_ld=no
12344 wlarc=
12345 fi
12346
12347 # PORTME: fill in a description of your system's C++ link characteristics
5213506e
RW
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12349$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
12350 ld_shlibs_CXX=yes
12351 case $host_os in
12352 aix3*)
12353 # FIXME: insert proper C++ library support
12354 ld_shlibs_CXX=no
12355 ;;
716e4bc6 12356 aix[4-9]*)
1cf3d07d
SE
12357 if test "$host_cpu" = ia64; then
12358 # On IA64, the linker does run time linking by default, so we don't
12359 # have to do anything special.
12360 aix_use_runtimelinking=no
12361 exp_sym_flag='-Bexport'
12362 no_entry_flag=""
12363 else
12364 aix_use_runtimelinking=no
12365
12366 # Test if we are trying to use run time linking or normal
12367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12368 # need to do runtime linking.
716e4bc6 12369 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
12370 for ld_flag in $LDFLAGS; do
12371 case $ld_flag in
12372 *-brtl*)
12373 aix_use_runtimelinking=yes
12374 break
12375 ;;
12376 esac
12377 done
12378 ;;
12379 esac
12380
12381 exp_sym_flag='-bexport'
12382 no_entry_flag='-bnoentry'
12383 fi
12384
12385 # When large executables or shared objects are built, AIX ld can
12386 # have problems creating the table of contents. If linking a library
12387 # or program results in "error TOC overflow" add -mminimal-toc to
12388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12390
12391 archive_cmds_CXX=''
12392 hardcode_direct_CXX=yes
12393 hardcode_direct_absolute_CXX=yes
12394 hardcode_libdir_separator_CXX=':'
12395 link_all_deplibs_CXX=yes
12396 file_list_spec_CXX='${wl}-f,'
12397
12398 if test "$GXX" = yes; then
12399 case $host_os in aix4.[012]|aix4.[012].*)
12400 # We only want to do this on AIX 4.2 and lower, the check
12401 # below for broken collect2 doesn't work under 4.3+
12402 collect2name=`${CC} -print-prog-name=collect2`
12403 if test -f "$collect2name" &&
12404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12405 then
12406 # We have reworked collect2
12407 :
12408 else
12409 # We have old collect2
12410 hardcode_direct_CXX=unsupported
12411 # It fails to find uninstalled libraries when the uninstalled
12412 # path is not listed in the libpath. Setting hardcode_minus_L
12413 # to unsupported forces relinking
12414 hardcode_minus_L_CXX=yes
12415 hardcode_libdir_flag_spec_CXX='-L$libdir'
12416 hardcode_libdir_separator_CXX=
12417 fi
12418 esac
12419 shared_flag='-shared'
12420 if test "$aix_use_runtimelinking" = yes; then
12421 shared_flag="$shared_flag "'${wl}-G'
12422 fi
12423 else
12424 # not using gcc
12425 if test "$host_cpu" = ia64; then
12426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12427 # chokes on -Wl,-G. The following line is correct:
12428 shared_flag='-G'
12429 else
12430 if test "$aix_use_runtimelinking" = yes; then
12431 shared_flag='${wl}-G'
12432 else
12433 shared_flag='${wl}-bM:SRE'
12434 fi
12435 fi
12436 fi
12437
25e5de9a 12438 export_dynamic_flag_spec_CXX='${wl}-bexpall'
1cf3d07d
SE
12439 # It seems that -bexpall does not export symbols beginning with
12440 # underscore (_), so it is better to generate a list of symbols to
12441 # export.
12442 always_export_symbols_CXX=yes
12443 if test "$aix_use_runtimelinking" = yes; then
12444 # Warning - without using the other runtime loading flags (-brtl),
12445 # -berok will link without error, but may produce a broken library.
12446 allow_undefined_flag_CXX='-berok'
12447 # Determine the default libpath from the value encoded in an empty
12448 # executable.
12449 if test x$gcc_no_link = xyes; then
5213506e 12450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12451fi
5213506e 12452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12453/* end confdefs.h. */
12454
12455int
12456main ()
12457{
12458
12459 ;
12460 return 0;
12461}
12462_ACEOF
5213506e 12463if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
12464
12465lt_aix_libpath_sed='
12466 /Import File Strings/,/^$/ {
12467 /^0/ {
12468 s/^0 *\(.*\)$/\1/
12469 p
12470 }
12471 }'
12472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12473# Check for a 64-bit object if we didn't find anything.
12474if test -z "$aix_libpath"; then
12475 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12476fi
1cf3d07d 12477fi
5213506e
RW
12478rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12481
12482 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12483
12484 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12485 else
12486 if test "$host_cpu" = ia64; then
12487 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12488 allow_undefined_flag_CXX="-z nodefs"
12489 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"
12490 else
12491 # Determine the default libpath from the value encoded in an
12492 # empty executable.
12493 if test x$gcc_no_link = xyes; then
5213506e 12494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12495fi
5213506e 12496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12497/* end confdefs.h. */
12498
12499int
12500main ()
12501{
12502
12503 ;
12504 return 0;
12505}
12506_ACEOF
5213506e 12507if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
12508
12509lt_aix_libpath_sed='
12510 /Import File Strings/,/^$/ {
12511 /^0/ {
12512 s/^0 *\(.*\)$/\1/
12513 p
12514 }
12515 }'
12516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12517# Check for a 64-bit object if we didn't find anything.
12518if test -z "$aix_libpath"; then
12519 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12520fi
1cf3d07d 12521fi
5213506e
RW
12522rm -f core conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12524if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12525
12526 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12527 # Warning - without using the other run time loading flags,
12528 # -berok will link without error, but may produce a broken library.
12529 no_undefined_flag_CXX=' ${wl}-bernotok'
12530 allow_undefined_flag_CXX=' ${wl}-berok'
12531 # Exported symbols can be pulled into shared objects from archives
12532 whole_archive_flag_spec_CXX='$convenience'
12533 archive_cmds_need_lc_CXX=yes
12534 # This is similar to how AIX traditionally builds its shared
12535 # libraries.
12536 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'
12537 fi
12538 fi
12539 ;;
12540
12541 beos*)
12542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12543 allow_undefined_flag_CXX=unsupported
12544 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12545 # support --undefined. This deserves some investigation. FIXME
12546 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 else
12548 ld_shlibs_CXX=no
12549 fi
12550 ;;
12551
12552 chorus*)
12553 case $cc_basename in
12554 *)
12555 # FIXME: insert proper C++ library support
12556 ld_shlibs_CXX=no
12557 ;;
12558 esac
12559 ;;
12560
25e5de9a 12561 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12562 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12563 # as there is no search path for DLLs.
12564 hardcode_libdir_flag_spec_CXX='-L$libdir'
12565 allow_undefined_flag_CXX=unsupported
12566 always_export_symbols_CXX=no
12567 enable_shared_with_static_runtimes_CXX=yes
12568
12569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12570 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'
12571 # If the export-symbols file already is a .def file (1st line
12572 # is EXPORTS), use it as is; otherwise, prepend...
12573 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12574 cp $export_symbols $output_objdir/$soname.def;
12575 else
12576 echo EXPORTS > $output_objdir/$soname.def;
12577 cat $export_symbols >> $output_objdir/$soname.def;
12578 fi~
12579 $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'
12580 else
12581 ld_shlibs_CXX=no
12582 fi
12583 ;;
12584 darwin* | rhapsody*)
1cf3d07d 12585
1cf3d07d 12586
25e5de9a
PG
12587 archive_cmds_need_lc_CXX=no
12588 hardcode_direct_CXX=no
12589 hardcode_automatic_CXX=yes
12590 hardcode_shlibpath_var_CXX=unsupported
12591 whole_archive_flag_spec_CXX=''
12592 link_all_deplibs_CXX=yes
12593 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12594 case $cc_basename in
12595 ifort*) _lt_dar_can_shared=yes ;;
12596 *) _lt_dar_can_shared=$GCC ;;
12597 esac
12598 if test "$_lt_dar_can_shared" = "yes"; then
12599 output_verbose_link_cmd=echo
12600 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12601 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12602 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12603 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12604 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12605 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${_lt_dsymutil}"
12606 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
12607 fi
12608
12609 else
12610 ld_shlibs_CXX=no
12611 fi
12612
1cf3d07d
SE
12613 ;;
12614
12615 dgux*)
12616 case $cc_basename in
12617 ec++*)
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12620 ;;
12621 ghcx*)
12622 # Green Hills C++ Compiler
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12625 ;;
12626 *)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 ;;
12630 esac
12631 ;;
12632
12633 freebsd[12]*)
12634 # C++ shared libraries reported to be fairly broken before
12635 # switch to ELF
12636 ld_shlibs_CXX=no
12637 ;;
12638
12639 freebsd-elf*)
12640 archive_cmds_need_lc_CXX=no
12641 ;;
12642
12643 freebsd* | dragonfly*)
12644 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12645 # conventions
12646 ld_shlibs_CXX=yes
12647 ;;
12648
12649 gnu*)
12650 ;;
12651
12652 hpux9*)
12653 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12654 hardcode_libdir_separator_CXX=:
12655 export_dynamic_flag_spec_CXX='${wl}-E'
12656 hardcode_direct_CXX=yes
12657 hardcode_minus_L_CXX=yes # Not in the search PATH,
12658 # but as the default
12659 # location of the library.
12660
12661 case $cc_basename in
12662 CC*)
12663 # FIXME: insert proper C++ library support
12664 ld_shlibs_CXX=no
12665 ;;
12666 aCC*)
12667 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'
12668 # Commands to make compiler produce verbose output that lists
12669 # what "hidden" libraries, object files and flags are used when
12670 # linking a shared library.
12671 #
12672 # There doesn't appear to be a way to prevent this compiler from
12673 # explicitly linking system object files so we need to strip them
12674 # from the output so that they don't get included in the library
12675 # dependencies.
713e2ea6 12676 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 "X$list" | $Xsed'
1cf3d07d
SE
12677 ;;
12678 *)
12679 if test "$GXX" = yes; then
12680 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'
12681 else
12682 # FIXME: insert proper C++ library support
12683 ld_shlibs_CXX=no
12684 fi
12685 ;;
12686 esac
12687 ;;
12688
12689 hpux10*|hpux11*)
12690 if test $with_gnu_ld = no; then
12691 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12692 hardcode_libdir_separator_CXX=:
12693
12694 case $host_cpu in
12695 hppa*64*|ia64*)
12696 ;;
12697 *)
12698 export_dynamic_flag_spec_CXX='${wl}-E'
12699 ;;
12700 esac
12701 fi
12702 case $host_cpu in
12703 hppa*64*|ia64*)
12704 hardcode_direct_CXX=no
12705 hardcode_shlibpath_var_CXX=no
12706 ;;
12707 *)
12708 hardcode_direct_CXX=yes
12709 hardcode_direct_absolute_CXX=yes
12710 hardcode_minus_L_CXX=yes # Not in the search PATH,
12711 # but as the default
12712 # location of the library.
12713 ;;
12714 esac
12715
12716 case $cc_basename in
12717 CC*)
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12720 ;;
12721 aCC*)
12722 case $host_cpu in
12723 hppa*64*)
12724 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12725 ;;
12726 ia64*)
12727 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12728 ;;
12729 *)
12730 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12731 ;;
12732 esac
12733 # Commands to make compiler produce verbose output that lists
12734 # what "hidden" libraries, object files and flags are used when
12735 # linking a shared library.
12736 #
12737 # There doesn't appear to be a way to prevent this compiler from
12738 # explicitly linking system object files so we need to strip them
12739 # from the output so that they don't get included in the library
12740 # dependencies.
713e2ea6 12741 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 "X$list" | $Xsed'
1cf3d07d
SE
12742 ;;
12743 *)
12744 if test "$GXX" = yes; then
12745 if test $with_gnu_ld = no; then
12746 case $host_cpu in
12747 hppa*64*)
12748 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12749 ;;
12750 ia64*)
12751 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12752 ;;
12753 *)
12754 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'
12755 ;;
12756 esac
12757 fi
12758 else
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12761 fi
12762 ;;
12763 esac
12764 ;;
12765
12766 interix[3-9]*)
12767 hardcode_direct_CXX=no
12768 hardcode_shlibpath_var_CXX=no
12769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12770 export_dynamic_flag_spec_CXX='${wl}-E'
12771 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12772 # Instead, shared libraries are loaded at an image base (0x10000000 by
12773 # default) and relocated if they conflict, which is a slow very memory
12774 # consuming and fragmenting process. To avoid this, we pick a random,
12775 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12776 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12777 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'
12778 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'
12779 ;;
12780 irix5* | irix6*)
12781 case $cc_basename in
12782 CC*)
12783 # SGI C++
12784 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12785
12786 # Archives containing C++ object files must be created using
12787 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12788 # necessary to make sure instantiated templates are included
12789 # in the archive.
12790 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12791 ;;
12792 *)
12793 if test "$GXX" = yes; then
12794 if test "$with_gnu_ld" = no; then
12795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12796 else
12797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12798 fi
12799 fi
12800 link_all_deplibs_CXX=yes
12801 ;;
12802 esac
12803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12804 hardcode_libdir_separator_CXX=:
12805 inherit_rpath_CXX=yes
12806 ;;
12807
7a9d3fe8 12808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
12809 case $cc_basename in
12810 KCC*)
12811 # Kuck and Associates, Inc. (KAI) C++ Compiler
12812
12813 # KCC will only create a shared library if the output file
12814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12815 # to its proper name (with version) after linking.
12816 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'
12817 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'
12818 # Commands to make compiler produce verbose output that lists
12819 # what "hidden" libraries, object files and flags are used when
12820 # linking a shared library.
12821 #
12822 # There doesn't appear to be a way to prevent this compiler from
12823 # explicitly linking system object files so we need to strip them
12824 # from the output so that they don't get included in the library
12825 # dependencies.
12826 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 "X$list" | $Xsed'
12827
12828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12830
12831 # Archives containing C++ object files must be created using
12832 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12833 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12834 ;;
12835 icpc* | ecpc* )
12836 # Intel C++
12837 with_gnu_ld=yes
12838 # version 8.0 and above of icpc choke on multiply defined symbols
12839 # if we add $predep_objects and $postdep_objects, however 7.1 and
12840 # earlier do not add the objects themselves.
12841 case `$CC -V 2>&1` in
12842 *"Version 7."*)
12843 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 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'
12845 ;;
12846 *) # Version 8.0 or newer
12847 tmp_idyn=
12848 case $host_cpu in
12849 ia64*) tmp_idyn=' -i_dynamic';;
12850 esac
12851 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852 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'
12853 ;;
12854 esac
12855 archive_cmds_need_lc_CXX=no
12856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12858 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12859 ;;
25e5de9a 12860 pgCC* | pgcpp*)
1cf3d07d
SE
12861 # Portland Group C++ compiler
12862 case `$CC -V` in
25e5de9a 12863 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
1cf3d07d
SE
12864 prelink_cmds_CXX='tpldir=Template.dir~
12865 rm -rf $tpldir~
12866 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12867 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12868 old_archive_cmds_CXX='tpldir=Template.dir~
12869 rm -rf $tpldir~
12870 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12871 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12872 $RANLIB $oldlib'
12873 archive_cmds_CXX='tpldir=Template.dir~
12874 rm -rf $tpldir~
12875 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12876 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12877 archive_expsym_cmds_CXX='tpldir=Template.dir~
12878 rm -rf $tpldir~
12879 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12880 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12881 ;;
12882 *) # Version 6 will use weak symbols
12883 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12884 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'
12885 ;;
12886 esac
12887
12888 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12890 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'
12891 ;;
12892 cxx*)
12893 # Compaq C++
12894 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 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'
12896
12897 runpath_var=LD_RUN_PATH
12898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12899 hardcode_libdir_separator_CXX=:
12900
12901 # Commands to make compiler produce verbose output that lists
12902 # what "hidden" libraries, object files and flags are used when
12903 # linking a shared library.
12904 #
12905 # There doesn't appear to be a way to prevent this compiler from
12906 # explicitly linking system object files so we need to strip them
12907 # from the output so that they don't get included in the library
12908 # dependencies.
12909 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12910 ;;
25e5de9a
PG
12911 xl*)
12912 # IBM XL 8.0 on PPC, with GNU ld
12913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12914 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12915 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 if test "x$supports_anon_versioning" = xyes; then
12917 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12919 echo "local: *; };" >> $output_objdir/$libname.ver~
12920 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12921 fi
12922 ;;
1cf3d07d
SE
12923 *)
12924 case `$CC -V 2>&1 | sed 5q` in
12925 *Sun\ C*)
12926 # Sun C++ 5.9
12927 no_undefined_flag_CXX=' -zdefs'
12928 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12930 hardcode_libdir_flag_spec_CXX='-R$libdir'
12931 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12932 compiler_needs_object_CXX=yes
12933
12934 # Not sure whether something based on
12935 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12936 # would be better.
12937 output_verbose_link_cmd='echo'
12938
12939 # Archives containing C++ object files must be created using
12940 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12941 # necessary to make sure instantiated templates are included
12942 # in the archive.
12943 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12944 ;;
12945 esac
12946 ;;
12947 esac
12948 ;;
12949
12950 lynxos*)
12951 # FIXME: insert proper C++ library support
12952 ld_shlibs_CXX=no
12953 ;;
12954
12955 m88k*)
12956 # FIXME: insert proper C++ library support
12957 ld_shlibs_CXX=no
12958 ;;
12959
12960 mvs*)
12961 case $cc_basename in
12962 cxx*)
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12965 ;;
12966 *)
12967 # FIXME: insert proper C++ library support
12968 ld_shlibs_CXX=no
12969 ;;
12970 esac
12971 ;;
12972
12973 netbsd*)
12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12975 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12976 wlarc=
12977 hardcode_libdir_flag_spec_CXX='-R$libdir'
12978 hardcode_direct_CXX=yes
12979 hardcode_shlibpath_var_CXX=no
12980 fi
12981 # Workaround some broken pre-1.5 toolchains
12982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12983 ;;
12984
12985 *nto* | *qnx*)
12986 ld_shlibs_CXX=yes
12987 ;;
12988
12989 openbsd2*)
12990 # C++ shared libraries are fairly broken
12991 ld_shlibs_CXX=no
12992 ;;
12993
12994 openbsd*)
25e5de9a
PG
12995 if test -f /usr/libexec/ld.so; then
12996 hardcode_direct_CXX=yes
12997 hardcode_shlibpath_var_CXX=no
12998 hardcode_direct_absolute_CXX=yes
12999 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13002 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13003 export_dynamic_flag_spec_CXX='${wl}-E'
13004 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13005 fi
13006 output_verbose_link_cmd=echo
13007 else
13008 ld_shlibs_CXX=no
1cf3d07d 13009 fi
1cf3d07d
SE
13010 ;;
13011
13012 osf3* | osf4* | osf5*)
13013 case $cc_basename in
13014 KCC*)
13015 # Kuck and Associates, Inc. (KAI) C++ Compiler
13016
13017 # KCC will only create a shared library if the output file
13018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13019 # to its proper name (with version) after linking.
13020 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'
13021
13022 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13023 hardcode_libdir_separator_CXX=:
13024
13025 # Archives containing C++ object files must be created using
13026 # the KAI C++ compiler.
13027 case $host in
13028 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13029 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13030 esac
13031 ;;
13032 RCC*)
13033 # Rational C++ 2.4.1
13034 # FIXME: insert proper C++ library support
13035 ld_shlibs_CXX=no
13036 ;;
13037 cxx*)
13038 case $host in
13039 osf3*)
13040 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13041 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13042 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13043 ;;
13044 *)
13045 allow_undefined_flag_CXX=' -expect_unresolved \*'
13046 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13047 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13048 echo "-hidden">> $lib.exp~
13049 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13050 $RM $lib.exp'
13051 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13052 ;;
13053 esac
13054
13055 hardcode_libdir_separator_CXX=:
13056
13057 # Commands to make compiler produce verbose output that lists
13058 # what "hidden" libraries, object files and flags are used when
13059 # linking a shared library.
13060 #
13061 # There doesn't appear to be a way to prevent this compiler from
13062 # explicitly linking system object files so we need to strip them
13063 # from the output so that they don't get included in the library
13064 # dependencies.
13065 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13066 ;;
13067 *)
13068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13070 case $host in
13071 osf3*)
13072 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13073 ;;
13074 *)
13075 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13076 ;;
13077 esac
13078
13079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13080 hardcode_libdir_separator_CXX=:
13081
13082 # Commands to make compiler produce verbose output that lists
13083 # what "hidden" libraries, object files and flags are used when
13084 # linking a shared library.
713e2ea6 13085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
1cf3d07d
SE
13086
13087 else
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 fi
13091 ;;
13092 esac
13093 ;;
13094
13095 psos*)
13096 # FIXME: insert proper C++ library support
13097 ld_shlibs_CXX=no
13098 ;;
13099
13100 sunos4*)
13101 case $cc_basename in
13102 CC*)
13103 # Sun C++ 4.x
13104 # FIXME: insert proper C++ library support
13105 ld_shlibs_CXX=no
13106 ;;
13107 lcc*)
13108 # Lucid
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13111 ;;
13112 *)
13113 # FIXME: insert proper C++ library support
13114 ld_shlibs_CXX=no
13115 ;;
13116 esac
13117 ;;
13118
13119 solaris*)
13120 case $cc_basename in
13121 CC*)
13122 # Sun C++ 4.2, 5.x and Centerline C++
13123 archive_cmds_need_lc_CXX=yes
13124 no_undefined_flag_CXX=' -zdefs'
13125 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13126 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13127 $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'
13128
13129 hardcode_libdir_flag_spec_CXX='-R$libdir'
13130 hardcode_shlibpath_var_CXX=no
13131 case $host_os in
13132 solaris2.[0-5] | solaris2.[0-5].*) ;;
13133 *)
13134 # The compiler driver will combine and reorder linker options,
13135 # but understands `-z linker_flag'.
13136 # Supported since Solaris 2.6 (maybe 2.5.1?)
13137 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13138 ;;
13139 esac
13140 link_all_deplibs_CXX=yes
13141
13142 output_verbose_link_cmd='echo'
13143
13144 # Archives containing C++ object files must be created using
13145 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13146 # necessary to make sure instantiated templates are included
13147 # in the archive.
13148 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13149 ;;
13150 gcx*)
13151 # Green Hills C++ Compiler
13152 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13153
13154 # The C++ compiler must be used to create the archive.
13155 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13156 ;;
13157 *)
13158 # GNU C++ compiler with Solaris linker
13159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13160 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13161 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13162 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13163 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13164 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13165
13166 # Commands to make compiler produce verbose output that lists
13167 # what "hidden" libraries, object files and flags are used when
13168 # linking a shared library.
713e2ea6 13169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
1cf3d07d
SE
13170 else
13171 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13172 # platform.
13173 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13174 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13175 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13176
13177 # Commands to make compiler produce verbose output that lists
13178 # what "hidden" libraries, object files and flags are used when
13179 # linking a shared library.
713e2ea6 13180 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
1cf3d07d
SE
13181 fi
13182
13183 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13184 case $host_os in
13185 solaris2.[0-5] | solaris2.[0-5].*) ;;
13186 *)
13187 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13188 ;;
13189 esac
13190 fi
13191 ;;
13192 esac
13193 ;;
13194
13195 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13196 no_undefined_flag_CXX='${wl}-z,text'
13197 archive_cmds_need_lc_CXX=no
13198 hardcode_shlibpath_var_CXX=no
13199 runpath_var='LD_RUN_PATH'
13200
13201 case $cc_basename in
13202 CC*)
13203 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13204 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13205 ;;
13206 *)
13207 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13208 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209 ;;
13210 esac
13211 ;;
13212
13213 sysv5* | sco3.2v5* | sco5v6*)
13214 # Note: We can NOT use -z defs as we might desire, because we do not
13215 # link with -lc, and that would cause any symbols used from libc to
13216 # always be unresolved, which means just about no library would
13217 # ever link correctly. If we're not using GNU ld we use -z text
13218 # though, which does catch some bad symbols but isn't as heavy-handed
13219 # as -z defs.
13220 no_undefined_flag_CXX='${wl}-z,text'
13221 allow_undefined_flag_CXX='${wl}-z,nodefs'
13222 archive_cmds_need_lc_CXX=no
13223 hardcode_shlibpath_var_CXX=no
13224 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13225 hardcode_libdir_separator_CXX=':'
13226 link_all_deplibs_CXX=yes
13227 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13228 runpath_var='LD_RUN_PATH'
13229
13230 case $cc_basename in
13231 CC*)
13232 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13233 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13234 ;;
13235 *)
13236 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13237 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13238 ;;
13239 esac
13240 ;;
13241
13242 tandem*)
13243 case $cc_basename in
13244 NCC*)
13245 # NonStop-UX NCC 3.20
13246 # FIXME: insert proper C++ library support
13247 ld_shlibs_CXX=no
13248 ;;
13249 *)
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13252 ;;
13253 esac
13254 ;;
13255
13256 vxworks*)
13257 # FIXME: insert proper C++ library support
13258 ld_shlibs_CXX=no
13259 ;;
13260
13261 *)
13262 # FIXME: insert proper C++ library support
13263 ld_shlibs_CXX=no
13264 ;;
13265 esac
13266
5213506e
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13268$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
13269 test "$ld_shlibs_CXX" = no && can_build_shared=no
13270
13271 GCC_CXX="$GXX"
13272 LD_CXX="$LD"
13273
13274 ## CAVEAT EMPTOR:
13275 ## There is no encapsulation within the following macros, do not change
13276 ## the running order or otherwise move them around unless you know exactly
13277 ## what you are doing...
13278 # Dependencies to place before and after the object being linked:
13279predep_objects_CXX=
13280postdep_objects_CXX=
13281predeps_CXX=
13282postdeps_CXX=
13283compiler_lib_search_path_CXX=
13284
13285cat > conftest.$ac_ext <<_LT_EOF
13286class Foo
13287{
13288public:
13289 Foo (void) { a = 0; }
13290private:
13291 int a;
13292};
13293_LT_EOF
13294
5213506e 13295if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13296 (eval $ac_compile) 2>&5
13297 ac_status=$?
5213506e
RW
13298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13299 test $ac_status = 0; }; then
1cf3d07d
SE
13300 # Parse the compiler output and extract the necessary
13301 # objects, libraries and library flags.
13302
13303 # Sentinel used to keep track of whether or not we are before
13304 # the conftest object file.
13305 pre_test_object_deps_done=no
13306
25e5de9a 13307 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13308 case $p in
13309
13310 -L* | -R* | -l*)
13311 # Some compilers place space between "-{L,R}" and the path.
13312 # Remove the space.
13313 if test $p = "-L" ||
13314 test $p = "-R"; then
13315 prev=$p
13316 continue
13317 else
13318 prev=
13319 fi
13320
13321 if test "$pre_test_object_deps_done" = no; then
13322 case $p in
13323 -L* | -R*)
13324 # Internal compiler library paths should come after those
13325 # provided the user. The postdeps already come after the
13326 # user supplied libs so there is no need to process them.
13327 if test -z "$compiler_lib_search_path_CXX"; then
13328 compiler_lib_search_path_CXX="${prev}${p}"
13329 else
13330 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13331 fi
13332 ;;
13333 # The "-l" case would never come before the object being
13334 # linked, so don't bother handling this case.
13335 esac
13336 else
13337 if test -z "$postdeps_CXX"; then
13338 postdeps_CXX="${prev}${p}"
13339 else
13340 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13341 fi
13342 fi
13343 ;;
13344
13345 *.$objext)
13346 # This assumes that the test object file only shows up
13347 # once in the compiler output.
13348 if test "$p" = "conftest.$objext"; then
13349 pre_test_object_deps_done=yes
13350 continue
13351 fi
13352
13353 if test "$pre_test_object_deps_done" = no; then
13354 if test -z "$predep_objects_CXX"; then
13355 predep_objects_CXX="$p"
13356 else
13357 predep_objects_CXX="$predep_objects_CXX $p"
13358 fi
13359 else
13360 if test -z "$postdep_objects_CXX"; then
13361 postdep_objects_CXX="$p"
13362 else
13363 postdep_objects_CXX="$postdep_objects_CXX $p"
13364 fi
13365 fi
13366 ;;
13367
13368 *) ;; # Ignore the rest.
13369
13370 esac
13371 done
13372
13373 # Clean up.
13374 rm -f a.out a.exe
13375else
13376 echo "libtool.m4: error: problem compiling CXX test program"
13377fi
13378
13379$RM -f confest.$objext
13380
13381# PORTME: override above test on systems where it is broken
13382case $host_os in
13383interix[3-9]*)
13384 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13385 # hack all around it, let's just trust "g++" to DTRT.
13386 predep_objects_CXX=
13387 postdep_objects_CXX=
13388 postdeps_CXX=
13389 ;;
13390
13391linux*)
13392 case `$CC -V 2>&1 | sed 5q` in
13393 *Sun\ C*)
13394 # Sun C++ 5.9
13395
13396 # The more standards-conforming stlport4 library is
13397 # incompatible with the Cstd library. Avoid specifying
13398 # it if it's in CXXFLAGS. Ignore libCrun as
13399 # -library=stlport4 depends on it.
13400 case " $CXX $CXXFLAGS " in
13401 *" -library=stlport4 "*)
13402 solaris_use_stlport4=yes
13403 ;;
13404 esac
13405
13406 if test "$solaris_use_stlport4" != yes; then
13407 postdeps_CXX='-library=Cstd -library=Crun'
13408 fi
13409 ;;
13410 esac
13411 ;;
13412
13413solaris*)
13414 case $cc_basename in
13415 CC*)
13416 # The more standards-conforming stlport4 library is
13417 # incompatible with the Cstd library. Avoid specifying
13418 # it if it's in CXXFLAGS. Ignore libCrun as
13419 # -library=stlport4 depends on it.
13420 case " $CXX $CXXFLAGS " in
13421 *" -library=stlport4 "*)
13422 solaris_use_stlport4=yes
13423 ;;
13424 esac
13425
13426 # Adding this requires a known-good setup of shared libraries for
13427 # Sun compiler versions before 5.6, else PIC objects from an old
13428 # archive will be linked into the output, leading to subtle bugs.
13429 if test "$solaris_use_stlport4" != yes; then
13430 postdeps_CXX='-library=Cstd -library=Crun'
13431 fi
13432 ;;
13433 esac
13434 ;;
13435esac
13436
13437
13438case " $postdeps_CXX " in
13439*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13440esac
25e5de9a
PG
13441 compiler_lib_search_dirs_CXX=
13442if test -n "${compiler_lib_search_path_CXX}"; then
13443 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13444fi
13445
13446
13447
13448
13449
1cf3d07d
SE
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476 lt_prog_compiler_wl_CXX=
13477lt_prog_compiler_pic_CXX=
13478lt_prog_compiler_static_CXX=
13479
5213506e
RW
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13481$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13482
13483 # C++ specific cases for pic, static, wl, etc.
13484 if test "$GXX" = yes; then
13485 lt_prog_compiler_wl_CXX='-Wl,'
13486 lt_prog_compiler_static_CXX='-static'
13487
13488 case $host_os in
13489 aix*)
13490 # All AIX code is PIC.
13491 if test "$host_cpu" = ia64; then
13492 # AIX 5 now supports IA64 processor
13493 lt_prog_compiler_static_CXX='-Bstatic'
13494 fi
13495 ;;
25e5de9a 13496
1cf3d07d 13497 amigaos*)
25e5de9a
PG
13498 case $host_cpu in
13499 powerpc)
13500 # see comment about AmigaOS4 .so support
13501 lt_prog_compiler_pic_CXX='-fPIC'
13502 ;;
13503 m68k)
13504 # FIXME: we need at least 68020 code to build shared libraries, but
13505 # adding the `-m68020' flag to GCC prevents building anything better,
13506 # like `-m68040'.
13507 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13508 ;;
13509 esac
1cf3d07d 13510 ;;
25e5de9a 13511
1cf3d07d
SE
13512 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13513 # PIC is the default for these OSes.
13514 ;;
25e5de9a 13515 mingw* | cygwin* | os2* | pw32* | cegcc*)
1cf3d07d
SE
13516 # This hack is so that the source file can tell whether it is being
13517 # built for inclusion in a dll (and should export symbols for example).
13518 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13519 # (--disable-auto-import) libraries
13520 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13521 ;;
13522 darwin* | rhapsody*)
13523 # PIC is the default on this platform
13524 # Common symbols not allowed in MH_DYLIB files
13525 lt_prog_compiler_pic_CXX='-fno-common'
13526 ;;
13527 *djgpp*)
13528 # DJGPP does not support shared libraries at all
13529 lt_prog_compiler_pic_CXX=
13530 ;;
13531 interix[3-9]*)
13532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13533 # Instead, we relocate shared libraries at runtime.
13534 ;;
13535 sysv4*MP*)
13536 if test -d /usr/nec; then
13537 lt_prog_compiler_pic_CXX=-Kconform_pic
13538 fi
13539 ;;
13540 hpux*)
25e5de9a
PG
13541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13543 # sets the default TLS model and affects inlining.
1cf3d07d 13544 case $host_cpu in
25e5de9a 13545 hppa*64*)
1cf3d07d
SE
13546 ;;
13547 *)
13548 lt_prog_compiler_pic_CXX='-fPIC'
13549 ;;
13550 esac
13551 ;;
13552 *qnx* | *nto*)
13553 # QNX uses GNU C++, but need to define -shared option too, otherwise
13554 # it will coredump.
13555 lt_prog_compiler_pic_CXX='-fPIC -shared'
13556 ;;
13557 *)
13558 lt_prog_compiler_pic_CXX='-fPIC'
13559 ;;
13560 esac
13561 else
13562 case $host_os in
716e4bc6 13563 aix[4-9]*)
1cf3d07d
SE
13564 # All AIX code is PIC.
13565 if test "$host_cpu" = ia64; then
13566 # AIX 5 now supports IA64 processor
13567 lt_prog_compiler_static_CXX='-Bstatic'
13568 else
13569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13570 fi
13571 ;;
13572 chorus*)
13573 case $cc_basename in
13574 cxch68*)
13575 # Green Hills C++ Compiler
13576 # _LT_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"
13577 ;;
13578 esac
13579 ;;
1cf3d07d
SE
13580 dgux*)
13581 case $cc_basename in
13582 ec++*)
13583 lt_prog_compiler_pic_CXX='-KPIC'
13584 ;;
13585 ghcx*)
13586 # Green Hills C++ Compiler
13587 lt_prog_compiler_pic_CXX='-pic'
13588 ;;
13589 *)
13590 ;;
13591 esac
13592 ;;
13593 freebsd* | dragonfly*)
13594 # FreeBSD uses GNU C++
13595 ;;
13596 hpux9* | hpux10* | hpux11*)
13597 case $cc_basename in
13598 CC*)
13599 lt_prog_compiler_wl_CXX='-Wl,'
13600 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13601 if test "$host_cpu" != ia64; then
13602 lt_prog_compiler_pic_CXX='+Z'
13603 fi
13604 ;;
13605 aCC*)
13606 lt_prog_compiler_wl_CXX='-Wl,'
13607 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13608 case $host_cpu in
13609 hppa*64*|ia64*)
13610 # +Z the default
13611 ;;
13612 *)
13613 lt_prog_compiler_pic_CXX='+Z'
13614 ;;
13615 esac
13616 ;;
13617 *)
13618 ;;
13619 esac
13620 ;;
13621 interix*)
13622 # This is c89, which is MS Visual C++ (no shared libs)
13623 # Anyone wants to do a port?
13624 ;;
13625 irix5* | irix6* | nonstopux*)
13626 case $cc_basename in
13627 CC*)
13628 lt_prog_compiler_wl_CXX='-Wl,'
13629 lt_prog_compiler_static_CXX='-non_shared'
13630 # CC pic flag -KPIC is the default.
13631 ;;
13632 *)
13633 ;;
13634 esac
13635 ;;
7a9d3fe8 13636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13637 case $cc_basename in
13638 KCC*)
13639 # KAI C++ Compiler
13640 lt_prog_compiler_wl_CXX='--backend -Wl,'
13641 lt_prog_compiler_pic_CXX='-fPIC'
13642 ;;
25e5de9a
PG
13643 ecpc* )
13644 # old Intel C++ for x86_64 which still supported -KPIC.
1cf3d07d
SE
13645 lt_prog_compiler_wl_CXX='-Wl,'
13646 lt_prog_compiler_pic_CXX='-KPIC'
13647 lt_prog_compiler_static_CXX='-static'
13648 ;;
25e5de9a
PG
13649 icpc* )
13650 # Intel C++, used to be incompatible with GCC.
13651 # ICC 10 doesn't accept -KPIC any more.
13652 lt_prog_compiler_wl_CXX='-Wl,'
13653 lt_prog_compiler_pic_CXX='-fPIC'
13654 lt_prog_compiler_static_CXX='-static'
13655 ;;
13656 pgCC* | pgcpp*)
1cf3d07d
SE
13657 # Portland Group C++ compiler
13658 lt_prog_compiler_wl_CXX='-Wl,'
13659 lt_prog_compiler_pic_CXX='-fpic'
13660 lt_prog_compiler_static_CXX='-Bstatic'
13661 ;;
13662 cxx*)
13663 # Compaq C++
13664 # Make sure the PIC flag is empty. It appears that all Alpha
13665 # Linux and Compaq Tru64 Unix objects are PIC.
13666 lt_prog_compiler_pic_CXX=
13667 lt_prog_compiler_static_CXX='-non_shared'
13668 ;;
25e5de9a
PG
13669 xlc* | xlC*)
13670 # IBM XL 8.0 on PPC
13671 lt_prog_compiler_wl_CXX='-Wl,'
13672 lt_prog_compiler_pic_CXX='-qpic'
13673 lt_prog_compiler_static_CXX='-qstaticlink'
13674 ;;
1cf3d07d
SE
13675 *)
13676 case `$CC -V 2>&1 | sed 5q` in
13677 *Sun\ C*)
13678 # Sun C++ 5.9
13679 lt_prog_compiler_pic_CXX='-KPIC'
13680 lt_prog_compiler_static_CXX='-Bstatic'
13681 lt_prog_compiler_wl_CXX='-Qoption ld '
13682 ;;
13683 esac
13684 ;;
13685 esac
13686 ;;
13687 lynxos*)
13688 ;;
13689 m88k*)
13690 ;;
13691 mvs*)
13692 case $cc_basename in
13693 cxx*)
13694 lt_prog_compiler_pic_CXX='-W c,exportall'
13695 ;;
13696 *)
13697 ;;
13698 esac
13699 ;;
13700 netbsd*)
13701 ;;
13702 *qnx* | *nto*)
13703 # QNX uses GNU C++, but need to define -shared option too, otherwise
13704 # it will coredump.
13705 lt_prog_compiler_pic_CXX='-fPIC -shared'
13706 ;;
13707 osf3* | osf4* | osf5*)
13708 case $cc_basename in
13709 KCC*)
13710 lt_prog_compiler_wl_CXX='--backend -Wl,'
13711 ;;
13712 RCC*)
13713 # Rational C++ 2.4.1
13714 lt_prog_compiler_pic_CXX='-pic'
13715 ;;
13716 cxx*)
13717 # Digital/Compaq C++
13718 lt_prog_compiler_wl_CXX='-Wl,'
13719 # Make sure the PIC flag is empty. It appears that all Alpha
13720 # Linux and Compaq Tru64 Unix objects are PIC.
13721 lt_prog_compiler_pic_CXX=
13722 lt_prog_compiler_static_CXX='-non_shared'
13723 ;;
13724 *)
13725 ;;
13726 esac
13727 ;;
13728 psos*)
13729 ;;
13730 solaris*)
13731 case $cc_basename in
13732 CC*)
13733 # Sun C++ 4.2, 5.x and Centerline C++
13734 lt_prog_compiler_pic_CXX='-KPIC'
13735 lt_prog_compiler_static_CXX='-Bstatic'
13736 lt_prog_compiler_wl_CXX='-Qoption ld '
13737 ;;
13738 gcx*)
13739 # Green Hills C++ Compiler
13740 lt_prog_compiler_pic_CXX='-PIC'
13741 ;;
13742 *)
13743 ;;
13744 esac
13745 ;;
13746 sunos4*)
13747 case $cc_basename in
13748 CC*)
13749 # Sun C++ 4.x
13750 lt_prog_compiler_pic_CXX='-pic'
13751 lt_prog_compiler_static_CXX='-Bstatic'
13752 ;;
13753 lcc*)
13754 # Lucid
13755 lt_prog_compiler_pic_CXX='-pic'
13756 ;;
13757 *)
13758 ;;
13759 esac
13760 ;;
13761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13762 case $cc_basename in
13763 CC*)
13764 lt_prog_compiler_wl_CXX='-Wl,'
13765 lt_prog_compiler_pic_CXX='-KPIC'
13766 lt_prog_compiler_static_CXX='-Bstatic'
13767 ;;
13768 esac
13769 ;;
13770 tandem*)
13771 case $cc_basename in
13772 NCC*)
13773 # NonStop-UX NCC 3.20
13774 lt_prog_compiler_pic_CXX='-KPIC'
13775 ;;
13776 *)
13777 ;;
13778 esac
13779 ;;
13780 vxworks*)
13781 ;;
13782 *)
13783 lt_prog_compiler_can_build_shared_CXX=no
13784 ;;
13785 esac
13786 fi
13787
13788case $host_os in
13789 # For platforms which do not support PIC, -DPIC is meaningless:
13790 *djgpp*)
13791 lt_prog_compiler_pic_CXX=
13792 ;;
13793 *)
13794 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13795 ;;
13796esac
5213506e
RW
13797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13798$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
1cf3d07d
SE
13799
13800
13801
13802#
13803# Check to make sure the PIC flag actually works.
13804#
13805if test -n "$lt_prog_compiler_pic_CXX"; then
5213506e
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13807$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13808if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13809 $as_echo_n "(cached) " >&6
1cf3d07d 13810else
25e5de9a 13811 lt_cv_prog_compiler_pic_works_CXX=no
1cf3d07d
SE
13812 ac_outfile=conftest.$ac_objext
13813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13814 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13815 # Insert the option either (1) after the last *FLAGS variable, or
13816 # (2) before a word containing "conftest.", or (3) at the end.
13817 # Note that $ac_compile itself does not contain backslashes and begins
13818 # with a dollar sign (not a hyphen), so the echo should work correctly.
13819 # The option is referenced via a variable to avoid confusing sed.
13820 lt_compile=`echo "$ac_compile" | $SED \
13821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13823 -e 's:$: $lt_compiler_flag:'`
5213506e 13824 (eval echo "\"\$as_me:13824: $lt_compile\"" >&5)
1cf3d07d
SE
13825 (eval "$lt_compile" 2>conftest.err)
13826 ac_status=$?
13827 cat conftest.err >&5
5213506e 13828 echo "$as_me:13828: \$? = $ac_status" >&5
1cf3d07d
SE
13829 if (exit $ac_status) && test -s "$ac_outfile"; then
13830 # The compiler can only warn and ignore the option if not recognized
13831 # So say no if there are warnings other than the usual output.
13832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25e5de9a 13835 lt_cv_prog_compiler_pic_works_CXX=yes
1cf3d07d
SE
13836 fi
13837 fi
13838 $RM conftest*
13839
13840fi
5213506e
RW
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13842$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1cf3d07d 13843
25e5de9a 13844if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1cf3d07d
SE
13845 case $lt_prog_compiler_pic_CXX in
13846 "" | " "*) ;;
13847 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13848 esac
13849else
13850 lt_prog_compiler_pic_CXX=
13851 lt_prog_compiler_can_build_shared_CXX=no
13852fi
13853
13854fi
13855
13856
13857
13858#
13859# Check to make sure the static flag actually works.
13860#
13861wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5213506e
RW
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13863$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13864if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
1cf3d07d 13866else
25e5de9a 13867 lt_cv_prog_compiler_static_works_CXX=no
1cf3d07d
SE
13868 save_LDFLAGS="$LDFLAGS"
13869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13870 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13872 # The linker can only warn and ignore the option if not recognized
13873 # So say no if there are warnings
13874 if test -s conftest.err; then
13875 # Append any errors to the config.log.
13876 cat conftest.err 1>&5
13877 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13879 if diff conftest.exp conftest.er2 >/dev/null; then
25e5de9a 13880 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13881 fi
13882 else
25e5de9a 13883 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13884 fi
13885 fi
25e5de9a 13886 $RM -r conftest*
1cf3d07d
SE
13887 LDFLAGS="$save_LDFLAGS"
13888
13889fi
5213506e
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13891$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1cf3d07d 13892
25e5de9a 13893if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1cf3d07d
SE
13894 :
13895else
13896 lt_prog_compiler_static_CXX=
13897fi
13898
13899
13900
13901
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13904if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13906else
13907 lt_cv_prog_compiler_c_o_CXX=no
13908 $RM -r conftest 2>/dev/null
13909 mkdir conftest
13910 cd conftest
13911 mkdir out
13912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13913
13914 lt_compiler_flag="-o out/conftest2.$ac_objext"
13915 # Insert the option either (1) after the last *FLAGS variable, or
13916 # (2) before a word containing "conftest.", or (3) at the end.
13917 # Note that $ac_compile itself does not contain backslashes and begins
13918 # with a dollar sign (not a hyphen), so the echo should work correctly.
13919 lt_compile=`echo "$ac_compile" | $SED \
13920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13922 -e 's:$: $lt_compiler_flag:'`
5213506e 13923 (eval echo "\"\$as_me:13923: $lt_compile\"" >&5)
1cf3d07d
SE
13924 (eval "$lt_compile" 2>out/conftest.err)
13925 ac_status=$?
13926 cat out/conftest.err >&5
5213506e 13927 echo "$as_me:13927: \$? = $ac_status" >&5
1cf3d07d
SE
13928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13929 then
13930 # The compiler can only warn and ignore the option if not recognized
13931 # So say no if there are warnings
13932 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13935 lt_cv_prog_compiler_c_o_CXX=yes
13936 fi
13937 fi
13938 chmod u+w . 2>&5
13939 $RM conftest*
13940 # SGI C++ compiler will create directory out/ii_files/ for
13941 # template instantiation
13942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13943 $RM out/* && rmdir out
13944 cd ..
13945 $RM -r conftest
13946 $RM conftest*
13947
13948fi
5213506e
RW
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13950$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
13951
13952
13953
5213506e
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13955$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13956if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13958else
13959 lt_cv_prog_compiler_c_o_CXX=no
13960 $RM -r conftest 2>/dev/null
13961 mkdir conftest
13962 cd conftest
13963 mkdir out
13964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13965
13966 lt_compiler_flag="-o out/conftest2.$ac_objext"
13967 # Insert the option either (1) after the last *FLAGS variable, or
13968 # (2) before a word containing "conftest.", or (3) at the end.
13969 # Note that $ac_compile itself does not contain backslashes and begins
13970 # with a dollar sign (not a hyphen), so the echo should work correctly.
13971 lt_compile=`echo "$ac_compile" | $SED \
13972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974 -e 's:$: $lt_compiler_flag:'`
5213506e 13975 (eval echo "\"\$as_me:13975: $lt_compile\"" >&5)
1cf3d07d
SE
13976 (eval "$lt_compile" 2>out/conftest.err)
13977 ac_status=$?
13978 cat out/conftest.err >&5
5213506e 13979 echo "$as_me:13979: \$? = $ac_status" >&5
1cf3d07d
SE
13980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13981 then
13982 # The compiler can only warn and ignore the option if not recognized
13983 # So say no if there are warnings
13984 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13987 lt_cv_prog_compiler_c_o_CXX=yes
13988 fi
13989 fi
13990 chmod u+w . 2>&5
13991 $RM conftest*
13992 # SGI C++ compiler will create directory out/ii_files/ for
13993 # template instantiation
13994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13995 $RM out/* && rmdir out
13996 cd ..
13997 $RM -r conftest
13998 $RM conftest*
13999
14000fi
5213506e
RW
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14002$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
14003
14004
14005
14006
14007hard_links="nottested"
14008if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14009 # do not overwrite the value of need_locks provided by the user
5213506e
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14011$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
14012 hard_links=yes
14013 $RM conftest*
14014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14015 touch conftest.a
14016 ln conftest.a conftest.b 2>&5 || hard_links=no
14017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14019$as_echo "$hard_links" >&6; }
1cf3d07d 14020 if test "$hard_links" = no; then
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14022$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
14023 need_locks=warn
14024 fi
14025else
14026 need_locks=no
14027fi
14028
14029
14030
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14032$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14033
14034 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14035 case $host_os in
716e4bc6 14036 aix[4-9]*)
1cf3d07d
SE
14037 # If we're using GNU nm, then we don't want the "-C" option.
14038 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14039 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14040 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'
14041 else
14042 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'
14043 fi
14044 ;;
14045 pw32*)
14046 export_symbols_cmds_CXX="$ltdll_cmds"
14047 ;;
25e5de9a 14048 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
14049 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'
14050 ;;
14051 *)
14052 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14053 ;;
14054 esac
25e5de9a 14055 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d 14056
5213506e
RW
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14058$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
14059test "$ld_shlibs_CXX" = no && can_build_shared=no
14060
14061with_gnu_ld_CXX=$with_gnu_ld
14062
14063
14064
14065
14066
14067
14068#
14069# Do we need to explicitly link libc?
14070#
14071case "x$archive_cmds_need_lc_CXX" in
14072x|xyes)
14073 # Assume -lc should be added
14074 archive_cmds_need_lc_CXX=yes
14075
14076 if test "$enable_shared" = yes && test "$GCC" = yes; then
14077 case $archive_cmds_CXX in
14078 *'~'*)
14079 # FIXME: we may have to deal with multi-command sequences.
14080 ;;
14081 '$CC '*)
14082 # Test whether the compiler implicitly links with -lc since on some
14083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14084 # to ld, don't add -lc before -lgcc.
5213506e
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14086$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14087if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
baafc534
RW
14089else
14090 $RM conftest*
14091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14092
5213506e 14093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14094 (eval $ac_compile) 2>&5
14095 ac_status=$?
5213506e
RW
14096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14097 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14098 soname=conftest
14099 lib=conftest
14100 libobjs=conftest.$ac_objext
14101 deplibs=
14102 wl=$lt_prog_compiler_wl_CXX
14103 pic_flag=$lt_prog_compiler_pic_CXX
14104 compiler_flags=-v
14105 linker_flags=-v
14106 verstring=
14107 output_objdir=.
14108 libname=conftest
14109 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14110 allow_undefined_flag_CXX=
5213506e 14111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
14112 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14113 ac_status=$?
5213506e
RW
14114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14115 test $ac_status = 0; }
baafc534
RW
14116 then
14117 lt_cv_archive_cmds_need_lc_CXX=no
14118 else
14119 lt_cv_archive_cmds_need_lc_CXX=yes
14120 fi
14121 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14122 else
14123 cat conftest.err 1>&5
14124 fi
14125 $RM conftest*
14126
14127fi
5213506e
RW
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14129$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
baafc534 14130 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1cf3d07d
SE
14131 ;;
14132 esac
14133 fi
14134 ;;
14135esac
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
5213506e
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14201$as_echo_n "checking dynamic linker characteristics... " >&6; }
25e5de9a 14202
1cf3d07d
SE
14203library_names_spec=
14204libname_spec='lib$name'
14205soname_spec=
14206shrext_cmds=".so"
14207postinstall_cmds=
14208postuninstall_cmds=
14209finish_cmds=
14210finish_eval=
14211shlibpath_var=
14212shlibpath_overrides_runpath=unknown
14213version_type=none
14214dynamic_linker="$host_os ld.so"
14215sys_lib_dlsearch_path_spec="/lib /usr/lib"
14216need_lib_prefix=unknown
14217hardcode_into_libs=no
14218
14219# when you set need_version to no, make sure it does not cause -set_version
14220# flags to be left without arguments
14221need_version=unknown
14222
14223case $host_os in
14224aix3*)
14225 version_type=linux
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14227 shlibpath_var=LIBPATH
14228
14229 # AIX 3 has no versioning support, so we append a major version to the name.
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 ;;
14232
716e4bc6 14233aix[4-9]*)
1cf3d07d
SE
14234 version_type=linux
14235 need_lib_prefix=no
14236 need_version=no
14237 hardcode_into_libs=yes
14238 if test "$host_cpu" = ia64; then
14239 # AIX 5 supports IA64
14240 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 else
14243 # With GCC up to 2.95.x, collect2 would create an import file
14244 # for dependence libraries. The import file would start with
14245 # the line `#! .'. This would cause the generated library to
14246 # depend on `.', always an invalid library. This was fixed in
14247 # development snapshots of GCC prior to 3.0.
14248 case $host_os in
14249 aix4 | aix4.[01] | aix4.[01].*)
14250 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14251 echo ' yes '
14252 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14253 :
14254 else
14255 can_build_shared=no
14256 fi
14257 ;;
14258 esac
14259 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14260 # soname into executable. Probably we can add versioning support to
14261 # collect2, so additional links can be useful in future.
14262 if test "$aix_use_runtimelinking" = yes; then
14263 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14264 # instead of lib<name>.a to let people know that these are not
14265 # typical AIX shared libraries.
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267 else
14268 # We preserve .a as extension for shared libraries through AIX4.2
14269 # and later when we are not doing run time linking.
14270 library_names_spec='${libname}${release}.a $libname.a'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 fi
14273 shlibpath_var=LIBPATH
14274 fi
14275 ;;
14276
14277amigaos*)
25e5de9a
PG
14278 case $host_cpu in
14279 powerpc)
14280 # Since July 2007 AmigaOS4 officially supports .so libraries.
14281 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 ;;
14284 m68k)
1cf3d07d
SE
14285 library_names_spec='$libname.ixlibrary $libname.a'
14286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14287 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'
25e5de9a
PG
14288 ;;
14289 esac
1cf3d07d
SE
14290 ;;
14291
14292beos*)
14293 library_names_spec='${libname}${shared_ext}'
14294 dynamic_linker="$host_os ld.so"
14295 shlibpath_var=LIBRARY_PATH
14296 ;;
14297
14298bsdi[45]*)
14299 version_type=linux
14300 need_version=no
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14307 # the default ld.so.conf also contains /usr/contrib/lib and
14308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14309 # libtool to hard-code these into programs
14310 ;;
14311
25e5de9a 14312cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14313 version_type=windows
14314 shrext_cmds=".dll"
14315 need_version=no
14316 need_lib_prefix=no
14317
25e5de9a
PG
14318 case $GCC,$host_os in
14319 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
14320 library_names_spec='$libname.dll.a'
14321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14322 postinstall_cmds='base_file=`basename \${file}`~
14323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14324 dldir=$destdir/`dirname \$dlpath`~
14325 test -d \$dldir || mkdir -p \$dldir~
14326 $install_prog $dir/$dlname \$dldir/$dlname~
14327 chmod a+x \$dldir/$dlname~
14328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14330 fi'
14331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14332 dlpath=$dir/\$dldll~
14333 $RM \$dlpath'
14334 shlibpath_overrides_runpath=yes
14335
14336 case $host_os in
14337 cygwin*)
14338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14339 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14340 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14341 ;;
25e5de9a 14342 mingw* | cegcc*)
1cf3d07d
SE
14343 # MinGW DLLs use traditional 'lib' prefix
14344 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14345 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14346 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14347 # It is most probably a Windows format PATH printed by
14348 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14349 # path with ; separators, and with drive letters. We can handle the
14350 # drive letters (cygwin fileutils understands them), so leave them,
14351 # especially as we might pass files found there to a mingw objdump,
14352 # which wouldn't understand a cygwinified path. Ahh.
14353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14354 else
14355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14356 fi
14357 ;;
14358 pw32*)
14359 # pw32 DLLs use 'pw' prefix rather than 'lib'
14360 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14361 ;;
14362 esac
14363 ;;
14364
14365 *)
14366 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14367 ;;
14368 esac
14369 dynamic_linker='Win32 ld.exe'
14370 # FIXME: first we should search . and the directory the executable is in
14371 shlibpath_var=PATH
14372 ;;
14373
14374darwin* | rhapsody*)
14375 dynamic_linker="$host_os dyld"
14376 version_type=darwin
14377 need_lib_prefix=no
14378 need_version=no
14379 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14380 soname_spec='${libname}${release}${major}$shared_ext'
14381 shlibpath_overrides_runpath=yes
14382 shlibpath_var=DYLD_LIBRARY_PATH
14383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14384
14385 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14386 ;;
14387
14388dgux*)
14389 version_type=linux
14390 need_lib_prefix=no
14391 need_version=no
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 shlibpath_var=LD_LIBRARY_PATH
14395 ;;
14396
14397freebsd1*)
14398 dynamic_linker=no
14399 ;;
14400
14401freebsd* | dragonfly*)
14402 # DragonFly does not have aout. When/if they implement a new
14403 # versioning mechanism, adjust this.
14404 if test -x /usr/bin/objformat; then
14405 objformat=`/usr/bin/objformat`
14406 else
14407 case $host_os in
14408 freebsd[123]*) objformat=aout ;;
14409 *) objformat=elf ;;
14410 esac
14411 fi
14412 version_type=freebsd-$objformat
14413 case $version_type in
14414 freebsd-elf*)
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14416 need_version=no
14417 need_lib_prefix=no
14418 ;;
14419 freebsd-*)
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14421 need_version=yes
14422 ;;
14423 esac
14424 shlibpath_var=LD_LIBRARY_PATH
14425 case $host_os in
14426 freebsd2*)
14427 shlibpath_overrides_runpath=yes
14428 ;;
14429 freebsd3.[01]* | freebsdelf3.[01]*)
14430 shlibpath_overrides_runpath=yes
14431 hardcode_into_libs=yes
14432 ;;
14433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14435 shlibpath_overrides_runpath=no
14436 hardcode_into_libs=yes
14437 ;;
14438 *) # from 4.6 on, and DragonFly
14439 shlibpath_overrides_runpath=yes
14440 hardcode_into_libs=yes
14441 ;;
14442 esac
14443 ;;
14444
14445gnu*)
14446 version_type=linux
14447 need_lib_prefix=no
14448 need_version=no
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 hardcode_into_libs=yes
14453 ;;
14454
14455hpux9* | hpux10* | hpux11*)
14456 # Give a soname corresponding to the major version so that dld.sl refuses to
14457 # link against other versions.
14458 version_type=sunos
14459 need_lib_prefix=no
14460 need_version=no
14461 case $host_cpu in
14462 ia64*)
14463 shrext_cmds='.so'
14464 hardcode_into_libs=yes
14465 dynamic_linker="$host_os dld.so"
14466 shlibpath_var=LD_LIBRARY_PATH
14467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 if test "X$HPUX_IA64_MODE" = X32; then
14471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14472 else
14473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14474 fi
14475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14476 ;;
14477 hppa*64*)
14478 shrext_cmds='.sl'
14479 hardcode_into_libs=yes
14480 dynamic_linker="$host_os dld.sl"
14481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14487 ;;
14488 *)
14489 shrext_cmds='.sl'
14490 dynamic_linker="$host_os dld.sl"
14491 shlibpath_var=SHLIB_PATH
14492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14495 ;;
14496 esac
14497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14498 postinstall_cmds='chmod 555 $lib'
14499 ;;
14500
14501interix[3-9]*)
14502 version_type=linux
14503 need_lib_prefix=no
14504 need_version=no
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=no
14510 hardcode_into_libs=yes
14511 ;;
14512
14513irix5* | irix6* | nonstopux*)
14514 case $host_os in
14515 nonstopux*) version_type=nonstopux ;;
14516 *)
14517 if test "$lt_cv_prog_gnu_ld" = yes; then
14518 version_type=linux
14519 else
14520 version_type=irix
14521 fi ;;
14522 esac
14523 need_lib_prefix=no
14524 need_version=no
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14527 case $host_os in
14528 irix5* | nonstopux*)
14529 libsuff= shlibsuff=
14530 ;;
14531 *)
14532 case $LD in # libtool.m4 will add one of these switches to LD
14533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14534 libsuff= shlibsuff= libmagic=32-bit;;
14535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14536 libsuff=32 shlibsuff=N32 libmagic=N32;;
14537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14539 *) libsuff= shlibsuff= libmagic=never-match;;
14540 esac
14541 ;;
14542 esac
14543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14544 shlibpath_overrides_runpath=no
14545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14547 hardcode_into_libs=yes
14548 ;;
14549
14550# No shared lib support for Linux oldld, aout, or coff.
14551linux*oldld* | linux*aout* | linux*coff*)
14552 dynamic_linker=no
14553 ;;
14554
14555# This must be Linux ELF.
7a9d3fe8 14556linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14557 version_type=linux
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 shlibpath_overrides_runpath=no
baafc534 14565
1cf3d07d 14566 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
14567 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
baafc534
RW
14569else
14570 lt_cv_shlibpath_overrides_runpath=no
14571 save_LDFLAGS=$LDFLAGS
14572 save_libdir=$libdir
14573 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14574 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14575 if test x$gcc_no_link = xyes; then
5213506e 14576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ff66d28f 14577fi
5213506e 14578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 14579/* end confdefs.h. */
1cf3d07d
SE
14580
14581int
14582main ()
14583{
14584
14585 ;
14586 return 0;
14587}
ff66d28f 14588_ACEOF
5213506e
RW
14589if ac_fn_cxx_try_link "$LINENO"; then :
14590 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 14591 lt_cv_shlibpath_overrides_runpath=yes
ff66d28f 14592fi
ff66d28f 14593fi
5213506e
RW
14594rm -f core conftest.err conftest.$ac_objext \
14595 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
14596 LDFLAGS=$save_LDFLAGS
14597 libdir=$save_libdir
14598
14599fi
14600
14601 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
14602
14603 # This implies no fast_install, which is unacceptable.
14604 # Some rework will be needed to allow for fast_install
14605 # before this can be enabled.
14606 hardcode_into_libs=yes
14607
14608 # Append ld.so.conf contents to the search path
14609 if test -f /etc/ld.so.conf; then
25e5de9a 14610 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
14611 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14612 fi
14613
14614 # We used to test for /lib/ld.so.1 and disable shared libraries on
14615 # powerpc, because MkLinux only supported shared libraries with the
14616 # GNU dynamic linker. Since this was broken with cross compilers,
14617 # most powerpc-linux boxes support dynamic linking these days and
14618 # people can always --disable-shared, the test was removed, and we
14619 # assume the GNU/Linux dynamic linker is in use.
14620 dynamic_linker='GNU/Linux ld.so'
14621 ;;
ff66d28f 14622
1cf3d07d
SE
14623netbsd*)
14624 version_type=sunos
14625 need_lib_prefix=no
14626 need_version=no
14627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14630 dynamic_linker='NetBSD (a.out) ld.so'
14631 else
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 dynamic_linker='NetBSD ld.elf_so'
14635 fi
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14639 ;;
ff66d28f 14640
1cf3d07d
SE
14641newsos6)
14642 version_type=linux
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 ;;
ff66d28f 14647
1cf3d07d
SE
14648*nto* | *qnx*)
14649 version_type=qnx
14650 need_lib_prefix=no
14651 need_version=no
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=no
14656 hardcode_into_libs=yes
14657 dynamic_linker='ldqnx.so'
14658 ;;
14659
14660openbsd*)
14661 version_type=sunos
14662 sys_lib_dlsearch_path_spec="/usr/lib"
14663 need_lib_prefix=no
14664 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14665 case $host_os in
14666 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14667 *) need_version=no ;;
14668 esac
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14673 case $host_os in
14674 openbsd2.[89] | openbsd2.[89].*)
14675 shlibpath_overrides_runpath=no
14676 ;;
14677 *)
14678 shlibpath_overrides_runpath=yes
14679 ;;
14680 esac
ff66d28f 14681 else
1cf3d07d 14682 shlibpath_overrides_runpath=yes
ff66d28f 14683 fi
1cf3d07d 14684 ;;
ff66d28f 14685
1cf3d07d
SE
14686os2*)
14687 libname_spec='$name'
14688 shrext_cmds=".dll"
14689 need_lib_prefix=no
14690 library_names_spec='$libname${shared_ext} $libname.a'
14691 dynamic_linker='OS/2 ld.exe'
14692 shlibpath_var=LIBPATH
14693 ;;
14694
14695osf3* | osf4* | osf5*)
14696 version_type=osf
14697 need_lib_prefix=no
14698 need_version=no
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14703 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14704 ;;
14705
14706rdos*)
14707 dynamic_linker=no
14708 ;;
14709
14710solaris*)
14711 version_type=linux
14712 need_lib_prefix=no
14713 need_version=no
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=yes
14718 hardcode_into_libs=yes
14719 # ldd complains unless libraries are executable
14720 postinstall_cmds='chmod +x $lib'
14721 ;;
14722
14723sunos4*)
14724 version_type=sunos
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14729 if test "$with_gnu_ld" = yes; then
14730 need_lib_prefix=no
14731 fi
14732 need_version=yes
14733 ;;
14734
14735sysv4 | sysv4.3*)
14736 version_type=linux
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 case $host_vendor in
14741 sni)
14742 shlibpath_overrides_runpath=no
14743 need_lib_prefix=no
14744 runpath_var=LD_RUN_PATH
14745 ;;
14746 siemens)
14747 need_lib_prefix=no
14748 ;;
14749 motorola)
14750 need_lib_prefix=no
14751 need_version=no
14752 shlibpath_overrides_runpath=no
14753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14754 ;;
14755 esac
14756 ;;
14757
14758sysv4*MP*)
14759 if test -d /usr/nec ;then
14760 version_type=linux
14761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14762 soname_spec='$libname${shared_ext}.$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 fi
14765 ;;
14766
14767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14768 version_type=freebsd-elf
14769 need_lib_prefix=no
14770 need_version=no
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 shlibpath_overrides_runpath=yes
14775 hardcode_into_libs=yes
14776 if test "$with_gnu_ld" = yes; then
14777 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14778 else
14779 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14780 case $host_os in
14781 sco3.2v5*)
14782 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14783 ;;
14784 esac
14785 fi
14786 sys_lib_dlsearch_path_spec='/usr/lib'
14787 ;;
14788
14789tpf*)
14790 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14791 version_type=linux
14792 need_lib_prefix=no
14793 need_version=no
25e5de9a 14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
14795 shlibpath_var=LD_LIBRARY_PATH
14796 shlibpath_overrides_runpath=no
14797 hardcode_into_libs=yes
14798 ;;
14799
14800uts4*)
14801 version_type=linux
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 ;;
14806
14807*)
14808 dynamic_linker=no
14809 ;;
14810esac
5213506e
RW
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14812$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
14813test "$dynamic_linker" = no && can_build_shared=no
14814
14815variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14816if test "$GCC" = yes; then
14817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ff66d28f 14818fi
ff66d28f 14819
25e5de9a
PG
14820if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14821 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14822fi
14823if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14824 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14825fi
14826
1cf3d07d
SE
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
5213506e
RW
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14863$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
14864hardcode_action_CXX=
14865if test -n "$hardcode_libdir_flag_spec_CXX" ||
14866 test -n "$runpath_var_CXX" ||
14867 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14868
14869 # We can hardcode non-existent directories.
14870 if test "$hardcode_direct_CXX" != no &&
14871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14872 # have to relink, otherwise we might link with an installed library
14873 # when we should be linking with a yet-to-be-installed one
14874 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14875 test "$hardcode_minus_L_CXX" != no; then
14876 # Linking always hardcodes the temporary library directory.
14877 hardcode_action_CXX=relink
ff66d28f 14878 else
1cf3d07d
SE
14879 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14880 hardcode_action_CXX=immediate
ff66d28f
PE
14881 fi
14882else
1cf3d07d
SE
14883 # We cannot hardcode anything, or else we can only hardcode existing
14884 # directories.
14885 hardcode_action_CXX=unsupported
ff66d28f 14886fi
5213506e
RW
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14888$as_echo "$hardcode_action_CXX" >&6; }
ff66d28f 14889
1cf3d07d
SE
14890if test "$hardcode_action_CXX" = relink ||
14891 test "$inherit_rpath_CXX" = yes; then
14892 # Fast installation is not supported
14893 enable_fast_install=no
14894elif test "$shlibpath_overrides_runpath" = yes ||
14895 test "$enable_shared" = no; then
14896 # Fast installation is not necessary
14897 enable_fast_install=needless
ff66d28f 14898fi
ff66d28f 14899
1cf3d07d
SE
14900
14901
14902
14903
14904
14905
14906 fi # test -n "$compiler"
14907
14908 CC=$lt_save_CC
14909 LDCXX=$LD
14910 LD=$lt_save_LD
14911 GCC=$lt_save_GCC
14912 with_gnu_ld=$lt_save_with_gnu_ld
14913 lt_cv_path_LDCXX=$lt_cv_path_LD
14914 lt_cv_path_LD=$lt_save_path_LD
14915 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14916 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14917fi # test "$_lt_caught_CXX_error" != yes
ff66d28f
PE
14918
14919ac_ext=c
14920ac_cpp='$CPP $CPPFLAGS'
14921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924
3df64633
AO
14925
14926
3df64633 14927
3df64633 14928
3df64633 14929
34791641
PE
14930
14931
33590f13 14932
ff66d28f
PE
14933
14934
14935
ff66d28f 14936
5213506e 14937 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
14938
14939
14940
14941
14942# Only expand once:
14943
14944
14945
14946
14947
5f34ed87
BK
14948# Possibly disable most of the library.
14949## TODO: Consider skipping unncessary tests altogether in this case, rather
14950## than just ignoring the results. Faster /and/ more correct, win win.
4ffe6e87 14951
5213506e
RW
14952 # Check whether --enable-hosted-libstdcxx was given.
14953if test "${enable_hosted_libstdcxx+set}" = set; then :
14954 enableval=$enable_hosted_libstdcxx;
4ffe6e87 14955else
5f34ed87
BK
14956 case "$host" in
14957 arm*-*-symbianelf*)
14958 enable_hosted_libstdcxx=no
14959 ;;
14960 *)
14961 enable_hosted_libstdcxx=yes
14962 ;;
14963 esac
5213506e
RW
14964fi
14965
5f34ed87 14966 if test "$enable_hosted_libstdcxx" = no; then
5213506e
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: Only freestanding libraries will be built" >&5
14968$as_echo "$as_me: Only freestanding libraries will be built" >&6;}
5f34ed87
BK
14969 is_hosted=no
14970 hosted_define=0
14971 enable_abi_check=no
14972 enable_libstdcxx_pch=no
4ffe6e87 14973 else
5f34ed87
BK
14974 is_hosted=yes
14975 hosted_define=1
4ffe6e87 14976 fi
5f34ed87
BK
14977
14978
14979cat >>confdefs.h <<_ACEOF
14980#define _GLIBCXX_HOSTED $hosted_define
14981_ACEOF
14982
14983
14984
0646d8a3 14985# Enable compiler support that doesn't require linking.
5f34ed87 14986
5213506e
RW
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
14988$as_echo_n "checking for exception model to use... " >&6; }
5f34ed87 14989
5213506e 14990 ac_ext=cpp
5f34ed87
BK
14991ac_cpp='$CXXCPP $CPPFLAGS'
14992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14995
5213506e
RW
14996 # Check whether --enable-sjlj-exceptions was given.
14997if test "${enable_sjlj_exceptions+set}" = set; then :
14998 enableval=$enable_sjlj_exceptions;
5f34ed87
BK
14999 case "$enableval" in
15000 yes|no|auto) ;;
5213506e 15001 *) as_fn_error "Unknown argument to enable/disable sjlj-exceptions" "$LINENO" 5 ;;
5f34ed87
BK
15002 esac
15003
4ffe6e87 15004else
5f34ed87 15005 enable_sjlj_exceptions=auto
5213506e
RW
15006fi
15007
5f34ed87
BK
15008
15009
15010 if test $enable_sjlj_exceptions = auto; then
15011 # Botheration. Now we've got to detect the exception model. Link tests
15012 # against libgcc.a are problematic since we've not been given proper -L
15013 # bits for single-tree newlib and libgloss.
15014 #
15015 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
15016 cat > conftest.$ac_ext << EOF
5213506e 15017#line 15017 "configure"
5f34ed87
BK
15018struct S { ~S(); };
15019void bar();
15020void foo()
15021{
15022 S s;
15023 bar();
15024}
15025EOF
15026 old_CXXFLAGS="$CXXFLAGS"
15027 CXXFLAGS=-S
5213506e 15028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5f34ed87
BK
15029 (eval $ac_compile) 2>&5
15030 ac_status=$?
5213506e
RW
15031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15032 test $ac_status = 0; }; then
5f34ed87
BK
15033 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
15034 enable_sjlj_exceptions=yes
15035 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
15036 enable_sjlj_exceptions=no
15037 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
15038 enable_sjlj_exceptions=no
4ffe6e87
BK
15039 fi
15040 fi
5f34ed87
BK
15041 CXXFLAGS="$old_CXXFLAGS"
15042 rm -f conftest*
15043 fi
4ffe6e87 15044
5f34ed87
BK
15045 # This is a tad weird, for hysterical raisins. We have to map
15046 # enable/disable to two different models.
15047 case $enable_sjlj_exceptions in
15048 yes)
15049
5213506e 15050$as_echo "#define _GLIBCXX_SJLJ_EXCEPTIONS 1" >>confdefs.h
5f34ed87
BK
15051
15052 ac_exception_model_name=sjlj
15053 ;;
15054 no)
15055 ac_exception_model_name="call frame"
15056 ;;
15057 *)
5213506e 15058 as_fn_error "unable to detect exception model" "$LINENO" 5
5f34ed87
BK
15059 ;;
15060 esac
15061 ac_ext=c
15062ac_cpp='$CPP $CPPFLAGS'
15063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15065ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87 15066
5213506e
RW
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
15068$as_echo "$ac_exception_model_name" >&6; }
4ffe6e87
BK
15069
15070
5213506e
RW
15071 # Check whether --enable-libstdcxx-pch was given.
15072if test "${enable_libstdcxx_pch+set}" = set; then :
15073 enableval=$enable_libstdcxx_pch;
5f34ed87
BK
15074 case "$enableval" in
15075 yes|no) ;;
5213506e 15076 *) as_fn_error "Argument to enable/disable libstdcxx-pch must be yes or no" "$LINENO" 5 ;;
5f34ed87 15077 esac
4ffe6e87 15078
4ffe6e87 15079else
5f34ed87 15080 enable_libstdcxx_pch=$is_hosted
5213506e
RW
15081fi
15082
4ffe6e87 15083
5f34ed87 15084 if test $enable_libstdcxx_pch = yes; then
5213506e
RW
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler with PCH support" >&5
15086$as_echo_n "checking for compiler with PCH support... " >&6; }
15087if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then :
15088 $as_echo_n "(cached) " >&6
5f34ed87
BK
15089else
15090 ac_save_CXXFLAGS="$CXXFLAGS"
15091 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4ffe6e87 15092
5213506e 15093 ac_ext=cpp
5f34ed87
BK
15094ac_cpp='$CXXCPP $CPPFLAGS'
15095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4ffe6e87 15098
5f34ed87
BK
15099 echo '#include <math.h>' > conftest.h
15100 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
15101 -o conftest.h.gch 1>&5 2>&1 &&
15102 echo '#error "pch failed"' > conftest.h &&
15103 echo '#include "conftest.h"' > conftest.cc &&
15104 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
15105 then
15106 glibcxx_cv_prog_CXX_pch=yes
15107 else
15108 glibcxx_cv_prog_CXX_pch=no
15109 fi
15110 rm -f conftest*
15111 CXXFLAGS=$ac_save_CXXFLAGS
15112 ac_ext=c
15113ac_cpp='$CPP $CPPFLAGS'
15114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87
BK
15117
15118
5f34ed87 15119fi
5213506e
RW
15120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_prog_CXX_pch" >&5
15121$as_echo "$glibcxx_cv_prog_CXX_pch" >&6; }
5f34ed87
BK
15122 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
15123 fi
4ffe6e87 15124
5213506e
RW
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled PCH" >&5
15126$as_echo_n "checking for enabled PCH... " >&6; }
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_pch" >&5
15128$as_echo "$enable_libstdcxx_pch" >&6; }
4ffe6e87 15129
4ffe6e87 15130
5f34ed87 15131 if test $enable_libstdcxx_pch = yes; then
c2ba9709 15132 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5f34ed87
BK
15133 else
15134 glibcxx_PCHFLAGS=""
15135 fi
4ffe6e87 15136
4ffe6e87
BK
15137
15138
5213506e
RW
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
15140$as_echo_n "checking for thread model used by GCC... " >&6; }
f958e3ca 15141 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
5213506e
RW
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
15143$as_echo "$target_thread_file" >&6; }
f958e3ca
BE
15144
15145 if test $target_thread_file != single; then
15146
5213506e 15147$as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
f958e3ca
BE
15148
15149 fi
15150
15151 glibcxx_thread_h=gthr-$target_thread_file.h
15152
15153 gthread_file=${toplevel_srcdir}/gcc/${glibcxx_thread_h}
15154 if grep __GTHREADS $gthread_file >/dev/null 2>&1 ; then
15155 enable_thread=yes
15156 else
15157 enable_thread=no
15158 fi
15159
15160
15161
15162
e55d0e35 15163
5213506e 15164 ac_ext=cpp
e55d0e35
BK
15165ac_cpp='$CXXCPP $CPPFLAGS'
15166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15169
15170 old_CXXFLAGS="$CXXFLAGS"
15171
15172 # Compile unoptimized.
15173 CXXFLAGS='-O0 -S'
15174
326bc159
PC
15175 # Fake what AC_TRY_COMPILE does, without linking as this is
15176 # unnecessary for a builtins test.
e55d0e35
BK
15177
15178 cat > conftest.$ac_ext << EOF
5213506e 15179#line 15179 "configure"
e55d0e35 15180int main()
50ce8d3d
BK
15181{
15182 typedef bool atomic_type;
15183 atomic_type c1;
15184 atomic_type c2;
15185 const atomic_type c3(0);
15186 __sync_fetch_and_add(&c1, c2);
15187 __sync_val_compare_and_swap(&c1, c3, c2);
15188 __sync_lock_test_and_set(&c1, c3);
15189 __sync_lock_release(&c1);
15190 __sync_synchronize();
15191 return 0;
15192}
15193EOF
15194
5213506e
RW
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
15196$as_echo_n "checking for atomic builtins for bool... " >&6; }
15197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
50ce8d3d
BK
15198 (eval $ac_compile) 2>&5
15199 ac_status=$?
5213506e
RW
15200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15201 test $ac_status = 0; }; then
50ce8d3d 15202 if grep __sync_ conftest.s >/dev/null 2>&1 ; then
326bc159 15203 enable_atomic_builtinsb=no
50ce8d3d
BK
15204 else
15205
5213506e 15206$as_echo "#define _GLIBCXX_ATOMIC_BUILTINS_1 1" >>confdefs.h
50ce8d3d 15207
326bc159 15208 enable_atomic_builtinsb=yes
50ce8d3d
BK
15209 fi
15210 fi
5213506e
RW
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_builtinsb" >&5
15212$as_echo "$enable_atomic_builtinsb" >&6; }
50ce8d3d
BK
15213 rm -f conftest*
15214
15215 cat > conftest.$ac_ext << EOF
5213506e 15216#line 15216 "configure"
50ce8d3d
BK
15217int main()
15218{
15219 typedef short atomic_type;
15220 atomic_type c1;
15221 atomic_type c2;
15222 const atomic_type c3(0);
15223 __sync_fetch_and_add(&c1, c2);
15224 __sync_val_compare_and_swap(&c1, c3, c2);
15225 __sync_lock_test_and_set(&c1, c3);
15226 __sync_lock_release(&c1);
15227 __sync_synchronize();
15228 return 0;
15229}
15230EOF
15231
5213506e
RW
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
15233$as_echo_n "checking for atomic builtins for short... " >&6; }
15234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
50ce8d3d
BK
15235 (eval $ac_compile) 2>&5
15236 ac_status=$?
5213506e
RW
15237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15238 test $ac_status = 0; }; then
50ce8d3d 15239 if grep __sync_ conftest.s >/dev/null 2>&1 ; then
326bc159 15240 enable_atomic_builtinss=no
50ce8d3d
BK
15241 else
15242
5213506e 15243$as_echo "#define _GLIBCXX_ATOMIC_BUILTINS_2 1" >>confdefs.h
50ce8d3d 15244
326bc159 15245 enable_atomic_builtinss=yes
50ce8d3d
BK
15246 fi
15247 fi
5213506e
RW
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_builtinss" >&5
15249$as_echo "$enable_atomic_builtinss" >&6; }
50ce8d3d
BK
15250 rm -f conftest*
15251
15252 cat > conftest.$ac_ext << EOF
5213506e 15253#line 15253 "configure"
50ce8d3d 15254int main()
e55d0e35
BK
15255{
15256 // NB: _Atomic_word not necessarily int.
15257 typedef int atomic_type;
15258 atomic_type c1;
15259 atomic_type c2;
15260 const atomic_type c3(0);
15261 __sync_fetch_and_add(&c1, c2);
15262 __sync_val_compare_and_swap(&c1, c3, c2);
15263 __sync_lock_test_and_set(&c1, c3);
15264 __sync_lock_release(&c1);
15265 __sync_synchronize();
15266 return 0;
15267}
15268EOF
15269
5213506e
RW
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
15271$as_echo_n "checking for atomic builtins for int... " >&6; }
15272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
e55d0e35
BK
15273 (eval $ac_compile) 2>&5
15274 ac_status=$?
5213506e
RW
15275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15276 test $ac_status = 0; }; then
e55d0e35 15277 if grep __sync_ conftest.s >/dev/null 2>&1 ; then
326bc159 15278 enable_atomic_builtinsi=no
e55d0e35
BK
15279 else
15280
5213506e 15281$as_echo "#define _GLIBCXX_ATOMIC_BUILTINS_4 1" >>confdefs.h
e55d0e35 15282
326bc159 15283 enable_atomic_builtinsi=yes
e55d0e35
BK
15284 fi
15285 fi
5213506e
RW
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_builtinsi" >&5
15287$as_echo "$enable_atomic_builtinsi" >&6; }
e55d0e35
BK
15288 rm -f conftest*
15289
15290 cat > conftest.$ac_ext << EOF
5213506e 15291#line 15291 "configure"
e55d0e35
BK
15292int main()
15293{
50ce8d3d 15294 typedef long long atomic_type;
e55d0e35
BK
15295 atomic_type c1;
15296 atomic_type c2;
15297 const atomic_type c3(0);
15298 __sync_fetch_and_add(&c1, c2);
15299 __sync_val_compare_and_swap(&c1, c3, c2);
15300 __sync_lock_test_and_set(&c1, c3);
15301 __sync_lock_release(&c1);
15302 __sync_synchronize();
15303 return 0;
15304}
15305EOF
15306
5213506e
RW
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
15308$as_echo_n "checking for atomic builtins for long long... " >&6; }
15309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
e55d0e35
BK
15310 (eval $ac_compile) 2>&5
15311 ac_status=$?
5213506e
RW
15312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15313 test $ac_status = 0; }; then
e55d0e35 15314 if grep __sync_ conftest.s >/dev/null 2>&1 ; then
326bc159 15315 enable_atomic_builtinsll=no
e55d0e35
BK
15316 else
15317
5213506e 15318$as_echo "#define _GLIBCXX_ATOMIC_BUILTINS_8 1" >>confdefs.h
e55d0e35 15319
326bc159 15320 enable_atomic_builtinsll=yes
e55d0e35
BK
15321 fi
15322 fi
5213506e
RW
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_builtinsll" >&5
15324$as_echo "$enable_atomic_builtinsll" >&6; }
e55d0e35
BK
15325 rm -f conftest*
15326
50ce8d3d 15327
e55d0e35
BK
15328 CXXFLAGS="$old_CXXFLAGS"
15329 ac_ext=c
15330ac_cpp='$CPP $CPPFLAGS'
15331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333ac_compiler_gnu=$ac_cv_c_compiler_gnu
15334
15335
15336 # Set atomicity_dir to builtins if either of above tests pass.
326bc159 15337 if test $enable_atomic_builtinsi = yes || test $enable_atomic_builtinsb = yes ; then
e55d0e35
BK
15338 atomicity_dir=cpu/generic/atomicity_builtins
15339 fi
15340
15341 # If still generic, set to mutex.
15342 if test $atomicity_dir = "cpu/generic" ; then
15343 atomicity_dir=cpu/generic/atomicity_mutex
5213506e
RW
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No native atomic operations are provided for this platform." >&5
15345$as_echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
dd88bc97 15346 if test "x$target_thread_file" = xsingle; then
5213506e
RW
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They cannot be faked when thread support is disabled." >&5
15348$as_echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Thread-safety of certain classes is not guaranteed." >&5
15350$as_echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
e55d0e35 15351 else
5213506e
RW
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They will be faked using a mutex." >&5
15353$as_echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Performance of certain classes will degrade as a result." >&5
15355$as_echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
e55d0e35
BK
15356 fi
15357 fi
15358
15359
15360
4cdc8761
BK
15361
15362 # Fake what AC_TRY_COMPILE does, without linking as this is
15363 # unnecessary for this test.
15364
15365 cat > conftest.$ac_ext << EOF
15366#line 15366 "configure"
15367int main()
15368{
15369 _Decimal32 d1;
15370 _Decimal64 d2;
15371 _Decimal128 d3;
15372 return 0;
15373}
15374EOF
15375
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO/IEC TR 24733 " >&5
15377$as_echo_n "checking for ISO/IEC TR 24733 ... " >&6; }
15378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15379 (eval $ac_compile) 2>&5
15380 ac_status=$?
15381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15382 test $ac_status = 0; }; then
15383
15384$as_echo "#define _GLIBCXX_USE_DECIMAL_FLOAT 1" >>confdefs.h
15385
15386 enable_dfp=yes
15387 else
15388 enable_dfp=no
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dfp" >&5
15391$as_echo "$enable_dfp" >&6; }
15392 rm -f conftest*
15393
15394
b8c41c8e 15395# Checks for compiler support that doesn't require linking.
e55d0e35
BK
15396
15397 # All these tests are for C++; save the language and the compiler flags.
15398 # The CXXFLAGS thing is suspicious, but based on similar bits previously
15399 # found in GLIBCXX_CONFIGURE.
15400
5213506e 15401 ac_ext=cpp
e55d0e35
BK
15402ac_cpp='$CXXCPP $CPPFLAGS'
15403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15406
15407 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15408 ac_save_CXXFLAGS="$CXXFLAGS"
15409
15410 # Check for maintainer-mode bits.
15411 if test x"$USE_MAINTAINER_MODE" = xno; then
15412 WERROR=''
15413 else
15414 WERROR='-Werror'
15415 fi
15416
15417 # Check for -ffunction-sections -fdata-sections
5213506e
RW
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
15419$as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
e55d0e35 15420 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
5213506e 15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e55d0e35
BK
15422/* end confdefs.h. */
15423int foo; void bar() { };
15424int
15425main ()
15426{
15427
15428 ;
15429 return 0;
15430}
15431_ACEOF
5213506e 15432if ac_fn_cxx_try_compile "$LINENO"; then :
e55d0e35
BK
15433 ac_fdsections=yes
15434else
5213506e 15435 ac_fdsections=no
e55d0e35 15436fi
5213506e 15437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e55d0e35
BK
15438 if test "$ac_test_CXXFLAGS" = set; then
15439 CXXFLAGS="$ac_save_CXXFLAGS"
15440 else
15441 # this is the suspicious part
15442 CXXFLAGS=''
15443 fi
15444 if test x"$ac_fdsections" = x"yes"; then
15445 SECTION_FLAGS='-ffunction-sections -fdata-sections'
15446 fi
5213506e
RW
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
15448$as_echo "$ac_fdsections" >&6; }
e55d0e35
BK
15449
15450 ac_ext=c
15451ac_cpp='$CPP $CPPFLAGS'
15452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15454ac_compiler_gnu=$ac_cv_c_compiler_gnu
15455
15456
15457
15458
e55d0e35 15459
1894e4c5 15460# Enable all the variable C++ runtime options that don't require linking.
4ffe6e87 15461
5213506e
RW
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underlying I/O to use" >&5
15463$as_echo_n "checking for underlying I/O to use... " >&6; }
15464 # Check whether --enable-cstdio was given.
15465if test "${enable_cstdio+set}" = set; then :
15466 enableval=$enable_cstdio;
5f34ed87
BK
15467 case "$enableval" in
15468 stdio) ;;
5213506e 15469 *) as_fn_error "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
5f34ed87 15470 esac
4ffe6e87 15471
5f34ed87
BK
15472else
15473 enable_cstdio=stdio
5213506e
RW
15474fi
15475
4ffe6e87 15476
4ffe6e87 15477
5f34ed87
BK
15478 # Now that libio has been removed, you can have any color you want as long
15479 # as it's black. This is one big no-op until other packages are added, but
15480 # showing the framework never hurts.
15481 case ${enable_cstdio} in
15482 stdio)
15483 CSTDIO_H=config/io/c_io_stdio.h
15484 BASIC_FILE_H=config/io/basic_file_stdio.h
15485 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5213506e
RW
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio" >&5
15487$as_echo "stdio" >&6; }
5f34ed87
BK
15488 ;;
15489 esac
4ffe6e87 15490
4ffe6e87 15491
4ffe6e87 15492
4ffe6e87 15493
4ffe6e87 15494
4ffe6e87 15495
5213506e
RW
15496 # Check whether --enable-clocale was given.
15497if test "${enable_clocale+set}" = set; then :
15498 enableval=$enable_clocale;
5f34ed87
BK
15499 case "$enableval" in
15500 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5213506e 15501 *) as_fn_error "Unknown argument to enable/disable clocale" "$LINENO" 5 ;;
5f34ed87 15502 esac
92eabea2
PE
15503
15504else
5f34ed87 15505 enable_clocale=auto
5213506e
RW
15506fi
15507
92eabea2 15508
5780a46b 15509
0258dc3a
BK
15510 # Deal with gettext issues. Default to not using it (=no) until we detect
15511 # support for it later. Let the user turn it off via --e/d, but let that
15512 # default to on for easier handling.
15513 USE_NLS=no
5213506e
RW
15514 # Check whether --enable-nls was given.
15515if test "${enable_nls+set}" = set; then :
15516 enableval=$enable_nls;
0258dc3a
BK
15517else
15518 enable_nls=yes
5213506e
RW
15519fi
15520
0258dc3a
BK
15521
15522 # Either a known packaage, or "auto"
5f34ed87
BK
15523 if test $enable_clocale = no || test $enable_clocale = yes; then
15524 enable_clocale=auto
15525 fi
5f34ed87 15526 enable_clocale_flag=$enable_clocale
dd75251f 15527
0258dc3a 15528 # Probe for locale model to use if none specified.
ff66d28f
PE
15529 # Default to "generic".
15530 if test $enable_clocale_flag = auto; then
7d3998a4
PE
15531 case ${target_os} in
15532 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
0258dc3a
BK
15533 enable_clocale_flag=gnu
15534 ;;
15535 darwin* | freebsd*)
15536 enable_clocale_flag=darwin
15537 ;;
15538 *)
15539 enable_clocale_flag=generic
15540 ;;
15541 esac
15542 fi
15543
15544 # Sanity check model, and test for special functionality.
15545 if test $enable_clocale_flag = gnu; then
5213506e 15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f 15547/* end confdefs.h. */
56deb74c 15548
0258dc3a
BK
15549 #include <features.h>
15550 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
15551 _GLIBCXX_ok
15552 #endif
ff66d28f
PE
15553
15554_ACEOF
56deb74c 15555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 15556 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then :
56deb74c
BK
15557 enable_clocale_flag=gnu
15558else
56deb74c
BK
15559 enable_clocale_flag=generic
15560fi
15561rm -f conftest*
15562
1451a492 15563
1ba74130
PC
15564 if test $enable_clocale = auto; then
15565 # Test for bugs early in glibc-2.2.x series
5213506e 15566 if test "$cross_compiling" = yes; then :
1451a492
BK
15567 enable_clocale_flag=generic
15568else
5213506e 15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff66d28f
PE
15570/* end confdefs.h. */
15571
1ba74130
PC
15572 #define _GNU_SOURCE 1
15573 #include <locale.h>
15574 #include <string.h>
15575 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
15576 extern __typeof(newlocale) __newlocale;
15577 extern __typeof(duplocale) __duplocale;
15578 extern __typeof(strcoll_l) __strcoll_l;
15579 #endif
15580 int main()
15581 {
15582