]> git.ipfire.org Git - thirdparty/gcc.git/blame - boehm-gc/configure
Regenerate tree using Autoconf 2.64 and Automake 1.11.
[thirdparty/gcc.git] / boehm-gc / configure
CommitLineData
1530be84 1#! /bin/sh
1530be84 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
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.
1530be84
TT
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## -------------------- ##
47935194 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 :
47935194
NN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47935194
NN
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
47935194 31fi
47935194 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 }
47935194
NN
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
47935194
NN
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
47935194 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."
47935194 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."
47935194 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
47935194 372
5213506e
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47935194
NN
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
47935194
NN
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
47935194 391
5213506e 392as_me=`$as_basename -- "$0" ||
47935194
NN
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'`
47935194 410
47935194
NN
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
417
47935194 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 |
47935194 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
47935194 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47935194 436 t loop
5213506e 437 s/-\n.*//
47935194 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; }
47935194
NN
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"
47935194
NN
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';;
47935194
NN
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
47935194 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
47935194 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
47935194 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'
47935194 483 fi
47935194
NN
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
47935194
NN
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
47935194 492else
8ab705be 493 test -d ./-p && rmdir ./-p
47935194
NN
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
47935194
NN
519
520# Sed expression to map a string onto a valid CPP name.
8ab705be 521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
522
523# Sed expression to map a string onto a valid variable name.
8ab705be 524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194 525
1530be84 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
47935194
NN
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
47935194
NN
683#
684# Initializations.
685#
1530be84 686ac_default_prefix=/usr/local
5213506e 687ac_clean_files=
47935194 688ac_config_libobj_dir=.
5213506e 689LIBOBJS=
47935194
NN
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
47935194
NN
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
5213506e 701PACKAGE_URL=
47935194
NN
702
703ac_unique_file="gcj_mlc.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
5213506e 707#ifdef HAVE_SYS_TYPES_H
47935194
NN
708# include <sys/types.h>
709#endif
5213506e 710#ifdef HAVE_SYS_STAT_H
47935194
NN
711# include <sys/stat.h>
712#endif
5213506e 713#ifdef STDC_HEADERS
47935194
NN
714# include <stdlib.h>
715# include <stddef.h>
716#else
5213506e 717# ifdef HAVE_STDLIB_H
47935194
NN
718# include <stdlib.h>
719# endif
720#endif
5213506e
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
47935194
NN
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
5213506e 727#ifdef HAVE_STRINGS_H
47935194
NN
728# include <strings.h>
729#endif
5213506e 730#ifdef HAVE_INTTYPES_H
47935194 731# include <inttypes.h>
47935194 732#endif
5213506e
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
47935194
NN
737# include <unistd.h>
738#endif"
739
5213506e
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744toolexeclibdir
745toolexecdir
746MY_CFLAGS
747addtests
748addlibs
749addincludes
750addobjs
751AM_CPPFLAGS
752CPLUSPLUS_FALSE
753CPLUSPLUS_TRUE
754target_all
755EXTRA_TEST_LIBS
756extra_ldflags_libgc
757POWERPC_DARWIN_FALSE
758POWERPC_DARWIN_TRUE
759THREADLIBS
760CXXCPP
761CPP
762OTOOL64
763OTOOL
764LIPO
765NMEDIT
766DSYMUTIL
767lt_ECHO
768OBJDUMP
769LN_S
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775EGREP
776GREP
777SED
778LIBTOOL
779GC_CFLAGS
780MAINT
781MAINTAINER_MODE_FALSE
782MAINTAINER_MODE_TRUE
783RANLIB
784AR
785AS
786CCASFLAGS
787CCAS
788am__fastdepCXX_FALSE
789am__fastdepCXX_TRUE
790CXXDEPMODE
791ac_ct_CXX
792CXXFLAGS
793CXX
794am__fastdepCC_FALSE
795am__fastdepCC_TRUE
796CCDEPMODE
797AMDEPBACKSLASH
798AMDEP_FALSE
799AMDEP_TRUE
800am__quote
801am__include
802DEPDIR
803OBJEXT
804EXEEXT
805ac_ct_CC
806CPPFLAGS
807LDFLAGS
808CFLAGS
809CC
810am__untar
811am__tar
812AMTAR
813am__leading_dot
814SET_MAKE
815AWK
816mkdir_p
817MKDIR_P
818INSTALL_STRIP_PROGRAM
819STRIP
820install_sh
821MAKEINFO
822AUTOHEADER
823AUTOMAKE
824AUTOCONF
825ACLOCAL
826VERSION
827PACKAGE
828CYGPATH_W
829am__isrc
830INSTALL_DATA
831INSTALL_SCRIPT
832INSTALL_PROGRAM
833mkinstalldirs
834target_noncanonical
835target_os
836target_vendor
837target_cpu
838target
839host_os
840host_vendor
841host_cpu
842host
843build_os
844build_vendor
845build_cpu
846build
847multi_basedir
848target_alias
849host_alias
850build_alias
851LIBS
852ECHO_T
853ECHO_N
854ECHO_C
855DEFS
856mandir
857localedir
858libdir
859psdir
860pdfdir
861dvidir
862htmldir
863infodir
864docdir
865oldincludedir
866includedir
867localstatedir
868sharedstatedir
869sysconfdir
870datadir
871datarootdir
872libexecdir
873sbindir
874bindir
875program_transform_name
876prefix
877exec_prefix
878PACKAGE_URL
879PACKAGE_BUGREPORT
880PACKAGE_STRING
881PACKAGE_VERSION
882PACKAGE_TARNAME
883PACKAGE_NAME
884PATH_SEPARATOR
885SHELL'
47935194 886ac_subst_files=''
5213506e
RW
887ac_user_opts='
888enable_option_checking
889enable_multilib
890enable_dependency_tracking
891enable_maintainer_mode
892enable_shared
893enable_static
894with_pic
895enable_fast_install
896with_gnu_ld
897enable_libtool_lock
898with_target_subdir
899with_cross_host
900enable_parallel_mark
901with_ecos
902enable_gc_debug
903'
904 ac_precious_vars='build_alias
905host_alias
906target_alias
907CPP
908CPPFLAGS
909CXX
910CXXFLAGS
911LDFLAGS
912LIBS
913CCC
914CXXCPP'
915
1530be84
TT
916
917# Initialize some variables set by options.
47935194
NN
918ac_init_help=
919ac_init_version=false
5213506e
RW
920ac_unrecognized_opts=
921ac_unrecognized_sep=
1530be84
TT
922# The variables have the same names as the options, with
923# dashes changed to underlines.
47935194 924cache_file=/dev/null
1530be84 925exec_prefix=NONE
1530be84 926no_create=
1530be84
TT
927no_recursion=
928prefix=NONE
929program_prefix=NONE
930program_suffix=NONE
931program_transform_name=s,x,x,
932silent=
933site=
934srcdir=
1530be84
TT
935verbose=
936x_includes=NONE
937x_libraries=NONE
47935194
NN
938
939# Installation directory options.
940# These are left unexpanded so users can "make install exec_prefix=/foo"
941# and all the variables that are supposed to be based on exec_prefix
942# by default will actually change.
943# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 944# (The list follows the same order as the GNU Coding Standards.)
1530be84
TT
945bindir='${exec_prefix}/bin'
946sbindir='${exec_prefix}/sbin'
947libexecdir='${exec_prefix}/libexec'
5213506e
RW
948datarootdir='${prefix}/share'
949datadir='${datarootdir}'
1530be84
TT
950sysconfdir='${prefix}/etc'
951sharedstatedir='${prefix}/com'
952localstatedir='${prefix}/var'
1530be84
TT
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
5213506e
RW
955docdir='${datarootdir}/doc/${PACKAGE}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
1530be84 964
1530be84 965ac_prev=
5213506e 966ac_dashdash=
1530be84
TT
967for ac_option
968do
1530be84
TT
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
5213506e 971 eval $ac_prev=\$ac_option
1530be84
TT
972 ac_prev=
973 continue
974 fi
975
5213506e
RW
976 case $ac_option in
977 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 *) ac_optarg=yes ;;
979 esac
1530be84
TT
980
981 # Accept the important Cygnus configure options, so we can diagnose typos.
982
5213506e
RW
983 case $ac_dashdash$ac_option in
984 --)
985 ac_dashdash=yes ;;
1530be84
TT
986
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
47935194 990 bindir=$ac_optarg ;;
1530be84
TT
991
992 -build | --build | --buil | --bui | --bu)
47935194 993 ac_prev=build_alias ;;
1530be84 994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
47935194 995 build_alias=$ac_optarg ;;
1530be84
TT
996
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
47935194
NN
1002 cache_file=$ac_optarg ;;
1003
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1530be84 1006
5213506e 1007 -datadir | --datadir | --datadi | --datad)
1530be84 1008 ac_prev=datadir ;;
5213506e 1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
47935194 1010 datadir=$ac_optarg ;;
1530be84 1011
5213506e
RW
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1018
1530be84 1019 -disable-* | --disable-*)
5213506e 1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530be84 1021 # Reject names that are not valid shell variable names.
5213506e
RW
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1034
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1039
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1530be84
TT
1044
1045 -enable-* | --enable-*)
5213506e 1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530be84 1047 # Reject names that are not valid shell variable names.
5213506e
RW
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"enable_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1530be84 1058 esac
5213506e 1059 eval enable_$ac_useropt=\$ac_optarg ;;
1530be84
TT
1060
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
47935194 1068 exec_prefix=$ac_optarg ;;
1530be84
TT
1069
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1073
47935194
NN
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1530be84
TT
1080
1081 -host | --host | --hos | --ho)
47935194 1082 ac_prev=host_alias ;;
1530be84 1083 -host=* | --host=* | --hos=* | --ho=*)
47935194 1084 host_alias=$ac_optarg ;;
1530be84 1085
5213506e
RW
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1091
1530be84
TT
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
47935194 1097 includedir=$ac_optarg ;;
1530be84
TT
1098
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
47935194 1102 infodir=$ac_optarg ;;
1530be84
TT
1103
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
47935194 1107 libdir=$ac_optarg ;;
1530be84
TT
1108
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
47935194 1114 libexecdir=$ac_optarg ;;
1530be84 1115
5213506e
RW
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1120
1530be84 1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1122 | --localstate | --localstat | --localsta | --localst | --locals)
1530be84
TT
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
47935194 1126 localstatedir=$ac_optarg ;;
1530be84
TT
1127
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
47935194 1131 mandir=$ac_optarg ;;
1530be84
TT
1132
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1136
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
47935194 1138 | --no-cr | --no-c | -n)
1530be84
TT
1139 no_create=yes ;;
1140
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1144
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
47935194 1152 oldincludedir=$ac_optarg ;;
1530be84
TT
1153
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47935194 1157 prefix=$ac_optarg ;;
1530be84
TT
1158
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
47935194 1164 program_prefix=$ac_optarg ;;
1530be84
TT
1165
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
47935194 1171 program_suffix=$ac_optarg ;;
1530be84
TT
1172
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
47935194 1188 program_transform_name=$ac_optarg ;;
1530be84 1189
5213506e
RW
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1194
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1199
1530be84
TT
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
47935194 1208 sbindir=$ac_optarg ;;
1530be84
TT
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
47935194 1219 sharedstatedir=$ac_optarg ;;
1530be84
TT
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
47935194 1224 site=$ac_optarg ;;
1530be84
TT
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47935194 1229 srcdir=$ac_optarg ;;
1530be84
TT
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
47935194 1236 sysconfdir=$ac_optarg ;;
1530be84
TT
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
47935194 1239 ac_prev=target_alias ;;
1530be84 1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
47935194 1241 target_alias=$ac_optarg ;;
1530be84
TT
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
47935194
NN
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1530be84
TT
1248
1249 -with-* | --with-*)
5213506e 1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1530be84 1251 # Reject names that are not valid shell variable names.
5213506e
RW
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1530be84 1262 esac
5213506e 1263 eval with_$ac_useropt=\$ac_optarg ;;
1530be84
TT
1264
1265 -without-* | --without-*)
5213506e 1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530be84 1267 # Reject names that are not valid shell variable names.
5213506e
RW
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1530be84
TT
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
47935194 1290 x_includes=$ac_optarg ;;
1530be84
TT
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
47935194 1297 x_libraries=$ac_optarg ;;
1530be84 1298
5213506e
RW
1299 -*) as_fn_error "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information."
1530be84
TT
1301 ;;
1302
47935194
NN
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
5213506e
RW
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
47935194
NN
1311 export $ac_envvar ;;
1312
1530be84 1313 *)
47935194 1314 # FIXME: should be removed in autoconf 3.0.
5213506e 1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
47935194 1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
47935194 1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1530be84
TT
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
47935194 1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1326 as_fn_error "missing argument to $ac_option"
1530be84 1327fi
1530be84 1328
5213506e
RW
1329if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
47935194 1334 esac
5213506e 1335fi
1530be84 1336
5213506e
RW
1337# Check all directory arguments for consistency.
1338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1530be84 1342do
5213506e
RW
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
47935194 1351 case $ac_val in
5213506e
RW
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1530be84 1354 esac
5213506e 1355 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1530be84
TT
1356done
1357
47935194
NN
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
5213506e 1369 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
47935194
NN
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1530be84 1375
47935194
NN
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1530be84 1380
1530be84 1381
5213506e
RW
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error "working directory cannot be determined"
1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error "pwd does not report name of working directory"
1388
1389
1530be84
TT
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
5213506e
RW
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399$as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
1530be84 1417 srcdir=$ac_confdir
5213506e 1418 if test ! -r "$srcdir/$ac_unique_file"; then
1530be84
TT
1419 srcdir=..
1420 fi
1421else
1422 ac_srcdir_defaulted=no
1423fi
5213506e
RW
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1427fi
1428ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
47935194
NN
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456\`configure' configures this package to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
47935194
NN
1476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1478 [$ac_default_prefix]
47935194 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1480 [PREFIX]
47935194
NN
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
5213506e
RW
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
47935194
NN
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526
1527 cat <<\_ACEOF
1528
1529Optional Features:
5213506e 1530 --disable-option-checking ignore unrecognized --enable/--with options
47935194
NN
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-multilib build many library versions (default)
bf9a420e
PB
1534 --disable-dependency-tracking speeds up one-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --enable-maintainer-mode enable make rules and dependencies not useful
1537 (and sometimes confusing) to the casual installer
5213506e
RW
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation [default=yes]
47935194
NN
1542 --disable-libtool-lock avoid locking (might break parallel builds)
1543 --enable-parallel-mark parallelize marking and free list construction
3c1cbf58 1544 --enable-gc-debug include full support for pointer backtracing etc.
47935194
NN
1545
1546Optional Packages:
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1550 both]
1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
47935194
NN
1552 --with-target-subdir=SUBDIR
1553 configuring with a cross compiler
1554 --with-cross-host=HOST configuring with a cross compiler
1555 --with-ecos enable runtime eCos target support
1556
1557Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
5213506e
RW
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
47935194
NN
1565 CXX C++ compiler command
1566 CXXFLAGS C++ compiler flags
47935194 1567 CPP C preprocessor
1cf3d07d 1568 CXXCPP C++ preprocessor
47935194
NN
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
5213506e 1573Report bugs to the package provider.
47935194 1574_ACEOF
5213506e 1575ac_status=$?
47935194
NN
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
47935194 1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
47935194
NN
1584 ac_builddir=.
1585
5213506e
RW
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
47935194
NN
1601
1602case $srcdir in
5213506e 1603 .) # We are building in place.
47935194 1604 ac_srcdir=.
5213506e
RW
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
47935194 1608 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8ab705be 1615esac
5213506e
RW
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
47935194 1626 else
5213506e
RW
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
47935194
NN
1630 done
1631fi
1632
5213506e 1633test -n "$ac_init_help" && exit $ac_status
47935194
NN
1634if $ac_init_version; then
1635 cat <<\_ACEOF
5213506e
RW
1636configure
1637generated by GNU Autoconf 2.64
47935194 1638
5213506e 1639Copyright (C) 2009 Free Software Foundation, Inc.
47935194
NN
1640This configure script is free software; the Free Software Foundation
1641gives unlimited permission to copy, distribute and modify it.
1642_ACEOF
5213506e 1643 exit
47935194 1644fi
47935194 1645
5213506e
RW
1646## ------------------------ ##
1647## Autoconf initialization. ##
1648## ------------------------ ##
47935194 1649
5213506e
RW
1650# ac_fn_c_try_compile LINENO
1651# --------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_compile ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
47935194 1680
5213506e
RW
1681 ac_retval=1
1682fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1685
1686} # ac_fn_c_try_compile
1687
1688# ac_fn_cxx_try_compile LINENO
1689# ----------------------------
1690# Try to compile conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_cxx_try_compile ()
47935194 1692{
5213506e
RW
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_cxx_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
47935194 1718
5213506e
RW
1719 ac_retval=1
1720fi
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 return $ac_retval
47935194 1723
5213506e 1724} # ac_fn_cxx_try_compile
47935194 1725
5213506e
RW
1726# ac_fn_c_try_link LINENO
1727# -----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_link ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 $as_test_x conftest$ac_exeext
1754 }; then :
1755 ac_retval=0
1756else
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 return $ac_retval
1769
1770} # ac_fn_c_try_link
1771
1772# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773# -------------------------------------------------------
1774# Tests whether HEADER exists and can be compiled using the include files in
1775# INCLUDES, setting the cache variable VAR accordingly.
1776ac_fn_c_check_header_compile ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791else
1792 eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
1801} # ac_fn_c_check_header_compile
1802
1803# ac_fn_c_try_cpp LINENO
1804# ----------------------
1805# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806ac_fn_c_try_cpp ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } >/dev/null && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829else
1830 $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1837
1838} # ac_fn_c_try_cpp
1839
1840# ac_fn_c_try_run LINENO
1841# ----------------------
1842# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843# that executables *can* be run.
1844ac_fn_c_try_run ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1848case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858 { { case "(($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_try") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1868 ac_retval=0
1869else
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=$ac_status
1875fi
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1879
1880} # ac_fn_c_try_run
1881
1882# ac_fn_c_check_func LINENO FUNC VAR
1883# ----------------------------------
1884# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885ac_fn_c_check_func ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892else
1893 if test x$gcc_no_link = xyes; then
1894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1895fi
1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
1901
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950} # ac_fn_c_check_func
1951
1952# ac_fn_cxx_try_cpp LINENO
1953# ------------------------
1954# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_cpp ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1959case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } >/dev/null && {
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 }; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 return $ac_retval
1986
1987} # ac_fn_cxx_try_cpp
1988
1989# ac_fn_cxx_try_link LINENO
1990# -------------------------
1991# Try to link conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_cxx_try_link ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 $as_test_x conftest$ac_exeext
2017 }; then :
2018 ac_retval=0
2019else
2020 $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 return $ac_retval
2032
2033} # ac_fn_cxx_try_link
2034
2035# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2036# ----------------------------------------------------
2037# Tries to find if the field MEMBER exists in type AGGR, after including
2038# INCLUDES, setting cache variable VAR accordingly.
2039ac_fn_c_check_member ()
2040{
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2043$as_echo_n "checking for $2.$3... " >&6; }
2044if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$5
2050int
2051main ()
2052{
2053static $2 ac_aggr;
2054if (ac_aggr.$3)
2055return 0;
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$4=yes"
2062else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$5
2066int
2067main ()
2068{
2069static $2 ac_aggr;
2070if (sizeof ac_aggr.$3)
2071return 0;
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$4=yes"
2078else
2079 eval "$4=no"
2080fi
2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082fi
2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084fi
2085eval ac_res=\$$4
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087$as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089
2090} # ac_fn_c_check_member
2091
2092# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093# -------------------------------------------------------
2094# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095# the include files in INCLUDES and setting the cache variable VAR
2096# accordingly.
2097ac_fn_c_check_header_mongrel ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2104 $as_echo_n "(cached) " >&6
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109else
2110 # Is the header compilable?
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112$as_echo_n "checking $2 usability... " >&6; }
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116#include <$2>
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_header_compiler=yes
2120else
2121 ac_header_compiler=no
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125$as_echo "$ac_header_compiler" >&6; }
2126
2127# Is the header present?
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129$as_echo_n "checking $2 presence... " >&6; }
2130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132#include <$2>
2133_ACEOF
2134if ac_fn_c_try_cpp "$LINENO"; then :
2135 ac_header_preproc=yes
2136else
2137 ac_header_preproc=no
2138fi
2139rm -f conftest.err conftest.$ac_ext
2140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141$as_echo "$ac_header_preproc" >&6; }
2142
2143# So? What about this header?
2144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145 yes:no: )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 ;;
2151 no:yes:* )
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2155$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2159$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 ;;
2163esac
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165$as_echo_n "checking for $2... " >&6; }
2166if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2167 $as_echo_n "(cached) " >&6
2168else
2169 eval "$3=\$ac_header_compiler"
2170fi
2171eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173$as_echo "$ac_res" >&6; }
2174fi
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176
2177} # ac_fn_c_check_header_mongrel
2178cat >config.log <<_ACEOF
2179This file contains any messages produced by compilers while
2180running configure, to aid debugging if configure makes a mistake.
2181
2182It was created by $as_me, which was
2183generated by GNU Autoconf 2.64. Invocation command line was
2184
2185 $ $0 $@
2186
2187_ACEOF
2188exec 5>>config.log
2189{
2190cat <<_ASUNAME
2191## --------- ##
2192## Platform. ##
2193## --------- ##
2194
2195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2203
2204/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
47935194
NN
2208/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2211
2212_ASUNAME
2213
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
5213506e
RW
2219 $as_echo "PATH: $as_dir"
2220 done
2221IFS=$as_save_IFS
47935194
NN
2222
2223} >&5
2224
2225cat >&5 <<_ACEOF
2226
2227
2228## ----------- ##
2229## Core tests. ##
2230## ----------- ##
2231
2232_ACEOF
2233
2234
2235# Keep a trace of the command line.
2236# Strip out --no-create and --no-recursion so they do not pile up.
2237# Strip out --silent because we don't want to record it for future runs.
2238# Also quote any args containing shell meta-characters.
2239# Make two passes to allow for proper duplicate-argument suppression.
2240ac_configure_args=
2241ac_configure_args0=
2242ac_configure_args1=
47935194
NN
2243ac_must_keep_next=false
2244for ac_pass in 1 2
2245do
2246 for ac_arg
2247 do
2248 case $ac_arg in
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2252 continue ;;
5213506e
RW
2253 *\'*)
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47935194
NN
2255 esac
2256 case $ac_pass in
5213506e 2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
47935194 2258 2)
5213506e 2259 as_fn_append ac_configure_args1 " '$ac_arg'"
47935194 2260 if test $ac_must_keep_next = true; then
8ab705be 2261 ac_must_keep_next=false # Got value, back to normal.
47935194 2262 else
8ab705be
KC
2263 case $ac_arg in
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 esac
2271 ;;
2272 -* ) ac_must_keep_next=true ;;
2273 esac
47935194 2274 fi
5213506e 2275 as_fn_append ac_configure_args " '$ac_arg'"
47935194
NN
2276 ;;
2277 esac
2278 done
2279done
5213506e
RW
2280{ ac_configure_args0=; unset ac_configure_args0;}
2281{ ac_configure_args1=; unset ac_configure_args1;}
47935194
NN
2282
2283# When interrupted or exit'd, cleanup temporary files, and complete
2284# config.log. We remove comments because anyway the quotes in there
2285# would cause problems or look ugly.
5213506e
RW
2286# WARNING: Use '\'' to represent an apostrophe within the trap.
2287# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
47935194
NN
2288trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2290 {
2291 echo
2292
2293 cat <<\_ASBOX
2294## ---------------- ##
2295## Cache variables. ##
2296## ---------------- ##
2297_ASBOX
2298 echo
2299 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2300(
2301 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in #(
2304 *${as_nl}*)
2305 case $ac_var in #(
2306 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2307$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308 esac
2309 case $ac_var in #(
2310 _ | IFS | as_nl) ;; #(
2311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2312 *) { eval $ac_var=; unset $ac_var;} ;;
2313 esac ;;
2314 esac
2315 done
47935194 2316 (set) 2>&1 |
5213506e
RW
2317 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2318 *${as_nl}ac_space=\ *)
47935194 2319 sed -n \
5213506e
RW
2320 "s/'\''/'\''\\\\'\'''\''/g;
2321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322 ;; #(
47935194 2323 *)
5213506e 2324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47935194 2325 ;;
5213506e
RW
2326 esac |
2327 sort
2328)
47935194
NN
2329 echo
2330
2331 cat <<\_ASBOX
2332## ----------------- ##
2333## Output variables. ##
2334## ----------------- ##
2335_ASBOX
2336 echo
2337 for ac_var in $ac_subst_vars
2338 do
5213506e
RW
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
47935194
NN
2344 done | sort
2345 echo
2346
2347 if test -n "$ac_subst_files"; then
2348 cat <<\_ASBOX
5213506e
RW
2349## ------------------- ##
2350## File substitutions. ##
2351## ------------------- ##
47935194
NN
2352_ASBOX
2353 echo
2354 for ac_var in $ac_subst_files
2355 do
5213506e
RW
2356 eval ac_val=\$$ac_var
2357 case $ac_val in
2358 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359 esac
2360 $as_echo "$ac_var='\''$ac_val'\''"
47935194
NN
2361 done | sort
2362 echo
2363 fi
2364
2365 if test -s confdefs.h; then
2366 cat <<\_ASBOX
2367## ----------- ##
2368## confdefs.h. ##
2369## ----------- ##
2370_ASBOX
2371 echo
5213506e 2372 cat confdefs.h
47935194
NN
2373 echo
2374 fi
2375 test "$ac_signal" != 0 &&
5213506e
RW
2376 $as_echo "$as_me: caught signal $ac_signal"
2377 $as_echo "$as_me: exit $exit_status"
47935194 2378 } >&5
5213506e
RW
2379 rm -f core *.core core.conftest.* &&
2380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
47935194 2381 exit $exit_status
5213506e 2382' 0
47935194 2383for ac_signal in 1 2 13 15; do
5213506e 2384 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
47935194
NN
2385done
2386ac_signal=0
2387
2388# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2389rm -f -r conftest* confdefs.h
2390
2391$as_echo "/* confdefs.h */" > confdefs.h
47935194
NN
2392
2393# Predefined preprocessor variables.
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_NAME "$PACKAGE_NAME"
2397_ACEOF
2398
47935194
NN
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2401_ACEOF
2402
47935194
NN
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_VERSION "$PACKAGE_VERSION"
2405_ACEOF
2406
47935194
NN
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_STRING "$PACKAGE_STRING"
2409_ACEOF
2410
47935194
NN
2411cat >>confdefs.h <<_ACEOF
2412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2413_ACEOF
2414
5213506e
RW
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_URL "$PACKAGE_URL"
2417_ACEOF
2418
47935194
NN
2419
2420# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2421# Prefer an explicitly selected file to automatically selected ones.
2422ac_site_file1=NONE
2423ac_site_file2=NONE
2424if test -n "$CONFIG_SITE"; then
2425 ac_site_file1=$CONFIG_SITE
2426elif test "x$prefix" != xNONE; then
2427 ac_site_file1=$prefix/share/config.site
2428 ac_site_file2=$prefix/etc/config.site
2429else
2430 ac_site_file1=$ac_default_prefix/share/config.site
2431 ac_site_file2=$ac_default_prefix/etc/config.site
2432fi
2433for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2434do
2435 test "x$ac_site_file" = xNONE && continue
1530be84 2436 if test -r "$ac_site_file"; then
5213506e
RW
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2438$as_echo "$as_me: loading site script $ac_site_file" >&6;}
47935194 2439 sed 's/^/| /' "$ac_site_file" >&5
1530be84
TT
2440 . "$ac_site_file"
2441 fi
2442done
2443
2444if test -r "$cache_file"; then
47935194
NN
2445 # Some versions of bash will fail to source /dev/null (special
2446 # files actually), so we avoid doing that.
2447 if test -f "$cache_file"; then
5213506e
RW
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2449$as_echo "$as_me: loading cache $cache_file" >&6;}
47935194 2450 case $cache_file in
5213506e
RW
2451 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2452 *) . "./$cache_file";;
47935194
NN
2453 esac
2454 fi
1530be84 2455else
5213506e
RW
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2457$as_echo "$as_me: creating cache $cache_file" >&6;}
47935194
NN
2458 >$cache_file
2459fi
2460
2461# Check that the precious variables saved in the cache have kept the same
2462# value.
2463ac_cache_corrupted=false
5213506e 2464for ac_var in $ac_precious_vars; do
47935194
NN
2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2466 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2468 eval ac_new_val=\$ac_env_${ac_var}_value
47935194
NN
2469 case $ac_old_set,$ac_new_set in
2470 set,)
5213506e
RW
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2472$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
47935194
NN
2473 ac_cache_corrupted=: ;;
2474 ,set)
5213506e
RW
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2476$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
47935194
NN
2477 ac_cache_corrupted=: ;;
2478 ,);;
2479 *)
2480 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2481 # differences in whitespace do not lead to failure.
2482 ac_old_val_w=`echo x $ac_old_val`
2483 ac_new_val_w=`echo x $ac_new_val`
2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2486$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2487 ac_cache_corrupted=:
2488 else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2490$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2491 eval $ac_var=\$ac_old_val
2492 fi
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2494$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2496$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
47935194
NN
2497 fi;;
2498 esac
2499 # Pass precious variables to config.status.
2500 if test "$ac_new_set" = set; then
2501 case $ac_new_val in
5213506e 2502 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
47935194
NN
2503 *) ac_arg=$ac_var=$ac_new_val ;;
2504 esac
2505 case " $ac_configure_args " in
2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
47935194
NN
2508 esac
2509 fi
2510done
2511if $ac_cache_corrupted; then
5213506e
RW
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2515$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2516 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1530be84 2517fi
5213506e
RW
2518## -------------------- ##
2519## Main body of script. ##
2520## -------------------- ##
1530be84
TT
2521
2522ac_ext=c
1530be84 2523ac_cpp='$CPP $CPPFLAGS'
47935194
NN
2524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527
2528
2529
1530be84
TT
2530
2531
2532
6706f116
AO
2533# This works around the fact that libtool configuration may change LD
2534# for this particular configuration, but some shells, instead of
2535# keeping the changes in LD private, export them just because LD is
2536# exported.
2537ORIGINAL_LD_FOR_MULTILIBS=$LD
2538
bf9a420e 2539# Default to --enable-multilib
5213506e
RW
2540# Check whether --enable-multilib was given.
2541if test "${enable_multilib+set}" = set; then :
2542 enableval=$enable_multilib; case "$enableval" in
b1891e51
NN
2543 yes) multilib=yes ;;
2544 no) multilib=no ;;
5213506e 2545 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
b1891e51
NN
2546 esac
2547else
2548 multilib=yes
5213506e
RW
2549fi
2550
b1891e51 2551
bf9a420e
PB
2552# We may get other options which we leave undocumented:
2553# --with-target-subdir, --with-multisrctop, --with-multisubdir
2554# See config-ml.in if you want the gory details.
2555
2556if test "$srcdir" = "."; then
2557 if test "$with_target_subdir" != "."; then
2558 multi_basedir="$srcdir/$with_multisrctop../.."
b1891e51 2559 else
bf9a420e 2560 multi_basedir="$srcdir/$with_multisrctop.."
b1891e51
NN
2561 fi
2562else
bf9a420e 2563 multi_basedir="$srcdir/.."
b1891e51
NN
2564fi
2565
b1891e51 2566
8a489465
JH
2567# Even if the default multilib is not a cross compilation,
2568# it may be that some of the other multilibs are.
2569if test $cross_compiling = no && test $multilib = yes \
2570 && test "x${with_multisubdir}" != x ; then
2571 cross_compiling=maybe
2572fi
2573
5213506e 2574ac_config_commands="$ac_config_commands default-1"
bf9a420e
PB
2575
2576
2577ac_aux_dir=
5213506e
RW
2578for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2579 for ac_t in install-sh install.sh shtool; do
2580 if test -f "$ac_dir/$ac_t"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/$ac_t -c"
2583 break 2
2584 fi
2585 done
b1891e51
NN
2586done
2587if test -z "$ac_aux_dir"; then
5213506e 2588 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b1891e51 2589fi
5213506e
RW
2590
2591# These three variables are undocumented and unsupported,
2592# and are intended to be withdrawn in a future Autoconf release.
2593# They can cause serious problems if a builder's source tree is in a directory
2594# whose full name contains unusual characters.
2595ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2596ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2597ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2598
b1891e51 2599
b1891e51 2600# Make sure we can run config.sub.
5213506e
RW
2601$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2602 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2603
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2605$as_echo_n "checking build system type... " >&6; }
2606if test "${ac_cv_build+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608else
2609 ac_build_alias=$build_alias
2610test "x$ac_build_alias" = x &&
2611 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2612test "x$ac_build_alias" = x &&
2613 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2614ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2615 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2616
2617fi
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2619$as_echo "$ac_cv_build" >&6; }
2620case $ac_cv_build in
2621*-*-*) ;;
2622*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2623esac
47935194 2624build=$ac_cv_build
5213506e
RW
2625ac_save_IFS=$IFS; IFS='-'
2626set x $ac_cv_build
2627shift
2628build_cpu=$1
2629build_vendor=$2
2630shift; shift
2631# Remember, the first character of IFS is used to create $*,
2632# except with old shells:
2633build_os=$*
2634IFS=$ac_save_IFS
2635case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
47935194
NN
2636
2637
5213506e
RW
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2639$as_echo_n "checking host system type... " >&6; }
2640if test "${ac_cv_host+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test "x$host_alias" = x; then
2644 ac_cv_host=$ac_cv_build
47935194 2645else
5213506e
RW
2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2648fi
47935194
NN
2649
2650fi
5213506e
RW
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2652$as_echo "$ac_cv_host" >&6; }
2653case $ac_cv_host in
2654*-*-*) ;;
2655*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2656esac
47935194 2657host=$ac_cv_host
5213506e
RW
2658ac_save_IFS=$IFS; IFS='-'
2659set x $ac_cv_host
2660shift
2661host_cpu=$1
2662host_vendor=$2
2663shift; shift
2664# Remember, the first character of IFS is used to create $*,
2665# except with old shells:
2666host_os=$*
2667IFS=$ac_save_IFS
2668case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47935194
NN
2669
2670
5213506e
RW
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2672$as_echo_n "checking target system type... " >&6; }
2673if test "${ac_cv_target+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
47935194 2675else
5213506e
RW
2676 if test "x$target_alias" = x; then
2677 ac_cv_target=$ac_cv_host
2678else
2679 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2680 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2681fi
b1891e51 2682
47935194 2683fi
5213506e
RW
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2685$as_echo "$ac_cv_target" >&6; }
2686case $ac_cv_target in
2687*-*-*) ;;
2688*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2689esac
47935194 2690target=$ac_cv_target
5213506e
RW
2691ac_save_IFS=$IFS; IFS='-'
2692set x $ac_cv_target
2693shift
2694target_cpu=$1
2695target_vendor=$2
2696shift; shift
2697# Remember, the first character of IFS is used to create $*,
2698# except with old shells:
2699target_os=$*
2700IFS=$ac_save_IFS
2701case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b1891e51 2702
b1891e51 2703
47935194
NN
2704# The aliases save the names the user supplied, while $host etc.
2705# will get canonicalized.
2706test -n "$target_alias" &&
b1891e51
NN
2707 test "$program_prefix$program_suffix$program_transform_name" = \
2708 NONENONEs,x,x, &&
2709 program_prefix=${target_alias}-
2710
d38d6003 2711# Get the 'noncanonical' system names.
d38d6003
NN
2712 case ${build_alias} in
2713 "") build_noncanonical=${build} ;;
2714 *) build_noncanonical=${build_alias} ;;
2715esac
2716
2717 case ${host_alias} in
2718 "") host_noncanonical=${build_noncanonical} ;;
2719 *) host_noncanonical=${host_alias} ;;
2720esac
2721
2722 case ${target_alias} in
2723 "") target_noncanonical=${host_noncanonical} ;;
2724 *) target_noncanonical=${target_alias} ;;
2725esac
2726
2727
13b040f1
NN
2728
2729
b1891e51
NN
2730# This works around an automake problem.
2731mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2732
2733
5213506e
RW
2734am__api_version='1.11'
2735
1530be84
TT
2736# Find a good install program. We prefer a C program (faster),
2737# so one script is as good as another. But avoid the broken or
2738# incompatible versions:
2739# SysV /etc/install, /usr/sbin/install
2740# SunOS /usr/etc/install
2741# IRIX /sbin/install
2742# AIX /bin/install
47935194 2743# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
2744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2745# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8ab705be 2747# OS/2's system install, which has a completely different semantic
1530be84 2748# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2749# Reject install programs that cannot install multiple files.
5213506e
RW
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2751$as_echo_n "checking for a BSD-compatible install... " >&6; }
1530be84 2752if test -z "$INSTALL"; then
5213506e
RW
2753if test "${ac_cv_path_install+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
1530be84 2755else
47935194
NN
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
5213506e
RW
2761 # Account for people who put trailing slashes in PATH elements.
2762case $as_dir/ in #((
2763 ./ | .// | /[cC]/* | \
47935194 2764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2765 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
47935194
NN
2766 /usr/ucb/* ) ;;
2767 *)
2768 # OSF1 and SCO ODT 3.0 have their own names for install.
2769 # Don't use installbsd from OSF since it installs stuff as root
2770 # by default.
2771 for ac_prog in ginstall scoinst install; do
2772 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2773 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8ab705be
KC
2774 if test $ac_prog = install &&
2775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # AIX install. It has an incompatible calling convention.
2777 :
2778 elif test $ac_prog = install &&
2779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780 # program-specific install script used by HP pwplus--don't use.
2781 :
2782 else
38d24731
RW
2783 rm -rf conftest.one conftest.two conftest.dir
2784 echo one > conftest.one
2785 echo two > conftest.two
2786 mkdir conftest.dir
2787 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2788 test -s conftest.one && test -s conftest.two &&
2789 test -s conftest.dir/conftest.one &&
2790 test -s conftest.dir/conftest.two
2791 then
2792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2793 break 3
2794 fi
8ab705be
KC
2795 fi
2796 fi
1530be84 2797 done
47935194
NN
2798 done
2799 ;;
2800esac
5213506e
RW
2801
2802 done
2803IFS=$as_save_IFS
47935194 2804
38d24731 2805rm -rf conftest.one conftest.two conftest.dir
1530be84
TT
2806
2807fi
2808 if test "${ac_cv_path_install+set}" = set; then
47935194 2809 INSTALL=$ac_cv_path_install
1530be84 2810 else
38d24731
RW
2811 # As a last resort, use the slow shell script. Don't cache a
2812 # value for INSTALL within a source directory, because that will
1530be84 2813 # break other packages using the cache if that directory is
38d24731 2814 # removed, or if the value is a relative name.
47935194 2815 INSTALL=$ac_install_sh
1530be84
TT
2816 fi
2817fi
5213506e
RW
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2819$as_echo "$INSTALL" >&6; }
1530be84
TT
2820
2821# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2822# It thinks the first close brace ends the variable substitution.
2823test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824
47935194 2825test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
2826
2827test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828
5213506e
RW
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2830$as_echo_n "checking whether build environment is sane... " >&6; }
1530be84
TT
2831# Just in case
2832sleep 1
bf9a420e 2833echo timestamp > conftest.file
5213506e
RW
2834# Reject unsafe characters in $srcdir or the absolute working directory
2835# name. Accept space and tab only in the latter.
2836am_lf='
2837'
2838case `pwd` in
2839 *[\\\"\#\$\&\'\`$am_lf]*)
2840 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2841esac
2842case $srcdir in
2843 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2844 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2845esac
2846
1530be84
TT
2847# Do `set' in a subshell so we don't clobber the current shell's
2848# arguments. Must try -L first in case configure is actually a
2849# symlink; some systems play weird games with the mod time of symlinks
2850# (eg FreeBSD returns the mod time of the symlink's containing
2851# directory).
2852if (
5213506e 2853 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1530be84
TT
2854 if test "$*" = "X"; then
2855 # -L didn't work.
5213506e 2856 set X `ls -t "$srcdir/configure" conftest.file`
1530be84 2857 fi
bf9a420e
PB
2858 rm -f conftest.file
2859 if test "$*" != "X $srcdir/configure conftest.file" \
2860 && test "$*" != "X conftest.file $srcdir/configure"; then
1530be84
TT
2861
2862 # If neither matched, then we have a broken ls. This can happen
2863 # if, for instance, CONFIG_SHELL is bash and it inherits a
2864 # broken ls alias from the environment. This has actually
2865 # happened. Such a system could not be considered "sane".
5213506e
RW
2866 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2867alias in your environment" "$LINENO" 5
1530be84
TT
2868 fi
2869
bf9a420e 2870 test "$2" = conftest.file
1530be84
TT
2871 )
2872then
2873 # Ok.
2874 :
2875else
5213506e
RW
2876 as_fn_error "newly created file is older than distributed files!
2877Check your system clock" "$LINENO" 5
1530be84 2878fi
5213506e
RW
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2880$as_echo "yes" >&6; }
1530be84 2881test "$program_prefix" != NONE &&
5213506e 2882 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1530be84
TT
2883# Use a double $ so make ignores it.
2884test "$program_suffix" != NONE &&
5213506e
RW
2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886# Double any \ or $.
47935194 2887# By default was `s,x,x', remove it if useless.
5213506e
RW
2888ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
47935194 2890
bf9a420e
PB
2891# expand $ac_aux_dir to an absolute path
2892am_aux_dir=`cd $ac_aux_dir && pwd`
2893
5213506e
RW
2894if test x"${MISSING+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 *)
2899 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2900 esac
2901fi
bf9a420e
PB
2902# Use eval to expand $SHELL
2903if eval "$MISSING --run true"; then
2904 am_missing_run="$MISSING --run "
2905else
2906 am_missing_run=
5213506e
RW
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2908$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2909fi
2910
2911if test x"${install_sh}" != xset; then
2912 case $am_aux_dir in
2913 *\ * | *\ *)
2914 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 *)
2916 install_sh="\${SHELL} $am_aux_dir/install-sh"
2917 esac
2918fi
2919
2920# Installed binaries are usually stripped using `strip' when the user
2921# run `make install-strip'. However `strip' might not be the right
2922# tool to use in cross-compilation environments, therefore Automake
2923# will honor the `STRIP' environment variable to overrule this program.
2924if test "$cross_compiling" != no; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}strip; ac_word=$2
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if test "${ac_cv_prog_STRIP+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932else
2933 if test -n "$STRIP"; then
2934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948 done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953STRIP=$ac_cv_prog_STRIP
2954if test -n "$STRIP"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2956$as_echo "$STRIP" >&6; }
2957else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$ac_cv_prog_STRIP"; then
2965 ac_ct_STRIP=$STRIP
2966 # Extract the first word of "strip", so it can be a program name with args.
2967set dummy strip; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2972else
2973 if test -n "$ac_ct_STRIP"; then
2974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_STRIP="strip"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988 done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994if test -n "$ac_ct_STRIP"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2996$as_echo "$ac_ct_STRIP" >&6; }
2997else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002 if test "x$ac_ct_STRIP" = x; then
3003 STRIP=":"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011 STRIP=$ac_ct_STRIP
3012 fi
3013else
3014 STRIP="$ac_cv_prog_STRIP"
3015fi
3016
3017fi
3018INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3021$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3022if test -z "$MKDIR_P"; then
3023 if test "${ac_cv_path_mkdir+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in mkdir gmkdir; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3034 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035 'mkdir (GNU coreutils) '* | \
3036 'mkdir (coreutils) '* | \
3037 'mkdir (fileutils) '4.1*)
3038 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3039 break 3;;
3040 esac
3041 done
3042 done
bf9a420e 3043 done
5213506e
RW
3044IFS=$as_save_IFS
3045
3046fi
3047
3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
bf9a420e 3050 else
5213506e
RW
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 test -d ./--version && rmdir ./--version
3056 MKDIR_P="$ac_install_sh -d"
bf9a420e
PB
3057 fi
3058fi
5213506e
RW
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3060$as_echo "$MKDIR_P" >&6; }
3061
3062mkdir_p="$MKDIR_P"
3063case $mkdir_p in
3064 [\\/$]* | ?:[\\/]*) ;;
3065 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3066esac
bf9a420e
PB
3067
3068for ac_prog in gawk mawk nawk awk
3069do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071set dummy $ac_prog; ac_word=$2
5213506e
RW
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if test "${ac_cv_prog_AWK+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
bf9a420e
PB
3076else
3077 if test -n "$AWK"; then
3078 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
5213506e
RW
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9a420e 3087 ac_cv_prog_AWK="$ac_prog"
5213506e 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9a420e
PB
3089 break 2
3090 fi
3091done
5213506e
RW
3092 done
3093IFS=$as_save_IFS
bf9a420e
PB
3094
3095fi
3096fi
3097AWK=$ac_cv_prog_AWK
3098if test -n "$AWK"; then
5213506e
RW
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3100$as_echo "$AWK" >&6; }
bf9a420e 3101else
5213506e
RW
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
bf9a420e
PB
3104fi
3105
5213506e 3106
bf9a420e
PB
3107 test -n "$AWK" && break
3108done
3109
5213506e
RW
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3111$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3112set x ${MAKE-make}
3113ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3114if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3115 $as_echo_n "(cached) " >&6
1530be84 3116else
47935194 3117 cat >conftest.make <<\_ACEOF
5213506e 3118SHELL = /bin/sh
1530be84 3119all:
5213506e 3120 @echo '@@@%%%=$(MAKE)=@@@%%%'
47935194 3121_ACEOF
1530be84 3122# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
3123case `${MAKE-make} -f conftest.make 2>/dev/null` in
3124 *@@@%%%=?*=@@@%%%*)
3125 eval ac_cv_prog_make_${ac_make}_set=yes;;
3126 *)
3127 eval ac_cv_prog_make_${ac_make}_set=no;;
3128esac
47935194 3129rm -f conftest.make
1530be84 3130fi
5213506e
RW
3131if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133$as_echo "yes" >&6; }
1530be84
TT
3134 SET_MAKE=
3135else
5213506e
RW
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
1530be84
TT
3138 SET_MAKE="MAKE=${MAKE-make}"
3139fi
3140
bf9a420e
PB
3141rm -rf .tst 2>/dev/null
3142mkdir .tst 2>/dev/null
3143if test -d .tst; then
3144 am__leading_dot=.
3145else
3146 am__leading_dot=_
3147fi
3148rmdir .tst 2>/dev/null
1530be84 3149
5213506e
RW
3150if test "`cd $srcdir && pwd`" != "`pwd`"; then
3151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3152 # is not polluted with repeated "-I."
3153 am__isrc=' -I$(srcdir)'
3154 # test to see if srcdir already configured
3155 if test -f $srcdir/config.status; then
3156 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3157 fi
1530be84
TT
3158fi
3159
bf9a420e
PB
3160# test whether we have cygpath
3161if test -z "$CYGPATH_W"; then
3162 if (cygpath --version) >/dev/null 2>/dev/null; then
3163 CYGPATH_W='cygpath -w'
3164 else
3165 CYGPATH_W=echo
3166 fi
3167fi
3168
3169
3170# Define the identity of the package.
3171 PACKAGE=gc
54f28c21 3172 VERSION=6.6
bf9a420e
PB
3173
3174
3175# Some tools Automake needs.
3176
3177ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178
1530be84 3179
bf9a420e 3180AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1530be84 3181
bf9a420e
PB
3182
3183AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184
3185
3186AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187
3188
3189MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3190
bf9a420e
PB
3191# We need awk for the "check" target. The system "awk" is bad on
3192# some platforms.
4109fe85
BM
3193# Always define AMTAR for backward compatibility.
3194
3195AMTAR=${AMTAR-"${am_missing_run}tar"}
3196
3197am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3198
3199
bf9a420e 3200
1530be84
TT
3201
3202
3203
47935194 3204# The autoconf 2.5x version of the no-executables hack.
1530be84
TT
3205
3206
e22db4bf
NN
3207# Yak. We must force CC and CXX to /not/ be precious variables; otherwise
3208# the wrong, non-multilib-adjusted value will be used in multilibs.
3209# As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
3210
3211
3212
47935194
NN
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if test "${ac_cv_prog_CC+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
47935194
NN
3225else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
5213506e
RW
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3238 break 2
3239 fi
3240done
5213506e
RW
3241 done
3242IFS=$as_save_IFS
1530be84 3243
47935194
NN
3244fi
3245fi
3246CC=$ac_cv_prog_CC
3247if test -n "$CC"; then
5213506e
RW
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249$as_echo "$CC" >&6; }
47935194 3250else
5213506e
RW
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
47935194 3253fi
54ce7452 3254
5213506e 3255
47935194
NN
3256fi
3257if test -z "$ac_cv_prog_CC"; then
3258 ac_ct_CC=$CC
3259 # Extract the first word of "gcc", so it can be a program name with args.
1530be84 3260set dummy gcc; ac_word=$2
5213506e
RW
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
47935194
NN
3265else
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
5213506e
RW
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3276 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3278 break 2
3279 fi
3280done
5213506e
RW
3281 done
3282IFS=$as_save_IFS
47935194
NN
3283
3284fi
3285fi
3286ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287if test -n "$ac_ct_CC"; then
5213506e
RW
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289$as_echo "$ac_ct_CC" >&6; }
47935194 3290else
5213506e
RW
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
47935194
NN
3293fi
3294
5213506e
RW
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299yes:)
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304 CC=$ac_ct_CC
3305 fi
47935194
NN
3306else
3307 CC="$ac_cv_prog_CC"
3308fi
3309
3310if test -z "$CC"; then
5213506e
RW
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
47935194 3313set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if test "${ac_cv_prog_CC+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
1530be84
TT
3318else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
47935194
NN
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
5213506e
RW
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3329 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3331 break 2
3332 fi
3333done
5213506e
RW
3334 done
3335IFS=$as_save_IFS
47935194 3336
1530be84
TT
3337fi
3338fi
47935194 3339CC=$ac_cv_prog_CC
1530be84 3340if test -n "$CC"; then
5213506e
RW
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342$as_echo "$CC" >&6; }
47935194 3343else
5213506e
RW
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
47935194
NN
3346fi
3347
47935194 3348
5213506e 3349 fi
47935194 3350fi
1530be84
TT
3351if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353set dummy cc; ac_word=$2
5213506e
RW
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if test "${ac_cv_prog_CC+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
1530be84
TT
3358else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
1530be84 3362 ac_prog_rejected=no
47935194
NN
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
47935194
NN
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3372 continue
3373 fi
3374 ac_cv_prog_CC="cc"
5213506e 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3376 break 2
3377 fi
3378done
5213506e
RW
3379 done
3380IFS=$as_save_IFS
47935194 3381
1530be84
TT
3382if test $ac_prog_rejected = yes; then
3383 # We found a bogon in the path, so make sure we never use it.
3384 set dummy $ac_cv_prog_CC
3385 shift
47935194 3386 if test $# != 0; then
1530be84
TT
3387 # We chose a different compiler from the bogus one.
3388 # However, it has the same basename, so the bogon will be chosen
3389 # first if we set CC to just the basename; use the full file name.
3390 shift
47935194 3391 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1530be84
TT
3392 fi
3393fi
3394fi
3395fi
47935194 3396CC=$ac_cv_prog_CC
1530be84 3397if test -n "$CC"; then
5213506e
RW
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399$as_echo "$CC" >&6; }
1530be84 3400else
5213506e
RW
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402$as_echo "no" >&6; }
1530be84
TT
3403fi
3404
5213506e 3405
1530be84 3406fi
47935194
NN
3407if test -z "$CC"; then
3408 if test -n "$ac_tool_prefix"; then
5213506e 3409 for ac_prog in cl.exe
47935194
NN
3410 do
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if test "${ac_cv_prog_CC+set}" = set; then :
3416 $as_echo_n "(cached) " >&6
1530be84 3417else
47935194
NN
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
1530be84 3420else
47935194
NN
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
5213506e
RW
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3428 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3430 break 2
3431 fi
3432done
5213506e
RW
3433 done
3434IFS=$as_save_IFS
1530be84 3435
1530be84 3436fi
1530be84 3437fi
47935194
NN
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
5213506e
RW
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
1530be84 3442else
5213506e
RW
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
1530be84
TT
3445fi
3446
5213506e 3447
47935194
NN
3448 test -n "$CC" && break
3449 done
3450fi
3451if test -z "$CC"; then
3452 ac_ct_CC=$CC
5213506e 3453 for ac_prog in cl.exe
1530be84 3454do
47935194 3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530be84 3456set dummy $ac_prog; ac_word=$2
5213506e
RW
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
1530be84 3461else
47935194
NN
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530be84 3464else
47935194
NN
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
5213506e
RW
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3472 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3474 break 2
3475 fi
3476done
5213506e
RW
3477 done
3478IFS=$as_save_IFS
47935194 3479
1530be84
TT
3480fi
3481fi
47935194
NN
3482ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483if test -n "$ac_ct_CC"; then
5213506e
RW
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485$as_echo "$ac_ct_CC" >&6; }
1530be84 3486else
5213506e
RW
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
1530be84
TT
3489fi
3490
5213506e 3491
47935194 3492 test -n "$ac_ct_CC" && break
1530be84 3493done
1530be84 3494
5213506e
RW
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504 CC=$ac_ct_CC
3505 fi
47935194
NN
3506fi
3507
3508fi
3509
3510
5213506e
RW
3511test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error "no acceptable C compiler found in \$PATH
3514See \`config.log' for more details." "$LINENO" 5; }
47935194
NN
3515
3516# Provide some information about the compiler.
5213506e
RW
3517$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518set X $ac_compile
3519ac_compiler=$2
3520for ac_option in --version -v -V -qversion; do
3521 { { ac_try="$ac_compiler $ac_option >&5"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
47935194 3529 ac_status=$?
5213506e
RW
3530 if test -s conftest.err; then
3531 sed '10a\
3532... rest of stderr output deleted ...
3533 10q' conftest.err >conftest.er1
3534 cat conftest.er1 >&5
3535 rm -f conftest.er1 conftest.err
3536 fi
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3539done
47935194 3540
5213506e 3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3542/* end confdefs.h. */
3543
3544int
3545main ()
3546{
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552# FIXME: Cleanup?
5213506e 3553if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
47935194
NN
3554 (eval $ac_link) 2>&5
3555 ac_status=$?
5213506e
RW
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
47935194 3558 gcc_no_link=no
1530be84 3559else
47935194 3560 gcc_no_link=yes
1530be84 3561fi
47935194
NN
3562if test x$gcc_no_link = xyes; then
3563 # Setting cross_compile will disable run tests; it will
3564 # also disable AC_CHECK_FILE but that's generally
3565 # correct if we can't link.
3566 cross_compiling=yes
3567 EXEEXT=
1530be84 3568else
5213506e 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3570/* end confdefs.h. */
3571
3572int
3573main ()
3574{
3575
3576 ;
3577 return 0;
3578}
3579_ACEOF
3580ac_clean_files_save=$ac_clean_files
5213506e 3581ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
47935194
NN
3582# Try to create an executable without -o first, disregard a.out.
3583# It will help us diagnose broken compilers, and finding out an intuition
3584# of exeext.
5213506e
RW
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3586$as_echo_n "checking for C compiler default output file name... " >&6; }
3587ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3588
3589# The possible output files:
3590ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3591
3592ac_rmfiles=
3593for ac_file in $ac_files
3594do
3595 case $ac_file in
3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3598 esac
3599done
3600rm -f $ac_rmfiles
3601
3602if { { ac_try="$ac_link_default"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_link_default") 2>&5
47935194 3610 ac_status=$?
5213506e
RW
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3614# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3615# in a Makefile. We should not override ac_cv_exeext if it was cached,
3616# so that the user can short-circuit this test for compilers unknown to
3617# Autoconf.
3618for ac_file in $ac_files ''
47935194
NN
3619do
3620 test -f "$ac_file" || continue
3621 case $ac_file in
5213506e 3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8ab705be 3623 ;;
47935194 3624 [ab].out )
8ab705be
KC
3625 # We found the default executable, but exeext='' is most
3626 # certainly right.
3627 break;;
47935194 3628 *.* )
5213506e
RW
3629 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3630 then :; else
3631 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632 fi
3633 # We set ac_cv_exeext here because the later test for it is not
3634 # safe: cross compilers may not add the suffix if given an `-o'
3635 # argument, so we may need to know it at that point already.
3636 # Even if this section looks crufty: it has the advantage of
3637 # actually working.
8ab705be 3638 break;;
47935194 3639 * )
8ab705be 3640 break;;
47935194
NN
3641 esac
3642done
5213506e
RW
3643test "$ac_cv_exeext" = no && ac_cv_exeext=
3644
1530be84 3645else
5213506e
RW
3646 ac_file=''
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3649$as_echo "$ac_file" >&6; }
3650if test -z "$ac_file"; then :
3651 $as_echo "$as_me: failed program was:" >&5
47935194
NN
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
5213506e
RW
3654{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656{ as_fn_set_status 77
3657as_fn_error "C compiler cannot create executables
3658See \`config.log' for more details." "$LINENO" 5; }; }
47935194 3659fi
47935194 3660ac_exeext=$ac_cv_exeext
47935194 3661
5213506e 3662# Check that the compiler produces executables we can run. If not, either
47935194 3663# the compiler is broken, or we cross compile.
5213506e
RW
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3665$as_echo_n "checking whether the C compiler works... " >&6; }
47935194
NN
3666# If not cross compiling, check that we can run a simple program.
3667if test "$cross_compiling" != yes; then
3668 if { ac_try='./$ac_file'
5213506e
RW
3669 { { case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672esac
3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674$as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_try") 2>&5
47935194 3676 ac_status=$?
5213506e
RW
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; }; then
47935194 3679 cross_compiling=no
1530be84 3680 else
47935194
NN
3681 if test "$cross_compiling" = maybe; then
3682 cross_compiling=yes
3683 else
5213506e
RW
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686as_fn_error "cannot run C compiled programs.
47935194 3687If you meant to cross compile, use \`--host'.
5213506e 3688See \`config.log' for more details." "$LINENO" 5; }
47935194 3689 fi
1530be84 3690 fi
47935194 3691fi
5213506e
RW
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3693$as_echo "yes" >&6; }
47935194 3694
5213506e 3695rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
47935194 3696ac_clean_files=$ac_clean_files_save
5213506e 3697# Check that the compiler produces executables we can run. If not, either
47935194 3698# the compiler is broken, or we cross compile.
5213506e
RW
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3700$as_echo_n "checking whether we are cross compiling... " >&6; }
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3702$as_echo "$cross_compiling" >&6; }
3703
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3705$as_echo_n "checking for suffix of executables... " >&6; }
3706if { { ac_try="$ac_link"
3707case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_link") 2>&5
47935194 3714 ac_status=$?
5213506e
RW
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; then :
47935194
NN
3717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3719# work properly (i.e., refer to `conftest.exe'), while it won't with
3720# `rm'.
3721for ac_file in conftest.exe conftest conftest.*; do
3722 test -f "$ac_file" || continue
3723 case $ac_file in
5213506e 3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
47935194 3725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8ab705be 3726 break;;
47935194
NN
3727 * ) break;;
3728 esac
3729done
1530be84 3730else
5213506e
RW
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733as_fn_error "cannot compute suffix of executables: cannot compile and link
3734See \`config.log' for more details." "$LINENO" 5; }
1530be84 3735fi
47935194 3736rm -f conftest$ac_cv_exeext
5213506e
RW
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3738$as_echo "$ac_cv_exeext" >&6; }
1530be84 3739
47935194
NN
3740rm -f conftest.$ac_ext
3741EXEEXT=$ac_cv_exeext
3742ac_exeext=$EXEEXT
3743fi
5213506e
RW
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3745$as_echo_n "checking for suffix of object files... " >&6; }
3746if test "${ac_cv_objext+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
1530be84 3748else
5213506e 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3750/* end confdefs.h. */
3751
3752int
3753main ()
3754{
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760rm -f conftest.o conftest.obj
5213506e
RW
3761if { { ac_try="$ac_compile"
3762case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
3766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767$as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compile") 2>&5
47935194 3769 ac_status=$?
5213506e
RW
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; then :
3772 for ac_file in conftest.o conftest.obj conftest.*; do
3773 test -f "$ac_file" || continue;
47935194 3774 case $ac_file in
5213506e 3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
47935194
NN
3776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3777 break;;
3778 esac
3779done
1530be84 3780else
5213506e 3781 $as_echo "$as_me: failed program was:" >&5
47935194
NN
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
5213506e
RW
3784{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786as_fn_error "cannot compute suffix of object files: cannot compile
3787See \`config.log' for more details." "$LINENO" 5; }
1530be84 3788fi
47935194 3789rm -f conftest.$ac_cv_objext conftest.$ac_ext
1530be84 3790fi
5213506e
RW
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3792$as_echo "$ac_cv_objext" >&6; }
47935194
NN
3793OBJEXT=$ac_cv_objext
3794ac_objext=$OBJEXT
5213506e
RW
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3797if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
1530be84 3799else
5213506e 3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3801/* end confdefs.h. */
3802
3803int
3804main ()
3805{
3806#ifndef __GNUC__
3807 choke me
3808#endif
1530be84 3809
47935194
NN
3810 ;
3811 return 0;
3812}
3813_ACEOF
5213506e 3814if ac_fn_c_try_compile "$LINENO"; then :
47935194
NN
3815 ac_compiler_gnu=yes
3816else
5213506e 3817 ac_compiler_gnu=no
47935194 3818fi
5213506e 3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 3820ac_cv_c_compiler_gnu=$ac_compiler_gnu
1530be84 3821
47935194 3822fi
5213506e
RW
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3824$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3825if test $ac_compiler_gnu = yes; then
3826 GCC=yes
3827else
3828 GCC=
3829fi
47935194
NN
3830ac_test_CFLAGS=${CFLAGS+set}
3831ac_save_CFLAGS=$CFLAGS
5213506e
RW
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3833$as_echo_n "checking whether $CC accepts -g... " >&6; }
3834if test "${ac_cv_prog_cc_g+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
3836else
3837 ac_save_c_werror_flag=$ac_c_werror_flag
3838 ac_c_werror_flag=yes
3839 ac_cv_prog_cc_g=no
3840 CFLAGS="-g"
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3842/* end confdefs.h. */
3843
3844int
3845main ()
3846{
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
5213506e 3852if ac_fn_c_try_compile "$LINENO"; then :
47935194 3853 ac_cv_prog_cc_g=yes
1530be84 3854else
5213506e
RW
3855 CFLAGS=""
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h. */
3858
3859int
3860main ()
3861{
3862
3863 ;
3864 return 0;
3865}
3866_ACEOF
3867if ac_fn_c_try_compile "$LINENO"; then :
3868
3869else
3870 ac_c_werror_flag=$ac_save_c_werror_flag
3871 CFLAGS="-g"
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h. */
3874
3875int
3876main ()
3877{
47935194 3878
5213506e
RW
3879 ;
3880 return 0;
3881}
3882_ACEOF
3883if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_prog_cc_g=yes
3885fi
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887fi
3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 3889fi
5213506e
RW
3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_c_werror_flag=$ac_save_c_werror_flag
47935194 3892fi
5213506e
RW
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3894$as_echo "$ac_cv_prog_cc_g" >&6; }
47935194
NN
3895if test "$ac_test_CFLAGS" = set; then
3896 CFLAGS=$ac_save_CFLAGS
3897elif test $ac_cv_prog_cc_g = yes; then
3898 if test "$GCC" = yes; then
3899 CFLAGS="-g -O2"
3900 else
3901 CFLAGS="-g"
3902 fi
3903else
3904 if test "$GCC" = yes; then
3905 CFLAGS="-O2"
3906 else
3907 CFLAGS=
3908 fi
3909fi
5213506e
RW
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3912if test "${ac_cv_prog_cc_c89+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
47935194 3914else
5213506e 3915 ac_cv_prog_cc_c89=no
47935194 3916ac_save_CC=$CC
5213506e 3917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3918/* end confdefs.h. */
3919#include <stdarg.h>
3920#include <stdio.h>
3921#include <sys/types.h>
3922#include <sys/stat.h>
3923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924struct buf { int x; };
3925FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926static char *e (p, i)
3927 char **p;
3928 int i;
3929{
3930 return p[i];
3931}
3932static char *f (char * (*g) (char **, int), char **p, ...)
3933{
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3940}
8ab705be
KC
3941
3942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
5213506e 3945 as 'x'. The following induces an error, until -std is added to get
8ab705be
KC
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3948 that's true only with -std. */
8ab705be
KC
3949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
5213506e
RW
3951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3953#define FOO(x) 'x'
3954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3955
47935194
NN
3956int test (int i, double x);
3957struct s1 {int (*f) (int a);};
3958struct s2 {int (*f) (double a);};
3959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960int argc;
3961char **argv;
3962int
3963main ()
3964{
3965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 ;
3967 return 0;
3968}
3969_ACEOF
5213506e
RW
3970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
47935194
NN
3972do
3973 CC="$ac_save_CC $ac_arg"
5213506e
RW
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
47935194 3976fi
5213506e
RW
3977rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
47935194 3979done
5213506e 3980rm -f conftest.$ac_ext
47935194
NN
3981CC=$ac_save_CC
3982
3983fi
5213506e
RW
3984# AC_CACHE_VAL
3985case "x$ac_cv_prog_cc_c89" in
3986 x)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988$as_echo "none needed" >&6; } ;;
3989 xno)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991$as_echo "unsupported" >&6; } ;;
47935194 3992 *)
5213506e
RW
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
47935194 3996esac
5213506e 3997if test "x$ac_cv_prog_cc_c89" != xno; then :
47935194 3998
47935194
NN
3999fi
4000
47935194
NN
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9a420e
PB
4006DEPDIR="${am__leading_dot}deps"
4007
5213506e 4008ac_config_commands="$ac_config_commands depfiles"
bf9a420e
PB
4009
4010
4011am_make=${MAKE-make}
4012cat > confinc << 'END'
4013am__doit:
5213506e 4014 @echo this is the am__doit target
bf9a420e
PB
4015.PHONY: am__doit
4016END
4017# If we don't find an include directive, just comment out the code.
5213506e
RW
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4019$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9a420e
PB
4020am__include="#"
4021am__quote=
4022_am_result=none
4023# First try GNU make style include.
4024echo "include confinc" > confmf
5213506e
RW
4025# Ignore all kinds of additional output from `make'.
4026case `$am_make -s -f confmf 2> /dev/null` in #(
4027*the\ am__doit\ target*)
4028 am__include=include
4029 am__quote=
4030 _am_result=GNU
4031 ;;
4032esac
bf9a420e
PB
4033# Now try BSD make style include.
4034if test "$am__include" = "#"; then
4035 echo '.include "confinc"' > confmf
5213506e
RW
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038 am__include=.include
4039 am__quote="\""
4040 _am_result=BSD
4041 ;;
4042 esac
bf9a420e
PB
4043fi
4044
4045
5213506e
RW
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4047$as_echo "$_am_result" >&6; }
bf9a420e
PB
4048rm -f confinc confmf
4049
5213506e
RW
4050# Check whether --enable-dependency-tracking was given.
4051if test "${enable_dependency_tracking+set}" = set; then :
4052 enableval=$enable_dependency_tracking;
4053fi
bf9a420e 4054
bf9a420e
PB
4055if test "x$enable_dependency_tracking" != xno; then
4056 am_depcomp="$ac_aux_dir/depcomp"
4057 AMDEPBACKSLASH='\'
4058fi
5213506e 4059 if test "x$enable_dependency_tracking" != xno; then
bf9a420e
PB
4060 AMDEP_TRUE=
4061 AMDEP_FALSE='#'
4062else
4063 AMDEP_TRUE='#'
4064 AMDEP_FALSE=
4065fi
4066
4067
4068
bf9a420e
PB
4069depcc="$CC" am_compiler_list=
4070
5213506e
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072$as_echo_n "checking dependency style of $depcc... " >&6; }
4073if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
bf9a420e
PB
4075else
4076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077 # We make a subdir and do the tests there. Otherwise we can end up
4078 # making bogus files that we don't know about and never remove. For
4079 # instance it was reported that on HP-UX the gcc test will end up
4080 # making a dummy file named `D' -- because `-MD' means `put the output
4081 # in D'.
4082 mkdir conftest.dir
4083 # Copy depcomp to subdir because otherwise we won't find it if we're
4084 # using a relative directory.
4085 cp "$am_depcomp" conftest.dir
4086 cd conftest.dir
4087 # We will build objects and dependencies in a subdirectory because
4088 # it helps to detect inapplicable dependency modes. For instance
4089 # both Tru64's cc and ICC support -MD to output dependencies as a
4090 # side effect of compilation, but ICC will put the dependencies in
4091 # the current directory while Tru64 will put them in the object
4092 # directory.
4093 mkdir sub
4094
4095 am_cv_CC_dependencies_compiler_type=none
4096 if test "$am_compiler_list" = ""; then
4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4098 fi
5213506e
RW
4099 am__universal=false
4100 case " $depcc " in #(
4101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4102 esac
4103
bf9a420e
PB
4104 for depmode in $am_compiler_list; do
4105 # Setup a source with many dependencies, because some compilers
4106 # like to wrap large dependency lists on column 80 (with \), and
4107 # we should not choose a depcomp mode which is confused by this.
4108 #
4109 # We need to recreate these files for each test, as the compiler may
4110 # overwrite some of them when testing with obscure command lines.
4111 # This happens at least with the AIX C compiler.
4112 : > sub/conftest.c
4113 for i in 1 2 3 4 5 6; do
4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4116 # Solaris 8's {/usr,}/bin/sh.
4117 touch sub/conftst$i.h
4118 done
4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4120
5213506e
RW
4121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4122 # mode. It turns out that the SunPro C++ compiler does not properly
4123 # handle `-M -o', and we need to detect this. Also, some Intel
4124 # versions had trouble with output in subdirs
4125 am__obj=sub/conftest.${OBJEXT-o}
4126 am__minus_obj="-o $am__obj"
bf9a420e 4127 case $depmode in
5213506e
RW
4128 gcc)
4129 # This depmode causes a compiler race in universal mode.
4130 test "$am__universal" = false || continue
4131 ;;
bf9a420e
PB
4132 nosideeffect)
4133 # after this tag, mechanisms are not by side-effect, so they'll
4134 # only be used when explicitly requested
4135 if test "x$enable_dependency_tracking" = xyes; then
4136 continue
4137 else
4138 break
4139 fi
4140 ;;
5213506e
RW
4141 msvisualcpp | msvcmsys)
4142 # This compiler won't grok `-c -o', but also, the minuso test has
4143 # not run yet. These depmodes are late enough in the game, and
4144 # so weak that their functioning should not be impacted.
4145 am__obj=conftest.${OBJEXT-o}
4146 am__minus_obj=
4147 ;;
bf9a420e
PB
4148 none) break ;;
4149 esac
bf9a420e 4150 if depmode=$depmode \
5213506e 4151 source=sub/conftest.c object=$am__obj \
bf9a420e 4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9a420e 4154 >/dev/null 2>conftest.err &&
5213506e 4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e 4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e
PB
4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4159 # icc doesn't choke on unknown options, it will just issue warnings
4160 # or remarks (even with -Werror). So we grep stderr for any message
4161 # that says an option was ignored or not supported.
4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
4163 # icc: Command line warning: ignoring option '-M'; no argument required
4164 # The diagnosis changed in icc 8.0:
4165 # icc: Command line remark: option '-MP' not supported
4166 if (grep 'ignoring option' conftest.err ||
4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4168 am_cv_CC_dependencies_compiler_type=$depmode
4169 break
4170 fi
4171 fi
4172 done
4173
4174 cd ..
4175 rm -rf conftest.dir
4176else
4177 am_cv_CC_dependencies_compiler_type=none
4178fi
4179
4180fi
5213506e
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4182$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9a420e
PB
4183CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184
5213506e 4185 if
bf9a420e
PB
4186 test "x$enable_dependency_tracking" != xno \
4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4188 am__fastdepCC_TRUE=
4189 am__fastdepCC_FALSE='#'
4190else
4191 am__fastdepCC_TRUE='#'
4192 am__fastdepCC_FALSE=
4193fi
4194
47935194 4195
5213506e 4196ac_ext=cpp
47935194
NN
4197ac_cpp='$CXXCPP $CPPFLAGS'
4198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4201if test -z "$CXX"; then
4202 if test -n "$CCC"; then
4203 CXX=$CCC
4204 else
4205 if test -n "$ac_tool_prefix"; then
4206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
47935194
NN
4207 do
4208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_CXX+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
47935194
NN
4214else
4215 if test -n "$CXX"; then
4216 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
5213506e
RW
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4227 break 2
4228 fi
4229done
5213506e
RW
4230 done
4231IFS=$as_save_IFS
47935194
NN
4232
4233fi
4234fi
4235CXX=$ac_cv_prog_CXX
4236if test -n "$CXX"; then
5213506e
RW
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4238$as_echo "$CXX" >&6; }
47935194 4239else
5213506e
RW
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
47935194
NN
4242fi
4243
5213506e 4244
47935194 4245 test -n "$CXX" && break
1530be84 4246 done
47935194
NN
4247fi
4248if test -z "$CXX"; then
4249 ac_ct_CXX=$CXX
5213506e 4250 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
47935194
NN
4251do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
5213506e
RW
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255$as_echo_n "checking for $ac_word... " >&6; }
4256if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
47935194
NN
4258else
4259 if test -n "$ac_ct_CXX"; then
4260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
5213506e
RW
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4269 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4271 break 2
4272 fi
4273done
5213506e
RW
4274 done
4275IFS=$as_save_IFS
47935194
NN
4276
4277fi
4278fi
4279ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4280if test -n "$ac_ct_CXX"; then
5213506e
RW
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4282$as_echo "$ac_ct_CXX" >&6; }
47935194 4283else
5213506e
RW
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285$as_echo "no" >&6; }
47935194
NN
4286fi
4287
5213506e 4288
47935194
NN
4289 test -n "$ac_ct_CXX" && break
4290done
47935194 4291
5213506e
RW
4292 if test "x$ac_ct_CXX" = x; then
4293 CXX="g++"
4294 else
4295 case $cross_compiling:$ac_tool_warned in
4296yes:)
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299ac_tool_warned=yes ;;
4300esac
4301 CXX=$ac_ct_CXX
4302 fi
47935194
NN
4303fi
4304
5213506e
RW
4305 fi
4306fi
47935194 4307# Provide some information about the compiler.
5213506e
RW
4308$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4309set X $ac_compile
4310ac_compiler=$2
4311for ac_option in --version -v -V -qversion; do
4312 { { ac_try="$ac_compiler $ac_option >&5"
4313case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
47935194 4320 ac_status=$?
5213506e
RW
4321 if test -s conftest.err; then
4322 sed '10a\
4323... rest of stderr output deleted ...
4324 10q' conftest.err >conftest.er1
4325 cat conftest.er1 >&5
4326 rm -f conftest.er1 conftest.err
4327 fi
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }
4330done
47935194 4331
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4333$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4334if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
47935194 4336else
5213506e 4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
4338/* end confdefs.h. */
4339
4340int
4341main ()
4342{
4343#ifndef __GNUC__
4344 choke me
4345#endif
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
5213506e 4351if ac_fn_cxx_try_compile "$LINENO"; then :
47935194
NN
4352 ac_compiler_gnu=yes
4353else
5213506e 4354 ac_compiler_gnu=no
47935194 4355fi
5213506e 4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
4357ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4358
4359fi
5213506e
RW
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4361$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4362if test $ac_compiler_gnu = yes; then
4363 GXX=yes
4364else
4365 GXX=
4366fi
47935194
NN
4367ac_test_CXXFLAGS=${CXXFLAGS+set}
4368ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4370$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4371if test "${ac_cv_prog_cxx_g+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373else
4374 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4375 ac_cxx_werror_flag=yes
4376 ac_cv_prog_cxx_g=no
4377 CXXFLAGS="-g"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
4379/* end confdefs.h. */
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
5213506e 4389if ac_fn_cxx_try_compile "$LINENO"; then :
47935194
NN
4390 ac_cv_prog_cxx_g=yes
4391else
5213506e
RW
4392 CXXFLAGS=""
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194 4394/* end confdefs.h. */
5213506e 4395
47935194
NN
4396int
4397main ()
4398{
5213506e 4399
47935194
NN
4400 ;
4401 return 0;
4402}
4403_ACEOF
5213506e 4404if ac_fn_cxx_try_compile "$LINENO"; then :
47935194 4405
5213506e
RW
4406else
4407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4408 CXXFLAGS="-g"
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194 4410/* end confdefs.h. */
5213506e 4411
47935194
NN
4412int
4413main ()
4414{
5213506e 4415
47935194
NN
4416 ;
4417 return 0;
4418}
4419_ACEOF
5213506e
RW
4420if ac_fn_cxx_try_compile "$LINENO"; then :
4421 ac_cv_prog_cxx_g=yes
47935194 4422fi
5213506e
RW
4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424fi
4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426fi
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4429fi
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4431$as_echo "$ac_cv_prog_cxx_g" >&6; }
4432if test "$ac_test_CXXFLAGS" = set; then
4433 CXXFLAGS=$ac_save_CXXFLAGS
4434elif test $ac_cv_prog_cxx_g = yes; then
4435 if test "$GXX" = yes; then
4436 CXXFLAGS="-g -O2"
4437 else
4438 CXXFLAGS="-g"
4439 fi
4440else
4441 if test "$GXX" = yes; then
4442 CXXFLAGS="-O2"
4443 else
4444 CXXFLAGS=
4445 fi
47935194 4446fi
47935194
NN
4447ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
bf9a420e
PB
4453depcc="$CXX" am_compiler_list=
4454
5213506e
RW
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456$as_echo_n "checking dependency style of $depcc... " >&6; }
4457if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
bf9a420e
PB
4459else
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named `D' -- because `-MD' means `put the output
4465 # in D'.
4466 mkdir conftest.dir
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4470 cd conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4476 # directory.
4477 mkdir sub
4478
4479 am_cv_CXX_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482 fi
5213506e
RW
4483 am__universal=false
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 esac
4487
bf9a420e
PB
4488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4492 #
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4496 : > sub/conftest.c
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4500 # Solaris 8's {/usr,}/bin/sh.
4501 touch sub/conftst$i.h
4502 done
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
5213506e
RW
4505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle `-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
bf9a420e 4511 case $depmode in
5213506e
RW
4512 gcc)
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4515 ;;
bf9a420e
PB
4516 nosideeffect)
4517 # after this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested
4519 if test "x$enable_dependency_tracking" = xyes; then
4520 continue
4521 else
4522 break
4523 fi
4524 ;;
5213506e
RW
4525 msvisualcpp | msvcmsys)
4526 # This compiler won't grok `-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4530 am__minus_obj=
4531 ;;
bf9a420e
PB
4532 none) break ;;
4533 esac
bf9a420e 4534 if depmode=$depmode \
5213506e 4535 source=sub/conftest.c object=$am__obj \
bf9a420e 4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9a420e 4538 >/dev/null 2>conftest.err &&
5213506e 4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e 4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e
PB
4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CXX_dependencies_compiler_type=$depmode
4553 break
4554 fi
4555 fi
4556 done
4557
4558 cd ..
4559 rm -rf conftest.dir
4560else
4561 am_cv_CXX_dependencies_compiler_type=none
4562fi
4563
4564fi
5213506e
RW
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4566$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
bf9a420e
PB
4567CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4568
5213506e 4569 if
bf9a420e
PB
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCXX_TRUE=
4573 am__fastdepCXX_FALSE='#'
4574else
4575 am__fastdepCXX_TRUE='#'
4576 am__fastdepCXX_FALSE=
4577fi
4578
4579
4580
4581
4582if test "x$CC" != xcc; then
5213506e
RW
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4584$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
bf9a420e 4585else
5213506e
RW
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4587$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
bf9a420e 4588fi
5213506e 4589set dummy $CC; ac_cc=`$as_echo "$2" |
bf9a420e 4590 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5213506e
RW
4591if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4592 $as_echo_n "(cached) " >&6
bf9a420e 4593else
5213506e 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf9a420e
PB
4595/* end confdefs.h. */
4596
4597int
4598main ()
4599{
4600
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605# Make sure it works both with $CC and with simple cc.
4606# We do the test twice because some compilers refuse to overwrite an
4607# existing .o file with -o, though they will create one.
5213506e
RW
4608ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4609rm -f conftest2.*
4610if { { case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_try") 2>&5
bf9a420e 4617 ac_status=$?
5213506e
RW
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; } &&
4620 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625$as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
bf9a420e 4627 ac_status=$?
5213506e
RW
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; };
bf9a420e
PB
4630then
4631 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4632 if test "x$CC" != xcc; then
4633 # Test first that cc exists at all.
4634 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4635 { { case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638esac
4639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640$as_echo "$ac_try_echo"; } >&5
4641 (eval "$ac_try") 2>&5
bf9a420e 4642 ac_status=$?
5213506e
RW
4643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }; }; then
4645 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4646 rm -f conftest2.*
4647 if { { case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650esac
4651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652$as_echo "$ac_try_echo"; } >&5
4653 (eval "$ac_try") 2>&5
bf9a420e 4654 ac_status=$?
5213506e
RW
4655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656 test $ac_status = 0; } &&
4657 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660esac
4661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662$as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_try") 2>&5
bf9a420e 4664 ac_status=$?
5213506e
RW
4665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4666 test $ac_status = 0; };
bf9a420e
PB
4667 then
4668 # cc works too.
4669 :
4670 else
4671 # cc exists but doesn't like -o.
4672 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4673 fi
4674 fi
4675 fi
4676else
4677 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4678fi
5213506e 4679rm -f core conftest*
bf9a420e
PB
4680
4681fi
5213506e
RW
4682if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4684$as_echo "yes" >&6; }
bf9a420e 4685else
5213506e
RW
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687$as_echo "no" >&6; }
bf9a420e 4688
5213506e 4689$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
bf9a420e
PB
4690
4691fi
4692
4693# FIXME: we rely on the cache variable name because
4694# there is no other way.
4695set dummy $CC
5213506e
RW
4696am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4697eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4698if test "$am_t" != yes; then
bf9a420e
PB
4699 # Losing compiler, so override with the script.
4700 # FIXME: It is wrong to rewrite CC.
4701 # But if we don't then we get into trouble of one sort or another.
4702 # A longer-term fix would be to have automake use am__CC in this case,
4703 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4704 CC="$am_aux_dir/compile $CC"
4705fi
47935194 4706
e22db4bf
NN
4707
4708
4709
4710
5213506e 4711
7664e6f8
NN
4712# Newer automakes demand CCAS and CCASFLAGS.
4713: ${CCAS='$(CC)'}
4714: ${CCASFLAGS='$(CFLAGS)'}
4715
4716
4717
47935194
NN
4718if test -n "$ac_tool_prefix"; then
4719 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4720set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722$as_echo_n "checking for $ac_word... " >&6; }
4723if test "${ac_cv_prog_AS+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
47935194
NN
4725else
4726 if test -n "$AS"; then
4727 ac_cv_prog_AS="$AS" # Let the user override the test.
4728else
4729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
5213506e
RW
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4736 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4738 break 2
4739 fi
4740done
5213506e
RW
4741 done
4742IFS=$as_save_IFS
47935194
NN
4743
4744fi
4745fi
4746AS=$ac_cv_prog_AS
4747if test -n "$AS"; then
5213506e
RW
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4749$as_echo "$AS" >&6; }
47935194 4750else
5213506e
RW
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752$as_echo "no" >&6; }
47935194
NN
4753fi
4754
5213506e 4755
47935194
NN
4756fi
4757if test -z "$ac_cv_prog_AS"; then
4758 ac_ct_AS=$AS
4759 # Extract the first word of "as", so it can be a program name with args.
4760set dummy as; ac_word=$2
5213506e
RW
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
47935194
NN
4765else
4766 if test -n "$ac_ct_AS"; then
4767 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
5213506e
RW
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4776 ac_cv_prog_ac_ct_AS="as"
5213506e 4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4778 break 2
4779 fi
4780done
5213506e
RW
4781 done
4782IFS=$as_save_IFS
47935194
NN
4783
4784fi
4785fi
4786ac_ct_AS=$ac_cv_prog_ac_ct_AS
4787if test -n "$ac_ct_AS"; then
5213506e
RW
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4789$as_echo "$ac_ct_AS" >&6; }
47935194 4790else
5213506e
RW
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
47935194
NN
4793fi
4794
5213506e
RW
4795 if test "x$ac_ct_AS" = x; then
4796 AS=""
4797 else
4798 case $cross_compiling:$ac_tool_warned in
4799yes:)
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4802ac_tool_warned=yes ;;
4803esac
4804 AS=$ac_ct_AS
4805 fi
47935194
NN
4806else
4807 AS="$ac_cv_prog_AS"
4808fi
4809
4810if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4812set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if test "${ac_cv_prog_AR+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
47935194
NN
4817else
4818 if test -n "$AR"; then
4819 ac_cv_prog_AR="$AR" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
5213506e
RW
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4828 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4830 break 2
4831 fi
4832done
5213506e
RW
4833 done
4834IFS=$as_save_IFS
47935194 4835
1530be84
TT
4836fi
4837fi
47935194 4838AR=$ac_cv_prog_AR
1530be84 4839if test -n "$AR"; then
5213506e
RW
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4841$as_echo "$AR" >&6; }
1530be84 4842else
5213506e
RW
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
1530be84
TT
4845fi
4846
5213506e 4847
47935194
NN
4848fi
4849if test -z "$ac_cv_prog_AR"; then
4850 ac_ct_AR=$AR
4851 # Extract the first word of "ar", so it can be a program name with args.
4852set dummy ar; ac_word=$2
5213506e
RW
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
47935194
NN
4857else
4858 if test -n "$ac_ct_AR"; then
4859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
5213506e
RW
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4868 ac_cv_prog_ac_ct_AR="ar"
5213506e 4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4870 break 2
4871 fi
4872done
5213506e
RW
4873 done
4874IFS=$as_save_IFS
47935194
NN
4875
4876fi
4877fi
4878ac_ct_AR=$ac_cv_prog_ac_ct_AR
4879if test -n "$ac_ct_AR"; then
5213506e
RW
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4881$as_echo "$ac_ct_AR" >&6; }
47935194 4882else
5213506e
RW
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
47935194 4885fi
1530be84 4886
5213506e
RW
4887 if test "x$ac_ct_AR" = x; then
4888 AR=""
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891yes:)
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894ac_tool_warned=yes ;;
4895esac
4896 AR=$ac_ct_AR
4897 fi
47935194
NN
4898else
4899 AR="$ac_cv_prog_AR"
4900fi
1530be84 4901
47935194
NN
4902if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1530be84 4904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906$as_echo_n "checking for $ac_word... " >&6; }
4907if test "${ac_cv_prog_RANLIB+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
1530be84
TT
4909else
4910 if test -n "$RANLIB"; then
4911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4912else
47935194
NN
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
5213506e
RW
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4922 break 2
4923 fi
4924done
5213506e
RW
4925 done
4926IFS=$as_save_IFS
47935194 4927
1530be84
TT
4928fi
4929fi
47935194 4930RANLIB=$ac_cv_prog_RANLIB
1530be84 4931if test -n "$RANLIB"; then
5213506e
RW
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4933$as_echo "$RANLIB" >&6; }
1530be84 4934else
5213506e
RW
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
1530be84
TT
4937fi
4938
5213506e 4939
47935194 4940fi
1530be84 4941if test -z "$ac_cv_prog_RANLIB"; then
47935194 4942 ac_ct_RANLIB=$RANLIB
1530be84
TT
4943 # Extract the first word of "ranlib", so it can be a program name with args.
4944set dummy ranlib; ac_word=$2
5213506e
RW
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
1530be84 4949else
47935194
NN
4950 if test -n "$ac_ct_RANLIB"; then
4951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1530be84 4952else
47935194
NN
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
5213506e
RW
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4962 break 2
4963 fi
4964done
5213506e
RW
4965 done
4966IFS=$as_save_IFS
47935194 4967
1530be84
TT
4968fi
4969fi
47935194
NN
4970ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4971if test -n "$ac_ct_RANLIB"; then
5213506e
RW
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4973$as_echo "$ac_ct_RANLIB" >&6; }
1530be84 4974else
5213506e
RW
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
1530be84
TT
4977fi
4978
5213506e
RW
4979 if test "x$ac_ct_RANLIB" = x; then
4980 RANLIB=":"
1530be84 4981 else
5213506e
RW
4982 case $cross_compiling:$ac_tool_warned in
4983yes:)
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986ac_tool_warned=yes ;;
4987esac
4988 RANLIB=$ac_ct_RANLIB
1530be84 4989 fi
5213506e
RW
4990else
4991 RANLIB="$ac_cv_prog_RANLIB"
1530be84 4992fi
1530be84 4993
1530be84 4994
1530be84 4995
1530be84
TT
4996
4997
5213506e
RW
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4999$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5000 # Check whether --enable-maintainer-mode was given.
5001if test "${enable_maintainer_mode+set}" = set; then :
5002 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1530be84
TT
5003else
5004 USE_MAINTAINER_MODE=no
5213506e 5005fi
1530be84 5006
5213506e
RW
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5008$as_echo "$USE_MAINTAINER_MODE" >&6; }
5009 if test $USE_MAINTAINER_MODE = yes; then
1530be84
TT
5010 MAINTAINER_MODE_TRUE=
5011 MAINTAINER_MODE_FALSE='#'
5012else
5013 MAINTAINER_MODE_TRUE='#'
5014 MAINTAINER_MODE_FALSE=
5015fi
bf9a420e 5016
1530be84 5017 MAINT=$MAINTAINER_MODE_TRUE
47935194 5018
1530be84
TT
5019
5020
c3b48847 5021. ${srcdir}/configure.host
1530be84 5022
5a2586cf
TT
5023case ${gc_basedir} in
5024/* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
5025*) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1530be84
TT
5026esac
5027
4109fe85 5028gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1530be84
TT
5029case "${host}" in
5030 *-*-cygwin32*)
5a2586cf 5031 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1530be84
TT
5032 ;;
5033esac
5034
e59be1b1
KT
5035case "${host}" in
5036 *-*-mingw*)
5037 gc_cflags="${gc_cflags} -DGC_BUILD=1"
5038 ;;
5039esac
5040
1530be84 5041
5a2586cf 5042GC_CFLAGS=${gc_cflags}
1530be84
TT
5043
5044
93e92f52
PG
5045case `pwd` in
5046 *\ * | *\ *)
5213506e
RW
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5048$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
93e92f52 5049esac
1cf3d07d
SE
5050
5051
1cf3d07d 5052
93e92f52
PG
5053macro_version='2.2.6'
5054macro_revision='1.3012'
1cf3d07d
SE
5055
5056
5057
5058
5059
5060
115dabb8 5061
1cf3d07d
SE
5062
5063
5064
5065
5066
5067
93e92f52 5068ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 5069
5213506e
RW
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5071$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5072if test "${ac_cv_path_SED+set}" = set; then :
5073 $as_echo_n "(cached) " >&6
5074else
5075 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5076 for ac_i in 1 2 3 4 5 6 7; do
5077 ac_script="$ac_script$as_nl$ac_script"
5078 done
5079 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5080 { ac_script=; unset ac_script;}
5081 if test -z "$SED"; then
5082 ac_path_SED_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
5085for as_dir in $PATH
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5213506e 5089 for ac_prog in sed gsed; do
1cf3d07d 5090 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
5091 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5092 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5093# Check for GNU ac_path_SED and select it if it is found.
5094 # Check for GNU $ac_path_SED
5095case `"$ac_path_SED" --version 2>&1` in
5096*GNU*)
5097 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5098*)
5099 ac_count=0
5100 $as_echo_n 0123456789 >"conftest.in"
5101 while :
5102 do
5103 cat "conftest.in" "conftest.in" >"conftest.tmp"
5104 mv "conftest.tmp" "conftest.in"
5105 cp "conftest.in" "conftest.nl"
5106 $as_echo '' >> "conftest.nl"
5107 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109 as_fn_arith $ac_count + 1 && ac_count=$as_val
5110 if test $ac_count -gt ${ac_path_SED_max-0}; then
5111 # Best one so far, save it but keep looking for a better one
5112 ac_cv_path_SED="$ac_path_SED"
5113 ac_path_SED_max=$ac_count
5114 fi
5115 # 10*(2^10) chars as input seems more than enough
5116 test $ac_count -gt 10 && break
5117 done
5118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119esac
5120
5121 $ac_path_SED_found && break 3
1cf3d07d
SE
5122 done
5123 done
5213506e 5124 done
1cf3d07d 5125IFS=$as_save_IFS
5213506e
RW
5126 if test -z "$ac_cv_path_SED"; then
5127 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 5128 fi
5213506e
RW
5129else
5130 ac_cv_path_SED=$SED
1cf3d07d
SE
5131fi
5132
5213506e
RW
5133fi
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5135$as_echo "$ac_cv_path_SED" >&6; }
5136 SED="$ac_cv_path_SED"
5137 rm -f conftest.sed
1cf3d07d
SE
5138
5139test -z "$SED" && SED=sed
5140Xsed="$SED -e 1s/^X//"
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5213506e
RW
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5153$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5154if test "${ac_cv_path_GREP+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156else
5157 if test -z "$GREP"; then
5158 ac_path_GREP_found=false
5159 # Loop through the user's path and test for each of PROGNAME-LIST
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_prog in grep ggrep; do
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5168 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5169# Check for GNU ac_path_GREP and select it if it is found.
5170 # Check for GNU $ac_path_GREP
5171case `"$ac_path_GREP" --version 2>&1` in
5172*GNU*)
5173 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5174*)
5175 ac_count=0
5176 $as_echo_n 0123456789 >"conftest.in"
5177 while :
5178 do
5179 cat "conftest.in" "conftest.in" >"conftest.tmp"
5180 mv "conftest.tmp" "conftest.in"
5181 cp "conftest.in" "conftest.nl"
5182 $as_echo 'GREP' >> "conftest.nl"
5183 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185 as_fn_arith $ac_count + 1 && ac_count=$as_val
5186 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5187 # Best one so far, save it but keep looking for a better one
5188 ac_cv_path_GREP="$ac_path_GREP"
5189 ac_path_GREP_max=$ac_count
5190 fi
5191 # 10*(2^10) chars as input seems more than enough
5192 test $ac_count -gt 10 && break
5193 done
5194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195esac
5196
5197 $ac_path_GREP_found && break 3
5198 done
5199 done
5200 done
5201IFS=$as_save_IFS
5202 if test -z "$ac_cv_path_GREP"; then
5203 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204 fi
5205else
5206 ac_cv_path_GREP=$GREP
5207fi
5208
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5211$as_echo "$ac_cv_path_GREP" >&6; }
5212 GREP="$ac_cv_path_GREP"
5213
5214
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5216$as_echo_n "checking for egrep... " >&6; }
5217if test "${ac_cv_path_EGREP+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
1cf3d07d 5219else
5213506e
RW
5220 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5221 then ac_cv_path_EGREP="$GREP -E"
5222 else
5223 if test -z "$EGREP"; then
5224 ac_path_EGREP_found=false
5225 # Loop through the user's path and test for each of PROGNAME-LIST
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_prog in egrep; do
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5234 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5235# Check for GNU ac_path_EGREP and select it if it is found.
5236 # Check for GNU $ac_path_EGREP
5237case `"$ac_path_EGREP" --version 2>&1` in
5238*GNU*)
5239 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5240*)
5241 ac_count=0
5242 $as_echo_n 0123456789 >"conftest.in"
5243 while :
5244 do
5245 cat "conftest.in" "conftest.in" >"conftest.tmp"
5246 mv "conftest.tmp" "conftest.in"
5247 cp "conftest.in" "conftest.nl"
5248 $as_echo 'EGREP' >> "conftest.nl"
5249 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5251 as_fn_arith $ac_count + 1 && ac_count=$as_val
5252 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5253 # Best one so far, save it but keep looking for a better one
5254 ac_cv_path_EGREP="$ac_path_EGREP"
5255 ac_path_EGREP_max=$ac_count
1cf3d07d 5256 fi
5213506e
RW
5257 # 10*(2^10) chars as input seems more than enough
5258 test $ac_count -gt 10 && break
5259 done
5260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261esac
5262
5263 $ac_path_EGREP_found && break 3
5264 done
5265 done
5266 done
5267IFS=$as_save_IFS
5268 if test -z "$ac_cv_path_EGREP"; then
5269 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 fi
5271else
5272 ac_cv_path_EGREP=$EGREP
5273fi
5274
5275 fi
1cf3d07d 5276fi
5213506e
RW
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5278$as_echo "$ac_cv_path_EGREP" >&6; }
5279 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
5280
5281
5213506e
RW
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5283$as_echo_n "checking for fgrep... " >&6; }
5284if test "${ac_cv_path_FGREP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
1cf3d07d 5286else
5213506e
RW
5287 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5288 then ac_cv_path_FGREP="$GREP -F"
5289 else
5290 if test -z "$FGREP"; then
5291 ac_path_FGREP_found=false
5292 # Loop through the user's path and test for each of PROGNAME-LIST
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_prog in fgrep; do
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5302# Check for GNU ac_path_FGREP and select it if it is found.
5303 # Check for GNU $ac_path_FGREP
5304case `"$ac_path_FGREP" --version 2>&1` in
5305*GNU*)
5306 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5307*)
5308 ac_count=0
5309 $as_echo_n 0123456789 >"conftest.in"
5310 while :
5311 do
5312 cat "conftest.in" "conftest.in" >"conftest.tmp"
5313 mv "conftest.tmp" "conftest.in"
5314 cp "conftest.in" "conftest.nl"
5315 $as_echo 'FGREP' >> "conftest.nl"
5316 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318 as_fn_arith $ac_count + 1 && ac_count=$as_val
5319 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5320 # Best one so far, save it but keep looking for a better one
5321 ac_cv_path_FGREP="$ac_path_FGREP"
5322 ac_path_FGREP_max=$ac_count
1cf3d07d 5323 fi
5213506e
RW
5324 # 10*(2^10) chars as input seems more than enough
5325 test $ac_count -gt 10 && break
5326 done
5327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328esac
5329
5330 $ac_path_FGREP_found && break 3
5331 done
5332 done
5333 done
5334IFS=$as_save_IFS
5335 if test -z "$ac_cv_path_FGREP"; then
5336 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337 fi
5338else
5339 ac_cv_path_FGREP=$FGREP
1cf3d07d 5340fi
5213506e
RW
5341
5342 fi
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5345$as_echo "$ac_cv_path_FGREP" >&6; }
5346 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
5347
5348
5349test -z "$GREP" && GREP=grep
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5213506e
RW
5369# Check whether --with-gnu-ld was given.
5370if test "${with_gnu_ld+set}" = set; then :
5371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
66deb2be
TT
5372else
5373 with_gnu_ld=no
5213506e
RW
5374fi
5375
66deb2be 5376ac_prog=ld
2d65a52e 5377if test "$GCC" = yes; then
66deb2be 5378 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
5381 case $host in
5382 *-*-mingw*)
5383 # gcc leaves a trailing carriage return which upsets mingw
5384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385 *)
5386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387 esac
2d65a52e 5388 case $ac_prog in
115dabb8 5389 # Accept absolute paths.
1cf3d07d 5390 [\\/]* | ?:[\\/]*)
115dabb8 5391 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5392 # Canonicalize the pathname of ld
5393 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
115dabb8
TT
5396 done
5397 test -z "$LD" && LD="$ac_prog"
5398 ;;
66deb2be
TT
5399 "")
5400 # If it fails, then pretend we aren't using GCC.
5401 ac_prog=ld
5402 ;;
5403 *)
5404 # If it is relative, then search for the first ld in PATH.
5405 with_gnu_ld=unknown
5406 ;;
5407 esac
5408elif test "$with_gnu_ld" = yes; then
5213506e
RW
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410$as_echo_n "checking for GNU ld... " >&6; }
66deb2be 5411else
5213506e
RW
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413$as_echo_n "checking for non-GNU ld... " >&6; }
66deb2be 5414fi
5213506e
RW
5415if test "${lt_cv_path_LD+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
66deb2be
TT
5417else
5418 if test -z "$LD"; then
1cf3d07d 5419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
66deb2be 5420 for ac_dir in $PATH; do
1cf3d07d 5421 IFS="$lt_save_ifs"
66deb2be 5422 test -z "$ac_dir" && ac_dir=.
20bbd3cd 5423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2d65a52e 5424 lt_cv_path_LD="$ac_dir/$ac_prog"
66deb2be 5425 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5426 # but apparently some variants of GNU ld only accept -v.
66deb2be 5427 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5429 *GNU* | *'with BFD'*)
66deb2be 5430 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5431 ;;
5432 *)
115dabb8 5433 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5434 ;;
5435 esac
66deb2be
TT
5436 fi
5437 done
1cf3d07d 5438 IFS="$lt_save_ifs"
66deb2be 5439else
2d65a52e 5440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
66deb2be
TT
5441fi
5442fi
5443
2d65a52e 5444LD="$lt_cv_path_LD"
66deb2be 5445if test -n "$LD"; then
5213506e
RW
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5447$as_echo "$LD" >&6; }
66deb2be 5448else
5213506e
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
47935194 5451fi
5213506e
RW
5452test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5454$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5455if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
66deb2be 5457else
1cf3d07d
SE
5458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5459case `$LD -v 2>&1 </dev/null` in
5460*GNU* | *'with BFD'*)
2d65a52e 5461 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5462 ;;
5463*)
2d65a52e 5464 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5465 ;;
5466esac
66deb2be 5467fi
5213506e
RW
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5469$as_echo "$lt_cv_prog_gnu_ld" >&6; }
2d65a52e 5470with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7
AO
5471
5472
66deb2be 5473
1cf3d07d
SE
5474
5475
5476
5477
5478
5479
5213506e
RW
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5481$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5482if test "${lt_cv_path_NM+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
66deb2be
TT
5484else
5485 if test -n "$NM"; then
5486 # Let the user override the test.
2d65a52e 5487 lt_cv_path_NM="$NM"
66deb2be 5488else
1cf3d07d
SE
5489 lt_nm_to_check="${ac_tool_prefix}nm"
5490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5491 lt_nm_to_check="$lt_nm_to_check nm"
5492 fi
5493 for lt_tmp_nm in $lt_nm_to_check; do
5494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496 IFS="$lt_save_ifs"
5497 test -z "$ac_dir" && ac_dir=.
5498 tmp_nm="$ac_dir/$lt_tmp_nm"
5499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5500 # Check to see if the nm accepts a BSD-compat flag.
5501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5502 # nm: unknown option "B" ignored
5503 # Tru64's nm complains that /dev/null is an invalid object file
5504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5505 */dev/null* | *'Invalid file or object type'*)
5506 lt_cv_path_NM="$tmp_nm -B"
5507 break
5508 ;;
5509 *)
5510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5511 */dev/null*)
5512 lt_cv_path_NM="$tmp_nm -p"
5513 break
5514 ;;
5515 *)
5516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5517 continue # so that we can try to find one that supports BSD flags
5518 ;;
5519 esac
5520 ;;
5521 esac
5522 fi
5523 done
5524 IFS="$lt_save_ifs"
5525 done
5526 : ${lt_cv_path_NM=no}
5527fi
5528fi
5213506e
RW
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5530$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
5531if test "$lt_cv_path_NM" != "no"; then
5532 NM="$lt_cv_path_NM"
5533else
5534 # Didn't find any BSD compatible name lister, look for dumpbin.
5535 if test -n "$ac_tool_prefix"; then
5536 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5537 do
5538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541$as_echo_n "checking for $ac_word... " >&6; }
5542if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5544else
5545 if test -n "$DUMPBIN"; then
5546 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5213506e
RW
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5555 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5557 break 2
5558 fi
5559done
5213506e
RW
5560 done
5561IFS=$as_save_IFS
1cf3d07d
SE
5562
5563fi
5564fi
5565DUMPBIN=$ac_cv_prog_DUMPBIN
5566if test -n "$DUMPBIN"; then
5213506e
RW
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5568$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5569else
5213506e
RW
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
1cf3d07d
SE
5572fi
5573
5213506e 5574
1cf3d07d
SE
5575 test -n "$DUMPBIN" && break
5576 done
5577fi
5578if test -z "$DUMPBIN"; then
5579 ac_ct_DUMPBIN=$DUMPBIN
5580 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5581do
5582 # Extract the first word of "$ac_prog", so it can be a program name with args.
5583set dummy $ac_prog; ac_word=$2
5213506e
RW
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585$as_echo_n "checking for $ac_word... " >&6; }
5586if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5588else
5589 if test -n "$ac_ct_DUMPBIN"; then
5590 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5213506e
RW
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5599 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5601 break 2
5602 fi
5603done
5213506e
RW
5604 done
5605IFS=$as_save_IFS
1cf3d07d
SE
5606
5607fi
66deb2be 5608fi
1cf3d07d
SE
5609ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5610if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5612$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5613else
5213506e
RW
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615$as_echo "no" >&6; }
1cf3d07d
SE
5616fi
5617
5213506e 5618
1cf3d07d
SE
5619 test -n "$ac_ct_DUMPBIN" && break
5620done
1cf3d07d 5621
5213506e
RW
5622 if test "x$ac_ct_DUMPBIN" = x; then
5623 DUMPBIN=":"
5624 else
5625 case $cross_compiling:$ac_tool_warned in
5626yes:)
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629ac_tool_warned=yes ;;
5630esac
5631 DUMPBIN=$ac_ct_DUMPBIN
5632 fi
1cf3d07d
SE
5633fi
5634
5635
5636 if test "$DUMPBIN" != ":"; then
5637 NM="$DUMPBIN"
5638 fi
66deb2be 5639fi
1cf3d07d
SE
5640test -z "$NM" && NM=nm
5641
5642
5643
5644
5645
66deb2be 5646
5213506e
RW
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5648$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5649if test "${lt_cv_nm_interface+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5651else
5652 lt_cv_nm_interface="BSD nm"
5653 echo "int some_variable = 0;" > conftest.$ac_ext
5213506e 5654 (eval echo "\"\$as_me:5654: $ac_compile\"" >&5)
1cf3d07d
SE
5655 (eval "$ac_compile" 2>conftest.err)
5656 cat conftest.err >&5
5213506e 5657 (eval echo "\"\$as_me:5657: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5658 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5659 cat conftest.err >&5
5213506e 5660 (eval echo "\"\$as_me:5660: output\"" >&5)
1cf3d07d
SE
5661 cat conftest.out >&5
5662 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5663 lt_cv_nm_interface="MS dumpbin"
5664 fi
5665 rm -f conftest*
5666fi
5213506e
RW
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5668$as_echo "$lt_cv_nm_interface" >&6; }
47935194 5669
5213506e
RW
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5671$as_echo_n "checking whether ln -s works... " >&6; }
47935194
NN
5672LN_S=$as_ln_s
5673if test "$LN_S" = "ln -s"; then
5213506e
RW
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675$as_echo "yes" >&6; }
66deb2be 5676else
5213506e
RW
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5678$as_echo "no, using $LN_S" >&6; }
66deb2be
TT
5679fi
5680
1cf3d07d 5681# find the maximum length of command line arguments
5213506e
RW
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5683$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5684if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5686else
5687 i=0
5688 teststring="ABCD"
5689
5690 case $build_os in
5691 msdosdjgpp*)
5692 # On DJGPP, this test can blow up pretty badly due to problems in libc
5693 # (any single argument exceeding 2000 bytes causes a buffer overrun
5694 # during glob expansion). Even if it were fixed, the result of this
5695 # check would be larger than it should be.
5696 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5697 ;;
5698
5699 gnu*)
5700 # Under GNU Hurd, this test is not required because there is
5701 # no limit to the length of command line arguments.
5702 # Libtool will interpret -1 as no limit whatsoever
5703 lt_cv_sys_max_cmd_len=-1;
5704 ;;
5705
93e92f52 5706 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
5707 # On Win9x/ME, this test blows up -- it succeeds, but takes
5708 # about 5 minutes as the teststring grows exponentially.
5709 # Worse, since 9x/ME are not pre-emptively multitasking,
5710 # you end up with a "frozen" computer, even though with patience
5711 # the test eventually succeeds (with a max line length of 256k).
5712 # Instead, let's just punt: use the minimum linelength reported by
5713 # all of the supported platforms: 8192 (on NT/2K/XP).
5714 lt_cv_sys_max_cmd_len=8192;
5715 ;;
5716
5717 amigaos*)
5718 # On AmigaOS with pdksh, this test takes hours, literally.
5719 # So we just punt and use a minimum line length of 8192.
5720 lt_cv_sys_max_cmd_len=8192;
5721 ;;
5722
5723 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5724 # This has been around since 386BSD, at least. Likely further.
5725 if test -x /sbin/sysctl; then
5726 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5727 elif test -x /usr/sbin/sysctl; then
5728 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5729 else
5730 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5731 fi
5732 # And add a safety zone
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5735 ;;
5736
5737 interix*)
5738 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5739 lt_cv_sys_max_cmd_len=196608
5740 ;;
5741
5742 osf*)
5743 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5744 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5745 # nice to cause kernel panics so lets avoid the loop below.
5746 # First set a reasonable default.
5747 lt_cv_sys_max_cmd_len=16384
5748 #
5749 if test -x /sbin/sysconfig; then
5750 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5751 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5752 esac
5753 fi
5754 ;;
5755 sco3.2v5*)
5756 lt_cv_sys_max_cmd_len=102400
5757 ;;
5758 sysv5* | sco5v6* | sysv4.2uw2*)
5759 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5760 if test -n "$kargmax"; then
5761 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5762 else
5763 lt_cv_sys_max_cmd_len=32768
5764 fi
5765 ;;
5766 *)
93e92f52
PG
5767 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5768 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5771 else
5772 # Make teststring a little bigger before we do anything with it.
5773 # a 1K string should be a reasonable start.
5774 for i in 1 2 3 4 5 6 7 8 ; do
5775 teststring=$teststring$teststring
5776 done
5777 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5778 # If test is not a shell built-in, we'll probably end up computing a
5779 # maximum length that is only half of the actual maximum length, but
5780 # we can't tell.
5781 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5782 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5783 test $i != 17 # 1/2 MB should be enough
5784 do
5785 i=`expr $i + 1`
5786 teststring=$teststring$teststring
5787 done
5788 # Only check the string length outside the loop.
5789 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5790 teststring=
5791 # Add a significant safety factor because C++ compilers can tack on
5792 # massive amounts of additional arguments before passing them to the
5793 # linker. It appears as though 1/2 is a usable value.
5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5795 fi
1cf3d07d
SE
5796 ;;
5797 esac
5798
5799fi
5800
5801if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5803$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 5804else
5213506e
RW
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5806$as_echo "none" >&6; }
1cf3d07d
SE
5807fi
5808max_cmd_len=$lt_cv_sys_max_cmd_len
5809
5810
5811
5812
5813
5814
1cf3d07d
SE
5815: ${CP="cp -f"}
5816: ${MV="mv -f"}
5817: ${RM="rm -f"}
5818
5213506e
RW
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5820$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5821# Try some XSI features
5822xsi_shell=no
5823( _lt_dummy="a/b/c"
5824 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
93e92f52
PG
5825 = c,a/b,, \
5826 && eval 'test $(( 1 + 1 )) -eq 2 \
5827 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5828 && xsi_shell=yes
5213506e
RW
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5830$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5831
5832
5213506e
RW
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5834$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5835lt_shell_append=no
5836( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5837 >/dev/null 2>&1 \
5838 && lt_shell_append=yes
5213506e
RW
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5840$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5841
5842
5843if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5844 lt_unset=unset
5845else
5846 lt_unset=false
5847fi
5848
5849
5850
5851
5852
5853# test EBCDIC or ASCII
5854case `echo X|tr X '\101'` in
5855 A) # ASCII based system
5856 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5857 lt_SP2NL='tr \040 \012'
5858 lt_NL2SP='tr \015\012 \040\040'
5859 ;;
5860 *) # EBCDIC based system
5861 lt_SP2NL='tr \100 \n'
5862 lt_NL2SP='tr \r\n \100\100'
5863 ;;
5864esac
5865
5866
5867
5868
5869
5870
5871
5872
5873
5213506e
RW
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5875$as_echo_n "checking for $LD option to reload object files... " >&6; }
5876if test "${lt_cv_ld_reload_flag+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5878else
5879 lt_cv_ld_reload_flag='-r'
5880fi
5213506e
RW
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5882$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5883reload_flag=$lt_cv_ld_reload_flag
5884case $reload_flag in
5885"" | " "*) ;;
5886*) reload_flag=" $reload_flag" ;;
5887esac
5888reload_cmds='$LD$reload_flag -o $output$reload_objs'
5889case $host_os in
5890 darwin*)
5891 if test "$GCC" = yes; then
5892 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5893 else
5894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5895 fi
5896 ;;
5897esac
5898
5899
5900
5901
5902
5903
5904
5905
5906
93e92f52
PG
5907if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
93e92f52
PG
5914else
5915 if test -n "$OBJDUMP"; then
5916 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5213506e
RW
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 5925 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
5927 break 2
5928 fi
5929done
5213506e
RW
5930 done
5931IFS=$as_save_IFS
93e92f52
PG
5932
5933fi
5934fi
5935OBJDUMP=$ac_cv_prog_OBJDUMP
5936if test -n "$OBJDUMP"; then
5213506e
RW
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5938$as_echo "$OBJDUMP" >&6; }
93e92f52 5939else
5213506e
RW
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
93e92f52
PG
5942fi
5943
5213506e 5944
93e92f52
PG
5945fi
5946if test -z "$ac_cv_prog_OBJDUMP"; then
5947 ac_ct_OBJDUMP=$OBJDUMP
5948 # Extract the first word of "objdump", so it can be a program name with args.
5949set dummy objdump; ac_word=$2
5213506e
RW
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
5952if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
93e92f52
PG
5954else
5955 if test -n "$ac_ct_OBJDUMP"; then
5956 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5213506e
RW
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 5965 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
5967 break 2
5968 fi
5969done
5213506e
RW
5970 done
5971IFS=$as_save_IFS
93e92f52 5972
93e92f52
PG
5973fi
5974fi
5975ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5976if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5978$as_echo "$ac_ct_OBJDUMP" >&6; }
93e92f52 5979else
5213506e
RW
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981$as_echo "no" >&6; }
93e92f52
PG
5982fi
5983
5213506e
RW
5984 if test "x$ac_ct_OBJDUMP" = x; then
5985 OBJDUMP="false"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988yes:)
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993 OBJDUMP=$ac_ct_OBJDUMP
5994 fi
93e92f52
PG
5995else
5996 OBJDUMP="$ac_cv_prog_OBJDUMP"
5997fi
5998
5999test -z "$OBJDUMP" && OBJDUMP=objdump
6000
6001
6002
6003
6004
6005
6006
6007
1cf3d07d 6008
5213506e
RW
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6010$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6011if test "${lt_cv_deplibs_check_method+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
2f7bf5b7 6013else
5f527203 6014 lt_cv_file_magic_cmd='$MAGIC_CMD'
2f7bf5b7
AO
6015lt_cv_file_magic_test_file=
6016lt_cv_deplibs_check_method='unknown'
6017# Need to set the preceding variable on all platforms that support
6018# interlibrary dependencies.
6019# 'none' -- dependencies not supported.
6020# `unknown' -- same as none, but documents that we really don't know.
6021# 'pass_all' -- all dependencies passed with no checks.
6022# 'test_compile' -- check by making test program.
1cf3d07d
SE
6023# 'file_magic [[regex]]' -- check by looking for files in library path
6024# which responds to the $file_magic_cmd with a given extended regex.
2f7bf5b7
AO
6025# If you have `file' or equivalent on your system and you're not sure
6026# whether `pass_all' will *always* work, you probably want this one.
6027
2d65a52e 6028case $host_os in
f3641e7e 6029aix[4-9]*)
2f7bf5b7
AO
6030 lt_cv_deplibs_check_method=pass_all
6031 ;;
6032
6033beos*)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036
1cf3d07d 6037bsdi[45]*)
2d65a52e
AO
6038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6039 lt_cv_file_magic_cmd='/usr/bin/file -L'
2f7bf5b7
AO
6040 lt_cv_file_magic_test_file=/shlib/libc.so
6041 ;;
6042
1cf3d07d
SE
6043cygwin*)
6044 # func_win32_libid is a shell function defined in ltmain.sh
6045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6046 lt_cv_file_magic_cmd='func_win32_libid'
6047 ;;
6048
6049mingw* | pw32*)
6050 # Base MSYS/MinGW do not provide the 'file' command needed by
6051 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6052 # unless we find 'file', for example because we are cross-compiling.
6053 if ( file / ) >/dev/null 2>&1; then
6054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055 lt_cv_file_magic_cmd='func_win32_libid'
6056 else
6057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6058 lt_cv_file_magic_cmd='$OBJDUMP -f'
6059 fi
2f7bf5b7
AO
6060 ;;
6061
93e92f52
PG
6062cegcc)
6063 # use the weaker test based on 'objdump'. See mingw*.
6064 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6065 lt_cv_file_magic_cmd='$OBJDUMP -f'
6066 ;;
6067
2d65a52e 6068darwin* | rhapsody*)
b27317b5 6069 lt_cv_deplibs_check_method=pass_all
2d65a52e
AO
6070 ;;
6071
1cf3d07d
SE
6072freebsd* | dragonfly*)
6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2d65a52e 6074 case $host_cpu in
2f7bf5b7
AO
6075 i*86 )
6076 # Not sure whether the presence of OpenBSD here was a mistake.
6077 # Let's accept both of them until this is cleared up.
1cf3d07d 6078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
2d65a52e 6079 lt_cv_file_magic_cmd=/usr/bin/file
2f7bf5b7
AO
6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6081 ;;
6082 esac
6083 else
6084 lt_cv_deplibs_check_method=pass_all
6085 fi
6086 ;;
6087
6088gnu*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
1cf3d07d
SE
6092hpux10.20* | hpux11*)
6093 lt_cv_file_magic_cmd=/usr/bin/file
f5cc59a7 6094 case $host_cpu in
f5cc59a7
AO
6095 ia64*)
6096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
f5cc59a7
AO
6097 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6098 ;;
1cf3d07d
SE
6099 hppa*64*)
6100 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]'
6101 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2f7bf5b7
AO
6102 ;;
6103 *)
1cf3d07d
SE
6104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6105 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2d65a52e 6106 ;;
2f7bf5b7 6107 esac
1cf3d07d
SE
6108 ;;
6109
6110interix[3-9]*)
6111 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6113 ;;
6114
6115irix5* | irix6* | nonstopux*)
6116 case $LD in
6117 *-32|*"-32 ") libmagic=32-bit;;
6118 *-n32|*"-n32 ") libmagic=N32;;
6119 *-64|*"-64 ") libmagic=64-bit;;
6120 *) libmagic=never-match;;
6121 esac
2f7bf5b7
AO
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125# This must be Linux ELF.
7a9d3fe8 6126linux* | k*bsd*-gnu | kopensolaris*-gnu)
76ecaf09 6127 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
6128 ;;
6129
1cf3d07d
SE
6130netbsd*)
6131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 6133 else
1cf3d07d 6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7
AO
6135 fi
6136 ;;
6137
1cf3d07d 6138newos6*)
2d65a52e
AO
6139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6140 lt_cv_file_magic_cmd=/usr/bin/file
6141 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6142 ;;
6143
1cf3d07d
SE
6144*nto* | *qnx*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
6147
6148openbsd*)
6149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6151 else
6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6153 fi
6154 ;;
6155
2f7bf5b7 6156osf3* | osf4* | osf5*)
2f7bf5b7
AO
6157 lt_cv_deplibs_check_method=pass_all
6158 ;;
66deb2be 6159
1cf3d07d 6160rdos*)
2f7bf5b7
AO
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164solaris*)
6165 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
6166 ;;
6167
1cf3d07d 6168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
33456445
AO
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
6171
1cf3d07d 6172sysv4 | sysv4.3*)
2d65a52e 6173 case $host_vendor in
2f7bf5b7 6174 motorola)
2d65a52e
AO
6175 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]'
6176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2f7bf5b7 6177 ;;
1cf3d07d
SE
6178 ncr)
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181 sequent)
6182 lt_cv_file_magic_cmd='/bin/file'
6183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6184 ;;
6185 sni)
6186 lt_cv_file_magic_cmd='/bin/file'
6187 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6188 lt_cv_file_magic_test_file=/lib/libc.so
6189 ;;
6190 siemens)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193 pc)
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
2f7bf5b7
AO
6196 esac
6197 ;;
1cf3d07d
SE
6198
6199tpf*)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
2f7bf5b7
AO
6202esac
6203
6204fi
5213506e
RW
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6206$as_echo "$lt_cv_deplibs_check_method" >&6; }
2f7bf5b7
AO
6207file_magic_cmd=$lt_cv_file_magic_cmd
6208deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 6209test -z "$deplibs_check_method" && deplibs_check_method=unknown
2f7bf5b7 6210
2f7bf5b7 6211
47935194 6212
2f7bf5b7 6213
413580dc 6214
2f7bf5b7 6215
2f7bf5b7 6216
2f7bf5b7 6217
2f7bf5b7 6218
2f7bf5b7 6219
2f7bf5b7 6220
2f7bf5b7 6221
47935194 6222if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
6223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if test "${ac_cv_prog_AR+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
2f7bf5b7 6229else
1cf3d07d
SE
6230 if test -n "$AR"; then
6231 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 6232else
47935194
NN
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
5213506e
RW
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6240 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6242 break 2
6243 fi
6244done
5213506e
RW
6245 done
6246IFS=$as_save_IFS
47935194 6247
2f7bf5b7
AO
6248fi
6249fi
1cf3d07d
SE
6250AR=$ac_cv_prog_AR
6251if test -n "$AR"; then
5213506e
RW
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6253$as_echo "$AR" >&6; }
2f7bf5b7 6254else
5213506e
RW
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
2f7bf5b7
AO
6257fi
6258
5213506e 6259
47935194 6260fi
1cf3d07d
SE
6261if test -z "$ac_cv_prog_AR"; then
6262 ac_ct_AR=$AR
6263 # Extract the first word of "ar", so it can be a program name with args.
6264set dummy ar; ac_word=$2
5213506e
RW
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266$as_echo_n "checking for $ac_word... " >&6; }
6267if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
2f7bf5b7 6269else
1cf3d07d
SE
6270 if test -n "$ac_ct_AR"; then
6271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 6272else
47935194
NN
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
5213506e
RW
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6280 ac_cv_prog_ac_ct_AR="ar"
5213506e 6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6282 break 2
6283 fi
6284done
5213506e
RW
6285 done
6286IFS=$as_save_IFS
47935194 6287
2f7bf5b7
AO
6288fi
6289fi
1cf3d07d
SE
6290ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291if test -n "$ac_ct_AR"; then
5213506e
RW
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6293$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 6294else
5213506e
RW
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296$as_echo "no" >&6; }
2f7bf5b7
AO
6297fi
6298
5213506e
RW
6299 if test "x$ac_ct_AR" = x; then
6300 AR="false"
6301 else
6302 case $cross_compiling:$ac_tool_warned in
6303yes:)
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306ac_tool_warned=yes ;;
6307esac
6308 AR=$ac_ct_AR
6309 fi
2f7bf5b7 6310else
1cf3d07d 6311 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
6312fi
6313
1cf3d07d
SE
6314test -z "$AR" && AR=ar
6315test -z "$AR_FLAGS" && AR_FLAGS=cru
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
47935194
NN
6327if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 6329set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
6332if test "${ac_cv_prog_STRIP+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
6334else
6335 if test -n "$STRIP"; then
6336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6337else
47935194
NN
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
5213506e
RW
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 6345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6347 break 2
6348 fi
6349done
5213506e
RW
6350 done
6351IFS=$as_save_IFS
47935194 6352
2f7bf5b7
AO
6353fi
6354fi
47935194 6355STRIP=$ac_cv_prog_STRIP
2f7bf5b7 6356if test -n "$STRIP"; then
5213506e
RW
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6358$as_echo "$STRIP" >&6; }
2f7bf5b7 6359else
5213506e
RW
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
2f7bf5b7
AO
6362fi
6363
5213506e 6364
47935194 6365fi
2f7bf5b7 6366if test -z "$ac_cv_prog_STRIP"; then
47935194 6367 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
6368 # Extract the first word of "strip", so it can be a program name with args.
6369set dummy strip; ac_word=$2
5213506e
RW
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
6372if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
2f7bf5b7 6374else
47935194
NN
6375 if test -n "$ac_ct_STRIP"; then
6376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 6377else
47935194
NN
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
5213506e
RW
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 6385 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6387 break 2
6388 fi
6389done
5213506e
RW
6390 done
6391IFS=$as_save_IFS
47935194 6392
2f7bf5b7
AO
6393fi
6394fi
47935194
NN
6395ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6396if test -n "$ac_ct_STRIP"; then
5213506e
RW
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6398$as_echo "$ac_ct_STRIP" >&6; }
2f7bf5b7 6399else
5213506e
RW
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
2f7bf5b7
AO
6402fi
6403
5213506e
RW
6404 if test "x$ac_ct_STRIP" = x; then
6405 STRIP=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408yes:)
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411ac_tool_warned=yes ;;
6412esac
6413 STRIP=$ac_ct_STRIP
6414 fi
2f7bf5b7 6415else
47935194 6416 STRIP="$ac_cv_prog_STRIP"
2f7bf5b7
AO
6417fi
6418
1cf3d07d 6419test -z "$STRIP" && STRIP=:
70635f1e 6420
66deb2be 6421
20bbd3cd 6422
20bbd3cd 6423
47935194 6424
2f7bf5b7 6425
1cf3d07d
SE
6426if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6428set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if test "${ac_cv_prog_RANLIB+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6433else
6434 if test -n "$RANLIB"; then
6435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
5213506e
RW
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6446 break 2
6447 fi
6448done
5213506e
RW
6449 done
6450IFS=$as_save_IFS
1cf3d07d
SE
6451
6452fi
6453fi
6454RANLIB=$ac_cv_prog_RANLIB
6455if test -n "$RANLIB"; then
5213506e
RW
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6457$as_echo "$RANLIB" >&6; }
1cf3d07d 6458else
5213506e
RW
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
1cf3d07d
SE
6461fi
6462
5213506e 6463
1cf3d07d
SE
6464fi
6465if test -z "$ac_cv_prog_RANLIB"; then
6466 ac_ct_RANLIB=$RANLIB
6467 # Extract the first word of "ranlib", so it can be a program name with args.
6468set dummy ranlib; ac_word=$2
5213506e
RW
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6473else
6474 if test -n "$ac_ct_RANLIB"; then
6475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
5213506e
RW
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6484 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6486 break 2
6487 fi
6488done
5213506e
RW
6489 done
6490IFS=$as_save_IFS
1cf3d07d 6491
1cf3d07d
SE
6492fi
6493fi
6494ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6495if test -n "$ac_ct_RANLIB"; then
5213506e
RW
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6497$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 6498else
5213506e
RW
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
1cf3d07d
SE
6501fi
6502
5213506e
RW
6503 if test "x$ac_ct_RANLIB" = x; then
6504 RANLIB=":"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507yes:)
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510ac_tool_warned=yes ;;
6511esac
6512 RANLIB=$ac_ct_RANLIB
6513 fi
1cf3d07d
SE
6514else
6515 RANLIB="$ac_cv_prog_RANLIB"
6516fi
6517
6518test -z "$RANLIB" && RANLIB=:
6519
6520
6521
6522
6523
6524
6525# Determine commands to create old-style static archives.
93e92f52 6526old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6527old_postinstall_cmds='chmod 644 $oldlib'
6528old_postuninstall_cmds=
6529
6530if test -n "$RANLIB"; then
6531 case $host_os in
6532 openbsd*)
6533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6534 ;;
6535 *)
6536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6537 ;;
6538 esac
6539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6540fi
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575# If no C compiler was specified, use CC.
6576LTCC=${LTCC-"$CC"}
6577
6578# If no C compiler flags were specified, use CFLAGS.
6579LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6580
6581# Allow CC to be a program name with arguments.
6582compiler=$CC
6583
6584
6585# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6587$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6588if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6590else
6591
6592# These are sane defaults that work on at least a few old systems.
6593# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6594
6595# Character class describing NM global symbol codes.
6596symcode='[BCDEGRST]'
6597
6598# Regexp to match symbols that can be accessed directly from C.
6599sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6600
6601# Define system-specific variables.
6602case $host_os in
6603aix*)
6604 symcode='[BCDT]'
6605 ;;
93e92f52 6606cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6607 symcode='[ABCDGISTW]'
6608 ;;
6609hpux*)
6610 if test "$host_cpu" = ia64; then
6611 symcode='[ABCDEGRST]'
6612 fi
6613 ;;
6614irix* | nonstopux*)
6615 symcode='[BCDEGRST]'
6616 ;;
6617osf*)
6618 symcode='[BCDEGQRST]'
6619 ;;
6620solaris*)
6621 symcode='[BDRT]'
6622 ;;
6623sco3.2v5*)
6624 symcode='[DT]'
6625 ;;
6626sysv4.2uw2*)
6627 symcode='[DT]'
6628 ;;
6629sysv5* | sco5v6* | unixware* | OpenUNIX*)
6630 symcode='[ABDT]'
6631 ;;
6632sysv4)
6633 symcode='[DFNSTU]'
6634 ;;
6635esac
6636
6637# If we're using GNU nm, then use its standard symbol codes.
6638case `$NM -V 2>&1` in
6639*GNU* | *'with BFD'*)
6640 symcode='[ABCDGIRSTW]' ;;
6641esac
6642
6643# Transform an extracted symbol line into a proper C declaration.
6644# Some systems (esp. on ia64) link data and code symbols differently,
6645# so use this general approach.
6646lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6647
6648# Transform an extracted symbol line into symbol name and symbol address
6649lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
93e92f52 6650lt_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
6651
6652# Handle CRLF in mingw tool chain
6653opt_cr=
6654case $build_os in
6655mingw*)
6656 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6657 ;;
6658esac
6659
6660# Try without a prefix underscore, then with it.
6661for ac_symprfx in "" "_"; do
6662
6663 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6664 symxfrm="\\1 $ac_symprfx\\2 \\2"
6665
6666 # Write the raw and C identifiers.
6667 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6668 # Fake it for dumpbin and say T for any non-static function
6669 # and D for any global variable.
6670 # Also find C++ and __fastcall symbols from MSVC++,
6671 # which start with @ or ?.
6672 lt_cv_sys_global_symbol_pipe="$AWK '"\
6673" {last_section=section; section=\$ 3};"\
6674" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6675" \$ 0!~/External *\|/{next};"\
6676" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6677" {if(hide[section]) next};"\
6678" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6679" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6680" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6681" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6682" ' prfx=^$ac_symprfx"
6683 else
6684 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6685 fi
6686
6687 # Check to see that the pipe works correctly.
6688 pipe_works=no
6689
6690 rm -f conftest*
6691 cat > conftest.$ac_ext <<_LT_EOF
6692#ifdef __cplusplus
6693extern "C" {
6694#endif
6695char nm_test_var;
6696void nm_test_func(void);
6697void nm_test_func(void){}
6698#ifdef __cplusplus
6699}
6700#endif
6701int main(){nm_test_var='a';nm_test_func();return(0);}
6702_LT_EOF
6703
5213506e 6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6705 (eval $ac_compile) 2>&5
6706 ac_status=$?
5213506e
RW
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }; then
1cf3d07d
SE
6709 # Now try to grab the symbols.
6710 nlist=conftest.nm
5213506e 6711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1cf3d07d
SE
6712 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6713 ac_status=$?
5213506e
RW
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6716 # Try sorting and uniquifying the output.
6717 if sort "$nlist" | uniq > "$nlist"T; then
6718 mv -f "$nlist"T "$nlist"
6719 else
6720 rm -f "$nlist"T
6721 fi
6722
6723 # Make sure that we snagged all the symbols we need.
6724 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6725 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6726 cat <<_LT_EOF > conftest.$ac_ext
6727#ifdef __cplusplus
6728extern "C" {
6729#endif
6730
6731_LT_EOF
6732 # Now generate the symbol file.
6733 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6734
6735 cat <<_LT_EOF >> conftest.$ac_ext
6736
6737/* The mapping between symbol names and symbols. */
6738const struct {
6739 const char *name;
6740 void *address;
6741}
6742lt__PROGRAM__LTX_preloaded_symbols[] =
6743{
6744 { "@PROGRAM@", (void *) 0 },
6745_LT_EOF
6746 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6747 cat <<\_LT_EOF >> conftest.$ac_ext
6748 {0, (void *) 0}
6749};
6750
6751/* This works around a problem in FreeBSD linker */
6752#ifdef FREEBSD_WORKAROUND
6753static const void *lt_preloaded_setup() {
6754 return lt__PROGRAM__LTX_preloaded_symbols;
6755}
6756#endif
6757
6758#ifdef __cplusplus
6759}
6760#endif
6761_LT_EOF
6762 # Now try linking the two files.
6763 mv conftest.$ac_objext conftstm.$ac_objext
6764 lt_save_LIBS="$LIBS"
6765 lt_save_CFLAGS="$CFLAGS"
6766 LIBS="conftstm.$ac_objext"
6767 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6769 (eval $ac_link) 2>&5
6770 ac_status=$?
5213506e
RW
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6773 pipe_works=yes
6774 fi
6775 LIBS="$lt_save_LIBS"
6776 CFLAGS="$lt_save_CFLAGS"
6777 else
6778 echo "cannot find nm_test_func in $nlist" >&5
6779 fi
6780 else
6781 echo "cannot find nm_test_var in $nlist" >&5
6782 fi
6783 else
6784 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6785 fi
6786 else
6787 echo "$progname: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 fi
93e92f52 6790 rm -rf conftest* conftst*
1cf3d07d
SE
6791
6792 # Do not use the global_symbol_pipe unless it works.
6793 if test "$pipe_works" = yes; then
6794 break
6795 else
6796 lt_cv_sys_global_symbol_pipe=
6797 fi
6798done
6799
6800fi
6801
6802if test -z "$lt_cv_sys_global_symbol_pipe"; then
6803 lt_cv_sys_global_symbol_to_cdecl=
6804fi
6805if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6807$as_echo "failed" >&6; }
1cf3d07d 6808else
5213506e
RW
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6810$as_echo "ok" >&6; }
1cf3d07d
SE
6811fi
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
93e92f52
PG
6827
6828
6829
6830
6831
1cf3d07d
SE
6832
6833
6834
5213506e
RW
6835# Check whether --enable-libtool-lock was given.
6836if test "${enable_libtool_lock+set}" = set; then :
6837 enableval=$enable_libtool_lock;
6838fi
1cf3d07d 6839
1cf3d07d
SE
6840test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6841
6842# Some flags need to be propagated to the compiler or linker for good
6843# libtool support.
2d65a52e 6844case $host in
1cf3d07d 6845ia64-*-hpux*)
66deb2be 6846 # Find out which ABI we are using.
1cf3d07d 6847 echo 'int i;' > conftest.$ac_ext
5213506e 6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47935194
NN
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
5213506e
RW
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
1cf3d07d
SE
6853 case `/usr/bin/file conftest.$ac_objext` in
6854 *ELF-32*)
6855 HPUX_IA64_MODE="32"
6856 ;;
6857 *ELF-64*)
6858 HPUX_IA64_MODE="64"
6859 ;;
6860 esac
6861 fi
6862 rm -rf conftest*
6863 ;;
6864*-*-irix6*)
6865 # Find out which ABI we are using.
5213506e
RW
6866 echo '#line 6866 "configure"' > conftest.$ac_ext
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
5213506e
RW
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
1cf3d07d
SE
6872 if test "$lt_cv_prog_gnu_ld" = yes; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *32-bit*)
6875 LD="${LD-ld} -melf32bsmip"
6876 ;;
6877 *N32*)
6878 LD="${LD-ld} -melf32bmipn32"
6879 ;;
6880 *64-bit*)
6881 LD="${LD-ld} -melf64bmip"
6882 ;;
6883 esac
6884 else
6885 case `/usr/bin/file conftest.$ac_objext` in
6886 *32-bit*)
6887 LD="${LD-ld} -32"
6888 ;;
6889 *N32*)
6890 LD="${LD-ld} -n32"
6891 ;;
6892 *64-bit*)
6893 LD="${LD-ld} -64"
6894 ;;
6895 esac
6896 fi
6897 fi
6898 rm -rf conftest*
6899 ;;
6900
6901x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6902s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6903 # Find out which ABI we are using.
6904 echo 'int i;' > conftest.$ac_ext
5213506e 6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6906 (eval $ac_compile) 2>&5
6907 ac_status=$?
5213506e
RW
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; }; then
1cf3d07d
SE
6910 case `/usr/bin/file conftest.o` in
6911 *32-bit*)
6912 case $host in
6913 x86_64-*kfreebsd*-gnu)
6914 LD="${LD-ld} -m elf_i386_fbsd"
6915 ;;
6916 x86_64-*linux*)
6917 LD="${LD-ld} -m elf_i386"
6918 ;;
6919 ppc64-*linux*|powerpc64-*linux*)
6920 LD="${LD-ld} -m elf32ppclinux"
6921 ;;
6922 s390x-*linux*)
6923 LD="${LD-ld} -m elf_s390"
6924 ;;
6925 sparc64-*linux*)
6926 LD="${LD-ld} -m elf32_sparc"
6927 ;;
6928 esac
6929 ;;
6930 *64-bit*)
6931 case $host in
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_x86_64_fbsd"
6934 ;;
6935 x86_64-*linux*)
6936 LD="${LD-ld} -m elf_x86_64"
6937 ;;
6938 ppc*-*linux*|powerpc*-*linux*)
6939 LD="${LD-ld} -m elf64ppc"
6940 ;;
6941 s390*-*linux*|s390*-*tpf*)
6942 LD="${LD-ld} -m elf64_s390"
6943 ;;
6944 sparc*-*linux*)
6945 LD="${LD-ld} -m elf64_sparc"
6946 ;;
6947 esac
6948 ;;
6949 esac
6950 fi
6951 rm -rf conftest*
6952 ;;
6953
6954*-*-sco3.2v5*)
6955 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6956 SAVE_CFLAGS="$CFLAGS"
6957 CFLAGS="$CFLAGS -belf"
5213506e
RW
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6959$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6960if test "${lt_cv_cc_needs_belf+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6962else
6963 ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969 if test x$gcc_no_link = xyes; then
5213506e 6970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 6971fi
5213506e 6972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6973/* end confdefs.h. */
6974
6975int
6976main ()
6977{
6978
6979 ;
6980 return 0;
6981}
6982_ACEOF
5213506e 6983if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6984 lt_cv_cc_needs_belf=yes
6985else
5213506e 6986 lt_cv_cc_needs_belf=no
1cf3d07d 6987fi
5213506e
RW
6988rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6990 ac_ext=c
6991ac_cpp='$CPP $CPPFLAGS'
6992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994ac_compiler_gnu=$ac_cv_c_compiler_gnu
6995
6996fi
5213506e
RW
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6998$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7001 CFLAGS="$SAVE_CFLAGS"
7002 fi
7003 ;;
7004sparc*-*solaris*)
7005 # Find out which ABI we are using.
7006 echo 'int i;' > conftest.$ac_ext
5213506e 7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7008 (eval $ac_compile) 2>&5
7009 ac_status=$?
5213506e
RW
7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011 test $ac_status = 0; }; then
1cf3d07d
SE
7012 case `/usr/bin/file conftest.o` in
7013 *64-bit*)
7014 case $lt_cv_prog_gnu_ld in
7015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
93e92f52
PG
7016 *)
7017 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7018 LD="${LD-ld} -64"
7019 fi
7020 ;;
1cf3d07d
SE
7021 esac
7022 ;;
7023 esac
7024 fi
7025 rm -rf conftest*
7026 ;;
7027esac
7028
7029need_locks="$enable_libtool_lock"
7030
93e92f52
PG
7031
7032 case $host_os in
7033 rhapsody* | darwin*)
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7036set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
1cf3d07d 7041else
93e92f52
PG
7042 if test -n "$DSYMUTIL"; then
7043 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
1cf3d07d 7047do
93e92f52
PG
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
5213506e
RW
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7052 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52 7054 break 2
1cf3d07d 7055 fi
93e92f52 7056done
5213506e
RW
7057 done
7058IFS=$as_save_IFS
93e92f52
PG
7059
7060fi
7061fi
7062DSYMUTIL=$ac_cv_prog_DSYMUTIL
7063if test -n "$DSYMUTIL"; then
5213506e
RW
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7065$as_echo "$DSYMUTIL" >&6; }
93e92f52 7066else
5213506e
RW
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
93e92f52
PG
7069fi
7070
5213506e 7071
93e92f52
PG
7072fi
7073if test -z "$ac_cv_prog_DSYMUTIL"; then
7074 ac_ct_DSYMUTIL=$DSYMUTIL
7075 # Extract the first word of "dsymutil", so it can be a program name with args.
7076set dummy dsymutil; ac_word=$2
5213506e
RW
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078$as_echo_n "checking for $ac_word... " >&6; }
7079if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
93e92f52
PG
7081else
7082 if test -n "$ac_ct_DSYMUTIL"; then
7083 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7084else
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
5213506e
RW
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7092 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7094 break 2
7095 fi
7096done
5213506e
RW
7097 done
7098IFS=$as_save_IFS
93e92f52 7099
93e92f52
PG
7100fi
7101fi
7102ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7103if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7105$as_echo "$ac_ct_DSYMUTIL" >&6; }
93e92f52 7106else
5213506e
RW
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108$as_echo "no" >&6; }
93e92f52
PG
7109fi
7110
5213506e
RW
7111 if test "x$ac_ct_DSYMUTIL" = x; then
7112 DSYMUTIL=":"
7113 else
7114 case $cross_compiling:$ac_tool_warned in
7115yes:)
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118ac_tool_warned=yes ;;
7119esac
7120 DSYMUTIL=$ac_ct_DSYMUTIL
7121 fi
93e92f52
PG
7122else
7123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7124fi
7125
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7128set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
93e92f52
PG
7133else
7134 if test -n "$NMEDIT"; then
7135 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
5213506e
RW
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7146 break 2
7147 fi
7148done
5213506e
RW
7149 done
7150IFS=$as_save_IFS
93e92f52
PG
7151
7152fi
7153fi
7154NMEDIT=$ac_cv_prog_NMEDIT
7155if test -n "$NMEDIT"; then
5213506e
RW
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7157$as_echo "$NMEDIT" >&6; }
93e92f52 7158else
5213506e
RW
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
93e92f52
PG
7161fi
7162
5213506e 7163
93e92f52
PG
7164fi
7165if test -z "$ac_cv_prog_NMEDIT"; then
7166 ac_ct_NMEDIT=$NMEDIT
7167 # Extract the first word of "nmedit", so it can be a program name with args.
7168set dummy nmedit; ac_word=$2
5213506e
RW
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
93e92f52
PG
7173else
7174 if test -n "$ac_ct_NMEDIT"; then
7175 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
5213506e
RW
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7184 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7186 break 2
7187 fi
7188done
5213506e
RW
7189 done
7190IFS=$as_save_IFS
93e92f52 7191
93e92f52
PG
7192fi
7193fi
7194ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7197$as_echo "$ac_ct_NMEDIT" >&6; }
93e92f52 7198else
5213506e
RW
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
93e92f52
PG
7201fi
7202
5213506e
RW
7203 if test "x$ac_ct_NMEDIT" = x; then
7204 NMEDIT=":"
7205 else
7206 case $cross_compiling:$ac_tool_warned in
7207yes:)
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210ac_tool_warned=yes ;;
7211esac
7212 NMEDIT=$ac_ct_NMEDIT
7213 fi
93e92f52
PG
7214else
7215 NMEDIT="$ac_cv_prog_NMEDIT"
7216fi
7217
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7220set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222$as_echo_n "checking for $ac_word... " >&6; }
7223if test "${ac_cv_prog_LIPO+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
93e92f52
PG
7225else
7226 if test -n "$LIPO"; then
7227 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
5213506e
RW
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7236 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7238 break 2
7239 fi
7240done
5213506e
RW
7241 done
7242IFS=$as_save_IFS
93e92f52
PG
7243
7244fi
7245fi
7246LIPO=$ac_cv_prog_LIPO
7247if test -n "$LIPO"; then
5213506e
RW
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7249$as_echo "$LIPO" >&6; }
93e92f52 7250else
5213506e
RW
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
93e92f52
PG
7253fi
7254
5213506e 7255
93e92f52
PG
7256fi
7257if test -z "$ac_cv_prog_LIPO"; then
7258 ac_ct_LIPO=$LIPO
7259 # Extract the first word of "lipo", so it can be a program name with args.
7260set dummy lipo; ac_word=$2
5213506e
RW
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
93e92f52
PG
7265else
7266 if test -n "$ac_ct_LIPO"; then
7267 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
5213506e
RW
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7276 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7278 break 2
7279 fi
7280done
5213506e
RW
7281 done
7282IFS=$as_save_IFS
93e92f52 7283
93e92f52
PG
7284fi
7285fi
7286ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7287if test -n "$ac_ct_LIPO"; then
5213506e
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7289$as_echo "$ac_ct_LIPO" >&6; }
93e92f52 7290else
5213506e
RW
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
93e92f52
PG
7293fi
7294
5213506e
RW
7295 if test "x$ac_ct_LIPO" = x; then
7296 LIPO=":"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299yes:)
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302ac_tool_warned=yes ;;
7303esac
7304 LIPO=$ac_ct_LIPO
7305 fi
93e92f52
PG
7306else
7307 LIPO="$ac_cv_prog_LIPO"
7308fi
7309
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7312set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if test "${ac_cv_prog_OTOOL+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
93e92f52
PG
7317else
7318 if test -n "$OTOOL"; then
7319 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
5213506e
RW
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7328 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7330 break 2
7331 fi
7332done
5213506e
RW
7333 done
7334IFS=$as_save_IFS
93e92f52
PG
7335
7336fi
7337fi
7338OTOOL=$ac_cv_prog_OTOOL
7339if test -n "$OTOOL"; then
5213506e
RW
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7341$as_echo "$OTOOL" >&6; }
93e92f52 7342else
5213506e
RW
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344$as_echo "no" >&6; }
93e92f52
PG
7345fi
7346
5213506e 7347
93e92f52
PG
7348fi
7349if test -z "$ac_cv_prog_OTOOL"; then
7350 ac_ct_OTOOL=$OTOOL
7351 # Extract the first word of "otool", so it can be a program name with args.
7352set dummy otool; ac_word=$2
5213506e
RW
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
93e92f52
PG
7357else
7358 if test -n "$ac_ct_OTOOL"; then
7359 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
5213506e
RW
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7368 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7370 break 2
7371 fi
7372done
5213506e
RW
7373 done
7374IFS=$as_save_IFS
93e92f52 7375
93e92f52
PG
7376fi
7377fi
7378ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7379if test -n "$ac_ct_OTOOL"; then
5213506e
RW
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7381$as_echo "$ac_ct_OTOOL" >&6; }
93e92f52 7382else
5213506e
RW
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
93e92f52
PG
7385fi
7386
5213506e
RW
7387 if test "x$ac_ct_OTOOL" = x; then
7388 OTOOL=":"
7389 else
7390 case $cross_compiling:$ac_tool_warned in
7391yes:)
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396 OTOOL=$ac_ct_OTOOL
7397 fi
93e92f52
PG
7398else
7399 OTOOL="$ac_cv_prog_OTOOL"
7400fi
7401
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7404set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
93e92f52
PG
7409else
7410 if test -n "$OTOOL64"; then
7411 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
5213506e
RW
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7420 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7422 break 2
7423 fi
7424done
5213506e
RW
7425 done
7426IFS=$as_save_IFS
93e92f52
PG
7427
7428fi
7429fi
7430OTOOL64=$ac_cv_prog_OTOOL64
7431if test -n "$OTOOL64"; then
5213506e
RW
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7433$as_echo "$OTOOL64" >&6; }
93e92f52 7434else
5213506e
RW
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
93e92f52
PG
7437fi
7438
5213506e 7439
93e92f52
PG
7440fi
7441if test -z "$ac_cv_prog_OTOOL64"; then
7442 ac_ct_OTOOL64=$OTOOL64
7443 # Extract the first word of "otool64", so it can be a program name with args.
7444set dummy otool64; ac_word=$2
5213506e
RW
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446$as_echo_n "checking for $ac_word... " >&6; }
7447if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
93e92f52
PG
7449else
7450 if test -n "$ac_ct_OTOOL64"; then
7451 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
5213506e
RW
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7460 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7462 break 2
7463 fi
7464done
5213506e
RW
7465 done
7466IFS=$as_save_IFS
93e92f52 7467
93e92f52
PG
7468fi
7469fi
7470ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7471if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7473$as_echo "$ac_ct_OTOOL64" >&6; }
93e92f52 7474else
5213506e
RW
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
93e92f52
PG
7477fi
7478
5213506e
RW
7479 if test "x$ac_ct_OTOOL64" = x; then
7480 OTOOL64=":"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486ac_tool_warned=yes ;;
7487esac
7488 OTOOL64=$ac_ct_OTOOL64
7489 fi
93e92f52
PG
7490else
7491 OTOOL64="$ac_cv_prog_OTOOL64"
7492fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
5213506e
RW
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7521$as_echo_n "checking for -single_module linker flag... " >&6; }
7522if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
93e92f52
PG
7524else
7525 lt_cv_apple_cc_single_mod=no
7526 if test -z "${LT_MULTI_MODULE}"; then
7527 # By default we will add the -single_module flag. You can override
7528 # by either setting the environment variable LT_MULTI_MODULE
7529 # non-empty at configure time, or by adding -multi_module to the
7530 # link flags.
7531 rm -rf libconftest.dylib*
7532 echo "int foo(void){return 1;}" > conftest.c
7533 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534-dynamiclib -Wl,-single_module conftest.c" >&5
7535 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7537 _lt_result=$?
7538 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7539 lt_cv_apple_cc_single_mod=yes
7540 else
7541 cat conftest.err >&5
7542 fi
7543 rm -rf libconftest.dylib*
7544 rm -f conftest.*
7545 fi
7546fi
5213506e
RW
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7548$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7550$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7551if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
93e92f52
PG
7553else
7554 lt_cv_ld_exported_symbols_list=no
7555 save_LDFLAGS=$LDFLAGS
7556 echo "_main" > conftest.sym
7557 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7558 if test x$gcc_no_link = xyes; then
5213506e 7559 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
93e92f52 7560fi
5213506e 7561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93e92f52
PG
7562/* end confdefs.h. */
7563
7564int
7565main ()
7566{
7567
7568 ;
7569 return 0;
7570}
7571_ACEOF
5213506e 7572if ac_fn_c_try_link "$LINENO"; then :
93e92f52
PG
7573 lt_cv_ld_exported_symbols_list=yes
7574else
5213506e 7575 lt_cv_ld_exported_symbols_list=no
93e92f52 7576fi
5213506e
RW
7577rm -f core conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
93e92f52
PG
7579 LDFLAGS="$save_LDFLAGS"
7580
7581fi
5213506e
RW
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7583$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
93e92f52
PG
7584 case $host_os in
7585 rhapsody* | darwin1.[012])
7586 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7587 darwin1.*)
7588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7589 darwin*) # darwin 5.x on
7590 # if running on 10.5 or later, the deployment target defaults
7591 # to the OS version, if on x86, and 10.4, the deployment
7592 # target defaults to 10.4. Don't you love it?
7593 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7594 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7596 10.[012]*)
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 10.*)
7599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600 esac
7601 ;;
7602 esac
7603 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7604 _lt_dar_single_mod='$single_module'
7605 fi
7606 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7607 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7608 else
7609 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610 fi
7611 if test "$DSYMUTIL" != ":"; then
7612 _lt_dsymutil='~$DSYMUTIL $lib || :'
7613 else
7614 _lt_dsymutil=
7615 fi
7616 ;;
7617 esac
7618
7619ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7625$as_echo_n "checking how to run the C preprocessor... " >&6; }
93e92f52
PG
7626# On Suns, sometimes $CPP names a directory.
7627if test -n "$CPP" && test -d "$CPP"; then
7628 CPP=
7629fi
7630if test -z "$CPP"; then
5213506e
RW
7631 if test "${ac_cv_prog_CPP+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
93e92f52
PG
7633else
7634 # Double quotes because CPP needs to be expanded
7635 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7636 do
7637 ac_preproc_ok=false
7638for ac_c_preproc_warn_flag in '' yes
7639do
7640 # Use a header file that comes with gcc, so configuring glibc
7641 # with a fresh cross-compiler works.
7642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643 # <limits.h> exists even on freestanding compilers.
7644 # On the NeXT, cc -E runs the code through the compiler's parser,
7645 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93e92f52
PG
7647/* end confdefs.h. */
7648#ifdef __STDC__
7649# include <limits.h>
7650#else
7651# include <assert.h>
7652#endif
7653 Syntax error
7654_ACEOF
5213506e 7655if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7656
5213506e 7657else
1cf3d07d
SE
7658 # Broken: fails on valid input.
7659continue
7660fi
7661rm -f conftest.err conftest.$ac_ext
7662
5213506e 7663 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7664 # can be detected and how.
5213506e 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7666/* end confdefs.h. */
7667#include <ac_nonexistent.h>
7668_ACEOF
5213506e 7669if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7670 # Broken: success on invalid input.
7671continue
7672else
1cf3d07d
SE
7673 # Passes both tests.
7674ac_preproc_ok=:
7675break
7676fi
7677rm -f conftest.err conftest.$ac_ext
7678
7679done
7680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7681rm -f conftest.err conftest.$ac_ext
5213506e 7682if $ac_preproc_ok; then :
1cf3d07d
SE
7683 break
7684fi
7685
7686 done
7687 ac_cv_prog_CPP=$CPP
7688
7689fi
7690 CPP=$ac_cv_prog_CPP
7691else
7692 ac_cv_prog_CPP=$CPP
7693fi
5213506e
RW
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7695$as_echo "$CPP" >&6; }
1cf3d07d
SE
7696ac_preproc_ok=false
7697for ac_c_preproc_warn_flag in '' yes
7698do
7699 # Use a header file that comes with gcc, so configuring glibc
7700 # with a fresh cross-compiler works.
7701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7702 # <limits.h> exists even on freestanding compilers.
7703 # On the NeXT, cc -E runs the code through the compiler's parser,
7704 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7706/* end confdefs.h. */
7707#ifdef __STDC__
7708# include <limits.h>
7709#else
7710# include <assert.h>
7711#endif
7712 Syntax error
7713_ACEOF
5213506e 7714if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7715
5213506e 7716else
1cf3d07d
SE
7717 # Broken: fails on valid input.
7718continue
7719fi
7720rm -f conftest.err conftest.$ac_ext
7721
5213506e 7722 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7723 # can be detected and how.
5213506e 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7725/* end confdefs.h. */
7726#include <ac_nonexistent.h>
7727_ACEOF
5213506e 7728if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7729 # Broken: success on invalid input.
7730continue
7731else
1cf3d07d
SE
7732 # Passes both tests.
7733ac_preproc_ok=:
7734break
7735fi
7736rm -f conftest.err conftest.$ac_ext
7737
7738done
7739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7740rm -f conftest.err conftest.$ac_ext
5213506e
RW
7741if $ac_preproc_ok; then :
7742
1cf3d07d 7743else
5213506e
RW
7744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7746as_fn_error "C preprocessor \"$CPP\" fails sanity check
7747See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7748fi
7749
7750ac_ext=c
7751ac_cpp='$CPP $CPPFLAGS'
7752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
7756
5213506e
RW
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7758$as_echo_n "checking for ANSI C header files... " >&6; }
7759if test "${ac_cv_header_stdc+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
1cf3d07d 7761else
5213506e 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7763/* end confdefs.h. */
7764#include <stdlib.h>
7765#include <stdarg.h>
7766#include <string.h>
7767#include <float.h>
7768
7769int
7770main ()
7771{
7772
7773 ;
7774 return 0;
7775}
7776_ACEOF
5213506e 7777if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7778 ac_cv_header_stdc=yes
7779else
5213506e 7780 ac_cv_header_stdc=no
1cf3d07d 7781fi
5213506e 7782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7783
7784if test $ac_cv_header_stdc = yes; then
7785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7787/* end confdefs.h. */
7788#include <string.h>
7789
7790_ACEOF
7791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7792 $EGREP "memchr" >/dev/null 2>&1; then :
7793
1cf3d07d
SE
7794else
7795 ac_cv_header_stdc=no
7796fi
7797rm -f conftest*
7798
7799fi
7800
7801if test $ac_cv_header_stdc = yes; then
7802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7804/* end confdefs.h. */
7805#include <stdlib.h>
7806
7807_ACEOF
7808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7809 $EGREP "free" >/dev/null 2>&1; then :
7810
1cf3d07d
SE
7811else
7812 ac_cv_header_stdc=no
7813fi
7814rm -f conftest*
7815
7816fi
7817
7818if test $ac_cv_header_stdc = yes; then
7819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7820 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7821 :
7822else
5213506e 7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7824/* end confdefs.h. */
7825#include <ctype.h>
5213506e 7826#include <stdlib.h>
1cf3d07d
SE
7827#if ((' ' & 0x0FF) == 0x020)
7828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7830#else
7831# define ISLOWER(c) \
7832 (('a' <= (c) && (c) <= 'i') \
7833 || ('j' <= (c) && (c) <= 'r') \
7834 || ('s' <= (c) && (c) <= 'z'))
7835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7836#endif
7837
7838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7839int
7840main ()
7841{
7842 int i;
7843 for (i = 0; i < 256; i++)
7844 if (XOR (islower (i), ISLOWER (i))
7845 || toupper (i) != TOUPPER (i))
5213506e
RW
7846 return 2;
7847 return 0;
1cf3d07d
SE
7848}
7849_ACEOF
5213506e 7850if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7851
5213506e
RW
7852else
7853 ac_cv_header_stdc=no
1cf3d07d 7854fi
5213506e
RW
7855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7856 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7857fi
5213506e 7858
1cf3d07d
SE
7859fi
7860fi
5213506e
RW
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7862$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7863if test $ac_cv_header_stdc = yes; then
7864
5213506e 7865$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7866
7867fi
7868
7869# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7870for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7871 inttypes.h stdint.h unistd.h
5213506e
RW
7872do :
7873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7874ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7875"
7876eval as_val=\$$as_ac_Header
7877 if test "x$as_val" = x""yes; then :
1cf3d07d 7878 cat >>confdefs.h <<_ACEOF
5213506e 7879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
7880_ACEOF
7881
7882fi
7883
7884done
7885
7886
1cf3d07d 7887for ac_header in dlfcn.h
5213506e
RW
7888do :
7889 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7890"
7891if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 7892 cat >>confdefs.h <<_ACEOF
5213506e 7893#define HAVE_DLFCN_H 1
1cf3d07d
SE
7894_ACEOF
7895
7896fi
7897
7898done
7899
7900
7901
5213506e 7902ac_ext=cpp
1cf3d07d
SE
7903ac_cpp='$CXXCPP $CPPFLAGS'
7904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
7907if test -z "$CXX"; then
7908 if test -n "$CCC"; then
7909 CXX=$CCC
7910 else
7911 if test -n "$ac_tool_prefix"; then
7912 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1cf3d07d
SE
7913 do
7914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if test "${ac_cv_prog_CXX+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7920else
7921 if test -n "$CXX"; then
7922 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
5213506e
RW
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7931 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7933 break 2
7934 fi
7935done
5213506e
RW
7936 done
7937IFS=$as_save_IFS
1cf3d07d
SE
7938
7939fi
7940fi
7941CXX=$ac_cv_prog_CXX
7942if test -n "$CXX"; then
5213506e
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7944$as_echo "$CXX" >&6; }
1cf3d07d 7945else
5213506e
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
1cf3d07d
SE
7948fi
7949
5213506e 7950
1cf3d07d
SE
7951 test -n "$CXX" && break
7952 done
7953fi
7954if test -z "$CXX"; then
7955 ac_ct_CXX=$CXX
5213506e 7956 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1cf3d07d
SE
7957do
7958 # Extract the first word of "$ac_prog", so it can be a program name with args.
7959set dummy $ac_prog; ac_word=$2
5213506e
RW
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961$as_echo_n "checking for $ac_word... " >&6; }
7962if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7964else
7965 if test -n "$ac_ct_CXX"; then
7966 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7967else
7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
5213506e
RW
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7975 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7977 break 2
7978 fi
7979done
5213506e
RW
7980 done
7981IFS=$as_save_IFS
1cf3d07d
SE
7982
7983fi
7984fi
7985ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7986if test -n "$ac_ct_CXX"; then
5213506e
RW
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7988$as_echo "$ac_ct_CXX" >&6; }
1cf3d07d 7989else
5213506e
RW
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
1cf3d07d
SE
7992fi
7993
5213506e 7994
1cf3d07d
SE
7995 test -n "$ac_ct_CXX" && break
7996done
1cf3d07d 7997
5213506e
RW
7998 if test "x$ac_ct_CXX" = x; then
7999 CXX="g++"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002yes:)
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005ac_tool_warned=yes ;;
8006esac
8007 CXX=$ac_ct_CXX
8008 fi
1cf3d07d
SE
8009fi
8010
5213506e
RW
8011 fi
8012fi
1cf3d07d 8013# Provide some information about the compiler.
5213506e
RW
8014$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8015set X $ac_compile
8016ac_compiler=$2
8017for ac_option in --version -v -V -qversion; do
8018 { { ac_try="$ac_compiler $ac_option >&5"
8019case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022esac
8023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8024$as_echo "$ac_try_echo"; } >&5
8025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 8026 ac_status=$?
5213506e
RW
8027 if test -s conftest.err; then
8028 sed '10a\
8029... rest of stderr output deleted ...
8030 10q' conftest.err >conftest.er1
8031 cat conftest.er1 >&5
8032 rm -f conftest.er1 conftest.err
8033 fi
8034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035 test $ac_status = 0; }
8036done
1cf3d07d 8037
5213506e
RW
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8039$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8040if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
1cf3d07d 8042else
5213506e 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8044/* end confdefs.h. */
8045
8046int
8047main ()
8048{
8049#ifndef __GNUC__
8050 choke me
8051#endif
8052
8053 ;
8054 return 0;
8055}
8056_ACEOF
5213506e 8057if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
8058 ac_compiler_gnu=yes
8059else
5213506e 8060 ac_compiler_gnu=no
1cf3d07d 8061fi
5213506e 8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
8063ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8064
8065fi
5213506e
RW
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8067$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8068if test $ac_compiler_gnu = yes; then
8069 GXX=yes
8070else
8071 GXX=
8072fi
1cf3d07d
SE
8073ac_test_CXXFLAGS=${CXXFLAGS+set}
8074ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8076$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8077if test "${ac_cv_prog_cxx_g+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079else
8080 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8081 ac_cxx_werror_flag=yes
8082 ac_cv_prog_cxx_g=no
8083 CXXFLAGS="-g"
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8085/* end confdefs.h. */
8086
8087int
8088main ()
8089{
8090
8091 ;
8092 return 0;
8093}
8094_ACEOF
5213506e 8095if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
8096 ac_cv_prog_cxx_g=yes
8097else
5213506e
RW
8098 CXXFLAGS=""
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100/* end confdefs.h. */
1cf3d07d 8101
1cf3d07d
SE
8102int
8103main ()
8104{
5213506e 8105
1cf3d07d
SE
8106 ;
8107 return 0;
8108}
8109_ACEOF
5213506e 8110if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d 8111
5213506e
RW
8112else
8113 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8114 CXXFLAGS="-g"
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8116/* end confdefs.h. */
5213506e 8117
1cf3d07d
SE
8118int
8119main ()
8120{
5213506e 8121
1cf3d07d
SE
8122 ;
8123 return 0;
8124}
8125_ACEOF
5213506e
RW
8126if ac_fn_cxx_try_compile "$LINENO"; then :
8127 ac_cv_prog_cxx_g=yes
1cf3d07d 8128fi
5213506e
RW
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130fi
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132fi
8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8137$as_echo "$ac_cv_prog_cxx_g" >&6; }
8138if test "$ac_test_CXXFLAGS" = set; then
8139 CXXFLAGS=$ac_save_CXXFLAGS
8140elif test $ac_cv_prog_cxx_g = yes; then
8141 if test "$GXX" = yes; then
8142 CXXFLAGS="-g -O2"
8143 else
8144 CXXFLAGS="-g"
8145 fi
8146else
8147 if test "$GXX" = yes; then
8148 CXXFLAGS="-O2"
8149 else
8150 CXXFLAGS=
8151 fi
1cf3d07d 8152fi
1cf3d07d
SE
8153ac_ext=c
8154ac_cpp='$CPP $CPPFLAGS'
8155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
8159depcc="$CXX" am_compiler_list=
8160
5213506e
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8162$as_echo_n "checking dependency style of $depcc... " >&6; }
8163if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8165else
8166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8167 # We make a subdir and do the tests there. Otherwise we can end up
8168 # making bogus files that we don't know about and never remove. For
8169 # instance it was reported that on HP-UX the gcc test will end up
8170 # making a dummy file named `D' -- because `-MD' means `put the output
8171 # in D'.
8172 mkdir conftest.dir
8173 # Copy depcomp to subdir because otherwise we won't find it if we're
8174 # using a relative directory.
8175 cp "$am_depcomp" conftest.dir
8176 cd conftest.dir
8177 # We will build objects and dependencies in a subdirectory because
8178 # it helps to detect inapplicable dependency modes. For instance
8179 # both Tru64's cc and ICC support -MD to output dependencies as a
8180 # side effect of compilation, but ICC will put the dependencies in
8181 # the current directory while Tru64 will put them in the object
8182 # directory.
8183 mkdir sub
8184
8185 am_cv_CXX_dependencies_compiler_type=none
8186 if test "$am_compiler_list" = ""; then
8187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8188 fi
5213506e
RW
8189 am__universal=false
8190 case " $depcc " in #(
8191 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8192 esac
8193
1cf3d07d
SE
8194 for depmode in $am_compiler_list; do
8195 # Setup a source with many dependencies, because some compilers
8196 # like to wrap large dependency lists on column 80 (with \), and
8197 # we should not choose a depcomp mode which is confused by this.
8198 #
8199 # We need to recreate these files for each test, as the compiler may
8200 # overwrite some of them when testing with obscure command lines.
8201 # This happens at least with the AIX C compiler.
8202 : > sub/conftest.c
8203 for i in 1 2 3 4 5 6; do
8204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8206 # Solaris 8's {/usr,}/bin/sh.
8207 touch sub/conftst$i.h
8208 done
8209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8210
5213506e
RW
8211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8212 # mode. It turns out that the SunPro C++ compiler does not properly
8213 # handle `-M -o', and we need to detect this. Also, some Intel
8214 # versions had trouble with output in subdirs
8215 am__obj=sub/conftest.${OBJEXT-o}
8216 am__minus_obj="-o $am__obj"
1cf3d07d 8217 case $depmode in
5213506e
RW
8218 gcc)
8219 # This depmode causes a compiler race in universal mode.
8220 test "$am__universal" = false || continue
8221 ;;
1cf3d07d
SE
8222 nosideeffect)
8223 # after this tag, mechanisms are not by side-effect, so they'll
8224 # only be used when explicitly requested
8225 if test "x$enable_dependency_tracking" = xyes; then
8226 continue
8227 else
8228 break
8229 fi
8230 ;;
5213506e
RW
8231 msvisualcpp | msvcmsys)
8232 # This compiler won't grok `-c -o', but also, the minuso test has
8233 # not run yet. These depmodes are late enough in the game, and
8234 # so weak that their functioning should not be impacted.
8235 am__obj=conftest.${OBJEXT-o}
8236 am__minus_obj=
8237 ;;
1cf3d07d
SE
8238 none) break ;;
8239 esac
1cf3d07d 8240 if depmode=$depmode \
5213506e 8241 source=sub/conftest.c object=$am__obj \
1cf3d07d 8242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 8243 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 8244 >/dev/null 2>conftest.err &&
5213506e 8245 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 8246 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 8247 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
8248 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8249 # icc doesn't choke on unknown options, it will just issue warnings
8250 # or remarks (even with -Werror). So we grep stderr for any message
8251 # that says an option was ignored or not supported.
8252 # When given -MP, icc 7.0 and 7.1 complain thusly:
8253 # icc: Command line warning: ignoring option '-M'; no argument required
8254 # The diagnosis changed in icc 8.0:
8255 # icc: Command line remark: option '-MP' not supported
8256 if (grep 'ignoring option' conftest.err ||
8257 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8258 am_cv_CXX_dependencies_compiler_type=$depmode
8259 break
8260 fi
8261 fi
8262 done
8263
8264 cd ..
8265 rm -rf conftest.dir
8266else
8267 am_cv_CXX_dependencies_compiler_type=none
8268fi
8269
8270fi
5213506e
RW
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8272$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1cf3d07d
SE
8273CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8274
5213506e 8275 if
1cf3d07d
SE
8276 test "x$enable_dependency_tracking" != xno \
8277 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8278 am__fastdepCXX_TRUE=
8279 am__fastdepCXX_FALSE='#'
8280else
8281 am__fastdepCXX_TRUE='#'
8282 am__fastdepCXX_FALSE=
8283fi
8284
8285
8286if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8287 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8288 (test "X$CXX" != "Xg++"))) ; then
5213506e 8289 ac_ext=cpp
1cf3d07d
SE
8290ac_cpp='$CXXCPP $CPPFLAGS'
8291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8295$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1cf3d07d 8296if test -z "$CXXCPP"; then
5213506e
RW
8297 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8299else
8300 # Double quotes because CXXCPP needs to be expanded
8301 for CXXCPP in "$CXX -E" "/lib/cpp"
8302 do
8303 ac_preproc_ok=false
8304for ac_cxx_preproc_warn_flag in '' yes
8305do
8306 # Use a header file that comes with gcc, so configuring glibc
8307 # with a fresh cross-compiler works.
8308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8309 # <limits.h> exists even on freestanding compilers.
8310 # On the NeXT, cc -E runs the code through the compiler's parser,
8311 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8313/* end confdefs.h. */
8314#ifdef __STDC__
8315# include <limits.h>
8316#else
8317# include <assert.h>
8318#endif
8319 Syntax error
8320_ACEOF
5213506e 8321if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d 8322
5213506e 8323else
1cf3d07d
SE
8324 # Broken: fails on valid input.
8325continue
8326fi
8327rm -f conftest.err conftest.$ac_ext
8328
5213506e 8329 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 8330 # can be detected and how.
5213506e 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8332/* end confdefs.h. */
8333#include <ac_nonexistent.h>
8334_ACEOF
5213506e 8335if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d
SE
8336 # Broken: success on invalid input.
8337continue
8338else
1cf3d07d
SE
8339 # Passes both tests.
8340ac_preproc_ok=:
8341break
8342fi
8343rm -f conftest.err conftest.$ac_ext
8344
8345done
8346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8347rm -f conftest.err conftest.$ac_ext
5213506e 8348if $ac_preproc_ok; then :
1cf3d07d
SE
8349 break
8350fi
8351
8352 done
8353 ac_cv_prog_CXXCPP=$CXXCPP
8354
8355fi
8356 CXXCPP=$ac_cv_prog_CXXCPP
8357else
8358 ac_cv_prog_CXXCPP=$CXXCPP
8359fi
5213506e
RW
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8361$as_echo "$CXXCPP" >&6; }
1cf3d07d
SE
8362ac_preproc_ok=false
8363for ac_cxx_preproc_warn_flag in '' yes
8364do
8365 # Use a header file that comes with gcc, so configuring glibc
8366 # with a fresh cross-compiler works.
8367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8368 # <limits.h> exists even on freestanding compilers.
8369 # On the NeXT, cc -E runs the code through the compiler's parser,
8370 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8372/* end confdefs.h. */
8373#ifdef __STDC__
8374# include <limits.h>
8375#else
8376# include <assert.h>
8377#endif
8378 Syntax error
8379_ACEOF
5213506e 8380if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d 8381
5213506e 8382else
1cf3d07d
SE
8383 # Broken: fails on valid input.
8384continue
8385fi
8386rm -f conftest.err conftest.$ac_ext
8387
5213506e 8388 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 8389 # can be detected and how.
5213506e 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8391/* end confdefs.h. */
8392#include <ac_nonexistent.h>
8393_ACEOF
5213506e 8394if ac_fn_cxx_try_cpp "$LINENO"; then :
1cf3d07d
SE
8395 # Broken: success on invalid input.
8396continue
8397else
1cf3d07d
SE
8398 # Passes both tests.
8399ac_preproc_ok=:
8400break
8401fi
8402rm -f conftest.err conftest.$ac_ext
8403
8404done
8405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8406rm -f conftest.err conftest.$ac_ext
5213506e
RW
8407if $ac_preproc_ok; then :
8408
1cf3d07d 8409else
5213506e
RW
8410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18c04407 8412_lt_caught_CXX_error=yes; }
1cf3d07d
SE
8413fi
8414
93e92f52
PG
8415ac_ext=c
8416ac_cpp='$CPP $CPPFLAGS'
8417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419ac_compiler_gnu=$ac_cv_c_compiler_gnu
8420
8421else
8422 _lt_caught_CXX_error=yes
8423fi
8424
8425
8426
8427
8428
8429# Set options
8430
8431
8432
8433 enable_dlopen=no
8434
8435
8436 enable_win32_dll=no
8437
8438
5213506e
RW
8439 # Check whether --enable-shared was given.
8440if test "${enable_shared+set}" = set; then :
8441 enableval=$enable_shared; p=${PACKAGE-default}
93e92f52
PG
8442 case $enableval in
8443 yes) enable_shared=yes ;;
8444 no) enable_shared=no ;;
8445 *)
8446 enable_shared=no
8447 # Look at the argument we got. We use all the common list separators.
8448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8449 for pkg in $enableval; do
8450 IFS="$lt_save_ifs"
8451 if test "X$pkg" = "X$p"; then
8452 enable_shared=yes
8453 fi
8454 done
8455 IFS="$lt_save_ifs"
8456 ;;
8457 esac
8458else
8459 enable_shared=yes
5213506e
RW
8460fi
8461
93e92f52
PG
8462
8463
8464
8465
8466
8467
8468
8469
5213506e
RW
8470 # Check whether --enable-static was given.
8471if test "${enable_static+set}" = set; then :
8472 enableval=$enable_static; p=${PACKAGE-default}
93e92f52
PG
8473 case $enableval in
8474 yes) enable_static=yes ;;
8475 no) enable_static=no ;;
8476 *)
8477 enable_static=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480 for pkg in $enableval; do
8481 IFS="$lt_save_ifs"
8482 if test "X$pkg" = "X$p"; then
8483 enable_static=yes
8484 fi
8485 done
8486 IFS="$lt_save_ifs"
8487 ;;
8488 esac
8489else
8490 enable_static=yes
5213506e
RW
8491fi
8492
93e92f52
PG
8493
8494
8495
8496
8497
8498
8499
8500
8501
5213506e
RW
8502# Check whether --with-pic was given.
8503if test "${with_pic+set}" = set; then :
8504 withval=$with_pic; pic_mode="$withval"
93e92f52
PG
8505else
8506 pic_mode=default
5213506e
RW
8507fi
8508
93e92f52
PG
8509
8510test -z "$pic_mode" && pic_mode=default
8511
8512
8513
8514
8515
8516
8517
5213506e
RW
8518 # Check whether --enable-fast-install was given.
8519if test "${enable_fast_install+set}" = set; then :
8520 enableval=$enable_fast_install; p=${PACKAGE-default}
93e92f52
PG
8521 case $enableval in
8522 yes) enable_fast_install=yes ;;
8523 no) enable_fast_install=no ;;
8524 *)
8525 enable_fast_install=no
8526 # Look at the argument we got. We use all the common list separators.
8527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8528 for pkg in $enableval; do
8529 IFS="$lt_save_ifs"
8530 if test "X$pkg" = "X$p"; then
8531 enable_fast_install=yes
8532 fi
8533 done
8534 IFS="$lt_save_ifs"
8535 ;;
8536 esac
8537else
8538 enable_fast_install=yes
5213506e
RW
8539fi
8540
93e92f52
PG
8541
8542
8543
8544
1cf3d07d 8545
1cf3d07d
SE
8546
8547
8548
8549
8550
8551# This can be used to rebuild libtool when needed
8552LIBTOOL_DEPS="$ltmain"
8553
8554# Always use our own libtool.
8555LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581test -z "$LN_S" && LN_S="ln -s"
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596if test -n "${ZSH_VERSION+set}" ; then
8597 setopt NO_GLOB_SUBST
8598fi
8599
5213506e
RW
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8601$as_echo_n "checking for objdir... " >&6; }
8602if test "${lt_cv_objdir+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8604else
8605 rm -f .libs 2>/dev/null
8606mkdir .libs 2>/dev/null
8607if test -d .libs; then
8608 lt_cv_objdir=.libs
8609else
8610 # MS-DOS does not allow filenames that begin with a dot.
8611 lt_cv_objdir=_libs
8612fi
8613rmdir .libs 2>/dev/null
8614fi
5213506e
RW
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8616$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
8617objdir=$lt_cv_objdir
8618
8619
8620
8621
8622
8623cat >>confdefs.h <<_ACEOF
8624#define LT_OBJDIR "$lt_cv_objdir/"
8625_ACEOF
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643case $host_os in
8644aix3*)
8645 # AIX sometimes has problems with the GCC collect2 program. For some
8646 # reason, if we set the COLLECT_NAMES environment variable, the problems
8647 # vanish in a puff of smoke.
8648 if test "X${COLLECT_NAMES+set}" != Xset; then
8649 COLLECT_NAMES=
8650 export COLLECT_NAMES
8651 fi
8652 ;;
8653esac
8654
8655# Sed substitution that helps us do robust quoting. It backslashifies
8656# metacharacters that are still active within double-quoted strings.
8657sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8658
8659# Same as above, but do not quote variable references.
8660double_quote_subst='s/\(["`\\]\)/\\\1/g'
8661
8662# Sed substitution to delay expansion of an escaped shell variable in a
8663# double_quote_subst'ed string.
8664delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8665
8666# Sed substitution to delay expansion of an escaped single quote.
8667delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8668
8669# Sed substitution to avoid accidental globbing in evaled expressions
8670no_glob_subst='s/\*/\\\*/g'
8671
8672# Global variables:
8673ofile=libtool
8674can_build_shared=yes
8675
8676# All known linkers require a `.a' archive for static linking (except MSVC,
8677# which needs '.lib').
8678libext=a
8679
8680with_gnu_ld="$lt_cv_prog_gnu_ld"
8681
8682old_CC="$CC"
8683old_CFLAGS="$CFLAGS"
8684
8685# Set sane defaults for various variables
8686test -z "$CC" && CC=cc
8687test -z "$LTCC" && LTCC=$CC
8688test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8689test -z "$LD" && LD=ld
8690test -z "$ac_objext" && ac_objext=o
8691
8692for cc_temp in $compiler""; do
8693 case $cc_temp in
8694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8696 \-*) ;;
8697 *) break;;
8698 esac
8699done
8700cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8701
8702
8703# Only perform the check for file, if the check method requires it
8704test -z "$MAGIC_CMD" && MAGIC_CMD=file
8705case $deplibs_check_method in
8706file_magic*)
8707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8709$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8710if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8712else
8713 case $MAGIC_CMD in
8714[\\/*] | ?:[\\/]*)
8715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8716 ;;
8717*)
8718 lt_save_MAGIC_CMD="$MAGIC_CMD"
8719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8721 for ac_dir in $ac_dummy; do
8722 IFS="$lt_save_ifs"
8723 test -z "$ac_dir" && ac_dir=.
8724 if test -f $ac_dir/${ac_tool_prefix}file; then
8725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8726 if test -n "$file_magic_test_file"; then
8727 case $deplibs_check_method in
8728 "file_magic "*)
8729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8732 $EGREP "$file_magic_regex" > /dev/null; then
8733 :
8734 else
8735 cat <<_LT_EOF 1>&2
8736
8737*** Warning: the command libtool uses to detect shared libraries,
8738*** $file_magic_cmd, produces output that libtool cannot recognize.
8739*** The result is that libtool may fail to recognize shared libraries
8740*** as such. This will affect the creation of libtool libraries that
8741*** depend on shared libraries, but programs linked with such libtool
8742*** libraries will work regardless of this problem. Nevertheless, you
8743*** may want to report the problem to your system manager and/or to
8744*** bug-libtool@gnu.org
8745
8746_LT_EOF
8747 fi ;;
8748 esac
8749 fi
8750 break
8751 fi
8752 done
8753 IFS="$lt_save_ifs"
8754 MAGIC_CMD="$lt_save_MAGIC_CMD"
8755 ;;
8756esac
8757fi
8758
8759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8760if test -n "$MAGIC_CMD"; then
5213506e
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8762$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8763else
5213506e
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
1cf3d07d
SE
8766fi
8767
8768
8769
8770
8771
8772if test -z "$lt_cv_path_MAGIC_CMD"; then
8773 if test -n "$ac_tool_prefix"; then
5213506e
RW
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8775$as_echo_n "checking for file... " >&6; }
8776if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8778else
8779 case $MAGIC_CMD in
8780[\\/*] | ?:[\\/]*)
8781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8782 ;;
8783*)
8784 lt_save_MAGIC_CMD="$MAGIC_CMD"
8785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8786 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8787 for ac_dir in $ac_dummy; do
8788 IFS="$lt_save_ifs"
8789 test -z "$ac_dir" && ac_dir=.
8790 if test -f $ac_dir/file; then
8791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8792 if test -n "$file_magic_test_file"; then
8793 case $deplibs_check_method in
8794 "file_magic "*)
8795 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8798 $EGREP "$file_magic_regex" > /dev/null; then
8799 :
8800 else
8801 cat <<_LT_EOF 1>&2
8802
8803*** Warning: the command libtool uses to detect shared libraries,
8804*** $file_magic_cmd, produces output that libtool cannot recognize.
8805*** The result is that libtool may fail to recognize shared libraries
8806*** as such. This will affect the creation of libtool libraries that
8807*** depend on shared libraries, but programs linked with such libtool
8808*** libraries will work regardless of this problem. Nevertheless, you
8809*** may want to report the problem to your system manager and/or to
8810*** bug-libtool@gnu.org
8811
8812_LT_EOF
8813 fi ;;
8814 esac
8815 fi
8816 break
8817 fi
8818 done
8819 IFS="$lt_save_ifs"
8820 MAGIC_CMD="$lt_save_MAGIC_CMD"
8821 ;;
8822esac
8823fi
8824
8825MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8826if test -n "$MAGIC_CMD"; then
5213506e
RW
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8828$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8829else
5213506e
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
1cf3d07d
SE
8832fi
8833
8834
8835 else
8836 MAGIC_CMD=:
8837 fi
8838fi
8839
8840 fi
8841 ;;
8842esac
8843
8844# Use C for the default configuration in the libtool script
8845
8846lt_save_CC="$CC"
8847ac_ext=c
8848ac_cpp='$CPP $CPPFLAGS'
8849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8851ac_compiler_gnu=$ac_cv_c_compiler_gnu
8852
8853
8854# Source file extension for C test sources.
8855ac_ext=c
8856
8857# Object file extension for compiled C test sources.
8858objext=o
8859objext=$objext
8860
8861# Code to be used in simple compile tests
8862lt_simple_compile_test_code="int some_variable = 0;"
8863
8864# Code to be used in simple link tests
8865lt_simple_link_test_code='int main(){return(0);}'
8866
8867
8868
8869
8870
8871
8872
8873# If no C compiler was specified, use CC.
8874LTCC=${LTCC-"$CC"}
8875
8876# If no C compiler flags were specified, use CFLAGS.
8877LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8878
8879# Allow CC to be a program name with arguments.
8880compiler=$CC
8881
8882# Save the default compiler, since it gets overwritten when the other
8883# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8884compiler_DEFAULT=$CC
8885
8886# save warnings/boilerplate of simple test code
8887ac_outfile=conftest.$ac_objext
8888echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8890_lt_compiler_boilerplate=`cat conftest.err`
8891$RM conftest*
8892
8893ac_outfile=conftest.$ac_objext
8894echo "$lt_simple_link_test_code" >conftest.$ac_ext
8895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896_lt_linker_boilerplate=`cat conftest.err`
93e92f52 8897$RM -r conftest*
1cf3d07d
SE
8898
8899
8900## CAVEAT EMPTOR:
8901## There is no encapsulation within the following macros, do not change
8902## the running order or otherwise move them around unless you know exactly
8903## what you are doing...
8904if test -n "$compiler"; then
8905
8906lt_prog_compiler_no_builtin_flag=
8907
8908if test "$GCC" = yes; then
8909 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8910
5213506e
RW
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8912$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8913if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8915else
8916 lt_cv_prog_compiler_rtti_exceptions=no
8917 ac_outfile=conftest.$ac_objext
8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="-fno-rtti -fno-exceptions"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 # The option is referenced via a variable to avoid confusing sed.
8925 lt_compile=`echo "$ac_compile" | $SED \
8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928 -e 's:$: $lt_compiler_flag:'`
5213506e 8929 (eval echo "\"\$as_me:8929: $lt_compile\"" >&5)
1cf3d07d
SE
8930 (eval "$lt_compile" 2>conftest.err)
8931 ac_status=$?
8932 cat conftest.err >&5
5213506e 8933 echo "$as_me:8933: \$? = $ac_status" >&5
1cf3d07d
SE
8934 if (exit $ac_status) && test -s "$ac_outfile"; then
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings other than the usual output.
8937 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_rtti_exceptions=yes
8941 fi
8942 fi
8943 $RM conftest*
8944
8945fi
5213506e
RW
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8947$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
8948
8949if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8951else
8952 :
8953fi
8954
8955fi
8956
8957
8958
8959
8960
8961
8962 lt_prog_compiler_wl=
8963lt_prog_compiler_pic=
8964lt_prog_compiler_static=
8965
5213506e
RW
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8967$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
8968
8969 if test "$GCC" = yes; then
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_static='-static'
8972
8973 case $host_os in
8974 aix*)
8975 # All AIX code is PIC.
8976 if test "$host_cpu" = ia64; then
8977 # AIX 5 now supports IA64 processor
8978 lt_prog_compiler_static='-Bstatic'
8979 fi
8980 ;;
8981
8982 amigaos*)
93e92f52
PG
8983 case $host_cpu in
8984 powerpc)
8985 # see comment about AmigaOS4 .so support
8986 lt_prog_compiler_pic='-fPIC'
8987 ;;
8988 m68k)
8989 # FIXME: we need at least 68020 code to build shared libraries, but
8990 # adding the `-m68020' flag to GCC prevents building anything better,
8991 # like `-m68040'.
8992 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8993 ;;
8994 esac
1cf3d07d
SE
8995 ;;
8996
8997 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8998 # PIC is the default for these OSes.
8999 ;;
9000
93e92f52 9001 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9002 # This hack is so that the source file can tell whether it is being
9003 # built for inclusion in a dll (and should export symbols for example).
9004 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9005 # (--disable-auto-import) libraries
9006 lt_prog_compiler_pic='-DDLL_EXPORT'
9007 ;;
9008
9009 darwin* | rhapsody*)
9010 # PIC is the default on this platform
9011 # Common symbols not allowed in MH_DYLIB files
9012 lt_prog_compiler_pic='-fno-common'
9013 ;;
9014
9015 hpux*)
93e92f52
PG
9016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9018 # sets the default TLS model and affects inlining.
1cf3d07d 9019 case $host_cpu in
93e92f52 9020 hppa*64*)
1cf3d07d
SE
9021 # +Z the default
9022 ;;
9023 *)
9024 lt_prog_compiler_pic='-fPIC'
9025 ;;
9026 esac
9027 ;;
9028
9029 interix[3-9]*)
9030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9031 # Instead, we relocate shared libraries at runtime.
9032 ;;
9033
9034 msdosdjgpp*)
9035 # Just because we use GCC doesn't mean we suddenly get shared libraries
9036 # on systems that don't support them.
9037 lt_prog_compiler_can_build_shared=no
9038 enable_shared=no
9039 ;;
9040
9041 *nto* | *qnx*)
9042 # QNX uses GNU C++, but need to define -shared option too, otherwise
9043 # it will coredump.
9044 lt_prog_compiler_pic='-fPIC -shared'
9045 ;;
9046
9047 sysv4*MP*)
9048 if test -d /usr/nec; then
9049 lt_prog_compiler_pic=-Kconform_pic
9050 fi
9051 ;;
9052
9053 *)
9054 lt_prog_compiler_pic='-fPIC'
9055 ;;
9056 esac
9057 else
9058 # PORTME Check for flag to pass linker flags through the system compiler.
9059 case $host_os in
9060 aix*)
9061 lt_prog_compiler_wl='-Wl,'
9062 if test "$host_cpu" = ia64; then
9063 # AIX 5 now supports IA64 processor
9064 lt_prog_compiler_static='-Bstatic'
9065 else
9066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9067 fi
9068 ;;
1cf3d07d 9069
93e92f52 9070 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9071 # This hack is so that the source file can tell whether it is being
9072 # built for inclusion in a dll (and should export symbols for example).
9073 lt_prog_compiler_pic='-DDLL_EXPORT'
9074 ;;
9075
9076 hpux9* | hpux10* | hpux11*)
9077 lt_prog_compiler_wl='-Wl,'
9078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9079 # not for PA HP-UX.
9080 case $host_cpu in
9081 hppa*64*|ia64*)
9082 # +Z the default
9083 ;;
9084 *)
9085 lt_prog_compiler_pic='+Z'
9086 ;;
9087 esac
9088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9089 lt_prog_compiler_static='${wl}-a ${wl}archive'
9090 ;;
9091
9092 irix5* | irix6* | nonstopux*)
9093 lt_prog_compiler_wl='-Wl,'
9094 # PIC (with -KPIC) is the default.
9095 lt_prog_compiler_static='-non_shared'
9096 ;;
9097
7a9d3fe8 9098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9099 case $cc_basename in
93e92f52
PG
9100 # old Intel for x86_64 which still supported -KPIC.
9101 ecc*)
1cf3d07d
SE
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_pic='-KPIC'
9104 lt_prog_compiler_static='-static'
9105 ;;
93e92f52
PG
9106 # icc used to be incompatible with GCC.
9107 # ICC 10 doesn't accept -KPIC any more.
9108 icc* | ifort*)
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_pic='-fPIC'
9111 lt_prog_compiler_static='-static'
9112 ;;
9113 # Lahey Fortran 8.1.
9114 lf95*)
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_pic='--shared'
9117 lt_prog_compiler_static='--static'
9118 ;;
1cf3d07d
SE
9119 pgcc* | pgf77* | pgf90* | pgf95*)
9120 # Portland Group compilers (*not* the Pentium gcc compiler,
9121 # which looks to be a dead project)
9122 lt_prog_compiler_wl='-Wl,'
9123 lt_prog_compiler_pic='-fpic'
9124 lt_prog_compiler_static='-Bstatic'
9125 ;;
9126 ccc*)
9127 lt_prog_compiler_wl='-Wl,'
9128 # All Alpha code is PIC.
9129 lt_prog_compiler_static='-non_shared'
9130 ;;
93e92f52
PG
9131 xl*)
9132 # IBM XL C 8.0/Fortran 10.1 on PPC
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-qpic'
9135 lt_prog_compiler_static='-qstaticlink'
9136 ;;
1cf3d07d
SE
9137 *)
9138 case `$CC -V 2>&1 | sed 5q` in
9139 *Sun\ C*)
9140 # Sun C 5.9
9141 lt_prog_compiler_pic='-KPIC'
9142 lt_prog_compiler_static='-Bstatic'
9143 lt_prog_compiler_wl='-Wl,'
9144 ;;
9145 *Sun\ F*)
9146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9147 lt_prog_compiler_pic='-KPIC'
9148 lt_prog_compiler_static='-Bstatic'
9149 lt_prog_compiler_wl=''
9150 ;;
9151 esac
9152 ;;
9153 esac
9154 ;;
9155
9156 newsos6)
9157 lt_prog_compiler_pic='-KPIC'
9158 lt_prog_compiler_static='-Bstatic'
9159 ;;
9160
9161 *nto* | *qnx*)
9162 # QNX uses GNU C++, but need to define -shared option too, otherwise
9163 # it will coredump.
9164 lt_prog_compiler_pic='-fPIC -shared'
9165 ;;
9166
9167 osf3* | osf4* | osf5*)
9168 lt_prog_compiler_wl='-Wl,'
9169 # All OSF/1 code is PIC.
9170 lt_prog_compiler_static='-non_shared'
9171 ;;
9172
9173 rdos*)
9174 lt_prog_compiler_static='-non_shared'
9175 ;;
9176
9177 solaris*)
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 case $cc_basename in
9181 f77* | f90* | f95*)
9182 lt_prog_compiler_wl='-Qoption ld ';;
9183 *)
9184 lt_prog_compiler_wl='-Wl,';;
9185 esac
9186 ;;
9187
9188 sunos4*)
9189 lt_prog_compiler_wl='-Qoption ld '
9190 lt_prog_compiler_pic='-PIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 ;;
9193
9194 sysv4 | sysv4.2uw2* | sysv4.3*)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-KPIC'
9197 lt_prog_compiler_static='-Bstatic'
9198 ;;
9199
9200 sysv4*MP*)
9201 if test -d /usr/nec ;then
9202 lt_prog_compiler_pic='-Kconform_pic'
9203 lt_prog_compiler_static='-Bstatic'
9204 fi
9205 ;;
9206
9207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9208 lt_prog_compiler_wl='-Wl,'
9209 lt_prog_compiler_pic='-KPIC'
9210 lt_prog_compiler_static='-Bstatic'
9211 ;;
9212
9213 unicos*)
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_can_build_shared=no
9216 ;;
9217
9218 uts4*)
9219 lt_prog_compiler_pic='-pic'
9220 lt_prog_compiler_static='-Bstatic'
9221 ;;
9222
9223 *)
9224 lt_prog_compiler_can_build_shared=no
9225 ;;
9226 esac
9227 fi
9228
9229case $host_os in
9230 # For platforms which do not support PIC, -DPIC is meaningless:
9231 *djgpp*)
9232 lt_prog_compiler_pic=
9233 ;;
9234 *)
9235 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9236 ;;
9237esac
5213506e
RW
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9239$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9240
9241
9242
9243
9244
9245
9246#
9247# Check to make sure the PIC flag actually works.
9248#
9249if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9251$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9252if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
1cf3d07d 9254else
93e92f52 9255 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9256 ac_outfile=conftest.$ac_objext
9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9259 # Insert the option either (1) after the last *FLAGS variable, or
9260 # (2) before a word containing "conftest.", or (3) at the end.
9261 # Note that $ac_compile itself does not contain backslashes and begins
9262 # with a dollar sign (not a hyphen), so the echo should work correctly.
9263 # The option is referenced via a variable to avoid confusing sed.
9264 lt_compile=`echo "$ac_compile" | $SED \
9265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267 -e 's:$: $lt_compiler_flag:'`
5213506e 9268 (eval echo "\"\$as_me:9268: $lt_compile\"" >&5)
1cf3d07d
SE
9269 (eval "$lt_compile" 2>conftest.err)
9270 ac_status=$?
9271 cat conftest.err >&5
5213506e 9272 echo "$as_me:9272: \$? = $ac_status" >&5
1cf3d07d
SE
9273 if (exit $ac_status) && test -s "$ac_outfile"; then
9274 # The compiler can only warn and ignore the option if not recognized
9275 # So say no if there are warnings other than the usual output.
9276 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 9279 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9280 fi
9281 fi
9282 $RM conftest*
9283
9284fi
5213506e
RW
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9286$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9287
93e92f52 9288if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9289 case $lt_prog_compiler_pic in
9290 "" | " "*) ;;
9291 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9292 esac
9293else
9294 lt_prog_compiler_pic=
9295 lt_prog_compiler_can_build_shared=no
9296fi
9297
9298fi
9299
9300
9301
9302
9303
9304
9305#
9306# Check to make sure the static flag actually works.
9307#
9308wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9310$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9311if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
1cf3d07d 9313else
93e92f52 9314 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9315 save_LDFLAGS="$LDFLAGS"
9316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9319 # The linker can only warn and ignore the option if not recognized
9320 # So say no if there are warnings
9321 if test -s conftest.err; then
9322 # Append any errors to the config.log.
9323 cat conftest.err 1>&5
9324 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326 if diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 9327 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9328 fi
9329 else
93e92f52 9330 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9331 fi
9332 fi
93e92f52 9333 $RM -r conftest*
1cf3d07d
SE
9334 LDFLAGS="$save_LDFLAGS"
9335
9336fi
5213506e
RW
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9338$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9339
93e92f52 9340if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9341 :
9342else
9343 lt_prog_compiler_static=
9344fi
9345
9346
9347
9348
9349
9350
9351
5213506e
RW
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9353$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9354if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9356else
9357 lt_cv_prog_compiler_c_o=no
9358 $RM -r conftest 2>/dev/null
9359 mkdir conftest
9360 cd conftest
9361 mkdir out
9362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364 lt_compiler_flag="-o out/conftest2.$ac_objext"
9365 # Insert the option either (1) after the last *FLAGS variable, or
9366 # (2) before a word containing "conftest.", or (3) at the end.
9367 # Note that $ac_compile itself does not contain backslashes and begins
9368 # with a dollar sign (not a hyphen), so the echo should work correctly.
9369 lt_compile=`echo "$ac_compile" | $SED \
9370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372 -e 's:$: $lt_compiler_flag:'`
5213506e 9373 (eval echo "\"\$as_me:9373: $lt_compile\"" >&5)
1cf3d07d
SE
9374 (eval "$lt_compile" 2>out/conftest.err)
9375 ac_status=$?
9376 cat out/conftest.err >&5
5213506e 9377 echo "$as_me:9377: \$? = $ac_status" >&5
1cf3d07d
SE
9378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379 then
9380 # The compiler can only warn and ignore the option if not recognized
9381 # So say no if there are warnings
9382 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_c_o=yes
9386 fi
9387 fi
9388 chmod u+w . 2>&5
9389 $RM conftest*
9390 # SGI C++ compiler will create directory out/ii_files/ for
9391 # template instantiation
9392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393 $RM out/* && rmdir out
9394 cd ..
9395 $RM -r conftest
9396 $RM conftest*
9397
9398fi
5213506e
RW
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9401
9402
9403
9404
9405
9406
5213506e
RW
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9408$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9409if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9411else
9412 lt_cv_prog_compiler_c_o=no
9413 $RM -r conftest 2>/dev/null
9414 mkdir conftest
9415 cd conftest
9416 mkdir out
9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418
9419 lt_compiler_flag="-o out/conftest2.$ac_objext"
9420 # Insert the option either (1) after the last *FLAGS variable, or
9421 # (2) before a word containing "conftest.", or (3) at the end.
9422 # Note that $ac_compile itself does not contain backslashes and begins
9423 # with a dollar sign (not a hyphen), so the echo should work correctly.
9424 lt_compile=`echo "$ac_compile" | $SED \
9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427 -e 's:$: $lt_compiler_flag:'`
5213506e 9428 (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
1cf3d07d
SE
9429 (eval "$lt_compile" 2>out/conftest.err)
9430 ac_status=$?
9431 cat out/conftest.err >&5
5213506e 9432 echo "$as_me:9432: \$? = $ac_status" >&5
1cf3d07d
SE
9433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9434 then
9435 # The compiler can only warn and ignore the option if not recognized
9436 # So say no if there are warnings
9437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9440 lt_cv_prog_compiler_c_o=yes
9441 fi
9442 fi
9443 chmod u+w . 2>&5
9444 $RM conftest*
9445 # SGI C++ compiler will create directory out/ii_files/ for
9446 # template instantiation
9447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9448 $RM out/* && rmdir out
9449 cd ..
9450 $RM -r conftest
9451 $RM conftest*
9452
9453fi
5213506e
RW
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9455$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9456
9457
9458
9459
9460hard_links="nottested"
9461if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9462 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9464$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9465 hard_links=yes
9466 $RM conftest*
9467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9468 touch conftest.a
9469 ln conftest.a conftest.b 2>&5 || hard_links=no
9470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9472$as_echo "$hard_links" >&6; }
1cf3d07d 9473 if test "$hard_links" = no; then
5213506e
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9475$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9476 need_locks=warn
9477 fi
9478else
9479 need_locks=no
9480fi
9481
9482
9483
9484
9485
9486
5213506e
RW
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9488$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9489
9490 runpath_var=
9491 allow_undefined_flag=
9492 always_export_symbols=no
9493 archive_cmds=
9494 archive_expsym_cmds=
9495 compiler_needs_object=no
9496 enable_shared_with_static_runtimes=no
9497 export_dynamic_flag_spec=
9498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9499 hardcode_automatic=no
9500 hardcode_direct=no
9501 hardcode_direct_absolute=no
9502 hardcode_libdir_flag_spec=
9503 hardcode_libdir_flag_spec_ld=
9504 hardcode_libdir_separator=
9505 hardcode_minus_L=no
9506 hardcode_shlibpath_var=unsupported
9507 inherit_rpath=no
9508 link_all_deplibs=unknown
9509 module_cmds=
9510 module_expsym_cmds=
9511 old_archive_from_new_cmds=
9512 old_archive_from_expsyms_cmds=
9513 thread_safe_flag_spec=
9514 whole_archive_flag_spec=
9515 # include_expsyms should be a list of space-separated symbols to be *always*
9516 # included in the symbol list
9517 include_expsyms=
9518 # exclude_expsyms can be an extended regexp of symbols to exclude
9519 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9520 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9521 # as well as any symbol that contains `d'.
93e92f52 9522 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9524 # platforms (ab)use it in PIC code, but their linkers get confused if
9525 # the symbol is explicitly referenced. Since portable code cannot
9526 # rely on this symbol name, it's probably fine to never include it in
9527 # preloaded symbol tables.
93e92f52 9528 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9529 extract_expsyms_cmds=
9530
9531 case $host_os in
93e92f52 9532 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9533 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9534 # When not using gcc, we currently assume that we are using
9535 # Microsoft Visual C++.
9536 if test "$GCC" != yes; then
9537 with_gnu_ld=no
9538 fi
9539 ;;
9540 interix*)
9541 # we just hope/assume this is gcc and not c89 (= MSVC++)
9542 with_gnu_ld=yes
9543 ;;
9544 openbsd*)
9545 with_gnu_ld=no
9546 ;;
9547 esac
9548
9549 ld_shlibs=yes
9550 if test "$with_gnu_ld" = yes; then
9551 # If archive_cmds runs LD, not CC, wlarc should be empty
9552 wlarc='${wl}'
9553
9554 # Set some defaults for GNU ld with shared library support. These
9555 # are reset later if shared libraries are not supported. Putting them
9556 # here allows them to be overridden if necessary.
9557 runpath_var=LD_RUN_PATH
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 export_dynamic_flag_spec='${wl}--export-dynamic'
9560 # ancient GNU ld didn't support --whole-archive et. al.
9561 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9563 else
9564 whole_archive_flag_spec=
9565 fi
9566 supports_anon_versioning=no
9567 case `$LD -v 2>&1` in
9568 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571 *\ 2.11.*) ;; # other 2.11 versions
9572 *) supports_anon_versioning=yes ;;
9573 esac
9574
9575 # See if GNU ld supports shared libraries.
9576 case $host_os in
f3641e7e 9577 aix[3-9]*)
1cf3d07d
SE
9578 # On AIX/PPC, the GNU linker is very broken
9579 if test "$host_cpu" != ia64; then
9580 ld_shlibs=no
9581 cat <<_LT_EOF 1>&2
9582
9583*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9584*** to be unable to reliably create shared libraries on AIX.
9585*** Therefore, libtool is disabling shared libraries support. If you
9586*** really care for shared libraries, you may want to modify your PATH
9587*** so that a non-GNU linker is found, and then restart.
9588
9589_LT_EOF
9590 fi
9591 ;;
9592
9593 amigaos*)
93e92f52
PG
9594 case $host_cpu in
9595 powerpc)
9596 # see comment about AmigaOS4 .so support
9597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598 archive_expsym_cmds=''
9599 ;;
9600 m68k)
9601 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)'
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_minus_L=yes
9604 ;;
9605 esac
1cf3d07d
SE
9606 ;;
9607
9608 beos*)
9609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9610 allow_undefined_flag=unsupported
9611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9612 # support --undefined. This deserves some investigation. FIXME
9613 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9614 else
9615 ld_shlibs=no
9616 fi
9617 ;;
9618
93e92f52 9619 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9620 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9621 # as there is no search path for DLLs.
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 allow_undefined_flag=unsupported
9624 always_export_symbols=no
9625 enable_shared_with_static_runtimes=yes
9626 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9627
9628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9630 # If the export-symbols file already is a .def file (1st line
9631 # is EXPORTS), use it as is; otherwise, prepend...
9632 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9633 cp $export_symbols $output_objdir/$soname.def;
9634 else
9635 echo EXPORTS > $output_objdir/$soname.def;
9636 cat $export_symbols >> $output_objdir/$soname.def;
9637 fi~
9638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9639 else
9640 ld_shlibs=no
9641 fi
9642 ;;
9643
9644 interix[3-9]*)
9645 hardcode_direct=no
9646 hardcode_shlibpath_var=no
9647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648 export_dynamic_flag_spec='${wl}-E'
9649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9650 # Instead, shared libraries are loaded at an image base (0x10000000 by
9651 # default) and relocated if they conflict, which is a slow very memory
9652 # consuming and fragmenting process. To avoid this, we pick a random,
9653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9656 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'
9657 ;;
9658
7a9d3fe8 9659 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9660 tmp_diet=no
9661 if test "$host_os" = linux-dietlibc; then
9662 case $cc_basename in
9663 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9664 esac
9665 fi
9666 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9667 && test "$tmp_diet" = no
9668 then
9669 tmp_addflag=
93e92f52 9670 tmp_sharedflag='-shared'
1cf3d07d
SE
9671 case $cc_basename,$host_cpu in
9672 pgcc*) # Portland Group C compiler
9673 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'
9674 tmp_addflag=' $pic_flag'
9675 ;;
9676 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9677 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'
9678 tmp_addflag=' $pic_flag -Mnomain' ;;
9679 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9680 tmp_addflag=' -i_dynamic' ;;
9681 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9682 tmp_addflag=' -i_dynamic -nofor_main' ;;
9683 ifc* | ifort*) # Intel Fortran compiler
9684 tmp_addflag=' -nofor_main' ;;
93e92f52
PG
9685 lf95*) # Lahey Fortran 8.1
9686 whole_archive_flag_spec=
9687 tmp_sharedflag='--shared' ;;
9688 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9689 tmp_sharedflag='-qmkshrobj'
9690 tmp_addflag= ;;
1cf3d07d
SE
9691 esac
9692 case `$CC -V 2>&1 | sed 5q` in
9693 *Sun\ C*) # Sun C 5.9
9694 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'
9695 compiler_needs_object=yes
9696 tmp_sharedflag='-G' ;;
9697 *Sun\ F*) # Sun Fortran 8.3
9698 tmp_sharedflag='-G' ;;
1cf3d07d
SE
9699 esac
9700 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701
9702 if test "x$supports_anon_versioning" = xyes; then
9703 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9705 echo "local: *; };" >> $output_objdir/$libname.ver~
9706 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9707 fi
93e92f52
PG
9708
9709 case $cc_basename in
9710 xlf*)
9711 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9712 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9713 hardcode_libdir_flag_spec=
9714 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9715 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9716 if test "x$supports_anon_versioning" = xyes; then
9717 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719 echo "local: *; };" >> $output_objdir/$libname.ver~
9720 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9721 fi
9722 ;;
9723 esac
1cf3d07d
SE
9724 else
9725 ld_shlibs=no
9726 fi
9727 ;;
9728
9729 netbsd*)
9730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9731 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9732 wlarc=
9733 else
9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9736 fi
9737 ;;
9738
9739 solaris*)
9740 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9741 ld_shlibs=no
9742 cat <<_LT_EOF 1>&2
9743
9744*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9745*** create shared libraries on Solaris systems. Therefore, libtool
9746*** is disabling shared libraries support. We urge you to upgrade GNU
9747*** binutils to release 2.9.1 or newer. Another option is to modify
9748*** your PATH or compiler configuration so that the native linker is
9749*** used, and then restart.
9750
9751_LT_EOF
9752 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9755 else
9756 ld_shlibs=no
9757 fi
9758 ;;
9759
9760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9761 case `$LD -v 2>&1` in
9762 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9763 ld_shlibs=no
9764 cat <<_LT_EOF 1>&2
9765
9766*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9767*** reliably create shared libraries on SCO systems. Therefore, libtool
9768*** is disabling shared libraries support. We urge you to upgrade GNU
9769*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9770*** your PATH or compiler configuration so that the native linker is
9771*** used, and then restart.
9772
9773_LT_EOF
9774 ;;
9775 *)
9776 # For security reasons, it is highly recommended that you always
9777 # use absolute paths for naming shared libraries, and exclude the
9778 # DT_RUNPATH tag from executables and libraries. But doing so
9779 # requires that you compile everything twice, which is a pain.
9780 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784 else
9785 ld_shlibs=no
9786 fi
9787 ;;
9788 esac
9789 ;;
9790
9791 sunos4*)
9792 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9793 wlarc=
9794 hardcode_direct=yes
9795 hardcode_shlibpath_var=no
9796 ;;
9797
9798 *)
9799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806 esac
9807
9808 if test "$ld_shlibs" = no; then
9809 runpath_var=
9810 hardcode_libdir_flag_spec=
9811 export_dynamic_flag_spec=
9812 whole_archive_flag_spec=
9813 fi
9814 else
9815 # PORTME fill in a description of your system's linker (not GNU ld)
9816 case $host_os in
9817 aix3*)
9818 allow_undefined_flag=unsupported
9819 always_export_symbols=yes
9820 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'
9821 # Note: this linker hardcodes the directories in LIBPATH if there
9822 # are no directories specified by -L.
9823 hardcode_minus_L=yes
9824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9825 # Neither direct hardcoding nor static linking is supported with a
9826 # broken collect2.
9827 hardcode_direct=unsupported
9828 fi
9829 ;;
9830
f3641e7e 9831 aix[4-9]*)
1cf3d07d
SE
9832 if test "$host_cpu" = ia64; then
9833 # On IA64, the linker does run time linking by default, so we don't
9834 # have to do anything special.
9835 aix_use_runtimelinking=no
9836 exp_sym_flag='-Bexport'
9837 no_entry_flag=""
9838 else
9839 # If we're using GNU nm, then we don't want the "-C" option.
9840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9841 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9842 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'
9843 else
9844 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'
9845 fi
9846 aix_use_runtimelinking=no
9847
9848 # Test if we are trying to use run time linking or normal
9849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9850 # need to do runtime linking.
f3641e7e 9851 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
9852 for ld_flag in $LDFLAGS; do
9853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9854 aix_use_runtimelinking=yes
9855 break
9856 fi
9857 done
9858 ;;
9859 esac
9860
9861 exp_sym_flag='-bexport'
9862 no_entry_flag='-bnoentry'
9863 fi
9864
9865 # When large executables or shared objects are built, AIX ld can
9866 # have problems creating the table of contents. If linking a library
9867 # or program results in "error TOC overflow" add -mminimal-toc to
9868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9870
9871 archive_cmds=''
9872 hardcode_direct=yes
9873 hardcode_direct_absolute=yes
9874 hardcode_libdir_separator=':'
9875 link_all_deplibs=yes
9876 file_list_spec='${wl}-f,'
9877
9878 if test "$GCC" = yes; then
9879 case $host_os in aix4.[012]|aix4.[012].*)
9880 # We only want to do this on AIX 4.2 and lower, the check
9881 # below for broken collect2 doesn't work under 4.3+
9882 collect2name=`${CC} -print-prog-name=collect2`
9883 if test -f "$collect2name" &&
9884 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9885 then
9886 # We have reworked collect2
9887 :
9888 else
9889 # We have old collect2
9890 hardcode_direct=unsupported
9891 # It fails to find uninstalled libraries when the uninstalled
9892 # path is not listed in the libpath. Setting hardcode_minus_L
9893 # to unsupported forces relinking
9894 hardcode_minus_L=yes
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_libdir_separator=
9897 fi
9898 ;;
9899 esac
9900 shared_flag='-shared'
9901 if test "$aix_use_runtimelinking" = yes; then
9902 shared_flag="$shared_flag "'${wl}-G'
9903 fi
9904 else
9905 # not using gcc
9906 if test "$host_cpu" = ia64; then
9907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9908 # chokes on -Wl,-G. The following line is correct:
9909 shared_flag='-G'
9910 else
9911 if test "$aix_use_runtimelinking" = yes; then
9912 shared_flag='${wl}-G'
9913 else
9914 shared_flag='${wl}-bM:SRE'
9915 fi
9916 fi
9917 fi
9918
93e92f52 9919 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
9920 # It seems that -bexpall does not export symbols beginning with
9921 # underscore (_), so it is better to generate a list of symbols to export.
9922 always_export_symbols=yes
9923 if test "$aix_use_runtimelinking" = yes; then
9924 # Warning - without using the other runtime loading flags (-brtl),
9925 # -berok will link without error, but may produce a broken library.
9926 allow_undefined_flag='-berok'
9927 # Determine the default libpath from the value encoded in an
9928 # empty executable.
9929 if test x$gcc_no_link = xyes; then
5213506e 9930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9931fi
5213506e 9932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9933/* end confdefs.h. */
9934
9935int
9936main ()
9937{
9938
9939 ;
9940 return 0;
9941}
9942_ACEOF
5213506e 9943if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9944
9945lt_aix_libpath_sed='
9946 /Import File Strings/,/^$/ {
9947 /^0/ {
9948 s/^0 *\(.*\)$/\1/
9949 p
9950 }
9951 }'
9952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953# Check for a 64-bit object if we didn't find anything.
9954if test -z "$aix_libpath"; then
9955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9956fi
1cf3d07d 9957fi
5213506e
RW
9958rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961
9962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9963 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"
9964 else
9965 if test "$host_cpu" = ia64; then
9966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9967 allow_undefined_flag="-z nodefs"
9968 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"
9969 else
9970 # Determine the default libpath from the value encoded in an
9971 # empty executable.
9972 if test x$gcc_no_link = xyes; then
5213506e 9973 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9974fi
5213506e 9975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9976/* end confdefs.h. */
9977
9978int
9979main ()
9980{
9981
9982 ;
9983 return 0;
9984}
9985_ACEOF
5213506e 9986if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9987
9988lt_aix_libpath_sed='
9989 /Import File Strings/,/^$/ {
9990 /^0/ {
9991 s/^0 *\(.*\)$/\1/
9992 p
9993 }
9994 }'
9995aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9996# Check for a 64-bit object if we didn't find anything.
9997if test -z "$aix_libpath"; then
9998 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9999fi
1cf3d07d 10000fi
5213506e
RW
10001rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10004
10005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10006 # Warning - without using the other run time loading flags,
10007 # -berok will link without error, but may produce a broken library.
10008 no_undefined_flag=' ${wl}-bernotok'
10009 allow_undefined_flag=' ${wl}-berok'
10010 # Exported symbols can be pulled into shared objects from archives
10011 whole_archive_flag_spec='$convenience'
10012 archive_cmds_need_lc=yes
10013 # This is similar to how AIX traditionally builds its shared libraries.
10014 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'
10015 fi
10016 fi
10017 ;;
10018
10019 amigaos*)
93e92f52
PG
10020 case $host_cpu in
10021 powerpc)
10022 # see comment about AmigaOS4 .so support
10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024 archive_expsym_cmds=''
10025 ;;
10026 m68k)
10027 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)'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_minus_L=yes
10030 ;;
10031 esac
1cf3d07d
SE
10032 ;;
10033
10034 bsdi[45]*)
10035 export_dynamic_flag_spec=-rdynamic
10036 ;;
10037
93e92f52 10038 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10039 # When not using gcc, we currently assume that we are using
10040 # Microsoft Visual C++.
10041 # hardcode_libdir_flag_spec is actually meaningless, as there is
10042 # no search path for DLLs.
10043 hardcode_libdir_flag_spec=' '
10044 allow_undefined_flag=unsupported
10045 # Tell ltmain to make .lib files, not .a files.
10046 libext=lib
10047 # Tell ltmain to make .dll files, not .so files.
10048 shrext_cmds=".dll"
10049 # FIXME: Setting linknames here is a bad hack.
10050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10051 # The linker will automatically build a .lib file if we build a DLL.
10052 old_archive_from_new_cmds='true'
10053 # FIXME: Should let the user specify the lib program.
10054 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10055 fix_srcfile_path='`cygpath -w "$srcfile"`'
10056 enable_shared_with_static_runtimes=yes
10057 ;;
10058
10059 darwin* | rhapsody*)
1cf3d07d 10060
93e92f52
PG
10061
10062 archive_cmds_need_lc=no
10063 hardcode_direct=no
10064 hardcode_automatic=yes
10065 hardcode_shlibpath_var=unsupported
10066 whole_archive_flag_spec=''
10067 link_all_deplibs=yes
10068 allow_undefined_flag="$_lt_dar_allow_undefined"
10069 case $cc_basename in
10070 ifort*) _lt_dar_can_shared=yes ;;
10071 *) _lt_dar_can_shared=$GCC ;;
10072 esac
10073 if test "$_lt_dar_can_shared" = "yes"; then
10074 output_verbose_link_cmd=echo
10075 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10076 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10077 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}"
10078 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}"
10079
10080 else
10081 ld_shlibs=no
10082 fi
10083
1cf3d07d
SE
10084 ;;
10085
10086 dgux*)
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_shlibpath_var=no
10090 ;;
10091
10092 freebsd1*)
10093 ld_shlibs=no
10094 ;;
10095
10096 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10097 # support. Future versions do this automatically, but an explicit c++rt0.o
10098 # does not break anything, and helps significantly (at the cost of a little
10099 # extra space).
10100 freebsd2.2*)
10101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10102 hardcode_libdir_flag_spec='-R$libdir'
10103 hardcode_direct=yes
10104 hardcode_shlibpath_var=no
10105 ;;
10106
10107 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10108 freebsd2*)
10109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_direct=yes
10111 hardcode_minus_L=yes
10112 hardcode_shlibpath_var=no
10113 ;;
10114
10115 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10116 freebsd* | dragonfly*)
10117 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10118 hardcode_libdir_flag_spec='-R$libdir'
10119 hardcode_direct=yes
10120 hardcode_shlibpath_var=no
10121 ;;
10122
10123 hpux9*)
10124 if test "$GCC" = yes; then
10125 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'
10126 else
10127 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'
10128 fi
10129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10130 hardcode_libdir_separator=:
10131 hardcode_direct=yes
10132
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L=yes
10136 export_dynamic_flag_spec='${wl}-E'
10137 ;;
10138
10139 hpux10*)
10140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10142 else
10143 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10144 fi
10145 if test "$with_gnu_ld" = no; then
10146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10147 hardcode_libdir_flag_spec_ld='+b $libdir'
10148 hardcode_libdir_separator=:
10149 hardcode_direct=yes
10150 hardcode_direct_absolute=yes
10151 export_dynamic_flag_spec='${wl}-E'
10152 # hardcode_minus_L: Not really in the search PATH,
10153 # but as the default location of the library.
10154 hardcode_minus_L=yes
10155 fi
10156 ;;
10157
10158 hpux11*)
10159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10160 case $host_cpu in
10161 hppa*64*)
10162 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 ;;
10164 ia64*)
93e92f52 10165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10166 ;;
10167 *)
10168 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10169 ;;
10170 esac
10171 else
10172 case $host_cpu in
10173 hppa*64*)
10174 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 ;;
10176 ia64*)
10177 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10178 ;;
10179 *)
10180 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10181 ;;
10182 esac
10183 fi
10184 if test "$with_gnu_ld" = no; then
10185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10186 hardcode_libdir_separator=:
10187
10188 case $host_cpu in
10189 hppa*64*|ia64*)
10190 hardcode_direct=no
10191 hardcode_shlibpath_var=no
10192 ;;
10193 *)
10194 hardcode_direct=yes
10195 hardcode_direct_absolute=yes
10196 export_dynamic_flag_spec='${wl}-E'
10197
10198 # hardcode_minus_L: Not really in the search PATH,
10199 # but as the default location of the library.
10200 hardcode_minus_L=yes
10201 ;;
10202 esac
10203 fi
10204 ;;
10205
10206 irix5* | irix6* | nonstopux*)
10207 if test "$GCC" = yes; then
10208 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'
10209 # Try to use the -exported_symbol ld option, if it does not
10210 # work, assume that -exports_file does not work either and
10211 # implicitly export all symbols.
10212 save_LDFLAGS="$LDFLAGS"
10213 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10214 if test x$gcc_no_link = xyes; then
5213506e 10215 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10216fi
5213506e
RW
10217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h. */
1cf3d07d
SE
10219int foo(void) {}
10220_ACEOF
5213506e 10221if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10222 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'
10223
1cf3d07d 10224fi
5213506e
RW
10225rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10227 LDFLAGS="$save_LDFLAGS"
10228 else
10229 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'
10230 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'
10231 fi
10232 archive_cmds_need_lc='no'
10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 hardcode_libdir_separator=:
10235 inherit_rpath=yes
10236 link_all_deplibs=yes
10237 ;;
10238
10239 netbsd*)
10240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10242 else
10243 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10244 fi
10245 hardcode_libdir_flag_spec='-R$libdir'
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10248 ;;
10249
10250 newsos6)
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_direct=yes
10253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254 hardcode_libdir_separator=:
10255 hardcode_shlibpath_var=no
10256 ;;
10257
10258 *nto* | *qnx*)
10259 ;;
10260
10261 openbsd*)
93e92f52
PG
10262 if test -f /usr/libexec/ld.so; then
10263 hardcode_direct=yes
10264 hardcode_shlibpath_var=no
10265 hardcode_direct_absolute=yes
10266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
93e92f52 10268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
93e92f52
PG
10270 export_dynamic_flag_spec='${wl}-E'
10271 else
10272 case $host_os in
10273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_libdir_flag_spec='-R$libdir'
10276 ;;
10277 *)
10278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10280 ;;
10281 esac
10282 fi
10283 else
10284 ld_shlibs=no
1cf3d07d
SE
10285 fi
10286 ;;
10287
10288 os2*)
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10291 allow_undefined_flag=unsupported
10292 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'
10293 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10294 ;;
10295
10296 osf3*)
10297 if test "$GCC" = yes; then
10298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10299 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'
10300 else
10301 allow_undefined_flag=' -expect_unresolved \*'
10302 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'
10303 fi
10304 archive_cmds_need_lc='no'
10305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306 hardcode_libdir_separator=:
10307 ;;
10308
10309 osf4* | osf5*) # as osf3* with the addition of -msym flag
10310 if test "$GCC" = yes; then
10311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10312 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'
10313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10314 else
10315 allow_undefined_flag=' -expect_unresolved \*'
10316 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'
10317 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~
10318 $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'
10319
10320 # Both c and cxx compiler support -rpath directly
10321 hardcode_libdir_flag_spec='-rpath $libdir'
10322 fi
10323 archive_cmds_need_lc='no'
10324 hardcode_libdir_separator=:
10325 ;;
10326
10327 solaris*)
10328 no_undefined_flag=' -z defs'
10329 if test "$GCC" = yes; then
10330 wlarc='${wl}'
10331 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10333 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10334 else
10335 case `$CC -V 2>&1` in
10336 *"Compilers 5.0"*)
10337 wlarc=''
10338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10341 ;;
10342 *)
10343 wlarc='${wl}'
10344 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10347 ;;
10348 esac
10349 fi
10350 hardcode_libdir_flag_spec='-R$libdir'
10351 hardcode_shlibpath_var=no
10352 case $host_os in
10353 solaris2.[0-5] | solaris2.[0-5].*) ;;
10354 *)
10355 # The compiler driver will combine and reorder linker options,
10356 # but understands `-z linker_flag'. GCC discards it without `$wl',
10357 # but is careful enough not to reorder.
10358 # Supported since Solaris 2.6 (maybe 2.5.1?)
10359 if test "$GCC" = yes; then
10360 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10361 else
10362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10363 fi
10364 ;;
10365 esac
10366 link_all_deplibs=yes
10367 ;;
10368
10369 sunos4*)
10370 if test "x$host_vendor" = xsequent; then
10371 # Use $CC to link under sequent, because it throws in some extra .o
10372 # files that make .init and .fini sections work.
10373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10374 else
10375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10376 fi
10377 hardcode_libdir_flag_spec='-L$libdir'
10378 hardcode_direct=yes
10379 hardcode_minus_L=yes
10380 hardcode_shlibpath_var=no
10381 ;;
10382
10383 sysv4)
10384 case $host_vendor in
10385 sni)
10386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10387 hardcode_direct=yes # is this really true???
10388 ;;
10389 siemens)
10390 ## LD is ld it makes a PLAMLIB
10391 ## CC just makes a GrossModule.
10392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10393 reload_cmds='$CC -r -o $output$reload_objs'
10394 hardcode_direct=no
10395 ;;
10396 motorola)
10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10399 ;;
10400 esac
10401 runpath_var='LD_RUN_PATH'
10402 hardcode_shlibpath_var=no
10403 ;;
10404
10405 sysv4.3*)
10406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407 hardcode_shlibpath_var=no
10408 export_dynamic_flag_spec='-Bexport'
10409 ;;
10410
10411 sysv4*MP*)
10412 if test -d /usr/nec; then
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_shlibpath_var=no
10415 runpath_var=LD_RUN_PATH
10416 hardcode_runpath_var=yes
10417 ld_shlibs=yes
10418 fi
10419 ;;
10420
10421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10422 no_undefined_flag='${wl}-z,text'
10423 archive_cmds_need_lc=no
10424 hardcode_shlibpath_var=no
10425 runpath_var='LD_RUN_PATH'
10426
10427 if test "$GCC" = yes; then
10428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 fi
10434 ;;
10435
10436 sysv5* | sco3.2v5* | sco5v6*)
10437 # Note: We can NOT use -z defs as we might desire, because we do not
10438 # link with -lc, and that would cause any symbols used from libc to
10439 # always be unresolved, which means just about no library would
10440 # ever link correctly. If we're not using GNU ld we use -z text
10441 # though, which does catch some bad symbols but isn't as heavy-handed
10442 # as -z defs.
10443 no_undefined_flag='${wl}-z,text'
10444 allow_undefined_flag='${wl}-z,nodefs'
10445 archive_cmds_need_lc=no
10446 hardcode_shlibpath_var=no
10447 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10448 hardcode_libdir_separator=':'
10449 link_all_deplibs=yes
10450 export_dynamic_flag_spec='${wl}-Bexport'
10451 runpath_var='LD_RUN_PATH'
10452
10453 if test "$GCC" = yes; then
10454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456 else
10457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 fi
10460 ;;
10461
10462 uts4*)
10463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_shlibpath_var=no
10466 ;;
10467
10468 *)
10469 ld_shlibs=no
10470 ;;
10471 esac
10472
10473 if test x$host_vendor = xsni; then
10474 case $host in
10475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10476 export_dynamic_flag_spec='${wl}-Blargedynsym'
10477 ;;
10478 esac
10479 fi
10480 fi
10481
5213506e
RW
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10483$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10484test "$ld_shlibs" = no && can_build_shared=no
10485
10486with_gnu_ld=$with_gnu_ld
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502#
10503# Do we need to explicitly link libc?
10504#
10505case "x$archive_cmds_need_lc" in
10506x|xyes)
10507 # Assume -lc should be added
10508 archive_cmds_need_lc=yes
10509
10510 if test "$enable_shared" = yes && test "$GCC" = yes; then
10511 case $archive_cmds in
10512 *'~'*)
10513 # FIXME: we may have to deal with multi-command sequences.
10514 ;;
10515 '$CC '*)
10516 # Test whether the compiler implicitly links with -lc since on some
10517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10518 # to ld, don't add -lc before -lgcc.
5213506e
RW
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10520$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10521if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
baafc534
RW
10523else
10524 $RM conftest*
10525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10526
5213506e 10527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10528 (eval $ac_compile) 2>&5
10529 ac_status=$?
5213506e
RW
10530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10532 soname=conftest
10533 lib=conftest
10534 libobjs=conftest.$ac_objext
10535 deplibs=
10536 wl=$lt_prog_compiler_wl
10537 pic_flag=$lt_prog_compiler_pic
10538 compiler_flags=-v
10539 linker_flags=-v
10540 verstring=
10541 output_objdir=.
10542 libname=conftest
10543 lt_save_allow_undefined_flag=$allow_undefined_flag
10544 allow_undefined_flag=
5213506e 10545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
10546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10547 ac_status=$?
5213506e
RW
10548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549 test $ac_status = 0; }
baafc534
RW
10550 then
10551 lt_cv_archive_cmds_need_lc=no
10552 else
10553 lt_cv_archive_cmds_need_lc=yes
10554 fi
10555 allow_undefined_flag=$lt_save_allow_undefined_flag
10556 else
10557 cat conftest.err 1>&5
10558 fi
10559 $RM conftest*
10560
10561fi
5213506e
RW
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10563$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10565 ;;
10566 esac
10567 fi
10568 ;;
10569esac
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
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
5213506e
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10728$as_echo_n "checking dynamic linker characteristics... " >&6; }
93e92f52
PG
10729
10730if test "$GCC" = yes; then
1cf3d07d
SE
10731 case $host_os in
10732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10733 *) lt_awk_arg="/^libraries:/" ;;
10734 esac
10735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10736 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10737 # if the path contains ";" then we assume it to be the separator
10738 # otherwise default to the standard path separator (i.e. ":") - it is
10739 # assumed that no part of a normal pathname contains ";" but that should
10740 # okay in the real world where ";" in dirpaths is itself problematic.
10741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10742 else
10743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10744 fi
10745 # Ok, now we have the path, separated by spaces, we can step through it
10746 # and add multilib dir if necessary.
10747 lt_tmp_lt_search_path_spec=
10748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10749 for lt_sys_path in $lt_search_path_spec; do
10750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10752 else
10753 test -d "$lt_sys_path" && \
10754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10755 fi
10756 done
10757 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10758BEGIN {RS=" "; FS="/|\n";} {
10759 lt_foo="";
10760 lt_count=0;
10761 for (lt_i = NF; lt_i > 0; lt_i--) {
10762 if ($lt_i != "" && $lt_i != ".") {
10763 if ($lt_i == "..") {
10764 lt_count++;
10765 } else {
10766 if (lt_count == 0) {
10767 lt_foo="/" $lt_i lt_foo;
10768 } else {
10769 lt_count--;
10770 }
10771 }
10772 }
10773 }
10774 if (lt_foo != "") { lt_freq[lt_foo]++; }
10775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10776}'`
10777 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10778else
10779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10780fi
10781library_names_spec=
10782libname_spec='lib$name'
10783soname_spec=
10784shrext_cmds=".so"
10785postinstall_cmds=
10786postuninstall_cmds=
10787finish_cmds=
10788finish_eval=
10789shlibpath_var=
10790shlibpath_overrides_runpath=unknown
10791version_type=none
10792dynamic_linker="$host_os ld.so"
10793sys_lib_dlsearch_path_spec="/lib /usr/lib"
10794need_lib_prefix=unknown
10795hardcode_into_libs=no
10796
10797# when you set need_version to no, make sure it does not cause -set_version
10798# flags to be left without arguments
10799need_version=unknown
10800
10801case $host_os in
10802aix3*)
10803 version_type=linux
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10805 shlibpath_var=LIBPATH
10806
10807 # AIX 3 has no versioning support, so we append a major version to the name.
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 ;;
10810
f3641e7e 10811aix[4-9]*)
1cf3d07d
SE
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 hardcode_into_libs=yes
10816 if test "$host_cpu" = ia64; then
10817 # AIX 5 supports IA64
10818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10819 shlibpath_var=LD_LIBRARY_PATH
10820 else
10821 # With GCC up to 2.95.x, collect2 would create an import file
10822 # for dependence libraries. The import file would start with
10823 # the line `#! .'. This would cause the generated library to
10824 # depend on `.', always an invalid library. This was fixed in
10825 # development snapshots of GCC prior to 3.0.
10826 case $host_os in
10827 aix4 | aix4.[01] | aix4.[01].*)
10828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10829 echo ' yes '
10830 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10831 :
10832 else
10833 can_build_shared=no
10834 fi
10835 ;;
10836 esac
10837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10838 # soname into executable. Probably we can add versioning support to
10839 # collect2, so additional links can be useful in future.
10840 if test "$aix_use_runtimelinking" = yes; then
10841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10842 # instead of lib<name>.a to let people know that these are not
10843 # typical AIX shared libraries.
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 else
10846 # We preserve .a as extension for shared libraries through AIX4.2
10847 # and later when we are not doing run time linking.
10848 library_names_spec='${libname}${release}.a $libname.a'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 fi
10851 shlibpath_var=LIBPATH
10852 fi
10853 ;;
10854
10855amigaos*)
93e92f52
PG
10856 case $host_cpu in
10857 powerpc)
10858 # Since July 2007 AmigaOS4 officially supports .so libraries.
10859 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 ;;
10862 m68k)
1cf3d07d
SE
10863 library_names_spec='$libname.ixlibrary $libname.a'
10864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10865 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'
93e92f52
PG
10866 ;;
10867 esac
1cf3d07d
SE
10868 ;;
10869
10870beos*)
10871 library_names_spec='${libname}${shared_ext}'
10872 dynamic_linker="$host_os ld.so"
10873 shlibpath_var=LIBRARY_PATH
10874 ;;
10875
10876bsdi[45]*)
10877 version_type=linux
10878 need_version=no
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10885 # the default ld.so.conf also contains /usr/contrib/lib and
10886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10887 # libtool to hard-code these into programs
10888 ;;
10889
93e92f52 10890cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10891 version_type=windows
10892 shrext_cmds=".dll"
10893 need_version=no
10894 need_lib_prefix=no
10895
93e92f52
PG
10896 case $GCC,$host_os in
10897 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
10898 library_names_spec='$libname.dll.a'
10899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10900 postinstall_cmds='base_file=`basename \${file}`~
10901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10902 dldir=$destdir/`dirname \$dlpath`~
10903 test -d \$dldir || mkdir -p \$dldir~
10904 $install_prog $dir/$dlname \$dldir/$dlname~
10905 chmod a+x \$dldir/$dlname~
10906 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10907 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10908 fi'
10909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10910 dlpath=$dir/\$dldll~
10911 $RM \$dlpath'
10912 shlibpath_overrides_runpath=yes
10913
10914 case $host_os in
10915 cygwin*)
10916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10919 ;;
93e92f52 10920 mingw* | cegcc*)
1cf3d07d
SE
10921 # MinGW DLLs use traditional 'lib' prefix
10922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10923 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10924 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10925 # It is most probably a Windows format PATH printed by
10926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10927 # path with ; separators, and with drive letters. We can handle the
10928 # drive letters (cygwin fileutils understands them), so leave them,
10929 # especially as we might pass files found there to a mingw objdump,
10930 # which wouldn't understand a cygwinified path. Ahh.
10931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10932 else
10933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10934 fi
10935 ;;
10936 pw32*)
10937 # pw32 DLLs use 'pw' prefix rather than 'lib'
10938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10939 ;;
10940 esac
10941 ;;
10942
10943 *)
10944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10945 ;;
10946 esac
10947 dynamic_linker='Win32 ld.exe'
10948 # FIXME: first we should search . and the directory the executable is in
10949 shlibpath_var=PATH
10950 ;;
10951
10952darwin* | rhapsody*)
10953 dynamic_linker="$host_os dyld"
10954 version_type=darwin
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10958 soname_spec='${libname}${release}${major}$shared_ext'
10959 shlibpath_overrides_runpath=yes
10960 shlibpath_var=DYLD_LIBRARY_PATH
10961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10962
10963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10965 ;;
10966
10967dgux*)
10968 version_type=linux
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 ;;
10975
10976freebsd1*)
10977 dynamic_linker=no
10978 ;;
10979
10980freebsd* | dragonfly*)
10981 # DragonFly does not have aout. When/if they implement a new
10982 # versioning mechanism, adjust this.
10983 if test -x /usr/bin/objformat; then
10984 objformat=`/usr/bin/objformat`
10985 else
10986 case $host_os in
10987 freebsd[123]*) objformat=aout ;;
10988 *) objformat=elf ;;
10989 esac
10990 fi
10991 version_type=freebsd-$objformat
10992 case $version_type in
10993 freebsd-elf*)
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10995 need_version=no
10996 need_lib_prefix=no
10997 ;;
10998 freebsd-*)
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11000 need_version=yes
11001 ;;
11002 esac
11003 shlibpath_var=LD_LIBRARY_PATH
11004 case $host_os in
11005 freebsd2*)
11006 shlibpath_overrides_runpath=yes
11007 ;;
11008 freebsd3.[01]* | freebsdelf3.[01]*)
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 ;;
11012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11014 shlibpath_overrides_runpath=no
11015 hardcode_into_libs=yes
11016 ;;
11017 *) # from 4.6 on, and DragonFly
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11020 ;;
11021 esac
11022 ;;
11023
11024gnu*)
11025 version_type=linux
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 hardcode_into_libs=yes
11032 ;;
11033
11034hpux9* | hpux10* | hpux11*)
11035 # Give a soname corresponding to the major version so that dld.sl refuses to
11036 # link against other versions.
11037 version_type=sunos
11038 need_lib_prefix=no
11039 need_version=no
11040 case $host_cpu in
11041 ia64*)
11042 shrext_cmds='.so'
11043 hardcode_into_libs=yes
11044 dynamic_linker="$host_os dld.so"
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 if test "X$HPUX_IA64_MODE" = X32; then
11050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11051 else
11052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11053 fi
11054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11055 ;;
11056 hppa*64*)
11057 shrext_cmds='.sl'
11058 hardcode_into_libs=yes
11059 dynamic_linker="$host_os dld.sl"
11060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11066 ;;
11067 *)
11068 shrext_cmds='.sl'
11069 dynamic_linker="$host_os dld.sl"
11070 shlibpath_var=SHLIB_PATH
11071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 ;;
11075 esac
11076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11077 postinstall_cmds='chmod 555 $lib'
11078 ;;
11079
11080interix[3-9]*)
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=no
11089 hardcode_into_libs=yes
11090 ;;
11091
11092irix5* | irix6* | nonstopux*)
11093 case $host_os in
11094 nonstopux*) version_type=nonstopux ;;
11095 *)
11096 if test "$lt_cv_prog_gnu_ld" = yes; then
11097 version_type=linux
11098 else
11099 version_type=irix
11100 fi ;;
11101 esac
11102 need_lib_prefix=no
11103 need_version=no
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11106 case $host_os in
11107 irix5* | nonstopux*)
11108 libsuff= shlibsuff=
11109 ;;
11110 *)
11111 case $LD in # libtool.m4 will add one of these switches to LD
11112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11113 libsuff= shlibsuff= libmagic=32-bit;;
11114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11115 libsuff=32 shlibsuff=N32 libmagic=N32;;
11116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11118 *) libsuff= shlibsuff= libmagic=never-match;;
11119 esac
11120 ;;
11121 esac
11122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11123 shlibpath_overrides_runpath=no
11124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11126 hardcode_into_libs=yes
11127 ;;
11128
11129# No shared lib support for Linux oldld, aout, or coff.
11130linux*oldld* | linux*aout* | linux*coff*)
11131 dynamic_linker=no
11132 ;;
11133
11134# This must be Linux ELF.
7a9d3fe8 11135linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11136 version_type=linux
11137 need_lib_prefix=no
11138 need_version=no
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 shlibpath_overrides_runpath=no
baafc534 11144
1cf3d07d 11145 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11146 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
baafc534
RW
11148else
11149 lt_cv_shlibpath_overrides_runpath=no
11150 save_LDFLAGS=$LDFLAGS
11151 save_libdir=$libdir
11152 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11153 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11154 if test x$gcc_no_link = xyes; then
5213506e 11155 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11156fi
5213506e 11157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11158/* end confdefs.h. */
11159
11160int
11161main ()
11162{
11163
11164 ;
11165 return 0;
11166}
11167_ACEOF
5213506e
RW
11168if ac_fn_c_try_link "$LINENO"; then :
11169 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11170 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11171fi
1cf3d07d 11172fi
5213506e
RW
11173rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11175 LDFLAGS=$save_LDFLAGS
11176 libdir=$save_libdir
11177
11178fi
11179
11180 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11181
11182 # This implies no fast_install, which is unacceptable.
11183 # Some rework will be needed to allow for fast_install
11184 # before this can be enabled.
11185 hardcode_into_libs=yes
11186
11187 # Append ld.so.conf contents to the search path
11188 if test -f /etc/ld.so.conf; then
93e92f52 11189 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
11190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11191 fi
11192
11193 # We used to test for /lib/ld.so.1 and disable shared libraries on
11194 # powerpc, because MkLinux only supported shared libraries with the
11195 # GNU dynamic linker. Since this was broken with cross compilers,
11196 # most powerpc-linux boxes support dynamic linking these days and
11197 # people can always --disable-shared, the test was removed, and we
11198 # assume the GNU/Linux dynamic linker is in use.
11199 dynamic_linker='GNU/Linux ld.so'
11200 ;;
11201
11202netbsd*)
11203 version_type=sunos
11204 need_lib_prefix=no
11205 need_version=no
11206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209 dynamic_linker='NetBSD (a.out) ld.so'
11210 else
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 dynamic_linker='NetBSD ld.elf_so'
11214 fi
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=yes
11217 hardcode_into_libs=yes
11218 ;;
11219
11220newsos6)
11221 version_type=linux
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 ;;
11226
11227*nto* | *qnx*)
11228 version_type=qnx
11229 need_lib_prefix=no
11230 need_version=no
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 shlibpath_overrides_runpath=no
11235 hardcode_into_libs=yes
11236 dynamic_linker='ldqnx.so'
11237 ;;
11238
11239openbsd*)
11240 version_type=sunos
11241 sys_lib_dlsearch_path_spec="/usr/lib"
11242 need_lib_prefix=no
11243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11244 case $host_os in
11245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11246 *) need_version=no ;;
11247 esac
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11252 case $host_os in
11253 openbsd2.[89] | openbsd2.[89].*)
11254 shlibpath_overrides_runpath=no
11255 ;;
11256 *)
11257 shlibpath_overrides_runpath=yes
11258 ;;
11259 esac
11260 else
11261 shlibpath_overrides_runpath=yes
11262 fi
11263 ;;
11264
11265os2*)
11266 libname_spec='$name'
11267 shrext_cmds=".dll"
11268 need_lib_prefix=no
11269 library_names_spec='$libname${shared_ext} $libname.a'
11270 dynamic_linker='OS/2 ld.exe'
11271 shlibpath_var=LIBPATH
11272 ;;
11273
11274osf3* | osf4* | osf5*)
11275 version_type=osf
11276 need_lib_prefix=no
11277 need_version=no
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11283 ;;
11284
11285rdos*)
11286 dynamic_linker=no
11287 ;;
11288
11289solaris*)
11290 version_type=linux
11291 need_lib_prefix=no
11292 need_version=no
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=yes
11297 hardcode_into_libs=yes
11298 # ldd complains unless libraries are executable
11299 postinstall_cmds='chmod +x $lib'
11300 ;;
11301
11302sunos4*)
11303 version_type=sunos
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes
11308 if test "$with_gnu_ld" = yes; then
11309 need_lib_prefix=no
11310 fi
11311 need_version=yes
11312 ;;
11313
11314sysv4 | sysv4.3*)
11315 version_type=linux
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 case $host_vendor in
11320 sni)
11321 shlibpath_overrides_runpath=no
11322 need_lib_prefix=no
11323 runpath_var=LD_RUN_PATH
11324 ;;
11325 siemens)
11326 need_lib_prefix=no
11327 ;;
11328 motorola)
11329 need_lib_prefix=no
11330 need_version=no
11331 shlibpath_overrides_runpath=no
11332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11333 ;;
11334 esac
11335 ;;
11336
11337sysv4*MP*)
11338 if test -d /usr/nec ;then
11339 version_type=linux
11340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11341 soname_spec='$libname${shared_ext}.$major'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 fi
11344 ;;
11345
11346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11347 version_type=freebsd-elf
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes
11354 hardcode_into_libs=yes
11355 if test "$with_gnu_ld" = yes; then
11356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11357 else
11358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11359 case $host_os in
11360 sco3.2v5*)
11361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11362 ;;
11363 esac
11364 fi
11365 sys_lib_dlsearch_path_spec='/usr/lib'
11366 ;;
11367
11368tpf*)
11369 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11370 version_type=linux
11371 need_lib_prefix=no
11372 need_version=no
93e92f52 11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11374 shlibpath_var=LD_LIBRARY_PATH
11375 shlibpath_overrides_runpath=no
11376 hardcode_into_libs=yes
11377 ;;
11378
11379uts4*)
11380 version_type=linux
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 ;;
11385
11386*)
11387 dynamic_linker=no
11388 ;;
11389esac
5213506e
RW
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11391$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11392test "$dynamic_linker" = no && can_build_shared=no
11393
11394variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11395if test "$GCC" = yes; then
11396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11397fi
11398
93e92f52
PG
11399if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11400 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11401fi
11402if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11403 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11404fi
11405
1cf3d07d
SE
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
5213506e
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11493$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11494hardcode_action=
11495if test -n "$hardcode_libdir_flag_spec" ||
11496 test -n "$runpath_var" ||
11497 test "X$hardcode_automatic" = "Xyes" ; then
11498
11499 # We can hardcode non-existent directories.
11500 if test "$hardcode_direct" != no &&
11501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11502 # have to relink, otherwise we might link with an installed library
11503 # when we should be linking with a yet-to-be-installed one
11504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11505 test "$hardcode_minus_L" != no; then
11506 # Linking always hardcodes the temporary library directory.
11507 hardcode_action=relink
11508 else
11509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11510 hardcode_action=immediate
11511 fi
11512else
11513 # We cannot hardcode anything, or else we can only hardcode existing
11514 # directories.
11515 hardcode_action=unsupported
11516fi
5213506e
RW
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11518$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
11519
11520if test "$hardcode_action" = relink ||
11521 test "$inherit_rpath" = yes; then
11522 # Fast installation is not supported
11523 enable_fast_install=no
11524elif test "$shlibpath_overrides_runpath" = yes ||
11525 test "$enable_shared" = no; then
11526 # Fast installation is not necessary
11527 enable_fast_install=needless
11528fi
11529
11530
11531
11532
11533
11534
11535 if test "x$enable_dlopen" != xyes; then
11536 enable_dlopen=unknown
11537 enable_dlopen_self=unknown
11538 enable_dlopen_self_static=unknown
11539else
11540 lt_cv_dlopen=no
11541 lt_cv_dlopen_libs=
11542
11543 case $host_os in
11544 beos*)
11545 lt_cv_dlopen="load_add_on"
11546 lt_cv_dlopen_libs=
11547 lt_cv_dlopen_self=yes
11548 ;;
11549
93e92f52 11550 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11551 lt_cv_dlopen="LoadLibrary"
11552 lt_cv_dlopen_libs=
11553 ;;
11554
11555 cygwin*)
11556 lt_cv_dlopen="dlopen"
11557 lt_cv_dlopen_libs=
11558 ;;
11559
11560 darwin*)
11561 # if libdl is installed we need to link against it
5213506e
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563$as_echo_n "checking for dlopen in -ldl... " >&6; }
11564if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11566else
11567 ac_check_lib_save_LIBS=$LIBS
11568LIBS="-ldl $LIBS"
11569if test x$gcc_no_link = xyes; then
5213506e 11570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11571fi
5213506e 11572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11573/* end confdefs.h. */
11574
5213506e
RW
11575/* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11578#ifdef __cplusplus
11579extern "C"
11580#endif
1cf3d07d
SE
11581char dlopen ();
11582int
11583main ()
11584{
5213506e 11585return dlopen ();
1cf3d07d
SE
11586 ;
11587 return 0;
11588}
11589_ACEOF
5213506e 11590if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11591 ac_cv_lib_dl_dlopen=yes
11592else
5213506e 11593 ac_cv_lib_dl_dlopen=no
1cf3d07d 11594fi
5213506e
RW
11595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11597LIBS=$ac_check_lib_save_LIBS
11598fi
5213506e
RW
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11600$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11601if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11603else
11604
11605 lt_cv_dlopen="dyld"
11606 lt_cv_dlopen_libs=
11607 lt_cv_dlopen_self=yes
11608
11609fi
11610
11611 ;;
11612
11613 *)
5213506e
RW
11614 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11615if test "x$ac_cv_func_shl_load" = x""yes; then :
11616 lt_cv_dlopen="shl_load"
1cf3d07d 11617else
5213506e
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11619$as_echo_n "checking for shl_load in -ldld... " >&6; }
11620if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622else
11623 ac_check_lib_save_LIBS=$LIBS
11624LIBS="-ldld $LIBS"
11625if test x$gcc_no_link = xyes; then
11626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11627fi
5213506e 11628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 11629/* end confdefs.h. */
1cf3d07d 11630
5213506e
RW
11631/* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11634#ifdef __cplusplus
11635extern "C"
1cf3d07d 11636#endif
1cf3d07d 11637char shl_load ();
1cf3d07d
SE
11638int
11639main ()
11640{
5213506e 11641return shl_load ();
1cf3d07d
SE
11642 ;
11643 return 0;
11644}
11645_ACEOF
5213506e
RW
11646if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_lib_dld_shl_load=yes
1cf3d07d 11648else
5213506e 11649 ac_cv_lib_dld_shl_load=no
1cf3d07d 11650fi
5213506e
RW
11651rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653LIBS=$ac_check_lib_save_LIBS
1cf3d07d 11654fi
5213506e
RW
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11656$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11657if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 11659else
5213506e
RW
11660 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11661if test "x$ac_cv_func_dlopen" = x""yes; then :
11662 lt_cv_dlopen="dlopen"
11663else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11665$as_echo_n "checking for dlopen in -ldl... " >&6; }
11666if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11668else
11669 ac_check_lib_save_LIBS=$LIBS
5213506e 11670LIBS="-ldl $LIBS"
1cf3d07d 11671if test x$gcc_no_link = xyes; then
5213506e 11672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11673fi
5213506e 11674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11675/* end confdefs.h. */
11676
5213506e
RW
11677/* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11680#ifdef __cplusplus
11681extern "C"
11682#endif
5213506e 11683char dlopen ();
1cf3d07d
SE
11684int
11685main ()
11686{
5213506e 11687return dlopen ();
1cf3d07d
SE
11688 ;
11689 return 0;
11690}
11691_ACEOF
5213506e
RW
11692if ac_fn_c_try_link "$LINENO"; then :
11693 ac_cv_lib_dl_dlopen=yes
1cf3d07d 11694else
5213506e 11695 ac_cv_lib_dl_dlopen=no
1cf3d07d 11696fi
5213506e
RW
11697rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11699LIBS=$ac_check_lib_save_LIBS
11700fi
5213506e
RW
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11702$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11703if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1cf3d07d 11705else
5213506e
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11707$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11708if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
1cf3d07d 11710else
5213506e
RW
11711 ac_check_lib_save_LIBS=$LIBS
11712LIBS="-lsvld $LIBS"
11713if test x$gcc_no_link = xyes; then
11714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11715fi
5213506e 11716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 11717/* end confdefs.h. */
1cf3d07d 11718
5213506e
RW
11719/* Override any GCC internal prototype to avoid an error.
11720 Use char because int might match the return type of a GCC
11721 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11722#ifdef __cplusplus
11723extern "C"
1cf3d07d 11724#endif
1cf3d07d 11725char dlopen ();
1cf3d07d
SE
11726int
11727main ()
11728{
5213506e 11729return dlopen ();
1cf3d07d
SE
11730 ;
11731 return 0;
11732}
11733_ACEOF
5213506e
RW
11734if ac_fn_c_try_link "$LINENO"; then :
11735 ac_cv_lib_svld_dlopen=yes
1cf3d07d 11736else
5213506e 11737 ac_cv_lib_svld_dlopen=no
1cf3d07d 11738fi
5213506e
RW
11739rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11741LIBS=$ac_check_lib_save_LIBS
1cf3d07d 11742fi
5213506e
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11744$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11745if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1cf3d07d 11747else
5213506e
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11749$as_echo_n "checking for dld_link in -ldld... " >&6; }
11750if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11752else
11753 ac_check_lib_save_LIBS=$LIBS
11754LIBS="-ldld $LIBS"
11755if test x$gcc_no_link = xyes; then
5213506e 11756 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11757fi
5213506e 11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11759/* end confdefs.h. */
11760
5213506e
RW
11761/* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11764#ifdef __cplusplus
11765extern "C"
11766#endif
1cf3d07d
SE
11767char dld_link ();
11768int
11769main ()
11770{
5213506e 11771return dld_link ();
1cf3d07d
SE
11772 ;
11773 return 0;
11774}
11775_ACEOF
5213506e 11776if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11777 ac_cv_lib_dld_dld_link=yes
11778else
5213506e 11779 ac_cv_lib_dld_dld_link=no
1cf3d07d 11780fi
5213506e
RW
11781rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11783LIBS=$ac_check_lib_save_LIBS
11784fi
5213506e
RW
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11786$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11787if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
93e92f52 11788 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
11789fi
11790
11791
11792fi
11793
11794
11795fi
11796
11797
11798fi
11799
11800
11801fi
11802
11803
11804fi
11805
11806 ;;
11807 esac
11808
11809 if test "x$lt_cv_dlopen" != xno; then
11810 enable_dlopen=yes
11811 else
11812 enable_dlopen=no
11813 fi
11814
11815 case $lt_cv_dlopen in
11816 dlopen)
11817 save_CPPFLAGS="$CPPFLAGS"
11818 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11819
11820 save_LDFLAGS="$LDFLAGS"
11821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11822
11823 save_LIBS="$LIBS"
11824 LIBS="$lt_cv_dlopen_libs $LIBS"
11825
5213506e
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11827$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11828if test "${lt_cv_dlopen_self+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11830else
11831 if test "$cross_compiling" = yes; then :
11832 lt_cv_dlopen_self=cross
11833else
11834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11835 lt_status=$lt_dlunknown
11836 cat > conftest.$ac_ext <<_LT_EOF
5213506e 11837#line 11837 "configure"
1cf3d07d
SE
11838#include "confdefs.h"
11839
11840#if HAVE_DLFCN_H
11841#include <dlfcn.h>
11842#endif
11843
11844#include <stdio.h>
11845
11846#ifdef RTLD_GLOBAL
11847# define LT_DLGLOBAL RTLD_GLOBAL
11848#else
11849# ifdef DL_GLOBAL
11850# define LT_DLGLOBAL DL_GLOBAL
11851# else
11852# define LT_DLGLOBAL 0
11853# endif
11854#endif
11855
11856/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11857 find out it does not work in some platform. */
11858#ifndef LT_DLLAZY_OR_NOW
11859# ifdef RTLD_LAZY
11860# define LT_DLLAZY_OR_NOW RTLD_LAZY
11861# else
11862# ifdef DL_LAZY
11863# define LT_DLLAZY_OR_NOW DL_LAZY
11864# else
11865# ifdef RTLD_NOW
11866# define LT_DLLAZY_OR_NOW RTLD_NOW
11867# else
11868# ifdef DL_NOW
11869# define LT_DLLAZY_OR_NOW DL_NOW
11870# else
11871# define LT_DLLAZY_OR_NOW 0
11872# endif
11873# endif
11874# endif
11875# endif
11876#endif
11877
1cf3d07d
SE
11878void fnord() { int i=42;}
11879int main ()
11880{
11881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11882 int status = $lt_dlunknown;
11883
11884 if (self)
11885 {
11886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11887 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 /* dlclose (self); */
11889 }
11890 else
11891 puts (dlerror ());
11892
93e92f52 11893 return status;
1cf3d07d
SE
11894}
11895_LT_EOF
5213506e 11896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11897 (eval $ac_link) 2>&5
11898 ac_status=$?
5213506e
RW
11899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11901 (./conftest; exit; ) >&5 2>/dev/null
11902 lt_status=$?
11903 case x$lt_status in
11904 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11905 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11906 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11907 esac
11908 else :
11909 # compilation failed
11910 lt_cv_dlopen_self=no
11911 fi
11912fi
11913rm -fr conftest*
11914
11915
11916fi
5213506e
RW
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11918$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
11919
11920 if test "x$lt_cv_dlopen_self" = xyes; then
11921 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11923$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11924if test "${lt_cv_dlopen_self_static+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11926else
11927 if test "$cross_compiling" = yes; then :
11928 lt_cv_dlopen_self_static=cross
11929else
11930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11931 lt_status=$lt_dlunknown
11932 cat > conftest.$ac_ext <<_LT_EOF
5213506e 11933#line 11933 "configure"
1cf3d07d
SE
11934#include "confdefs.h"
11935
11936#if HAVE_DLFCN_H
11937#include <dlfcn.h>
11938#endif
11939
11940#include <stdio.h>
11941
11942#ifdef RTLD_GLOBAL
11943# define LT_DLGLOBAL RTLD_GLOBAL
11944#else
11945# ifdef DL_GLOBAL
11946# define LT_DLGLOBAL DL_GLOBAL
11947# else
11948# define LT_DLGLOBAL 0
11949# endif
11950#endif
11951
11952/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11953 find out it does not work in some platform. */
11954#ifndef LT_DLLAZY_OR_NOW
11955# ifdef RTLD_LAZY
11956# define LT_DLLAZY_OR_NOW RTLD_LAZY
11957# else
11958# ifdef DL_LAZY
11959# define LT_DLLAZY_OR_NOW DL_LAZY
11960# else
11961# ifdef RTLD_NOW
11962# define LT_DLLAZY_OR_NOW RTLD_NOW
11963# else
11964# ifdef DL_NOW
11965# define LT_DLLAZY_OR_NOW DL_NOW
11966# else
11967# define LT_DLLAZY_OR_NOW 0
11968# endif
11969# endif
11970# endif
11971# endif
11972#endif
11973
1cf3d07d
SE
11974void fnord() { int i=42;}
11975int main ()
11976{
11977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11978 int status = $lt_dlunknown;
11979
11980 if (self)
11981 {
11982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11983 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11984 /* dlclose (self); */
11985 }
11986 else
11987 puts (dlerror ());
11988
93e92f52 11989 return status;
1cf3d07d
SE
11990}
11991_LT_EOF
5213506e 11992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11993 (eval $ac_link) 2>&5
11994 ac_status=$?
5213506e
RW
11995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11996 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11997 (./conftest; exit; ) >&5 2>/dev/null
11998 lt_status=$?
11999 case x$lt_status in
12000 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12001 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12002 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12003 esac
12004 else :
12005 # compilation failed
12006 lt_cv_dlopen_self_static=no
12007 fi
12008fi
12009rm -fr conftest*
12010
12011
12012fi
5213506e
RW
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12014$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12015 fi
12016
12017 CPPFLAGS="$save_CPPFLAGS"
12018 LDFLAGS="$save_LDFLAGS"
12019 LIBS="$save_LIBS"
12020 ;;
12021 esac
12022
12023 case $lt_cv_dlopen_self in
12024 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12025 *) enable_dlopen_self=unknown ;;
12026 esac
12027
12028 case $lt_cv_dlopen_self_static in
12029 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12030 *) enable_dlopen_self_static=unknown ;;
12031 esac
12032fi
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050striplib=
12051old_striplib=
5213506e
RW
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12053$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12054if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12055 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12056 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12058$as_echo "yes" >&6; }
1cf3d07d
SE
12059else
12060# FIXME - insert some real tests, host_os isn't really good enough
12061 case $host_os in
12062 darwin*)
12063 if test -n "$STRIP" ; then
12064 striplib="$STRIP -x"
12065 old_striplib="$STRIP -S"
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067$as_echo "yes" >&6; }
1cf3d07d 12068 else
5213506e
RW
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
1cf3d07d
SE
12071 fi
12072 ;;
12073 *)
5213506e
RW
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
1cf3d07d
SE
12076 ;;
12077 esac
12078fi
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091 # Report which library types will actually be built
5213506e
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12093$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12095$as_echo "$can_build_shared" >&6; }
1cf3d07d 12096
5213506e
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12098$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
12099 test "$can_build_shared" = "no" && enable_shared=no
12100
12101 # On AIX, shared libraries and static libraries use the same namespace, and
12102 # are all built from PIC.
12103 case $host_os in
12104 aix3*)
12105 test "$enable_shared" = yes && enable_static=no
12106 if test -n "$RANLIB"; then
12107 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12108 postinstall_cmds='$RANLIB $lib'
12109 fi
12110 ;;
12111
f3641e7e 12112 aix[4-9]*)
1cf3d07d
SE
12113 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12114 test "$enable_shared" = yes && enable_static=no
12115 fi
12116 ;;
12117 esac
5213506e
RW
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12119$as_echo "$enable_shared" >&6; }
1cf3d07d 12120
5213506e
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12122$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
12123 # Make sure either enable_shared or enable_static is yes.
12124 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12126$as_echo "$enable_static" >&6; }
1cf3d07d
SE
12127
12128
12129
12130
12131fi
12132ac_ext=c
12133ac_cpp='$CPP $CPPFLAGS'
12134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12136ac_compiler_gnu=$ac_cv_c_compiler_gnu
12137
12138CC="$lt_save_CC"
12139
12140
5213506e 12141ac_ext=cpp
1cf3d07d
SE
12142ac_cpp='$CXXCPP $CPPFLAGS'
12143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12146
12147archive_cmds_need_lc_CXX=no
12148allow_undefined_flag_CXX=
12149always_export_symbols_CXX=no
12150archive_expsym_cmds_CXX=
12151compiler_needs_object_CXX=no
12152export_dynamic_flag_spec_CXX=
12153hardcode_direct_CXX=no
12154hardcode_direct_absolute_CXX=no
12155hardcode_libdir_flag_spec_CXX=
12156hardcode_libdir_flag_spec_ld_CXX=
12157hardcode_libdir_separator_CXX=
12158hardcode_minus_L_CXX=no
12159hardcode_shlibpath_var_CXX=unsupported
12160hardcode_automatic_CXX=no
12161inherit_rpath_CXX=no
12162module_cmds_CXX=
12163module_expsym_cmds_CXX=
12164link_all_deplibs_CXX=unknown
12165old_archive_cmds_CXX=$old_archive_cmds
12166no_undefined_flag_CXX=
12167whole_archive_flag_spec_CXX=
12168enable_shared_with_static_runtimes_CXX=no
12169
12170# Source file extension for C++ test sources.
12171ac_ext=cpp
12172
12173# Object file extension for compiled C++ test sources.
12174objext=o
12175objext_CXX=$objext
12176
12177# No sense in running all these tests if we already determined that
12178# the CXX compiler isn't working. Some variables (like enable_shared)
12179# are currently assumed to apply to all compilers on this platform,
12180# and will be corrupted by setting them based on a non-working compiler.
12181if test "$_lt_caught_CXX_error" != yes; then
12182 # Code to be used in simple compile tests
12183 lt_simple_compile_test_code="int some_variable = 0;"
12184
12185 # Code to be used in simple link tests
12186 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12187
12188 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12189
12190
12191
12192
12193
12194
12195# If no C compiler was specified, use CC.
12196LTCC=${LTCC-"$CC"}
12197
12198# If no C compiler flags were specified, use CFLAGS.
12199LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12200
12201# Allow CC to be a program name with arguments.
12202compiler=$CC
12203
12204
12205 # save warnings/boilerplate of simple test code
12206 ac_outfile=conftest.$ac_objext
12207echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12208eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12209_lt_compiler_boilerplate=`cat conftest.err`
12210$RM conftest*
12211
12212 ac_outfile=conftest.$ac_objext
12213echo "$lt_simple_link_test_code" >conftest.$ac_ext
12214eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12215_lt_linker_boilerplate=`cat conftest.err`
93e92f52 12216$RM -r conftest*
1cf3d07d
SE
12217
12218
12219 # Allow CC to be a program name with arguments.
12220 lt_save_CC=$CC
12221 lt_save_LD=$LD
12222 lt_save_GCC=$GCC
12223 GCC=$GXX
12224 lt_save_with_gnu_ld=$with_gnu_ld
12225 lt_save_path_LD=$lt_cv_path_LD
12226 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12227 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12228 else
12229 $as_unset lt_cv_prog_gnu_ld
12230 fi
12231 if test -n "${lt_cv_path_LDCXX+set}"; then
12232 lt_cv_path_LD=$lt_cv_path_LDCXX
12233 else
12234 $as_unset lt_cv_path_LD
12235 fi
12236 test -z "${LDCXX+set}" || LD=$LDCXX
12237 CC=${CXX-"c++"}
12238 compiler=$CC
12239 compiler_CXX=$CC
12240 for cc_temp in $compiler""; do
12241 case $cc_temp in
12242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12244 \-*) ;;
12245 *) break;;
12246 esac
12247done
12248cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12249
12250
12251 if test -n "$compiler"; then
12252 # We don't want -fno-exception when compiling C++ code, so set the
12253 # no_builtin_flag separately
12254 if test "$GXX" = yes; then
12255 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12256 else
12257 lt_prog_compiler_no_builtin_flag_CXX=
12258 fi
12259
12260 if test "$GXX" = yes; then
12261 # Set up default GNU C++ configuration
12262
12263
12264
5213506e
RW
12265# Check whether --with-gnu-ld was given.
12266if test "${with_gnu_ld+set}" = set; then :
12267 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
12268else
12269 with_gnu_ld=no
5213506e
RW
12270fi
12271
1cf3d07d
SE
12272ac_prog=ld
12273if test "$GCC" = yes; then
12274 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12276$as_echo_n "checking for ld used by $CC... " >&6; }
1cf3d07d
SE
12277 case $host in
12278 *-*-mingw*)
12279 # gcc leaves a trailing carriage return which upsets mingw
12280 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12281 *)
12282 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12283 esac
12284 case $ac_prog in
12285 # Accept absolute paths.
12286 [\\/]* | ?:[\\/]*)
12287 re_direlt='/[^/][^/]*/\.\./'
12288 # Canonicalize the pathname of ld
12289 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12290 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12291 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12292 done
12293 test -z "$LD" && LD="$ac_prog"
12294 ;;
12295 "")
12296 # If it fails, then pretend we aren't using GCC.
12297 ac_prog=ld
12298 ;;
12299 *)
12300 # If it is relative, then search for the first ld in PATH.
12301 with_gnu_ld=unknown
12302 ;;
12303 esac
12304elif test "$with_gnu_ld" = yes; then
5213506e
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12306$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 12307else
5213506e
RW
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12309$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 12310fi
5213506e
RW
12311if test "${lt_cv_path_LD+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12313else
12314 if test -z "$LD"; then
12315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12316 for ac_dir in $PATH; do
12317 IFS="$lt_save_ifs"
12318 test -z "$ac_dir" && ac_dir=.
12319 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12320 lt_cv_path_LD="$ac_dir/$ac_prog"
12321 # Check to see if the program is GNU ld. I'd rather use --version,
12322 # but apparently some variants of GNU ld only accept -v.
12323 # Break only if it was the GNU/non-GNU ld that we prefer.
12324 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12325 *GNU* | *'with BFD'*)
12326 test "$with_gnu_ld" != no && break
12327 ;;
12328 *)
12329 test "$with_gnu_ld" != yes && break
12330 ;;
12331 esac
12332 fi
12333 done
12334 IFS="$lt_save_ifs"
12335else
12336 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12337fi
12338fi
12339
12340LD="$lt_cv_path_LD"
12341if test -n "$LD"; then
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12343$as_echo "$LD" >&6; }
1cf3d07d 12344else
5213506e
RW
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346$as_echo "no" >&6; }
1cf3d07d 12347fi
5213506e
RW
12348test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12350$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12351if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12353else
12354 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12355case `$LD -v 2>&1 </dev/null` in
12356*GNU* | *'with BFD'*)
12357 lt_cv_prog_gnu_ld=yes
12358 ;;
12359*)
12360 lt_cv_prog_gnu_ld=no
12361 ;;
12362esac
12363fi
5213506e
RW
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12365$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
12366with_gnu_ld=$lt_cv_prog_gnu_ld
12367
12368
12369
12370
12371
12372
12373
12374 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12375 # archiving commands below assume that GNU ld is being used.
12376 if test "$with_gnu_ld" = yes; then
12377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378 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'
12379
12380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12382
12383 # If archive_cmds runs LD, not CC, wlarc should be empty
12384 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12385 # investigate it a little bit more. (MM)
12386 wlarc='${wl}'
12387
12388 # ancient GNU ld didn't support --whole-archive et. al.
12389 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12390 $GREP 'no-whole-archive' > /dev/null; then
12391 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12392 else
12393 whole_archive_flag_spec_CXX=
12394 fi
12395 else
12396 with_gnu_ld=no
12397 wlarc=
12398
12399 # A generic and very simple default shared library creation
12400 # command for GNU C++ for the case where it uses the native
12401 # linker, instead of GNU ld. If possible, this setting should
12402 # overridden to take advantage of the native linker features on
12403 # the platform it is being used on.
12404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12405 fi
12406
12407 # Commands to make compiler produce verbose output that lists
12408 # what "hidden" libraries, object files and flags are used when
12409 # linking a shared library.
12410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12411
12412 else
12413 GXX=no
12414 with_gnu_ld=no
12415 wlarc=
12416 fi
12417
12418 # PORTME: fill in a description of your system's C++ link characteristics
5213506e
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12420$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
12421 ld_shlibs_CXX=yes
12422 case $host_os in
12423 aix3*)
12424 # FIXME: insert proper C++ library support
12425 ld_shlibs_CXX=no
12426 ;;
f3641e7e 12427 aix[4-9]*)
1cf3d07d
SE
12428 if test "$host_cpu" = ia64; then
12429 # On IA64, the linker does run time linking by default, so we don't
12430 # have to do anything special.
12431 aix_use_runtimelinking=no
12432 exp_sym_flag='-Bexport'
12433 no_entry_flag=""
12434 else
12435 aix_use_runtimelinking=no
12436
12437 # Test if we are trying to use run time linking or normal
12438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12439 # need to do runtime linking.
f3641e7e 12440 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
12441 for ld_flag in $LDFLAGS; do
12442 case $ld_flag in
12443 *-brtl*)
12444 aix_use_runtimelinking=yes
12445 break
12446 ;;
12447 esac
12448 done
12449 ;;
12450 esac
12451
12452 exp_sym_flag='-bexport'
12453 no_entry_flag='-bnoentry'
12454 fi
12455
12456 # When large executables or shared objects are built, AIX ld can
12457 # have problems creating the table of contents. If linking a library
12458 # or program results in "error TOC overflow" add -mminimal-toc to
12459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12461
12462 archive_cmds_CXX=''
12463 hardcode_direct_CXX=yes
12464 hardcode_direct_absolute_CXX=yes
12465 hardcode_libdir_separator_CXX=':'
12466 link_all_deplibs_CXX=yes
12467 file_list_spec_CXX='${wl}-f,'
12468
12469 if test "$GXX" = yes; then
12470 case $host_os in aix4.[012]|aix4.[012].*)
12471 # We only want to do this on AIX 4.2 and lower, the check
12472 # below for broken collect2 doesn't work under 4.3+
12473 collect2name=`${CC} -print-prog-name=collect2`
12474 if test -f "$collect2name" &&
12475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12476 then
12477 # We have reworked collect2
12478 :
12479 else
12480 # We have old collect2
12481 hardcode_direct_CXX=unsupported
12482 # It fails to find uninstalled libraries when the uninstalled
12483 # path is not listed in the libpath. Setting hardcode_minus_L
12484 # to unsupported forces relinking
12485 hardcode_minus_L_CXX=yes
12486 hardcode_libdir_flag_spec_CXX='-L$libdir'
12487 hardcode_libdir_separator_CXX=
12488 fi
12489 esac
12490 shared_flag='-shared'
12491 if test "$aix_use_runtimelinking" = yes; then
12492 shared_flag="$shared_flag "'${wl}-G'
12493 fi
12494 else
12495 # not using gcc
12496 if test "$host_cpu" = ia64; then
12497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12498 # chokes on -Wl,-G. The following line is correct:
12499 shared_flag='-G'
12500 else
12501 if test "$aix_use_runtimelinking" = yes; then
12502 shared_flag='${wl}-G'
12503 else
12504 shared_flag='${wl}-bM:SRE'
12505 fi
12506 fi
12507 fi
12508
93e92f52 12509 export_dynamic_flag_spec_CXX='${wl}-bexpall'
1cf3d07d
SE
12510 # It seems that -bexpall does not export symbols beginning with
12511 # underscore (_), so it is better to generate a list of symbols to
12512 # export.
12513 always_export_symbols_CXX=yes
12514 if test "$aix_use_runtimelinking" = yes; then
12515 # Warning - without using the other runtime loading flags (-brtl),
12516 # -berok will link without error, but may produce a broken library.
12517 allow_undefined_flag_CXX='-berok'
12518 # Determine the default libpath from the value encoded in an empty
12519 # executable.
12520 if test x$gcc_no_link = xyes; then
5213506e 12521 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12522fi
5213506e 12523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12524/* end confdefs.h. */
12525
12526int
12527main ()
12528{
12529
12530 ;
12531 return 0;
12532}
12533_ACEOF
5213506e 12534if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
12535
12536lt_aix_libpath_sed='
12537 /Import File Strings/,/^$/ {
12538 /^0/ {
12539 s/^0 *\(.*\)$/\1/
12540 p
12541 }
12542 }'
12543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12544# Check for a 64-bit object if we didn't find anything.
12545if test -z "$aix_libpath"; then
12546 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12547fi
1cf3d07d 12548fi
5213506e
RW
12549rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12551if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12552
12553 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12554
12555 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"
12556 else
12557 if test "$host_cpu" = ia64; then
12558 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12559 allow_undefined_flag_CXX="-z nodefs"
12560 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"
12561 else
12562 # Determine the default libpath from the value encoded in an
12563 # empty executable.
12564 if test x$gcc_no_link = xyes; then
5213506e 12565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12566fi
5213506e 12567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12568/* end confdefs.h. */
12569
12570int
12571main ()
12572{
12573
12574 ;
12575 return 0;
12576}
12577_ACEOF
5213506e 12578if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
12579
12580lt_aix_libpath_sed='
12581 /Import File Strings/,/^$/ {
12582 /^0/ {
12583 s/^0 *\(.*\)$/\1/
12584 p
12585 }
12586 }'
12587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588# Check for a 64-bit object if we didn't find anything.
12589if test -z "$aix_libpath"; then
12590 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591fi
1cf3d07d 12592fi
5213506e
RW
12593rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12596
12597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12598 # Warning - without using the other run time loading flags,
12599 # -berok will link without error, but may produce a broken library.
12600 no_undefined_flag_CXX=' ${wl}-bernotok'
12601 allow_undefined_flag_CXX=' ${wl}-berok'
12602 # Exported symbols can be pulled into shared objects from archives
12603 whole_archive_flag_spec_CXX='$convenience'
12604 archive_cmds_need_lc_CXX=yes
12605 # This is similar to how AIX traditionally builds its shared
12606 # libraries.
12607 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'
12608 fi
12609 fi
12610 ;;
12611
12612 beos*)
12613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12614 allow_undefined_flag_CXX=unsupported
12615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12616 # support --undefined. This deserves some investigation. FIXME
12617 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12618 else
12619 ld_shlibs_CXX=no
12620 fi
12621 ;;
12622
12623 chorus*)
12624 case $cc_basename in
12625 *)
12626 # FIXME: insert proper C++ library support
12627 ld_shlibs_CXX=no
12628 ;;
12629 esac
12630 ;;
12631
93e92f52 12632 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12633 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12634 # as there is no search path for DLLs.
12635 hardcode_libdir_flag_spec_CXX='-L$libdir'
12636 allow_undefined_flag_CXX=unsupported
12637 always_export_symbols_CXX=no
12638 enable_shared_with_static_runtimes_CXX=yes
12639
12640 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12641 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'
12642 # If the export-symbols file already is a .def file (1st line
12643 # is EXPORTS), use it as is; otherwise, prepend...
12644 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12645 cp $export_symbols $output_objdir/$soname.def;
12646 else
12647 echo EXPORTS > $output_objdir/$soname.def;
12648 cat $export_symbols >> $output_objdir/$soname.def;
12649 fi~
12650 $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'
12651 else
12652 ld_shlibs_CXX=no
12653 fi
12654 ;;
12655 darwin* | rhapsody*)
1cf3d07d 12656
1cf3d07d 12657
93e92f52
PG
12658 archive_cmds_need_lc_CXX=no
12659 hardcode_direct_CXX=no
12660 hardcode_automatic_CXX=yes
12661 hardcode_shlibpath_var_CXX=unsupported
12662 whole_archive_flag_spec_CXX=''
12663 link_all_deplibs_CXX=yes
12664 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12665 case $cc_basename in
12666 ifort*) _lt_dar_can_shared=yes ;;
12667 *) _lt_dar_can_shared=$GCC ;;
12668 esac
12669 if test "$_lt_dar_can_shared" = "yes"; then
12670 output_verbose_link_cmd=echo
12671 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}"
12672 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12673 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}"
12674 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}"
12675 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12676 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}"
12677 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}"
12678 fi
12679
12680 else
12681 ld_shlibs_CXX=no
12682 fi
12683
1cf3d07d
SE
12684 ;;
12685
12686 dgux*)
12687 case $cc_basename in
12688 ec++*)
12689 # FIXME: insert proper C++ library support
12690 ld_shlibs_CXX=no
12691 ;;
12692 ghcx*)
12693 # Green Hills C++ Compiler
12694 # FIXME: insert proper C++ library support
12695 ld_shlibs_CXX=no
12696 ;;
12697 *)
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12700 ;;
12701 esac
12702 ;;
12703
12704 freebsd[12]*)
12705 # C++ shared libraries reported to be fairly broken before
12706 # switch to ELF
12707 ld_shlibs_CXX=no
12708 ;;
12709
12710 freebsd-elf*)
12711 archive_cmds_need_lc_CXX=no
12712 ;;
12713
12714 freebsd* | dragonfly*)
12715 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12716 # conventions
12717 ld_shlibs_CXX=yes
12718 ;;
12719
12720 gnu*)
12721 ;;
12722
12723 hpux9*)
12724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12725 hardcode_libdir_separator_CXX=:
12726 export_dynamic_flag_spec_CXX='${wl}-E'
12727 hardcode_direct_CXX=yes
12728 hardcode_minus_L_CXX=yes # Not in the search PATH,
12729 # but as the default
12730 # location of the library.
12731
12732 case $cc_basename in
12733 CC*)
12734 # FIXME: insert proper C++ library support
12735 ld_shlibs_CXX=no
12736 ;;
12737 aCC*)
12738 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'
12739 # Commands to make compiler produce verbose output that lists
12740 # what "hidden" libraries, object files and flags are used when
12741 # linking a shared library.
12742 #
12743 # There doesn't appear to be a way to prevent this compiler from
12744 # explicitly linking system object files so we need to strip them
12745 # from the output so that they don't get included in the library
12746 # dependencies.
12747 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-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'
12748 ;;
12749 *)
12750 if test "$GXX" = yes; then
12751 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'
12752 else
12753 # FIXME: insert proper C++ library support
12754 ld_shlibs_CXX=no
12755 fi
12756 ;;
12757 esac
12758 ;;
12759
12760 hpux10*|hpux11*)
12761 if test $with_gnu_ld = no; then
12762 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12763 hardcode_libdir_separator_CXX=:
12764
12765 case $host_cpu in
12766 hppa*64*|ia64*)
12767 ;;
12768 *)
12769 export_dynamic_flag_spec_CXX='${wl}-E'
12770 ;;
12771 esac
12772 fi
12773 case $host_cpu in
12774 hppa*64*|ia64*)
12775 hardcode_direct_CXX=no
12776 hardcode_shlibpath_var_CXX=no
12777 ;;
12778 *)
12779 hardcode_direct_CXX=yes
12780 hardcode_direct_absolute_CXX=yes
12781 hardcode_minus_L_CXX=yes # Not in the search PATH,
12782 # but as the default
12783 # location of the library.
12784 ;;
12785 esac
12786
12787 case $cc_basename in
12788 CC*)
12789 # FIXME: insert proper C++ library support
12790 ld_shlibs_CXX=no
12791 ;;
12792 aCC*)
12793 case $host_cpu in
12794 hppa*64*)
12795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12796 ;;
12797 ia64*)
12798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12799 ;;
12800 *)
12801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12802 ;;
12803 esac
12804 # Commands to make compiler produce verbose output that lists
12805 # what "hidden" libraries, object files and flags are used when
12806 # linking a shared library.
12807 #
12808 # There doesn't appear to be a way to prevent this compiler from
12809 # explicitly linking system object files so we need to strip them
12810 # from the output so that they don't get included in the library
12811 # dependencies.
12812 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'
12813 ;;
12814 *)
12815 if test "$GXX" = yes; then
12816 if test $with_gnu_ld = no; then
12817 case $host_cpu in
12818 hppa*64*)
12819 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820 ;;
12821 ia64*)
12822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823 ;;
12824 *)
12825 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'
12826 ;;
12827 esac
12828 fi
12829 else
12830 # FIXME: insert proper C++ library support
12831 ld_shlibs_CXX=no
12832 fi
12833 ;;
12834 esac
12835 ;;
12836
12837 interix[3-9]*)
12838 hardcode_direct_CXX=no
12839 hardcode_shlibpath_var_CXX=no
12840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12841 export_dynamic_flag_spec_CXX='${wl}-E'
12842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12843 # Instead, shared libraries are loaded at an image base (0x10000000 by
12844 # default) and relocated if they conflict, which is a slow very memory
12845 # consuming and fragmenting process. To avoid this, we pick a random,
12846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12848 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'
12849 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'
12850 ;;
12851 irix5* | irix6*)
12852 case $cc_basename in
12853 CC*)
12854 # SGI C++
12855 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'
12856
12857 # Archives containing C++ object files must be created using
12858 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12859 # necessary to make sure instantiated templates are included
12860 # in the archive.
12861 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12862 ;;
12863 *)
12864 if test "$GXX" = yes; then
12865 if test "$with_gnu_ld" = no; then
12866 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'
12867 else
12868 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'
12869 fi
12870 fi
12871 link_all_deplibs_CXX=yes
12872 ;;
12873 esac
12874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12875 hardcode_libdir_separator_CXX=:
12876 inherit_rpath_CXX=yes
12877 ;;
12878
7a9d3fe8 12879 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
12880 case $cc_basename in
12881 KCC*)
12882 # Kuck and Associates, Inc. (KAI) C++ Compiler
12883
12884 # KCC will only create a shared library if the output file
12885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12886 # to its proper name (with version) after linking.
12887 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'
12888 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'
12889 # Commands to make compiler produce verbose output that lists
12890 # what "hidden" libraries, object files and flags are used when
12891 # linking a shared library.
12892 #
12893 # There doesn't appear to be a way to prevent this compiler from
12894 # explicitly linking system object files so we need to strip them
12895 # from the output so that they don't get included in the library
12896 # dependencies.
12897 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'
12898
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12901
12902 # Archives containing C++ object files must be created using
12903 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12904 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12905 ;;
12906 icpc* | ecpc* )
12907 # Intel C++
12908 with_gnu_ld=yes
12909 # version 8.0 and above of icpc choke on multiply defined symbols
12910 # if we add $predep_objects and $postdep_objects, however 7.1 and
12911 # earlier do not add the objects themselves.
12912 case `$CC -V 2>&1` in
12913 *"Version 7."*)
12914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915 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'
12916 ;;
12917 *) # Version 8.0 or newer
12918 tmp_idyn=
12919 case $host_cpu in
12920 ia64*) tmp_idyn=' -i_dynamic';;
12921 esac
12922 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923 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'
12924 ;;
12925 esac
12926 archive_cmds_need_lc_CXX=no
12927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12928 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12929 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12930 ;;
93e92f52 12931 pgCC* | pgcpp*)
1cf3d07d
SE
12932 # Portland Group C++ compiler
12933 case `$CC -V` in
93e92f52 12934 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
1cf3d07d
SE
12935 prelink_cmds_CXX='tpldir=Template.dir~
12936 rm -rf $tpldir~
12937 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12938 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12939 old_archive_cmds_CXX='tpldir=Template.dir~
12940 rm -rf $tpldir~
12941 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12942 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12943 $RANLIB $oldlib'
12944 archive_cmds_CXX='tpldir=Template.dir~
12945 rm -rf $tpldir~
12946 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12947 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12948 archive_expsym_cmds_CXX='tpldir=Template.dir~
12949 rm -rf $tpldir~
12950 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12951 $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'
12952 ;;
12953 *) # Version 6 will use weak symbols
12954 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12955 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'
12956 ;;
12957 esac
12958
12959 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12961 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'
12962 ;;
12963 cxx*)
12964 # Compaq C++
12965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12966 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'
12967
12968 runpath_var=LD_RUN_PATH
12969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12970 hardcode_libdir_separator_CXX=:
12971
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 #
12976 # There doesn't appear to be a way to prevent this compiler from
12977 # explicitly linking system object files so we need to strip them
12978 # from the output so that they don't get included in the library
12979 # dependencies.
12980 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'
12981 ;;
93e92f52
PG
12982 xl*)
12983 # IBM XL 8.0 on PPC, with GNU ld
12984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12986 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987 if test "x$supports_anon_versioning" = xyes; then
12988 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12990 echo "local: *; };" >> $output_objdir/$libname.ver~
12991 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12992 fi
12993 ;;
1cf3d07d
SE
12994 *)
12995 case `$CC -V 2>&1 | sed 5q` in
12996 *Sun\ C*)
12997 # Sun C++ 5.9
12998 no_undefined_flag_CXX=' -zdefs'
12999 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13000 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'
13001 hardcode_libdir_flag_spec_CXX='-R$libdir'
13002 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'
13003 compiler_needs_object_CXX=yes
13004
13005 # Not sure whether something based on
13006 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13007 # would be better.
13008 output_verbose_link_cmd='echo'
13009
13010 # Archives containing C++ object files must be created using
13011 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13012 # necessary to make sure instantiated templates are included
13013 # in the archive.
13014 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13015 ;;
13016 esac
13017 ;;
13018 esac
13019 ;;
13020
13021 lynxos*)
13022 # FIXME: insert proper C++ library support
13023 ld_shlibs_CXX=no
13024 ;;
13025
13026 m88k*)
13027 # FIXME: insert proper C++ library support
13028 ld_shlibs_CXX=no
13029 ;;
13030
13031 mvs*)
13032 case $cc_basename in
13033 cxx*)
13034 # FIXME: insert proper C++ library support
13035 ld_shlibs_CXX=no
13036 ;;
13037 *)
13038 # FIXME: insert proper C++ library support
13039 ld_shlibs_CXX=no
13040 ;;
13041 esac
13042 ;;
13043
13044 netbsd*)
13045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13046 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13047 wlarc=
13048 hardcode_libdir_flag_spec_CXX='-R$libdir'
13049 hardcode_direct_CXX=yes
13050 hardcode_shlibpath_var_CXX=no
13051 fi
13052 # Workaround some broken pre-1.5 toolchains
13053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13054 ;;
13055
13056 *nto* | *qnx*)
13057 ld_shlibs_CXX=yes
13058 ;;
13059
13060 openbsd2*)
13061 # C++ shared libraries are fairly broken
13062 ld_shlibs_CXX=no
13063 ;;
13064
13065 openbsd*)
93e92f52
PG
13066 if test -f /usr/libexec/ld.so; then
13067 hardcode_direct_CXX=yes
13068 hardcode_shlibpath_var_CXX=no
13069 hardcode_direct_absolute_CXX=yes
13070 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13073 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13074 export_dynamic_flag_spec_CXX='${wl}-E'
13075 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13076 fi
13077 output_verbose_link_cmd=echo
13078 else
13079 ld_shlibs_CXX=no
1cf3d07d 13080 fi
1cf3d07d
SE
13081 ;;
13082
13083 osf3* | osf4* | osf5*)
13084 case $cc_basename in
13085 KCC*)
13086 # Kuck and Associates, Inc. (KAI) C++ Compiler
13087
13088 # KCC will only create a shared library if the output file
13089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13090 # to its proper name (with version) after linking.
13091 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'
13092
13093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13094 hardcode_libdir_separator_CXX=:
13095
13096 # Archives containing C++ object files must be created using
13097 # the KAI C++ compiler.
13098 case $host in
13099 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13100 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13101 esac
13102 ;;
13103 RCC*)
13104 # Rational C++ 2.4.1
13105 # FIXME: insert proper C++ library support
13106 ld_shlibs_CXX=no
13107 ;;
13108 cxx*)
13109 case $host in
13110 osf3*)
13111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13112 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'
13113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13114 ;;
13115 *)
13116 allow_undefined_flag_CXX=' -expect_unresolved \*'
13117 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'
13118 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13119 echo "-hidden">> $lib.exp~
13120 $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~
13121 $RM $lib.exp'
13122 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13123 ;;
13124 esac
13125
13126 hardcode_libdir_separator_CXX=:
13127
13128 # Commands to make compiler produce verbose output that lists
13129 # what "hidden" libraries, object files and flags are used when
13130 # linking a shared library.
13131 #
13132 # There doesn't appear to be a way to prevent this compiler from
13133 # explicitly linking system object files so we need to strip them
13134 # from the output so that they don't get included in the library
13135 # dependencies.
13136 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'
13137 ;;
13138 *)
13139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13140 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13141 case $host in
13142 osf3*)
13143 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'
13144 ;;
13145 *)
13146 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'
13147 ;;
13148 esac
13149
13150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13151 hardcode_libdir_separator_CXX=:
13152
13153 # Commands to make compiler produce verbose output that lists
13154 # what "hidden" libraries, object files and flags are used when
13155 # linking a shared library.
13156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13157
13158 else
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 fi
13162 ;;
13163 esac
13164 ;;
13165
13166 psos*)
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13169 ;;
13170
13171 sunos4*)
13172 case $cc_basename in
13173 CC*)
13174 # Sun C++ 4.x
13175 # FIXME: insert proper C++ library support
13176 ld_shlibs_CXX=no
13177 ;;
13178 lcc*)
13179 # Lucid
13180 # FIXME: insert proper C++ library support
13181 ld_shlibs_CXX=no
13182 ;;
13183 *)
13184 # FIXME: insert proper C++ library support
13185 ld_shlibs_CXX=no
13186 ;;
13187 esac
13188 ;;
13189
13190 solaris*)
13191 case $cc_basename in
13192 CC*)
13193 # Sun C++ 4.2, 5.x and Centerline C++
13194 archive_cmds_need_lc_CXX=yes
13195 no_undefined_flag_CXX=' -zdefs'
13196 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13198 $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'
13199
13200 hardcode_libdir_flag_spec_CXX='-R$libdir'
13201 hardcode_shlibpath_var_CXX=no
13202 case $host_os in
13203 solaris2.[0-5] | solaris2.[0-5].*) ;;
13204 *)
13205 # The compiler driver will combine and reorder linker options,
13206 # but understands `-z linker_flag'.
13207 # Supported since Solaris 2.6 (maybe 2.5.1?)
13208 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13209 ;;
13210 esac
13211 link_all_deplibs_CXX=yes
13212
13213 output_verbose_link_cmd='echo'
13214
13215 # Archives containing C++ object files must be created using
13216 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13217 # necessary to make sure instantiated templates are included
13218 # in the archive.
13219 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13220 ;;
13221 gcx*)
13222 # Green Hills C++ Compiler
13223 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13224
13225 # The C++ compiler must be used to create the archive.
13226 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13227 ;;
13228 *)
13229 # GNU C++ compiler with Solaris linker
13230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13231 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13232 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13233 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13234 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13235 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13236
13237 # Commands to make compiler produce verbose output that lists
13238 # what "hidden" libraries, object files and flags are used when
13239 # linking a shared library.
13240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13241 else
13242 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13243 # platform.
13244 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13245 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13246 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13247
13248 # Commands to make compiler produce verbose output that lists
13249 # what "hidden" libraries, object files and flags are used when
13250 # linking a shared library.
13251 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13252 fi
13253
13254 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13255 case $host_os in
13256 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257 *)
13258 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13259 ;;
13260 esac
13261 fi
13262 ;;
13263 esac
13264 ;;
13265
13266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13267 no_undefined_flag_CXX='${wl}-z,text'
13268 archive_cmds_need_lc_CXX=no
13269 hardcode_shlibpath_var_CXX=no
13270 runpath_var='LD_RUN_PATH'
13271
13272 case $cc_basename in
13273 CC*)
13274 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13275 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13276 ;;
13277 *)
13278 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280 ;;
13281 esac
13282 ;;
13283
13284 sysv5* | sco3.2v5* | sco5v6*)
13285 # Note: We can NOT use -z defs as we might desire, because we do not
13286 # link with -lc, and that would cause any symbols used from libc to
13287 # always be unresolved, which means just about no library would
13288 # ever link correctly. If we're not using GNU ld we use -z text
13289 # though, which does catch some bad symbols but isn't as heavy-handed
13290 # as -z defs.
13291 no_undefined_flag_CXX='${wl}-z,text'
13292 allow_undefined_flag_CXX='${wl}-z,nodefs'
13293 archive_cmds_need_lc_CXX=no
13294 hardcode_shlibpath_var_CXX=no
13295 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13296 hardcode_libdir_separator_CXX=':'
13297 link_all_deplibs_CXX=yes
13298 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13299 runpath_var='LD_RUN_PATH'
13300
13301 case $cc_basename in
13302 CC*)
13303 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305 ;;
13306 *)
13307 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309 ;;
13310 esac
13311 ;;
13312
13313 tandem*)
13314 case $cc_basename in
13315 NCC*)
13316 # NonStop-UX NCC 3.20
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 *)
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13323 ;;
13324 esac
13325 ;;
13326
13327 vxworks*)
13328 # FIXME: insert proper C++ library support
13329 ld_shlibs_CXX=no
13330 ;;
13331
13332 *)
13333 # FIXME: insert proper C++ library support
13334 ld_shlibs_CXX=no
13335 ;;
13336 esac
13337
5213506e
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13339$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
13340 test "$ld_shlibs_CXX" = no && can_build_shared=no
13341
13342 GCC_CXX="$GXX"
13343 LD_CXX="$LD"
13344
13345 ## CAVEAT EMPTOR:
13346 ## There is no encapsulation within the following macros, do not change
13347 ## the running order or otherwise move them around unless you know exactly
13348 ## what you are doing...
13349 # Dependencies to place before and after the object being linked:
13350predep_objects_CXX=
13351postdep_objects_CXX=
13352predeps_CXX=
13353postdeps_CXX=
13354compiler_lib_search_path_CXX=
13355
13356cat > conftest.$ac_ext <<_LT_EOF
13357class Foo
13358{
13359public:
13360 Foo (void) { a = 0; }
13361private:
13362 int a;
13363};
13364_LT_EOF
13365
5213506e 13366if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13367 (eval $ac_compile) 2>&5
13368 ac_status=$?
5213506e
RW
13369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370 test $ac_status = 0; }; then
1cf3d07d
SE
13371 # Parse the compiler output and extract the necessary
13372 # objects, libraries and library flags.
13373
13374 # Sentinel used to keep track of whether or not we are before
13375 # the conftest object file.
13376 pre_test_object_deps_done=no
13377
93e92f52 13378 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13379 case $p in
13380
13381 -L* | -R* | -l*)
13382 # Some compilers place space between "-{L,R}" and the path.
13383 # Remove the space.
13384 if test $p = "-L" ||
13385 test $p = "-R"; then
13386 prev=$p
13387 continue
13388 else
13389 prev=
13390 fi
13391
13392 if test "$pre_test_object_deps_done" = no; then
13393 case $p in
13394 -L* | -R*)
13395 # Internal compiler library paths should come after those
13396 # provided the user. The postdeps already come after the
13397 # user supplied libs so there is no need to process them.
13398 if test -z "$compiler_lib_search_path_CXX"; then
13399 compiler_lib_search_path_CXX="${prev}${p}"
13400 else
13401 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13402 fi
13403 ;;
13404 # The "-l" case would never come before the object being
13405 # linked, so don't bother handling this case.
13406 esac
13407 else
13408 if test -z "$postdeps_CXX"; then
13409 postdeps_CXX="${prev}${p}"
13410 else
13411 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13412 fi
13413 fi
13414 ;;
13415
13416 *.$objext)
13417 # This assumes that the test object file only shows up
13418 # once in the compiler output.
13419 if test "$p" = "conftest.$objext"; then
13420 pre_test_object_deps_done=yes
13421 continue
13422 fi
13423
13424 if test "$pre_test_object_deps_done" = no; then
13425 if test -z "$predep_objects_CXX"; then
13426 predep_objects_CXX="$p"
13427 else
13428 predep_objects_CXX="$predep_objects_CXX $p"
13429 fi
13430 else
13431 if test -z "$postdep_objects_CXX"; then
13432 postdep_objects_CXX="$p"
13433 else
13434 postdep_objects_CXX="$postdep_objects_CXX $p"
13435 fi
13436 fi
13437 ;;
13438
13439 *) ;; # Ignore the rest.
13440
13441 esac
13442 done
13443
13444 # Clean up.
13445 rm -f a.out a.exe
13446else
13447 echo "libtool.m4: error: problem compiling CXX test program"
13448fi
13449
13450$RM -f confest.$objext
13451
13452# PORTME: override above test on systems where it is broken
13453case $host_os in
13454interix[3-9]*)
13455 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13456 # hack all around it, let's just trust "g++" to DTRT.
13457 predep_objects_CXX=
13458 postdep_objects_CXX=
13459 postdeps_CXX=
13460 ;;
13461
13462linux*)
13463 case `$CC -V 2>&1 | sed 5q` in
13464 *Sun\ C*)
13465 # Sun C++ 5.9
13466
13467 # The more standards-conforming stlport4 library is
13468 # incompatible with the Cstd library. Avoid specifying
13469 # it if it's in CXXFLAGS. Ignore libCrun as
13470 # -library=stlport4 depends on it.
13471 case " $CXX $CXXFLAGS " in
13472 *" -library=stlport4 "*)
13473 solaris_use_stlport4=yes
3343fdd2 13474 ;;
1cf3d07d
SE
13475 esac
13476
13477 if test "$solaris_use_stlport4" != yes; then
13478 postdeps_CXX='-library=Cstd -library=Crun'
13479 fi
13480 ;;
13481 esac
13482 ;;
13483
13484solaris*)
13485 case $cc_basename in
13486 CC*)
13487 # The more standards-conforming stlport4 library is
13488 # incompatible with the Cstd library. Avoid specifying
13489 # it if it's in CXXFLAGS. Ignore libCrun as
13490 # -library=stlport4 depends on it.
13491 case " $CXX $CXXFLAGS " in
13492 *" -library=stlport4 "*)
13493 solaris_use_stlport4=yes
3343fdd2
AO
13494 ;;
13495 esac
1cf3d07d
SE
13496
13497 # Adding this requires a known-good setup of shared libraries for
13498 # Sun compiler versions before 5.6, else PIC objects from an old
13499 # archive will be linked into the output, leading to subtle bugs.
13500 if test "$solaris_use_stlport4" != yes; then
13501 postdeps_CXX='-library=Cstd -library=Crun'
13502 fi
13503 ;;
13504 esac
13505 ;;
13506esac
13507
13508
13509case " $postdeps_CXX " in
13510*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13511esac
93e92f52
PG
13512 compiler_lib_search_dirs_CXX=
13513if test -n "${compiler_lib_search_path_CXX}"; then
13514 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13515fi
13516
13517
13518
13519
13520
1cf3d07d
SE
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547 lt_prog_compiler_wl_CXX=
13548lt_prog_compiler_pic_CXX=
13549lt_prog_compiler_static_CXX=
13550
5213506e
RW
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13552$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13553
13554 # C++ specific cases for pic, static, wl, etc.
13555 if test "$GXX" = yes; then
13556 lt_prog_compiler_wl_CXX='-Wl,'
13557 lt_prog_compiler_static_CXX='-static'
13558
13559 case $host_os in
13560 aix*)
13561 # All AIX code is PIC.
13562 if test "$host_cpu" = ia64; then
13563 # AIX 5 now supports IA64 processor
13564 lt_prog_compiler_static_CXX='-Bstatic'
13565 fi
66deb2be 13566 ;;
93e92f52 13567
1cf3d07d 13568 amigaos*)
93e92f52
PG
13569 case $host_cpu in
13570 powerpc)
13571 # see comment about AmigaOS4 .so support
13572 lt_prog_compiler_pic_CXX='-fPIC'
13573 ;;
13574 m68k)
13575 # FIXME: we need at least 68020 code to build shared libraries, but
13576 # adding the `-m68020' flag to GCC prevents building anything better,
13577 # like `-m68040'.
13578 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13579 ;;
13580 esac
66deb2be 13581 ;;
93e92f52 13582
1cf3d07d
SE
13583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13584 # PIC is the default for these OSes.
13585 ;;
93e92f52 13586 mingw* | cygwin* | os2* | pw32* | cegcc*)
1cf3d07d
SE
13587 # This hack is so that the source file can tell whether it is being
13588 # built for inclusion in a dll (and should export symbols for example).
13589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13590 # (--disable-auto-import) libraries
13591 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13592 ;;
13593 darwin* | rhapsody*)
13594 # PIC is the default on this platform
13595 # Common symbols not allowed in MH_DYLIB files
13596 lt_prog_compiler_pic_CXX='-fno-common'
13597 ;;
13598 *djgpp*)
13599 # DJGPP does not support shared libraries at all
13600 lt_prog_compiler_pic_CXX=
13601 ;;
13602 interix[3-9]*)
13603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13604 # Instead, we relocate shared libraries at runtime.
13605 ;;
13606 sysv4*MP*)
13607 if test -d /usr/nec; then
13608 lt_prog_compiler_pic_CXX=-Kconform_pic
13609 fi
66deb2be 13610 ;;
1cf3d07d 13611 hpux*)
93e92f52
PG
13612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13614 # sets the default TLS model and affects inlining.
1cf3d07d 13615 case $host_cpu in
93e92f52 13616 hppa*64*)
1cf3d07d
SE
13617 ;;
13618 *)
13619 lt_prog_compiler_pic_CXX='-fPIC'
13620 ;;
13621 esac
13622 ;;
13623 *qnx* | *nto*)
13624 # QNX uses GNU C++, but need to define -shared option too, otherwise
13625 # it will coredump.
13626 lt_prog_compiler_pic_CXX='-fPIC -shared'
13627 ;;
13628 *)
13629 lt_prog_compiler_pic_CXX='-fPIC'
13630 ;;
13631 esac
13632 else
13633 case $host_os in
f3641e7e 13634 aix[4-9]*)
1cf3d07d
SE
13635 # All AIX code is PIC.
13636 if test "$host_cpu" = ia64; then
13637 # AIX 5 now supports IA64 processor
13638 lt_prog_compiler_static_CXX='-Bstatic'
13639 else
13640 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13641 fi
13642 ;;
13643 chorus*)
13644 case $cc_basename in
13645 cxch68*)
13646 # Green Hills C++ Compiler
13647 # _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"
13648 ;;
13649 esac
13650 ;;
1cf3d07d
SE
13651 dgux*)
13652 case $cc_basename in
13653 ec++*)
13654 lt_prog_compiler_pic_CXX='-KPIC'
13655 ;;
13656 ghcx*)
13657 # Green Hills C++ Compiler
13658 lt_prog_compiler_pic_CXX='-pic'
13659 ;;
13660 *)
13661 ;;
13662 esac
13663 ;;
13664 freebsd* | dragonfly*)
13665 # FreeBSD uses GNU C++
13666 ;;
13667 hpux9* | hpux10* | hpux11*)
13668 case $cc_basename in
13669 CC*)
13670 lt_prog_compiler_wl_CXX='-Wl,'
13671 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13672 if test "$host_cpu" != ia64; then
13673 lt_prog_compiler_pic_CXX='+Z'
13674 fi
13675 ;;
13676 aCC*)
13677 lt_prog_compiler_wl_CXX='-Wl,'
13678 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13679 case $host_cpu in
13680 hppa*64*|ia64*)
13681 # +Z the default
13682 ;;
13683 *)
13684 lt_prog_compiler_pic_CXX='+Z'
13685 ;;
13686 esac
13687 ;;
13688 *)
13689 ;;
13690 esac
13691 ;;
13692 interix*)
13693 # This is c89, which is MS Visual C++ (no shared libs)
13694 # Anyone wants to do a port?
13695 ;;
13696 irix5* | irix6* | nonstopux*)
13697 case $cc_basename in
13698 CC*)
13699 lt_prog_compiler_wl_CXX='-Wl,'
13700 lt_prog_compiler_static_CXX='-non_shared'
13701 # CC pic flag -KPIC is the default.
13702 ;;
13703 *)
13704 ;;
13705 esac
13706 ;;
7a9d3fe8 13707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13708 case $cc_basename in
13709 KCC*)
13710 # KAI C++ Compiler
13711 lt_prog_compiler_wl_CXX='--backend -Wl,'
13712 lt_prog_compiler_pic_CXX='-fPIC'
13713 ;;
93e92f52
PG
13714 ecpc* )
13715 # old Intel C++ for x86_64 which still supported -KPIC.
1cf3d07d
SE
13716 lt_prog_compiler_wl_CXX='-Wl,'
13717 lt_prog_compiler_pic_CXX='-KPIC'
13718 lt_prog_compiler_static_CXX='-static'
13719 ;;
93e92f52
PG
13720 icpc* )
13721 # Intel C++, used to be incompatible with GCC.
13722 # ICC 10 doesn't accept -KPIC any more.
13723 lt_prog_compiler_wl_CXX='-Wl,'
13724 lt_prog_compiler_pic_CXX='-fPIC'
13725 lt_prog_compiler_static_CXX='-static'
13726 ;;
13727 pgCC* | pgcpp*)
1cf3d07d
SE
13728 # Portland Group C++ compiler
13729 lt_prog_compiler_wl_CXX='-Wl,'
13730 lt_prog_compiler_pic_CXX='-fpic'
13731 lt_prog_compiler_static_CXX='-Bstatic'
13732 ;;
13733 cxx*)
13734 # Compaq C++
13735 # Make sure the PIC flag is empty. It appears that all Alpha
13736 # Linux and Compaq Tru64 Unix objects are PIC.
13737 lt_prog_compiler_pic_CXX=
13738 lt_prog_compiler_static_CXX='-non_shared'
13739 ;;
93e92f52
PG
13740 xlc* | xlC*)
13741 # IBM XL 8.0 on PPC
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_pic_CXX='-qpic'
13744 lt_prog_compiler_static_CXX='-qstaticlink'
13745 ;;
1cf3d07d
SE
13746 *)
13747 case `$CC -V 2>&1 | sed 5q` in
13748 *Sun\ C*)
13749 # Sun C++ 5.9
13750 lt_prog_compiler_pic_CXX='-KPIC'
13751 lt_prog_compiler_static_CXX='-Bstatic'
13752 lt_prog_compiler_wl_CXX='-Qoption ld '
13753 ;;
13754 esac
13755 ;;
13756 esac
13757 ;;
13758 lynxos*)
13759 ;;
13760 m88k*)
13761 ;;
13762 mvs*)
13763 case $cc_basename in
13764 cxx*)
13765 lt_prog_compiler_pic_CXX='-W c,exportall'
13766 ;;
13767 *)
13768 ;;
13769 esac
13770 ;;
13771 netbsd*)
13772 ;;
13773 *qnx* | *nto*)
13774 # QNX uses GNU C++, but need to define -shared option too, otherwise
13775 # it will coredump.
13776 lt_prog_compiler_pic_CXX='-fPIC -shared'
13777 ;;
13778 osf3* | osf4* | osf5*)
13779 case $cc_basename in
13780 KCC*)
13781 lt_prog_compiler_wl_CXX='--backend -Wl,'
13782 ;;
13783 RCC*)
13784 # Rational C++ 2.4.1
13785 lt_prog_compiler_pic_CXX='-pic'
13786 ;;
13787 cxx*)
13788 # Digital/Compaq C++
13789 lt_prog_compiler_wl_CXX='-Wl,'
13790 # Make sure the PIC flag is empty. It appears that all Alpha
13791 # Linux and Compaq Tru64 Unix objects are PIC.
13792 lt_prog_compiler_pic_CXX=
13793 lt_prog_compiler_static_CXX='-non_shared'
13794 ;;
13795 *)
13796 ;;
13797 esac
13798 ;;
13799 psos*)
13800 ;;
13801 solaris*)
13802 case $cc_basename in
13803 CC*)
13804 # Sun C++ 4.2, 5.x and Centerline C++
13805 lt_prog_compiler_pic_CXX='-KPIC'
13806 lt_prog_compiler_static_CXX='-Bstatic'
13807 lt_prog_compiler_wl_CXX='-Qoption ld '
13808 ;;
13809 gcx*)
13810 # Green Hills C++ Compiler
13811 lt_prog_compiler_pic_CXX='-PIC'
13812 ;;
13813 *)
13814 ;;
13815 esac
13816 ;;
13817 sunos4*)
13818 case $cc_basename in
13819 CC*)
13820 # Sun C++ 4.x
13821 lt_prog_compiler_pic_CXX='-pic'
13822 lt_prog_compiler_static_CXX='-Bstatic'
13823 ;;
13824 lcc*)
13825 # Lucid
13826 lt_prog_compiler_pic_CXX='-pic'
13827 ;;
13828 *)
13829 ;;
13830 esac
13831 ;;
13832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13833 case $cc_basename in
13834 CC*)
13835 lt_prog_compiler_wl_CXX='-Wl,'
13836 lt_prog_compiler_pic_CXX='-KPIC'
13837 lt_prog_compiler_static_CXX='-Bstatic'
13838 ;;
13839 esac
13840 ;;
13841 tandem*)
13842 case $cc_basename in
13843 NCC*)
13844 # NonStop-UX NCC 3.20
13845 lt_prog_compiler_pic_CXX='-KPIC'
13846 ;;
13847 *)
13848 ;;
13849 esac
13850 ;;
13851 vxworks*)
13852 ;;
13853 *)
13854 lt_prog_compiler_can_build_shared_CXX=no
13855 ;;
66deb2be 13856 esac
1cf3d07d
SE
13857 fi
13858
13859case $host_os in
13860 # For platforms which do not support PIC, -DPIC is meaningless:
13861 *djgpp*)
13862 lt_prog_compiler_pic_CXX=
13863 ;;
13864 *)
13865 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13866 ;;
13867esac
5213506e
RW
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13869$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
1cf3d07d
SE
13870
13871
13872
13873#
13874# Check to make sure the PIC flag actually works.
13875#
13876if test -n "$lt_prog_compiler_pic_CXX"; then
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13878$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13879if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
1cf3d07d 13881else
93e92f52 13882 lt_cv_prog_compiler_pic_works_CXX=no
1cf3d07d
SE
13883 ac_outfile=conftest.$ac_objext
13884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13885 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13886 # Insert the option either (1) after the last *FLAGS variable, or
13887 # (2) before a word containing "conftest.", or (3) at the end.
13888 # Note that $ac_compile itself does not contain backslashes and begins
13889 # with a dollar sign (not a hyphen), so the echo should work correctly.
13890 # The option is referenced via a variable to avoid confusing sed.
13891 lt_compile=`echo "$ac_compile" | $SED \
13892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13894 -e 's:$: $lt_compiler_flag:'`
5213506e 13895 (eval echo "\"\$as_me:13895: $lt_compile\"" >&5)
1cf3d07d
SE
13896 (eval "$lt_compile" 2>conftest.err)
13897 ac_status=$?
13898 cat conftest.err >&5
5213506e 13899 echo "$as_me:13899: \$? = $ac_status" >&5
1cf3d07d
SE
13900 if (exit $ac_status) && test -s "$ac_outfile"; then
13901 # The compiler can only warn and ignore the option if not recognized
13902 # So say no if there are warnings other than the usual output.
13903 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 13906 lt_cv_prog_compiler_pic_works_CXX=yes
1cf3d07d
SE
13907 fi
13908 fi
13909 $RM conftest*
13910
13911fi
5213506e
RW
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13913$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1cf3d07d 13914
93e92f52 13915if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1cf3d07d
SE
13916 case $lt_prog_compiler_pic_CXX in
13917 "" | " "*) ;;
13918 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13919 esac
13920else
13921 lt_prog_compiler_pic_CXX=
13922 lt_prog_compiler_can_build_shared_CXX=no
13923fi
13924
13925fi
13926
13927
13928
13929#
13930# Check to make sure the static flag actually works.
13931#
13932wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5213506e
RW
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13934$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13935if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
1cf3d07d 13937else
93e92f52 13938 lt_cv_prog_compiler_static_works_CXX=no
1cf3d07d
SE
13939 save_LDFLAGS="$LDFLAGS"
13940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13943 # The linker can only warn and ignore the option if not recognized
13944 # So say no if there are warnings
13945 if test -s conftest.err; then
13946 # Append any errors to the config.log.
13947 cat conftest.err 1>&5
13948 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13950 if diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 13951 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13952 fi
13953 else
93e92f52 13954 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13955 fi
13956 fi
93e92f52 13957 $RM -r conftest*
1cf3d07d
SE
13958 LDFLAGS="$save_LDFLAGS"
13959
13960fi
5213506e
RW
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13962$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1cf3d07d 13963
93e92f52 13964if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1cf3d07d
SE
13965 :
13966else
13967 lt_prog_compiler_static_CXX=
13968fi
13969
13970
13971
13972
5213506e
RW
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13974$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13975if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13977else
13978 lt_cv_prog_compiler_c_o_CXX=no
13979 $RM -r conftest 2>/dev/null
13980 mkdir conftest
13981 cd conftest
13982 mkdir out
13983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13984
13985 lt_compiler_flag="-o out/conftest2.$ac_objext"
13986 # Insert the option either (1) after the last *FLAGS variable, or
13987 # (2) before a word containing "conftest.", or (3) at the end.
13988 # Note that $ac_compile itself does not contain backslashes and begins
13989 # with a dollar sign (not a hyphen), so the echo should work correctly.
13990 lt_compile=`echo "$ac_compile" | $SED \
13991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993 -e 's:$: $lt_compiler_flag:'`
5213506e 13994 (eval echo "\"\$as_me:13994: $lt_compile\"" >&5)
1cf3d07d
SE
13995 (eval "$lt_compile" 2>out/conftest.err)
13996 ac_status=$?
13997 cat out/conftest.err >&5
5213506e 13998 echo "$as_me:13998: \$? = $ac_status" >&5
1cf3d07d
SE
13999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14000 then
14001 # The compiler can only warn and ignore the option if not recognized
14002 # So say no if there are warnings
14003 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14006 lt_cv_prog_compiler_c_o_CXX=yes
14007 fi
14008 fi
14009 chmod u+w . 2>&5
14010 $RM conftest*
14011 # SGI C++ compiler will create directory out/ii_files/ for
14012 # template instantiation
14013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14014 $RM out/* && rmdir out
14015 cd ..
14016 $RM -r conftest
14017 $RM conftest*
14018
14019fi
5213506e
RW
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14021$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
14022
14023
14024
5213506e
RW
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14027if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14029else
14030 lt_cv_prog_compiler_c_o_CXX=no
14031 $RM -r conftest 2>/dev/null
14032 mkdir conftest
14033 cd conftest
14034 mkdir out
14035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14036
14037 lt_compiler_flag="-o out/conftest2.$ac_objext"
14038 # Insert the option either (1) after the last *FLAGS variable, or
14039 # (2) before a word containing "conftest.", or (3) at the end.
14040 # Note that $ac_compile itself does not contain backslashes and begins
14041 # with a dollar sign (not a hyphen), so the echo should work correctly.
14042 lt_compile=`echo "$ac_compile" | $SED \
14043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14045 -e 's:$: $lt_compiler_flag:'`
5213506e 14046 (eval echo "\"\$as_me:14046: $lt_compile\"" >&5)
1cf3d07d
SE
14047 (eval "$lt_compile" 2>out/conftest.err)
14048 ac_status=$?
14049 cat out/conftest.err >&5
5213506e 14050 echo "$as_me:14050: \$? = $ac_status" >&5
1cf3d07d
SE
14051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14052 then
14053 # The compiler can only warn and ignore the option if not recognized
14054 # So say no if there are warnings
14055 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14058 lt_cv_prog_compiler_c_o_CXX=yes
14059 fi
3343fdd2 14060 fi
1cf3d07d
SE
14061 chmod u+w . 2>&5
14062 $RM conftest*
14063 # SGI C++ compiler will create directory out/ii_files/ for
14064 # template instantiation
14065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14066 $RM out/* && rmdir out
14067 cd ..
14068 $RM -r conftest
14069 $RM conftest*
14070
14071fi
5213506e
RW
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14073$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
14074
14075
14076
14077
14078hard_links="nottested"
14079if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14080 # do not overwrite the value of need_locks provided by the user
5213506e
RW
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14082$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
14083 hard_links=yes
14084 $RM conftest*
14085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14086 touch conftest.a
14087 ln conftest.a conftest.b 2>&5 || hard_links=no
14088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14090$as_echo "$hard_links" >&6; }
1cf3d07d 14091 if test "$hard_links" = no; then
5213506e
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d 14094 need_locks=warn
66deb2be 14095 fi
1cf3d07d
SE
14096else
14097 need_locks=no
14098fi
14099
14100
14101
5213506e
RW
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14103$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14104
14105 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106 case $host_os in
f3641e7e 14107 aix[4-9]*)
1cf3d07d
SE
14108 # If we're using GNU nm, then we don't want the "-C" option.
14109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14111 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'
14112 else
14113 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'
14114 fi
14115 ;;
14116 pw32*)
14117 export_symbols_cmds_CXX="$ltdll_cmds"
14118 ;;
93e92f52 14119 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
14120 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'
14121 ;;
14122 *)
14123 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
66deb2be 14124 ;;
1cf3d07d 14125 esac
93e92f52 14126 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
66deb2be 14127
5213506e
RW
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14129$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
14130test "$ld_shlibs_CXX" = no && can_build_shared=no
14131
14132with_gnu_ld_CXX=$with_gnu_ld
14133
14134
14135
14136
14137
14138
14139#
14140# Do we need to explicitly link libc?
14141#
14142case "x$archive_cmds_need_lc_CXX" in
14143x|xyes)
14144 # Assume -lc should be added
14145 archive_cmds_need_lc_CXX=yes
14146
14147 if test "$enable_shared" = yes && test "$GCC" = yes; then
14148 case $archive_cmds_CXX in
14149 *'~'*)
14150 # FIXME: we may have to deal with multi-command sequences.
14151 ;;
14152 '$CC '*)
14153 # Test whether the compiler implicitly links with -lc since on some
14154 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14155 # to ld, don't add -lc before -lgcc.
5213506e
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14157$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14158if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14159 $as_echo_n "(cached) " >&6
baafc534
RW
14160else
14161 $RM conftest*
14162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14163
5213506e 14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47935194
NN
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
5213506e
RW
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14169 soname=conftest
14170 lib=conftest
14171 libobjs=conftest.$ac_objext
14172 deplibs=
14173 wl=$lt_prog_compiler_wl_CXX
14174 pic_flag=$lt_prog_compiler_pic_CXX
14175 compiler_flags=-v
14176 linker_flags=-v
14177 verstring=
14178 output_objdir=.
14179 libname=conftest
14180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14181 allow_undefined_flag_CXX=
5213506e 14182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14183 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
47935194 14184 ac_status=$?
5213506e
RW
14185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186 test $ac_status = 0; }
baafc534
RW
14187 then
14188 lt_cv_archive_cmds_need_lc_CXX=no
14189 else
14190 lt_cv_archive_cmds_need_lc_CXX=yes
14191 fi
14192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14193 else
14194 cat conftest.err 1>&5
14195 fi
14196 $RM conftest*
14197
14198fi
5213506e
RW
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14200$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
baafc534 14201 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13b6e5b4
AO
14202 ;;
14203 esac
14204 fi
13b6e5b4 14205 ;;
1cf3d07d 14206esac
13b6e5b4 14207
115dabb8 14208
115dabb8 14209
47935194 14210
47935194 14211
47935194 14212
47935194 14213
2f7bf5b7 14214
66deb2be 14215
66deb2be 14216
66deb2be 14217
115dabb8 14218
47935194 14219
47935194 14220
1cf3d07d
SE
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
5213506e
RW
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14272$as_echo_n "checking dynamic linker characteristics... " >&6; }
93e92f52 14273
1cf3d07d
SE
14274library_names_spec=
14275libname_spec='lib$name'
14276soname_spec=
14277shrext_cmds=".so"
14278postinstall_cmds=
14279postuninstall_cmds=
14280finish_cmds=
14281finish_eval=
14282shlibpath_var=
14283shlibpath_overrides_runpath=unknown
14284version_type=none
14285dynamic_linker="$host_os ld.so"
14286sys_lib_dlsearch_path_spec="/lib /usr/lib"
14287need_lib_prefix=unknown
14288hardcode_into_libs=no
14289
14290# when you set need_version to no, make sure it does not cause -set_version
14291# flags to be left without arguments
14292need_version=unknown
14293
14294case $host_os in
14295aix3*)
14296 version_type=linux
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14298 shlibpath_var=LIBPATH
14299
14300 # AIX 3 has no versioning support, so we append a major version to the name.
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 ;;
14303
f3641e7e 14304aix[4-9]*)
1cf3d07d
SE
14305 version_type=linux
14306 need_lib_prefix=no
14307 need_version=no
14308 hardcode_into_libs=yes
14309 if test "$host_cpu" = ia64; then
14310 # AIX 5 supports IA64
14311 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14312 shlibpath_var=LD_LIBRARY_PATH
14313 else
14314 # With GCC up to 2.95.x, collect2 would create an import file
14315 # for dependence libraries. The import file would start with
14316 # the line `#! .'. This would cause the generated library to
14317 # depend on `.', always an invalid library. This was fixed in
14318 # development snapshots of GCC prior to 3.0.
14319 case $host_os in
14320 aix4 | aix4.[01] | aix4.[01].*)
14321 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14322 echo ' yes '
14323 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14324 :
14325 else
14326 can_build_shared=no
14327 fi
47935194 14328 ;;
1cf3d07d
SE
14329 esac
14330 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14331 # soname into executable. Probably we can add versioning support to
14332 # collect2, so additional links can be useful in future.
14333 if test "$aix_use_runtimelinking" = yes; then
14334 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14335 # instead of lib<name>.a to let people know that these are not
14336 # typical AIX shared libraries.
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338 else
14339 # We preserve .a as extension for shared libraries through AIX4.2
14340 # and later when we are not doing run time linking.
14341 library_names_spec='${libname}${release}.a $libname.a'
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 fi
14344 shlibpath_var=LIBPATH
14345 fi
14346 ;;
14347
14348amigaos*)
93e92f52
PG
14349 case $host_cpu in
14350 powerpc)
14351 # Since July 2007 AmigaOS4 officially supports .so libraries.
14352 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354 ;;
14355 m68k)
1cf3d07d
SE
14356 library_names_spec='$libname.ixlibrary $libname.a'
14357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14358 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'
93e92f52
PG
14359 ;;
14360 esac
1cf3d07d 14361 ;;
115dabb8 14362
1cf3d07d
SE
14363beos*)
14364 library_names_spec='${libname}${shared_ext}'
14365 dynamic_linker="$host_os ld.so"
14366 shlibpath_var=LIBRARY_PATH
14367 ;;
66deb2be 14368
1cf3d07d
SE
14369bsdi[45]*)
14370 version_type=linux
14371 need_version=no
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14378 # the default ld.so.conf also contains /usr/contrib/lib and
14379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14380 # libtool to hard-code these into programs
14381 ;;
14382
93e92f52 14383cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14384 version_type=windows
14385 shrext_cmds=".dll"
14386 need_version=no
14387 need_lib_prefix=no
14388
93e92f52
PG
14389 case $GCC,$host_os in
14390 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
14391 library_names_spec='$libname.dll.a'
14392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14393 postinstall_cmds='base_file=`basename \${file}`~
14394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14395 dldir=$destdir/`dirname \$dlpath`~
14396 test -d \$dldir || mkdir -p \$dldir~
14397 $install_prog $dir/$dlname \$dldir/$dlname~
14398 chmod a+x \$dldir/$dlname~
14399 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14400 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14401 fi'
14402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14403 dlpath=$dir/\$dldll~
14404 $RM \$dlpath'
14405 shlibpath_overrides_runpath=yes
14406
14407 case $host_os in
14408 cygwin*)
14409 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14410 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14412 ;;
93e92f52 14413 mingw* | cegcc*)
1cf3d07d
SE
14414 # MinGW DLLs use traditional 'lib' prefix
14415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14416 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14417 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14418 # It is most probably a Windows format PATH printed by
14419 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14420 # path with ; separators, and with drive letters. We can handle the
14421 # drive letters (cygwin fileutils understands them), so leave them,
14422 # especially as we might pass files found there to a mingw objdump,
14423 # which wouldn't understand a cygwinified path. Ahh.
14424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14425 else
14426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14427 fi
14428 ;;
14429 pw32*)
14430 # pw32 DLLs use 'pw' prefix rather than 'lib'
14431 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432 ;;
47935194 14433 esac
1cf3d07d 14434 ;;
115dabb8 14435
1cf3d07d
SE
14436 *)
14437 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14438 ;;
14439 esac
14440 dynamic_linker='Win32 ld.exe'
14441 # FIXME: first we should search . and the directory the executable is in
14442 shlibpath_var=PATH
14443 ;;
115dabb8 14444
1cf3d07d
SE
14445darwin* | rhapsody*)
14446 dynamic_linker="$host_os dyld"
14447 version_type=darwin
14448 need_lib_prefix=no
14449 need_version=no
14450 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14451 soname_spec='${libname}${release}${major}$shared_ext'
14452 shlibpath_overrides_runpath=yes
14453 shlibpath_var=DYLD_LIBRARY_PATH
14454 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14455
14456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14457 ;;
115dabb8 14458
1cf3d07d
SE
14459dgux*)
14460 version_type=linux
14461 need_lib_prefix=no
14462 need_version=no
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 ;;
115dabb8 14467
1cf3d07d
SE
14468freebsd1*)
14469 dynamic_linker=no
14470 ;;
66deb2be 14471
1cf3d07d
SE
14472freebsd* | dragonfly*)
14473 # DragonFly does not have aout. When/if they implement a new
14474 # versioning mechanism, adjust this.
14475 if test -x /usr/bin/objformat; then
14476 objformat=`/usr/bin/objformat`
47935194 14477 else
1cf3d07d
SE
14478 case $host_os in
14479 freebsd[123]*) objformat=aout ;;
14480 *) objformat=elf ;;
14481 esac
47935194 14482 fi
1cf3d07d
SE
14483 version_type=freebsd-$objformat
14484 case $version_type in
14485 freebsd-elf*)
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14487 need_version=no
14488 need_lib_prefix=no
14489 ;;
14490 freebsd-*)
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14492 need_version=yes
14493 ;;
14494 esac
14495 shlibpath_var=LD_LIBRARY_PATH
14496 case $host_os in
14497 freebsd2*)
14498 shlibpath_overrides_runpath=yes
14499 ;;
14500 freebsd3.[01]* | freebsdelf3.[01]*)
14501 shlibpath_overrides_runpath=yes
14502 hardcode_into_libs=yes
14503 ;;
14504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14506 shlibpath_overrides_runpath=no
14507 hardcode_into_libs=yes
14508 ;;
14509 *) # from 4.6 on, and DragonFly
14510 shlibpath_overrides_runpath=yes
14511 hardcode_into_libs=yes
14512 ;;
14513 esac
14514 ;;
47935194 14515
1cf3d07d
SE
14516gnu*)
14517 version_type=linux
14518 need_lib_prefix=no
14519 need_version=no
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 hardcode_into_libs=yes
14524 ;;
47935194 14525
1cf3d07d
SE
14526hpux9* | hpux10* | hpux11*)
14527 # Give a soname corresponding to the major version so that dld.sl refuses to
14528 # link against other versions.
14529 version_type=sunos
14530 need_lib_prefix=no
14531 need_version=no
14532 case $host_cpu in
14533 ia64*)
14534 shrext_cmds='.so'
14535 hardcode_into_libs=yes
14536 dynamic_linker="$host_os dld.so"
14537 shlibpath_var=LD_LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 if test "X$HPUX_IA64_MODE" = X32; then
14542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14543 else
14544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14545 fi
14546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14547 ;;
14548 hppa*64*)
14549 shrext_cmds='.sl'
14550 hardcode_into_libs=yes
14551 dynamic_linker="$host_os dld.sl"
14552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14558 ;;
14559 *)
14560 shrext_cmds='.sl'
14561 dynamic_linker="$host_os dld.sl"
14562 shlibpath_var=SHLIB_PATH
14563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 ;;
14567 esac
14568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14569 postinstall_cmds='chmod 555 $lib'
14570 ;;
47935194 14571
1cf3d07d
SE
14572interix[3-9]*)
14573 version_type=linux
14574 need_lib_prefix=no
14575 need_version=no
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14579 shlibpath_var=LD_LIBRARY_PATH
14580 shlibpath_overrides_runpath=no
14581 hardcode_into_libs=yes
14582 ;;
47935194 14583
1cf3d07d
SE
14584irix5* | irix6* | nonstopux*)
14585 case $host_os in
14586 nonstopux*) version_type=nonstopux ;;
14587 *)
14588 if test "$lt_cv_prog_gnu_ld" = yes; then
14589 version_type=linux
14590 else
14591 version_type=irix
14592 fi ;;
14593 esac
14594 need_lib_prefix=no
14595 need_version=no
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14598 case $host_os in
14599 irix5* | nonstopux*)
14600 libsuff= shlibsuff=
14601 ;;
14602 *)
14603 case $LD in # libtool.m4 will add one of these switches to LD
14604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14605 libsuff= shlibsuff= libmagic=32-bit;;
14606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14607 libsuff=32 shlibsuff=N32 libmagic=N32;;
14608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14610 *) libsuff= shlibsuff= libmagic=never-match;;
14611 esac
14612 ;;
14613 esac
14614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14615 shlibpath_overrides_runpath=no
14616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14618 hardcode_into_libs=yes
14619 ;;
47935194 14620
1cf3d07d
SE
14621# No shared lib support for Linux oldld, aout, or coff.
14622linux*oldld* | linux*aout* | linux*coff*)
14623 dynamic_linker=no
14624 ;;
47935194 14625
1cf3d07d 14626# This must be Linux ELF.
7a9d3fe8 14627linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14628 version_type=linux
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 shlibpath_overrides_runpath=no
baafc534 14636
1cf3d07d 14637 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
14638 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
baafc534
RW
14640else
14641 lt_cv_shlibpath_overrides_runpath=no
14642 save_LDFLAGS=$LDFLAGS
14643 save_libdir=$libdir
14644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14646 if test x$gcc_no_link = xyes; then
5213506e 14647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
47935194 14648fi
5213506e 14649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194 14650/* end confdefs.h. */
47935194 14651
1cf3d07d
SE
14652int
14653main ()
14654{
47935194 14655
1cf3d07d
SE
14656 ;
14657 return 0;
14658}
47935194 14659_ACEOF
5213506e
RW
14660if ac_fn_cxx_try_link "$LINENO"; then :
14661 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 14662 lt_cv_shlibpath_overrides_runpath=yes
47935194 14663fi
47935194 14664fi
5213506e
RW
14665rm -f core conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
14667 LDFLAGS=$save_LDFLAGS
14668 libdir=$save_libdir
14669
14670fi
14671
14672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
14673
14674 # This implies no fast_install, which is unacceptable.
14675 # Some rework will be needed to allow for fast_install
14676 # before this can be enabled.
14677 hardcode_into_libs=yes
14678
14679 # Append ld.so.conf contents to the search path
14680 if test -f /etc/ld.so.conf; then
93e92f52 14681 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
14682 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14683 fi
47935194 14684
1cf3d07d
SE
14685 # We used to test for /lib/ld.so.1 and disable shared libraries on
14686 # powerpc, because MkLinux only supported shared libraries with the
14687 # GNU dynamic linker. Since this was broken with cross compilers,
14688 # most powerpc-linux boxes support dynamic linking these days and
14689 # people can always --disable-shared, the test was removed, and we
14690 # assume the GNU/Linux dynamic linker is in use.
14691 dynamic_linker='GNU/Linux ld.so'
14692 ;;
14693
14694netbsd*)
14695 version_type=sunos
14696 need_lib_prefix=no
14697 need_version=no
14698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14701 dynamic_linker='NetBSD (a.out) ld.so'
14702 else
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 dynamic_linker='NetBSD ld.elf_so'
14706 fi
14707 shlibpath_var=LD_LIBRARY_PATH
14708 shlibpath_overrides_runpath=yes
14709 hardcode_into_libs=yes
14710 ;;
14711
14712newsos6)
14713 version_type=linux
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=yes
14717 ;;
14718
14719*nto* | *qnx*)
14720 version_type=qnx
14721 need_lib_prefix=no
14722 need_version=no
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 shlibpath_var=LD_LIBRARY_PATH
14726 shlibpath_overrides_runpath=no
14727 hardcode_into_libs=yes
14728 dynamic_linker='ldqnx.so'
14729 ;;
14730
14731openbsd*)
14732 version_type=sunos
14733 sys_lib_dlsearch_path_spec="/usr/lib"
14734 need_lib_prefix=no
14735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14736 case $host_os in
14737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14738 *) need_version=no ;;
14739 esac
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14744 case $host_os in
14745 openbsd2.[89] | openbsd2.[89].*)
14746 shlibpath_overrides_runpath=no
14747 ;;
14748 *)
14749 shlibpath_overrides_runpath=yes
14750 ;;
14751 esac
14752 else
14753 shlibpath_overrides_runpath=yes
14754 fi
14755 ;;
14756
14757os2*)
14758 libname_spec='$name'
14759 shrext_cmds=".dll"
14760 need_lib_prefix=no
14761 library_names_spec='$libname${shared_ext} $libname.a'
14762 dynamic_linker='OS/2 ld.exe'
14763 shlibpath_var=LIBPATH
14764 ;;
14765
14766osf3* | osf4* | osf5*)
14767 version_type=osf
14768 need_lib_prefix=no
14769 need_version=no
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14775 ;;
14776
14777rdos*)
14778 dynamic_linker=no
14779 ;;
14780
14781solaris*)
14782 version_type=linux
14783 need_lib_prefix=no
14784 need_version=no
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=yes
14789 hardcode_into_libs=yes
14790 # ldd complains unless libraries are executable
14791 postinstall_cmds='chmod +x $lib'
14792 ;;
14793
14794sunos4*)
14795 version_type=sunos
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=yes
14800 if test "$with_gnu_ld" = yes; then
14801 need_lib_prefix=no
14802 fi
14803 need_version=yes
14804 ;;
14805
14806sysv4 | sysv4.3*)
14807 version_type=linux
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 case $host_vendor in
14812 sni)
14813 shlibpath_overrides_runpath=no
14814 need_lib_prefix=no
14815 runpath_var=LD_RUN_PATH
14816 ;;
14817 siemens)
14818 need_lib_prefix=no
14819 ;;
14820 motorola)
14821 need_lib_prefix=no
14822 need_version=no
14823 shlibpath_overrides_runpath=no
14824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14825 ;;
14826 esac
14827 ;;
14828
14829sysv4*MP*)
14830 if test -d /usr/nec ;then
14831 version_type=linux
14832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14833 soname_spec='$libname${shared_ext}.$major'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 fi
14836 ;;
14837
14838sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14839 version_type=freebsd-elf
14840 need_lib_prefix=no
14841 need_version=no
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes
14846 hardcode_into_libs=yes
14847 if test "$with_gnu_ld" = yes; then
14848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14849 else
14850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14851 case $host_os in
14852 sco3.2v5*)
14853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14854 ;;
14855 esac
14856 fi
14857 sys_lib_dlsearch_path_spec='/usr/lib'
14858 ;;
14859
14860tpf*)
14861 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14862 version_type=linux
14863 need_lib_prefix=no
14864 need_version=no
93e92f52 14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=no
14868 hardcode_into_libs=yes
14869 ;;
14870
14871uts4*)
14872 version_type=linux
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 ;;
14877
14878*)
14879 dynamic_linker=no
14880 ;;
14881esac
5213506e
RW
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14883$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
14884test "$dynamic_linker" = no && can_build_shared=no
14885
14886variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14887if test "$GCC" = yes; then
14888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47935194
NN
14889fi
14890
93e92f52
PG
14891if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14892 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14893fi
14894if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14895 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14896fi
14897
47935194 14898
66deb2be 14899
2f7bf5b7 14900
2f7bf5b7 14901
2f7bf5b7 14902
2f7bf5b7 14903
47935194
NN
14904
14905
14906
14907
14908
2f7bf5b7 14909
47935194 14910
1530be84 14911
1530be84
TT
14912
14913
1cf3d07d
SE
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
5213506e
RW
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14934$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
14935hardcode_action_CXX=
14936if test -n "$hardcode_libdir_flag_spec_CXX" ||
14937 test -n "$runpath_var_CXX" ||
14938 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14939
14940 # We can hardcode non-existent directories.
14941 if test "$hardcode_direct_CXX" != no &&
14942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14943 # have to relink, otherwise we might link with an installed library
14944 # when we should be linking with a yet-to-be-installed one
14945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14946 test "$hardcode_minus_L_CXX" != no; then
14947 # Linking always hardcodes the temporary library directory.
14948 hardcode_action_CXX=relink
14949 else
14950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14951 hardcode_action_CXX=immediate
14952 fi
14953else
14954 # We cannot hardcode anything, or else we can only hardcode existing
14955 # directories.
14956 hardcode_action_CXX=unsupported
5a2586cf 14957fi
5213506e
RW
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14959$as_echo "$hardcode_action_CXX" >&6; }
5a2586cf 14960
1cf3d07d
SE
14961if test "$hardcode_action_CXX" = relink ||
14962 test "$inherit_rpath_CXX" = yes; then
14963 # Fast installation is not supported
14964 enable_fast_install=no
14965elif test "$shlibpath_overrides_runpath" = yes ||
14966 test "$enable_shared" = no; then
14967 # Fast installation is not necessary
14968 enable_fast_install=needless
14969fi
5a2586cf 14970
1530be84 14971
5572488d 14972
5a2586cf 14973
5572488d 14974
5a2586cf 14975
5572488d 14976
1cf3d07d 14977 fi # test -n "$compiler"
5a2586cf 14978
1cf3d07d
SE
14979 CC=$lt_save_CC
14980 LDCXX=$LD
14981 LD=$lt_save_LD
14982 GCC=$lt_save_GCC
14983 with_gnu_ld=$lt_save_with_gnu_ld
14984 lt_cv_path_LDCXX=$lt_cv_path_LD
14985 lt_cv_path_LD=$lt_save_path_LD
14986 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14987 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14988fi # test "$_lt_caught_CXX_error" != yes
5572488d 14989
1cf3d07d
SE
14990ac_ext=c
14991ac_cpp='$CPP $CPPFLAGS'
14992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994ac_compiler_gnu=$ac_cv_c_compiler_gnu
5a2586cf 14995
1530be84 14996
30c3de1f 14997
5572488d 14998
30c3de1f 14999
1530be84 15000
5572488d 15001
5a2586cf 15002
5572488d 15003
5a2586cf 15004
5a2586cf 15005
5a2586cf 15006
d0c03515 15007
5213506e 15008 ac_config_commands="$ac_config_commands libtool"
d0c03515 15009
eb496303 15010
eb496303 15011
eb496303 15012
1cf3d07d 15013# Only expand once:
eb496303 15014
9a35ada5 15015
eb496303 15016
5572488d 15017
5213506e
RW
15018# Check whether --with-target-subdir was given.
15019if test "${with_target_subdir+set}" = set; then :
15020 withval=$with_target_subdir;
15021fi
62aa6b06 15022
5572488d 15023
5213506e
RW
15024# Check whether --with-cross-host was given.
15025if test "${with_cross_host+set}" = set; then :
15026 withval=$with_cross_host;
15027fi
1530be84 15028
5572488d 15029
5213506e
RW
15030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
15031$as_echo_n "checking for thread model used by GCC... " >&6; }
1cf3d07d
SE
15032THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
15033if test -z "$THREADS"; then
15034 THREADS=no
15035fi
5213506e
RW
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
15037$as_echo "$THREADS" >&6; }
14caa62f 15038
5213506e
RW
15039# Check whether --enable-parallel-mark was given.
15040if test "${enable_parallel_mark+set}" = set; then :
15041 enableval=$enable_parallel_mark; case "$THREADS" in
1cf3d07d 15042 no | none | single)
5213506e 15043 as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
14caa62f 15044 ;;
1cf3d07d 15045 esac
5572488d 15046
5213506e
RW
15047fi
15048
1530be84 15049
1cf3d07d
SE
15050AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
15051THREADLIBS=
15052case "$THREADS" in
15053 no | none | single)
15054 THREADS=none
15055 ;;
15056 posix | posix95 | pthreads)
15057 THREADS=posix
15058 THREADLIBS=-lpthread
15059 case "$host" in
15060 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
5572488d 15061
5213506e 15062$as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
30c3de1f 15063
5572488d 15064
5213506e 15065$as_echo "#define _REENTRANT 1" >>confdefs.h
30c3de1f 15066
1cf3d07d 15067 if test "${enable_parallel_mark}" = yes; then
30c3de1f 15068
5213506e 15069$as_echo "#define PARALLEL_MARK 1" >>confdefs.h
30c3de1f
JS
15070
15071 fi
5572488d 15072
5213506e 15073$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
30c3de1f 15074
1530be84 15075 ;;
1cf3d07d 15076 *-*-linux*)
5213506e 15077 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
30c3de1f 15078
5213506e 15079 $as_echo "#define _REENTRANT 1" >>confdefs.h
30c3de1f 15080
1cf3d07d
SE
15081 ;;
15082 *-*-aix*)
5572488d 15083
5213506e 15084$as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
30c3de1f 15085
5213506e 15086 $as_echo "#define _REENTRANT 1" >>confdefs.h
30c3de1f 15087
1cf3d07d
SE
15088 ;;
15089 *-*-hpux11*)
5213506e
RW
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15091$as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
bf9a420e 15092
5213506e 15093$as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
4f6d8cc8 15094
1cf3d07d 15095
5213506e 15096$as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
4f6d8cc8 15097
1cf3d07d 15098 if test "${enable_parallel_mark}" = yes; then
5213506e 15099 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 15100
1cf3d07d 15101 fi
5213506e 15102 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 15103
1cf3d07d
SE
15104 THREADLIBS="-lpthread -lrt"
15105 # HPUX needs REENTRANT for the _r calls.
4f6d8cc8 15106
5213506e 15107$as_echo "#define _REENTRANT 1" >>confdefs.h
4f6d8cc8 15108
1cf3d07d
SE
15109 ;;
15110 *-*-hpux10*)
5213506e
RW
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15112$as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
1cf3d07d
SE
15113 ;;
15114 *-*-kfreebsd*-gnu)
5213506e 15115 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
4f6d8cc8 15116
1cf3d07d
SE
15117 INCLUDES="$INCLUDES -pthread"
15118 THREADDLLIBS=-pthread
5213506e 15119 $as_echo "#define _REENTRANT 1" >>confdefs.h
4f6d8cc8 15120
1cf3d07d 15121 if test "${enable_parallel_mark}" = yes; then
5213506e 15122 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 15123
1cf3d07d 15124 fi
5213506e 15125 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 15126
1cf3d07d 15127
5213506e 15128$as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
4f6d8cc8 15129
1cf3d07d
SE
15130 ;;
15131 *-*-freebsd*)
5213506e
RW
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15133$as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4f6d8cc8 15134
5213506e 15135$as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
4f6d8cc8 15136
1cf3d07d
SE
15137 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15138 THREADLIBS=-pthread
15139 ;;
15140 *-*-solaris*)
4f6d8cc8 15141
5213506e 15142$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
4f6d8cc8 15143
28e2ff77
RO
15144 # Need to use alternate thread library, otherwise gctest hangs
15145 # on Solaris 8.
15146 multi_os_directory=`$CC -print-multi-os-directory`
15147 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
15148 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
1cf3d07d
SE
15149 ;;
15150 *-*-irix*)
15151
5213506e 15152$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
4f6d8cc8 15153
1cf3d07d
SE
15154 ;;
15155 *-*-cygwin*)
15156
5213506e 15157$as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
4f6d8cc8 15158
1cf3d07d
SE
15159 ;;
15160 *-*-darwin*)
15161
5213506e 15162$as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
1cf3d07d 15163
5213506e 15164 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
1cf3d07d
SE
15165
15166 if test "${enable_parallel_mark}" = yes; then
5213506e 15167 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
1cf3d07d
SE
15168
15169 fi
15170 ;;
15171 *-*-osf*)
4f6d8cc8 15172
5213506e 15173$as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
4f6d8cc8 15174
1cf3d07d 15175 if test "${enable_parallel_mark}" = yes; then
5213506e 15176 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 15177
5213506e 15178 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 15179
1cf3d07d
SE
15180 # May want to enable it in other cases, too.
15181 # Measurements havent yet been done.
15182 fi
15183 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15184 THREADLIBS="-lpthread -lrt"
15185 ;;
15186 esac
15187 ;;
15188 win32)
5213506e 15189 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
4f6d8cc8 15190
1cf3d07d
SE
15191 ;;
15192 dgux386)
15193 THREADS=dgux386
5213506e
RW
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADLIBS" >&5
15195$as_echo "$THREADLIBS" >&6; }
1cf3d07d
SE
15196 # Use pthread GCC switch
15197 THREADLIBS=-pthread
15198 if test "${enable_parallel_mark}" = yes; then
5213506e 15199 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 15200
1cf3d07d 15201 fi
5213506e 15202 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 15203
4f6d8cc8 15204
5213506e 15205$as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
4f6d8cc8 15206
4f6d8cc8 15207
5213506e 15208$as_echo "#define DGUX_THREADS 1" >>confdefs.h
1cf3d07d
SE
15209
15210 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15211 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
4f6d8cc8 15212 ;;
1cf3d07d
SE
15213 aix)
15214 THREADS=posix
15215 THREADLIBS=-lpthread
5213506e 15216 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
1cf3d07d 15217
5213506e 15218 $as_echo "#define _REENTRANT 1" >>confdefs.h
1cf3d07d
SE
15219
15220 ;;
15221 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5213506e 15222 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
1cf3d07d
SE
15223 ;;
15224 *)
5213506e 15225 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
1cf3d07d
SE
15226 ;;
15227esac
15228
15229
15230case "$host" in
15231 powerpc-*-darwin*)
15232 powerpc_darwin=true
15233 ;;
15234esac
5213506e 15235 if test x$powerpc_darwin = xtrue; then
1cf3d07d
SE
15236 POWERPC_DARWIN_TRUE=
15237 POWERPC_DARWIN_FALSE='#'
15238else
15239 POWERPC_DARWIN_TRUE='#'
15240 POWERPC_DARWIN_FALSE=
15241fi
15242
15243
15244# Darwin needs a few extra special tests to deal with variation in the
15245# system headers.
15246case "$host" in
15247 powerpc*-*-darwin*)
5213506e
RW
15248 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
15249"
15250if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
4f6d8cc8 15251
5213506e 15252$as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
4f6d8cc8 15253
5213506e 15254fi
4f6d8cc8 15255
5213506e
RW
15256 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
15257"
15258if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
15259
15260$as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
4f6d8cc8 15261
4f6d8cc8 15262fi
4f6d8cc8 15263
5213506e
RW
15264 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
15265"
15266if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
15267
15268$as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
4f6d8cc8
GK
15269
15270fi
15271
5213506e
RW
15272 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
15273"
15274if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
4f6d8cc8 15275
5213506e 15276$as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
4f6d8cc8 15277
5213506e 15278fi
4f6d8cc8 15279
5213506e
RW
15280 ;;
15281 i?86*-*-darwin*)
15282 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
15283 #include <mach/thread_status.h>
15284"
15285if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
15286
15287$as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
4f6d8cc8 15288
4f6d8cc8 15289fi
5213506e
RW
15290
15291 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
15292 #include <mach/thread_status.h>
15293"
15294if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
15295
15296$as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
15297
4f6d8cc8 15298fi
5213506e
RW
15299
15300 ;;
15301 x86_64-*-darwin*)
15302 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
15303 #include <mach/thread_status.h>
15304"
15305if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
15306
15307$as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
15308
4f6d8cc8 15309fi
4f6d8cc8 15310
5213506e
RW
15311 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
15312 #include <mach/thread_status.h>
15313"
15314if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
15315
15316$as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
4f6d8cc8
GK
15317
15318fi
15319
5213506e
RW
15320 ;;
15321 *) ;;
15322esac
15323
15324# We never want libdl on darwin. It is a fake libdl that just ends up making
15325# dyld calls anyway
15326case "$host" in
15327 *-*-darwin*) ;;
15328 *)
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15330$as_echo_n "checking for dlopen in -ldl... " >&6; }
15331if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
583cb3d3 15333else
5213506e
RW
15334 ac_check_lib_save_LIBS=$LIBS
15335LIBS="-ldl $LIBS"
15336if test x$gcc_no_link = xyes; then
15337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15338fi
15339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583cb3d3 15340/* end confdefs.h. */
583cb3d3 15341
5213506e
RW
15342/* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15345#ifdef __cplusplus
15346extern "C"
15347#endif
15348char dlopen ();
583cb3d3
AT
15349int
15350main ()
15351{
5213506e 15352return dlopen ();
583cb3d3
AT
15353 ;
15354 return 0;
15355}
15356_ACEOF
5213506e 15357if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 15358 ac_cv_lib_dl_dlopen=yes
30c3de1f 15359else
5213506e 15360 ac_cv_lib_dl_dlopen=no
47935194 15361fi
5213506e
RW
15362rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
15364LIBS=$ac_check_lib_save_LIBS
15365fi
5213506e
RW
15366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15367$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15368if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 15369 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
47935194 15370fi
1cf3d07d
SE
15371
15372 ;;
15373esac
15374
15375# extra LD Flags which are required for targets
15376case "${host}" in
15377 *-*-darwin*)
15378 extra_ldflags_libgc=-Wl,-single_module
15379 ;;
15380esac
15381
15382
15383
15384
15385target_all=libgcjgc.la
15386
15387
15388TARGET_ECOS="no"
15389
5213506e
RW
15390# Check whether --with-ecos was given.
15391if test "${with_ecos+set}" = set; then :
15392 withval=$with_ecos; TARGET_ECOS="$with_ecos"
15393
15394fi
1cf3d07d 15395
1cf3d07d
SE
15396
15397addobjs=
15398addlibs=
15399addincludes=
15400addtests=
15401case "$TARGET_ECOS" in
15402 no)
15403 ;;
15404 *)
15405
5213506e 15406$as_echo "#define ECOS 1" >>confdefs.h
1cf3d07d
SE
15407
15408 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15409 addobjs="$addobjs ecos.lo"
15410 ;;
15411esac
15412
15413if test "${enable_cplusplus}" = yes; then
15414 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15415 addtests="$addtests test_cpp"
30c3de1f 15416fi
1cf3d07d 15417
5213506e 15418 if test "${enable_cplusplus}" = yes; then
1cf3d07d
SE
15419 CPLUSPLUS_TRUE=
15420 CPLUSPLUS_FALSE='#'
15421else
15422 CPLUSPLUS_TRUE='#'
15423 CPLUSPLUS_FALSE=
47935194 15424fi
47935194 15425
47935194 15426
47935194 15427
47935194
NN
15428
15429
15430
1cf3d07d
SE
15431# Configuration of shared libraries
15432#
5213506e
RW
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15434$as_echo_n "checking whether to build shared libraries... " >&6; }
15435# Check whether --enable-shared was given.
15436if test "${enable_shared+set}" = set; then :
15437 enableval=$enable_shared; p=${PACKAGE-default}
1cf3d07d
SE
15438 case $enableval in
15439 yes) enable_shared=yes ;;
15440 no) enable_shared=no ;;
15441 *)
15442 enable_shared=no
15443 # Look at the argument we got. We use all the common list separators.
5213506e
RW
15444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15445 for pkg in $enableval; do
15446 IFS="$lt_save_ifs"
15447 if test "X$pkg" = "X$p"; then
15448 enable_shared=yes
15449 fi
15450 done
15451 IFS="$lt_save_ifs"
15452 ;;
15453 esac
47935194 15454else
5213506e 15455 enable_shared=yes
47935194 15456fi
5213506e
RW
15457
15458
15459
15460
15461
15462
15463
15464case "$host" in
15465 alpha-*-openbsd*)
15466 enable_shared=no
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15468$as_echo "no" >&6; }
15469 ;;
15470 *)
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472$as_echo "yes" >&6; }
15473 ;;
15474esac
15475
15476# Checks for pthreads functions
15477#
15478oldLIBS="$LIBS"
15479LIBS="$LIBS $THREADLIBS"
15480for ac_func in pthread_getattr_np
15481do :
15482 ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
15483if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
47935194 15484 cat >>confdefs.h <<_ACEOF
5213506e 15485#define HAVE_PTHREAD_GETATTR_NP 1
47935194
NN
15486_ACEOF
15487
15488fi
47935194
NN
15489done
15490
1cf3d07d
SE
15491LIBS="$oldLIBS"
15492
15493# Configuration of machine-dependent code
15494#
15495# Set NO_EXECUTE_PERMISSION by default because gcj already uses
15496# ffi_closure_{alloc,free} which takes care of allocating trampolines
15497# in executable memory.
15498#
5213506e
RW
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
15500$as_echo_n "checking which machine-dependent code should be used... " >&6; }
1cf3d07d
SE
15501machdep=
15502case "$host" in
15503 alpha*-*-openbsd*)
15504 machdep="alpha_mach_dep.lo"
15505 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5213506e
RW
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15507$as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
1cf3d07d
SE
15508 fi
15509 ;;
15510 alpha*-*-linux*)
15511 machdep="alpha_mach_dep.lo"
15512 ;;
15513 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15514
5213506e 15515$as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
1cf3d07d
SE
15516
15517 ;;
15518 mipstx39-*-elf*)
15519 machdep="mips_ultrix_mach_dep.lo"
15520
5213506e 15521$as_echo "#define STACKBASE __stackbase" >>confdefs.h
1cf3d07d
SE
15522
15523
5213506e 15524$as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
1cf3d07d
SE
15525
15526 ;;
15527 mips-dec-ultrix*)
15528 machdep="mips_ultrix_mach-dep.lo"
15529 ;;
15530 mips-nec-sysv*|mips-unknown-sysv*)
15531 ;;
15532 mips*-*-linux*)
15533 ;;
15534 mips-*-*)
15535 machdep="mips_sgi_mach_dep.lo"
15536 ;;
15537 sparc-*-netbsd*)
15538 machdep="sparc_netbsd_mach_dep.lo"
15539 ;;
15540 sparc-sun-solaris2.3)
15541 machdep="sparc_mach_dep.lo"
15542
5213506e 15543$as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
1cf3d07d
SE
15544
15545 ;;
15546 sparc*-sun-solaris2.*)
15547 machdep="sparc_mach_dep.lo"
15548 ;;
15549 ia64-*-*)
15550 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15551 ;;
15552esac
15553
5213506e 15554$as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
1cf3d07d
SE
15555
15556if test x"$machdep" = x; then
5213506e
RW
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
15558$as_echo "$machdep" >&6; }
1cf3d07d
SE
15559 machdep="mach_dep.lo"
15560fi
15561addobjs="$addobjs $machdep"
15562
15563
15564
15565
30c3de1f 15566
1cf3d07d
SE
15567#
15568# Check for AViiON Machines running DGUX
15569#
5213506e
RW
15570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if host is AViiON running DGUX" >&5
15571$as_echo_n "checking if host is AViiON running DGUX... " >&6; }
1cf3d07d 15572ac_is_dgux=no
5213506e
RW
15573ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15574if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
30c3de1f 15575 ac_is_dgux=yes;
30c3de1f
JS
15576fi
15577
15578
47935194 15579
5213506e
RW
15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_is_dgux" >&5
15581$as_echo "$ac_is_dgux" >&6; }
30c3de1f
JS
15582 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15583if test $ac_is_dgux = yes; then
15584 if test "$enable_full_debug" = "yes"; then
15585 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15586 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15587 else
15588 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15589 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15590 fi
47935194
NN
15591
15592
30c3de1f
JS
15593fi
15594
5213506e
RW
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Solaris gcc optimization fix is necessary" >&5
15596$as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
1530be84 15597case "$host" in
ab52d207 15598 *aix*)
1530be84 15599 if test "$GCC" = yes; then
5213506e
RW
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15601$as_echo "yes" >&6; }
1530be84
TT
15602 new_CFLAGS=
15603 for i in $CFLAGS; do
15604 case "$i" in
15605 -O*)
15606 ;;
15607 *)
15608 new_CFLAGS="$new_CFLAGS $i"
15609 ;;
15610 esac
15611 done
15612 CFLAGS="$new_CFLAGS"
30c3de1f 15613 else
5213506e
RW
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615$as_echo "no" >&6; }
1530be84
TT
15616 fi
15617 ;;
5213506e
RW
15618 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15619$as_echo "no" >&6; } ;;
1530be84
TT
15620esac
15621
15622MY_CFLAGS="$CFLAGS"
15623
15624
5572488d 15625
5213506e 15626$as_echo "#define SILENT 1" >>confdefs.h
1530be84 15627
5572488d 15628
5213506e 15629$as_echo "#define NO_SIGNALS 1" >>confdefs.h
1530be84 15630
5572488d 15631
5213506e 15632$as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
5a2586cf
TT
15633
15634
5572488d 15635
5213506e 15636$as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
1530be84 15637
5572488d 15638
5213506e 15639$as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
1530be84 15640
5572488d 15641
5213506e 15642$as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
5a2586cf 15643
1530be84 15644
5213506e
RW
15645# Check whether --enable-gc-debug was given.
15646if test "${enable_gc_debug+set}" = set; then :
15647 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15649$as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5572488d 15650
5213506e 15651$as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
5a2586cf 15652
5572488d 15653
5213506e 15654$as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
5a2586cf
TT
15655
15656 case $host in
79f777fd 15657 ia64-*-linux* )
5572488d 15658
5213506e 15659$as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
79f777fd
BM
15660
15661 ;;
48528b67 15662 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5213506e 15663 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
79f777fd 15664
5213506e
RW
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15666$as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5572488d 15667
5213506e 15668$as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
30c3de1f
JS
15669
15670 ;;
15671 i345686-*-dgux*)
5213506e 15672 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
5a2586cf
TT
15673
15674 ;;
47935194 15675 esac
5a2586cf 15676 fi
5213506e
RW
15677fi
15678
5a2586cf 15679
5909b034
BM
15680if test "${gc_use_mmap}" = "yes"; then
15681
5213506e 15682$as_echo "#define USE_MMAP 1" >>confdefs.h
5909b034
BM
15683
15684fi
15685
13b6e5b4
AO
15686if test -n "$with_cross_host" &&
15687 test x"$with_cross_host" != x"no"; then
d38d6003 15688 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13b6e5b4 15689 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 15690else
d38d6003 15691 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13b6e5b4 15692 toolexeclibdir='$(libdir)'
b48ed568 15693fi
ff8b9ca8
AS
15694multi_os_directory=`$CC -print-multi-os-directory`
15695case $multi_os_directory in
15696 .) ;; # Avoid trailing /.
15697 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15698esac
13b6e5b4
AO
15699
15700
b48ed568 15701
1530be84
TT
15702if test "${multilib}" = "yes"; then
15703 multilib_arg="--enable-multilib"
15704else
15705 multilib_arg=
15706fi
15707
5213506e 15708ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
4109fe85 15709
bf9a420e 15710
5213506e 15711ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
bf9a420e 15712
47935194 15713cat >confcache <<\_ACEOF
1530be84
TT
15714# This file is a shell script that caches the results of configure
15715# tests run on this system so they can be shared between configure
47935194
NN
15716# scripts and configure runs, see configure's option --config-cache.
15717# It is not useful on other systems. If it contains results you don't
15718# want to keep, you may remove or edit it.
1530be84 15719#
47935194
NN
15720# config.status only pays attention to the cache file if you give it
15721# the --recheck option to rerun configure.
1530be84 15722#
47935194
NN
15723# `ac_cv_env_foo' variables (set or unset) will be overridden when
15724# loading this file, other *unset* `ac_cv_foo' will be assigned the
15725# following values.
15726
15727_ACEOF
15728
1530be84
TT
15729# The following way of writing the cache mishandles newlines in values,
15730# but we know of no workaround that is simple, portable, and efficient.
5213506e 15731# So, we kill variables containing newlines.
1530be84
TT
15732# Ultrix sh set writes to stderr and can't be redirected directly,
15733# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15734(
15735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15736 eval ac_val=\$$ac_var
15737 case $ac_val in #(
15738 *${as_nl}*)
15739 case $ac_var in #(
15740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15741$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15742 esac
15743 case $ac_var in #(
15744 _ | IFS | as_nl) ;; #(
15745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15746 *) { eval $ac_var=; unset $ac_var;} ;;
15747 esac ;;
15748 esac
15749 done
15750
47935194 15751 (set) 2>&1 |
5213506e
RW
15752 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15753 *${as_nl}ac_space=\ *)
15754 # `set' does not quote correctly, so add quotes: double-quote
15755 # substitution turns \\\\ into \\, and sed turns \\ into \.
47935194 15756 sed -n \
8ab705be
KC
15757 "s/'/'\\\\''/g;
15758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15759 ;; #(
47935194
NN
15760 *)
15761 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47935194 15763 ;;
5213506e
RW
15764 esac |
15765 sort
15766) |
47935194 15767 sed '
5213506e 15768 /^ac_cv_env_/b end
47935194 15769 t clear
5213506e 15770 :clear
47935194
NN
15771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15772 t end
5213506e
RW
15773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15774 :end' >>confcache
15775if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15776 if test -w "$cache_file"; then
15777 test "x$cache_file" != "x/dev/null" &&
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15779$as_echo "$as_me: updating cache $cache_file" >&6;}
47935194 15780 cat confcache >$cache_file
1530be84 15781 else
5213506e
RW
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15783$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1530be84
TT
15784 fi
15785fi
15786rm -f confcache
15787
1530be84
TT
15788test "x$prefix" = xNONE && prefix=$ac_default_prefix
15789# Let make expand exec_prefix.
15790test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15791
4109fe85 15792DEFS=-DHAVE_CONFIG_H
47935194
NN
15793
15794ac_libobjs=
15795ac_ltlibobjs=
15796for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15797 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15801 # will be set to the directory where LIBOBJS objects are built.
15802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
47935194
NN
15804done
15805LIBOBJS=$ac_libobjs
1530be84 15806
47935194 15807LTLIBOBJS=$ac_ltlibobjs
1530be84 15808
1530be84 15809
5213506e
RW
15810 if test -n "$EXEEXT"; then
15811 am__EXEEXT_TRUE=
15812 am__EXEEXT_FALSE='#'
15813else
15814 am__EXEEXT_TRUE='#'
15815 am__EXEEXT_FALSE=
15816fi
15817
bf9a420e 15818if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
15819 as_fn_error "conditional \"AMDEP\" was never defined.
15820Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15821fi
15822if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
15823 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15824Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15825fi
15826if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5213506e
RW
15827 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15828Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15829fi
15830if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
15831 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15832Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e 15833fi
1cf3d07d 15834if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5213506e
RW
15835 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15836Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 15837fi
bf9a420e 15838if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
5213506e
RW
15839 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15840Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15841fi
15842if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
5213506e
RW
15843 as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15844Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e 15845fi
47935194
NN
15846
15847: ${CONFIG_STATUS=./config.status}
5213506e 15848ac_write_fail=0
47935194
NN
15849ac_clean_files_save=$ac_clean_files
15850ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15852$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15853as_write_fail=0
15854cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
47935194
NN
15855#! $SHELL
15856# Generated by $as_me.
1530be84 15857# Run this file to recreate the current configuration.
1530be84 15858# Compiler output produced by configure, useful for debugging
47935194
NN
15859# configure, is in config.log if it exists.
15860
15861debug=false
15862ac_cs_recheck=false
15863ac_cs_silent=false
47935194 15864
5213506e
RW
15865SHELL=\${CONFIG_SHELL-$SHELL}
15866export SHELL
15867_ASEOF
15868cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15869## -------------------- ##
15870## M4sh Initialization. ##
15871## -------------------- ##
15872
15873# Be more Bourne compatible
15874DUALCASE=1; export DUALCASE # for MKS sh
15875if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
47935194
NN
15876 emulate sh
15877 NULLCMD=:
5213506e 15878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47935194
NN
15879 # is contrary to our usage. Disable this feature.
15880 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15881 setopt NO_GLOB_SUBST
15882else
15883 case `(set -o) 2>/dev/null` in #(
15884 *posix*) :
15885 set -o posix ;; #(
15886 *) :
15887 ;;
15888esac
47935194 15889fi
47935194 15890
5213506e
RW
15891
15892as_nl='
15893'
15894export as_nl
15895# Printing a long string crashes Solaris 7 /usr/bin/printf.
15896as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15897as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15898as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15899# Prefer a ksh shell builtin over an external printf program on Solaris,
15900# but without wasting forks for bash or zsh.
15901if test -z "$BASH_VERSION$ZSH_VERSION" \
15902 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15903 as_echo='print -r --'
15904 as_echo_n='print -rn --'
15905elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15906 as_echo='printf %s\n'
15907 as_echo_n='printf %s'
15908else
15909 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15910 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15911 as_echo_n='/usr/ucb/echo -n'
15912 else
15913 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15914 as_echo_n_body='eval
15915 arg=$1;
15916 case $arg in #(
15917 *"$as_nl"*)
15918 expr "X$arg" : "X\\(.*\\)$as_nl";
15919 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15920 esac;
15921 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15922 '
15923 export as_echo_n_body
15924 as_echo_n='sh -c $as_echo_n_body as_echo'
15925 fi
15926 export as_echo_body
15927 as_echo='sh -c $as_echo_body as_echo'
15928fi
15929
15930# The user is always right.
15931if test "${PATH_SEPARATOR+set}" != set; then
15932 PATH_SEPARATOR=:
15933 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15934 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15935 PATH_SEPARATOR=';'
15936 }
47935194 15937fi
1530be84 15938
47935194 15939
5213506e
RW
15940# IFS
15941# We need space, tab and new line, in precisely that order. Quoting is
15942# there to prevent editors from complaining about space-tab.
15943# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15944# splitting by setting IFS to empty value.)
15945IFS=" "" $as_nl"
15946
15947# Find who we are. Look in the path if we contain no directory separator.
15948case $0 in #((
15949 *[\\/]* ) as_myself=$0 ;;
15950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951for as_dir in $PATH
15952do
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15956 done
15957IFS=$as_save_IFS
15958
15959 ;;
15960esac
15961# We did not find ourselves, most probably we were run as `sh COMMAND'
15962# in which case we are not to be found in the path.
15963if test "x$as_myself" = x; then
15964 as_myself=$0
15965fi
15966if test ! -f "$as_myself"; then
15967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15968 exit 1
15969fi
15970
15971# Unset variables that we do not need and which cause bugs (e.g. in
15972# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15973# suppresses any "Segmentation fault" message there. '((' could
15974# trigger a bug in pdksh 5.2.14.
15975for as_var in BASH_ENV ENV MAIL MAILPATH
15976do eval test x\${$as_var+set} = xset \
15977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15978done
47935194
NN
15979PS1='$ '
15980PS2='> '
15981PS4='+ '
15982
15983# NLS nuisances.
5213506e
RW
15984LC_ALL=C
15985export LC_ALL
15986LANGUAGE=C
15987export LANGUAGE
15988
15989# CDPATH.
15990(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15991
15992
15993# as_fn_error ERROR [LINENO LOG_FD]
15994# ---------------------------------
15995# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15996# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15997# script with status $?, using 1 if that was 0.
15998as_fn_error ()
15999{
16000 as_status=$?; test $as_status -eq 0 && as_status=1
16001 if test "$3"; then
16002 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
47935194 16004 fi
5213506e
RW
16005 $as_echo "$as_me: error: $1" >&2
16006 as_fn_exit $as_status
16007} # as_fn_error
16008
16009
16010# as_fn_set_status STATUS
16011# -----------------------
16012# Set $? to STATUS, without forking.
16013as_fn_set_status ()
16014{
16015 return $1
16016} # as_fn_set_status
16017
16018# as_fn_exit STATUS
16019# -----------------
16020# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16021as_fn_exit ()
16022{
16023 set +e
16024 as_fn_set_status $1
16025 exit $1
16026} # as_fn_exit
16027
16028# as_fn_unset VAR
16029# ---------------
16030# Portably unset VAR.
16031as_fn_unset ()
16032{
16033 { eval $1=; unset $1;}
16034}
16035as_unset=as_fn_unset
16036# as_fn_append VAR VALUE
16037# ----------------------
16038# Append the text in VALUE to the end of the definition contained in VAR. Take
16039# advantage of any shell optimizations that allow amortized linear growth over
16040# repeated appends, instead of the typical quadratic growth present in naive
16041# implementations.
16042if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16043 eval 'as_fn_append ()
16044 {
16045 eval $1+=\$2
16046 }'
16047else
16048 as_fn_append ()
16049 {
16050 eval $1=\$$1\$2
16051 }
16052fi # as_fn_append
16053
16054# as_fn_arith ARG...
16055# ------------------
16056# Perform arithmetic evaluation on the ARGs, and store the result in the
16057# global $as_val. Take advantage of shells that can avoid forks. The arguments
16058# must be portable across $(()) and expr.
16059if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16060 eval 'as_fn_arith ()
16061 {
16062 as_val=$(( $* ))
16063 }'
16064else
16065 as_fn_arith ()
16066 {
16067 as_val=`expr "$@" || test $? -eq 1`
16068 }
16069fi # as_fn_arith
1530be84 16070
5213506e
RW
16071
16072if expr a : '\(a\)' >/dev/null 2>&1 &&
16073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47935194
NN
16074 as_expr=expr
16075else
16076 as_expr=false
16077fi
1530be84 16078
5213506e 16079if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47935194
NN
16080 as_basename=basename
16081else
16082 as_basename=false
16083fi
16084
5213506e
RW
16085if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16086 as_dirname=dirname
16087else
16088 as_dirname=false
16089fi
47935194 16090
5213506e 16091as_me=`$as_basename -- "$0" ||
47935194
NN
16092$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16093 X"$0" : 'X\(//\)$' \| \
5213506e
RW
16094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16095$as_echo X/"$0" |
16096 sed '/^.*\/\([^/][^/]*\)\/*$/{
16097 s//\1/
16098 q
16099 }
16100 /^X\/\(\/\/\)$/{
16101 s//\1/
16102 q
16103 }
16104 /^X\/\(\/\).*/{
16105 s//\1/
16106 q
16107 }
16108 s/.*/./; q'`
47935194 16109
47935194
NN
16110# Avoid depending upon Character Ranges.
16111as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16112as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16113as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16114as_cr_digits='0123456789'
16115as_cr_alnum=$as_cr_Letters$as_cr_digits
16116
5213506e
RW
16117ECHO_C= ECHO_N= ECHO_T=
16118case `echo -n x` in #(((((
16119-n*)
16120 case `echo 'xy\c'` in
16121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16122 xy) ECHO_C='\c';;
16123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16124 ECHO_T=' ';;
16125 esac;;
16126*)
16127 ECHO_N='-n';;
47935194
NN
16128esac
16129
5213506e
RW
16130rm -f conf$$ conf$$.exe conf$$.file
16131if test -d conf$$.dir; then
16132 rm -f conf$$.dir/conf$$.file
47935194 16133else
5213506e
RW
16134 rm -f conf$$.dir
16135 mkdir conf$$.dir 2>/dev/null
47935194 16136fi
5213506e
RW
16137if (echo >conf$$.file) 2>/dev/null; then
16138 if ln -s conf$$.file conf$$ 2>/dev/null; then
47935194 16139 as_ln_s='ln -s'
5213506e
RW
16140 # ... but there are two gotchas:
16141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16143 # In both cases, we have to default to `cp -p'.
16144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16145 as_ln_s='cp -p'
16146 elif ln conf$$.file conf$$ 2>/dev/null; then
16147 as_ln_s=ln
16148 else
16149 as_ln_s='cp -p'
1530be84 16150 fi
47935194
NN
16151else
16152 as_ln_s='cp -p'
16153fi
5213506e
RW
16154rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16155rmdir conf$$.dir 2>/dev/null
16156
16157
16158# as_fn_mkdir_p
16159# -------------
16160# Create "$as_dir" as a directory, including parents if necessary.
16161as_fn_mkdir_p ()
16162{
16163
16164 case $as_dir in #(
16165 -*) as_dir=./$as_dir;;
16166 esac
16167 test -d "$as_dir" || eval $as_mkdir_p || {
16168 as_dirs=
16169 while :; do
16170 case $as_dir in #(
16171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16172 *) as_qdir=$as_dir;;
16173 esac
16174 as_dirs="'$as_qdir' $as_dirs"
16175 as_dir=`$as_dirname -- "$as_dir" ||
16176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16177 X"$as_dir" : 'X\(//\)[^/]' \| \
16178 X"$as_dir" : 'X\(//\)$' \| \
16179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16180$as_echo X"$as_dir" |
16181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16182 s//\1/
16183 q
16184 }
16185 /^X\(\/\/\)[^/].*/{
16186 s//\1/
16187 q
16188 }
16189 /^X\(\/\/\)$/{
16190 s//\1/
16191 q
16192 }
16193 /^X\(\/\).*/{
16194 s//\1/
16195 q
16196 }
16197 s/.*/./; q'`
16198 test -d "$as_dir" && break
16199 done
16200 test -z "$as_dirs" || eval "mkdir $as_dirs"
16201 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
1530be84 16202
5213506e
RW
16203
16204} # as_fn_mkdir_p
47935194 16205if mkdir -p . 2>/dev/null; then
5213506e 16206 as_mkdir_p='mkdir -p "$as_dir"'
47935194 16207else
8ab705be 16208 test -d ./-p && rmdir ./-p
47935194
NN
16209 as_mkdir_p=false
16210fi
16211
5213506e
RW
16212if test -x / >/dev/null 2>&1; then
16213 as_test_x='test -x'
16214else
16215 if ls -dL / >/dev/null 2>&1; then
16216 as_ls_L_option=L
16217 else
16218 as_ls_L_option=
16219 fi
16220 as_test_x='
16221 eval sh -c '\''
16222 if test -d "$1"; then
16223 test -d "$1/.";
16224 else
16225 case $1 in #(
16226 -*)set "./$1";;
16227 esac;
16228 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16229 ???[sx]*):;;*)false;;esac;fi
16230 '\'' sh
16231 '
16232fi
16233as_executable_p=$as_test_x
47935194
NN
16234
16235# Sed expression to map a string onto a valid CPP name.
8ab705be 16236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
16237
16238# Sed expression to map a string onto a valid variable name.
5213506e 16239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194 16240
47935194
NN
16241
16242exec 6>&1
5213506e
RW
16243## ----------------------------------- ##
16244## Main body of $CONFIG_STATUS script. ##
16245## ----------------------------------- ##
16246_ASEOF
16247test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16248
16249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250# Save the log message, to keep $0 and so on meaningful, and to
47935194 16251# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16252# values after options handling.
16253ac_log="
47935194 16254This file was extended by $as_me, which was
5213506e 16255generated by GNU Autoconf 2.64. Invocation command line was
47935194
NN
16256
16257 CONFIG_FILES = $CONFIG_FILES
16258 CONFIG_HEADERS = $CONFIG_HEADERS
16259 CONFIG_LINKS = $CONFIG_LINKS
16260 CONFIG_COMMANDS = $CONFIG_COMMANDS
16261 $ $0 $@
16262
5213506e
RW
16263on `(hostname || uname -n) 2>/dev/null | sed 1q`
16264"
16265
47935194 16266_ACEOF
1530be84 16267
5213506e
RW
16268case $ac_config_files in *"
16269"*) set x $ac_config_files; shift; ac_config_files=$*;;
16270esac
47935194 16271
5213506e
RW
16272case $ac_config_headers in *"
16273"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16274esac
47935194 16275
47935194 16276
5213506e
RW
16277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16278# Files that config.status was made for.
16279config_files="$ac_config_files"
16280config_headers="$ac_config_headers"
16281config_commands="$ac_config_commands"
47935194 16282
5213506e 16283_ACEOF
47935194 16284
5213506e 16285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935194 16286ac_cs_usage="\
5213506e
RW
16287\`$as_me' instantiates files and other configuration actions
16288from templates according to the current configuration. Unless the files
16289and actions are specified as TAGs, all are instantiated by default.
47935194 16290
5213506e 16291Usage: $0 [OPTION]... [TAG]...
47935194
NN
16292
16293 -h, --help print this help, then exit
5213506e
RW
16294 -V, --version print version number and configuration settings, then exit
16295 -q, --quiet, --silent
16296 do not print progress messages
47935194
NN
16297 -d, --debug don't remove temporary files
16298 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16299 --file=FILE[:TEMPLATE]
16300 instantiate the configuration file FILE
16301 --header=FILE[:TEMPLATE]
16302 instantiate the configuration header FILE
47935194
NN
16303
16304Configuration files:
16305$config_files
16306
4109fe85
BM
16307Configuration headers:
16308$config_headers
16309
47935194
NN
16310Configuration commands:
16311$config_commands
16312
5213506e 16313Report bugs to the package provider."
47935194 16314
5213506e
RW
16315_ACEOF
16316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47935194
NN
16317ac_cs_version="\\
16318config.status
5213506e
RW
16319configured by $0, generated by GNU Autoconf 2.64,
16320 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47935194 16321
5213506e 16322Copyright (C) 2009 Free Software Foundation, Inc.
47935194
NN
16323This config.status script is free software; the Free Software Foundation
16324gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16325
16326ac_pwd='$ac_pwd'
16327srcdir='$srcdir'
16328INSTALL='$INSTALL'
16329MKDIR_P='$MKDIR_P'
16330AWK='$AWK'
16331test -n "\$AWK" || AWK=awk
47935194
NN
16332_ACEOF
16333
5213506e
RW
16334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16335# The default lists apply if the user does not specify any file.
47935194
NN
16336ac_need_defaults=:
16337while test $# != 0
16338do
16339 case $1 in
16340 --*=*)
5213506e
RW
16341 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47935194
NN
16343 ac_shift=:
16344 ;;
5213506e 16345 *)
47935194
NN
16346 ac_option=$1
16347 ac_optarg=$2
16348 ac_shift=shift
16349 ;;
1530be84
TT
16350 esac
16351
47935194
NN
16352 case $ac_option in
16353 # Handling of the options.
47935194
NN
16354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16355 ac_cs_recheck=: ;;
5213506e
RW
16356 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16357 $as_echo "$ac_cs_version"; exit ;;
16358 --debug | --debu | --deb | --de | --d | -d )
47935194
NN
16359 debug=: ;;
16360 --file | --fil | --fi | --f )
16361 $ac_shift
5213506e
RW
16362 case $ac_optarg in
16363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16364 esac
16365 as_fn_append CONFIG_FILES " '$ac_optarg'"
47935194
NN
16366 ac_need_defaults=false;;
16367 --header | --heade | --head | --hea )
16368 $ac_shift
5213506e
RW
16369 case $ac_optarg in
16370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16371 esac
16372 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47935194 16373 ac_need_defaults=false;;
5213506e
RW
16374 --he | --h)
16375 # Conflict between --help and --header
16376 as_fn_error "ambiguous option: \`$1'
16377Try \`$0 --help' for more information.";;
16378 --help | --hel | -h )
16379 $as_echo "$ac_cs_usage"; exit ;;
47935194
NN
16380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16382 ac_cs_silent=: ;;
16383
16384 # This is an error.
5213506e
RW
16385 -*) as_fn_error "unrecognized option: \`$1'
16386Try \`$0 --help' for more information." ;;
47935194 16387
5213506e
RW
16388 *) as_fn_append ac_config_targets " $1"
16389 ac_need_defaults=false ;;
47935194 16390
1530be84 16391 esac
47935194
NN
16392 shift
16393done
1530be84 16394
47935194
NN
16395ac_configure_extra_args=
16396
16397if $ac_cs_silent; then
16398 exec 6>/dev/null
16399 ac_configure_extra_args="$ac_configure_extra_args --silent"
16400fi
16401
16402_ACEOF
5213506e 16403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47935194 16404if \$ac_cs_recheck; then
5213506e
RW
16405 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16406 shift
16407 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16408 CONFIG_SHELL='$SHELL'
16409 export CONFIG_SHELL
16410 exec "\$@"
47935194
NN
16411fi
16412
1cf3d07d 16413_ACEOF
5213506e
RW
16414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415exec 5>>config.log
16416{
16417 echo
16418 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16419## Running $as_me. ##
16420_ASBOX
16421 $as_echo "$ac_log"
16422} >&5
1cf3d07d 16423
5213506e
RW
16424_ACEOF
16425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 16426#
5213506e 16427# INIT-COMMANDS
1cf3d07d
SE
16428#
16429
1cf3d07d
SE
16430srcdir="$srcdir"
16431host="$host"
16432target="$target"
16433with_multisubdir="$with_multisubdir"
16434with_multisrctop="$with_multisrctop"
16435with_target_subdir="$with_target_subdir"
16436ac_configure_args="${multilib_arg} ${ac_configure_args}"
16437multi_basedir="$multi_basedir"
16438CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16439CC="$CC"
e59be1b1
KT
16440CXX="$CXX"
16441GFORTRAN="$GFORTRAN"
16442GCJ="$GCJ"
1cf3d07d
SE
16443AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16444
16445
16446# The HP-UX ksh and POSIX shell print the target directory to stdout
16447# if CDPATH is set.
16448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16449
16450sed_quote_subst='$sed_quote_subst'
16451double_quote_subst='$double_quote_subst'
16452delay_variable_subst='$delay_variable_subst'
16453macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16454macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16455enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16456enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16457pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16458enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16459host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16460host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16461host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16462build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16463build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16464build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16465SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16466Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16467GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16468EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16469FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16470LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16471NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16472LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16473max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16474ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16475exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16476lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16477lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16478lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16479reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16480reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 16481OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16482deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16483file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16484AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16485AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16486STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16487RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16488old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16489old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16490old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16491CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16492CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16493compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16494GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16495lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16496lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16497lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 16498lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16499objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16500SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16501ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16502MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16503lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16504lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16505lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16506lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16507lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16508need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52
PG
16509DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16510NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16511LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16512OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16513OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16514libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16515shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16516extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16517archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16518enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16519export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16520whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16521compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16522old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16523old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16524archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16525archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16526module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16527module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16528with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16529allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16530no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16531hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16532hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16533hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16534hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16535hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16536hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16537hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16538hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16539inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16540link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16541fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16542always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16543export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16544exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16545include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16546prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16547file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16548variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16549need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16550need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16551version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16552runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16553shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16554shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16555libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16556library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16557soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16558postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16559postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16560finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16561finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16562hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16563sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16564sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16565hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16566enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16567enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16568enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16569old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16570striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 16571compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16572predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16573postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16574predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16575postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16576compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16577LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16578old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16579compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16580GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16581lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16582lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16583lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16584lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16585lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16586archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16587enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16588export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16589whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16590compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16591old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16592old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16593archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16594archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16595module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16596module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16597with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16598allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16599no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16600hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16601hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16602hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16603hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16604hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16605hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16606hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16607hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16608inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16609link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16610fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16611always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16612export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16613exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16614include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16615prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16616file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16617hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 16618compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16619predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16620postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16621predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16622postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16623compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16624
16625LTCC='$LTCC'
16626LTCFLAGS='$LTCFLAGS'
16627compiler='$compiler_DEFAULT'
16628
16629# Quote evaled strings.
16630for var in SED \
16631GREP \
16632EGREP \
16633FGREP \
16634LD \
16635NM \
16636LN_S \
16637lt_SP2NL \
16638lt_NL2SP \
16639reload_flag \
93e92f52 16640OBJDUMP \
1cf3d07d
SE
16641deplibs_check_method \
16642file_magic_cmd \
16643AR \
16644AR_FLAGS \
16645STRIP \
16646RANLIB \
16647CC \
16648CFLAGS \
16649compiler \
16650lt_cv_sys_global_symbol_pipe \
16651lt_cv_sys_global_symbol_to_cdecl \
16652lt_cv_sys_global_symbol_to_c_name_address \
93e92f52 16653lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
16654SHELL \
16655ECHO \
16656lt_prog_compiler_no_builtin_flag \
16657lt_prog_compiler_wl \
16658lt_prog_compiler_pic \
16659lt_prog_compiler_static \
16660lt_cv_prog_compiler_c_o \
16661need_locks \
93e92f52
PG
16662DSYMUTIL \
16663NMEDIT \
16664LIPO \
16665OTOOL \
16666OTOOL64 \
1cf3d07d
SE
16667shrext_cmds \
16668export_dynamic_flag_spec \
16669whole_archive_flag_spec \
16670compiler_needs_object \
16671with_gnu_ld \
16672allow_undefined_flag \
16673no_undefined_flag \
16674hardcode_libdir_flag_spec \
16675hardcode_libdir_flag_spec_ld \
16676hardcode_libdir_separator \
16677fix_srcfile_path \
16678exclude_expsyms \
16679include_expsyms \
16680file_list_spec \
16681variables_saved_for_relink \
16682libname_spec \
16683library_names_spec \
16684soname_spec \
16685finish_eval \
16686old_striplib \
16687striplib \
93e92f52 16688compiler_lib_search_dirs \
1cf3d07d
SE
16689predep_objects \
16690postdep_objects \
16691predeps \
16692postdeps \
16693compiler_lib_search_path \
16694LD_CXX \
16695compiler_CXX \
16696lt_prog_compiler_no_builtin_flag_CXX \
16697lt_prog_compiler_wl_CXX \
16698lt_prog_compiler_pic_CXX \
16699lt_prog_compiler_static_CXX \
16700lt_cv_prog_compiler_c_o_CXX \
16701export_dynamic_flag_spec_CXX \
16702whole_archive_flag_spec_CXX \
16703compiler_needs_object_CXX \
16704with_gnu_ld_CXX \
16705allow_undefined_flag_CXX \
16706no_undefined_flag_CXX \
16707hardcode_libdir_flag_spec_CXX \
16708hardcode_libdir_flag_spec_ld_CXX \
16709hardcode_libdir_separator_CXX \
16710fix_srcfile_path_CXX \
16711exclude_expsyms_CXX \
16712include_expsyms_CXX \
16713file_list_spec_CXX \
93e92f52 16714compiler_lib_search_dirs_CXX \
1cf3d07d
SE
16715predep_objects_CXX \
16716postdep_objects_CXX \
16717predeps_CXX \
16718postdeps_CXX \
16719compiler_lib_search_path_CXX; do
16720 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16721 *[\\\\\\\`\\"\\\$]*)
16722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16723 ;;
16724 *)
16725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16726 ;;
16727 esac
16728done
16729
16730# Double-quote double-evaled strings.
16731for var in reload_cmds \
16732old_postinstall_cmds \
16733old_postuninstall_cmds \
16734old_archive_cmds \
16735extract_expsyms_cmds \
16736old_archive_from_new_cmds \
16737old_archive_from_expsyms_cmds \
16738archive_cmds \
16739archive_expsym_cmds \
16740module_cmds \
16741module_expsym_cmds \
16742export_symbols_cmds \
16743prelink_cmds \
16744postinstall_cmds \
16745postuninstall_cmds \
16746finish_cmds \
16747sys_lib_search_path_spec \
16748sys_lib_dlsearch_path_spec \
16749old_archive_cmds_CXX \
16750old_archive_from_new_cmds_CXX \
16751old_archive_from_expsyms_cmds_CXX \
16752archive_cmds_CXX \
16753archive_expsym_cmds_CXX \
16754module_cmds_CXX \
16755module_expsym_cmds_CXX \
16756export_symbols_cmds_CXX \
16757prelink_cmds_CXX; do
16758 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16759 *[\\\\\\\`\\"\\\$]*)
16760 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16761 ;;
16762 *)
16763 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16764 ;;
16765 esac
16766done
16767
16768# Fix-up fallback echo if it was mangled by the above quoting rules.
16769case \$lt_ECHO in
16770*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16771 ;;
16772esac
16773
16774ac_aux_dir='$ac_aux_dir'
16775xsi_shell='$xsi_shell'
16776lt_shell_append='$lt_shell_append'
16777
16778# See if we are running on zsh, and set the options which allow our
16779# commands through without removal of \ escapes INIT.
16780if test -n "\${ZSH_VERSION+set}" ; then
16781 setopt NO_GLOB_SUBST
16782fi
16783
16784
16785 PACKAGE='$PACKAGE'
16786 VERSION='$VERSION'
16787 TIMESTAMP='$TIMESTAMP'
16788 RM='$RM'
16789 ofile='$ofile'
16790
16791
47935194 16792
1530be84 16793
bf9a420e 16794
1530be84 16795
47935194
NN
16796_ACEOF
16797
5213506e 16798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935194 16799
5213506e 16800# Handling of arguments.
47935194
NN
16801for ac_config_target in $ac_config_targets
16802do
5213506e
RW
16803 case $ac_config_target in
16804 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16805 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16806 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16807 "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16808 "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16809 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16810 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16811 "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
16812
16813 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47935194
NN
16814 esac
16815done
16816
5213506e 16817
47935194
NN
16818# If the user did not use the arguments to specify the items to instantiate,
16819# then the envvar interface is used. Set only those that are not.
16820# We use the long form for the default assignment because of an extremely
16821# bizarre bug on SunOS 4.1.3.
16822if $ac_need_defaults; then
16823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4109fe85 16824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47935194
NN
16825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16826fi
16827
16828# Have a temporary directory for convenience. Make it in the build tree
5213506e 16829# simply because there is no reason against having it here, and in addition,
47935194 16830# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16831# Hook for its removal unless debugging.
16832# Note that there is a small window in which the directory will not be cleaned:
16833# after its creation but before its name has been assigned to `$tmp'.
47935194
NN
16834$debug ||
16835{
5213506e
RW
16836 tmp=
16837 trap 'exit_status=$?
16838 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16839' 0
16840 trap 'as_fn_exit 1' 1 2 13 15
47935194 16841}
47935194
NN
16842# Create a (secure) tmp directory for tmp files.
16843
16844{
5213506e 16845 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47935194
NN
16846 test -n "$tmp" && test -d "$tmp"
16847} ||
16848{
5213506e
RW
16849 tmp=./conf$$-$RANDOM
16850 (umask 077 && mkdir "$tmp")
16851} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16852
16853# Set up the scripts for CONFIG_FILES section.
16854# No need to generate them if there are no CONFIG_FILES.
16855# This happens for instance with `./config.status config.h'.
16856if test -n "$CONFIG_FILES"; then
16857
16858
16859ac_cr=`echo X | tr X '\015'`
16860# On cygwin, bash can eat \r inside `` if the user requested igncr.
16861# But we know of no other shell where ac_cr would be empty at this
16862# point, so we can use a bashism as a fallback.
16863if test "x$ac_cr" = x; then
16864 eval ac_cr=\$\'\\r\'
16865fi
16866ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16867if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16868 ac_cs_awk_cr='\r'
16869else
16870 ac_cs_awk_cr=$ac_cr
16871fi
16872
16873echo 'BEGIN {' >"$tmp/subs1.awk" &&
16874_ACEOF
16875
16876
47935194 16877{
5213506e
RW
16878 echo "cat >conf$$subs.awk <<_ACEOF" &&
16879 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16880 echo "_ACEOF"
16881} >conf$$subs.sh ||
16882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16883ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16884ac_delim='%!_!# '
16885for ac_last_try in false false false false false :; do
16886 . ./conf$$subs.sh ||
16887 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16888
16889 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16890 if test $ac_delim_n = $ac_delim_num; then
16891 break
16892 elif $ac_last_try; then
16893 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16894 else
16895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16896 fi
16897done
16898rm -f conf$$subs.sh
47935194 16899
5213506e
RW
16900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16901cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47935194 16902_ACEOF
5213506e
RW
16903sed -n '
16904h
16905s/^/S["/; s/!.*/"]=/
16906p
16907g
16908s/^[^!]*!//
16909:repl
16910t repl
16911s/'"$ac_delim"'$//
16912t delim
16913:nl
16914h
16915s/\(.\{148\}\).*/\1/
16916t more1
16917s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16918p
16919n
16920b repl
16921:more1
16922s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16923p
16924g
16925s/.\{148\}//
16926t nl
16927:delim
16928h
16929s/\(.\{148\}\).*/\1/
16930t more2
16931s/["\\]/\\&/g; s/^/"/; s/$/"/
16932p
16933b
16934:more2
16935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16936p
16937g
16938s/.\{148\}//
16939t delim
16940' <conf$$subs.awk | sed '
16941/^[^""]/{
16942 N
16943 s/\n//
16944}
16945' >>$CONFIG_STATUS || ac_write_fail=1
16946rm -f conf$$subs.awk
16947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16948_ACAWK
16949cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16950 for (key in S) S_is_set[key] = 1
16951 FS = "\a"
16952
16953}
16954{
16955 line = $ 0
16956 nfields = split(line, field, "@")
16957 substed = 0
16958 len = length(field[1])
16959 for (i = 2; i < nfields; i++) {
16960 key = field[i]
16961 keylen = length(key)
16962 if (S_is_set[key]) {
16963 value = S[key]
16964 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16965 len += length(value) + length(field[++i])
16966 substed = 1
16967 } else
16968 len += 1 + keylen
16969 }
47935194 16970
5213506e
RW
16971 print line
16972}
47935194 16973
5213506e
RW
16974_ACAWK
16975_ACEOF
16976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16978 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16979else
16980 cat
16981fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16982 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16983_ACEOF
16984
16985# VPATH may cause trouble with some makes, so we remove $(srcdir),
16986# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16987# trailing colons and then remove the whole line if VPATH becomes empty
16988# (actually we leave an empty line to preserve line numbers).
16989if test "x$srcdir" = x.; then
16990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16991s/:*\$(srcdir):*/:/
16992s/:*\${srcdir}:*/:/
16993s/:*@srcdir@:*/:/
16994s/^\([^=]*=[ ]*\):*/\1/
16995s/:*$//
16996s/^[^=]*=[ ]*$//
16997}'
16998fi
47935194 16999
5213506e
RW
17000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17001fi # test -n "$CONFIG_FILES"
47935194 17002
5213506e
RW
17003# Set up the scripts for CONFIG_HEADERS section.
17004# No need to generate them if there are no CONFIG_HEADERS.
17005# This happens for instance with `./config.status Makefile'.
17006if test -n "$CONFIG_HEADERS"; then
17007cat >"$tmp/defines.awk" <<\_ACAWK ||
17008BEGIN {
47935194
NN
17009_ACEOF
17010
5213506e
RW
17011# Transform confdefs.h into an awk script `defines.awk', embedded as
17012# here-document in config.status, that substitutes the proper values into
17013# config.h.in to produce config.h.
17014
17015# Create a delimiter string that does not exist in confdefs.h, to ease
17016# handling of long lines.
17017ac_delim='%!_!# '
17018for ac_last_try in false false :; do
17019 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17020 if test -z "$ac_t"; then
17021 break
17022 elif $ac_last_try; then
17023 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17024 else
17025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47935194 17026 fi
5213506e 17027done
47935194 17028
5213506e
RW
17029# For the awk script, D is an array of macro values keyed by name,
17030# likewise P contains macro parameters if any. Preserve backslash
17031# newline sequences.
17032
17033ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17034sed -n '
17035s/.\{148\}/&'"$ac_delim"'/g
17036t rset
17037:rset
17038s/^[ ]*#[ ]*define[ ][ ]*/ /
17039t def
17040d
17041:def
17042s/\\$//
17043t bsnl
17044s/["\\]/\\&/g
17045s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17046D["\1"]=" \3"/p
17047s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17048d
17049:bsnl
17050s/["\\]/\\&/g
17051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17052D["\1"]=" \3\\\\\\n"\\/p
17053t cont
17054s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17055t cont
17056d
17057:cont
17058n
17059s/.\{148\}/&'"$ac_delim"'/g
17060t clear
17061:clear
17062s/\\$//
17063t bsnlc
17064s/["\\]/\\&/g; s/^/"/; s/$/"/p
17065d
17066:bsnlc
17067s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17068b cont
17069' <confdefs.h | sed '
17070s/'"$ac_delim"'/"\\\
17071"/g' >>$CONFIG_STATUS || ac_write_fail=1
17072
17073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074 for (key in D) D_is_set[key] = 1
17075 FS = "\a"
17076}
17077/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17078 line = \$ 0
17079 split(line, arg, " ")
17080 if (arg[1] == "#") {
17081 defundef = arg[2]
17082 mac1 = arg[3]
17083 } else {
17084 defundef = substr(arg[1], 2)
17085 mac1 = arg[2]
17086 }
17087 split(mac1, mac2, "(") #)
17088 macro = mac2[1]
17089 prefix = substr(line, 1, index(line, defundef) - 1)
17090 if (D_is_set[macro]) {
17091 # Preserve the white space surrounding the "#".
17092 print prefix "define", macro P[macro] D[macro]
17093 next
17094 } else {
17095 # Replace #undef with comments. This is necessary, for example,
17096 # in the case of _POSIX_SOURCE, which is predefined and required
17097 # on some systems where configure will not decide to define it.
17098 if (defundef == "undef") {
17099 print "/*", prefix defundef, macro, "*/"
17100 next
17101 }
17102 }
17103}
17104{ print }
17105_ACAWK
47935194 17106_ACEOF
5213506e
RW
17107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17108 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17109fi # test -n "$CONFIG_HEADERS"
17110
17111
17112eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17113shift
17114for ac_tag
17115do
17116 case $ac_tag in
17117 :[FHLC]) ac_mode=$ac_tag; continue;;
17118 esac
17119 case $ac_mode$ac_tag in
17120 :[FHL]*:*);;
17121 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17122 :[FH]-) ac_tag=-:-;;
17123 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17124 esac
17125 ac_save_IFS=$IFS
17126 IFS=:
17127 set x $ac_tag
17128 IFS=$ac_save_IFS
17129 shift
17130 ac_file=$1
17131 shift
17132
17133 case $ac_mode in
17134 :L) ac_source=$1;;
17135 :[FH])
17136 ac_file_inputs=
17137 for ac_f
17138 do
17139 case $ac_f in
17140 -) ac_f="$tmp/stdin";;
17141 *) # Look for the file first in the build tree, then in the source tree
17142 # (if the path is not absolute). The absolute path cannot be DOS-style,
17143 # because $ac_f cannot contain `:'.
17144 test -f "$ac_f" ||
17145 case $ac_f in
17146 [\\/$]*) false;;
17147 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17148 esac ||
17149 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17150 esac
17151 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17152 as_fn_append ac_file_inputs " '$ac_f'"
17153 done
17154
17155 # Let's still pretend it is `configure' which instantiates (i.e., don't
17156 # use $as_me), people would be surprised to read:
17157 # /* config.h. Generated by config.status. */
17158 configure_input='Generated from '`
17159 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17160 `' by configure.'
17161 if test x"$ac_file" != x-; then
17162 configure_input="$ac_file. $configure_input"
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17164$as_echo "$as_me: creating $ac_file" >&6;}
17165 fi
17166 # Neutralize special characters interpreted by sed in replacement strings.
17167 case $configure_input in #(
17168 *\&* | *\|* | *\\* )
17169 ac_sed_conf_input=`$as_echo "$configure_input" |
17170 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17171 *) ac_sed_conf_input=$configure_input;;
17172 esac
17173
17174 case $ac_tag in
17175 *:-:* | *:-) cat >"$tmp/stdin" \
17176 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17177 esac
17178 ;;
47935194
NN
17179 esac
17180
5213506e 17181 ac_dir=`$as_dirname -- "$ac_file" ||
47935194 17182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
17183 X"$ac_file" : 'X\(//\)[^/]' \| \
17184 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
17185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17186$as_echo X"$ac_file" |
17187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17188 s//\1/
17189 q
17190 }
17191 /^X\(\/\/\)[^/].*/{
17192 s//\1/
17193 q
17194 }
17195 /^X\(\/\/\)$/{
17196 s//\1/
17197 q
17198 }
17199 /^X\(\/\).*/{
17200 s//\1/
17201 q
17202 }
17203 s/.*/./; q'`
17204 as_dir="$ac_dir"; as_fn_mkdir_p
47935194
NN
17205 ac_builddir=.
17206
5213506e
RW
17207case "$ac_dir" in
17208.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17209*)
17210 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17211 # A ".." for each directory in $ac_dir_suffix.
17212 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17213 case $ac_top_builddir_sub in
17214 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17215 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17216 esac ;;
17217esac
17218ac_abs_top_builddir=$ac_pwd
17219ac_abs_builddir=$ac_pwd$ac_dir_suffix
17220# for backward compatibility:
17221ac_top_builddir=$ac_top_build_prefix
47935194
NN
17222
17223case $srcdir in
5213506e 17224 .) # We are building in place.
47935194 17225 ac_srcdir=.
5213506e
RW
17226 ac_top_srcdir=$ac_top_builddir_sub
17227 ac_abs_top_srcdir=$ac_pwd ;;
17228 [\\/]* | ?:[\\/]* ) # Absolute name.
47935194 17229 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
17230 ac_top_srcdir=$srcdir
17231 ac_abs_top_srcdir=$srcdir ;;
17232 *) # Relative name.
17233 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17234 ac_top_srcdir=$ac_top_build_prefix$srcdir
17235 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47935194 17236esac
5213506e 17237ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8ab705be 17238
47935194 17239
5213506e
RW
17240 case $ac_mode in
17241 :F)
17242 #
17243 # CONFIG_FILE
17244 #
47935194
NN
17245
17246 case $INSTALL in
17247 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 17248 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47935194 17249 esac
5213506e
RW
17250 ac_MKDIR_P=$MKDIR_P
17251 case $MKDIR_P in
17252 [\\/$]* | ?:[\\/]* ) ;;
17253 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17254 esac
17255_ACEOF
47935194 17256
5213506e
RW
17257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17258# If the template does not know about datarootdir, expand it.
17259# FIXME: This hack should be removed a few years after 2.60.
17260ac_datarootdir_hack=; ac_datarootdir_seen=
17261ac_sed_dataroot='
17262/datarootdir/ {
17263 p
17264 q
17265}
17266/@datadir@/p
17267/@docdir@/p
17268/@infodir@/p
17269/@localedir@/p
17270/@mandir@/p'
17271case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17272*datarootdir*) ac_datarootdir_seen=yes;;
17273*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17275$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17276_ACEOF
17277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278 ac_datarootdir_hack='
17279 s&@datadir@&$datadir&g
17280 s&@docdir@&$docdir&g
17281 s&@infodir@&$infodir&g
17282 s&@localedir@&$localedir&g
17283 s&@mandir@&$mandir&g
17284 s&\\\${datarootdir}&$datarootdir&g' ;;
17285esac
47935194 17286_ACEOF
5213506e
RW
17287
17288# Neutralize VPATH when `$srcdir' = `.'.
17289# Shell code in configure.ac might set extrasub.
17290# FIXME: do we really want to maintain this feature?
17291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17292ac_sed_extra="$ac_vpsub
47935194
NN
17293$extrasub
17294_ACEOF
5213506e 17295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935194
NN
17296:t
17297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
17298s|@configure_input@|$ac_sed_conf_input|;t t
17299s&@top_builddir@&$ac_top_builddir_sub&;t t
17300s&@top_build_prefix@&$ac_top_build_prefix&;t t
17301s&@srcdir@&$ac_srcdir&;t t
17302s&@abs_srcdir@&$ac_abs_srcdir&;t t
17303s&@top_srcdir@&$ac_top_srcdir&;t t
17304s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17305s&@builddir@&$ac_builddir&;t t
17306s&@abs_builddir@&$ac_abs_builddir&;t t
17307s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17308s&@INSTALL@&$ac_INSTALL&;t t
17309s&@MKDIR_P@&$ac_MKDIR_P&;t t
17310$ac_datarootdir_hack
17311"
17312eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17313 || as_fn_error "could not create $ac_file" "$LINENO" 5
17314
17315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17316 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17319which seems to be undefined. Please make sure it is defined." >&5
17320$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17321which seems to be undefined. Please make sure it is defined." >&2;}
17322
17323 rm -f "$tmp/stdin"
4109fe85 17324 case $ac_file in
5213506e
RW
17325 -) cat "$tmp/out" && rm -f "$tmp/out";;
17326 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17327 esac \
17328 || as_fn_error "could not create $ac_file" "$LINENO" 5
17329 ;;
17330 :H)
17331 #
17332 # CONFIG_HEADER
17333 #
4109fe85 17334 if test x"$ac_file" != x-; then
5213506e
RW
17335 {
17336 $as_echo "/* $configure_input */" \
17337 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17338 } >"$tmp/config.h" \
17339 || as_fn_error "could not create $ac_file" "$LINENO" 5
17340 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17342$as_echo "$as_me: $ac_file is unchanged" >&6;}
4109fe85 17343 else
5213506e
RW
17344 rm -f "$ac_file"
17345 mv "$tmp/config.h" "$ac_file" \
17346 || as_fn_error "could not create $ac_file" "$LINENO" 5
4109fe85
BM
17347 fi
17348 else
5213506e
RW
17349 $as_echo "/* $configure_input */" \
17350 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17351 || as_fn_error "could not create -" "$LINENO" 5
4109fe85 17352 fi
5213506e
RW
17353# Compute "$ac_file"'s index in $config_headers.
17354_am_arg="$ac_file"
4109fe85
BM
17355_am_stamp_count=1
17356for _am_header in $config_headers :; do
17357 case $_am_header in
5213506e 17358 $_am_arg | $_am_arg:* )
4109fe85
BM
17359 break ;;
17360 * )
17361 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17362 esac
17363done
5213506e
RW
17364echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17365$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17366 X"$_am_arg" : 'X\(//\)[^/]' \| \
17367 X"$_am_arg" : 'X\(//\)$' \| \
17368 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17369$as_echo X"$_am_arg" |
17370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17371 s//\1/
17372 q
17373 }
17374 /^X\(\/\/\)[^/].*/{
17375 s//\1/
17376 q
17377 }
17378 /^X\(\/\/\)$/{
17379 s//\1/
17380 q
17381 }
17382 /^X\(\/\).*/{
17383 s//\1/
17384 q
17385 }
17386 s/.*/./; q'`/stamp-h$_am_stamp_count
17387 ;;
8ab705be 17388
5213506e
RW
17389 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17390$as_echo "$as_me: executing $ac_file commands" >&6;}
17391 ;;
17392 esac
47935194
NN
17393
17394
5213506e
RW
17395 case $ac_file$ac_mode in
17396 "default-1":C)
bf9a420e
PB
17397# Only add multilib support code if we just rebuilt the top-level
17398# Makefile.
17399case " $CONFIG_FILES " in
17400 *" Makefile "*)
17401 ac_file=Makefile . ${multi_basedir}/config-ml.in
17402 ;;
17403esac ;;
5213506e
RW
17404 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17405 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17406 # are listed without --file. Let's play safe and only enable the eval
17407 # if we detect the quoting.
17408 case $CONFIG_FILES in
17409 *\'*) eval set x "$CONFIG_FILES" ;;
17410 *) set x $CONFIG_FILES ;;
17411 esac
17412 shift
17413 for mf
17414 do
17415 # Strip MF so we end up with the name of the file.
17416 mf=`echo "$mf" | sed -e 's/:.*$//'`
17417 # Check whether this is an Automake generated Makefile or not.
17418 # We used to match only the files named `Makefile.in', but
17419 # some people rename them; so instead we look at the file content.
17420 # Grep'ing the first line is not enough: some people post-process
17421 # each Makefile.in and add a new line on top of each file to say so.
17422 # Grep'ing the whole file is not good either: AIX grep has a line
17423 # limit of 2048, but all sed's we know have understand at least 4000.
17424 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17425 dirpart=`$as_dirname -- "$mf" ||
bf9a420e
PB
17426$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17427 X"$mf" : 'X\(//\)[^/]' \| \
17428 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
17429 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17430$as_echo X"$mf" |
17431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17432 s//\1/
17433 q
17434 }
17435 /^X\(\/\/\)[^/].*/{
17436 s//\1/
17437 q
17438 }
17439 /^X\(\/\/\)$/{
17440 s//\1/
17441 q
17442 }
17443 /^X\(\/\).*/{
17444 s//\1/
17445 q
17446 }
17447 s/.*/./; q'`
17448 else
17449 continue
17450 fi
17451 # Extract the definition of DEPDIR, am__include, and am__quote
17452 # from the Makefile without running `make'.
17453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17454 test -z "$DEPDIR" && continue
17455 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17456 test -z "am__include" && continue
17457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17458 # When using ansi2knr, U may be empty or an underscore; expand it
17459 U=`sed -n 's/^U = //p' < "$mf"`
17460 # Find all dependency output files, they are included files with
17461 # $(DEPDIR) in their names. We invoke sed twice because it is the
17462 # simplest approach to changing $(DEPDIR) to its actual value in the
17463 # expansion.
17464 for file in `sed -n "
17465 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17466 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17467 # Make sure the directory exists.
17468 test -f "$dirpart/$file" && continue
17469 fdir=`$as_dirname -- "$file" ||
bf9a420e
PB
17470$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17471 X"$file" : 'X\(//\)[^/]' \| \
17472 X"$file" : 'X\(//\)$' \| \
5213506e
RW
17473 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17474$as_echo X"$file" |
17475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17476 s//\1/
17477 q
17478 }
17479 /^X\(\/\/\)[^/].*/{
17480 s//\1/
17481 q
17482 }
17483 /^X\(\/\/\)$/{
17484 s//\1/
17485 q
17486 }
17487 /^X\(\/\).*/{
17488 s//\1/
17489 q
17490 }
17491 s/.*/./; q'`
17492 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17493 # echo "creating $dirpart/$file"
17494 echo '# dummy' > "$dirpart/$file"
bf9a420e 17495 done
bf9a420e 17496 done
5213506e 17497}
1cf3d07d 17498 ;;
5213506e 17499 "libtool":C)
1cf3d07d
SE
17500
17501 # See if we are running on zsh, and set the options which allow our
17502 # commands through without removal of \ escapes.
17503 if test -n "${ZSH_VERSION+set}" ; then
17504 setopt NO_GLOB_SUBST
17505 fi
17506
17507 cfgfile="${ofile}T"
17508 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17509 $RM "$cfgfile"
17510
17511 cat <<_LT_EOF >> "$cfgfile"
17512#! $SHELL
17513
17514# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
93e92f52 17515# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
17516# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17517# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17518#
93e92f52
PG
17519# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17520# 2006, 2007, 2008 Free Software Foundation, Inc.
17521# Written by Gordon Matzigkeit, 1996
1cf3d07d 17522#
93e92f52 17523# This file is part of GNU Libtool.
1cf3d07d 17524#
93e92f52
PG
17525# GNU Libtool is free software; you can redistribute it and/or
17526# modify it under the terms of the GNU General Public License as
17527# published by the Free Software Foundation; either version 2 of
17528# the License, or (at your option) any later version.
1cf3d07d 17529#
93e92f52
PG
17530# As a special exception to the GNU General Public License,
17531# if you distribute this file as part of a program or library that
17532# is built using GNU Libtool, you may include this file under the
17533# same distribution terms that you use for the rest of that program.
1cf3d07d 17534#
93e92f52
PG
17535# GNU Libtool is distributed in the hope that it will be useful,
17536# but WITHOUT ANY WARRANTY; without even the implied warranty of
17537# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17538# GNU General Public License for more details.
1cf3d07d 17539#
93e92f52
PG
17540# You should have received a copy of the GNU General Public License
17541# along with GNU Libtool; see the file COPYING. If not, a copy
17542# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17543# obtained by writing to the Free Software Foundation, Inc.,
17544# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
17545
17546
17547# The names of the tagged configurations supported by this script.
17548available_tags="CXX "
17549
17550# ### BEGIN LIBTOOL CONFIG
17551
17552# Which release of libtool.m4 was used?
17553macro_version=$macro_version
17554macro_revision=$macro_revision
17555
17556# Whether or not to build shared libraries.
17557build_libtool_libs=$enable_shared
17558
17559# Whether or not to build static libraries.
17560build_old_libs=$enable_static
17561
17562# What type of objects to build.
17563pic_mode=$pic_mode
17564
17565# Whether or not to optimize for fast installation.
17566fast_install=$enable_fast_install
17567
17568# The host system.
17569host_alias=$host_alias
17570host=$host
17571host_os=$host_os
17572
17573# The build system.
17574build_alias=$build_alias
17575build=$build
17576build_os=$build_os
17577
17578# A sed program that does not truncate output.
17579SED=$lt_SED
17580
17581# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17582Xsed="\$SED -e 1s/^X//"
17583
17584# A grep program that handles long lines.
17585GREP=$lt_GREP
17586
17587# An ERE matcher.
17588EGREP=$lt_EGREP
17589
17590# A literal string matcher.
17591FGREP=$lt_FGREP
17592
17593# A BSD- or MS-compatible name lister.
17594NM=$lt_NM
17595
17596# Whether we need soft or hard links.
17597LN_S=$lt_LN_S
17598
17599# What is the maximum length of a command?
17600max_cmd_len=$max_cmd_len
17601
17602# Object file suffix (normally "o").
17603objext=$ac_objext
17604
17605# Executable file suffix (normally "").
17606exeext=$exeext
17607
17608# whether the shell understands "unset".
17609lt_unset=$lt_unset
17610
17611# turn spaces into newlines.
17612SP2NL=$lt_lt_SP2NL
17613
17614# turn newlines into spaces.
17615NL2SP=$lt_lt_NL2SP
17616
17617# How to create reloadable object files.
17618reload_flag=$lt_reload_flag
17619reload_cmds=$lt_reload_cmds
17620
93e92f52
PG
17621# An object symbol dumper.
17622OBJDUMP=$lt_OBJDUMP
17623
1cf3d07d
SE
17624# Method to check whether dependent libraries are shared objects.
17625deplibs_check_method=$lt_deplibs_check_method
17626
17627# Command to use when deplibs_check_method == "file_magic".
17628file_magic_cmd=$lt_file_magic_cmd
17629
17630# The archiver.
17631AR=$lt_AR
17632AR_FLAGS=$lt_AR_FLAGS
17633
17634# A symbol stripping program.
17635STRIP=$lt_STRIP
17636
17637# Commands used to install an old-style archive.
17638RANLIB=$lt_RANLIB
17639old_postinstall_cmds=$lt_old_postinstall_cmds
17640old_postuninstall_cmds=$lt_old_postuninstall_cmds
17641
17642# A C compiler.
17643LTCC=$lt_CC
17644
17645# LTCC compiler flags.
17646LTCFLAGS=$lt_CFLAGS
17647
17648# Take the output of nm and produce a listing of raw symbols and C names.
17649global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17650
17651# Transform the output of nm in a proper C declaration.
17652global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17653
17654# Transform the output of nm in a C name address pair.
17655global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17656
93e92f52
PG
17657# Transform the output of nm in a C name address pair when lib prefix is needed.
17658global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17659
1cf3d07d
SE
17660# The name of the directory that contains temporary libtool files.
17661objdir=$objdir
17662
17663# Shell to use when invoking shell scripts.
17664SHELL=$lt_SHELL
17665
17666# An echo program that does not interpret backslashes.
17667ECHO=$lt_ECHO
17668
17669# Used to examine libraries when file_magic_cmd begins with "file".
17670MAGIC_CMD=$MAGIC_CMD
17671
17672# Must we lock files when doing compilation?
17673need_locks=$lt_need_locks
17674
93e92f52
PG
17675# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17676DSYMUTIL=$lt_DSYMUTIL
17677
17678# Tool to change global to local symbols on Mac OS X.
17679NMEDIT=$lt_NMEDIT
17680
17681# Tool to manipulate fat objects and archives on Mac OS X.
17682LIPO=$lt_LIPO
17683
17684# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17685OTOOL=$lt_OTOOL
17686
17687# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17688OTOOL64=$lt_OTOOL64
17689
1cf3d07d
SE
17690# Old archive suffix (normally "a").
17691libext=$libext
17692
17693# Shared library suffix (normally ".so").
17694shrext_cmds=$lt_shrext_cmds
17695
17696# The commands to extract the exported symbol list from a shared archive.
17697extract_expsyms_cmds=$lt_extract_expsyms_cmds
17698
17699# Variables whose values should be saved in libtool wrapper scripts and
17700# restored at link time.
17701variables_saved_for_relink=$lt_variables_saved_for_relink
17702
17703# Do we need the "lib" prefix for modules?
17704need_lib_prefix=$need_lib_prefix
17705
17706# Do we need a version for libraries?
17707need_version=$need_version
17708
17709# Library versioning type.
17710version_type=$version_type
17711
17712# Shared library runtime path variable.
17713runpath_var=$runpath_var
17714
17715# Shared library path variable.
17716shlibpath_var=$shlibpath_var
17717
17718# Is shlibpath searched before the hard-coded library search path?
17719shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17720
17721# Format of library name prefix.
17722libname_spec=$lt_libname_spec
17723
17724# List of archive names. First name is the real one, the rest are links.
17725# The last name is the one that the linker finds with -lNAME
17726library_names_spec=$lt_library_names_spec
17727
17728# The coded name of the library, if different from the real name.
17729soname_spec=$lt_soname_spec
17730
17731# Command to use after installation of a shared archive.
17732postinstall_cmds=$lt_postinstall_cmds
17733
17734# Command to use after uninstallation of a shared archive.
17735postuninstall_cmds=$lt_postuninstall_cmds
17736
17737# Commands used to finish a libtool library installation in a directory.
17738finish_cmds=$lt_finish_cmds
17739
17740# As "finish_cmds", except a single script fragment to be evaled but
17741# not shown.
17742finish_eval=$lt_finish_eval
17743
17744# Whether we should hardcode library paths into libraries.
17745hardcode_into_libs=$hardcode_into_libs
17746
17747# Compile-time system search path for libraries.
17748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17749
17750# Run-time system search path for libraries.
17751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17752
17753# Whether dlopen is supported.
17754dlopen_support=$enable_dlopen
17755
17756# Whether dlopen of programs is supported.
17757dlopen_self=$enable_dlopen_self
17758
17759# Whether dlopen of statically linked programs is supported.
17760dlopen_self_static=$enable_dlopen_self_static
17761
17762# Commands to strip libraries.
17763old_striplib=$lt_old_striplib
17764striplib=$lt_striplib
17765
17766
17767# The linker used to build libraries.
17768LD=$lt_LD
17769
17770# Commands used to build an old-style archive.
17771old_archive_cmds=$lt_old_archive_cmds
17772
17773# A language specific compiler.
17774CC=$lt_compiler
17775
17776# Is the compiler the GNU compiler?
17777with_gcc=$GCC
17778
17779# Compiler flag to turn off builtin functions.
17780no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17781
17782# How to pass a linker flag through the compiler.
17783wl=$lt_lt_prog_compiler_wl
17784
17785# Additional compiler flags for building library objects.
17786pic_flag=$lt_lt_prog_compiler_pic
17787
17788# Compiler flag to prevent dynamic linking.
17789link_static_flag=$lt_lt_prog_compiler_static
17790
17791# Does compiler simultaneously support -c and -o options?
17792compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17793
17794# Whether or not to add -lc for building shared libraries.
17795build_libtool_need_lc=$archive_cmds_need_lc
17796
17797# Whether or not to disallow shared libs when runtime libs are static.
17798allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17799
17800# Compiler flag to allow reflexive dlopens.
17801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17802
17803# Compiler flag to generate shared objects directly from archives.
17804whole_archive_flag_spec=$lt_whole_archive_flag_spec
17805
17806# Whether the compiler copes with passing no objects directly.
17807compiler_needs_object=$lt_compiler_needs_object
17808
17809# Create an old-style archive from a shared archive.
17810old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17811
17812# Create a temporary old-style archive to link instead of a shared archive.
17813old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17814
17815# Commands used to build a shared archive.
17816archive_cmds=$lt_archive_cmds
17817archive_expsym_cmds=$lt_archive_expsym_cmds
17818
17819# Commands used to build a loadable module if different from building
17820# a shared archive.
17821module_cmds=$lt_module_cmds
17822module_expsym_cmds=$lt_module_expsym_cmds
17823
17824# Whether we are building with GNU ld or not.
17825with_gnu_ld=$lt_with_gnu_ld
17826
17827# Flag that allows shared libraries with undefined symbols to be built.
17828allow_undefined_flag=$lt_allow_undefined_flag
17829
17830# Flag that enforces no undefined symbols.
17831no_undefined_flag=$lt_no_undefined_flag
17832
17833# Flag to hardcode \$libdir into a binary during linking.
17834# This must work even if \$libdir does not exist
17835hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17836
17837# If ld is used when linking, flag to hardcode \$libdir into a binary
17838# during linking. This must work even if \$libdir does not exist.
17839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17840
17841# Whether we need a single "-rpath" flag with a separated argument.
17842hardcode_libdir_separator=$lt_hardcode_libdir_separator
17843
17844# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17845# DIR into the resulting binary.
17846hardcode_direct=$hardcode_direct
17847
17848# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17849# DIR into the resulting binary and the resulting library dependency is
17850# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17851# library is relocated.
17852hardcode_direct_absolute=$hardcode_direct_absolute
17853
17854# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17855# into the resulting binary.
17856hardcode_minus_L=$hardcode_minus_L
17857
17858# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17859# into the resulting binary.
17860hardcode_shlibpath_var=$hardcode_shlibpath_var
17861
17862# Set to "yes" if building a shared library automatically hardcodes DIR
17863# into the library and all subsequent libraries and executables linked
17864# against it.
17865hardcode_automatic=$hardcode_automatic
17866
17867# Set to yes if linker adds runtime paths of dependent libraries
17868# to runtime path list.
17869inherit_rpath=$inherit_rpath
17870
17871# Whether libtool must link a program against all its dependency libraries.
17872link_all_deplibs=$link_all_deplibs
17873
17874# Fix the shell variable \$srcfile for the compiler.
17875fix_srcfile_path=$lt_fix_srcfile_path
17876
17877# Set to "yes" if exported symbols are required.
17878always_export_symbols=$always_export_symbols
17879
17880# The commands to list exported symbols.
17881export_symbols_cmds=$lt_export_symbols_cmds
17882
17883# Symbols that should not be listed in the preloaded symbols.
17884exclude_expsyms=$lt_exclude_expsyms
17885
17886# Symbols that must always be exported.
17887include_expsyms=$lt_include_expsyms
17888
17889# Commands necessary for linking programs (against libraries) with templates.
17890prelink_cmds=$lt_prelink_cmds
17891
17892# Specify filename containing input files.
17893file_list_spec=$lt_file_list_spec
17894
17895# How to hardcode a shared library path into an executable.
17896hardcode_action=$hardcode_action
17897
93e92f52
PG
17898# The directories searched by this compiler when creating a shared library.
17899compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17900
1cf3d07d
SE
17901# Dependencies to place before and after the objects being linked to
17902# create a shared library.
17903predep_objects=$lt_predep_objects
17904postdep_objects=$lt_postdep_objects
17905predeps=$lt_predeps
17906postdeps=$lt_postdeps
17907
17908# The library search path used internally by the compiler when linking
17909# a shared library.
17910compiler_lib_search_path=$lt_compiler_lib_search_path
17911
17912# ### END LIBTOOL CONFIG
17913
17914_LT_EOF
17915
17916 case $host_os in
17917 aix3*)
17918 cat <<\_LT_EOF >> "$cfgfile"
17919# AIX sometimes has problems with the GCC collect2 program. For some
17920# reason, if we set the COLLECT_NAMES environment variable, the problems
17921# vanish in a puff of smoke.
17922if test "X${COLLECT_NAMES+set}" != Xset; then
17923 COLLECT_NAMES=
17924 export COLLECT_NAMES
17925fi
17926_LT_EOF
17927 ;;
17928 esac
17929
17930
17931ltmain="$ac_aux_dir/ltmain.sh"
17932
17933
17934 # We use sed instead of cat because bash on DJGPP gets confused if
17935 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17936 # text mode, it properly converts lines to CR/LF. This bash problem
17937 # is reportedly fixed, but why not run on old versions too?
17938 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17939 || (rm -f "$cfgfile"; exit 1)
17940
17941 case $xsi_shell in
17942 yes)
17943 cat << \_LT_EOF >> "$cfgfile"
93e92f52 17944
1cf3d07d
SE
17945# func_dirname file append nondir_replacement
17946# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17947# otherwise set result to NONDIR_REPLACEMENT.
17948func_dirname ()
17949{
17950 case ${1} in
17951 */*) func_dirname_result="${1%/*}${2}" ;;
17952 * ) func_dirname_result="${3}" ;;
17953 esac
17954}
17955
17956# func_basename file
17957func_basename ()
17958{
17959 func_basename_result="${1##*/}"
17960}
17961
93e92f52
PG
17962# func_dirname_and_basename file append nondir_replacement
17963# perform func_basename and func_dirname in a single function
17964# call:
17965# dirname: Compute the dirname of FILE. If nonempty,
17966# add APPEND to the result, otherwise set result
17967# to NONDIR_REPLACEMENT.
17968# value returned in "$func_dirname_result"
17969# basename: Compute filename of FILE.
17970# value retuned in "$func_basename_result"
17971# Implementation must be kept synchronized with func_dirname
17972# and func_basename. For efficiency, we do not delegate to
17973# those functions but instead duplicate the functionality here.
17974func_dirname_and_basename ()
17975{
17976 case ${1} in
17977 */*) func_dirname_result="${1%/*}${2}" ;;
17978 * ) func_dirname_result="${3}" ;;
17979 esac
17980 func_basename_result="${1##*/}"
17981}
17982
1cf3d07d
SE
17983# func_stripname prefix suffix name
17984# strip PREFIX and SUFFIX off of NAME.
17985# PREFIX and SUFFIX must not contain globbing or regex special
17986# characters, hashes, percent signs, but SUFFIX may contain a leading
17987# dot (in which case that matches only a dot).
17988func_stripname ()
17989{
17990 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17991 # positional parameters, so assign one to ordinary parameter first.
17992 func_stripname_result=${3}
17993 func_stripname_result=${func_stripname_result#"${1}"}
17994 func_stripname_result=${func_stripname_result%"${2}"}
17995}
17996
17997# func_opt_split
17998func_opt_split ()
17999{
18000 func_opt_split_opt=${1%%=*}
18001 func_opt_split_arg=${1#*=}
18002}
18003
18004# func_lo2o object
18005func_lo2o ()
18006{
18007 case ${1} in
18008 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18009 *) func_lo2o_result=${1} ;;
18010 esac
18011}
93e92f52
PG
18012
18013# func_xform libobj-or-source
18014func_xform ()
18015{
18016 func_xform_result=${1%.*}.lo
18017}
18018
18019# func_arith arithmetic-term...
18020func_arith ()
18021{
18022 func_arith_result=$(( $* ))
18023}
18024
18025# func_len string
18026# STRING may not start with a hyphen.
18027func_len ()
18028{
18029 func_len_result=${#1}
18030}
18031
1cf3d07d
SE
18032_LT_EOF
18033 ;;
18034 *) # Bourne compatible functions.
18035 cat << \_LT_EOF >> "$cfgfile"
93e92f52 18036
1cf3d07d
SE
18037# func_dirname file append nondir_replacement
18038# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18039# otherwise set result to NONDIR_REPLACEMENT.
18040func_dirname ()
18041{
18042 # Extract subdirectory from the argument.
18043 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18044 if test "X$func_dirname_result" = "X${1}"; then
18045 func_dirname_result="${3}"
18046 else
18047 func_dirname_result="$func_dirname_result${2}"
18048 fi
18049}
18050
18051# func_basename file
18052func_basename ()
18053{
18054 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18055}
18056
93e92f52 18057
1cf3d07d
SE
18058# func_stripname prefix suffix name
18059# strip PREFIX and SUFFIX off of NAME.
18060# PREFIX and SUFFIX must not contain globbing or regex special
18061# characters, hashes, percent signs, but SUFFIX may contain a leading
18062# dot (in which case that matches only a dot).
18063# func_strip_suffix prefix name
18064func_stripname ()
18065{
18066 case ${2} in
18067 .*) func_stripname_result=`$ECHO "X${3}" \
18068 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18069 *) func_stripname_result=`$ECHO "X${3}" \
18070 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18071 esac
18072}
18073
18074# sed scripts:
18075my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18076my_sed_long_arg='1s/^-[^=]*=//'
18077
18078# func_opt_split
18079func_opt_split ()
18080{
18081 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18082 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18083}
18084
18085# func_lo2o object
18086func_lo2o ()
18087{
18088 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18089}
93e92f52
PG
18090
18091# func_xform libobj-or-source
18092func_xform ()
18093{
18094 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18095}
18096
18097# func_arith arithmetic-term...
18098func_arith ()
18099{
18100 func_arith_result=`expr "$@"`
18101}
18102
18103# func_len string
18104# STRING may not start with a hyphen.
18105func_len ()
18106{
18107 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18108}
18109
1cf3d07d
SE
18110_LT_EOF
18111esac
18112
18113case $lt_shell_append in
18114 yes)
18115 cat << \_LT_EOF >> "$cfgfile"
18116
18117# func_append var value
18118# Append VALUE to the end of shell variable VAR.
18119func_append ()
18120{
18121 eval "$1+=\$2"
18122}
18123_LT_EOF
18124 ;;
18125 *)
18126 cat << \_LT_EOF >> "$cfgfile"
18127
18128# func_append var value
18129# Append VALUE to the end of shell variable VAR.
18130func_append ()
18131{
18132 eval "$1=\$$1\$2"
18133}
93e92f52 18134
1cf3d07d
SE
18135_LT_EOF
18136 ;;
18137 esac
18138
18139
18140 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18141 || (rm -f "$cfgfile"; exit 1)
18142
18143 mv -f "$cfgfile" "$ofile" ||
18144 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18145 chmod +x "$ofile"
18146
18147
18148 cat <<_LT_EOF >> "$ofile"
18149
18150# ### BEGIN LIBTOOL TAG CONFIG: CXX
18151
18152# The linker used to build libraries.
18153LD=$lt_LD_CXX
18154
18155# Commands used to build an old-style archive.
18156old_archive_cmds=$lt_old_archive_cmds_CXX
18157
18158# A language specific compiler.
18159CC=$lt_compiler_CXX
18160
18161# Is the compiler the GNU compiler?
18162with_gcc=$GCC_CXX
18163
18164# Compiler flag to turn off builtin functions.
18165no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18166
18167# How to pass a linker flag through the compiler.
18168wl=$lt_lt_prog_compiler_wl_CXX
18169
18170# Additional compiler flags for building library objects.
18171pic_flag=$lt_lt_prog_compiler_pic_CXX
18172
18173# Compiler flag to prevent dynamic linking.
18174link_static_flag=$lt_lt_prog_compiler_static_CXX
18175
18176# Does compiler simultaneously support -c and -o options?
18177compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18178
18179# Whether or not to add -lc for building shared libraries.
18180build_libtool_need_lc=$archive_cmds_need_lc_CXX
18181
18182# Whether or not to disallow shared libs when runtime libs are static.
18183allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18184
18185# Compiler flag to allow reflexive dlopens.
18186export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18187
18188# Compiler flag to generate shared objects directly from archives.
18189whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18190
18191# Whether the compiler copes with passing no objects directly.
18192compiler_needs_object=$lt_compiler_needs_object_CXX
18193
18194# Create an old-style archive from a shared archive.
18195old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18196
18197# Create a temporary old-style archive to link instead of a shared archive.
18198old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18199
18200# Commands used to build a shared archive.
18201archive_cmds=$lt_archive_cmds_CXX
18202archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18203
18204# Commands used to build a loadable module if different from building
18205# a shared archive.
18206module_cmds=$lt_module_cmds_CXX
18207module_expsym_cmds=$lt_module_expsym_cmds_CXX
18208
18209# Whether we are building with GNU ld or not.
18210with_gnu_ld=$lt_with_gnu_ld_CXX
18211
18212# Flag that allows shared libraries with undefined symbols to be built.
18213allow_undefined_flag=$lt_allow_undefined_flag_CXX
18214
18215# Flag that enforces no undefined symbols.
18216no_undefined_flag=$lt_no_undefined_flag_CXX
18217
18218# Flag to hardcode \$libdir into a binary during linking.
18219# This must work even if \$libdir does not exist
18220hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18221
18222# If ld is used when linking, flag to hardcode \$libdir into a binary
18223# during linking. This must work even if \$libdir does not exist.
18224hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18225
18226# Whether we need a single "-rpath" flag with a separated argument.
18227hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18228
18229# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18230# DIR into the resulting binary.
18231hardcode_direct=$hardcode_direct_CXX
18232
18233# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18234# DIR into the resulting binary and the resulting library dependency is
18235# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18236# library is relocated.
18237hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18238
18239# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18240# into the resulting binary.
18241hardcode_minus_L=$hardcode_minus_L_CXX
18242
18243# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18244# into the resulting binary.
18245hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18246
18247# Set to "yes" if building a shared library automatically hardcodes DIR
18248# into the library and all subsequent libraries and executables linked
18249# against it.
18250hardcode_automatic=$hardcode_automatic_CXX
18251
18252# Set to yes if linker adds runtime paths of dependent libraries
18253# to runtime path list.
18254inherit_rpath=$inherit_rpath_CXX
18255
18256# Whether libtool must link a program against all its dependency libraries.
18257link_all_deplibs=$link_all_deplibs_CXX
18258
18259# Fix the shell variable \$srcfile for the compiler.
18260fix_srcfile_path=$lt_fix_srcfile_path_CXX
18261
18262# Set to "yes" if exported symbols are required.
18263always_export_symbols=$always_export_symbols_CXX
18264
18265# The commands to list exported symbols.
18266export_symbols_cmds=$lt_export_symbols_cmds_CXX
18267
18268# Symbols that should not be listed in the preloaded symbols.
18269exclude_expsyms=$lt_exclude_expsyms_CXX
18270
18271# Symbols that must always be exported.
18272include_expsyms=$lt_include_expsyms_CXX
18273
18274# Commands necessary for linking programs (against libraries) with templates.
18275prelink_cmds=$lt_prelink_cmds_CXX
18276
18277# Specify filename containing input files.
18278file_list_spec=$lt_file_list_spec_CXX
18279
18280# How to hardcode a shared library path into an executable.
18281hardcode_action=$hardcode_action_CXX
18282
93e92f52
PG
18283# The directories searched by this compiler when creating a shared library.
18284compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18285
1cf3d07d
SE
18286# Dependencies to place before and after the objects being linked to
18287# create a shared library.
18288predep_objects=$lt_predep_objects_CXX
18289postdep_objects=$lt_postdep_objects_CXX
18290predeps=$lt_predeps_CXX
18291postdeps=$lt_postdeps_CXX
18292
18293# The library search path used internally by the compiler when linking
18294# a shared library.
18295compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18296
18297# ### END LIBTOOL TAG CONFIG: CXX
18298_LT_EOF
18299
bf9a420e 18300 ;;
5213506e 18301
47935194 18302 esac
5213506e 18303done # for ac_tag
47935194 18304
47935194 18305
5213506e 18306as_fn_exit 0
47935194 18307_ACEOF
47935194
NN
18308ac_clean_files=$ac_clean_files_save
18309
5213506e
RW
18310test $ac_write_fail = 0 ||
18311 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18312
47935194
NN
18313
18314# configure is writing to config.log, and then calls config.status.
18315# config.status does its own redirection, appending to config.log.
18316# Unfortunately, on DOS this fails, as config.log is still kept open
18317# by configure, so config.status won't be able to write to it; its
18318# output is simply discarded. So we exec the FD to /dev/null,
18319# effectively closing config.log, so it can be properly (re)opened and
18320# appended to by config.status. When coming back to configure, we
18321# need to make the FD available again.
18322if test "$no_create" != yes; then
18323 ac_cs_success=:
18324 ac_config_status_args=
18325 test "$silent" = yes &&
18326 ac_config_status_args="$ac_config_status_args --quiet"
18327 exec 5>/dev/null
18328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18329 exec 5>>config.log
18330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18331 # would make configure fail if this is the last instruction.
5213506e
RW
18332 $ac_cs_success || as_fn_exit $?
18333fi
18334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18336$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47935194 18337fi
1530be84 18338