m68hc11/12 and xgate config.sub weirdness
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for ld 2.26.51.
81ecdfbb
RW
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.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
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 :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
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 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
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
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
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
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
42ecbf5e 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
42ecbf5e 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
42ecbf5e 418
42ecbf5e
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
42ecbf5e 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
42ecbf5e
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
42ecbf5e
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
42ecbf5e 491 fi
42ecbf5e
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
42ecbf5e
DJ
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='ld'
558PACKAGE_TARNAME='ld'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='ld 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
42ecbf5e
DJ
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
c58212ea
L
611elf_plt_unwind_list_options
612elf_shlib_list_options
613elf_list_options
81ecdfbb 614STRINGIFY
02ecc8e9 615enable_initfini_array
5d3236ee
DK
616ENABLE_PLUGINS_FALSE
617ENABLE_PLUGINS_TRUE
81ecdfbb 618NATIVE_LIB_DIRS
b27caf75 619HOSTING_SLIBS
81ecdfbb 620HOSTING_LIBS
6738cadc 621HOSTING_SCRT0
81ecdfbb
RW
622HOSTING_CRT0
623HDEFINES
624do_compare
625GENINSRC_NEVER_FALSE
626GENINSRC_NEVER_TRUE
81ecdfbb
RW
627LEXLIB
628LEX_OUTPUT_ROOT
629LEX
630YFLAGS
631YACC
632MSGMERGE
633MSGFMT
634MKINSTALLDIRS
635CATOBJEXT
636GENCAT
637INSTOBJEXT
638DATADIRNAME
639CATALOGS
640POSUB
641GMSGFMT
642XGETTEXT
643INCINTL
644LIBINTL_DEP
645LIBINTL
646USE_NLS
b879806f
AM
647NO_WERROR
648WARN_CFLAGS
649installed_linker
650install_as_default
651TARGET_SYSTEM_ROOT_DEFINE
652TARGET_SYSTEM_ROOT
653use_sysroot
3cb62297 654CXXCPP
81ecdfbb
RW
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
81ecdfbb
RW
660RANLIB
661AR
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669SED
670LIBTOOL
b879806f 671EGREP
b879806f 672CPP
68880f31 673GREP
3cb62297
L
674am__fastdepCXX_FALSE
675am__fastdepCXX_TRUE
676CXXDEPMODE
677ac_ct_CXX
678CXXFLAGS
679CXX
64ac50ac
RW
680MAINT
681MAINTAINER_MODE_FALSE
682MAINTAINER_MODE_TRUE
81ecdfbb
RW
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686AMDEPBACKSLASH
687AMDEP_FALSE
688AMDEP_TRUE
689am__quote
690am__include
691DEPDIR
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
42ecbf5e 772ac_subst_files='TDIRS'
81ecdfbb
RW
773ac_user_opts='
774enable_option_checking
775enable_dependency_tracking
64ac50ac 776enable_maintainer_mode
b879806f
AM
777enable_shared
778enable_static
779with_pic
780enable_fast_install
781with_gnu_ld
782enable_libtool_lock
783enable_plugins
784enable_largefile
81ecdfbb
RW
785with_lib_path
786enable_targets
787enable_64_bit_bfd
788with_sysroot
4fda8867 789enable_gold
81ecdfbb 790enable_got
6c3bc0f8 791enable_compressed_debug_sections
81ecdfbb
RW
792enable_werror
793enable_build_warnings
81ecdfbb 794enable_nls
02ecc8e9 795enable_initfini_array
81ecdfbb
RW
796'
797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
3cb62297
L
805CXX
806CXXFLAGS
807CCC
b879806f 808CPP
3cb62297 809CXXCPP
81ecdfbb
RW
810YACC
811YFLAGS'
812
252b5132
RH
813
814# Initialize some variables set by options.
42ecbf5e
DJ
815ac_init_help=
816ac_init_version=false
81ecdfbb
RW
817ac_unrecognized_opts=
818ac_unrecognized_sep=
252b5132
RH
819# The variables have the same names as the options, with
820# dashes changed to underlines.
42ecbf5e 821cache_file=/dev/null
252b5132 822exec_prefix=NONE
252b5132 823no_create=
252b5132
RH
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
252b5132
RH
832verbose=
833x_includes=NONE
834x_libraries=NONE
42ecbf5e
DJ
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 841# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
252b5132
RH
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
252b5132
RH
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
2e98a7bd 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
252b5132 861
252b5132 862ac_prev=
81ecdfbb 863ac_dashdash=
252b5132
RH
864for ac_option
865do
252b5132
RH
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
81ecdfbb 868 eval $ac_prev=\$ac_option
252b5132
RH
869 ac_prev=
870 continue
871 fi
872
81ecdfbb
RW
873 case $ac_option in
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *) ac_optarg=yes ;;
876 esac
252b5132
RH
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
81ecdfbb
RW
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
252b5132
RH
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 887 bindir=$ac_optarg ;;
252b5132
RH
888
889 -build | --build | --buil | --bui | --bu)
42ecbf5e 890 ac_prev=build_alias ;;
252b5132 891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 892 build_alias=$ac_optarg ;;
252b5132
RH
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
252b5132 903
81ecdfbb 904 -datadir | --datadir | --datadi | --datad)
252b5132 905 ac_prev=datadir ;;
81ecdfbb 906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 907 datadir=$ac_optarg ;;
252b5132 908
81ecdfbb
RW
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
252b5132 916 -disable-* | --disable-*)
81ecdfbb 917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 918 # Reject names that are not valid shell variable names.
81ecdfbb
RW
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925"enable_$ac_useropt"
926"*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
252b5132
RH
941
942 -enable-* | --enable-*)
81ecdfbb 943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 944 # Reject names that are not valid shell variable names.
81ecdfbb
RW
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
252b5132 955 esac
81ecdfbb 956 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
42ecbf5e 965 exec_prefix=$ac_optarg ;;
252b5132
RH
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
42ecbf5e
DJ
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
252b5132
RH
977
978 -host | --host | --hos | --ho)
42ecbf5e 979 ac_prev=host_alias ;;
252b5132 980 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 981 host_alias=$ac_optarg ;;
252b5132 982
81ecdfbb
RW
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
252b5132
RH
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 994 includedir=$ac_optarg ;;
252b5132
RH
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 999 infodir=$ac_optarg ;;
252b5132
RH
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1004 libdir=$ac_optarg ;;
252b5132
RH
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1011 libexecdir=$ac_optarg ;;
252b5132 1012
81ecdfbb
RW
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
252b5132 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1019 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1023 localstatedir=$ac_optarg ;;
252b5132
RH
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1028 mandir=$ac_optarg ;;
252b5132
RH
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1035 | --no-cr | --no-c | -n)
252b5132
RH
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1049 oldincludedir=$ac_optarg ;;
252b5132
RH
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1054 prefix=$ac_optarg ;;
252b5132
RH
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1061 program_prefix=$ac_optarg ;;
252b5132
RH
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1068 program_suffix=$ac_optarg ;;
252b5132
RH
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1085 program_transform_name=$ac_optarg ;;
252b5132 1086
81ecdfbb
RW
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
252b5132
RH
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
42ecbf5e 1105 sbindir=$ac_optarg ;;
252b5132
RH
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
42ecbf5e 1116 sharedstatedir=$ac_optarg ;;
252b5132
RH
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
42ecbf5e 1121 site=$ac_optarg ;;
85fbca6a 1122
252b5132
RH
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1126 srcdir=$ac_optarg ;;
252b5132
RH
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1133 sysconfdir=$ac_optarg ;;
252b5132
RH
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1136 ac_prev=target_alias ;;
252b5132 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1138 target_alias=$ac_optarg ;;
252b5132
RH
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
42ecbf5e
DJ
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
252b5132
RH
1145
1146 -with-* | --with-*)
81ecdfbb 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1148 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155"with_$ac_useropt"
1156"*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
252b5132 1159 esac
81ecdfbb 1160 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1161
1162 -without-* | --without-*)
81ecdfbb 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
252b5132
RH
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1187 x_includes=$ac_optarg ;;
252b5132
RH
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1194 x_libraries=$ac_optarg ;;
252b5132 1195
81ecdfbb
RW
1196 -*) as_fn_error "unrecognized option: \`$ac_option'
1197Try \`$0 --help' for more information."
252b5132
RH
1198 ;;
1199
42ecbf5e
DJ
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1208 export $ac_envvar ;;
1209
252b5132 1210 *)
42ecbf5e 1211 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1215 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1216 ;;
1217
1218 esac
1219done
1220
1221if test -n "$ac_prev"; then
42ecbf5e 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1223 as_fn_error "missing argument to $ac_option"
252b5132 1224fi
252b5132 1225
81ecdfbb
RW
1226if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1231 esac
81ecdfbb 1232fi
252b5132 1233
81ecdfbb
RW
1234# Check all directory arguments for consistency.
1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
252b5132 1239do
81ecdfbb
RW
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
42ecbf5e 1248 case $ac_val in
81ecdfbb
RW
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1251 esac
81ecdfbb 1252 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1253done
1254
42ecbf5e
DJ
1255# There might be people who depend on the old broken behavior: `$host'
1256# used to hold the argument of --host etc.
1257# FIXME: To remove some day.
1258build=$build_alias
1259host=$host_alias
1260target=$target_alias
1261
1262# FIXME: To remove some day.
1263if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
81ecdfbb 1266 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271fi
e5a52504 1272
42ecbf5e
DJ
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
252b5132 1277
252b5132 1278
81ecdfbb
RW
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error "pwd does not report name of working directory"
1285
1286
252b5132
RH
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
81ecdfbb
RW
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
252b5132 1314 srcdir=$ac_confdir
81ecdfbb 1315 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1316 srcdir=..
1317 fi
1318else
1319 ac_srcdir_defaulted=no
1320fi
81ecdfbb
RW
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1328 pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
252b5132 1345
42ecbf5e
DJ
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
d8bd95ef 1353\`configure' configures ld 2.26.51 to adapt to many kinds of systems.
252b5132 1354
42ecbf5e 1355Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1356
42ecbf5e
DJ
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1359
42ecbf5e 1360Defaults for the options are specified in brackets.
ac48eca1 1361
42ecbf5e
DJ
1362Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
42ecbf5e
DJ
1373Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1375 [$ac_default_prefix]
42ecbf5e 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1377 [PREFIX]
ac48eca1 1378
42ecbf5e
DJ
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
ac48eca1 1383
42ecbf5e 1384For better control, use the options below.
ac48eca1 1385
42ecbf5e 1386Fine tuning of the installation directories:
81ecdfbb
RW
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1406_ACEOF
ac48eca1 1407
42ecbf5e 1408 cat <<\_ACEOF
252b5132 1409
42ecbf5e
DJ
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1414
42ecbf5e
DJ
1415System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1419_ACEOF
252b5132 1420fi
252b5132 1421
42ecbf5e 1422if test -n "$ac_init_help"; then
2e98a7bd 1423 case $ac_init_help in
d8bd95ef 1424 short | recursive ) echo "Configuration of ld 2.26.51:";;
2e98a7bd 1425 esac
42ecbf5e 1426 cat <<\_ACEOF
e5a52504 1427
42ecbf5e 1428Optional Features:
81ecdfbb 1429 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --disable-dependency-tracking speeds up one-time build
1433 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1434 --enable-maintainer-mode enable make rules and dependencies not useful
1435 (and sometimes confusing) to the casual installer
b879806f
AM
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --enable-plugins Enable support for plugins
1442 --disable-largefile omit support for large files
ce2cded5
L
1443 --enable-targets alternative target configurations
1444 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1445 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1446 --enable-got=<type> GOT handling scheme (target, single, negative,
1447 multigot)
4894d80b
L
1448 --enable-compressed-debug-sections={all,ld,none}
1449 compress debug sections by default]
ce2cded5
L
1450 --enable-werror treat compile warnings as errors
1451 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1452 --disable-nls do not use Native Language Support
26e3a0c9 1453 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1454
1455Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1461 --with-lib-path=dir1:dir2... set default LIB_PATH
1462 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1463
1464Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
81ecdfbb
RW
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
3cb62297
L
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
b879806f 1474 CPP C preprocessor
3cb62297 1475 CXXCPP C++ preprocessor
81ecdfbb
RW
1476 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1477 the first program found out of: `bison -y', `byacc', `yacc'.
1478 YFLAGS The list of arguments that will be passed by default to $YACC.
1479 This script will default YFLAGS to the empty string to avoid a
1480 default value of `-d' given by some make applications.
42ecbf5e
DJ
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
81ecdfbb 1485Report bugs to the package provider.
42ecbf5e 1486_ACEOF
81ecdfbb 1487ac_status=$?
42ecbf5e
DJ
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
42ecbf5e 1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
42ecbf5e
DJ
1496 ac_builddir=.
1497
81ecdfbb
RW
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1513
1514case $srcdir in
81ecdfbb 1515 .) # We are building in place.
42ecbf5e 1516 ac_srcdir=.
81ecdfbb
RW
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1520 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1527esac
81ecdfbb
RW
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1538 else
81ecdfbb
RW
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1542 done
a2d91340
AC
1543fi
1544
81ecdfbb 1545test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1546if $ac_init_version; then
1547 cat <<\_ACEOF
d8bd95ef 1548ld configure 2.26.51
81ecdfbb 1549generated by GNU Autoconf 2.64
a2d91340 1550
81ecdfbb 1551Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
81ecdfbb 1555 exit
42ecbf5e 1556fi
a2d91340 1557
81ecdfbb
RW
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
a2d91340 1561
81ecdfbb
RW
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1592
81ecdfbb
RW
1593 ac_retval=1
1594fi
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
42ecbf5e 1604{
81ecdfbb
RW
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext conftest$ac_exeext
1607 if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest$ac_exeext && {
1626 test "$cross_compiling" = yes ||
1627 $as_test_x conftest$ac_exeext
1628 }; then :
1629 ac_retval=0
1630else
1631 $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1633
81ecdfbb
RW
1634 ac_retval=1
1635fi
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638 # interfere with the next link command; also delete a directory that is
1639 # left behind by Apple's compiler. We do this before executing the actions.
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 return $ac_retval
42ecbf5e 1643
81ecdfbb 1644} # ac_fn_c_try_link
42ecbf5e 1645
b879806f
AM
1646# ac_fn_cxx_try_compile LINENO
1647# ----------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_cxx_try_compile ()
81ecdfbb
RW
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
81ecdfbb
RW
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
b879806f 1660 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1668 test $ac_status = 0; } && {
1669 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1670 test ! -s conftest.err
b879806f 1671 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
b879806f 1677 ac_retval=1
81ecdfbb
RW
1678fi
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680 return $ac_retval
1681
b879806f 1682} # ac_fn_cxx_try_compile
81ecdfbb 1683
b879806f
AM
1684# ac_fn_c_try_cpp LINENO
1685# ----------------------
1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_cpp ()
3cb62297
L
1688{
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1691case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
b879806f 1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1707 test ! -s conftest.err
b879806f 1708 }; then :
3cb62297
L
1709 ac_retval=0
1710else
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
b879806f 1714 ac_retval=1
3cb62297
L
1715fi
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1718
b879806f 1719} # ac_fn_c_try_cpp
3cb62297 1720
81ecdfbb
RW
1721# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722# -------------------------------------------------------
1723# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724# the include files in INCLUDES and setting the cache variable VAR
1725# accordingly.
1726ac_fn_c_check_header_mongrel ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1734fi
1735eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737$as_echo "$ac_res" >&6; }
1738else
1739 # Is the header compilable?
1740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741$as_echo_n "checking $2 usability... " >&6; }
1742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h. */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_header_compiler=yes
1749else
1750 ac_header_compiler=no
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754$as_echo "$ac_header_compiler" >&6; }
1755
1756# Is the header present?
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758$as_echo_n "checking $2 presence... " >&6; }
1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761#include <$2>
1762_ACEOF
1763if ac_fn_c_try_cpp "$LINENO"; then :
1764 ac_header_preproc=yes
1765else
1766 ac_header_preproc=no
1767fi
1768rm -f conftest.err conftest.$ac_ext
1769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770$as_echo "$ac_header_preproc" >&6; }
1771
1772# So? What about this header?
1773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774 yes:no: )
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1779 ;;
1780 no:yes:* )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1784$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1788$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 ;;
1792esac
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
1795if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1797else
1798 eval "$3=\$ac_header_compiler"
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803fi
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
1806} # ac_fn_c_check_header_mongrel
1807
1808# ac_fn_c_try_run LINENO
1809# ----------------------
1810# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811# that executables *can* be run.
1812ac_fn_c_try_run ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1836 ac_retval=0
1837else
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=$ac_status
1843fi
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1847
1848} # ac_fn_c_try_run
1849
1850# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851# -------------------------------------------------------
1852# Tests whether HEADER exists and can be compiled using the include files in
1853# INCLUDES, setting the cache variable VAR accordingly.
1854ac_fn_c_check_header_compile ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h. */
1864$4
1865#include <$2>
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869else
1870 eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} # ac_fn_c_check_header_compile
1880
1881# ac_fn_c_check_func LINENO FUNC VAR
1882# ----------------------------------
1883# Tests whether FUNC exists, setting the cache variable VAR accordingly
1884ac_fn_c_check_func ()
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 $as_echo_n "(cached) " >&6
1891else
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896#define $2 innocuous_$2
1897
1898/* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1902
1903#ifdef __STDC__
1904# include <limits.h>
1905#else
1906# include <assert.h>
1907#endif
1908
1909#undef $2
1910
1911/* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1914#ifdef __cplusplus
1915extern "C"
1916#endif
1917char $2 ();
1918/* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921#if defined __stub_$2 || defined __stub___$2
1922choke me
1923#endif
1924
1925int
1926main ()
1927{
1928return $2 ();
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_link "$LINENO"; then :
1934 eval "$3=yes"
1935else
1936 eval "$3=no"
1937fi
1938rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946} # ac_fn_c_check_func
1947
3cb62297
L
1948# ac_fn_cxx_try_cpp LINENO
1949# ------------------------
1950# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_cxx_try_cpp ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1955case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } >/dev/null && {
1970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1971 test ! -s conftest.err
1972 }; then :
1973 ac_retval=0
1974else
1975 $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1
1979fi
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1982
1983} # ac_fn_cxx_try_cpp
1984
1985# ac_fn_cxx_try_link LINENO
1986# -------------------------
1987# Try to link conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_cxx_try_link ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1993case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_cxx_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 $as_test_x conftest$ac_exeext
2013 }; then :
2014 ac_retval=0
2015else
2016 $as_echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1
2020fi
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 return $ac_retval
2028
2029} # ac_fn_cxx_try_link
2030
81ecdfbb
RW
2031# ac_fn_c_check_decl LINENO SYMBOL VAR
2032# ------------------------------------
2033# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2034ac_fn_c_check_decl ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2037 as_decl_name=`echo $2|sed 's/ *(.*//'`
2038 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2041if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2043else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
360cfc9c
AM
2050#ifndef $as_decl_name
2051#ifdef __cplusplus
2052 (void) $as_decl_use;
2053#else
2054 (void) $as_decl_name;
2055#endif
81ecdfbb
RW
2056#endif
2057
2058 ;
2059 return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063 eval "$3=yes"
2064else
2065 eval "$3=no"
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068fi
2069eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073
2074} # ac_fn_c_check_decl
2075
2076# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2077# --------------------------------------------
2078# Tries to find the compile-time value of EXPR in a program that includes
2079# INCLUDES, setting VAR accordingly. Returns whether the value could be
2080# computed
2081ac_fn_c_compute_int ()
2082{
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if test "$cross_compiling" = yes; then
2085 # Depending upon the size, compute the lo and hi bounds.
2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) >= 0)];
2093test_array [0] = 0
2094
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_lo=0 ac_mid=0
2101 while :; do
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
2106main ()
2107{
2108static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109test_array [0] = 0
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=$ac_mid; break
2117else
2118 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2119 if test $ac_lo -le $ac_mid; then
2120 ac_lo= ac_hi=
2121 break
2122 fi
2123 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 done
2127else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134static int test_array [1 - 2 * !(($2) < 0)];
2135test_array [0] = 0
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_hi=-1 ac_mid=-1
2143 while :; do
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146$4
2147int
2148main ()
2149{
2150static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2151test_array [0] = 0
2152
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=$ac_mid; break
2159else
2160 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2161 if test $ac_mid -le $ac_hi; then
2162 ac_lo= ac_hi=
2163 break
2164 fi
2165 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169else
2170 ac_lo= ac_hi=
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175# Binary search between lo and hi bounds.
2176while test "x$ac_lo" != "x$ac_hi"; do
2177 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h. */
2180$4
2181int
2182main ()
2183{
2184static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185test_array [0] = 0
2186
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_hi=$ac_mid
2193else
2194 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197done
2198case $ac_lo in #((
2199?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2200'') ac_retval=1 ;;
2201esac
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205$4
2206static long int longval () { return $2; }
2207static unsigned long int ulongval () { return $2; }
2208#include <stdio.h>
2209#include <stdlib.h>
2210int
2211main ()
2212{
2213
2214 FILE *f = fopen ("conftest.val", "w");
2215 if (! f)
2216 return 1;
2217 if (($2) < 0)
2218 {
2219 long int i = longval ();
2220 if (i != ($2))
2221 return 1;
2222 fprintf (f, "%ld", i);
2223 }
2224 else
2225 {
2226 unsigned long int i = ulongval ();
2227 if (i != ($2))
2228 return 1;
2229 fprintf (f, "%lu", i);
2230 }
2231 /* Do not output a trailing newline, as this causes \r\n confusion
2232 on some platforms. */
2233 return ferror (f) || fclose (f) != 0;
2234
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_run "$LINENO"; then :
2240 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2241else
2242 ac_retval=1
2243fi
2244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2245 conftest.$ac_objext conftest.beam conftest.$ac_ext
2246rm -f conftest.val
2247
2248 fi
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 return $ac_retval
2251
2252} # ac_fn_c_compute_int
2253cat >config.log <<_ACEOF
2254This file contains any messages produced by compilers while
2255running configure, to aid debugging if configure makes a mistake.
2256
d8bd95ef 2257It was created by ld $as_me 2.26.51, which was
81ecdfbb
RW
2258generated by GNU Autoconf 2.64. Invocation command line was
2259
2260 $ $0 $@
2261
2262_ACEOF
2263exec 5>>config.log
2264{
2265cat <<_ASUNAME
2266## --------- ##
2267## Platform. ##
2268## --------- ##
2269
2270hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2271uname -m = `(uname -m) 2>/dev/null || echo unknown`
2272uname -r = `(uname -r) 2>/dev/null || echo unknown`
2273uname -s = `(uname -s) 2>/dev/null || echo unknown`
2274uname -v = `(uname -v) 2>/dev/null || echo unknown`
2275
2276/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2277/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2278
2279/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2280/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2281/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2282/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2283/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2284/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2285/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2286
2287_ASUNAME
2288
2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2294 $as_echo "PATH: $as_dir"
2295 done
2296IFS=$as_save_IFS
252b5132 2297
42ecbf5e 2298} >&5
5d64ca4e 2299
42ecbf5e 2300cat >&5 <<_ACEOF
5d64ca4e 2301
5d64ca4e 2302
42ecbf5e
DJ
2303## ----------- ##
2304## Core tests. ##
2305## ----------- ##
5d64ca4e 2306
42ecbf5e 2307_ACEOF
2469cfa2 2308
42ecbf5e
DJ
2309
2310# Keep a trace of the command line.
2311# Strip out --no-create and --no-recursion so they do not pile up.
2312# Strip out --silent because we don't want to record it for future runs.
2313# Also quote any args containing shell meta-characters.
2314# Make two passes to allow for proper duplicate-argument suppression.
2315ac_configure_args=
2316ac_configure_args0=
2317ac_configure_args1=
42ecbf5e
DJ
2318ac_must_keep_next=false
2319for ac_pass in 1 2
2320do
2321 for ac_arg
2322 do
2323 case $ac_arg in
2324 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2326 | -silent | --silent | --silen | --sile | --sil)
2327 continue ;;
81ecdfbb
RW
2328 *\'*)
2329 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2330 esac
2331 case $ac_pass in
81ecdfbb 2332 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2333 2)
81ecdfbb 2334 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2335 if test $ac_must_keep_next = true; then
2336 ac_must_keep_next=false # Got value, back to normal.
2337 else
2338 case $ac_arg in
2339 *=* | --config-cache | -C | -disable-* | --disable-* \
2340 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2341 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2342 | -with-* | --with-* | -without-* | --without-* | --x)
2343 case "$ac_configure_args0 " in
2344 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2345 esac
2346 ;;
2347 -* ) ac_must_keep_next=true ;;
2348 esac
2349 fi
81ecdfbb 2350 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2351 ;;
2352 esac
2353 done
2354done
81ecdfbb
RW
2355{ ac_configure_args0=; unset ac_configure_args0;}
2356{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2357
2358# When interrupted or exit'd, cleanup temporary files, and complete
2359# config.log. We remove comments because anyway the quotes in there
2360# would cause problems or look ugly.
81ecdfbb
RW
2361# WARNING: Use '\'' to represent an apostrophe within the trap.
2362# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2363trap 'exit_status=$?
2364 # Save into config.log some information that might help in debugging.
2365 {
2366 echo
2367
2368 cat <<\_ASBOX
2369## ---------------- ##
2370## Cache variables. ##
2371## ---------------- ##
2372_ASBOX
2373 echo
2374 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2375(
2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377 eval ac_val=\$$ac_var
2378 case $ac_val in #(
2379 *${as_nl}*)
2380 case $ac_var in #(
2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383 esac
2384 case $ac_var in #(
2385 _ | IFS | as_nl) ;; #(
2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387 *) { eval $ac_var=; unset $ac_var;} ;;
2388 esac ;;
2389 esac
2390 done
42ecbf5e 2391 (set) 2>&1 |
81ecdfbb
RW
2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393 *${as_nl}ac_space=\ *)
42ecbf5e 2394 sed -n \
81ecdfbb
RW
2395 "s/'\''/'\''\\\\'\'''\''/g;
2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397 ;; #(
42ecbf5e 2398 *)
81ecdfbb 2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2400 ;;
81ecdfbb
RW
2401 esac |
2402 sort
2403)
42ecbf5e
DJ
2404 echo
2405
2406 cat <<\_ASBOX
2407## ----------------- ##
2408## Output variables. ##
2409## ----------------- ##
2410_ASBOX
2411 echo
2412 for ac_var in $ac_subst_vars
2413 do
81ecdfbb
RW
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2419 done | sort
2420 echo
2421
2422 if test -n "$ac_subst_files"; then
2423 cat <<\_ASBOX
81ecdfbb
RW
2424## ------------------- ##
2425## File substitutions. ##
2426## ------------------- ##
42ecbf5e
DJ
2427_ASBOX
2428 echo
2429 for ac_var in $ac_subst_files
2430 do
81ecdfbb
RW
2431 eval ac_val=\$$ac_var
2432 case $ac_val in
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 esac
2435 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2436 done | sort
2437 echo
2438 fi
2439
2440 if test -s confdefs.h; then
2441 cat <<\_ASBOX
2442## ----------- ##
2443## confdefs.h. ##
2444## ----------- ##
2445_ASBOX
2446 echo
81ecdfbb 2447 cat confdefs.h
42ecbf5e
DJ
2448 echo
2449 fi
2450 test "$ac_signal" != 0 &&
81ecdfbb
RW
2451 $as_echo "$as_me: caught signal $ac_signal"
2452 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2453 } >&5
81ecdfbb
RW
2454 rm -f core *.core core.conftest.* &&
2455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2456 exit $exit_status
81ecdfbb 2457' 0
42ecbf5e 2458for ac_signal in 1 2 13 15; do
81ecdfbb 2459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2460done
2461ac_signal=0
2462
2463# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2464rm -f -r conftest* confdefs.h
2465
2466$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2467
2468# Predefined preprocessor variables.
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_NAME "$PACKAGE_NAME"
2472_ACEOF
2473
42ecbf5e
DJ
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2476_ACEOF
2477
42ecbf5e
DJ
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_VERSION "$PACKAGE_VERSION"
2480_ACEOF
2481
42ecbf5e
DJ
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_STRING "$PACKAGE_STRING"
2484_ACEOF
2485
42ecbf5e
DJ
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2488_ACEOF
2489
81ecdfbb
RW
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_URL "$PACKAGE_URL"
2492_ACEOF
2493
42ecbf5e
DJ
2494
2495# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2496# Prefer an explicitly selected file to automatically selected ones.
2497ac_site_file1=NONE
2498ac_site_file2=NONE
2499if test -n "$CONFIG_SITE"; then
2500 ac_site_file1=$CONFIG_SITE
2501elif test "x$prefix" != xNONE; then
2502 ac_site_file1=$prefix/share/config.site
2503 ac_site_file2=$prefix/etc/config.site
2504else
2505 ac_site_file1=$ac_default_prefix/share/config.site
2506 ac_site_file2=$ac_default_prefix/etc/config.site
2507fi
2508for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2509do
2510 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2511 if test -r "$ac_site_file"; then
81ecdfbb
RW
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2513$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2514 sed 's/^/| /' "$ac_site_file" >&5
2515 . "$ac_site_file"
2516 fi
2517done
2518
2519if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special
2521 # files actually), so we avoid doing that.
2522 if test -f "$cache_file"; then
81ecdfbb
RW
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2525 case $cache_file in
81ecdfbb
RW
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
42ecbf5e
DJ
2528 esac
2529 fi
2530else
81ecdfbb
RW
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2533 >$cache_file
2534fi
2535
2536# Check that the precious variables saved in the cache have kept the same
2537# value.
2538ac_cache_corrupted=false
81ecdfbb 2539for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2544 case $ac_old_set,$ac_new_set in
2545 set,)
81ecdfbb
RW
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2548 ac_cache_corrupted=: ;;
2549 ,set)
81ecdfbb
RW
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2552 ac_cache_corrupted=: ;;
2553 ,);;
2554 *)
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w=`echo x $ac_old_val`
2558 ac_new_val_w=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted=:
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\$ac_old_val
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2572 fi;;
2573 esac
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2576 case $ac_new_val in
81ecdfbb 2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2578 *) ac_arg=$ac_var=$ac_new_val ;;
2579 esac
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2583 esac
2584 fi
2585done
2586if $ac_cache_corrupted; then
81ecdfbb
RW
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2592fi
81ecdfbb
RW
2593## -------------------- ##
2594## Main body of script. ##
2595## -------------------- ##
42ecbf5e
DJ
2596
2597ac_ext=c
2598ac_cpp='$CPP $CPPFLAGS'
2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603
2604
42ecbf5e 2605
da594c4a 2606
42ecbf5e
DJ
2607
2608
2609ac_aux_dir=
81ecdfbb
RW
2610for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2611 for ac_t in install-sh install.sh shtool; do
2612 if test -f "$ac_dir/$ac_t"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/$ac_t -c"
2615 break 2
2616 fi
2617 done
42ecbf5e
DJ
2618done
2619if test -z "$ac_aux_dir"; then
81ecdfbb 2620 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2621fi
81ecdfbb
RW
2622
2623# These three variables are undocumented and unsupported,
2624# and are intended to be withdrawn in a future Autoconf release.
2625# They can cause serious problems if a builder's source tree is in a directory
2626# whose full name contains unusual characters.
2627ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2628ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2629ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630
42ecbf5e
DJ
2631
2632# Make sure we can run config.sub.
81ecdfbb
RW
2633$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2634 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2635
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2637$as_echo_n "checking build system type... " >&6; }
2638if test "${ac_cv_build+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2640else
2641 ac_build_alias=$build_alias
2642test "x$ac_build_alias" = x &&
2643 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2644test "x$ac_build_alias" = x &&
2645 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2646ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2647 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2648
2649fi
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2651$as_echo "$ac_cv_build" >&6; }
2652case $ac_cv_build in
2653*-*-*) ;;
2654*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2655esac
42ecbf5e 2656build=$ac_cv_build
81ecdfbb
RW
2657ac_save_IFS=$IFS; IFS='-'
2658set x $ac_cv_build
2659shift
2660build_cpu=$1
2661build_vendor=$2
2662shift; shift
2663# Remember, the first character of IFS is used to create $*,
2664# except with old shells:
2665build_os=$*
2666IFS=$ac_save_IFS
2667case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2668
2669
81ecdfbb
RW
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2671$as_echo_n "checking host system type... " >&6; }
2672if test "${ac_cv_host+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674else
2675 if test "x$host_alias" = x; then
2676 ac_cv_host=$ac_cv_build
42ecbf5e 2677else
81ecdfbb
RW
2678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2679 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2680fi
42ecbf5e
DJ
2681
2682fi
81ecdfbb
RW
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2684$as_echo "$ac_cv_host" >&6; }
2685case $ac_cv_host in
2686*-*-*) ;;
2687*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2688esac
42ecbf5e 2689host=$ac_cv_host
81ecdfbb
RW
2690ac_save_IFS=$IFS; IFS='-'
2691set x $ac_cv_host
2692shift
2693host_cpu=$1
2694host_vendor=$2
2695shift; shift
2696# Remember, the first character of IFS is used to create $*,
2697# except with old shells:
2698host_os=$*
2699IFS=$ac_save_IFS
2700case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2701
2702
81ecdfbb
RW
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2704$as_echo_n "checking target system type... " >&6; }
2705if test "${ac_cv_target+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
42ecbf5e 2707else
81ecdfbb
RW
2708 if test "x$target_alias" = x; then
2709 ac_cv_target=$ac_cv_host
2710else
2711 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2712 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2713fi
42ecbf5e
DJ
2714
2715fi
81ecdfbb
RW
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2717$as_echo "$ac_cv_target" >&6; }
2718case $ac_cv_target in
2719*-*-*) ;;
2720*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2721esac
42ecbf5e 2722target=$ac_cv_target
81ecdfbb
RW
2723ac_save_IFS=$IFS; IFS='-'
2724set x $ac_cv_target
2725shift
2726target_cpu=$1
2727target_vendor=$2
2728shift; shift
2729# Remember, the first character of IFS is used to create $*,
2730# except with old shells:
2731target_os=$*
2732IFS=$ac_save_IFS
2733case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2734
2735
2736# The aliases save the names the user supplied, while $host etc.
2737# will get canonicalized.
2738test -n "$target_alias" &&
2739 test "$program_prefix$program_suffix$program_transform_name" = \
2740 NONENONEs,x,x, &&
2741 program_prefix=${target_alias}-
02ecc8e9 2742
42ecbf5e
DJ
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if test "${ac_cv_prog_CC+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2755else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2768 break 2
2769 fi
2770done
81ecdfbb
RW
2771 done
2772IFS=$as_save_IFS
42ecbf5e
DJ
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
81ecdfbb
RW
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779$as_echo "$CC" >&6; }
42ecbf5e 2780else
81ecdfbb
RW
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
42ecbf5e
DJ
2783fi
2784
81ecdfbb 2785
42ecbf5e
DJ
2786fi
2787if test -z "$ac_cv_prog_CC"; then
2788 ac_ct_CC=$CC
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790set dummy gcc; ac_word=$2
81ecdfbb
RW
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2794 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2795else
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2806 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2808 break 2
2809 fi
2810done
81ecdfbb
RW
2811 done
2812IFS=$as_save_IFS
42ecbf5e
DJ
2813
2814fi
2815fi
2816ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2820else
81ecdfbb
RW
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
42ecbf5e
DJ
2823fi
2824
81ecdfbb
RW
2825 if test "x$ac_ct_CC" = x; then
2826 CC=""
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829yes:)
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832ac_tool_warned=yes ;;
2833esac
2834 CC=$ac_ct_CC
2835 fi
42ecbf5e
DJ
2836else
2837 CC="$ac_cv_prog_CC"
2838fi
2839
2840if test -z "$CC"; then
81ecdfbb
RW
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2843set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if test "${ac_cv_prog_CC+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2859 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2861 break 2
2862 fi
2863done
81ecdfbb
RW
2864 done
2865IFS=$as_save_IFS
42ecbf5e
DJ
2866
2867fi
2868fi
2869CC=$ac_cv_prog_CC
2870if test -n "$CC"; then
81ecdfbb
RW
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872$as_echo "$CC" >&6; }
42ecbf5e 2873else
81ecdfbb
RW
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
42ecbf5e
DJ
2876fi
2877
42ecbf5e 2878
81ecdfbb 2879 fi
42ecbf5e
DJ
2880fi
2881if test -z "$CC"; then
2882 # Extract the first word of "cc", so it can be a program name with args.
2883set dummy cc; ac_word=$2
81ecdfbb
RW
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2888else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891else
2892 ac_prog_rejected=no
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901 ac_prog_rejected=yes
2902 continue
2903 fi
2904 ac_cv_prog_CC="cc"
81ecdfbb 2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2906 break 2
2907 fi
2908done
81ecdfbb
RW
2909 done
2910IFS=$as_save_IFS
42ecbf5e
DJ
2911
2912if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2915 shift
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2920 shift
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 fi
2923fi
2924fi
2925fi
2926CC=$ac_cv_prog_CC
2927if test -n "$CC"; then
81ecdfbb
RW
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929$as_echo "$CC" >&6; }
42ecbf5e 2930else
81ecdfbb
RW
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
42ecbf5e
DJ
2933fi
2934
81ecdfbb 2935
42ecbf5e
DJ
2936fi
2937if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
81ecdfbb 2939 for ac_prog in cl.exe
42ecbf5e
DJ
2940 do
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2947else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2960 break 2
2961 fi
2962done
81ecdfbb
RW
2963 done
2964IFS=$as_save_IFS
42ecbf5e
DJ
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
81ecdfbb
RW
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
42ecbf5e 2972else
81ecdfbb
RW
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
42ecbf5e
DJ
2975fi
2976
81ecdfbb 2977
42ecbf5e
DJ
2978 test -n "$CC" && break
2979 done
2980fi
2981if test -z "$CC"; then
2982 ac_ct_CC=$CC
81ecdfbb 2983 for ac_prog in cl.exe
42ecbf5e
DJ
2984do
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988$as_echo_n "checking for $ac_word... " >&6; }
2989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2991else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3002 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3004 break 2
3005 fi
3006done
81ecdfbb
RW
3007 done
3008IFS=$as_save_IFS
42ecbf5e
DJ
3009
3010fi
3011fi
3012ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3016else
81ecdfbb
RW
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018$as_echo "no" >&6; }
42ecbf5e
DJ
3019fi
3020
81ecdfbb 3021
42ecbf5e
DJ
3022 test -n "$ac_ct_CC" && break
3023done
3024
81ecdfbb
RW
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029yes:)
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032ac_tool_warned=yes ;;
3033esac
3034 CC=$ac_ct_CC
3035 fi
42ecbf5e
DJ
3036fi
3037
3038fi
3039
3040
81ecdfbb
RW
3041test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043as_fn_error "no acceptable C compiler found in \$PATH
3044See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3045
3046# Provide some information about the compiler.
81ecdfbb
RW
3047$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3048set X $ac_compile
3049ac_compiler=$2
3050for ac_option in --version -v -V -qversion; do
3051 { { ac_try="$ac_compiler $ac_option >&5"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057$as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3059 ac_status=$?
81ecdfbb
RW
3060 if test -s conftest.err; then
3061 sed '10a\
3062... rest of stderr output deleted ...
3063 10q' conftest.err >conftest.er1
3064 cat conftest.er1 >&5
3065 rm -f conftest.er1 conftest.err
3066 fi
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }
3069done
42ecbf5e 3070
81ecdfbb 3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082ac_clean_files_save=$ac_clean_files
81ecdfbb 3083ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3084# Try to create an executable without -o first, disregard a.out.
3085# It will help us diagnose broken compilers, and finding out an intuition
3086# of exeext.
81ecdfbb
RW
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3088$as_echo_n "checking for C compiler default output file name... " >&6; }
3089ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090
3091# The possible output files:
3092ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3093
3094ac_rmfiles=
3095for ac_file in $ac_files
3096do
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100 esac
3101done
3102rm -f $ac_rmfiles
3103
3104if { { ac_try="$ac_link_default"
3105case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110$as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link_default") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; then :
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117# in a Makefile. We should not override ac_cv_exeext if it was cached,
3118# so that the user can short-circuit this test for compilers unknown to
3119# Autoconf.
3120for ac_file in $ac_files ''
42ecbf5e
DJ
3121do
3122 test -f "$ac_file" || continue
3123 case $ac_file in
81ecdfbb 3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3125 ;;
3126 [ab].out )
3127 # We found the default executable, but exeext='' is most
3128 # certainly right.
3129 break;;
3130 *.* )
81ecdfbb
RW
3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 then :; else
3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 fi
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an `-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3139 # actually working.
42ecbf5e
DJ
3140 break;;
3141 * )
3142 break;;
3143 esac
3144done
81ecdfbb
RW
3145test "$ac_cv_exeext" = no && ac_cv_exeext=
3146
42ecbf5e 3147else
81ecdfbb
RW
3148 ac_file=''
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3151$as_echo "$ac_file" >&6; }
3152if test -z "$ac_file"; then :
3153 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
81ecdfbb
RW
3156{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158{ as_fn_set_status 77
3159as_fn_error "C compiler cannot create executables
3160See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3161fi
42ecbf5e 3162ac_exeext=$ac_cv_exeext
42ecbf5e 3163
81ecdfbb 3164# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3165# the compiler is broken, or we cross compile.
81ecdfbb
RW
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3167$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3168# If not cross compiling, check that we can run a simple program.
3169if test "$cross_compiling" != yes; then
3170 if { ac_try='./$ac_file'
81ecdfbb
RW
3171 { { case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176$as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_try") 2>&5
42ecbf5e 3178 ac_status=$?
81ecdfbb
RW
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3181 cross_compiling=no
3182 else
3183 if test "$cross_compiling" = maybe; then
3184 cross_compiling=yes
3185 else
81ecdfbb
RW
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188as_fn_error "cannot run C compiled programs.
42ecbf5e 3189If you meant to cross compile, use \`--host'.
81ecdfbb 3190See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3191 fi
3192 fi
3193fi
81ecdfbb
RW
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
42ecbf5e 3196
81ecdfbb 3197rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3198ac_clean_files=$ac_clean_files_save
81ecdfbb 3199# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3200# the compiler is broken, or we cross compile.
81ecdfbb
RW
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3202$as_echo_n "checking whether we are cross compiling... " >&6; }
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3204$as_echo "$cross_compiling" >&6; }
3205
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207$as_echo_n "checking for suffix of executables... " >&6; }
3208if { { ac_try="$ac_link"
3209case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214$as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
42ecbf5e 3216 ac_status=$?
81ecdfbb
RW
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
42ecbf5e
DJ
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221# work properly (i.e., refer to `conftest.exe'), while it won't with
3222# `rm'.
3223for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
81ecdfbb 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3228 break;;
3229 * ) break;;
3230 esac
3231done
3232else
81ecdfbb
RW
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error "cannot compute suffix of executables: cannot compile and link
3236See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3237fi
42ecbf5e 3238rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3241
3242rm -f conftest.$ac_ext
3243EXEEXT=$ac_cv_exeext
3244ac_exeext=$EXEEXT
81ecdfbb
RW
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3246$as_echo_n "checking for suffix of object files... " >&6; }
3247if test "${ac_cv_objext+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
42ecbf5e 3249else
81ecdfbb 3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3251/* end confdefs.h. */
3252
3253int
3254main ()
3255{
3256
3257 ;
3258 return 0;
3259}
3260_ACEOF
3261rm -f conftest.o conftest.obj
81ecdfbb
RW
3262if { { ac_try="$ac_compile"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compile") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
42ecbf5e 3275 case $ac_file in
81ecdfbb 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 break;;
3279 esac
3280done
3281else
81ecdfbb 3282 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
81ecdfbb
RW
3285{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287as_fn_error "cannot compute suffix of object files: cannot compile
3288See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3289fi
42ecbf5e
DJ
3290rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291fi
81ecdfbb
RW
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3293$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3294OBJEXT=$ac_cv_objext
3295ac_objext=$OBJEXT
81ecdfbb
RW
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3297$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3298if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
42ecbf5e 3300else
81ecdfbb 3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307#ifndef __GNUC__
3308 choke me
3309#endif
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
81ecdfbb 3315if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3316 ac_compiler_gnu=yes
3317else
81ecdfbb 3318 ac_compiler_gnu=no
42ecbf5e 3319fi
81ecdfbb 3320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3321ac_cv_c_compiler_gnu=$ac_compiler_gnu
3322
3323fi
81ecdfbb
RW
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3325$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3326if test $ac_compiler_gnu = yes; then
3327 GCC=yes
3328else
3329 GCC=
3330fi
42ecbf5e
DJ
3331ac_test_CFLAGS=${CFLAGS+set}
3332ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3334$as_echo_n "checking whether $CC accepts -g... " >&6; }
3335if test "${ac_cv_prog_cc_g+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337else
3338 ac_save_c_werror_flag=$ac_c_werror_flag
3339 ac_c_werror_flag=yes
3340 ac_cv_prog_cc_g=no
3341 CFLAGS="-g"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3343/* end confdefs.h. */
3344
3345int
3346main ()
3347{
3348
3349 ;
3350 return 0;
3351}
3352_ACEOF
81ecdfbb 3353if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3354 ac_cv_prog_cc_g=yes
3355else
81ecdfbb
RW
3356 CFLAGS=""
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359
3360int
3361main ()
3362{
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"; then :
3369
3370else
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3372 CFLAGS="-g"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h. */
3375
3376int
3377main ()
3378{
42ecbf5e 3379
81ecdfbb
RW
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_cv_prog_cc_g=yes
3386fi
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388fi
3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3390fi
81ecdfbb
RW
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3393fi
81ecdfbb
RW
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3395$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3396if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
3404else
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
3409 fi
3410fi
81ecdfbb
RW
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3412$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3413if test "${ac_cv_prog_cc_c89+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
42ecbf5e 3415else
81ecdfbb 3416 ac_cv_prog_cc_c89=no
42ecbf5e 3417ac_save_CC=$CC
81ecdfbb 3418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3419/* end confdefs.h. */
3420#include <stdarg.h>
3421#include <stdio.h>
3422#include <sys/types.h>
3423#include <sys/stat.h>
3424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3425struct buf { int x; };
3426FILE * (*rcsopen) (struct buf *, struct stat *, int);
3427static char *e (p, i)
3428 char **p;
3429 int i;
3430{
3431 return p[i];
3432}
3433static char *f (char * (*g) (char **, int), char **p, ...)
3434{
3435 char *s;
3436 va_list v;
3437 va_start (v,p);
3438 s = g (p, va_arg (v,int));
3439 va_end (v);
3440 return s;
3441}
3442
3443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3444 function prototypes and stuff, but not '\xHH' hex character constants.
3445 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3446 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3448 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3449 that's true only with -std. */
42ecbf5e
DJ
3450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3451
81ecdfbb
RW
3452/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3453 inside strings and character constants. */
3454#define FOO(x) 'x'
3455int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3456
42ecbf5e
DJ
3457int test (int i, double x);
3458struct s1 {int (*f) (int a);};
3459struct s2 {int (*f) (double a);};
3460int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3461int argc;
3462char **argv;
3463int
3464main ()
3465{
3466return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3467 ;
3468 return 0;
3469}
3470_ACEOF
81ecdfbb
RW
3471for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3473do
3474 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3477fi
81ecdfbb
RW
3478rm -f core conftest.err conftest.$ac_objext
3479 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3480done
81ecdfbb 3481rm -f conftest.$ac_ext
42ecbf5e
DJ
3482CC=$ac_save_CC
3483
3484fi
81ecdfbb
RW
3485# AC_CACHE_VAL
3486case "x$ac_cv_prog_cc_c89" in
3487 x)
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3489$as_echo "none needed" >&6; } ;;
3490 xno)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3492$as_echo "unsupported" >&6; } ;;
42ecbf5e 3493 *)
81ecdfbb
RW
3494 CC="$CC $ac_cv_prog_cc_c89"
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3496$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3497esac
81ecdfbb 3498if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3499
42ecbf5e
DJ
3500fi
3501
42ecbf5e
DJ
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508
81ecdfbb
RW
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3510$as_echo_n "checking for library containing strerror... " >&6; }
3511if test "${ac_cv_search_strerror+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3513else
3514 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3516/* end confdefs.h. */
3517
81ecdfbb
RW
3518/* Override any GCC internal prototype to avoid an error.
3519 Use char because int might match the return type of a GCC
3520 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3521#ifdef __cplusplus
3522extern "C"
3523#endif
42ecbf5e
DJ
3524char strerror ();
3525int
3526main ()
3527{
81ecdfbb 3528return strerror ();
42ecbf5e
DJ
3529 ;
3530 return 0;
3531}
3532_ACEOF
81ecdfbb
RW
3533for ac_lib in '' cposix; do
3534 if test -z "$ac_lib"; then
3535 ac_res="none required"
3536 else
3537 ac_res=-l$ac_lib
42ecbf5e 3538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3539 fi
3540 if ac_fn_c_try_link "$LINENO"; then :
3541 ac_cv_search_strerror=$ac_res
3542fi
3543rm -f core conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext
3545 if test "${ac_cv_search_strerror+set}" = set; then :
3546 break
3547fi
3548done
3549if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3550
42ecbf5e 3551else
81ecdfbb 3552 ac_cv_search_strerror=no
42ecbf5e 3553fi
81ecdfbb 3554rm conftest.$ac_ext
42ecbf5e
DJ
3555LIBS=$ac_func_search_save_LIBS
3556fi
81ecdfbb
RW
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3558$as_echo "$ac_cv_search_strerror" >&6; }
3559ac_res=$ac_cv_search_strerror
3560if test "$ac_res" != no; then :
3561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3562
3563fi
e5a52504
MM
3564
3565
81ecdfbb
RW
3566am__api_version='1.11'
3567
e5a52504
MM
3568# Find a good install program. We prefer a C program (faster),
3569# so one script is as good as another. But avoid the broken or
3570# incompatible versions:
3571# SysV /etc/install, /usr/sbin/install
3572# SunOS /usr/etc/install
3573# IRIX /sbin/install
3574# AIX /bin/install
42ecbf5e 3575# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3577# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3579# OS/2's system install, which has a completely different semantic
e5a52504 3580# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3581# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3583$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3584if test -z "$INSTALL"; then
81ecdfbb
RW
3585if test "${ac_cv_path_install+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
e5a52504 3587else
42ecbf5e
DJ
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH
3590do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3593 # Account for people who put trailing slashes in PATH elements.
3594case $as_dir/ in #((
3595 ./ | .// | /[cC]/* | \
42ecbf5e 3596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3598 /usr/ucb/* ) ;;
3599 *)
3600 # OSF1 and SCO ODT 3.0 have their own names for install.
3601 # Don't use installbsd from OSF since it installs stuff as root
3602 # by default.
3603 for ac_prog in ginstall scoinst install; do
3604 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3605 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3606 if test $ac_prog = install &&
42ecbf5e 3607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3608 # AIX install. It has an incompatible calling convention.
3609 :
42ecbf5e
DJ
3610 elif test $ac_prog = install &&
3611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612 # program-specific install script used by HP pwplus--don't use.
3613 :
252b5132 3614 else
58c85be7
RW
3615 rm -rf conftest.one conftest.two conftest.dir
3616 echo one > conftest.one
3617 echo two > conftest.two
3618 mkdir conftest.dir
3619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3620 test -s conftest.one && test -s conftest.two &&
3621 test -s conftest.dir/conftest.one &&
3622 test -s conftest.dir/conftest.two
3623 then
3624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3625 break 3
3626 fi
252b5132
RH
3627 fi
3628 fi
3629 done
42ecbf5e
DJ
3630 done
3631 ;;
3632esac
81ecdfbb
RW
3633
3634 done
3635IFS=$as_save_IFS
42ecbf5e 3636
58c85be7 3637rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3638
3639fi
3640 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3641 INSTALL=$ac_cv_path_install
252b5132 3642 else
58c85be7
RW
3643 # As a last resort, use the slow shell script. Don't cache a
3644 # value for INSTALL within a source directory, because that will
252b5132 3645 # break other packages using the cache if that directory is
58c85be7 3646 # removed, or if the value is a relative name.
42ecbf5e 3647 INSTALL=$ac_install_sh
252b5132
RH
3648 fi
3649fi
81ecdfbb
RW
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3651$as_echo "$INSTALL" >&6; }
252b5132
RH
3652
3653# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3654# It thinks the first close brace ends the variable substitution.
3655test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3656
42ecbf5e 3657test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3658
3659test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3660
81ecdfbb
RW
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3662$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3663# Just in case
3664sleep 1
42ecbf5e 3665echo timestamp > conftest.file
81ecdfbb
RW
3666# Reject unsafe characters in $srcdir or the absolute working directory
3667# name. Accept space and tab only in the latter.
3668am_lf='
3669'
3670case `pwd` in
3671 *[\\\"\#\$\&\'\`$am_lf]*)
3672 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3673esac
3674case $srcdir in
3675 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3676 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3677esac
3678
252b5132
RH
3679# Do `set' in a subshell so we don't clobber the current shell's
3680# arguments. Must try -L first in case configure is actually a
3681# symlink; some systems play weird games with the mod time of symlinks
3682# (eg FreeBSD returns the mod time of the symlink's containing
3683# directory).
3684if (
81ecdfbb 3685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3686 if test "$*" = "X"; then
3687 # -L didn't work.
81ecdfbb 3688 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3689 fi
42ecbf5e
DJ
3690 rm -f conftest.file
3691 if test "$*" != "X $srcdir/configure conftest.file" \
3692 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3693
3694 # If neither matched, then we have a broken ls. This can happen
3695 # if, for instance, CONFIG_SHELL is bash and it inherits a
3696 # broken ls alias from the environment. This has actually
3697 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3698 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3699alias in your environment" "$LINENO" 5
252b5132
RH
3700 fi
3701
42ecbf5e 3702 test "$2" = conftest.file
252b5132
RH
3703 )
3704then
3705 # Ok.
3706 :
3707else
81ecdfbb
RW
3708 as_fn_error "newly created file is older than distributed files!
3709Check your system clock" "$LINENO" 5
252b5132 3710fi
81ecdfbb
RW
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712$as_echo "yes" >&6; }
252b5132 3713test "$program_prefix" != NONE &&
81ecdfbb 3714 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3715# Use a double $ so make ignores it.
3716test "$program_suffix" != NONE &&
81ecdfbb
RW
3717 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3718# Double any \ or $.
42ecbf5e 3719# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3720ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3721program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3722
3723# expand $ac_aux_dir to an absolute path
3724am_aux_dir=`cd $ac_aux_dir && pwd`
3725
81ecdfbb
RW
3726if test x"${MISSING+set}" != xset; then
3727 case $am_aux_dir in
3728 *\ * | *\ *)
3729 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3730 *)
3731 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3732 esac
3733fi
42ecbf5e
DJ
3734# Use eval to expand $SHELL
3735if eval "$MISSING --run true"; then
3736 am_missing_run="$MISSING --run "
3737else
3738 am_missing_run=
81ecdfbb
RW
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3740$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3741fi
3742
3743if test x"${install_sh}" != xset; then
3744 case $am_aux_dir in
3745 *\ * | *\ *)
3746 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3747 *)
3748 install_sh="\${SHELL} $am_aux_dir/install-sh"
3749 esac
3750fi
3751
3752# Installed binaries are usually stripped using `strip' when the user
3753# run `make install-strip'. However `strip' might not be the right
3754# tool to use in cross-compilation environments, therefore Automake
3755# will honor the `STRIP' environment variable to overrule this program.
3756if test "$cross_compiling" != no; then
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759set dummy ${ac_tool_prefix}strip; ac_word=$2
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761$as_echo_n "checking for $ac_word... " >&6; }
3762if test "${ac_cv_prog_STRIP+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764else
3765 if test -n "$STRIP"; then
3766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779done
3780 done
3781IFS=$as_save_IFS
3782
3783fi
3784fi
3785STRIP=$ac_cv_prog_STRIP
3786if test -n "$STRIP"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3788$as_echo "$STRIP" >&6; }
3789else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791$as_echo "no" >&6; }
3792fi
3793
3794
3795fi
3796if test -z "$ac_cv_prog_STRIP"; then
3797 ac_ct_STRIP=$STRIP
3798 # Extract the first word of "strip", so it can be a program name with args.
3799set dummy strip; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804else
3805 if test -n "$ac_ct_STRIP"; then
3806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_ac_ct_STRIP="strip"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819done
3820 done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3826if test -n "$ac_ct_STRIP"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3828$as_echo "$ac_ct_STRIP" >&6; }
3829else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834 if test "x$ac_ct_STRIP" = x; then
3835 STRIP=":"
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838yes:)
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841ac_tool_warned=yes ;;
3842esac
3843 STRIP=$ac_ct_STRIP
3844 fi
3845else
3846 STRIP="$ac_cv_prog_STRIP"
3847fi
3848
3849fi
3850INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3853$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3854if test -z "$MKDIR_P"; then
3855 if test "${ac_cv_path_mkdir+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3857else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in mkdir gmkdir; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3866 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3867 'mkdir (GNU coreutils) '* | \
3868 'mkdir (coreutils) '* | \
3869 'mkdir (fileutils) '4.1*)
3870 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3871 break 3;;
3872 esac
3873 done
3874 done
42ecbf5e 3875 done
81ecdfbb
RW
3876IFS=$as_save_IFS
3877
3878fi
3879
3880 if test "${ac_cv_path_mkdir+set}" = set; then
3881 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3882 else
81ecdfbb
RW
3883 # As a last resort, use the slow shell script. Don't cache a
3884 # value for MKDIR_P within a source directory, because that will
3885 # break other packages using the cache if that directory is
3886 # removed, or if the value is a relative name.
3887 test -d ./--version && rmdir ./--version
3888 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3889 fi
3890fi
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3892$as_echo "$MKDIR_P" >&6; }
3893
3894mkdir_p="$MKDIR_P"
3895case $mkdir_p in
3896 [\\/$]* | ?:[\\/]*) ;;
3897 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3898esac
42ecbf5e
DJ
3899
3900for ac_prog in gawk mawk nawk awk
3901do
3902 # Extract the first word of "$ac_prog", so it can be a program name with args.
3903set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
3906if test "${ac_cv_prog_AWK+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3908else
3909 if test -n "$AWK"; then
3910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3919 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3921 break 2
3922 fi
3923done
81ecdfbb
RW
3924 done
3925IFS=$as_save_IFS
42ecbf5e
DJ
3926
3927fi
3928fi
3929AWK=$ac_cv_prog_AWK
3930if test -n "$AWK"; then
81ecdfbb
RW
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3932$as_echo "$AWK" >&6; }
42ecbf5e 3933else
81ecdfbb
RW
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
42ecbf5e 3936fi
252b5132 3937
81ecdfbb 3938
42ecbf5e
DJ
3939 test -n "$AWK" && break
3940done
252b5132 3941
81ecdfbb
RW
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3944set x ${MAKE-make}
3945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3946if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3947 $as_echo_n "(cached) " >&6
252b5132 3948else
42ecbf5e 3949 cat >conftest.make <<\_ACEOF
81ecdfbb 3950SHELL = /bin/sh
252b5132 3951all:
81ecdfbb 3952 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3953_ACEOF
252b5132 3954# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3955case `${MAKE-make} -f conftest.make 2>/dev/null` in
3956 *@@@%%%=?*=@@@%%%*)
3957 eval ac_cv_prog_make_${ac_make}_set=yes;;
3958 *)
3959 eval ac_cv_prog_make_${ac_make}_set=no;;
3960esac
42ecbf5e 3961rm -f conftest.make
252b5132 3962fi
81ecdfbb
RW
3963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965$as_echo "yes" >&6; }
252b5132
RH
3966 SET_MAKE=
3967else
81ecdfbb
RW
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
252b5132
RH
3970 SET_MAKE="MAKE=${MAKE-make}"
3971fi
3972
42ecbf5e
DJ
3973rm -rf .tst 2>/dev/null
3974mkdir .tst 2>/dev/null
3975if test -d .tst; then
3976 am__leading_dot=.
3977else
3978 am__leading_dot=_
3979fi
3980rmdir .tst 2>/dev/null
3981
3982DEPDIR="${am__leading_dot}deps"
3983
81ecdfbb 3984ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3985
3986
3987am_make=${MAKE-make}
3988cat > confinc << 'END'
3989am__doit:
81ecdfbb 3990 @echo this is the am__doit target
42ecbf5e
DJ
3991.PHONY: am__doit
3992END
3993# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3995$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3996am__include="#"
3997am__quote=
3998_am_result=none
3999# First try GNU make style include.
4000echo "include confinc" > confmf
81ecdfbb
RW
4001# Ignore all kinds of additional output from `make'.
4002case `$am_make -s -f confmf 2> /dev/null` in #(
4003*the\ am__doit\ target*)
4004 am__include=include
4005 am__quote=
4006 _am_result=GNU
4007 ;;
4008esac
42ecbf5e
DJ
4009# Now try BSD make style include.
4010if test "$am__include" = "#"; then
4011 echo '.include "confinc"' > confmf
81ecdfbb
RW
4012 case `$am_make -s -f confmf 2> /dev/null` in #(
4013 *the\ am__doit\ target*)
4014 am__include=.include
4015 am__quote="\""
4016 _am_result=BSD
4017 ;;
4018 esac
42ecbf5e
DJ
4019fi
4020
4021
81ecdfbb
RW
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4023$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4024rm -f confinc confmf
4025
81ecdfbb
RW
4026# Check whether --enable-dependency-tracking was given.
4027if test "${enable_dependency_tracking+set}" = set; then :
4028 enableval=$enable_dependency_tracking;
4029fi
42ecbf5e 4030
42ecbf5e
DJ
4031if test "x$enable_dependency_tracking" != xno; then
4032 am_depcomp="$ac_aux_dir/depcomp"
4033 AMDEPBACKSLASH='\'
4034fi
81ecdfbb 4035 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4036 AMDEP_TRUE=
4037 AMDEP_FALSE='#'
4038else
4039 AMDEP_TRUE='#'
4040 AMDEP_FALSE=
4041fi
4042
e5a52504 4043
81ecdfbb
RW
4044if test "`cd $srcdir && pwd`" != "`pwd`"; then
4045 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4046 # is not polluted with repeated "-I."
4047 am__isrc=' -I$(srcdir)'
4048 # test to see if srcdir already configured
4049 if test -f $srcdir/config.status; then
4050 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4051 fi
42ecbf5e 4052fi
252b5132 4053
42ecbf5e
DJ
4054# test whether we have cygpath
4055if test -z "$CYGPATH_W"; then
4056 if (cygpath --version) >/dev/null 2>/dev/null; then
4057 CYGPATH_W='cygpath -w'
4058 else
4059 CYGPATH_W=echo
4060 fi
252b5132 4061fi
42ecbf5e
DJ
4062
4063
4064# Define the identity of the package.
2e98a7bd 4065 PACKAGE='ld'
d8bd95ef 4066 VERSION='2.26.51'
42ecbf5e
DJ
4067
4068
4069cat >>confdefs.h <<_ACEOF
e5a52504 4070#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4071_ACEOF
4072
252b5132 4073
42ecbf5e 4074cat >>confdefs.h <<_ACEOF
e5a52504 4075#define VERSION "$VERSION"
42ecbf5e
DJ
4076_ACEOF
4077
4078# Some tools Automake needs.
4079
4080ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4081
4082
4083AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4084
4085
4086AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4087
4088
4089AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4090
e5a52504 4091
42ecbf5e 4092MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4093
42ecbf5e
DJ
4094# We need awk for the "check" target. The system "awk" is bad on
4095# some platforms.
4096# Always define AMTAR for backward compatibility.
4097
4098AMTAR=${AMTAR-"${am_missing_run}tar"}
4099
4100am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4101
4102
4103
4104
4105depcc="$CC" am_compiler_list=
4106
81ecdfbb
RW
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108$as_echo_n "checking dependency style of $depcc... " >&6; }
4109if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4111else
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named `D' -- because `-MD' means `put the output
4117 # in D'.
4118 mkdir conftest.dir
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4122 cd conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4128 # directory.
4129 mkdir sub
4130
4131 am_cv_CC_dependencies_compiler_type=none
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134 fi
81ecdfbb
RW
4135 am__universal=false
4136 case " $depcc " in #(
4137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138 esac
4139
42ecbf5e
DJ
4140 for depmode in $am_compiler_list; do
4141 # Setup a source with many dependencies, because some compilers
4142 # like to wrap large dependency lists on column 80 (with \), and
4143 # we should not choose a depcomp mode which is confused by this.
4144 #
4145 # We need to recreate these files for each test, as the compiler may
4146 # overwrite some of them when testing with obscure command lines.
4147 # This happens at least with the AIX C compiler.
4148 : > sub/conftest.c
4149 for i in 1 2 3 4 5 6; do
4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152 # Solaris 8's {/usr,}/bin/sh.
4153 touch sub/conftst$i.h
4154 done
4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
81ecdfbb
RW
4157 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4158 # mode. It turns out that the SunPro C++ compiler does not properly
4159 # handle `-M -o', and we need to detect this. Also, some Intel
4160 # versions had trouble with output in subdirs
4161 am__obj=sub/conftest.${OBJEXT-o}
4162 am__minus_obj="-o $am__obj"
42ecbf5e 4163 case $depmode in
81ecdfbb
RW
4164 gcc)
4165 # This depmode causes a compiler race in universal mode.
4166 test "$am__universal" = false || continue
4167 ;;
42ecbf5e
DJ
4168 nosideeffect)
4169 # after this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested
4171 if test "x$enable_dependency_tracking" = xyes; then
4172 continue
4173 else
4174 break
4175 fi
4176 ;;
81ecdfbb
RW
4177 msvisualcpp | msvcmsys)
4178 # This compiler won't grok `-c -o', but also, the minuso test has
4179 # not run yet. These depmodes are late enough in the game, and
4180 # so weak that their functioning should not be impacted.
4181 am__obj=conftest.${OBJEXT-o}
4182 am__minus_obj=
4183 ;;
42ecbf5e
DJ
4184 none) break ;;
4185 esac
42ecbf5e 4186 if depmode=$depmode \
81ecdfbb 4187 source=sub/conftest.c object=$am__obj \
42ecbf5e 4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4190 >/dev/null 2>conftest.err &&
81ecdfbb 4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195 # icc doesn't choke on unknown options, it will just issue warnings
4196 # or remarks (even with -Werror). So we grep stderr for any message
4197 # that says an option was ignored or not supported.
4198 # When given -MP, icc 7.0 and 7.1 complain thusly:
4199 # icc: Command line warning: ignoring option '-M'; no argument required
4200 # The diagnosis changed in icc 8.0:
4201 # icc: Command line remark: option '-MP' not supported
4202 if (grep 'ignoring option' conftest.err ||
4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204 am_cv_CC_dependencies_compiler_type=$depmode
4205 break
4206 fi
4207 fi
4208 done
2469cfa2 4209
42ecbf5e
DJ
4210 cd ..
4211 rm -rf conftest.dir
2469cfa2 4212else
42ecbf5e
DJ
4213 am_cv_CC_dependencies_compiler_type=none
4214fi
4215
2469cfa2 4216fi
81ecdfbb
RW
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4220
81ecdfbb 4221 if
42ecbf5e
DJ
4222 test "x$enable_dependency_tracking" != xno \
4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4224 am__fastdepCC_TRUE=
4225 am__fastdepCC_FALSE='#'
2469cfa2 4226else
42ecbf5e
DJ
4227 am__fastdepCC_TRUE='#'
4228 am__fastdepCC_FALSE=
2469cfa2 4229fi
2469cfa2 4230
2469cfa2 4231
e5a52504 4232
42ecbf5e 4233
64ac50ac
RW
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4235$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4236 # Check whether --enable-maintainer-mode was given.
4237if test "${enable_maintainer_mode+set}" = set; then :
4238 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4239else
4240 USE_MAINTAINER_MODE=no
4241fi
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4244$as_echo "$USE_MAINTAINER_MODE" >&6; }
4245 if test $USE_MAINTAINER_MODE = yes; then
4246 MAINTAINER_MODE_TRUE=
4247 MAINTAINER_MODE_FALSE='#'
4248else
4249 MAINTAINER_MODE_TRUE='#'
4250 MAINTAINER_MODE_FALSE=
4251fi
4252
4253 MAINT=$MAINTAINER_MODE_TRUE
4254
4255
4256
b879806f
AM
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4264set dummy ${ac_tool_prefix}gcc; ac_word=$2
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
4267if test "${ac_cv_prog_CC+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285 done
4286IFS=$as_save_IFS
d7040cdb 4287
81ecdfbb 4288fi
81ecdfbb 4289fi
b879806f
AM
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293$as_echo "$CC" >&6; }
2469cfa2 4294else
b879806f
AM
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
81ecdfbb 4297fi
d7040cdb
SE
4298
4299
b879806f
AM
4300fi
4301if test -z "$ac_cv_prog_CC"; then
4302 ac_ct_CC=$CC
4303 # Extract the first word of "gcc", so it can be a program name with args.
4304set dummy gcc; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
e5a52504 4309else
b879806f
AM
4310 if test -n "$ac_ct_CC"; then
4311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_ac_ct_CC="gcc"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
d7040cdb 4327
81ecdfbb 4328fi
b879806f
AM
4329fi
4330ac_ct_CC=$ac_cv_prog_ac_ct_CC
4331if test -n "$ac_ct_CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4333$as_echo "$ac_ct_CC" >&6; }
4fda8867 4334else
b879806f
AM
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4fda8867
NC
4337fi
4338
b879806f
AM
4339 if test "x$ac_ct_CC" = x; then
4340 CC=""
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343yes:)
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346ac_tool_warned=yes ;;
7fb9f789 4347esac
b879806f
AM
4348 CC=$ac_ct_CC
4349 fi
7fb9f789 4350else
b879806f 4351 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4352fi
4353
b879806f
AM
4354if test -z "$CC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4357set dummy ${ac_tool_prefix}cc; ac_word=$2
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359$as_echo_n "checking for $ac_word... " >&6; }
4360if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4361 $as_echo_n "(cached) " >&6
4362else
b879806f
AM
4363 if test -n "$CC"; then
4364 ac_cv_prog_CC="$CC" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
397841b5 4368do
b879806f
AM
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_CC="${ac_tool_prefix}cc"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377done
4378 done
4379IFS=$as_save_IFS
d7040cdb 4380
ce2cded5 4381fi
ce2cded5 4382fi
b879806f
AM
4383CC=$ac_cv_prog_CC
4384if test -n "$CC"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4386$as_echo "$CC" >&6; }
4387else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
81ecdfbb
RW
4390fi
4391
d7040cdb 4392
b879806f 4393 fi
ce2cded5 4394fi
b879806f
AM
4395if test -z "$CC"; then
4396 # Extract the first word of "cc", so it can be a program name with args.
4397set dummy cc; ac_word=$2
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399$as_echo_n "checking for $ac_word... " >&6; }
4400if test "${ac_cv_prog_CC+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
397841b5 4402else
b879806f
AM
4403 if test -n "$CC"; then
4404 ac_cv_prog_CC="$CC" # Let the user override the test.
4405else
4406 ac_prog_rejected=no
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
397841b5 4409do
b879806f
AM
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4415 ac_prog_rejected=yes
4416 continue
4417 fi
4418 ac_cv_prog_CC="cc"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423 done
4424IFS=$as_save_IFS
d7040cdb 4425
b879806f
AM
4426if test $ac_prog_rejected = yes; then
4427 # We found a bogon in the path, so make sure we never use it.
4428 set dummy $ac_cv_prog_CC
4429 shift
4430 if test $# != 0; then
4431 # We chose a different compiler from the bogus one.
4432 # However, it has the same basename, so the bogon will be chosen
4433 # first if we set CC to just the basename; use the full file name.
4434 shift
4435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4436 fi
397841b5 4437fi
397841b5 4438fi
b879806f
AM
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4443$as_echo "$CC" >&6; }
397841b5 4444else
b879806f
AM
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
ce2cded5 4447fi
d7040cdb 4448
397841b5 4449
b879806f
AM
4450fi
4451if test -z "$CC"; then
4452 if test -n "$ac_tool_prefix"; then
4453 for ac_prog in cl.exe
4454 do
4455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
4459if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4460 $as_echo_n "(cached) " >&6
d7040cdb 4461else
b879806f
AM
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
d7040cdb
SE
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
81ecdfbb 4470 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476done
397841b5
AM
4477 done
4478IFS=$as_save_IFS
d7040cdb 4479
252b5132 4480fi
b879806f
AM
4481fi
4482CC=$ac_cv_prog_CC
4483if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485$as_echo "$CC" >&6; }
4486else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489fi
397841b5
AM
4490
4491
b879806f
AM
4492 test -n "$CC" && break
4493 done
4494fi
4495if test -z "$CC"; then
4496 ac_ct_CC=$CC
4497 for ac_prog in cl.exe
4498do
4499 # Extract the first word of "$ac_prog", so it can be a program name with args.
4500set dummy $ac_prog; ac_word=$2
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502$as_echo_n "checking for $ac_word... " >&6; }
4503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4504 $as_echo_n "(cached) " >&6
4505else
b879806f
AM
4506 if test -n "$ac_ct_CC"; then
4507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
397841b5
AM
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
397841b5 4514 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_ac_ct_CC="$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520done
397841b5
AM
4521 done
4522IFS=$as_save_IFS
397841b5 4523
397841b5 4524fi
397841b5 4525fi
b879806f
AM
4526ac_ct_CC=$ac_cv_prog_ac_ct_CC
4527if test -n "$ac_ct_CC"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4529$as_echo "$ac_ct_CC" >&6; }
4530else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
397841b5
AM
4533fi
4534
397841b5 4535
b879806f
AM
4536 test -n "$ac_ct_CC" && break
4537done
397841b5 4538
b879806f
AM
4539 if test "x$ac_ct_CC" = x; then
4540 CC=""
4541 else
4542 case $cross_compiling:$ac_tool_warned in
4543yes:)
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546ac_tool_warned=yes ;;
397841b5 4547esac
b879806f
AM
4548 CC=$ac_ct_CC
4549 fi
397841b5
AM
4550fi
4551
397841b5
AM
4552fi
4553
4554
b879806f
AM
4555test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557as_fn_error "no acceptable C compiler found in \$PATH
4558See \`config.log' for more details." "$LINENO" 5; }
397841b5 4559
b879806f
AM
4560# Provide some information about the compiler.
4561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4562set X $ac_compile
4563ac_compiler=$2
4564for ac_option in --version -v -V -qversion; do
4565 { { ac_try="$ac_compiler $ac_option >&5"
4566case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571$as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4573 ac_status=$?
4574 if test -s conftest.err; then
4575 sed '10a\
4576... rest of stderr output deleted ...
4577 10q' conftest.err >conftest.er1
4578 cat conftest.er1 >&5
4579 rm -f conftest.er1 conftest.err
4580 fi
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }
4583done
397841b5 4584
b879806f
AM
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4587if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4588 $as_echo_n "(cached) " >&6
4589else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
b879806f 4592
44350750
NC
4593int
4594main ()
4595{
b879806f
AM
4596#ifndef __GNUC__
4597 choke me
4598#endif
4599
4600 ;
44350750
NC
4601 return 0;
4602}
4603_ACEOF
b879806f
AM
4604if ac_fn_c_try_compile "$LINENO"; then :
4605 ac_compiler_gnu=yes
44350750 4606else
b879806f 4607 ac_compiler_gnu=no
44350750 4608fi
b879806f
AM
4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
44350750 4612fi
b879806f
AM
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4615if test $ac_compiler_gnu = yes; then
4616 GCC=yes
4617else
4618 GCC=
4619fi
4620ac_test_CFLAGS=${CFLAGS+set}
4621ac_save_CFLAGS=$CFLAGS
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4623$as_echo_n "checking whether $CC accepts -g... " >&6; }
4624if test "${ac_cv_prog_cc_g+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626else
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4629 ac_cv_prog_cc_g=no
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
44350750 4633
b879806f
AM
4634int
4635main ()
4636{
44350750 4637
b879806f
AM
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_g=yes
4644else
4645 CFLAGS=""
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648
4649int
4650main ()
4651{
44350750 4652
b879806f
AM
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
44350750 4658
b879806f
AM
4659else
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h. */
397841b5 4664
b879806f
AM
4665int
4666main ()
4667{
397841b5 4668
b879806f
AM
4669 ;
4670 return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_g=yes
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4684$as_echo "$ac_cv_prog_cc_g" >&6; }
4685if test "$ac_test_CFLAGS" = set; then
4686 CFLAGS=$ac_save_CFLAGS
4687elif test $ac_cv_prog_cc_g = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="-g -O2"
4690 else
4691 CFLAGS="-g"
4692 fi
4693else
4694 if test "$GCC" = yes; then
4695 CFLAGS="-O2"
4696 else
4697 CFLAGS=
4698 fi
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4702if test "${ac_cv_prog_cc_c89+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4704else
4705 ac_cv_prog_cc_c89=no
4706ac_save_CC=$CC
4707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h. */
4709#include <stdarg.h>
4710#include <stdio.h>
4711#include <sys/types.h>
4712#include <sys/stat.h>
4713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4714struct buf { int x; };
4715FILE * (*rcsopen) (struct buf *, struct stat *, int);
4716static char *e (p, i)
4717 char **p;
4718 int i;
4719{
4720 return p[i];
4721}
4722static char *f (char * (*g) (char **, int), char **p, ...)
4723{
4724 char *s;
4725 va_list v;
4726 va_start (v,p);
4727 s = g (p, va_arg (v,int));
4728 va_end (v);
4729 return s;
4730}
df7b86aa 4731
b879806f
AM
4732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4733 function prototypes and stuff, but not '\xHH' hex character constants.
4734 These don't provoke an error unfortunately, instead are silently treated
4735 as 'x'. The following induces an error, until -std is added to get
4736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4737 array size at least. It's necessary to write '\x00'==0 to get something
4738 that's true only with -std. */
4739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4740
b879806f
AM
4741/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4742 inside strings and character constants. */
4743#define FOO(x) 'x'
4744int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4745
4746int test (int i, double x);
4747struct s1 {int (*f) (int a);};
4748struct s2 {int (*f) (double a);};
4749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4750int argc;
4751char **argv;
4752int
4753main ()
4754{
4755return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4762do
4763 CC="$ac_save_CC $ac_arg"
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_prog_cc_c89=$ac_arg
397841b5 4766fi
b879806f
AM
4767rm -f core conftest.err conftest.$ac_objext
4768 test "x$ac_cv_prog_cc_c89" != "xno" && break
4769done
4770rm -f conftest.$ac_ext
4771CC=$ac_save_CC
4772
397841b5 4773fi
b879806f
AM
4774# AC_CACHE_VAL
4775case "x$ac_cv_prog_cc_c89" in
4776 x)
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4778$as_echo "none needed" >&6; } ;;
4779 xno)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4781$as_echo "unsupported" >&6; } ;;
4782 *)
4783 CC="$CC $ac_cv_prog_cc_c89"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4785$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4786esac
4787if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4788
b879806f 4789fi
397841b5
AM
4790
4791ac_ext=c
4792ac_cpp='$CPP $CPPFLAGS'
4793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4796
4797ac_ext=cpp
4798ac_cpp='$CXXCPP $CPPFLAGS'
4799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4802if test -z "$CXX"; then
4803 if test -n "$CCC"; then
4804 CXX=$CCC
4805 else
4806 if test -n "$ac_tool_prefix"; then
4807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4808 do
4809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4813if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4814 $as_echo_n "(cached) " >&6
4815else
b879806f
AM
4816 if test -n "$CXX"; then
4817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831 done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
b879806f
AM
4836CXX=$ac_cv_prog_CXX
4837if test -n "$CXX"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4839$as_echo "$CXX" >&6; }
397841b5
AM
4840else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
b879806f
AM
4846 test -n "$CXX" && break
4847 done
397841b5 4848fi
b879806f
AM
4849if test -z "$CXX"; then
4850 ac_ct_CXX=$CXX
4851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4852do
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854set dummy $ac_prog; ac_word=$2
397841b5
AM
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4857if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4858 $as_echo_n "(cached) " >&6
252b5132 4859else
b879806f
AM
4860 if test -n "$ac_ct_CXX"; then
4861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4862else
ce2cded5
L
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4870 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4872 break 2
4873 fi
4874done
81ecdfbb
RW
4875 done
4876IFS=$as_save_IFS
4877
252b5132
RH
4878fi
4879fi
b879806f
AM
4880ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4881if test -n "$ac_ct_CXX"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4883$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4884else
81ecdfbb
RW
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
d7040cdb
SE
4887fi
4888
81ecdfbb 4889
b879806f 4890 test -n "$ac_ct_CXX" && break
d7040cdb 4891done
d7040cdb 4892
b879806f
AM
4893 if test "x$ac_ct_CXX" = x; then
4894 CXX="g++"
81ecdfbb
RW
4895 else
4896 case $cross_compiling:$ac_tool_warned in
4897yes:)
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900ac_tool_warned=yes ;;
4901esac
b879806f 4902 CXX=$ac_ct_CXX
81ecdfbb 4903 fi
d7040cdb
SE
4904fi
4905
b879806f 4906 fi
d7040cdb 4907fi
ce2cded5 4908# Provide some information about the compiler.
b879806f 4909$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4910set X $ac_compile
4911ac_compiler=$2
4912for ac_option in --version -v -V -qversion; do
4913 { { ac_try="$ac_compiler $ac_option >&5"
4914case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917esac
4918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4919$as_echo "$ac_try_echo"; } >&5
4920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4921 ac_status=$?
81ecdfbb
RW
4922 if test -s conftest.err; then
4923 sed '10a\
4924... rest of stderr output deleted ...
4925 10q' conftest.err >conftest.er1
4926 cat conftest.er1 >&5
4927 rm -f conftest.er1 conftest.err
4928 fi
4929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930 test $ac_status = 0; }
4931done
d7040cdb 4932
b879806f
AM
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4934$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4935if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4936 $as_echo_n "(cached) " >&6
d7040cdb 4937else
81ecdfbb 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4939/* end confdefs.h. */
d7040cdb 4940
ce2cded5
L
4941int
4942main ()
4943{
4944#ifndef __GNUC__
4945 choke me
4946#endif
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
b879806f 4952if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4953 ac_compiler_gnu=yes
d7040cdb 4954else
81ecdfbb 4955 ac_compiler_gnu=no
d7040cdb 4956fi
81ecdfbb 4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4958ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4959
ce2cded5 4960fi
b879806f
AM
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4962$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4963if test $ac_compiler_gnu = yes; then
b879806f 4964 GXX=yes
81ecdfbb 4965else
b879806f 4966 GXX=
81ecdfbb 4967fi
b879806f
AM
4968ac_test_CXXFLAGS=${CXXFLAGS+set}
4969ac_save_CXXFLAGS=$CXXFLAGS
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4971$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4972if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4973 $as_echo_n "(cached) " >&6
4974else
b879806f
AM
4975 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4976 ac_cxx_werror_flag=yes
4977 ac_cv_prog_cxx_g=no
4978 CXXFLAGS="-g"
81ecdfbb 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4980/* end confdefs.h. */
d7040cdb 4981
ce2cded5
L
4982int
4983main ()
4984{
d7040cdb 4985
ce2cded5
L
4986 ;
4987 return 0;
4988}
4989_ACEOF
b879806f
AM
4990if ac_fn_cxx_try_compile "$LINENO"; then :
4991 ac_cv_prog_cxx_g=yes
ce2cded5 4992else
b879806f 4993 CXXFLAGS=""
81ecdfbb
RW
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h. */
4996
4997int
4998main ()
4999{
5000
5001 ;
5002 return 0;
5003}
5004_ACEOF
b879806f 5005if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5006
5007else
b879806f
AM
5008 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5009 CXXFLAGS="-g"
81ecdfbb
RW
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
d7040cdb 5016
81ecdfbb
RW
5017 ;
5018 return 0;
5019}
5020_ACEOF
b879806f
AM
5021if ac_fn_cxx_try_compile "$LINENO"; then :
5022 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5023fi
5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5027fi
81ecdfbb 5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5030fi
b879806f
AM
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5032$as_echo "$ac_cv_prog_cxx_g" >&6; }
5033if test "$ac_test_CXXFLAGS" = set; then
5034 CXXFLAGS=$ac_save_CXXFLAGS
5035elif test $ac_cv_prog_cxx_g = yes; then
5036 if test "$GXX" = yes; then
5037 CXXFLAGS="-g -O2"
ce2cded5 5038 else
b879806f 5039 CXXFLAGS="-g"
ce2cded5 5040 fi
d7040cdb 5041else
b879806f
AM
5042 if test "$GXX" = yes; then
5043 CXXFLAGS="-O2"
ce2cded5 5044 else
b879806f 5045 CXXFLAGS=
ce2cded5 5046 fi
d7040cdb 5047fi
b879806f
AM
5048ac_ext=c
5049ac_cpp='$CPP $CPPFLAGS'
5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054depcc="$CXX" am_compiler_list=
5055
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5057$as_echo_n "checking dependency style of $depcc... " >&6; }
5058if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5059 $as_echo_n "(cached) " >&6
d7040cdb 5060else
b879806f
AM
5061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5062 # We make a subdir and do the tests there. Otherwise we can end up
5063 # making bogus files that we don't know about and never remove. For
5064 # instance it was reported that on HP-UX the gcc test will end up
5065 # making a dummy file named `D' -- because `-MD' means `put the output
5066 # in D'.
5067 mkdir conftest.dir
5068 # Copy depcomp to subdir because otherwise we won't find it if we're
5069 # using a relative directory.
5070 cp "$am_depcomp" conftest.dir
5071 cd conftest.dir
5072 # We will build objects and dependencies in a subdirectory because
5073 # it helps to detect inapplicable dependency modes. For instance
5074 # both Tru64's cc and ICC support -MD to output dependencies as a
5075 # side effect of compilation, but ICC will put the dependencies in
5076 # the current directory while Tru64 will put them in the object
5077 # directory.
5078 mkdir sub
d7040cdb 5079
b879806f
AM
5080 am_cv_CXX_dependencies_compiler_type=none
5081 if test "$am_compiler_list" = ""; then
5082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5083 fi
5084 am__universal=false
5085 case " $depcc " in #(
5086 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5087 esac
d7040cdb 5088
b879806f
AM
5089 for depmode in $am_compiler_list; do
5090 # Setup a source with many dependencies, because some compilers
5091 # like to wrap large dependency lists on column 80 (with \), and
5092 # we should not choose a depcomp mode which is confused by this.
5093 #
5094 # We need to recreate these files for each test, as the compiler may
5095 # overwrite some of them when testing with obscure command lines.
5096 # This happens at least with the AIX C compiler.
5097 : > sub/conftest.c
5098 for i in 1 2 3 4 5 6; do
5099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5101 # Solaris 8's {/usr,}/bin/sh.
5102 touch sub/conftst$i.h
5103 done
5104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5105
b879806f
AM
5106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5107 # mode. It turns out that the SunPro C++ compiler does not properly
5108 # handle `-M -o', and we need to detect this. Also, some Intel
5109 # versions had trouble with output in subdirs
5110 am__obj=sub/conftest.${OBJEXT-o}
5111 am__minus_obj="-o $am__obj"
5112 case $depmode in
5113 gcc)
5114 # This depmode causes a compiler race in universal mode.
5115 test "$am__universal" = false || continue
5116 ;;
5117 nosideeffect)
5118 # after this tag, mechanisms are not by side-effect, so they'll
5119 # only be used when explicitly requested
5120 if test "x$enable_dependency_tracking" = xyes; then
5121 continue
5122 else
5123 break
5124 fi
5125 ;;
5126 msvisualcpp | msvcmsys)
5127 # This compiler won't grok `-c -o', but also, the minuso test has
5128 # not run yet. These depmodes are late enough in the game, and
5129 # so weak that their functioning should not be impacted.
5130 am__obj=conftest.${OBJEXT-o}
5131 am__minus_obj=
5132 ;;
5133 none) break ;;
5134 esac
5135 if depmode=$depmode \
5136 source=sub/conftest.c object=$am__obj \
5137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5139 >/dev/null 2>conftest.err &&
5140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5144 # icc doesn't choke on unknown options, it will just issue warnings
5145 # or remarks (even with -Werror). So we grep stderr for any message
5146 # that says an option was ignored or not supported.
5147 # When given -MP, icc 7.0 and 7.1 complain thusly:
5148 # icc: Command line warning: ignoring option '-M'; no argument required
5149 # The diagnosis changed in icc 8.0:
5150 # icc: Command line remark: option '-MP' not supported
5151 if (grep 'ignoring option' conftest.err ||
5152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5153 am_cv_CXX_dependencies_compiler_type=$depmode
5154 break
5155 fi
5156 fi
5157 done
5158
5159 cd ..
5160 rm -rf conftest.dir
5161else
5162 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5163fi
d7040cdb 5164
ce2cded5 5165fi
b879806f
AM
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5167$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5168CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5169
b879806f
AM
5170 if
5171 test "x$enable_dependency_tracking" != xno \
5172 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5173 am__fastdepCXX_TRUE=
5174 am__fastdepCXX_FALSE='#'
5175else
5176 am__fastdepCXX_TRUE='#'
5177 am__fastdepCXX_FALSE=
ce2cded5 5178fi
d7040cdb 5179
b879806f 5180
68880f31
CLT
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5182$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5183if test "${ac_cv_path_GREP+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 if test -z "$GREP"; then
5187 ac_path_GREP_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in grep ggrep; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5197 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5198# Check for GNU ac_path_GREP and select it if it is found.
5199 # Check for GNU $ac_path_GREP
5200case `"$ac_path_GREP" --version 2>&1` in
5201*GNU*)
5202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5203*)
5204 ac_count=0
5205 $as_echo_n 0123456789 >"conftest.in"
5206 while :
5207 do
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'GREP' >> "conftest.nl"
5212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_GREP="$ac_path_GREP"
5218 ac_path_GREP_max=$ac_count
5219 fi
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5222 done
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224esac
5225
5226 $ac_path_GREP_found && break 3
5227 done
5228 done
5229 done
5230IFS=$as_save_IFS
5231 if test -z "$ac_cv_path_GREP"; then
5232 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233 fi
5234else
5235 ac_cv_path_GREP=$GREP
5236fi
5237
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5240$as_echo "$ac_cv_path_GREP" >&6; }
5241 GREP="$ac_cv_path_GREP"
5242
5243
ce2cded5
L
5244ac_ext=c
5245ac_cpp='$CPP $CPPFLAGS'
5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5250$as_echo_n "checking how to run the C preprocessor... " >&6; }
5251# On Suns, sometimes $CPP names a directory.
5252if test -n "$CPP" && test -d "$CPP"; then
5253 CPP=
7357c5b6 5254fi
b879806f
AM
5255if test -z "$CPP"; then
5256 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5257 $as_echo_n "(cached) " >&6
5258else
b879806f
AM
5259 # Double quotes because CPP needs to be expanded
5260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5261 do
5262 ac_preproc_ok=false
5263for ac_c_preproc_warn_flag in '' yes
3cb62297 5264do
b879806f
AM
5265 # Use a header file that comes with gcc, so configuring glibc
5266 # with a fresh cross-compiler works.
5267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5268 # <limits.h> exists even on freestanding compilers.
5269 # On the NeXT, cc -E runs the code through the compiler's parser,
5270 # not just through cpp. "Syntax error" is here to catch this case.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h. */
5273#ifdef __STDC__
5274# include <limits.h>
5275#else
5276# include <assert.h>
5277#endif
5278 Syntax error
5279_ACEOF
5280if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5281
3cb62297 5282else
b879806f
AM
5283 # Broken: fails on valid input.
5284continue
7357c5b6 5285fi
b879806f 5286rm -f conftest.err conftest.$ac_ext
252b5132 5287
b879806f
AM
5288 # OK, works on sane cases. Now check whether nonexistent headers
5289 # can be detected and how.
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h. */
5292#include <ac_nonexistent.h>
5293_ACEOF
5294if ac_fn_c_try_cpp "$LINENO"; then :
5295 # Broken: success on invalid input.
5296continue
5297else
5298 # Passes both tests.
5299ac_preproc_ok=:
5300break
5301fi
5302rm -f conftest.err conftest.$ac_ext
42ecbf5e 5303
3cb62297 5304done
b879806f
AM
5305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5306rm -f conftest.err conftest.$ac_ext
5307if $ac_preproc_ok; then :
5308 break
7357c5b6 5309fi
ac48eca1 5310
b879806f
AM
5311 done
5312 ac_cv_prog_CPP=$CPP
d7040cdb 5313
b879806f
AM
5314fi
5315 CPP=$ac_cv_prog_CPP
7357c5b6 5316else
b879806f
AM
5317 ac_cv_prog_CPP=$CPP
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5320$as_echo "$CPP" >&6; }
5321ac_preproc_ok=false
5322for ac_c_preproc_warn_flag in '' yes
5323do
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5331/* end confdefs.h. */
b879806f
AM
5332#ifdef __STDC__
5333# include <limits.h>
5334#else
5335# include <assert.h>
3cb62297 5336#endif
b879806f 5337 Syntax error
7357c5b6 5338_ACEOF
b879806f
AM
5339if ac_fn_c_try_cpp "$LINENO"; then :
5340
81ecdfbb 5341else
b879806f
AM
5342 # Broken: fails on valid input.
5343continue
7357c5b6 5344fi
b879806f 5345rm -f conftest.err conftest.$ac_ext
81ecdfbb 5346
b879806f
AM
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h. */
5351#include <ac_nonexistent.h>
5352_ACEOF
5353if ac_fn_c_try_cpp "$LINENO"; then :
5354 # Broken: success on invalid input.
5355continue
3cb62297 5356else
b879806f
AM
5357 # Passes both tests.
5358ac_preproc_ok=:
5359break
7357c5b6 5360fi
b879806f 5361rm -f conftest.err conftest.$ac_ext
252b5132 5362
b879806f
AM
5363done
5364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365rm -f conftest.err conftest.$ac_ext
5366if $ac_preproc_ok; then :
252b5132 5367
3cb62297 5368else
b879806f
AM
5369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5371as_fn_error "C preprocessor \"$CPP\" fails sanity check
5372See \`config.log' for more details." "$LINENO" 5; }
5373fi
42ecbf5e 5374
b879806f
AM
5375ac_ext=c
5376ac_cpp='$CPP $CPPFLAGS'
5377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5380
5381
b879806f
AM
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5383$as_echo_n "checking for egrep... " >&6; }
5384if test "${ac_cv_path_EGREP+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386else
5387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5388 then ac_cv_path_EGREP="$GREP -E"
5389 else
5390 if test -z "$EGREP"; then
5391 ac_path_EGREP_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_prog in egrep; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5402# Check for GNU ac_path_EGREP and select it if it is found.
5403 # Check for GNU $ac_path_EGREP
5404case `"$ac_path_EGREP" --version 2>&1` in
5405*GNU*)
5406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5407*)
5408 ac_count=0
5409 $as_echo_n 0123456789 >"conftest.in"
5410 while :
5411 do
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo 'EGREP' >> "conftest.nl"
5416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_EGREP="$ac_path_EGREP"
5422 ac_path_EGREP_max=$ac_count
5423 fi
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5426 done
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428esac
5429
5430 $ac_path_EGREP_found && break 3
5431 done
5432 done
5433 done
5434IFS=$as_save_IFS
5435 if test -z "$ac_cv_path_EGREP"; then
5436 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5437 fi
5438else
5439 ac_cv_path_EGREP=$EGREP
5440fi
5441
5442 fi
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5445$as_echo "$ac_cv_path_EGREP" >&6; }
5446 EGREP="$ac_cv_path_EGREP"
5447
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5450$as_echo_n "checking for ANSI C header files... " >&6; }
5451if test "${ac_cv_header_stdc+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453else
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5455/* end confdefs.h. */
b879806f
AM
5456#include <stdlib.h>
5457#include <stdarg.h>
5458#include <string.h>
5459#include <float.h>
42ecbf5e 5460
3cb62297
L
5461int
5462main ()
5463{
42ecbf5e 5464
3cb62297
L
5465 ;
5466 return 0;
5467}
5468_ACEOF
b879806f
AM
5469if ac_fn_c_try_compile "$LINENO"; then :
5470 ac_cv_header_stdc=yes
5471else
5472 ac_cv_header_stdc=no
3cb62297
L
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5475
5476if test $ac_cv_header_stdc = yes; then
5477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h. */
5480#include <string.h>
5481
5482_ACEOF
5483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 $EGREP "memchr" >/dev/null 2>&1; then :
5485
5486else
5487 ac_cv_header_stdc=no
3cb62297 5488fi
b879806f
AM
5489rm -f conftest*
5490
3cb62297 5491fi
b879806f
AM
5492
5493if test $ac_cv_header_stdc = yes; then
5494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h. */
5497#include <stdlib.h>
5498
5499_ACEOF
5500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 $EGREP "free" >/dev/null 2>&1; then :
5502
ce2cded5 5503else
b879806f 5504 ac_cv_header_stdc=no
ce2cded5 5505fi
b879806f 5506rm -f conftest*
42ecbf5e 5507
b879806f 5508fi
e5a52504 5509
b879806f
AM
5510if test $ac_cv_header_stdc = yes; then
5511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5512 if test "$cross_compiling" = yes; then :
5513 :
3cb62297 5514else
b879806f
AM
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h. */
5517#include <ctype.h>
5518#include <stdlib.h>
5519#if ((' ' & 0x0FF) == 0x020)
5520# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5521# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5522#else
5523# define ISLOWER(c) \
5524 (('a' <= (c) && (c) <= 'i') \
5525 || ('j' <= (c) && (c) <= 'r') \
5526 || ('s' <= (c) && (c) <= 'z'))
5527# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5528#endif
3cb62297
L
5529
5530#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5531int
5532main ()
5533{
5534 int i;
5535 for (i = 0; i < 256; i++)
5536 if (XOR (islower (i), ISLOWER (i))
5537 || toupper (i) != TOUPPER (i))
5538 return 2;
5539 return 0;
5540}
5541_ACEOF
5542if ac_fn_c_try_run "$LINENO"; then :
5543
5544else
5545 ac_cv_header_stdc=no
5546fi
5547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5548 conftest.$ac_objext conftest.beam conftest.$ac_ext
5549fi
5550
5551fi
5552fi
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5554$as_echo "$ac_cv_header_stdc" >&6; }
5555if test $ac_cv_header_stdc = yes; then
5556
5557$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5558
5559fi
5560
5561# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5562for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5563 inttypes.h stdint.h unistd.h
5564do :
5565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5566ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5567"
5568eval as_val=\$$as_ac_Header
5569 if test "x$as_val" = x""yes; then :
5570 cat >>confdefs.h <<_ACEOF
5571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572_ACEOF
5573
5574fi
5575
5576done
5577
5578
5579
5580 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5581if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5582 MINIX=yes
5583else
5584 MINIX=
5585fi
5586
5587
5588 if test "$MINIX" = yes; then
5589
5590$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5591
5592
5593$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5594
5595
5596$as_echo "#define _MINIX 1" >>confdefs.h
5597
5598 fi
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5602$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5603if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607/* end confdefs.h. */
5608
5609# define __EXTENSIONS__ 1
5610 $ac_includes_default
5611int
5612main ()
5613{
5614
5615 ;
5616 return 0;
5617}
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_safe_to_define___extensions__=yes
5621else
5622 ac_cv_safe_to_define___extensions__=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5627$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5628 test $ac_cv_safe_to_define___extensions__ = yes &&
5629 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5630
5631 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5632
5633 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5634
5635 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5636
5637 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5638
5639
5640
5641
5642
3cb62297 5643
b879806f
AM
5644case `pwd` in
5645 *\ * | *\ *)
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5647$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5648esac
3cb62297
L
5649
5650
da2f07f1 5651
b879806f
AM
5652macro_version='2.2.7a'
5653macro_revision='1.3134'
d7040cdb 5654
d7040cdb
SE
5655
5656
d7040cdb 5657
d7040cdb 5658
42ecbf5e 5659
d7040cdb 5660
252b5132 5661
252b5132 5662
252b5132 5663
252b5132
RH
5664
5665
ce2cded5 5666
b214d478 5667ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5668
3725885a
RW
5669# Backslashify metacharacters that are still active within
5670# double-quoted strings.
5671sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5672
5673# Same as above, but do not quote variable references.
5674double_quote_subst='s/\(["`\\]\)/\\\1/g'
5675
5676# Sed substitution to delay expansion of an escaped shell variable in a
5677# double_quote_subst'ed string.
5678delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5679
5680# Sed substitution to delay expansion of an escaped single quote.
5681delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5682
5683# Sed substitution to avoid accidental globbing in evaled expressions
5684no_glob_subst='s/\*/\\\*/g'
5685
5686ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5688ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5691$as_echo_n "checking how to print strings... " >&6; }
5692# Test print first, because it will be a builtin if present.
5693if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5694 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5695 ECHO='print -r --'
5696elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5697 ECHO='printf %s\n'
5698else
5699 # Use this function as a fallback that always works.
5700 func_fallback_echo ()
5701 {
5702 eval 'cat <<_LTECHO_EOF
5703$1
5704_LTECHO_EOF'
5705 }
5706 ECHO='func_fallback_echo'
5707fi
5708
5709# func_echo_all arg...
5710# Invoke $ECHO with all args, space-separated.
5711func_echo_all ()
5712{
5713 $ECHO ""
5714}
5715
5716case "$ECHO" in
5717 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5718$as_echo "printf" >&6; } ;;
5719 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5720$as_echo "print -r" >&6; } ;;
5721 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5722$as_echo "cat" >&6; } ;;
5723esac
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
81ecdfbb
RW
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5739$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5740if test "${ac_cv_path_SED+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742else
5743 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5744 for ac_i in 1 2 3 4 5 6 7; do
5745 ac_script="$ac_script$as_nl$ac_script"
5746 done
5747 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5748 { ac_script=; unset ac_script;}
5749 if test -z "$SED"; then
5750 ac_path_SED_found=false
5751 # Loop through the user's path and test for each of PROGNAME-LIST
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
81ecdfbb 5757 for ac_prog in sed gsed; do
7357c5b6 5758 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5759 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5760 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5761# Check for GNU ac_path_SED and select it if it is found.
5762 # Check for GNU $ac_path_SED
5763case `"$ac_path_SED" --version 2>&1` in
5764*GNU*)
5765 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5766*)
5767 ac_count=0
5768 $as_echo_n 0123456789 >"conftest.in"
5769 while :
5770 do
5771 cat "conftest.in" "conftest.in" >"conftest.tmp"
5772 mv "conftest.tmp" "conftest.in"
5773 cp "conftest.in" "conftest.nl"
5774 $as_echo '' >> "conftest.nl"
5775 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5777 as_fn_arith $ac_count + 1 && ac_count=$as_val
5778 if test $ac_count -gt ${ac_path_SED_max-0}; then
5779 # Best one so far, save it but keep looking for a better one
5780 ac_cv_path_SED="$ac_path_SED"
5781 ac_path_SED_max=$ac_count
5782 fi
5783 # 10*(2^10) chars as input seems more than enough
5784 test $ac_count -gt 10 && break
5785 done
5786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5787esac
5788
5789 $ac_path_SED_found && break 3
7357c5b6
AM
5790 done
5791 done
81ecdfbb 5792 done
7357c5b6 5793IFS=$as_save_IFS
81ecdfbb
RW
5794 if test -z "$ac_cv_path_SED"; then
5795 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5796 fi
81ecdfbb
RW
5797else
5798 ac_cv_path_SED=$SED
7357c5b6 5799fi
20e95c23 5800
81ecdfbb
RW
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5803$as_echo "$ac_cv_path_SED" >&6; }
5804 SED="$ac_cv_path_SED"
5805 rm -f conftest.sed
20e95c23 5806
7357c5b6
AM
5807test -z "$SED" && SED=sed
5808Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5809
5810
5811
5812
5813
5814
20e95c23 5815
20e95c23 5816
d7040cdb 5817
d7040cdb 5818
7357c5b6 5819
81ecdfbb
RW
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5821$as_echo_n "checking for fgrep... " >&6; }
5822if test "${ac_cv_path_FGREP+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
7357c5b6 5824else
81ecdfbb
RW
5825 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5826 then ac_cv_path_FGREP="$GREP -F"
5827 else
5828 if test -z "$FGREP"; then
5829 ac_path_FGREP_found=false
5830 # Loop through the user's path and test for each of PROGNAME-LIST
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_prog in fgrep; do
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5839 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5840# Check for GNU ac_path_FGREP and select it if it is found.
5841 # Check for GNU $ac_path_FGREP
5842case `"$ac_path_FGREP" --version 2>&1` in
5843*GNU*)
5844 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5845*)
5846 ac_count=0
5847 $as_echo_n 0123456789 >"conftest.in"
5848 while :
5849 do
5850 cat "conftest.in" "conftest.in" >"conftest.tmp"
5851 mv "conftest.tmp" "conftest.in"
5852 cp "conftest.in" "conftest.nl"
5853 $as_echo 'FGREP' >> "conftest.nl"
5854 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5856 as_fn_arith $ac_count + 1 && ac_count=$as_val
5857 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5858 # Best one so far, save it but keep looking for a better one
5859 ac_cv_path_FGREP="$ac_path_FGREP"
5860 ac_path_FGREP_max=$ac_count
7357c5b6 5861 fi
81ecdfbb
RW
5862 # 10*(2^10) chars as input seems more than enough
5863 test $ac_count -gt 10 && break
5864 done
5865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5866esac
5867
5868 $ac_path_FGREP_found && break 3
5869 done
5870 done
5871 done
5872IFS=$as_save_IFS
5873 if test -z "$ac_cv_path_FGREP"; then
5874 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5875 fi
5876else
5877 ac_cv_path_FGREP=$FGREP
5878fi
5879
5880 fi
20e95c23 5881fi
81ecdfbb
RW
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5883$as_echo "$ac_cv_path_FGREP" >&6; }
5884 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5885
5886
5887test -z "$GREP" && GREP=grep
5888
d7040cdb
SE
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
20e95c23 5900
ce2cded5 5901
d7040cdb 5902
7357c5b6
AM
5903
5904
5905
5906
81ecdfbb
RW
5907# Check whether --with-gnu-ld was given.
5908if test "${with_gnu_ld+set}" = set; then :
5909 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5910else
5911 with_gnu_ld=no
81ecdfbb
RW
5912fi
5913
7357c5b6
AM
5914ac_prog=ld
5915if test "$GCC" = yes; then
5916 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5918$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5919 case $host in
5920 *-*-mingw*)
5921 # gcc leaves a trailing carriage return which upsets mingw
5922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5923 *)
5924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5925 esac
5926 case $ac_prog in
5927 # Accept absolute paths.
5928 [\\/]* | ?:[\\/]*)
5929 re_direlt='/[^/][^/]*/\.\./'
5930 # Canonicalize the pathname of ld
5931 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5932 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5933 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5934 done
5935 test -z "$LD" && LD="$ac_prog"
5936 ;;
5937 "")
5938 # If it fails, then pretend we aren't using GCC.
5939 ac_prog=ld
5940 ;;
5941 *)
5942 # If it is relative, then search for the first ld in PATH.
5943 with_gnu_ld=unknown
5944 ;;
5945 esac
5946elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5948$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5949else
81ecdfbb
RW
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5951$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5952fi
81ecdfbb
RW
5953if test "${lt_cv_path_LD+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
ce2cded5 5955else
7357c5b6
AM
5956 if test -z "$LD"; then
5957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958 for ac_dir in $PATH; do
5959 IFS="$lt_save_ifs"
5960 test -z "$ac_dir" && ac_dir=.
5961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5962 lt_cv_path_LD="$ac_dir/$ac_prog"
5963 # Check to see if the program is GNU ld. I'd rather use --version,
5964 # but apparently some variants of GNU ld only accept -v.
5965 # Break only if it was the GNU/non-GNU ld that we prefer.
5966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5967 *GNU* | *'with BFD'*)
5968 test "$with_gnu_ld" != no && break
5969 ;;
5970 *)
5971 test "$with_gnu_ld" != yes && break
5972 ;;
5973 esac
5974 fi
5975 done
5976 IFS="$lt_save_ifs"
ce2cded5 5977else
7357c5b6 5978 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5979fi
5980fi
7357c5b6
AM
5981
5982LD="$lt_cv_path_LD"
5983if test -n "$LD"; then
81ecdfbb
RW
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5985$as_echo "$LD" >&6; }
ce2cded5 5986else
81ecdfbb
RW
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
ce2cded5 5989fi
81ecdfbb
RW
5990test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5992$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5993if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
ce2cded5 5995else
7357c5b6
AM
5996 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5997case `$LD -v 2>&1 </dev/null` in
5998*GNU* | *'with BFD'*)
5999 lt_cv_prog_gnu_ld=yes
6000 ;;
6001*)
6002 lt_cv_prog_gnu_ld=no
6003 ;;
6004esac
ce2cded5 6005fi
81ecdfbb
RW
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6007$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6008with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6009
6010
6011
6012
6013
6014
6015
6016
6017
81ecdfbb
RW
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6019$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6020if test "${lt_cv_path_NM+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
ce2cded5 6022else
7357c5b6
AM
6023 if test -n "$NM"; then
6024 # Let the user override the test.
6025 lt_cv_path_NM="$NM"
ce2cded5 6026else
7357c5b6
AM
6027 lt_nm_to_check="${ac_tool_prefix}nm"
6028 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6029 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6030 fi
7357c5b6
AM
6031 for lt_tmp_nm in $lt_nm_to_check; do
6032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6033 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6034 IFS="$lt_save_ifs"
6035 test -z "$ac_dir" && ac_dir=.
6036 tmp_nm="$ac_dir/$lt_tmp_nm"
6037 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6038 # Check to see if the nm accepts a BSD-compat flag.
6039 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6040 # nm: unknown option "B" ignored
6041 # Tru64's nm complains that /dev/null is an invalid object file
6042 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6043 */dev/null* | *'Invalid file or object type'*)
6044 lt_cv_path_NM="$tmp_nm -B"
6045 break
6046 ;;
6047 *)
6048 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6049 */dev/null*)
6050 lt_cv_path_NM="$tmp_nm -p"
6051 break
6052 ;;
6053 *)
6054 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6055 continue # so that we can try to find one that supports BSD flags
6056 ;;
6057 esac
6058 ;;
6059 esac
6060 fi
6061 done
6062 IFS="$lt_save_ifs"
6063 done
6064 : ${lt_cv_path_NM=no}
ce2cded5
L
6065fi
6066fi
81ecdfbb
RW
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6068$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6069if test "$lt_cv_path_NM" != "no"; then
6070 NM="$lt_cv_path_NM"
ce2cded5 6071else
7357c5b6 6072 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6073 if test -n "$DUMPBIN"; then :
6074 # Let the user override the test.
6075 else
6076 if test -n "$ac_tool_prefix"; then
6077 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6078 do
6079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
20e95c23 6085else
7357c5b6
AM
6086 if test -n "$DUMPBIN"; then
6087 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6096 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6098 break 2
6099 fi
6100done
81ecdfbb
RW
6101 done
6102IFS=$as_save_IFS
d7040cdb 6103
20e95c23 6104fi
ce2cded5 6105fi
7357c5b6
AM
6106DUMPBIN=$ac_cv_prog_DUMPBIN
6107if test -n "$DUMPBIN"; then
81ecdfbb
RW
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6109$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6110else
81ecdfbb
RW
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
42ecbf5e
DJ
6113fi
6114
81ecdfbb 6115
7357c5b6
AM
6116 test -n "$DUMPBIN" && break
6117 done
ce2cded5 6118fi
7357c5b6
AM
6119if test -z "$DUMPBIN"; then
6120 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6121 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6122do
6123 # Extract the first word of "$ac_prog", so it can be a program name with args.
6124set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126$as_echo_n "checking for $ac_word... " >&6; }
6127if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
42ecbf5e 6129else
7357c5b6
AM
6130 if test -n "$ac_ct_DUMPBIN"; then
6131 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6140 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6142 break 2
6143 fi
6144done
81ecdfbb
RW
6145 done
6146IFS=$as_save_IFS
d7040cdb 6147
ce2cded5
L
6148fi
6149fi
7357c5b6
AM
6150ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6151if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6153$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6154else
81ecdfbb
RW
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156$as_echo "no" >&6; }
ce2cded5 6157fi
d7040cdb 6158
81ecdfbb 6159
7357c5b6 6160 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6161done
d7040cdb 6162
81ecdfbb
RW
6163 if test "x$ac_ct_DUMPBIN" = x; then
6164 DUMPBIN=":"
6165 else
6166 case $cross_compiling:$ac_tool_warned in
6167yes:)
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172 DUMPBIN=$ac_ct_DUMPBIN
6173 fi
ce2cded5 6174fi
7357c5b6 6175
3725885a
RW
6176 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6177 *COFF*)
6178 DUMPBIN="$DUMPBIN -symbols"
6179 ;;
6180 *)
6181 DUMPBIN=:
6182 ;;
6183 esac
6184 fi
7357c5b6
AM
6185
6186 if test "$DUMPBIN" != ":"; then
6187 NM="$DUMPBIN"
6188 fi
ce2cded5 6189fi
7357c5b6
AM
6190test -z "$NM" && NM=nm
6191
6192
6193
6194
6195
6196
81ecdfbb
RW
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6198$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6199if test "${lt_cv_nm_interface+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
20e95c23 6201else
7357c5b6
AM
6202 lt_cv_nm_interface="BSD nm"
6203 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6204 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6205 (eval "$ac_compile" 2>conftest.err)
6206 cat conftest.err >&5
3725885a 6207 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6208 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6209 cat conftest.err >&5
3725885a 6210 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6211 cat conftest.out >&5
6212 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6213 lt_cv_nm_interface="MS dumpbin"
6214 fi
6215 rm -f conftest*
20e95c23 6216fi
81ecdfbb
RW
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6218$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6219
81ecdfbb
RW
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6221$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6222LN_S=$as_ln_s
6223if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6225$as_echo "yes" >&6; }
ce2cded5 6226else
81ecdfbb
RW
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6228$as_echo "no, using $LN_S" >&6; }
d7040cdb 6229fi
20e95c23 6230
7357c5b6 6231# find the maximum length of command line arguments
81ecdfbb
RW
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6233$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6234if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
7357c5b6
AM
6236else
6237 i=0
6238 teststring="ABCD"
20e95c23 6239
7357c5b6
AM
6240 case $build_os in
6241 msdosdjgpp*)
6242 # On DJGPP, this test can blow up pretty badly due to problems in libc
6243 # (any single argument exceeding 2000 bytes causes a buffer overrun
6244 # during glob expansion). Even if it were fixed, the result of this
6245 # check would be larger than it should be.
6246 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6247 ;;
20e95c23 6248
7357c5b6
AM
6249 gnu*)
6250 # Under GNU Hurd, this test is not required because there is
6251 # no limit to the length of command line arguments.
6252 # Libtool will interpret -1 as no limit whatsoever
6253 lt_cv_sys_max_cmd_len=-1;
6254 ;;
20e95c23 6255
b214d478 6256 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6257 # On Win9x/ME, this test blows up -- it succeeds, but takes
6258 # about 5 minutes as the teststring grows exponentially.
6259 # Worse, since 9x/ME are not pre-emptively multitasking,
6260 # you end up with a "frozen" computer, even though with patience
6261 # the test eventually succeeds (with a max line length of 256k).
6262 # Instead, let's just punt: use the minimum linelength reported by
6263 # all of the supported platforms: 8192 (on NT/2K/XP).
6264 lt_cv_sys_max_cmd_len=8192;
6265 ;;
20e95c23 6266
3725885a
RW
6267 mint*)
6268 # On MiNT this can take a long time and run out of memory.
6269 lt_cv_sys_max_cmd_len=8192;
6270 ;;
6271
7357c5b6
AM
6272 amigaos*)
6273 # On AmigaOS with pdksh, this test takes hours, literally.
6274 # So we just punt and use a minimum line length of 8192.
6275 lt_cv_sys_max_cmd_len=8192;
6276 ;;
20e95c23 6277
7357c5b6
AM
6278 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6279 # This has been around since 386BSD, at least. Likely further.
6280 if test -x /sbin/sysctl; then
6281 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6282 elif test -x /usr/sbin/sysctl; then
6283 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6284 else
6285 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6286 fi
6287 # And add a safety zone
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6290 ;;
d7040cdb 6291
7357c5b6
AM
6292 interix*)
6293 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6294 lt_cv_sys_max_cmd_len=196608
6295 ;;
d7040cdb 6296
7357c5b6
AM
6297 osf*)
6298 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6299 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6300 # nice to cause kernel panics so lets avoid the loop below.
6301 # First set a reasonable default.
6302 lt_cv_sys_max_cmd_len=16384
6303 #
6304 if test -x /sbin/sysconfig; then
6305 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6306 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6307 esac
6308 fi
6309 ;;
6310 sco3.2v5*)
6311 lt_cv_sys_max_cmd_len=102400
6312 ;;
6313 sysv5* | sco5v6* | sysv4.2uw2*)
6314 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6315 if test -n "$kargmax"; then
6316 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6317 else
6318 lt_cv_sys_max_cmd_len=32768
6319 fi
ce2cded5
L
6320 ;;
6321 *)
b214d478
SE
6322 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6323 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6326 else
6327 # Make teststring a little bigger before we do anything with it.
6328 # a 1K string should be a reasonable start.
6329 for i in 1 2 3 4 5 6 7 8 ; do
6330 teststring=$teststring$teststring
6331 done
6332 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6333 # If test is not a shell built-in, we'll probably end up computing a
6334 # maximum length that is only half of the actual maximum length, but
6335 # we can't tell.
3725885a
RW
6336 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6337 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6338 test $i != 17 # 1/2 MB should be enough
6339 do
6340 i=`expr $i + 1`
6341 teststring=$teststring$teststring
6342 done
6343 # Only check the string length outside the loop.
6344 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6345 teststring=
6346 # Add a significant safety factor because C++ compilers can tack on
6347 # massive amounts of additional arguments before passing them to the
6348 # linker. It appears as though 1/2 is a usable value.
6349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6350 fi
ce2cded5
L
6351 ;;
6352 esac
d7040cdb 6353
7357c5b6 6354fi
d7040cdb 6355
7357c5b6 6356if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6358$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6359else
81ecdfbb
RW
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6361$as_echo "none" >&6; }
7357c5b6
AM
6362fi
6363max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6364
6365
6366
6367
6368
d7040cdb 6369
7357c5b6
AM
6370: ${CP="cp -f"}
6371: ${MV="mv -f"}
6372: ${RM="rm -f"}
d7040cdb 6373
81ecdfbb
RW
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6375$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6376# Try some XSI features
6377xsi_shell=no
6378( _lt_dummy="a/b/c"
6379 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6380 = c,a/b,, \
6381 && eval 'test $(( 1 + 1 )) -eq 2 \
6382 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6383 && xsi_shell=yes
81ecdfbb
RW
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6385$as_echo "$xsi_shell" >&6; }
d7040cdb 6386
d7040cdb 6387
81ecdfbb
RW
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6389$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6390lt_shell_append=no
6391( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6392 >/dev/null 2>&1 \
6393 && lt_shell_append=yes
81ecdfbb
RW
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6395$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6396
6397
7357c5b6
AM
6398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6399 lt_unset=unset
6400else
6401 lt_unset=false
6402fi
d7040cdb 6403
d7040cdb 6404
d7040cdb 6405
d7040cdb 6406
d7040cdb 6407
7357c5b6
AM
6408# test EBCDIC or ASCII
6409case `echo X|tr X '\101'` in
6410 A) # ASCII based system
6411 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6412 lt_SP2NL='tr \040 \012'
6413 lt_NL2SP='tr \015\012 \040\040'
6414 ;;
6415 *) # EBCDIC based system
6416 lt_SP2NL='tr \100 \n'
6417 lt_NL2SP='tr \r\n \100\100'
6418 ;;
6419esac
42ecbf5e 6420
d7040cdb
SE
6421
6422
6423
6424
6425
6426
d7040cdb 6427
d7040cdb 6428
81ecdfbb
RW
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6430$as_echo_n "checking for $LD option to reload object files... " >&6; }
6431if test "${lt_cv_ld_reload_flag+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
7357c5b6
AM
6433else
6434 lt_cv_ld_reload_flag='-r'
6435fi
81ecdfbb
RW
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6437$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6438reload_flag=$lt_cv_ld_reload_flag
6439case $reload_flag in
6440"" | " "*) ;;
6441*) reload_flag=" $reload_flag" ;;
6442esac
6443reload_cmds='$LD$reload_flag -o $output$reload_objs'
6444case $host_os in
6445 darwin*)
6446 if test "$GCC" = yes; then
6447 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6448 else
6449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6450 fi
6451 ;;
6452esac
d7040cdb 6453
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
d7040cdb 6461
b214d478
SE
6462if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6464set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
b214d478
SE
6469else
6470 if test -n "$OBJDUMP"; then
6471 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6480 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6482 break 2
6483 fi
6484done
81ecdfbb
RW
6485 done
6486IFS=$as_save_IFS
b214d478
SE
6487
6488fi
6489fi
6490OBJDUMP=$ac_cv_prog_OBJDUMP
6491if test -n "$OBJDUMP"; then
81ecdfbb
RW
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6493$as_echo "$OBJDUMP" >&6; }
b214d478 6494else
81ecdfbb
RW
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
b214d478
SE
6497fi
6498
81ecdfbb 6499
b214d478
SE
6500fi
6501if test -z "$ac_cv_prog_OBJDUMP"; then
6502 ac_ct_OBJDUMP=$OBJDUMP
6503 # Extract the first word of "objdump", so it can be a program name with args.
6504set dummy objdump; ac_word=$2
81ecdfbb
RW
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
6507if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
b214d478
SE
6509else
6510 if test -n "$ac_ct_OBJDUMP"; then
6511 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6520 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6522 break 2
6523 fi
6524done
81ecdfbb
RW
6525 done
6526IFS=$as_save_IFS
b214d478 6527
b214d478
SE
6528fi
6529fi
6530ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6531if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6533$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6534else
81ecdfbb
RW
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
b214d478
SE
6537fi
6538
81ecdfbb
RW
6539 if test "x$ac_ct_OBJDUMP" = x; then
6540 OBJDUMP="false"
6541 else
6542 case $cross_compiling:$ac_tool_warned in
6543yes:)
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546ac_tool_warned=yes ;;
6547esac
6548 OBJDUMP=$ac_ct_OBJDUMP
6549 fi
b214d478
SE
6550else
6551 OBJDUMP="$ac_cv_prog_OBJDUMP"
6552fi
6553
6554test -z "$OBJDUMP" && OBJDUMP=objdump
6555
6556
6557
6558
6559
6560
6561
6562
d7040cdb 6563
81ecdfbb
RW
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6565$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6566if test "${lt_cv_deplibs_check_method+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
ce2cded5 6568else
7357c5b6
AM
6569 lt_cv_file_magic_cmd='$MAGIC_CMD'
6570lt_cv_file_magic_test_file=
6571lt_cv_deplibs_check_method='unknown'
6572# Need to set the preceding variable on all platforms that support
6573# interlibrary dependencies.
6574# 'none' -- dependencies not supported.
6575# `unknown' -- same as none, but documents that we really don't know.
6576# 'pass_all' -- all dependencies passed with no checks.
6577# 'test_compile' -- check by making test program.
6578# 'file_magic [[regex]]' -- check by looking for files in library path
6579# which responds to the $file_magic_cmd with a given extended regex.
6580# If you have `file' or equivalent on your system and you're not sure
6581# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6582
ce2cded5 6583case $host_os in
7357c5b6
AM
6584aix[4-9]*)
6585 lt_cv_deplibs_check_method=pass_all
ce2cded5 6586 ;;
7357c5b6
AM
6587
6588beos*)
6589 lt_cv_deplibs_check_method=pass_all
ce2cded5 6590 ;;
7357c5b6
AM
6591
6592bsdi[45]*)
6593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6594 lt_cv_file_magic_cmd='/usr/bin/file -L'
6595 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6596 ;;
7357c5b6
AM
6597
6598cygwin*)
6599 # func_win32_libid is a shell function defined in ltmain.sh
6600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6601 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6602 ;;
7357c5b6
AM
6603
6604mingw* | pw32*)
6605 # Base MSYS/MinGW do not provide the 'file' command needed by
6606 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6607 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6608 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6609 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6611 lt_cv_file_magic_cmd='func_win32_libid'
6612 else
6613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6614 lt_cv_file_magic_cmd='$OBJDUMP -f'
6615 fi
ce2cded5 6616 ;;
7357c5b6 6617
3725885a 6618cegcc*)
b214d478
SE
6619 # use the weaker test based on 'objdump'. See mingw*.
6620 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6621 lt_cv_file_magic_cmd='$OBJDUMP -f'
6622 ;;
6623
7357c5b6
AM
6624darwin* | rhapsody*)
6625 lt_cv_deplibs_check_method=pass_all
ce2cded5 6626 ;;
7357c5b6
AM
6627
6628freebsd* | dragonfly*)
6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6630 case $host_cpu in
6631 i*86 )
6632 # Not sure whether the presence of OpenBSD here was a mistake.
6633 # Let's accept both of them until this is cleared up.
6634 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6635 lt_cv_file_magic_cmd=/usr/bin/file
6636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6637 ;;
6638 esac
6639 else
6640 lt_cv_deplibs_check_method=pass_all
6641 fi
ce2cded5 6642 ;;
7357c5b6
AM
6643
6644gnu*)
6645 lt_cv_deplibs_check_method=pass_all
ce2cded5 6646 ;;
7357c5b6 6647
3725885a
RW
6648haiku*)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651
7357c5b6
AM
6652hpux10.20* | hpux11*)
6653 lt_cv_file_magic_cmd=/usr/bin/file
6654 case $host_cpu in
6655 ia64*)
6656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6657 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6658 ;;
6659 hppa*64*)
3725885a 6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7357c5b6
AM
6661 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6662 ;;
6663 *)
3725885a 6664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6665 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6666 ;;
6667 esac
ce2cded5 6668 ;;
d7040cdb 6669
7357c5b6
AM
6670interix[3-9]*)
6671 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6673 ;;
d7040cdb 6674
7357c5b6
AM
6675irix5* | irix6* | nonstopux*)
6676 case $LD in
6677 *-32|*"-32 ") libmagic=32-bit;;
6678 *-n32|*"-n32 ") libmagic=N32;;
6679 *-64|*"-64 ") libmagic=64-bit;;
6680 *) libmagic=never-match;;
6681 esac
6682 lt_cv_deplibs_check_method=pass_all
6683 ;;
d7040cdb 6684
7357c5b6 6685# This must be Linux ELF.
58e24671 6686linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
d7040cdb 6689
7357c5b6
AM
6690netbsd*)
6691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6693 else
6694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6695 fi
ce2cded5 6696 ;;
d7040cdb 6697
7357c5b6
AM
6698newos6*)
6699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6700 lt_cv_file_magic_cmd=/usr/bin/file
6701 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6702 ;;
d7040cdb 6703
7357c5b6
AM
6704*nto* | *qnx*)
6705 lt_cv_deplibs_check_method=pass_all
6706 ;;
d7040cdb 6707
7357c5b6
AM
6708openbsd*)
6709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6711 else
7357c5b6 6712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6713 fi
7357c5b6 6714 ;;
d7040cdb 6715
7357c5b6
AM
6716osf3* | osf4* | osf5*)
6717 lt_cv_deplibs_check_method=pass_all
6718 ;;
d7040cdb 6719
7357c5b6
AM
6720rdos*)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
d7040cdb 6723
7357c5b6
AM
6724solaris*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
d7040cdb 6727
7357c5b6
AM
6728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
d7040cdb 6731
7357c5b6
AM
6732sysv4 | sysv4.3*)
6733 case $host_vendor in
6734 motorola)
6735 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]'
6736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6737 ;;
6738 ncr)
6739 lt_cv_deplibs_check_method=pass_all
6740 ;;
6741 sequent)
6742 lt_cv_file_magic_cmd='/bin/file'
6743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6744 ;;
6745 sni)
6746 lt_cv_file_magic_cmd='/bin/file'
6747 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6748 lt_cv_file_magic_test_file=/lib/libc.so
6749 ;;
6750 siemens)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753 pc)
6754 lt_cv_deplibs_check_method=pass_all
6755 ;;
6756 esac
6757 ;;
d7040cdb 6758
7357c5b6
AM
6759tpf*)
6760 lt_cv_deplibs_check_method=pass_all
6761 ;;
6762esac
d7040cdb 6763
7357c5b6 6764fi
81ecdfbb
RW
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6766$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6767file_magic_cmd=$lt_cv_file_magic_cmd
6768deplibs_check_method=$lt_cv_deplibs_check_method
6769test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6770
6771
6772
7357c5b6
AM
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6784set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786$as_echo_n "checking for $ac_word... " >&6; }
6787if test "${ac_cv_prog_AR+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
7357c5b6
AM
6789else
6790 if test -n "$AR"; then
6791 ac_cv_prog_AR="$AR" # Let the user override the test.
6792else
6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6800 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6802 break 2
ce2cded5
L
6803 fi
6804done
81ecdfbb
RW
6805 done
6806IFS=$as_save_IFS
d7040cdb 6807
42ecbf5e 6808fi
ce2cded5 6809fi
7357c5b6
AM
6810AR=$ac_cv_prog_AR
6811if test -n "$AR"; then
81ecdfbb
RW
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6813$as_echo "$AR" >&6; }
42ecbf5e 6814else
81ecdfbb
RW
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816$as_echo "no" >&6; }
42ecbf5e
DJ
6817fi
6818
81ecdfbb 6819
7357c5b6
AM
6820fi
6821if test -z "$ac_cv_prog_AR"; then
6822 ac_ct_AR=$AR
6823 # Extract the first word of "ar", so it can be a program name with args.
6824set dummy ar; ac_word=$2
81ecdfbb
RW
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826$as_echo_n "checking for $ac_word... " >&6; }
6827if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
7357c5b6
AM
6829else
6830 if test -n "$ac_ct_AR"; then
6831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6832else
6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6840 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6842 break 2
6843 fi
6844done
81ecdfbb
RW
6845 done
6846IFS=$as_save_IFS
42ecbf5e 6847
7357c5b6
AM
6848fi
6849fi
6850ac_ct_AR=$ac_cv_prog_ac_ct_AR
6851if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6853$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6854else
81ecdfbb
RW
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856$as_echo "no" >&6; }
7357c5b6 6857fi
d7040cdb 6858
81ecdfbb
RW
6859 if test "x$ac_ct_AR" = x; then
6860 AR="false"
6861 else
6862 case $cross_compiling:$ac_tool_warned in
6863yes:)
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866ac_tool_warned=yes ;;
6867esac
6868 AR=$ac_ct_AR
6869 fi
7357c5b6
AM
6870else
6871 AR="$ac_cv_prog_AR"
6872fi
d7040cdb 6873
7357c5b6
AM
6874test -z "$AR" && AR=ar
6875test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6876
6877
6878
20e95c23 6879
d7040cdb 6880
d7040cdb
SE
6881
6882
6883
6884
6885
6886
7357c5b6
AM
6887if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if test "${ac_cv_prog_STRIP+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
7357c5b6
AM
6894else
6895 if test -n "$STRIP"; then
6896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6907 break 2
ce2cded5 6908 fi
7357c5b6 6909done
81ecdfbb
RW
6910 done
6911IFS=$as_save_IFS
d7040cdb 6912
7357c5b6
AM
6913fi
6914fi
6915STRIP=$ac_cv_prog_STRIP
6916if test -n "$STRIP"; then
81ecdfbb
RW
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6918$as_echo "$STRIP" >&6; }
7357c5b6 6919else
81ecdfbb
RW
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
7357c5b6
AM
6922fi
6923
81ecdfbb 6924
7357c5b6
AM
6925fi
6926if test -z "$ac_cv_prog_STRIP"; then
6927 ac_ct_STRIP=$STRIP
6928 # Extract the first word of "strip", so it can be a program name with args.
6929set dummy strip; ac_word=$2
81ecdfbb
RW
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
7357c5b6
AM
6934else
6935 if test -n "$ac_ct_STRIP"; then
6936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6945 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6947 break 2
ce2cded5 6948 fi
7357c5b6 6949done
81ecdfbb
RW
6950 done
6951IFS=$as_save_IFS
d7040cdb 6952
7357c5b6
AM
6953fi
6954fi
6955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6956if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6958$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6959else
81ecdfbb
RW
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
7357c5b6 6962fi
d7040cdb 6963
81ecdfbb
RW
6964 if test "x$ac_ct_STRIP" = x; then
6965 STRIP=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973 STRIP=$ac_ct_STRIP
6974 fi
7357c5b6
AM
6975else
6976 STRIP="$ac_cv_prog_STRIP"
6977fi
d7040cdb 6978
7357c5b6 6979test -z "$STRIP" && STRIP=:
d7040cdb 6980
d7040cdb
SE
6981
6982
6983
d7040cdb 6984
7357c5b6
AM
6985
6986if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990$as_echo_n "checking for $ac_word... " >&6; }
6991if test "${ac_cv_prog_RANLIB+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
ce2cded5 6993else
7357c5b6
AM
6994 if test -n "$RANLIB"; then
6995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6996else
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
ce2cded5 6999do
7357c5b6
AM
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7006 break 2
ce2cded5 7007 fi
7357c5b6 7008done
81ecdfbb
RW
7009 done
7010IFS=$as_save_IFS
7357c5b6 7011
ce2cded5 7012fi
7357c5b6
AM
7013fi
7014RANLIB=$ac_cv_prog_RANLIB
7015if test -n "$RANLIB"; then
81ecdfbb
RW
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7017$as_echo "$RANLIB" >&6; }
ce2cded5 7018else
81ecdfbb
RW
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020$as_echo "no" >&6; }
ce2cded5 7021fi
d7040cdb 7022
81ecdfbb 7023
7357c5b6
AM
7024fi
7025if test -z "$ac_cv_prog_RANLIB"; then
7026 ac_ct_RANLIB=$RANLIB
7027 # Extract the first word of "ranlib", so it can be a program name with args.
7028set dummy ranlib; ac_word=$2
81ecdfbb
RW
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030$as_echo_n "checking for $ac_word... " >&6; }
7031if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
ce2cded5 7033else
7357c5b6
AM
7034 if test -n "$ac_ct_RANLIB"; then
7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7036else
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7044 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7046 break 2
7047 fi
7048done
81ecdfbb
RW
7049 done
7050IFS=$as_save_IFS
7357c5b6 7051
ce2cded5 7052fi
7357c5b6
AM
7053fi
7054ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7055if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7057$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7058else
81ecdfbb
RW
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060$as_echo "no" >&6; }
ce2cded5 7061fi
d7040cdb 7062
81ecdfbb
RW
7063 if test "x$ac_ct_RANLIB" = x; then
7064 RANLIB=":"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067yes:)
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070ac_tool_warned=yes ;;
7071esac
7072 RANLIB=$ac_ct_RANLIB
7073 fi
7357c5b6
AM
7074else
7075 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7076fi
d7040cdb 7077
7357c5b6 7078test -z "$RANLIB" && RANLIB=:
d7040cdb 7079
7357c5b6
AM
7080
7081
7082
7083
7084
7085# Determine commands to create old-style static archives.
b214d478 7086old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7087old_postinstall_cmds='chmod 644 $oldlib'
7088old_postuninstall_cmds=
7089
7090if test -n "$RANLIB"; then
7091 case $host_os in
7092 openbsd*)
7093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7094 ;;
7095 *)
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7097 ;;
7098 esac
7099 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7100fi
7357c5b6 7101
3725885a
RW
7102case $host_os in
7103 darwin*)
7104 lock_old_archive_extraction=yes ;;
7105 *)
7106 lock_old_archive_extraction=no ;;
7107esac
7108
7109
7110
7111
7112
7113
7357c5b6
AM
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147# If no C compiler was specified, use CC.
7148LTCC=${LTCC-"$CC"}
7149
7150# If no C compiler flags were specified, use CFLAGS.
7151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7152
7153# Allow CC to be a program name with arguments.
7154compiler=$CC
7155
7156
7157# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7159$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7160if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
ce2cded5 7162else
d7040cdb 7163
7357c5b6
AM
7164# These are sane defaults that work on at least a few old systems.
7165# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7166
7357c5b6
AM
7167# Character class describing NM global symbol codes.
7168symcode='[BCDEGRST]'
7169
7170# Regexp to match symbols that can be accessed directly from C.
7171sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7172
7173# Define system-specific variables.
7174case $host_os in
7175aix*)
7176 symcode='[BCDT]'
7177 ;;
b214d478 7178cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7179 symcode='[ABCDGISTW]'
7180 ;;
7181hpux*)
7182 if test "$host_cpu" = ia64; then
7183 symcode='[ABCDEGRST]'
ce2cded5 7184 fi
7357c5b6
AM
7185 ;;
7186irix* | nonstopux*)
7187 symcode='[BCDEGRST]'
7188 ;;
7189osf*)
7190 symcode='[BCDEGQRST]'
7191 ;;
7192solaris*)
7193 symcode='[BDRT]'
7194 ;;
7195sco3.2v5*)
7196 symcode='[DT]'
7197 ;;
7198sysv4.2uw2*)
7199 symcode='[DT]'
7200 ;;
7201sysv5* | sco5v6* | unixware* | OpenUNIX*)
7202 symcode='[ABDT]'
7203 ;;
7204sysv4)
7205 symcode='[DFNSTU]'
7206 ;;
7207esac
d7040cdb 7208
7357c5b6
AM
7209# If we're using GNU nm, then use its standard symbol codes.
7210case `$NM -V 2>&1` in
7211*GNU* | *'with BFD'*)
7212 symcode='[ABCDGIRSTW]' ;;
7213esac
d7040cdb 7214
7357c5b6
AM
7215# Transform an extracted symbol line into a proper C declaration.
7216# Some systems (esp. on ia64) link data and code symbols differently,
7217# so use this general approach.
7218lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7219
7220# Transform an extracted symbol line into symbol name and symbol address
7221lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7222lt_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'"
7357c5b6
AM
7223
7224# Handle CRLF in mingw tool chain
7225opt_cr=
7226case $build_os in
7227mingw*)
7228 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7229 ;;
7230esac
d7040cdb 7231
7357c5b6
AM
7232# Try without a prefix underscore, then with it.
7233for ac_symprfx in "" "_"; do
d7040cdb 7234
7357c5b6
AM
7235 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7236 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7237
7357c5b6
AM
7238 # Write the raw and C identifiers.
7239 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7240 # Fake it for dumpbin and say T for any non-static function
7241 # and D for any global variable.
7242 # Also find C++ and __fastcall symbols from MSVC++,
7243 # which start with @ or ?.
7244 lt_cv_sys_global_symbol_pipe="$AWK '"\
7245" {last_section=section; section=\$ 3};"\
7246" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7247" \$ 0!~/External *\|/{next};"\
7248" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7249" {if(hide[section]) next};"\
7250" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7251" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7252" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7253" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7254" ' prfx=^$ac_symprfx"
7255 else
7256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7257 fi
d7040cdb 7258
7357c5b6
AM
7259 # Check to see that the pipe works correctly.
7260 pipe_works=no
d7040cdb 7261
7357c5b6
AM
7262 rm -f conftest*
7263 cat > conftest.$ac_ext <<_LT_EOF
7264#ifdef __cplusplus
7265extern "C" {
7266#endif
7267char nm_test_var;
7268void nm_test_func(void);
7269void nm_test_func(void){}
7270#ifdef __cplusplus
20e95c23 7271}
7357c5b6
AM
7272#endif
7273int main(){nm_test_var='a';nm_test_func();return(0);}
7274_LT_EOF
7275
81ecdfbb 7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7277 (eval $ac_compile) 2>&5
20e95c23 7278 ac_status=$?
81ecdfbb
RW
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7357c5b6
AM
7281 # Now try to grab the symbols.
7282 nlist=conftest.nm
3725885a
RW
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7284 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7285 ac_status=$?
81ecdfbb
RW
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7288 # Try sorting and uniquifying the output.
7289 if sort "$nlist" | uniq > "$nlist"T; then
7290 mv -f "$nlist"T "$nlist"
7291 else
7292 rm -f "$nlist"T
7293 fi
d7040cdb 7294
7357c5b6
AM
7295 # Make sure that we snagged all the symbols we need.
7296 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7297 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7298 cat <<_LT_EOF > conftest.$ac_ext
7299#ifdef __cplusplus
7300extern "C" {
7301#endif
ce2cded5 7302
7357c5b6
AM
7303_LT_EOF
7304 # Now generate the symbol file.
7305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7306
7357c5b6 7307 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7308
7357c5b6
AM
7309/* The mapping between symbol names and symbols. */
7310const struct {
7311 const char *name;
7312 void *address;
7313}
7314lt__PROGRAM__LTX_preloaded_symbols[] =
7315{
7316 { "@PROGRAM@", (void *) 0 },
7317_LT_EOF
7318 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7319 cat <<\_LT_EOF >> conftest.$ac_ext
7320 {0, (void *) 0}
7321};
d7040cdb 7322
7357c5b6
AM
7323/* This works around a problem in FreeBSD linker */
7324#ifdef FREEBSD_WORKAROUND
7325static const void *lt_preloaded_setup() {
7326 return lt__PROGRAM__LTX_preloaded_symbols;
7327}
ce2cded5 7328#endif
42ecbf5e 7329
7357c5b6 7330#ifdef __cplusplus
ce2cded5 7331}
7357c5b6
AM
7332#endif
7333_LT_EOF
7334 # Now try linking the two files.
7335 mv conftest.$ac_objext conftstm.$ac_objext
7336 lt_save_LIBS="$LIBS"
7337 lt_save_CFLAGS="$CFLAGS"
7338 LIBS="conftstm.$ac_objext"
7339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7341 (eval $ac_link) 2>&5
7342 ac_status=$?
81ecdfbb
RW
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7345 pipe_works=yes
7346 fi
7347 LIBS="$lt_save_LIBS"
7348 CFLAGS="$lt_save_CFLAGS"
7349 else
7350 echo "cannot find nm_test_func in $nlist" >&5
7351 fi
7352 else
7353 echo "cannot find nm_test_var in $nlist" >&5
7354 fi
7355 else
7356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7357 fi
7358 else
7359 echo "$progname: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 fi
b214d478 7362 rm -rf conftest* conftst*
7357c5b6
AM
7363
7364 # Do not use the global_symbol_pipe unless it works.
7365 if test "$pipe_works" = yes; then
7366 break
7367 else
7368 lt_cv_sys_global_symbol_pipe=
7369 fi
7370done
42ecbf5e 7371
ce2cded5 7372fi
7357c5b6
AM
7373
7374if test -z "$lt_cv_sys_global_symbol_pipe"; then
7375 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7376fi
7357c5b6 7377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7379$as_echo "failed" >&6; }
7357c5b6 7380else
81ecdfbb
RW
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7382$as_echo "ok" >&6; }
ce2cded5 7383fi
e5a52504 7384
d7040cdb 7385
e5a52504 7386
d7040cdb 7387
d7040cdb 7388
d7040cdb 7389
d7040cdb 7390
d7040cdb 7391
d7040cdb 7392
d7040cdb 7393
d7040cdb 7394
d7040cdb 7395
7357c5b6
AM
7396
7397
7398
b214d478
SE
7399
7400
7401
7402
7403
7357c5b6
AM
7404
7405
81ecdfbb
RW
7406# Check whether --enable-libtool-lock was given.
7407if test "${enable_libtool_lock+set}" = set; then :
7408 enableval=$enable_libtool_lock;
7409fi
7357c5b6 7410
7357c5b6
AM
7411test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7412
7413# Some flags need to be propagated to the compiler or linker for good
7414# libtool support.
7415case $host in
7416ia64-*-hpux*)
7417 # Find out which ABI we are using.
7418 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7420 (eval $ac_compile) 2>&5
7421 ac_status=$?
81ecdfbb
RW
7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; then
7357c5b6
AM
7424 case `/usr/bin/file conftest.$ac_objext` in
7425 *ELF-32*)
7426 HPUX_IA64_MODE="32"
7427 ;;
7428 *ELF-64*)
7429 HPUX_IA64_MODE="64"
7430 ;;
7431 esac
7432 fi
7433 rm -rf conftest*
7434 ;;
7435*-*-irix6*)
7436 # Find out which ABI we are using.
3725885a 7437 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7439 (eval $ac_compile) 2>&5
7440 ac_status=$?
81ecdfbb
RW
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }; then
7357c5b6
AM
7443 if test "$lt_cv_prog_gnu_ld" = yes; then
7444 case `/usr/bin/file conftest.$ac_objext` in
7445 *32-bit*)
7446 LD="${LD-ld} -melf32bsmip"
7447 ;;
7448 *N32*)
7449 LD="${LD-ld} -melf32bmipn32"
7450 ;;
7451 *64-bit*)
7452 LD="${LD-ld} -melf64bmip"
7453 ;;
7454 esac
7455 else
7456 case `/usr/bin/file conftest.$ac_objext` in
7457 *32-bit*)
7458 LD="${LD-ld} -32"
7459 ;;
7460 *N32*)
7461 LD="${LD-ld} -n32"
7462 ;;
7463 *64-bit*)
7464 LD="${LD-ld} -64"
7465 ;;
7466 esac
7467 fi
7468 fi
7469 rm -rf conftest*
7470 ;;
7471
cc9afea3 7472x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7473s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7474 # Find out which ABI we are using.
7475 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7477 (eval $ac_compile) 2>&5
7478 ac_status=$?
81ecdfbb
RW
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
7357c5b6
AM
7481 case `/usr/bin/file conftest.o` in
7482 *32-bit*)
7483 case $host in
7484 x86_64-*kfreebsd*-gnu)
7485 LD="${LD-ld} -m elf_i386_fbsd"
7486 ;;
7487 x86_64-*linux*)
6d2920c8
L
7488 case `/usr/bin/file conftest.o` in
7489 *x86-64*)
7490 LD="${LD-ld} -m elf32_x86_64"
7491 ;;
7492 *)
7493 LD="${LD-ld} -m elf_i386"
7494 ;;
7495 esac
7357c5b6 7496 ;;
cc9afea3
AM
7497 powerpc64le-*linux*)
7498 LD="${LD-ld} -m elf32lppclinux"
7499 ;;
7500 powerpc64-*linux*)
7357c5b6
AM
7501 LD="${LD-ld} -m elf32ppclinux"
7502 ;;
7503 s390x-*linux*)
7504 LD="${LD-ld} -m elf_s390"
7505 ;;
7506 sparc64-*linux*)
7507 LD="${LD-ld} -m elf32_sparc"
7508 ;;
7509 esac
7510 ;;
7511 *64-bit*)
7512 case $host in
7513 x86_64-*kfreebsd*-gnu)
7514 LD="${LD-ld} -m elf_x86_64_fbsd"
7515 ;;
7516 x86_64-*linux*)
7517 LD="${LD-ld} -m elf_x86_64"
7518 ;;
cc9afea3
AM
7519 powerpcle-*linux*)
7520 LD="${LD-ld} -m elf64lppc"
7521 ;;
7522 powerpc-*linux*)
7357c5b6
AM
7523 LD="${LD-ld} -m elf64ppc"
7524 ;;
7525 s390*-*linux*|s390*-*tpf*)
7526 LD="${LD-ld} -m elf64_s390"
7527 ;;
7528 sparc*-*linux*)
7529 LD="${LD-ld} -m elf64_sparc"
7530 ;;
7531 esac
7532 ;;
7533 esac
7534 fi
7535 rm -rf conftest*
7536 ;;
7537
7538*-*-sco3.2v5*)
7539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540 SAVE_CFLAGS="$CFLAGS"
7541 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544if test "${lt_cv_cc_needs_belf+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
ce2cded5 7546else
7357c5b6
AM
7547 ac_ext=c
7548ac_cpp='$CPP $CPPFLAGS'
7549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
81ecdfbb 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7554/* end confdefs.h. */
d7040cdb 7555
7357c5b6
AM
7556int
7557main ()
7558{
7559
7560 ;
7561 return 0;
7562}
ce2cded5 7563_ACEOF
81ecdfbb 7564if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7565 lt_cv_cc_needs_belf=yes
ce2cded5 7566else
81ecdfbb 7567 lt_cv_cc_needs_belf=no
ce2cded5 7568fi
81ecdfbb
RW
7569rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7571 ac_ext=c
7572ac_cpp='$CPP $CPPFLAGS'
7573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7576
b214d478 7577fi
81ecdfbb
RW
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582 CFLAGS="$SAVE_CFLAGS"
7583 fi
7584 ;;
7585sparc*-*solaris*)
7586 # Find out which ABI we are using.
7587 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7589 (eval $ac_compile) 2>&5
7590 ac_status=$?
81ecdfbb
RW
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
b214d478
SE
7593 case `/usr/bin/file conftest.o` in
7594 *64-bit*)
7595 case $lt_cv_prog_gnu_ld in
7596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7597 *)
7598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7599 LD="${LD-ld} -64"
7600 fi
7601 ;;
7602 esac
7603 ;;
7604 esac
7605 fi
7606 rm -rf conftest*
7607 ;;
7608esac
7609
7610need_locks="$enable_libtool_lock"
7611
7612
7613 case $host_os in
7614 rhapsody* | darwin*)
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7617set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619$as_echo_n "checking for $ac_word... " >&6; }
7620if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
b214d478
SE
7622else
7623 if test -n "$DSYMUTIL"; then
7624 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7625else
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7633 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7635 break 2
7636 fi
7637done
81ecdfbb
RW
7638 done
7639IFS=$as_save_IFS
b214d478
SE
7640
7641fi
7642fi
7643DSYMUTIL=$ac_cv_prog_DSYMUTIL
7644if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7646$as_echo "$DSYMUTIL" >&6; }
b214d478 7647else
81ecdfbb
RW
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
b214d478
SE
7650fi
7651
81ecdfbb 7652
b214d478
SE
7653fi
7654if test -z "$ac_cv_prog_DSYMUTIL"; then
7655 ac_ct_DSYMUTIL=$DSYMUTIL
7656 # Extract the first word of "dsymutil", so it can be a program name with args.
7657set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659$as_echo_n "checking for $ac_word... " >&6; }
7660if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
b214d478
SE
7662else
7663 if test -n "$ac_ct_DSYMUTIL"; then
7664 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7665else
7666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7673 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7675 break 2
7676 fi
7677done
81ecdfbb
RW
7678 done
7679IFS=$as_save_IFS
b214d478 7680
b214d478
SE
7681fi
7682fi
7683ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7684if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7686$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7687else
81ecdfbb
RW
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689$as_echo "no" >&6; }
b214d478
SE
7690fi
7691
81ecdfbb
RW
7692 if test "x$ac_ct_DSYMUTIL" = x; then
7693 DSYMUTIL=":"
7694 else
7695 case $cross_compiling:$ac_tool_warned in
7696yes:)
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699ac_tool_warned=yes ;;
7700esac
7701 DSYMUTIL=$ac_ct_DSYMUTIL
7702 fi
b214d478
SE
7703else
7704 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7705fi
7706
7707 if test -n "$ac_tool_prefix"; then
7708 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7709set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711$as_echo_n "checking for $ac_word... " >&6; }
7712if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
b214d478
SE
7714else
7715 if test -n "$NMEDIT"; then
7716 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7725 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7727 break 2
7728 fi
7729done
81ecdfbb
RW
7730 done
7731IFS=$as_save_IFS
b214d478
SE
7732
7733fi
7734fi
7735NMEDIT=$ac_cv_prog_NMEDIT
7736if test -n "$NMEDIT"; then
81ecdfbb
RW
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7738$as_echo "$NMEDIT" >&6; }
b214d478 7739else
81ecdfbb
RW
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
b214d478
SE
7742fi
7743
81ecdfbb 7744
b214d478
SE
7745fi
7746if test -z "$ac_cv_prog_NMEDIT"; then
7747 ac_ct_NMEDIT=$NMEDIT
7748 # Extract the first word of "nmedit", so it can be a program name with args.
7749set dummy nmedit; ac_word=$2
81ecdfbb
RW
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751$as_echo_n "checking for $ac_word... " >&6; }
7752if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
b214d478
SE
7754else
7755 if test -n "$ac_ct_NMEDIT"; then
7756 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7757else
7758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7765 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7767 break 2
7768 fi
7769done
81ecdfbb
RW
7770 done
7771IFS=$as_save_IFS
b214d478 7772
b214d478
SE
7773fi
7774fi
7775ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7776if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7778$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7779else
81ecdfbb
RW
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781$as_echo "no" >&6; }
b214d478
SE
7782fi
7783
81ecdfbb
RW
7784 if test "x$ac_ct_NMEDIT" = x; then
7785 NMEDIT=":"
7786 else
7787 case $cross_compiling:$ac_tool_warned in
7788yes:)
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791ac_tool_warned=yes ;;
7792esac
7793 NMEDIT=$ac_ct_NMEDIT
7794 fi
b214d478
SE
7795else
7796 NMEDIT="$ac_cv_prog_NMEDIT"
7797fi
7798
7799 if test -n "$ac_tool_prefix"; then
7800 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7801set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803$as_echo_n "checking for $ac_word... " >&6; }
7804if test "${ac_cv_prog_LIPO+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
b214d478
SE
7806else
7807 if test -n "$LIPO"; then
7808 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7809else
7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7817 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7819 break 2
7820 fi
7821done
81ecdfbb
RW
7822 done
7823IFS=$as_save_IFS
b214d478
SE
7824
7825fi
7826fi
7827LIPO=$ac_cv_prog_LIPO
7828if test -n "$LIPO"; then
81ecdfbb
RW
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7830$as_echo "$LIPO" >&6; }
b214d478 7831else
81ecdfbb
RW
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
b214d478
SE
7834fi
7835
81ecdfbb 7836
b214d478
SE
7837fi
7838if test -z "$ac_cv_prog_LIPO"; then
7839 ac_ct_LIPO=$LIPO
7840 # Extract the first word of "lipo", so it can be a program name with args.
7841set dummy lipo; ac_word=$2
81ecdfbb
RW
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843$as_echo_n "checking for $ac_word... " >&6; }
7844if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
b214d478
SE
7846else
7847 if test -n "$ac_ct_LIPO"; then
7848 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7857 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7859 break 2
7860 fi
7861done
81ecdfbb
RW
7862 done
7863IFS=$as_save_IFS
b214d478 7864
b214d478
SE
7865fi
7866fi
7867ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7868if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7870$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7871else
81ecdfbb
RW
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
b214d478
SE
7874fi
7875
81ecdfbb
RW
7876 if test "x$ac_ct_LIPO" = x; then
7877 LIPO=":"
7878 else
7879 case $cross_compiling:$ac_tool_warned in
7880yes:)
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883ac_tool_warned=yes ;;
7884esac
7885 LIPO=$ac_ct_LIPO
7886 fi
b214d478
SE
7887else
7888 LIPO="$ac_cv_prog_LIPO"
7889fi
7890
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7893set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_prog_OTOOL+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
b214d478
SE
7898else
7899 if test -n "$OTOOL"; then
7900 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7909 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7911 break 2
7912 fi
7913done
81ecdfbb
RW
7914 done
7915IFS=$as_save_IFS
b214d478
SE
7916
7917fi
7918fi
7919OTOOL=$ac_cv_prog_OTOOL
7920if test -n "$OTOOL"; then
81ecdfbb
RW
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7922$as_echo "$OTOOL" >&6; }
b214d478 7923else
81ecdfbb
RW
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
b214d478
SE
7926fi
7927
81ecdfbb 7928
b214d478
SE
7929fi
7930if test -z "$ac_cv_prog_OTOOL"; then
7931 ac_ct_OTOOL=$OTOOL
7932 # Extract the first word of "otool", so it can be a program name with args.
7933set dummy otool; ac_word=$2
81ecdfbb
RW
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
7936if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
b214d478
SE
7938else
7939 if test -n "$ac_ct_OTOOL"; then
7940 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7941else
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7949 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7951 break 2
7952 fi
7953done
81ecdfbb
RW
7954 done
7955IFS=$as_save_IFS
b214d478 7956
b214d478
SE
7957fi
7958fi
7959ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7960if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7962$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7963else
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
b214d478
SE
7966fi
7967
81ecdfbb
RW
7968 if test "x$ac_ct_OTOOL" = x; then
7969 OTOOL=":"
7970 else
7971 case $cross_compiling:$ac_tool_warned in
7972yes:)
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975ac_tool_warned=yes ;;
7976esac
7977 OTOOL=$ac_ct_OTOOL
7978 fi
b214d478
SE
7979else
7980 OTOOL="$ac_cv_prog_OTOOL"
7981fi
7982
7983 if test -n "$ac_tool_prefix"; then
7984 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7985set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987$as_echo_n "checking for $ac_word... " >&6; }
7988if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
b214d478
SE
7990else
7991 if test -n "$OTOOL64"; then
7992 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7993else
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8001 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8003 break 2
8004 fi
8005done
81ecdfbb
RW
8006 done
8007IFS=$as_save_IFS
b214d478
SE
8008
8009fi
8010fi
8011OTOOL64=$ac_cv_prog_OTOOL64
8012if test -n "$OTOOL64"; then
81ecdfbb
RW
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8014$as_echo "$OTOOL64" >&6; }
b214d478 8015else
81ecdfbb
RW
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
b214d478
SE
8018fi
8019
81ecdfbb 8020
b214d478
SE
8021fi
8022if test -z "$ac_cv_prog_OTOOL64"; then
8023 ac_ct_OTOOL64=$OTOOL64
8024 # Extract the first word of "otool64", so it can be a program name with args.
8025set dummy otool64; ac_word=$2
81ecdfbb
RW
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027$as_echo_n "checking for $ac_word... " >&6; }
8028if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8029 $as_echo_n "(cached) " >&6
b214d478
SE
8030else
8031 if test -n "$ac_ct_OTOOL64"; then
8032 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8041 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8043 break 2
8044 fi
8045done
81ecdfbb
RW
8046 done
8047IFS=$as_save_IFS
b214d478 8048
b214d478
SE
8049fi
8050fi
8051ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8052if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8054$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8055else
81ecdfbb
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
b214d478
SE
8058fi
8059
81ecdfbb
RW
8060 if test "x$ac_ct_OTOOL64" = x; then
8061 OTOOL64=":"
8062 else
8063 case $cross_compiling:$ac_tool_warned in
8064yes:)
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067ac_tool_warned=yes ;;
8068esac
8069 OTOOL64=$ac_ct_OTOOL64
8070 fi
b214d478
SE
8071else
8072 OTOOL64="$ac_cv_prog_OTOOL64"
8073fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
81ecdfbb
RW
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8102$as_echo_n "checking for -single_module linker flag... " >&6; }
8103if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
b214d478
SE
8105else
8106 lt_cv_apple_cc_single_mod=no
8107 if test -z "${LT_MULTI_MODULE}"; then
8108 # By default we will add the -single_module flag. You can override
8109 # by either setting the environment variable LT_MULTI_MODULE
8110 # non-empty at configure time, or by adding -multi_module to the
8111 # link flags.
8112 rm -rf libconftest.dylib*
8113 echo "int foo(void){return 1;}" > conftest.c
8114 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115-dynamiclib -Wl,-single_module conftest.c" >&5
8116 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8117 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8118 _lt_result=$?
8119 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8120 lt_cv_apple_cc_single_mod=yes
8121 else
8122 cat conftest.err >&5
8123 fi
8124 rm -rf libconftest.dylib*
8125 rm -f conftest.*
8126 fi
8127fi
81ecdfbb
RW
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8129$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8131$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8132if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
b214d478
SE
8134else
8135 lt_cv_ld_exported_symbols_list=no
8136 save_LDFLAGS=$LDFLAGS
8137 echo "_main" > conftest.sym
8138 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8140/* end confdefs.h. */
8141
8142int
8143main ()
8144{
8145
8146 ;
8147 return 0;
8148}
8149_ACEOF
81ecdfbb 8150if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8151 lt_cv_ld_exported_symbols_list=yes
8152else
81ecdfbb 8153 lt_cv_ld_exported_symbols_list=no
b214d478 8154fi
81ecdfbb
RW
8155rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8157 LDFLAGS="$save_LDFLAGS"
8158
8159fi
81ecdfbb
RW
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8161$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8163$as_echo_n "checking for -force_load linker flag... " >&6; }
8164if test "${lt_cv_ld_force_load+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167 lt_cv_ld_force_load=no
8168 cat > conftest.c << _LT_EOF
8169int forced_loaded() { return 2;}
8170_LT_EOF
8171 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8172 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8173 echo "$AR cru libconftest.a conftest.o" >&5
8174 $AR cru libconftest.a conftest.o 2>&5
8175 cat > conftest.c << _LT_EOF
8176int main() { return 0;}
8177_LT_EOF
8178 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8179 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8180 _lt_result=$?
8181 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8182 lt_cv_ld_force_load=yes
8183 else
8184 cat conftest.err >&5
8185 fi
8186 rm -f conftest.err libconftest.a conftest conftest.c
8187 rm -rf conftest.dSYM
8188
8189fi
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8191$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8192 case $host_os in
8193 rhapsody* | darwin1.[012])
8194 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8195 darwin1.*)
8196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8197 darwin*) # darwin 5.x on
8198 # if running on 10.5 or later, the deployment target defaults
8199 # to the OS version, if on x86, and 10.4, the deployment
8200 # target defaults to 10.4. Don't you love it?
8201 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8202 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8203 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8204 10.[012][,.]*)
b214d478
SE
8205 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8206 10.*)
8207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8208 esac
8209 ;;
8210 esac
8211 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8212 _lt_dar_single_mod='$single_module'
8213 fi
8214 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8215 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8216 else
8217 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8218 fi
3725885a 8219 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8220 _lt_dsymutil='~$DSYMUTIL $lib || :'
8221 else
8222 _lt_dsymutil=
8223 fi
8224 ;;
8225 esac
8226
b214d478 8227for ac_header in dlfcn.h
81ecdfbb
RW
8228do :
8229 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8230"
8231if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8232 cat >>confdefs.h <<_ACEOF
81ecdfbb 8233#define HAVE_DLFCN_H 1
b214d478
SE
8234_ACEOF
8235
8236fi
8237
8238done
8239
8240
8241
3725885a
RW
8242
8243
3cb62297 8244
b214d478
SE
8245# Set options
8246
8247
8248
8249 enable_dlopen=no
8250
8251
8252 enable_win32_dll=no
8253
8254
81ecdfbb
RW
8255 # Check whether --enable-shared was given.
8256if test "${enable_shared+set}" = set; then :
8257 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8258 case $enableval in
8259 yes) enable_shared=yes ;;
8260 no) enable_shared=no ;;
8261 *)
8262 enable_shared=no
8263 # Look at the argument we got. We use all the common list separators.
8264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8265 for pkg in $enableval; do
8266 IFS="$lt_save_ifs"
8267 if test "X$pkg" = "X$p"; then
8268 enable_shared=yes
8269 fi
8270 done
8271 IFS="$lt_save_ifs"
8272 ;;
8273 esac
8274else
8275 enable_shared=yes
81ecdfbb 8276fi
b214d478
SE
8277
8278
8279
8280
8281
8282
8283
8284
81ecdfbb
RW
8285
8286 # Check whether --enable-static was given.
8287if test "${enable_static+set}" = set; then :
8288 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8289 case $enableval in
8290 yes) enable_static=yes ;;
8291 no) enable_static=no ;;
8292 *)
8293 enable_static=no
8294 # Look at the argument we got. We use all the common list separators.
8295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8296 for pkg in $enableval; do
8297 IFS="$lt_save_ifs"
8298 if test "X$pkg" = "X$p"; then
8299 enable_static=yes
8300 fi
8301 done
8302 IFS="$lt_save_ifs"
8303 ;;
8304 esac
8305else
8306 enable_static=yes
81ecdfbb 8307fi
b214d478
SE
8308
8309
8310
8311
8312
8313
8314
8315
8316
81ecdfbb
RW
8317
8318# Check whether --with-pic was given.
8319if test "${with_pic+set}" = set; then :
8320 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8321else
8322 pic_mode=default
81ecdfbb
RW
8323fi
8324
b214d478
SE
8325
8326test -z "$pic_mode" && pic_mode=default
8327
8328
8329
8330
8331
8332
8333
81ecdfbb
RW
8334 # Check whether --enable-fast-install was given.
8335if test "${enable_fast_install+set}" = set; then :
8336 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8337 case $enableval in
8338 yes) enable_fast_install=yes ;;
8339 no) enable_fast_install=no ;;
8340 *)
8341 enable_fast_install=no
8342 # Look at the argument we got. We use all the common list separators.
8343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8344 for pkg in $enableval; do
8345 IFS="$lt_save_ifs"
8346 if test "X$pkg" = "X$p"; then
8347 enable_fast_install=yes
8348 fi
8349 done
8350 IFS="$lt_save_ifs"
7357c5b6
AM
8351 ;;
8352 esac
b214d478
SE
8353else
8354 enable_fast_install=yes
81ecdfbb
RW
8355fi
8356
ce2cded5 8357
ce2cded5
L
8358
8359
ce2cded5 8360
42ecbf5e 8361
d7040cdb 8362
d7040cdb 8363
d7040cdb 8364
d7040cdb 8365
d7040cdb 8366
ce2cded5
L
8367# This can be used to rebuild libtool when needed
8368LIBTOOL_DEPS="$ltmain"
d7040cdb 8369
ce2cded5
L
8370# Always use our own libtool.
8371LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8372
d7040cdb 8373
d7040cdb 8374
d7040cdb 8375
d7040cdb 8376
d7040cdb 8377
d7040cdb 8378
d7040cdb 8379
d7040cdb 8380
d7040cdb 8381
d7040cdb 8382
d7040cdb 8383
d7040cdb 8384
d7040cdb 8385
d7040cdb 8386
d7040cdb 8387
d7040cdb
SE
8388
8389
8390
8391
8392
8393
8394
3725885a 8395
d7040cdb
SE
8396
8397
ce2cded5 8398test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8399
8400
8401
8402
8403
8404
d7040cdb
SE
8405
8406
8407
8408
8409
8410
8411
8412
ce2cded5
L
8413if test -n "${ZSH_VERSION+set}" ; then
8414 setopt NO_GLOB_SUBST
8415fi
d7040cdb 8416
81ecdfbb
RW
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8418$as_echo_n "checking for objdir... " >&6; }
8419if test "${lt_cv_objdir+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
ce2cded5
L
8421else
8422 rm -f .libs 2>/dev/null
8423mkdir .libs 2>/dev/null
8424if test -d .libs; then
8425 lt_cv_objdir=.libs
8426else
8427 # MS-DOS does not allow filenames that begin with a dot.
8428 lt_cv_objdir=_libs
8429fi
8430rmdir .libs 2>/dev/null
8431fi
81ecdfbb
RW
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8433$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8434objdir=$lt_cv_objdir
d7040cdb
SE
8435
8436
8437
8438
8439
ce2cded5
L
8440cat >>confdefs.h <<_ACEOF
8441#define LT_OBJDIR "$lt_cv_objdir/"
8442_ACEOF
d7040cdb
SE
8443
8444
8445
8446
ce2cded5
L
8447case $host_os in
8448aix3*)
8449 # AIX sometimes has problems with the GCC collect2 program. For some
8450 # reason, if we set the COLLECT_NAMES environment variable, the problems
8451 # vanish in a puff of smoke.
8452 if test "X${COLLECT_NAMES+set}" != Xset; then
8453 COLLECT_NAMES=
8454 export COLLECT_NAMES
8455 fi
8456 ;;
8457esac
d7040cdb 8458
ce2cded5
L
8459# Global variables:
8460ofile=libtool
8461can_build_shared=yes
d7040cdb 8462
ce2cded5
L
8463# All known linkers require a `.a' archive for static linking (except MSVC,
8464# which needs '.lib').
8465libext=a
d7040cdb 8466
ce2cded5 8467with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8468
ce2cded5
L
8469old_CC="$CC"
8470old_CFLAGS="$CFLAGS"
d7040cdb 8471
ce2cded5
L
8472# Set sane defaults for various variables
8473test -z "$CC" && CC=cc
8474test -z "$LTCC" && LTCC=$CC
8475test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8476test -z "$LD" && LD=ld
8477test -z "$ac_objext" && ac_objext=o
d7040cdb 8478
ce2cded5
L
8479for cc_temp in $compiler""; do
8480 case $cc_temp in
8481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8483 \-*) ;;
8484 *) break;;
8485 esac
8486done
3725885a 8487cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8488
8489
ce2cded5
L
8490# Only perform the check for file, if the check method requires it
8491test -z "$MAGIC_CMD" && MAGIC_CMD=file
8492case $deplibs_check_method in
8493file_magic*)
8494 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8496$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8497if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
ce2cded5
L
8499else
8500 case $MAGIC_CMD in
8501[\\/*] | ?:[\\/]*)
8502 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8503 ;;
8504*)
8505 lt_save_MAGIC_CMD="$MAGIC_CMD"
8506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8507 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8508 for ac_dir in $ac_dummy; do
8509 IFS="$lt_save_ifs"
8510 test -z "$ac_dir" && ac_dir=.
8511 if test -f $ac_dir/${ac_tool_prefix}file; then
8512 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8513 if test -n "$file_magic_test_file"; then
8514 case $deplibs_check_method in
8515 "file_magic "*)
8516 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8518 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8519 $EGREP "$file_magic_regex" > /dev/null; then
8520 :
8521 else
8522 cat <<_LT_EOF 1>&2
d7040cdb 8523
ce2cded5
L
8524*** Warning: the command libtool uses to detect shared libraries,
8525*** $file_magic_cmd, produces output that libtool cannot recognize.
8526*** The result is that libtool may fail to recognize shared libraries
8527*** as such. This will affect the creation of libtool libraries that
8528*** depend on shared libraries, but programs linked with such libtool
8529*** libraries will work regardless of this problem. Nevertheless, you
8530*** may want to report the problem to your system manager and/or to
8531*** bug-libtool@gnu.org
d7040cdb 8532
ce2cded5
L
8533_LT_EOF
8534 fi ;;
8535 esac
8536 fi
8537 break
8538 fi
8539 done
8540 IFS="$lt_save_ifs"
8541 MAGIC_CMD="$lt_save_MAGIC_CMD"
8542 ;;
8543esac
8544fi
d7040cdb 8545
ce2cded5
L
8546MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8549$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8550else
81ecdfbb
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552$as_echo "no" >&6; }
ce2cded5 8553fi
d7040cdb
SE
8554
8555
8556
8557
8558
ce2cded5
L
8559if test -z "$lt_cv_path_MAGIC_CMD"; then
8560 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8562$as_echo_n "checking for file... " >&6; }
8563if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
ce2cded5
L
8565else
8566 case $MAGIC_CMD in
8567[\\/*] | ?:[\\/]*)
8568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8569 ;;
8570*)
8571 lt_save_MAGIC_CMD="$MAGIC_CMD"
8572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8574 for ac_dir in $ac_dummy; do
8575 IFS="$lt_save_ifs"
8576 test -z "$ac_dir" && ac_dir=.
8577 if test -f $ac_dir/file; then
8578 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8579 if test -n "$file_magic_test_file"; then
8580 case $deplibs_check_method in
8581 "file_magic "*)
8582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8585 $EGREP "$file_magic_regex" > /dev/null; then
8586 :
8587 else
8588 cat <<_LT_EOF 1>&2
d7040cdb 8589
ce2cded5
L
8590*** Warning: the command libtool uses to detect shared libraries,
8591*** $file_magic_cmd, produces output that libtool cannot recognize.
8592*** The result is that libtool may fail to recognize shared libraries
8593*** as such. This will affect the creation of libtool libraries that
8594*** depend on shared libraries, but programs linked with such libtool
8595*** libraries will work regardless of this problem. Nevertheless, you
8596*** may want to report the problem to your system manager and/or to
8597*** bug-libtool@gnu.org
d7040cdb 8598
ce2cded5
L
8599_LT_EOF
8600 fi ;;
8601 esac
8602 fi
8603 break
8604 fi
8605 done
8606 IFS="$lt_save_ifs"
8607 MAGIC_CMD="$lt_save_MAGIC_CMD"
8608 ;;
8609esac
8610fi
d7040cdb 8611
ce2cded5
L
8612MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8613if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8615$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8616else
81ecdfbb
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
ce2cded5 8619fi
d7040cdb
SE
8620
8621
ce2cded5
L
8622 else
8623 MAGIC_CMD=:
8624 fi
8625fi
d7040cdb 8626
ce2cded5
L
8627 fi
8628 ;;
8629esac
d7040cdb 8630
ce2cded5 8631# Use C for the default configuration in the libtool script
d7040cdb 8632
ce2cded5
L
8633lt_save_CC="$CC"
8634ac_ext=c
8635ac_cpp='$CPP $CPPFLAGS'
8636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8639
8640
ce2cded5
L
8641# Source file extension for C test sources.
8642ac_ext=c
d7040cdb 8643
ce2cded5
L
8644# Object file extension for compiled C test sources.
8645objext=o
8646objext=$objext
d7040cdb 8647
ce2cded5
L
8648# Code to be used in simple compile tests
8649lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8650
ce2cded5
L
8651# Code to be used in simple link tests
8652lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8653
8654
8655
8656
8657
8658
8659
ce2cded5
L
8660# If no C compiler was specified, use CC.
8661LTCC=${LTCC-"$CC"}
d7040cdb 8662
ce2cded5
L
8663# If no C compiler flags were specified, use CFLAGS.
8664LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8665
ce2cded5
L
8666# Allow CC to be a program name with arguments.
8667compiler=$CC
d7040cdb 8668
ce2cded5
L
8669# Save the default compiler, since it gets overwritten when the other
8670# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8671compiler_DEFAULT=$CC
d7040cdb 8672
ce2cded5
L
8673# save warnings/boilerplate of simple test code
8674ac_outfile=conftest.$ac_objext
8675echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8676eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8677_lt_compiler_boilerplate=`cat conftest.err`
8678$RM conftest*
d7040cdb 8679
ce2cded5
L
8680ac_outfile=conftest.$ac_objext
8681echo "$lt_simple_link_test_code" >conftest.$ac_ext
8682eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8683_lt_linker_boilerplate=`cat conftest.err`
b214d478 8684$RM -r conftest*
d7040cdb
SE
8685
8686
ce2cded5
L
8687## CAVEAT EMPTOR:
8688## There is no encapsulation within the following macros, do not change
8689## the running order or otherwise move them around unless you know exactly
8690## what you are doing...
8691if test -n "$compiler"; then
d7040cdb 8692
ce2cded5 8693lt_prog_compiler_no_builtin_flag=
d7040cdb 8694
ce2cded5 8695if test "$GCC" = yes; then
3725885a
RW
8696 case $cc_basename in
8697 nvcc*)
8698 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8699 *)
8700 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8701 esac
d7040cdb 8702
81ecdfbb
RW
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8704$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8705if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
ce2cded5
L
8707else
8708 lt_cv_prog_compiler_rtti_exceptions=no
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711 lt_compiler_flag="-fno-rtti -fno-exceptions"
8712 # Insert the option either (1) after the last *FLAGS variable, or
8713 # (2) before a word containing "conftest.", or (3) at the end.
8714 # Note that $ac_compile itself does not contain backslashes and begins
8715 # with a dollar sign (not a hyphen), so the echo should work correctly.
8716 # The option is referenced via a variable to avoid confusing sed.
8717 lt_compile=`echo "$ac_compile" | $SED \
8718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720 -e 's:$: $lt_compiler_flag:'`
3725885a 8721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8722 (eval "$lt_compile" 2>conftest.err)
8723 ac_status=$?
8724 cat conftest.err >&5
3725885a 8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8726 if (exit $ac_status) && test -s "$ac_outfile"; then
8727 # The compiler can only warn and ignore the option if not recognized
8728 # So say no if there are warnings other than the usual output.
3725885a 8729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8732 lt_cv_prog_compiler_rtti_exceptions=yes
8733 fi
8734 fi
8735 $RM conftest*
d7040cdb 8736
ce2cded5 8737fi
81ecdfbb
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8739$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8740
ce2cded5
L
8741if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8742 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8743else
8744 :
8745fi
d7040cdb 8746
ce2cded5 8747fi
d7040cdb
SE
8748
8749
8750
8751
8752
8753
ce2cded5
L
8754 lt_prog_compiler_wl=
8755lt_prog_compiler_pic=
8756lt_prog_compiler_static=
d7040cdb 8757
81ecdfbb
RW
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8759$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8760
ce2cded5
L
8761 if test "$GCC" = yes; then
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_static='-static'
d7040cdb 8764
ce2cded5
L
8765 case $host_os in
8766 aix*)
8767 # All AIX code is PIC.
8768 if test "$host_cpu" = ia64; then
8769 # AIX 5 now supports IA64 processor
8770 lt_prog_compiler_static='-Bstatic'
8771 fi
52204357 8772 lt_prog_compiler_pic='-fPIC'
ce2cded5 8773 ;;
d7040cdb 8774
ce2cded5 8775 amigaos*)
b214d478
SE
8776 case $host_cpu in
8777 powerpc)
8778 # see comment about AmigaOS4 .so support
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781 m68k)
8782 # FIXME: we need at least 68020 code to build shared libraries, but
8783 # adding the `-m68020' flag to GCC prevents building anything better,
8784 # like `-m68040'.
8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8786 ;;
8787 esac
ce2cded5 8788 ;;
d7040cdb 8789
ce2cded5
L
8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791 # PIC is the default for these OSes.
8792 ;;
d7040cdb 8793
b214d478 8794 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8795 # This hack is so that the source file can tell whether it is being
8796 # built for inclusion in a dll (and should export symbols for example).
8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798 # (--disable-auto-import) libraries
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8800 ;;
d7040cdb 8801
ce2cded5
L
8802 darwin* | rhapsody*)
8803 # PIC is the default on this platform
8804 # Common symbols not allowed in MH_DYLIB files
8805 lt_prog_compiler_pic='-fno-common'
8806 ;;
d7040cdb 8807
3725885a
RW
8808 haiku*)
8809 # PIC is the default for Haiku.
8810 # The "-static" flag exists, but is broken.
8811 lt_prog_compiler_static=
8812 ;;
8813
ce2cded5 8814 hpux*)
b214d478
SE
8815 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8816 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8817 # sets the default TLS model and affects inlining.
ce2cded5 8818 case $host_cpu in
b214d478 8819 hppa*64*)
ce2cded5
L
8820 # +Z the default
8821 ;;
8822 *)
8823 lt_prog_compiler_pic='-fPIC'
8824 ;;
8825 esac
8826 ;;
d7040cdb 8827
ce2cded5
L
8828 interix[3-9]*)
8829 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8830 # Instead, we relocate shared libraries at runtime.
8831 ;;
d7040cdb 8832
ce2cded5
L
8833 msdosdjgpp*)
8834 # Just because we use GCC doesn't mean we suddenly get shared libraries
8835 # on systems that don't support them.
8836 lt_prog_compiler_can_build_shared=no
8837 enable_shared=no
8838 ;;
d7040cdb 8839
ce2cded5
L
8840 *nto* | *qnx*)
8841 # QNX uses GNU C++, but need to define -shared option too, otherwise
8842 # it will coredump.
8843 lt_prog_compiler_pic='-fPIC -shared'
8844 ;;
d7040cdb 8845
ce2cded5
L
8846 sysv4*MP*)
8847 if test -d /usr/nec; then
8848 lt_prog_compiler_pic=-Kconform_pic
8849 fi
8850 ;;
d7040cdb 8851
ce2cded5
L
8852 *)
8853 lt_prog_compiler_pic='-fPIC'
8854 ;;
8855 esac
3725885a
RW
8856
8857 case $cc_basename in
8858 nvcc*) # Cuda Compiler Driver 2.2
8859 lt_prog_compiler_wl='-Xlinker '
8860 lt_prog_compiler_pic='-Xcompiler -fPIC'
8861 ;;
8862 esac
ce2cded5
L
8863 else
8864 # PORTME Check for flag to pass linker flags through the system compiler.
8865 case $host_os in
8866 aix*)
8867 lt_prog_compiler_wl='-Wl,'
8868 if test "$host_cpu" = ia64; then
8869 # AIX 5 now supports IA64 processor
8870 lt_prog_compiler_static='-Bstatic'
8871 else
8872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8873 fi
8874 ;;
d7040cdb 8875
b214d478 8876 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8877 # This hack is so that the source file can tell whether it is being
8878 # built for inclusion in a dll (and should export symbols for example).
8879 lt_prog_compiler_pic='-DDLL_EXPORT'
8880 ;;
d7040cdb 8881
ce2cded5
L
8882 hpux9* | hpux10* | hpux11*)
8883 lt_prog_compiler_wl='-Wl,'
8884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8885 # not for PA HP-UX.
8886 case $host_cpu in
8887 hppa*64*|ia64*)
8888 # +Z the default
8889 ;;
8890 *)
8891 lt_prog_compiler_pic='+Z'
8892 ;;
8893 esac
8894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8895 lt_prog_compiler_static='${wl}-a ${wl}archive'
8896 ;;
d7040cdb 8897
ce2cded5
L
8898 irix5* | irix6* | nonstopux*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # PIC (with -KPIC) is the default.
8901 lt_prog_compiler_static='-non_shared'
8902 ;;
d7040cdb 8903
58e24671 8904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8905 case $cc_basename in
b214d478
SE
8906 # old Intel for x86_64 which still supported -KPIC.
8907 ecc*)
ce2cded5
L
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-static'
8911 ;;
b214d478
SE
8912 # icc used to be incompatible with GCC.
8913 # ICC 10 doesn't accept -KPIC any more.
8914 icc* | ifort*)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-fPIC'
8917 lt_prog_compiler_static='-static'
8918 ;;
8919 # Lahey Fortran 8.1.
8920 lf95*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='--shared'
8923 lt_prog_compiler_static='--static'
8924 ;;
3725885a 8925 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8926 # Portland Group compilers (*not* the Pentium gcc compiler,
8927 # which looks to be a dead project)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-fpic'
8930 lt_prog_compiler_static='-Bstatic'
8931 ;;
8932 ccc*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # All Alpha code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8936 ;;
3725885a
RW
8937 xl* | bgxl* | bgf* | mpixl*)
8938 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-qpic'
8941 lt_prog_compiler_static='-qstaticlink'
8942 ;;
ce2cded5
L
8943 *)
8944 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8945 *Sun\ F* | *Sun*Fortran*)
8946 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
3725885a 8949 lt_prog_compiler_wl=''
ce2cded5 8950 ;;
3725885a
RW
8951 *Sun\ C*)
8952 # Sun C 5.9
ce2cded5
L
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
3725885a 8955 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8956 ;;
8957 esac
8958 ;;
8959 esac
8960 ;;
d7040cdb 8961
ce2cded5
L
8962 newsos6)
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 ;;
d7040cdb 8966
ce2cded5
L
8967 *nto* | *qnx*)
8968 # QNX uses GNU C++, but need to define -shared option too, otherwise
8969 # it will coredump.
8970 lt_prog_compiler_pic='-fPIC -shared'
8971 ;;
d7040cdb 8972
ce2cded5
L
8973 osf3* | osf4* | osf5*)
8974 lt_prog_compiler_wl='-Wl,'
8975 # All OSF/1 code is PIC.
8976 lt_prog_compiler_static='-non_shared'
8977 ;;
d7040cdb 8978
ce2cded5
L
8979 rdos*)
8980 lt_prog_compiler_static='-non_shared'
8981 ;;
d7040cdb 8982
ce2cded5
L
8983 solaris*)
8984 lt_prog_compiler_pic='-KPIC'
8985 lt_prog_compiler_static='-Bstatic'
8986 case $cc_basename in
8987 f77* | f90* | f95*)
8988 lt_prog_compiler_wl='-Qoption ld ';;
8989 *)
8990 lt_prog_compiler_wl='-Wl,';;
8991 esac
8992 ;;
d7040cdb 8993
ce2cded5
L
8994 sunos4*)
8995 lt_prog_compiler_wl='-Qoption ld '
8996 lt_prog_compiler_pic='-PIC'
8997 lt_prog_compiler_static='-Bstatic'
8998 ;;
d7040cdb 8999
ce2cded5
L
9000 sysv4 | sysv4.2uw2* | sysv4.3*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9004 ;;
d7040cdb 9005
ce2cded5
L
9006 sysv4*MP*)
9007 if test -d /usr/nec ;then
9008 lt_prog_compiler_pic='-Kconform_pic'
9009 lt_prog_compiler_static='-Bstatic'
9010 fi
9011 ;;
d7040cdb 9012
ce2cded5
L
9013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_pic='-KPIC'
9016 lt_prog_compiler_static='-Bstatic'
9017 ;;
d7040cdb 9018
ce2cded5
L
9019 unicos*)
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_can_build_shared=no
9022 ;;
d7040cdb 9023
ce2cded5
L
9024 uts4*)
9025 lt_prog_compiler_pic='-pic'
9026 lt_prog_compiler_static='-Bstatic'
9027 ;;
d7040cdb 9028
ce2cded5
L
9029 *)
9030 lt_prog_compiler_can_build_shared=no
9031 ;;
9032 esac
9033 fi
d7040cdb 9034
ce2cded5
L
9035case $host_os in
9036 # For platforms which do not support PIC, -DPIC is meaningless:
9037 *djgpp*)
9038 lt_prog_compiler_pic=
9039 ;;
9040 *)
9041 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9042 ;;
9043esac
81ecdfbb
RW
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9045$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9046
9047
9048
9049
9050
9051
ce2cded5
L
9052#
9053# Check to make sure the PIC flag actually works.
9054#
9055if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9057$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9058if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
ce2cded5 9060else
b214d478 9061 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9062 ac_outfile=conftest.$ac_objext
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 # The option is referenced via a variable to avoid confusing sed.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
3725885a 9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9075 (eval "$lt_compile" 2>conftest.err)
9076 ac_status=$?
9077 cat conftest.err >&5
3725885a 9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9079 if (exit $ac_status) && test -s "$ac_outfile"; then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings other than the usual output.
3725885a 9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9085 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9086 fi
9087 fi
9088 $RM conftest*
d7040cdb 9089
ce2cded5 9090fi
81ecdfbb
RW
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9092$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9093
b214d478 9094if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9095 case $lt_prog_compiler_pic in
9096 "" | " "*) ;;
9097 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9098 esac
9099else
9100 lt_prog_compiler_pic=
9101 lt_prog_compiler_can_build_shared=no
9102fi
9103
9104fi
d7040cdb
SE
9105
9106
9107
9108
9109
9110
ce2cded5
L
9111#
9112# Check to make sure the static flag actually works.
9113#
9114wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9116$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9117if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
ce2cded5 9119else
b214d478 9120 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9121 save_LDFLAGS="$LDFLAGS"
9122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9123 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9125 # The linker can only warn and ignore the option if not recognized
9126 # So say no if there are warnings
9127 if test -s conftest.err; then
9128 # Append any errors to the config.log.
9129 cat conftest.err 1>&5
3725885a 9130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9133 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9134 fi
9135 else
b214d478 9136 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9137 fi
9138 fi
b214d478 9139 $RM -r conftest*
ce2cded5 9140 LDFLAGS="$save_LDFLAGS"
d7040cdb 9141
ce2cded5 9142fi
81ecdfbb
RW
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9144$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9145
b214d478 9146if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9147 :
9148else
9149 lt_prog_compiler_static=
9150fi
d7040cdb
SE
9151
9152
9153
9154
9155
9156
9157
81ecdfbb
RW
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
ce2cded5
L
9162else
9163 lt_cv_prog_compiler_c_o=no
9164 $RM -r conftest 2>/dev/null
9165 mkdir conftest
9166 cd conftest
9167 mkdir out
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9169
ce2cded5
L
9170 lt_compiler_flag="-o out/conftest2.$ac_objext"
9171 # Insert the option either (1) after the last *FLAGS variable, or
9172 # (2) before a word containing "conftest.", or (3) at the end.
9173 # Note that $ac_compile itself does not contain backslashes and begins
9174 # with a dollar sign (not a hyphen), so the echo should work correctly.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
3725885a 9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9180 (eval "$lt_compile" 2>out/conftest.err)
9181 ac_status=$?
9182 cat out/conftest.err >&5
3725885a 9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9185 then
9186 # The compiler can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
3725885a 9188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_c_o=yes
9192 fi
9193 fi
9194 chmod u+w . 2>&5
9195 $RM conftest*
9196 # SGI C++ compiler will create directory out/ii_files/ for
9197 # template instantiation
9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199 $RM out/* && rmdir out
9200 cd ..
9201 $RM -r conftest
9202 $RM conftest*
d7040cdb 9203
ce2cded5 9204fi
81ecdfbb
RW
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9207
9208
9209
9210
9211
9212
81ecdfbb
RW
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9214$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9215if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
ce2cded5
L
9217else
9218 lt_cv_prog_compiler_c_o=no
9219 $RM -r conftest 2>/dev/null
9220 mkdir conftest
9221 cd conftest
9222 mkdir out
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9224
ce2cded5
L
9225 lt_compiler_flag="-o out/conftest2.$ac_objext"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
3725885a 9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9235 (eval "$lt_compile" 2>out/conftest.err)
9236 ac_status=$?
9237 cat out/conftest.err >&5
3725885a 9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9240 then
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings
3725885a 9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_c_o=yes
9247 fi
9248 fi
9249 chmod u+w . 2>&5
9250 $RM conftest*
9251 # SGI C++ compiler will create directory out/ii_files/ for
9252 # template instantiation
9253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9254 $RM out/* && rmdir out
9255 cd ..
9256 $RM -r conftest
9257 $RM conftest*
9258
9259fi
81ecdfbb
RW
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9261$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9262
9263
9264
9265
9266hard_links="nottested"
9267if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9268 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9270$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9271 hard_links=yes
9272 $RM conftest*
9273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9274 touch conftest.a
9275 ln conftest.a conftest.b 2>&5 || hard_links=no
9276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9278$as_echo "$hard_links" >&6; }
ce2cded5 9279 if test "$hard_links" = no; then
81ecdfbb
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9281$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9282 need_locks=warn
d7040cdb 9283 fi
d7040cdb 9284else
ce2cded5 9285 need_locks=no
d7040cdb 9286fi
d7040cdb 9287
d7040cdb 9288
d7040cdb 9289
d7040cdb 9290
d7040cdb 9291
d7040cdb 9292
81ecdfbb
RW
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9294$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9295
ce2cded5
L
9296 runpath_var=
9297 allow_undefined_flag=
9298 always_export_symbols=no
9299 archive_cmds=
9300 archive_expsym_cmds=
9301 compiler_needs_object=no
9302 enable_shared_with_static_runtimes=no
9303 export_dynamic_flag_spec=
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9305 hardcode_automatic=no
9306 hardcode_direct=no
9307 hardcode_direct_absolute=no
9308 hardcode_libdir_flag_spec=
9309 hardcode_libdir_flag_spec_ld=
9310 hardcode_libdir_separator=
9311 hardcode_minus_L=no
9312 hardcode_shlibpath_var=unsupported
9313 inherit_rpath=no
9314 link_all_deplibs=unknown
9315 module_cmds=
9316 module_expsym_cmds=
9317 old_archive_from_new_cmds=
9318 old_archive_from_expsyms_cmds=
9319 thread_safe_flag_spec=
9320 whole_archive_flag_spec=
9321 # include_expsyms should be a list of space-separated symbols to be *always*
9322 # included in the symbol list
9323 include_expsyms=
9324 # exclude_expsyms can be an extended regexp of symbols to exclude
9325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9327 # as well as any symbol that contains `d'.
b214d478 9328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9330 # platforms (ab)use it in PIC code, but their linkers get confused if
9331 # the symbol is explicitly referenced. Since portable code cannot
9332 # rely on this symbol name, it's probably fine to never include it in
9333 # preloaded symbol tables.
b214d478 9334 # Exclude shared library initialization/finalization symbols.
ce2cded5 9335 extract_expsyms_cmds=
d7040cdb 9336
ce2cded5 9337 case $host_os in
b214d478 9338 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9340 # When not using gcc, we currently assume that we are using
9341 # Microsoft Visual C++.
9342 if test "$GCC" != yes; then
9343 with_gnu_ld=no
9344 fi
d7040cdb 9345 ;;
ce2cded5
L
9346 interix*)
9347 # we just hope/assume this is gcc and not c89 (= MSVC++)
9348 with_gnu_ld=yes
9349 ;;
9350 openbsd*)
9351 with_gnu_ld=no
d7040cdb
SE
9352 ;;
9353 esac
d7040cdb 9354
ce2cded5 9355 ld_shlibs=yes
3725885a
RW
9356
9357 # On some targets, GNU ld is compatible enough with the native linker
9358 # that we're better off using the native interface for both.
9359 lt_use_gnu_ld_interface=no
ce2cded5 9360 if test "$with_gnu_ld" = yes; then
3725885a
RW
9361 case $host_os in
9362 aix*)
9363 # The AIX port of GNU ld has always aspired to compatibility
9364 # with the native linker. However, as the warning in the GNU ld
9365 # block says, versions before 2.19.5* couldn't really create working
9366 # shared libraries, regardless of the interface used.
9367 case `$LD -v 2>&1` in
9368 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9369 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9370 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9371 *)
9372 lt_use_gnu_ld_interface=yes
9373 ;;
9374 esac
9375 ;;
9376 *)
9377 lt_use_gnu_ld_interface=yes
9378 ;;
9379 esac
9380 fi
9381
9382 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9383 # If archive_cmds runs LD, not CC, wlarc should be empty
9384 wlarc='${wl}'
d7040cdb 9385
ce2cded5
L
9386 # Set some defaults for GNU ld with shared library support. These
9387 # are reset later if shared libraries are not supported. Putting them
9388 # here allows them to be overridden if necessary.
9389 runpath_var=LD_RUN_PATH
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391 export_dynamic_flag_spec='${wl}--export-dynamic'
9392 # ancient GNU ld didn't support --whole-archive et. al.
9393 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9394 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9395 else
9396 whole_archive_flag_spec=
9397 fi
9398 supports_anon_versioning=no
9399 case `$LD -v 2>&1` in
3725885a 9400 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9404 *\ 2.11.*) ;; # other 2.11 versions
9405 *) supports_anon_versioning=yes ;;
9406 esac
d7040cdb 9407
ce2cded5
L
9408 # See if GNU ld supports shared libraries.
9409 case $host_os in
50e7d84b 9410 aix[3-9]*)
ce2cded5
L
9411 # On AIX/PPC, the GNU linker is very broken
9412 if test "$host_cpu" != ia64; then
9413 ld_shlibs=no
9414 cat <<_LT_EOF 1>&2
d7040cdb 9415
3725885a 9416*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9417*** to be unable to reliably create shared libraries on AIX.
9418*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9419*** really care for shared libraries, you may want to install binutils
9420*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9421*** You will then need to restart the configuration process.
d7040cdb 9422
ce2cded5
L
9423_LT_EOF
9424 fi
d7040cdb 9425 ;;
d7040cdb 9426
ce2cded5 9427 amigaos*)
b214d478
SE
9428 case $host_cpu in
9429 powerpc)
9430 # see comment about AmigaOS4 .so support
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 archive_expsym_cmds=''
9433 ;;
9434 m68k)
9435 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)'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9438 ;;
9439 esac
ce2cded5 9440 ;;
d7040cdb 9441
ce2cded5
L
9442 beos*)
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 allow_undefined_flag=unsupported
9445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9446 # support --undefined. This deserves some investigation. FIXME
9447 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 else
9449 ld_shlibs=no
9450 fi
9451 ;;
d7040cdb 9452
b214d478 9453 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9454 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9455 # as there is no search path for DLLs.
9456 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9457 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=no
9460 enable_shared_with_static_runtimes=yes
9461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9462
9463 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9465 # If the export-symbols file already is a .def file (1st line
9466 # is EXPORTS), use it as is; otherwise, prepend...
9467 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9469 else
ce2cded5
L
9470 echo EXPORTS > $output_objdir/$soname.def;
9471 cat $export_symbols >> $output_objdir/$soname.def;
9472 fi~
9473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9474 else
9475 ld_shlibs=no
9476 fi
9477 ;;
d7040cdb 9478
3725885a
RW
9479 haiku*)
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 link_all_deplibs=yes
9482 ;;
9483
ce2cded5
L
9484 interix[3-9]*)
9485 hardcode_direct=no
9486 hardcode_shlibpath_var=no
9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488 export_dynamic_flag_spec='${wl}-E'
9489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9490 # Instead, shared libraries are loaded at an image base (0x10000000 by
9491 # default) and relocated if they conflict, which is a slow very memory
9492 # consuming and fragmenting process. To avoid this, we pick a random,
9493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9496 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'
9497 ;;
d7040cdb 9498
58e24671 9499 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9500 tmp_diet=no
9501 if test "$host_os" = linux-dietlibc; then
9502 case $cc_basename in
9503 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9504 esac
9505 fi
9506 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9507 && test "$tmp_diet" = no
9508 then
6e733cce 9509 tmp_addflag=' $pic_flag'
b214d478 9510 tmp_sharedflag='-shared'
ce2cded5
L
9511 case $cc_basename,$host_cpu in
9512 pgcc*) # Portland Group C compiler
3725885a 9513 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9514 tmp_addflag=' $pic_flag'
9515 ;;
3725885a
RW
9516 pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group f77 and f90 compilers
9518 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9519 tmp_addflag=' $pic_flag -Mnomain' ;;
9520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9521 tmp_addflag=' -i_dynamic' ;;
9522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9523 tmp_addflag=' -i_dynamic -nofor_main' ;;
9524 ifc* | ifort*) # Intel Fortran compiler
9525 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9526 lf95*) # Lahey Fortran 8.1
9527 whole_archive_flag_spec=
9528 tmp_sharedflag='--shared' ;;
3725885a 9529 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9530 tmp_sharedflag='-qmkshrobj'
9531 tmp_addflag= ;;
3725885a
RW
9532 nvcc*) # Cuda Compiler Driver 2.2
9533 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9534 compiler_needs_object=yes
9535 ;;
ce2cded5
L
9536 esac
9537 case `$CC -V 2>&1 | sed 5q` in
9538 *Sun\ C*) # Sun C 5.9
3725885a 9539 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9540 compiler_needs_object=yes
9541 tmp_sharedflag='-G' ;;
9542 *Sun\ F*) # Sun Fortran 8.3
9543 tmp_sharedflag='-G' ;;
ce2cded5
L
9544 esac
9545 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9546
ce2cded5
L
9547 if test "x$supports_anon_versioning" = xyes; then
9548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9550 echo "local: *; };" >> $output_objdir/$libname.ver~
9551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9552 fi
b214d478
SE
9553
9554 case $cc_basename in
3725885a 9555 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9556 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9557 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9558 hardcode_libdir_flag_spec=
9559 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9560 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9561 if test "x$supports_anon_versioning" = xyes; then
9562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9564 echo "local: *; };" >> $output_objdir/$libname.ver~
9565 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9566 fi
9567 ;;
9568 esac
ce2cded5
L
9569 else
9570 ld_shlibs=no
9571 fi
9572 ;;
d7040cdb 9573
ce2cded5
L
9574 netbsd*)
9575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9576 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9577 wlarc=
9578 else
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 fi
9582 ;;
9583
9584 solaris*)
9585 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9586 ld_shlibs=no
9587 cat <<_LT_EOF 1>&2
9588
9589*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9590*** create shared libraries on Solaris systems. Therefore, libtool
9591*** is disabling shared libraries support. We urge you to upgrade GNU
9592*** binutils to release 2.9.1 or newer. Another option is to modify
9593*** your PATH or compiler configuration so that the native linker is
9594*** used, and then restart.
9595
9596_LT_EOF
9597 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9600 else
9601 ld_shlibs=no
9602 fi
9603 ;;
9604
9605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9606 case `$LD -v 2>&1` in
9607 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9608 ld_shlibs=no
9609 cat <<_LT_EOF 1>&2
9610
9611*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9612*** reliably create shared libraries on SCO systems. Therefore, libtool
9613*** is disabling shared libraries support. We urge you to upgrade GNU
9614*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9615*** your PATH or compiler configuration so that the native linker is
9616*** used, and then restart.
9617
9618_LT_EOF
9619 ;;
9620 *)
9621 # For security reasons, it is highly recommended that you always
9622 # use absolute paths for naming shared libraries, and exclude the
9623 # DT_RUNPATH tag from executables and libraries. But doing so
9624 # requires that you compile everything twice, which is a pain.
9625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629 else
9630 ld_shlibs=no
9631 fi
9632 ;;
9633 esac
9634 ;;
9635
9636 sunos4*)
9637 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 wlarc=
9639 hardcode_direct=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 *)
9644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9647 else
9648 ld_shlibs=no
9649 fi
9650 ;;
9651 esac
9652
9653 if test "$ld_shlibs" = no; then
9654 runpath_var=
9655 hardcode_libdir_flag_spec=
9656 export_dynamic_flag_spec=
9657 whole_archive_flag_spec=
9658 fi
9659 else
9660 # PORTME fill in a description of your system's linker (not GNU ld)
9661 case $host_os in
9662 aix3*)
9663 allow_undefined_flag=unsupported
9664 always_export_symbols=yes
9665 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'
9666 # Note: this linker hardcodes the directories in LIBPATH if there
9667 # are no directories specified by -L.
9668 hardcode_minus_L=yes
9669 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9670 # Neither direct hardcoding nor static linking is supported with a
9671 # broken collect2.
9672 hardcode_direct=unsupported
9673 fi
9674 ;;
9675
50e7d84b 9676 aix[4-9]*)
ce2cded5
L
9677 if test "$host_cpu" = ia64; then
9678 # On IA64, the linker does run time linking by default, so we don't
9679 # have to do anything special.
9680 aix_use_runtimelinking=no
9681 exp_sym_flag='-Bexport'
9682 no_entry_flag=""
9683 else
9684 # If we're using GNU nm, then we don't want the "-C" option.
9685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9686 # Also, AIX nm treats weak defined symbols like other global
9687 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9689 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9690 else
9691 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'
9692 fi
9693 aix_use_runtimelinking=no
9694
9695 # Test if we are trying to use run time linking or normal
9696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9697 # need to do runtime linking.
50e7d84b 9698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9699 for ld_flag in $LDFLAGS; do
9700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9701 aix_use_runtimelinking=yes
9702 break
9703 fi
9704 done
9705 ;;
9706 esac
9707
9708 exp_sym_flag='-bexport'
9709 no_entry_flag='-bnoentry'
9710 fi
9711
9712 # When large executables or shared objects are built, AIX ld can
9713 # have problems creating the table of contents. If linking a library
9714 # or program results in "error TOC overflow" add -mminimal-toc to
9715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717
9718 archive_cmds=''
9719 hardcode_direct=yes
9720 hardcode_direct_absolute=yes
9721 hardcode_libdir_separator=':'
9722 link_all_deplibs=yes
9723 file_list_spec='${wl}-f,'
9724
9725 if test "$GCC" = yes; then
9726 case $host_os in aix4.[012]|aix4.[012].*)
9727 # We only want to do this on AIX 4.2 and lower, the check
9728 # below for broken collect2 doesn't work under 4.3+
9729 collect2name=`${CC} -print-prog-name=collect2`
9730 if test -f "$collect2name" &&
9731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9732 then
9733 # We have reworked collect2
9734 :
9735 else
9736 # We have old collect2
9737 hardcode_direct=unsupported
9738 # It fails to find uninstalled libraries when the uninstalled
9739 # path is not listed in the libpath. Setting hardcode_minus_L
9740 # to unsupported forces relinking
9741 hardcode_minus_L=yes
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_libdir_separator=
9744 fi
9745 ;;
9746 esac
9747 shared_flag='-shared'
9748 if test "$aix_use_runtimelinking" = yes; then
9749 shared_flag="$shared_flag "'${wl}-G'
9750 fi
9751 else
9752 # not using gcc
9753 if test "$host_cpu" = ia64; then
9754 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9755 # chokes on -Wl,-G. The following line is correct:
9756 shared_flag='-G'
9757 else
9758 if test "$aix_use_runtimelinking" = yes; then
9759 shared_flag='${wl}-G'
9760 else
9761 shared_flag='${wl}-bM:SRE'
9762 fi
9763 fi
9764 fi
9765
b214d478 9766 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9767 # It seems that -bexpall does not export symbols beginning with
9768 # underscore (_), so it is better to generate a list of symbols to export.
9769 always_export_symbols=yes
9770 if test "$aix_use_runtimelinking" = yes; then
9771 # Warning - without using the other runtime loading flags (-brtl),
9772 # -berok will link without error, but may produce a broken library.
9773 allow_undefined_flag='-berok'
9774 # Determine the default libpath from the value encoded in an
9775 # empty executable.
81ecdfbb 9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9777/* end confdefs.h. */
9778
9779int
9780main ()
9781{
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
81ecdfbb 9787if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9788
ce2cded5
L
9789lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9791 /^0/ {
9792 s/^0 *\(.*\)$/\1/
9793 p
9794 }
9795 }'
9796aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797# Check for a 64-bit object if we didn't find anything.
9798if test -z "$aix_libpath"; then
9799 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800fi
d7040cdb 9801fi
81ecdfbb
RW
9802rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9805
ce2cded5 9806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9807 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
ce2cded5
L
9808 else
9809 if test "$host_cpu" = ia64; then
9810 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9811 allow_undefined_flag="-z nodefs"
9812 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"
9813 else
9814 # Determine the default libpath from the value encoded in an
9815 # empty executable.
81ecdfbb 9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9817/* end confdefs.h. */
d7040cdb 9818
ce2cded5
L
9819int
9820main ()
9821{
d7040cdb 9822
ce2cded5
L
9823 ;
9824 return 0;
9825}
9826_ACEOF
81ecdfbb 9827if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9828
ce2cded5
L
9829lt_aix_libpath_sed='
9830 /Import File Strings/,/^$/ {
9831 /^0/ {
9832 s/^0 *\(.*\)$/\1/
9833 p
9834 }
9835 }'
9836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837# Check for a 64-bit object if we didn't find anything.
9838if test -z "$aix_libpath"; then
9839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9840fi
ce2cded5 9841fi
81ecdfbb
RW
9842rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9845
ce2cded5
L
9846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9847 # Warning - without using the other run time loading flags,
9848 # -berok will link without error, but may produce a broken library.
9849 no_undefined_flag=' ${wl}-bernotok'
9850 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9851 if test "$with_gnu_ld" = yes; then
9852 # We only use this code for GNU lds that support --whole-archive.
9853 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9854 else
9855 # Exported symbols can be pulled into shared objects from archives
9856 whole_archive_flag_spec='$convenience'
9857 fi
ce2cded5
L
9858 archive_cmds_need_lc=yes
9859 # This is similar to how AIX traditionally builds its shared libraries.
9860 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'
9861 fi
9862 fi
9863 ;;
d7040cdb 9864
ce2cded5 9865 amigaos*)
b214d478
SE
9866 case $host_cpu in
9867 powerpc)
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds=''
9871 ;;
9872 m68k)
9873 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)'
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9876 ;;
9877 esac
ce2cded5
L
9878 ;;
9879
9880 bsdi[45]*)
9881 export_dynamic_flag_spec=-rdynamic
9882 ;;
9883
b214d478 9884 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 hardcode_libdir_flag_spec=' '
9890 allow_undefined_flag=unsupported
9891 # Tell ltmain to make .lib files, not .a files.
9892 libext=lib
9893 # Tell ltmain to make .dll files, not .so files.
9894 shrext_cmds=".dll"
9895 # FIXME: Setting linknames here is a bad hack.
3725885a 9896 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9897 # The linker will automatically build a .lib file if we build a DLL.
9898 old_archive_from_new_cmds='true'
9899 # FIXME: Should let the user specify the lib program.
9900 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901 fix_srcfile_path='`cygpath -w "$srcfile"`'
9902 enable_shared_with_static_runtimes=yes
9903 ;;
9904
9905 darwin* | rhapsody*)
d7040cdb 9906
b214d478
SE
9907
9908 archive_cmds_need_lc=no
9909 hardcode_direct=no
9910 hardcode_automatic=yes
9911 hardcode_shlibpath_var=unsupported
3725885a
RW
9912 if test "$lt_cv_ld_force_load" = "yes"; then
9913 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9914 else
9915 whole_archive_flag_spec=''
9916 fi
b214d478
SE
9917 link_all_deplibs=yes
9918 allow_undefined_flag="$_lt_dar_allow_undefined"
9919 case $cc_basename in
9920 ifort*) _lt_dar_can_shared=yes ;;
9921 *) _lt_dar_can_shared=$GCC ;;
9922 esac
9923 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9924 output_verbose_link_cmd=func_echo_all
b214d478
SE
9925 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9926 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9927 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}"
9928 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}"
9929
9930 else
9931 ld_shlibs=no
9932 fi
9933
ce2cded5 9934 ;;
d7040cdb 9935
ce2cded5
L
9936 dgux*)
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_shlibpath_var=no
9940 ;;
d7040cdb 9941
ce2cded5
L
9942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9943 # support. Future versions do this automatically, but an explicit c++rt0.o
9944 # does not break anything, and helps significantly (at the cost of a little
9945 # extra space).
9946 freebsd2.2*)
9947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9948 hardcode_libdir_flag_spec='-R$libdir'
9949 hardcode_direct=yes
9950 hardcode_shlibpath_var=no
d7040cdb 9951 ;;
d7040cdb 9952
ce2cded5 9953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9954 freebsd2.*)
ce2cded5
L
9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct=yes
9957 hardcode_minus_L=yes
9958 hardcode_shlibpath_var=no
9959 ;;
d7040cdb 9960
ce2cded5
L
9961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9962 freebsd* | dragonfly*)
9963 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
d7040cdb 9968
ce2cded5
L
9969 hpux9*)
9970 if test "$GCC" = yes; then
9971 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'
9972 else
9973 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'
9974 fi
9975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976 hardcode_libdir_separator=:
9977 hardcode_direct=yes
d7040cdb 9978
ce2cded5
L
9979 # hardcode_minus_L: Not really in the search PATH,
9980 # but as the default location of the library.
9981 hardcode_minus_L=yes
9982 export_dynamic_flag_spec='${wl}-E'
9983 ;;
d7040cdb 9984
ce2cded5 9985 hpux10*)
3725885a 9986 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9987 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990 fi
9991 if test "$with_gnu_ld" = no; then
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_flag_spec_ld='+b $libdir'
9994 hardcode_libdir_separator=:
9995 hardcode_direct=yes
9996 hardcode_direct_absolute=yes
9997 export_dynamic_flag_spec='${wl}-E'
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10001 fi
10002 ;;
d7040cdb 10003
ce2cded5 10004 hpux11*)
3725885a 10005 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10006 case $host_cpu in
10007 hppa*64*)
10008 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 ;;
10010 ia64*)
b214d478 10011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10012 ;;
10013 *)
10014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10015 ;;
10016 esac
10017 else
10018 case $host_cpu in
10019 hppa*64*)
10020 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 ;;
10022 ia64*)
10023 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10024 ;;
10025 *)
3725885a
RW
10026
10027 # Older versions of the 11.00 compiler do not understand -b yet
10028 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10030$as_echo_n "checking if $CC understands -b... " >&6; }
10031if test "${lt_cv_prog_compiler__b+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10033else
10034 lt_cv_prog_compiler__b=no
10035 save_LDFLAGS="$LDFLAGS"
10036 LDFLAGS="$LDFLAGS -b"
10037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10039 # The linker can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 if test -s conftest.err; then
10042 # Append any errors to the config.log.
10043 cat conftest.err 1>&5
10044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046 if diff conftest.exp conftest.er2 >/dev/null; then
10047 lt_cv_prog_compiler__b=yes
10048 fi
10049 else
10050 lt_cv_prog_compiler__b=yes
10051 fi
10052 fi
10053 $RM -r conftest*
10054 LDFLAGS="$save_LDFLAGS"
10055
10056fi
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10058$as_echo "$lt_cv_prog_compiler__b" >&6; }
10059
10060if test x"$lt_cv_prog_compiler__b" = xyes; then
10061 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10062else
10063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10064fi
10065
ce2cded5
L
10066 ;;
10067 esac
10068 fi
10069 if test "$with_gnu_ld" = no; then
10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10071 hardcode_libdir_separator=:
d7040cdb 10072
ce2cded5
L
10073 case $host_cpu in
10074 hppa*64*|ia64*)
10075 hardcode_direct=no
10076 hardcode_shlibpath_var=no
10077 ;;
10078 *)
10079 hardcode_direct=yes
10080 hardcode_direct_absolute=yes
10081 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10082
ce2cded5
L
10083 # hardcode_minus_L: Not really in the search PATH,
10084 # but as the default location of the library.
10085 hardcode_minus_L=yes
10086 ;;
10087 esac
10088 fi
10089 ;;
d7040cdb 10090
ce2cded5
L
10091 irix5* | irix6* | nonstopux*)
10092 if test "$GCC" = yes; then
3725885a 10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
10094 # Try to use the -exported_symbol ld option, if it does not
10095 # work, assume that -exports_file does not work either and
10096 # implicitly export all symbols.
10097 save_LDFLAGS="$LDFLAGS"
10098 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h. */
ce2cded5
L
10101int foo(void) {}
10102_ACEOF
81ecdfbb 10103if ac_fn_c_try_link "$LINENO"; then :
3725885a 10104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 10105
ce2cded5 10106fi
81ecdfbb
RW
10107rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10109 LDFLAGS="$save_LDFLAGS"
10110 else
3725885a
RW
10111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
ce2cded5
L
10113 fi
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10117 inherit_rpath=yes
10118 link_all_deplibs=yes
10119 ;;
d7040cdb 10120
ce2cded5
L
10121 netbsd*)
10122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10124 else
10125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10126 fi
10127 hardcode_libdir_flag_spec='-R$libdir'
10128 hardcode_direct=yes
10129 hardcode_shlibpath_var=no
10130 ;;
d7040cdb 10131
ce2cded5
L
10132 newsos6)
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_direct=yes
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator=:
10137 hardcode_shlibpath_var=no
10138 ;;
d7040cdb 10139
ce2cded5
L
10140 *nto* | *qnx*)
10141 ;;
d7040cdb 10142
ce2cded5 10143 openbsd*)
b214d478
SE
10144 if test -f /usr/libexec/ld.so; then
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 hardcode_direct_absolute=yes
10148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10152 export_dynamic_flag_spec='${wl}-E'
10153 else
10154 case $host_os in
10155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-R$libdir'
10158 ;;
10159 *)
10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162 ;;
10163 esac
10164 fi
10165 else
10166 ld_shlibs=no
ce2cded5
L
10167 fi
10168 ;;
d7040cdb 10169
ce2cded5
L
10170 os2*)
10171 hardcode_libdir_flag_spec='-L$libdir'
10172 hardcode_minus_L=yes
10173 allow_undefined_flag=unsupported
3725885a 10174 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'
ce2cded5
L
10175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10176 ;;
d7040cdb 10177
ce2cded5
L
10178 osf3*)
10179 if test "$GCC" = yes; then
10180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10181 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
10182 else
10183 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10184 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5
L
10185 fi
10186 archive_cmds_need_lc='no'
10187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10188 hardcode_libdir_separator=:
10189 ;;
d7040cdb 10190
ce2cded5
L
10191 osf4* | osf5*) # as osf3* with the addition of -msym flag
10192 if test "$GCC" = yes; then
10193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10194 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196 else
10197 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10198 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5 10199 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~
3725885a 10200 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 10201
ce2cded5
L
10202 # Both c and cxx compiler support -rpath directly
10203 hardcode_libdir_flag_spec='-rpath $libdir'
10204 fi
10205 archive_cmds_need_lc='no'
10206 hardcode_libdir_separator=:
10207 ;;
d7040cdb 10208
ce2cded5
L
10209 solaris*)
10210 no_undefined_flag=' -z defs'
10211 if test "$GCC" = yes; then
10212 wlarc='${wl}'
10213 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10215 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10216 else
10217 case `$CC -V 2>&1` in
10218 *"Compilers 5.0"*)
10219 wlarc=''
10220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10223 ;;
10224 *)
10225 wlarc='${wl}'
10226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10229 ;;
10230 esac
10231 fi
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_shlibpath_var=no
10234 case $host_os in
10235 solaris2.[0-5] | solaris2.[0-5].*) ;;
10236 *)
10237 # The compiler driver will combine and reorder linker options,
10238 # but understands `-z linker_flag'. GCC discards it without `$wl',
10239 # but is careful enough not to reorder.
10240 # Supported since Solaris 2.6 (maybe 2.5.1?)
10241 if test "$GCC" = yes; then
10242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10243 else
10244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10245 fi
10246 ;;
10247 esac
10248 link_all_deplibs=yes
10249 ;;
d7040cdb 10250
ce2cded5
L
10251 sunos4*)
10252 if test "x$host_vendor" = xsequent; then
10253 # Use $CC to link under sequent, because it throws in some extra .o
10254 # files that make .init and .fini sections work.
10255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10256 else
10257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10258 fi
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_direct=yes
10261 hardcode_minus_L=yes
10262 hardcode_shlibpath_var=no
10263 ;;
d7040cdb 10264
ce2cded5
L
10265 sysv4)
10266 case $host_vendor in
10267 sni)
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_direct=yes # is this really true???
10270 ;;
10271 siemens)
10272 ## LD is ld it makes a PLAMLIB
10273 ## CC just makes a GrossModule.
10274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10275 reload_cmds='$CC -r -o $output$reload_objs'
10276 hardcode_direct=no
10277 ;;
10278 motorola)
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10281 ;;
10282 esac
10283 runpath_var='LD_RUN_PATH'
10284 hardcode_shlibpath_var=no
10285 ;;
d7040cdb 10286
ce2cded5
L
10287 sysv4.3*)
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_shlibpath_var=no
10290 export_dynamic_flag_spec='-Bexport'
10291 ;;
d7040cdb 10292
ce2cded5
L
10293 sysv4*MP*)
10294 if test -d /usr/nec; then
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 runpath_var=LD_RUN_PATH
10298 hardcode_runpath_var=yes
10299 ld_shlibs=yes
10300 fi
10301 ;;
d7040cdb 10302
ce2cded5
L
10303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10304 no_undefined_flag='${wl}-z,text'
10305 archive_cmds_need_lc=no
10306 hardcode_shlibpath_var=no
10307 runpath_var='LD_RUN_PATH'
d7040cdb 10308
ce2cded5
L
10309 if test "$GCC" = yes; then
10310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 else
10313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 fi
10316 ;;
d7040cdb 10317
ce2cded5
L
10318 sysv5* | sco3.2v5* | sco5v6*)
10319 # Note: We can NOT use -z defs as we might desire, because we do not
10320 # link with -lc, and that would cause any symbols used from libc to
10321 # always be unresolved, which means just about no library would
10322 # ever link correctly. If we're not using GNU ld we use -z text
10323 # though, which does catch some bad symbols but isn't as heavy-handed
10324 # as -z defs.
10325 no_undefined_flag='${wl}-z,text'
10326 allow_undefined_flag='${wl}-z,nodefs'
10327 archive_cmds_need_lc=no
10328 hardcode_shlibpath_var=no
10329 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10330 hardcode_libdir_separator=':'
10331 link_all_deplibs=yes
10332 export_dynamic_flag_spec='${wl}-Bexport'
10333 runpath_var='LD_RUN_PATH'
d7040cdb 10334
ce2cded5
L
10335 if test "$GCC" = yes; then
10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 else
10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 fi
10342 ;;
d7040cdb 10343
ce2cded5
L
10344 uts4*)
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_shlibpath_var=no
10348 ;;
d7040cdb 10349
ce2cded5
L
10350 *)
10351 ld_shlibs=no
10352 ;;
10353 esac
d7040cdb 10354
ce2cded5
L
10355 if test x$host_vendor = xsni; then
10356 case $host in
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10358 export_dynamic_flag_spec='${wl}-Blargedynsym'
10359 ;;
10360 esac
10361 fi
10362 fi
d7040cdb 10363
81ecdfbb
RW
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10365$as_echo "$ld_shlibs" >&6; }
ce2cded5 10366test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10367
ce2cded5 10368with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
ce2cded5
L
10384#
10385# Do we need to explicitly link libc?
10386#
10387case "x$archive_cmds_need_lc" in
10388x|xyes)
10389 # Assume -lc should be added
10390 archive_cmds_need_lc=yes
d7040cdb 10391
ce2cded5
L
10392 if test "$enable_shared" = yes && test "$GCC" = yes; then
10393 case $archive_cmds in
10394 *'~'*)
10395 # FIXME: we may have to deal with multi-command sequences.
10396 ;;
10397 '$CC '*)
10398 # Test whether the compiler implicitly links with -lc since on some
10399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10400 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10402$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10403if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
39144654
RW
10405else
10406 $RM conftest*
10407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10408
81ecdfbb 10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10410 (eval $ac_compile) 2>&5
10411 ac_status=$?
81ecdfbb
RW
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10414 soname=conftest
10415 lib=conftest
10416 libobjs=conftest.$ac_objext
10417 deplibs=
10418 wl=$lt_prog_compiler_wl
10419 pic_flag=$lt_prog_compiler_pic
10420 compiler_flags=-v
10421 linker_flags=-v
10422 verstring=
10423 output_objdir=.
10424 libname=conftest
10425 lt_save_allow_undefined_flag=$allow_undefined_flag
10426 allow_undefined_flag=
81ecdfbb 10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10429 ac_status=$?
81ecdfbb
RW
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; }
39144654
RW
10432 then
10433 lt_cv_archive_cmds_need_lc=no
10434 else
10435 lt_cv_archive_cmds_need_lc=yes
10436 fi
10437 allow_undefined_flag=$lt_save_allow_undefined_flag
10438 else
10439 cat conftest.err 1>&5
10440 fi
10441 $RM conftest*
10442
10443fi
81ecdfbb
RW
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10445$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10447 ;;
10448 esac
10449 fi
10450 ;;
10451esac
d7040cdb
SE
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
d7040cdb 10479
d7040cdb 10480
d7040cdb
SE
10481
10482
10483
10484
10485
10486
d7040cdb 10487
d7040cdb 10488
d7040cdb 10489
d7040cdb 10490
d7040cdb 10491
d7040cdb 10492
d7040cdb 10493
d7040cdb 10494
d7040cdb 10495
d7040cdb 10496
d7040cdb 10497
d7040cdb 10498
d7040cdb 10499
d7040cdb 10500
d7040cdb 10501
d7040cdb 10502
d7040cdb 10503
d7040cdb 10504
d7040cdb 10505
d7040cdb 10506
d7040cdb 10507
d7040cdb 10508
d7040cdb 10509
d7040cdb 10510
d7040cdb 10511
d7040cdb 10512
d7040cdb 10513
d7040cdb 10514
ce2cded5
L
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
81ecdfbb
RW
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10610$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10611
10612if test "$GCC" = yes; then
ce2cded5
L
10613 case $host_os in
10614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10615 *) lt_awk_arg="/^libraries:/" ;;
10616 esac
3725885a
RW
10617 case $host_os in
10618 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10619 *) lt_sed_strip_eq="s,=/,/,g" ;;
10620 esac
10621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10622 case $lt_search_path_spec in
10623 *\;*)
ce2cded5
L
10624 # if the path contains ";" then we assume it to be the separator
10625 # otherwise default to the standard path separator (i.e. ":") - it is
10626 # assumed that no part of a normal pathname contains ";" but that should
10627 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10629 ;;
10630 *)
10631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10632 ;;
10633 esac
ce2cded5
L
10634 # Ok, now we have the path, separated by spaces, we can step through it
10635 # and add multilib dir if necessary.
10636 lt_tmp_lt_search_path_spec=
10637 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10638 for lt_sys_path in $lt_search_path_spec; do
10639 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10641 else
10642 test -d "$lt_sys_path" && \
10643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10644 fi
10645 done
3725885a 10646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10647BEGIN {RS=" "; FS="/|\n";} {
10648 lt_foo="";
10649 lt_count=0;
10650 for (lt_i = NF; lt_i > 0; lt_i--) {
10651 if ($lt_i != "" && $lt_i != ".") {
10652 if ($lt_i == "..") {
10653 lt_count++;
10654 } else {
10655 if (lt_count == 0) {
10656 lt_foo="/" $lt_i lt_foo;
10657 } else {
10658 lt_count--;
10659 }
10660 }
10661 }
10662 }
10663 if (lt_foo != "") { lt_freq[lt_foo]++; }
10664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10665}'`
3725885a
RW
10666 # AWK program above erroneously prepends '/' to C:/dos/paths
10667 # for these hosts.
10668 case $host_os in
10669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10670 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10671 esac
10672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10673else
ce2cded5
L
10674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10675fi
10676library_names_spec=
10677libname_spec='lib$name'
10678soname_spec=
10679shrext_cmds=".so"
10680postinstall_cmds=
10681postuninstall_cmds=
10682finish_cmds=
10683finish_eval=
10684shlibpath_var=
10685shlibpath_overrides_runpath=unknown
10686version_type=none
10687dynamic_linker="$host_os ld.so"
10688sys_lib_dlsearch_path_spec="/lib /usr/lib"
10689need_lib_prefix=unknown
10690hardcode_into_libs=no
10691
10692# when you set need_version to no, make sure it does not cause -set_version
10693# flags to be left without arguments
10694need_version=unknown
10695
10696case $host_os in
10697aix3*)
10698 version_type=linux
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10700 shlibpath_var=LIBPATH
10701
10702 # AIX 3 has no versioning support, so we append a major version to the name.
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 ;;
10705
50e7d84b 10706aix[4-9]*)
ce2cded5
L
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 hardcode_into_libs=yes
10711 if test "$host_cpu" = ia64; then
10712 # AIX 5 supports IA64
10713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 else
10716 # With GCC up to 2.95.x, collect2 would create an import file
10717 # for dependence libraries. The import file would start with
10718 # the line `#! .'. This would cause the generated library to
10719 # depend on `.', always an invalid library. This was fixed in
10720 # development snapshots of GCC prior to 3.0.
10721 case $host_os in
10722 aix4 | aix4.[01] | aix4.[01].*)
10723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10724 echo ' yes '
10725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10726 :
10727 else
10728 can_build_shared=no
10729 fi
10730 ;;
10731 esac
10732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10733 # soname into executable. Probably we can add versioning support to
10734 # collect2, so additional links can be useful in future.
10735 if test "$aix_use_runtimelinking" = yes; then
10736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10737 # instead of lib<name>.a to let people know that these are not
10738 # typical AIX shared libraries.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 else
10741 # We preserve .a as extension for shared libraries through AIX4.2
10742 # and later when we are not doing run time linking.
10743 library_names_spec='${libname}${release}.a $libname.a'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 fi
10746 shlibpath_var=LIBPATH
10747 fi
10748 ;;
10749
10750amigaos*)
b214d478
SE
10751 case $host_cpu in
10752 powerpc)
10753 # Since July 2007 AmigaOS4 officially supports .so libraries.
10754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 ;;
10757 m68k)
ce2cded5
L
10758 library_names_spec='$libname.ixlibrary $libname.a'
10759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10760 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
b214d478
SE
10761 ;;
10762 esac
ce2cded5
L
10763 ;;
10764
10765beos*)
10766 library_names_spec='${libname}${shared_ext}'
10767 dynamic_linker="$host_os ld.so"
10768 shlibpath_var=LIBRARY_PATH
10769 ;;
10770
10771bsdi[45]*)
10772 version_type=linux
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10780 # the default ld.so.conf also contains /usr/contrib/lib and
10781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10782 # libtool to hard-code these into programs
10783 ;;
10784
b214d478 10785cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10786 version_type=windows
10787 shrext_cmds=".dll"
10788 need_version=no
10789 need_lib_prefix=no
10790
b214d478
SE
10791 case $GCC,$host_os in
10792 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10793 library_names_spec='$libname.dll.a'
10794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10795 postinstall_cmds='base_file=`basename \${file}`~
10796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10797 dldir=$destdir/`dirname \$dlpath`~
10798 test -d \$dldir || mkdir -p \$dldir~
10799 $install_prog $dir/$dlname \$dldir/$dlname~
10800 chmod a+x \$dldir/$dlname~
10801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10803 fi'
10804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10805 dlpath=$dir/\$dldll~
10806 $RM \$dlpath'
10807 shlibpath_overrides_runpath=yes
10808
10809 case $host_os in
10810 cygwin*)
10811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10813
10814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10815 ;;
b214d478 10816 mingw* | cegcc*)
ce2cded5
L
10817 # MinGW DLLs use traditional 'lib' prefix
10818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10819 ;;
10820 pw32*)
10821 # pw32 DLLs use 'pw' prefix rather than 'lib'
10822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823 ;;
10824 esac
10825 ;;
10826
10827 *)
10828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10829 ;;
10830 esac
10831 dynamic_linker='Win32 ld.exe'
10832 # FIXME: first we should search . and the directory the executable is in
10833 shlibpath_var=PATH
10834 ;;
10835
10836darwin* | rhapsody*)
10837 dynamic_linker="$host_os dyld"
10838 version_type=darwin
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842 soname_spec='${libname}${release}${major}$shared_ext'
10843 shlibpath_overrides_runpath=yes
10844 shlibpath_var=DYLD_LIBRARY_PATH
10845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10846
10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10849 ;;
10850
10851dgux*)
10852 version_type=linux
10853 need_lib_prefix=no
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 ;;
10859
ce2cded5
L
10860freebsd* | dragonfly*)
10861 # DragonFly does not have aout. When/if they implement a new
10862 # versioning mechanism, adjust this.
10863 if test -x /usr/bin/objformat; then
10864 objformat=`/usr/bin/objformat`
10865 else
10866 case $host_os in
6d2920c8 10867 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10868 *) objformat=elf ;;
10869 esac
10870 fi
10871 version_type=freebsd-$objformat
10872 case $version_type in
10873 freebsd-elf*)
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10875 need_version=no
10876 need_lib_prefix=no
10877 ;;
10878 freebsd-*)
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10880 need_version=yes
10881 ;;
10882 esac
10883 shlibpath_var=LD_LIBRARY_PATH
10884 case $host_os in
6d2920c8 10885 freebsd2.*)
ce2cded5
L
10886 shlibpath_overrides_runpath=yes
10887 ;;
10888 freebsd3.[01]* | freebsdelf3.[01]*)
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10891 ;;
10892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 ;;
10897 *) # from 4.6 on, and DragonFly
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 ;;
10901 esac
10902 ;;
10903
10904gnu*)
10905 version_type=linux
10906 need_lib_prefix=no
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 hardcode_into_libs=yes
10912 ;;
10913
3725885a
RW
10914haiku*)
10915 version_type=linux
10916 need_lib_prefix=no
10917 need_version=no
10918 dynamic_linker="$host_os runtime_loader"
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10924 hardcode_into_libs=yes
10925 ;;
10926
ce2cded5
L
10927hpux9* | hpux10* | hpux11*)
10928 # Give a soname corresponding to the major version so that dld.sl refuses to
10929 # link against other versions.
10930 version_type=sunos
10931 need_lib_prefix=no
10932 need_version=no
10933 case $host_cpu in
10934 ia64*)
10935 shrext_cmds='.so'
10936 hardcode_into_libs=yes
10937 dynamic_linker="$host_os dld.so"
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 if test "X$HPUX_IA64_MODE" = X32; then
10943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10944 else
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10946 fi
10947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10948 ;;
10949 hppa*64*)
10950 shrext_cmds='.sl'
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959 ;;
10960 *)
10961 shrext_cmds='.sl'
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 ;;
10968 esac
3725885a 10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10970 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
ce2cded5
L
10973 ;;
10974
10975interix[3-9]*)
10976 version_type=linux
10977 need_lib_prefix=no
10978 need_version=no
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10985 ;;
10986
10987irix5* | irix6* | nonstopux*)
10988 case $host_os in
10989 nonstopux*) version_type=nonstopux ;;
10990 *)
10991 if test "$lt_cv_prog_gnu_ld" = yes; then
10992 version_type=linux
10993 else
10994 version_type=irix
10995 fi ;;
10996 esac
10997 need_lib_prefix=no
10998 need_version=no
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11001 case $host_os in
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11004 ;;
11005 *)
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11014 esac
11015 ;;
11016 esac
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
11019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11021 hardcode_into_libs=yes
11022 ;;
11023
11024# No shared lib support for Linux oldld, aout, or coff.
11025linux*oldld* | linux*aout* | linux*coff*)
11026 dynamic_linker=no
11027 ;;
11028
11029# This must be Linux ELF.
58e24671 11030linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11031 version_type=linux
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
39144654 11039
ce2cded5 11040 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11041 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
39144654
RW
11043else
11044 lt_cv_shlibpath_overrides_runpath=no
11045 save_LDFLAGS=$LDFLAGS
11046 save_libdir=$libdir
11047 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11050/* end confdefs.h. */
11051
d7040cdb
SE
11052int
11053main ()
11054{
ce2cded5 11055
d7040cdb
SE
11056 ;
11057 return 0;
11058}
11059_ACEOF
81ecdfbb
RW
11060if ac_fn_c_try_link "$LINENO"; then :
11061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11062 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11063fi
d7040cdb 11064fi
81ecdfbb
RW
11065rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11067 LDFLAGS=$save_LDFLAGS
11068 libdir=$save_libdir
11069
11070fi
11071
11072 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11073
ce2cded5
L
11074 # This implies no fast_install, which is unacceptable.
11075 # Some rework will be needed to allow for fast_install
11076 # before this can be enabled.
11077 hardcode_into_libs=yes
d7040cdb 11078
ce2cded5
L
11079 # Append ld.so.conf contents to the search path
11080 if test -f /etc/ld.so.conf; then
3725885a 11081 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;s/"//g;/^$/d' | tr '\n' ' '`
ce2cded5
L
11082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11083 fi
d7040cdb 11084
ce2cded5
L
11085 # We used to test for /lib/ld.so.1 and disable shared libraries on
11086 # powerpc, because MkLinux only supported shared libraries with the
11087 # GNU dynamic linker. Since this was broken with cross compilers,
11088 # most powerpc-linux boxes support dynamic linking these days and
11089 # people can always --disable-shared, the test was removed, and we
11090 # assume the GNU/Linux dynamic linker is in use.
11091 dynamic_linker='GNU/Linux ld.so'
11092 ;;
d7040cdb 11093
ce2cded5
L
11094netbsd*)
11095 version_type=sunos
11096 need_lib_prefix=no
11097 need_version=no
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101 dynamic_linker='NetBSD (a.out) ld.so'
11102 else
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='NetBSD ld.elf_so'
11106 fi
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11110 ;;
d7040cdb 11111
ce2cded5
L
11112newsos6)
11113 version_type=linux
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 ;;
d7040cdb 11118
ce2cded5
L
11119*nto* | *qnx*)
11120 version_type=qnx
11121 need_lib_prefix=no
11122 need_version=no
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 dynamic_linker='ldqnx.so'
11129 ;;
d7040cdb 11130
ce2cded5
L
11131openbsd*)
11132 version_type=sunos
11133 sys_lib_dlsearch_path_spec="/usr/lib"
11134 need_lib_prefix=no
11135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11136 case $host_os in
11137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11138 *) need_version=no ;;
11139 esac
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11144 case $host_os in
11145 openbsd2.[89] | openbsd2.[89].*)
11146 shlibpath_overrides_runpath=no
11147 ;;
11148 *)
11149 shlibpath_overrides_runpath=yes
11150 ;;
11151 esac
11152 else
11153 shlibpath_overrides_runpath=yes
11154 fi
11155 ;;
d7040cdb 11156
ce2cded5
L
11157os2*)
11158 libname_spec='$name'
11159 shrext_cmds=".dll"
11160 need_lib_prefix=no
11161 library_names_spec='$libname${shared_ext} $libname.a'
11162 dynamic_linker='OS/2 ld.exe'
11163 shlibpath_var=LIBPATH
11164 ;;
d7040cdb 11165
ce2cded5
L
11166osf3* | osf4* | osf5*)
11167 version_type=osf
11168 need_lib_prefix=no
11169 need_version=no
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11175 ;;
d7040cdb 11176
ce2cded5
L
11177rdos*)
11178 dynamic_linker=no
11179 ;;
d7040cdb 11180
ce2cded5
L
11181solaris*)
11182 version_type=linux
11183 need_lib_prefix=no
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 # ldd complains unless libraries are executable
11191 postinstall_cmds='chmod +x $lib'
11192 ;;
d7040cdb 11193
ce2cded5
L
11194sunos4*)
11195 version_type=sunos
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 if test "$with_gnu_ld" = yes; then
11201 need_lib_prefix=no
11202 fi
11203 need_version=yes
11204 ;;
d7040cdb 11205
ce2cded5
L
11206sysv4 | sysv4.3*)
11207 version_type=linux
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 case $host_vendor in
11212 sni)
11213 shlibpath_overrides_runpath=no
11214 need_lib_prefix=no
11215 runpath_var=LD_RUN_PATH
11216 ;;
11217 siemens)
11218 need_lib_prefix=no
11219 ;;
11220 motorola)
11221 need_lib_prefix=no
11222 need_version=no
11223 shlibpath_overrides_runpath=no
11224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11225 ;;
11226 esac
11227 ;;
d7040cdb 11228
ce2cded5
L
11229sysv4*MP*)
11230 if test -d /usr/nec ;then
11231 version_type=linux
11232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11233 soname_spec='$libname${shared_ext}.$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 fi
11236 ;;
d7040cdb 11237
ce2cded5
L
11238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11239 version_type=freebsd-elf
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11247 if test "$with_gnu_ld" = yes; then
11248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11249 else
11250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11251 case $host_os in
11252 sco3.2v5*)
11253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11254 ;;
11255 esac
11256 fi
11257 sys_lib_dlsearch_path_spec='/usr/lib'
11258 ;;
d7040cdb 11259
ce2cded5
L
11260tpf*)
11261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11262 version_type=linux
11263 need_lib_prefix=no
11264 need_version=no
b214d478 11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=no
11268 hardcode_into_libs=yes
11269 ;;
d7040cdb 11270
ce2cded5
L
11271uts4*)
11272 version_type=linux
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 ;;
d7040cdb 11277
ce2cded5
L
11278*)
11279 dynamic_linker=no
11280 ;;
11281esac
81ecdfbb
RW
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11283$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11284test "$dynamic_linker" = no && can_build_shared=no
11285
11286variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11287if test "$GCC" = yes; then
11288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11289fi
11290
b214d478
SE
11291if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11293fi
11294if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11296fi
11297
d7040cdb
SE
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
d7040cdb 11309
d7040cdb 11310
d7040cdb 11311
d7040cdb 11312
d7040cdb
SE
11313
11314
11315
11316
d7040cdb 11317
d7040cdb
SE
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
d7040cdb
SE
11331
11332
11333
11334
d7040cdb
SE
11335
11336
11337
11338
d7040cdb 11339
d7040cdb 11340
d7040cdb 11341
d7040cdb 11342
d7040cdb 11343
d7040cdb 11344
d7040cdb 11345
d7040cdb
SE
11346
11347
11348
11349
11350
d7040cdb 11351
d7040cdb 11352
d7040cdb 11353
d7040cdb 11354
d7040cdb 11355
d7040cdb 11356
d7040cdb
SE
11357
11358
11359
11360
11361
d7040cdb
SE
11362
11363
d7040cdb 11364
d7040cdb 11365
d7040cdb 11366
d7040cdb 11367
ce2cded5
L
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
3725885a
RW
11378
11379
11380
11381
11382
ce2cded5
L
11383
11384
11385
11386
11387
11388
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11390$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11391hardcode_action=
11392if test -n "$hardcode_libdir_flag_spec" ||
11393 test -n "$runpath_var" ||
11394 test "X$hardcode_automatic" = "Xyes" ; then
11395
11396 # We can hardcode non-existent directories.
11397 if test "$hardcode_direct" != no &&
11398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399 # have to relink, otherwise we might link with an installed library
11400 # when we should be linking with a yet-to-be-installed one
11401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11402 test "$hardcode_minus_L" != no; then
11403 # Linking always hardcodes the temporary library directory.
11404 hardcode_action=relink
11405 else
11406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407 hardcode_action=immediate
d7040cdb 11408 fi
d7040cdb 11409else
ce2cded5
L
11410 # We cannot hardcode anything, or else we can only hardcode existing
11411 # directories.
11412 hardcode_action=unsupported
d7040cdb 11413fi
81ecdfbb
RW
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11415$as_echo "$hardcode_action" >&6; }
d7040cdb 11416
ce2cded5
L
11417if test "$hardcode_action" = relink ||
11418 test "$inherit_rpath" = yes; then
11419 # Fast installation is not supported
11420 enable_fast_install=no
11421elif test "$shlibpath_overrides_runpath" = yes ||
11422 test "$enable_shared" = no; then
11423 # Fast installation is not necessary
11424 enable_fast_install=needless
d7040cdb
SE
11425fi
11426
d7040cdb 11427
d7040cdb 11428
d7040cdb 11429
d7040cdb 11430
d7040cdb 11431
ce2cded5
L
11432 if test "x$enable_dlopen" != xyes; then
11433 enable_dlopen=unknown
11434 enable_dlopen_self=unknown
11435 enable_dlopen_self_static=unknown
d7040cdb 11436else
ce2cded5
L
11437 lt_cv_dlopen=no
11438 lt_cv_dlopen_libs=
d7040cdb 11439
ce2cded5
L
11440 case $host_os in
11441 beos*)
11442 lt_cv_dlopen="load_add_on"
11443 lt_cv_dlopen_libs=
11444 lt_cv_dlopen_self=yes
11445 ;;
d7040cdb 11446
b214d478 11447 mingw* | pw32* | cegcc*)
ce2cded5
L
11448 lt_cv_dlopen="LoadLibrary"
11449 lt_cv_dlopen_libs=
11450 ;;
11451
11452 cygwin*)
11453 lt_cv_dlopen="dlopen"
11454 lt_cv_dlopen_libs=
11455 ;;
11456
11457 darwin*)
11458 # if libdl is installed we need to link against it
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460$as_echo_n "checking for dlopen in -ldl... " >&6; }
11461if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
d7040cdb 11463else
ce2cded5
L
11464 ac_check_lib_save_LIBS=$LIBS
11465LIBS="-ldl $LIBS"
81ecdfbb 11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11467/* end confdefs.h. */
11468
81ecdfbb
RW
11469/* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
ce2cded5
L
11472#ifdef __cplusplus
11473extern "C"
11474#endif
ce2cded5
L
11475char dlopen ();
11476int
11477main ()
11478{
81ecdfbb 11479return dlopen ();
ce2cded5
L
11480 ;
11481 return 0;
11482}
11483_ACEOF
81ecdfbb 11484if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11485 ac_cv_lib_dl_dlopen=yes
11486else
81ecdfbb 11487 ac_cv_lib_dl_dlopen=no
d7040cdb 11488fi
81ecdfbb
RW
11489rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11491LIBS=$ac_check_lib_save_LIBS
d7040cdb 11492fi
81ecdfbb
RW
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11497else
d7040cdb 11498
ce2cded5
L
11499 lt_cv_dlopen="dyld"
11500 lt_cv_dlopen_libs=
11501 lt_cv_dlopen_self=yes
11502
d7040cdb 11503fi
ce2cded5
L
11504
11505 ;;
11506
11507 *)
81ecdfbb
RW
11508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11510 lt_cv_dlopen="shl_load"
11511else
81ecdfbb
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513$as_echo_n "checking for shl_load in -ldld... " >&6; }
11514if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
ce2cded5
L
11516else
11517 ac_check_lib_save_LIBS=$LIBS
11518LIBS="-ldld $LIBS"
81ecdfbb 11519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11520/* end confdefs.h. */
d7040cdb 11521
81ecdfbb
RW
11522/* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
ce2cded5
L
11525#ifdef __cplusplus
11526extern "C"
11527#endif
ce2cded5
L
11528char shl_load ();
11529int
11530main ()
11531{
81ecdfbb 11532return shl_load ();
ce2cded5
L
11533 ;
11534 return 0;
11535}
11536_ACEOF
81ecdfbb 11537if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11538 ac_cv_lib_dld_shl_load=yes
11539else
81ecdfbb 11540 ac_cv_lib_dld_shl_load=no
ce2cded5 11541fi
81ecdfbb
RW
11542rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11544LIBS=$ac_check_lib_save_LIBS
11545fi
81ecdfbb
RW
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11550else
81ecdfbb
RW
11551 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11553 lt_cv_dlopen="dlopen"
11554else
81ecdfbb
RW
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556$as_echo_n "checking for dlopen in -ldl... " >&6; }
11557if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
d7040cdb 11559else
ce2cded5
L
11560 ac_check_lib_save_LIBS=$LIBS
11561LIBS="-ldl $LIBS"
81ecdfbb 11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11563/* end confdefs.h. */
11564
81ecdfbb
RW
11565/* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
ce2cded5
L
11568#ifdef __cplusplus
11569extern "C"
11570#endif
ce2cded5 11571char dlopen ();
d7040cdb
SE
11572int
11573main ()
11574{
81ecdfbb 11575return dlopen ();
d7040cdb
SE
11576 ;
11577 return 0;
11578}
11579_ACEOF
81ecdfbb 11580if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11581 ac_cv_lib_dl_dlopen=yes
d7040cdb 11582else
81ecdfbb 11583 ac_cv_lib_dl_dlopen=no
d7040cdb 11584fi
81ecdfbb
RW
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11587LIBS=$ac_check_lib_save_LIBS
d7040cdb 11588fi
81ecdfbb
RW
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11593else
81ecdfbb
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
d7040cdb 11598else
ce2cded5
L
11599 ac_check_lib_save_LIBS=$LIBS
11600LIBS="-lsvld $LIBS"
81ecdfbb 11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11602/* end confdefs.h. */
d7040cdb 11603
81ecdfbb
RW
11604/* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
ce2cded5
L
11607#ifdef __cplusplus
11608extern "C"
11609#endif
ce2cded5 11610char dlopen ();
d7040cdb
SE
11611int
11612main ()
11613{
81ecdfbb 11614return dlopen ();
d7040cdb
SE
11615 ;
11616 return 0;
11617}
11618_ACEOF
81ecdfbb 11619if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11620 ac_cv_lib_svld_dlopen=yes
d7040cdb 11621else
81ecdfbb 11622 ac_cv_lib_svld_dlopen=no
d7040cdb 11623fi
81ecdfbb
RW
11624rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11626LIBS=$ac_check_lib_save_LIBS
d7040cdb 11627fi
81ecdfbb
RW
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11632else
81ecdfbb
RW
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634$as_echo_n "checking for dld_link in -ldld... " >&6; }
11635if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
ce2cded5
L
11637else
11638 ac_check_lib_save_LIBS=$LIBS
11639LIBS="-ldld $LIBS"
81ecdfbb 11640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11641/* end confdefs.h. */
11642
81ecdfbb
RW
11643/* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
ce2cded5
L
11646#ifdef __cplusplus
11647extern "C"
11648#endif
ce2cded5 11649char dld_link ();
d7040cdb
SE
11650int
11651main ()
11652{
81ecdfbb 11653return dld_link ();
d7040cdb
SE
11654 ;
11655 return 0;
11656}
11657_ACEOF
81ecdfbb 11658if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11659 ac_cv_lib_dld_dld_link=yes
d7040cdb 11660else
81ecdfbb 11661 ac_cv_lib_dld_dld_link=no
d7040cdb 11662fi
81ecdfbb
RW
11663rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11665LIBS=$ac_check_lib_save_LIBS
11666fi
81ecdfbb
RW
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11670 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11671fi
11672
11673
11674fi
11675
11676
11677fi
11678
11679
11680fi
11681
11682
11683fi
11684
11685
11686fi
11687
11688 ;;
11689 esac
11690
11691 if test "x$lt_cv_dlopen" != xno; then
11692 enable_dlopen=yes
11693 else
11694 enable_dlopen=no
11695 fi
11696
11697 case $lt_cv_dlopen in
11698 dlopen)
11699 save_CPPFLAGS="$CPPFLAGS"
11700 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11701
11702 save_LDFLAGS="$LDFLAGS"
11703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11704
11705 save_LIBS="$LIBS"
11706 LIBS="$lt_cv_dlopen_libs $LIBS"
11707
81ecdfbb
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710if test "${lt_cv_dlopen_self+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
ce2cded5
L
11712else
11713 if test "$cross_compiling" = yes; then :
11714 lt_cv_dlopen_self=cross
11715else
11716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717 lt_status=$lt_dlunknown
11718 cat > conftest.$ac_ext <<_LT_EOF
4894d80b 11719#line 11719 "configure"
ce2cded5
L
11720#include "confdefs.h"
11721
11722#if HAVE_DLFCN_H
11723#include <dlfcn.h>
11724#endif
11725
11726#include <stdio.h>
11727
11728#ifdef RTLD_GLOBAL
11729# define LT_DLGLOBAL RTLD_GLOBAL
11730#else
11731# ifdef DL_GLOBAL
11732# define LT_DLGLOBAL DL_GLOBAL
11733# else
11734# define LT_DLGLOBAL 0
11735# endif
11736#endif
11737
11738/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739 find out it does not work in some platform. */
11740#ifndef LT_DLLAZY_OR_NOW
11741# ifdef RTLD_LAZY
11742# define LT_DLLAZY_OR_NOW RTLD_LAZY
11743# else
11744# ifdef DL_LAZY
11745# define LT_DLLAZY_OR_NOW DL_LAZY
11746# else
11747# ifdef RTLD_NOW
11748# define LT_DLLAZY_OR_NOW RTLD_NOW
11749# else
11750# ifdef DL_NOW
11751# define LT_DLLAZY_OR_NOW DL_NOW
11752# else
11753# define LT_DLLAZY_OR_NOW 0
11754# endif
11755# endif
11756# endif
11757# endif
11758#endif
11759
3725885a
RW
11760/* When -fvisbility=hidden is used, assume the code has been annotated
11761 correspondingly for the symbols needed. */
11762#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763void fnord () __attribute__((visibility("default")));
11764#endif
11765
11766void fnord () { int i=42; }
ce2cded5 11767int main ()
d7040cdb 11768{
ce2cded5
L
11769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770 int status = $lt_dlunknown;
11771
11772 if (self)
11773 {
11774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11775 else
11776 {
11777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 else puts (dlerror ());
11779 }
ce2cded5
L
11780 /* dlclose (self); */
11781 }
11782 else
11783 puts (dlerror ());
11784
b214d478 11785 return status;
d7040cdb 11786}
ce2cded5 11787_LT_EOF
81ecdfbb 11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11789 (eval $ac_link) 2>&5
d7040cdb 11790 ac_status=$?
81ecdfbb
RW
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11793 (./conftest; exit; ) >&5 2>/dev/null
11794 lt_status=$?
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11799 esac
11800 else :
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11803 fi
11804fi
11805rm -fr conftest*
11806
11807
11808fi
81ecdfbb
RW
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11811
11812 if test "x$lt_cv_dlopen_self" = xyes; then
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816if test "${lt_cv_dlopen_self_static+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
ce2cded5
L
11818else
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self_static=cross
11821else
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<_LT_EOF
4894d80b 11825#line 11825 "configure"
ce2cded5
L
11826#include "confdefs.h"
11827
11828#if HAVE_DLFCN_H
11829#include <dlfcn.h>
11830#endif
11831
11832#include <stdio.h>
11833
11834#ifdef RTLD_GLOBAL
11835# define LT_DLGLOBAL RTLD_GLOBAL
11836#else
11837# ifdef DL_GLOBAL
11838# define LT_DLGLOBAL DL_GLOBAL
11839# else
11840# define LT_DLGLOBAL 0
11841# endif
11842#endif
11843
11844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846#ifndef LT_DLLAZY_OR_NOW
11847# ifdef RTLD_LAZY
11848# define LT_DLLAZY_OR_NOW RTLD_LAZY
11849# else
11850# ifdef DL_LAZY
11851# define LT_DLLAZY_OR_NOW DL_LAZY
11852# else
11853# ifdef RTLD_NOW
11854# define LT_DLLAZY_OR_NOW RTLD_NOW
11855# else
11856# ifdef DL_NOW
11857# define LT_DLLAZY_OR_NOW DL_NOW
11858# else
11859# define LT_DLLAZY_OR_NOW 0
11860# endif
11861# endif
11862# endif
11863# endif
11864#endif
11865
3cb62297
L
11866/* When -fvisbility=hidden is used, assume the code has been annotated
11867 correspondingly for the symbols needed. */
11868#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869void fnord () __attribute__((visibility("default")));
11870#endif
11871
11872void fnord () { int i=42; }
11873int main ()
11874{
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11877
11878 if (self)
11879 {
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11881 else
11882 {
11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 else puts (dlerror ());
11885 }
11886 /* dlclose (self); */
11887 }
11888 else
11889 puts (dlerror ());
11890
11891 return status;
11892}
11893_LT_EOF
11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895 (eval $ac_link) 2>&5
11896 ac_status=$?
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11899 (./conftest; exit; ) >&5 2>/dev/null
11900 lt_status=$?
11901 case x$lt_status in
11902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11905 esac
11906 else :
11907 # compilation failed
11908 lt_cv_dlopen_self_static=no
11909 fi
11910fi
11911rm -fr conftest*
11912
11913
11914fi
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916$as_echo "$lt_cv_dlopen_self_static" >&6; }
11917 fi
11918
11919 CPPFLAGS="$save_CPPFLAGS"
11920 LDFLAGS="$save_LDFLAGS"
11921 LIBS="$save_LIBS"
11922 ;;
11923 esac
11924
11925 case $lt_cv_dlopen_self in
11926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927 *) enable_dlopen_self=unknown ;;
11928 esac
11929
11930 case $lt_cv_dlopen_self_static in
11931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932 *) enable_dlopen_self_static=unknown ;;
11933 esac
11934fi
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952striplib=
11953old_striplib=
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960$as_echo "yes" >&6; }
11961else
11962# FIXME - insert some real tests, host_os isn't really good enough
11963 case $host_os in
11964 darwin*)
11965 if test -n "$STRIP" ; then
11966 striplib="$STRIP -x"
11967 old_striplib="$STRIP -S"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969$as_echo "yes" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
11973 fi
11974 ;;
11975 *)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
11978 ;;
11979 esac
11980fi
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 # Report which library types will actually be built
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997$as_echo "$can_build_shared" >&6; }
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000$as_echo_n "checking whether to build shared libraries... " >&6; }
12001 test "$can_build_shared" = "no" && enable_shared=no
12002
12003 # On AIX, shared libraries and static libraries use the same namespace, and
12004 # are all built from PIC.
12005 case $host_os in
12006 aix3*)
12007 test "$enable_shared" = yes && enable_static=no
12008 if test -n "$RANLIB"; then
12009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010 postinstall_cmds='$RANLIB $lib'
12011 fi
12012 ;;
12013
12014 aix[4-9]*)
12015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12016 test "$enable_shared" = yes && enable_static=no
12017 fi
12018 ;;
12019 esac
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021$as_echo "$enable_shared" >&6; }
12022
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024$as_echo_n "checking whether to build static libraries... " >&6; }
12025 # Make sure either enable_shared or enable_static is yes.
12026 test "$enable_shared" = yes || enable_static=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028$as_echo "$enable_static" >&6; }
12029
12030
12031
12032
12033fi
12034ac_ext=c
12035ac_cpp='$CPP $CPPFLAGS'
12036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039
12040CC="$lt_save_CC"
12041
12042 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12043 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12044 (test "X$CXX" != "Xg++"))) ; then
12045 ac_ext=cpp
12046ac_cpp='$CXXCPP $CPPFLAGS'
12047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12051$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12052if test -z "$CXXCPP"; then
12053 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055else
12056 # Double quotes because CXXCPP needs to be expanded
12057 for CXXCPP in "$CXX -E" "/lib/cpp"
12058 do
12059 ac_preproc_ok=false
12060for ac_cxx_preproc_warn_flag in '' yes
12061do
12062 # Use a header file that comes with gcc, so configuring glibc
12063 # with a fresh cross-compiler works.
12064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 # <limits.h> exists even on freestanding compilers.
12066 # On the NeXT, cc -E runs the code through the compiler's parser,
12067 # not just through cpp. "Syntax error" is here to catch this case.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h. */
12070#ifdef __STDC__
12071# include <limits.h>
12072#else
12073# include <assert.h>
12074#endif
12075 Syntax error
12076_ACEOF
12077if ac_fn_cxx_try_cpp "$LINENO"; then :
12078
12079else
12080 # Broken: fails on valid input.
12081continue
12082fi
12083rm -f conftest.err conftest.$ac_ext
12084
12085 # OK, works on sane cases. Now check whether nonexistent headers
12086 # can be detected and how.
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088/* end confdefs.h. */
12089#include <ac_nonexistent.h>
12090_ACEOF
12091if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: success on invalid input.
12093continue
12094else
12095 # Passes both tests.
12096ac_preproc_ok=:
12097break
12098fi
12099rm -f conftest.err conftest.$ac_ext
12100
12101done
12102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103rm -f conftest.err conftest.$ac_ext
12104if $ac_preproc_ok; then :
12105 break
12106fi
12107
12108 done
12109 ac_cv_prog_CXXCPP=$CXXCPP
12110
12111fi
12112 CXXCPP=$ac_cv_prog_CXXCPP
12113else
12114 ac_cv_prog_CXXCPP=$CXXCPP
12115fi
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12117$as_echo "$CXXCPP" >&6; }
12118ac_preproc_ok=false
12119for ac_cxx_preproc_warn_flag in '' yes
12120do
12121 # Use a header file that comes with gcc, so configuring glibc
12122 # with a fresh cross-compiler works.
12123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124 # <limits.h> exists even on freestanding compilers.
12125 # On the NeXT, cc -E runs the code through the compiler's parser,
12126 # not just through cpp. "Syntax error" is here to catch this case.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128/* end confdefs.h. */
12129#ifdef __STDC__
12130# include <limits.h>
12131#else
12132# include <assert.h>
12133#endif
12134 Syntax error
12135_ACEOF
12136if ac_fn_cxx_try_cpp "$LINENO"; then :
12137
12138else
12139 # Broken: fails on valid input.
12140continue
12141fi
12142rm -f conftest.err conftest.$ac_ext
12143
12144 # OK, works on sane cases. Now check whether nonexistent headers
12145 # can be detected and how.
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h. */
12148#include <ac_nonexistent.h>
12149_ACEOF
12150if ac_fn_cxx_try_cpp "$LINENO"; then :
12151 # Broken: success on invalid input.
12152continue
12153else
12154 # Passes both tests.
12155ac_preproc_ok=:
12156break
12157fi
12158rm -f conftest.err conftest.$ac_ext
12159
12160done
12161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12162rm -f conftest.err conftest.$ac_ext
12163if $ac_preproc_ok; then :
12164
12165else
12166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12168as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12169See \`config.log' for more details." "$LINENO" 5; }
12170fi
12171
12172ac_ext=c
12173ac_cpp='$CPP $CPPFLAGS'
12174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178else
12179 _lt_caught_CXX_error=yes
12180fi
12181
12182ac_ext=cpp
12183ac_cpp='$CXXCPP $CPPFLAGS'
12184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12187
12188archive_cmds_need_lc_CXX=no
12189allow_undefined_flag_CXX=
12190always_export_symbols_CXX=no
12191archive_expsym_cmds_CXX=
12192compiler_needs_object_CXX=no
12193export_dynamic_flag_spec_CXX=
12194hardcode_direct_CXX=no
12195hardcode_direct_absolute_CXX=no
12196hardcode_libdir_flag_spec_CXX=
12197hardcode_libdir_flag_spec_ld_CXX=
12198hardcode_libdir_separator_CXX=
12199hardcode_minus_L_CXX=no
12200hardcode_shlibpath_var_CXX=unsupported
12201hardcode_automatic_CXX=no
12202inherit_rpath_CXX=no
12203module_cmds_CXX=
12204module_expsym_cmds_CXX=
12205link_all_deplibs_CXX=unknown
12206old_archive_cmds_CXX=$old_archive_cmds
12207reload_flag_CXX=$reload_flag
12208reload_cmds_CXX=$reload_cmds
12209no_undefined_flag_CXX=
12210whole_archive_flag_spec_CXX=
12211enable_shared_with_static_runtimes_CXX=no
12212
12213# Source file extension for C++ test sources.
12214ac_ext=cpp
12215
12216# Object file extension for compiled C++ test sources.
12217objext=o
12218objext_CXX=$objext
12219
12220# No sense in running all these tests if we already determined that
12221# the CXX compiler isn't working. Some variables (like enable_shared)
12222# are currently assumed to apply to all compilers on this platform,
12223# and will be corrupted by setting them based on a non-working compiler.
12224if test "$_lt_caught_CXX_error" != yes; then
12225 # Code to be used in simple compile tests
12226 lt_simple_compile_test_code="int some_variable = 0;"
12227
12228 # Code to be used in simple link tests
12229 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12230
12231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12232
12233
12234
12235
12236
12237
12238# If no C compiler was specified, use CC.
12239LTCC=${LTCC-"$CC"}
12240
12241# If no C compiler flags were specified, use CFLAGS.
12242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12243
12244# Allow CC to be a program name with arguments.
12245compiler=$CC
12246
12247
12248 # save warnings/boilerplate of simple test code
12249 ac_outfile=conftest.$ac_objext
12250echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252_lt_compiler_boilerplate=`cat conftest.err`
12253$RM conftest*
12254
12255 ac_outfile=conftest.$ac_objext
12256echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258_lt_linker_boilerplate=`cat conftest.err`
12259$RM -r conftest*
12260
12261
12262 # Allow CC to be a program name with arguments.
12263 lt_save_CC=$CC
12264 lt_save_LD=$LD
12265 lt_save_GCC=$GCC
12266 GCC=$GXX
12267 lt_save_with_gnu_ld=$with_gnu_ld
12268 lt_save_path_LD=$lt_cv_path_LD
12269 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12270 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12271 else
12272 $as_unset lt_cv_prog_gnu_ld
12273 fi
12274 if test -n "${lt_cv_path_LDCXX+set}"; then
12275 lt_cv_path_LD=$lt_cv_path_LDCXX
12276 else
12277 $as_unset lt_cv_path_LD
12278 fi
12279 test -z "${LDCXX+set}" || LD=$LDCXX
12280 CC=${CXX-"c++"}
12281 compiler=$CC
12282 compiler_CXX=$CC
12283 for cc_temp in $compiler""; do
12284 case $cc_temp in
12285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12287 \-*) ;;
12288 *) break;;
12289 esac
12290done
12291cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12292
12293
12294 if test -n "$compiler"; then
12295 # We don't want -fno-exception when compiling C++ code, so set the
12296 # no_builtin_flag separately
12297 if test "$GXX" = yes; then
12298 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12299 else
12300 lt_prog_compiler_no_builtin_flag_CXX=
12301 fi
12302
12303 if test "$GXX" = yes; then
12304 # Set up default GNU C++ configuration
12305
12306
12307
12308# Check whether --with-gnu-ld was given.
12309if test "${with_gnu_ld+set}" = set; then :
12310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12311else
12312 with_gnu_ld=no
12313fi
12314
12315ac_prog=ld
12316if test "$GCC" = yes; then
12317 # Check if gcc -print-prog-name=ld gives a path.
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12319$as_echo_n "checking for ld used by $CC... " >&6; }
12320 case $host in
12321 *-*-mingw*)
12322 # gcc leaves a trailing carriage return which upsets mingw
12323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12324 *)
12325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12326 esac
12327 case $ac_prog in
12328 # Accept absolute paths.
12329 [\\/]* | ?:[\\/]*)
12330 re_direlt='/[^/][^/]*/\.\./'
12331 # Canonicalize the pathname of ld
12332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12335 done
12336 test -z "$LD" && LD="$ac_prog"
12337 ;;
12338 "")
12339 # If it fails, then pretend we aren't using GCC.
12340 ac_prog=ld
12341 ;;
12342 *)
12343 # If it is relative, then search for the first ld in PATH.
12344 with_gnu_ld=unknown
12345 ;;
12346 esac
12347elif test "$with_gnu_ld" = yes; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12349$as_echo_n "checking for GNU ld... " >&6; }
12350else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12352$as_echo_n "checking for non-GNU ld... " >&6; }
12353fi
12354if test "${lt_cv_path_LD+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356else
12357 if test -z "$LD"; then
12358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12359 for ac_dir in $PATH; do
12360 IFS="$lt_save_ifs"
12361 test -z "$ac_dir" && ac_dir=.
12362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12363 lt_cv_path_LD="$ac_dir/$ac_prog"
12364 # Check to see if the program is GNU ld. I'd rather use --version,
12365 # but apparently some variants of GNU ld only accept -v.
12366 # Break only if it was the GNU/non-GNU ld that we prefer.
12367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12368 *GNU* | *'with BFD'*)
12369 test "$with_gnu_ld" != no && break
12370 ;;
12371 *)
12372 test "$with_gnu_ld" != yes && break
12373 ;;
12374 esac
12375 fi
12376 done
12377 IFS="$lt_save_ifs"
12378else
12379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12380fi
12381fi
12382
12383LD="$lt_cv_path_LD"
12384if test -n "$LD"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12386$as_echo "$LD" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12393$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12394if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396else
12397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12398case `$LD -v 2>&1 </dev/null` in
12399*GNU* | *'with BFD'*)
12400 lt_cv_prog_gnu_ld=yes
12401 ;;
12402*)
12403 lt_cv_prog_gnu_ld=no
12404 ;;
12405esac
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12408$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12409with_gnu_ld=$lt_cv_prog_gnu_ld
12410
12411
12412
12413
12414
12415
12416
12417 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12418 # archiving commands below assume that GNU ld is being used.
12419 if test "$with_gnu_ld" = yes; then
6e733cce
L
12420 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3cb62297
L
12422
12423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12425
12426 # If archive_cmds runs LD, not CC, wlarc should be empty
12427 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12428 # investigate it a little bit more. (MM)
12429 wlarc='${wl}'
12430
12431 # ancient GNU ld didn't support --whole-archive et. al.
12432 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12433 $GREP 'no-whole-archive' > /dev/null; then
12434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12435 else
12436 whole_archive_flag_spec_CXX=
12437 fi
12438 else
12439 with_gnu_ld=no
12440 wlarc=
12441
12442 # A generic and very simple default shared library creation
12443 # command for GNU C++ for the case where it uses the native
12444 # linker, instead of GNU ld. If possible, this setting should
12445 # overridden to take advantage of the native linker features on
12446 # the platform it is being used on.
12447 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12448 fi
12449
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12454
12455 else
12456 GXX=no
12457 with_gnu_ld=no
12458 wlarc=
12459 fi
12460
12461 # PORTME: fill in a description of your system's C++ link characteristics
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12464 ld_shlibs_CXX=yes
12465 case $host_os in
12466 aix3*)
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12469 ;;
12470 aix[4-9]*)
12471 if test "$host_cpu" = ia64; then
12472 # On IA64, the linker does run time linking by default, so we don't
12473 # have to do anything special.
12474 aix_use_runtimelinking=no
12475 exp_sym_flag='-Bexport'
12476 no_entry_flag=""
12477 else
12478 aix_use_runtimelinking=no
12479
12480 # Test if we are trying to use run time linking or normal
12481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12482 # need to do runtime linking.
12483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12484 for ld_flag in $LDFLAGS; do
12485 case $ld_flag in
12486 *-brtl*)
12487 aix_use_runtimelinking=yes
12488 break
12489 ;;
12490 esac
12491 done
12492 ;;
12493 esac
12494
12495 exp_sym_flag='-bexport'
12496 no_entry_flag='-bnoentry'
12497 fi
12498
12499 # When large executables or shared objects are built, AIX ld can
12500 # have problems creating the table of contents. If linking a library
12501 # or program results in "error TOC overflow" add -mminimal-toc to
12502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12504
12505 archive_cmds_CXX=''
12506 hardcode_direct_CXX=yes
12507 hardcode_direct_absolute_CXX=yes
12508 hardcode_libdir_separator_CXX=':'
12509 link_all_deplibs_CXX=yes
12510 file_list_spec_CXX='${wl}-f,'
12511
12512 if test "$GXX" = yes; then
12513 case $host_os in aix4.[012]|aix4.[012].*)
12514 # We only want to do this on AIX 4.2 and lower, the check
12515 # below for broken collect2 doesn't work under 4.3+
12516 collect2name=`${CC} -print-prog-name=collect2`
12517 if test -f "$collect2name" &&
12518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12519 then
12520 # We have reworked collect2
12521 :
12522 else
12523 # We have old collect2
12524 hardcode_direct_CXX=unsupported
12525 # It fails to find uninstalled libraries when the uninstalled
12526 # path is not listed in the libpath. Setting hardcode_minus_L
12527 # to unsupported forces relinking
12528 hardcode_minus_L_CXX=yes
12529 hardcode_libdir_flag_spec_CXX='-L$libdir'
12530 hardcode_libdir_separator_CXX=
12531 fi
12532 esac
12533 shared_flag='-shared'
12534 if test "$aix_use_runtimelinking" = yes; then
12535 shared_flag="$shared_flag "'${wl}-G'
12536 fi
12537 else
12538 # not using gcc
12539 if test "$host_cpu" = ia64; then
12540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12541 # chokes on -Wl,-G. The following line is correct:
12542 shared_flag='-G'
12543 else
12544 if test "$aix_use_runtimelinking" = yes; then
12545 shared_flag='${wl}-G'
12546 else
12547 shared_flag='${wl}-bM:SRE'
12548 fi
12549 fi
12550 fi
12551
12552 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12553 # It seems that -bexpall does not export symbols beginning with
12554 # underscore (_), so it is better to generate a list of symbols to
12555 # export.
12556 always_export_symbols_CXX=yes
12557 if test "$aix_use_runtimelinking" = yes; then
12558 # Warning - without using the other runtime loading flags (-brtl),
12559 # -berok will link without error, but may produce a broken library.
12560 allow_undefined_flag_CXX='-berok'
12561 # Determine the default libpath from the value encoded in an empty
12562 # executable.
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565
12566int
12567main ()
12568{
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574if ac_fn_cxx_try_link "$LINENO"; then :
12575
12576lt_aix_libpath_sed='
12577 /Import File Strings/,/^$/ {
12578 /^0/ {
12579 s/^0 *\(.*\)$/\1/
12580 p
12581 }
12582 }'
12583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12584# Check for a 64-bit object if we didn't find anything.
12585if test -z "$aix_libpath"; then
12586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12587fi
12588fi
12589rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12592
12593 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12594
12595 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12596 else
12597 if test "$host_cpu" = ia64; then
12598 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12599 allow_undefined_flag_CXX="-z nodefs"
12600 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"
12601 else
12602 # Determine the default libpath from the value encoded in an
12603 # empty executable.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h. */
12606
12607int
12608main ()
12609{
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615if ac_fn_cxx_try_link "$LINENO"; then :
12616
12617lt_aix_libpath_sed='
12618 /Import File Strings/,/^$/ {
12619 /^0/ {
12620 s/^0 *\(.*\)$/\1/
12621 p
12622 }
12623 }'
12624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625# Check for a 64-bit object if we didn't find anything.
12626if test -z "$aix_libpath"; then
12627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628fi
12629fi
12630rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12633
12634 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12635 # Warning - without using the other run time loading flags,
12636 # -berok will link without error, but may produce a broken library.
12637 no_undefined_flag_CXX=' ${wl}-bernotok'
12638 allow_undefined_flag_CXX=' ${wl}-berok'
12639 if test "$with_gnu_ld" = yes; then
12640 # We only use this code for GNU lds that support --whole-archive.
12641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12642 else
12643 # Exported symbols can be pulled into shared objects from archives
12644 whole_archive_flag_spec_CXX='$convenience'
12645 fi
12646 archive_cmds_need_lc_CXX=yes
12647 # This is similar to how AIX traditionally builds its shared
12648 # libraries.
12649 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'
12650 fi
12651 fi
12652 ;;
12653
12654 beos*)
12655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12656 allow_undefined_flag_CXX=unsupported
12657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12658 # support --undefined. This deserves some investigation. FIXME
12659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12660 else
12661 ld_shlibs_CXX=no
12662 fi
12663 ;;
12664
12665 chorus*)
12666 case $cc_basename in
12667 *)
12668 # FIXME: insert proper C++ library support
12669 ld_shlibs_CXX=no
12670 ;;
12671 esac
12672 ;;
12673
12674 cygwin* | mingw* | pw32* | cegcc*)
12675 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12676 # as there is no search path for DLLs.
12677 hardcode_libdir_flag_spec_CXX='-L$libdir'
12678 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12679 allow_undefined_flag_CXX=unsupported
12680 always_export_symbols_CXX=no
12681 enable_shared_with_static_runtimes_CXX=yes
12682
12683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12684 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'
12685 # If the export-symbols file already is a .def file (1st line
12686 # is EXPORTS), use it as is; otherwise, prepend...
12687 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12688 cp $export_symbols $output_objdir/$soname.def;
12689 else
12690 echo EXPORTS > $output_objdir/$soname.def;
12691 cat $export_symbols >> $output_objdir/$soname.def;
12692 fi~
12693 $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'
12694 else
12695 ld_shlibs_CXX=no
12696 fi
12697 ;;
12698 darwin* | rhapsody*)
12699
12700
12701 archive_cmds_need_lc_CXX=no
12702 hardcode_direct_CXX=no
12703 hardcode_automatic_CXX=yes
12704 hardcode_shlibpath_var_CXX=unsupported
12705 if test "$lt_cv_ld_force_load" = "yes"; then
12706 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12707 else
12708 whole_archive_flag_spec_CXX=''
12709 fi
12710 link_all_deplibs_CXX=yes
12711 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12712 case $cc_basename in
12713 ifort*) _lt_dar_can_shared=yes ;;
12714 *) _lt_dar_can_shared=$GCC ;;
12715 esac
12716 if test "$_lt_dar_can_shared" = "yes"; then
12717 output_verbose_link_cmd=func_echo_all
12718 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}"
12719 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12720 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}"
12721 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}"
12722 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12723 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}"
12724 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}"
12725 fi
12726
12727 else
12728 ld_shlibs_CXX=no
12729 fi
12730
12731 ;;
12732
12733 dgux*)
12734 case $cc_basename in
12735 ec++*)
12736 # FIXME: insert proper C++ library support
12737 ld_shlibs_CXX=no
12738 ;;
12739 ghcx*)
12740 # Green Hills C++ Compiler
12741 # FIXME: insert proper C++ library support
12742 ld_shlibs_CXX=no
12743 ;;
12744 *)
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748 esac
12749 ;;
12750
6d2920c8 12751 freebsd2.*)
3cb62297
L
12752 # C++ shared libraries reported to be fairly broken before
12753 # switch to ELF
12754 ld_shlibs_CXX=no
12755 ;;
12756
12757 freebsd-elf*)
12758 archive_cmds_need_lc_CXX=no
12759 ;;
12760
12761 freebsd* | dragonfly*)
12762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12763 # conventions
12764 ld_shlibs_CXX=yes
12765 ;;
12766
12767 gnu*)
12768 ;;
12769
12770 haiku*)
12771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772 link_all_deplibs_CXX=yes
12773 ;;
12774
12775 hpux9*)
12776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_CXX=:
12778 export_dynamic_flag_spec_CXX='${wl}-E'
12779 hardcode_direct_CXX=yes
12780 hardcode_minus_L_CXX=yes # Not in the search PATH,
12781 # but as the default
12782 # location of the library.
12783
12784 case $cc_basename in
12785 CC*)
12786 # FIXME: insert proper C++ library support
12787 ld_shlibs_CXX=no
12788 ;;
12789 aCC*)
12790 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'
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12794 #
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12798 # dependencies.
12799 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; func_echo_all "$list"'
12800 ;;
12801 *)
12802 if test "$GXX" = yes; then
12803 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'
12804 else
12805 # FIXME: insert proper C++ library support
12806 ld_shlibs_CXX=no
12807 fi
12808 ;;
12809 esac
12810 ;;
12811
12812 hpux10*|hpux11*)
12813 if test $with_gnu_ld = no; then
12814 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_separator_CXX=:
12816
12817 case $host_cpu in
12818 hppa*64*|ia64*)
12819 ;;
12820 *)
12821 export_dynamic_flag_spec_CXX='${wl}-E'
12822 ;;
12823 esac
12824 fi
12825 case $host_cpu in
12826 hppa*64*|ia64*)
12827 hardcode_direct_CXX=no
12828 hardcode_shlibpath_var_CXX=no
12829 ;;
12830 *)
12831 hardcode_direct_CXX=yes
12832 hardcode_direct_absolute_CXX=yes
12833 hardcode_minus_L_CXX=yes # Not in the search PATH,
12834 # but as the default
12835 # location of the library.
12836 ;;
12837 esac
12838
12839 case $cc_basename in
12840 CC*)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
12844 aCC*)
12845 case $host_cpu in
12846 hppa*64*)
12847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12848 ;;
12849 ia64*)
12850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12851 ;;
12852 *)
12853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12854 ;;
12855 esac
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12859 #
12860 # There doesn't appear to be a way to prevent this compiler from
12861 # explicitly linking system object files so we need to strip them
12862 # from the output so that they don't get included in the library
12863 # dependencies.
12864 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; func_echo_all "$list"'
12865 ;;
12866 *)
12867 if test "$GXX" = yes; then
12868 if test $with_gnu_ld = no; then
12869 case $host_cpu in
12870 hppa*64*)
12871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872 ;;
12873 ia64*)
12874 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12875 ;;
12876 *)
12877 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'
12878 ;;
12879 esac
12880 fi
12881 else
12882 # FIXME: insert proper C++ library support
12883 ld_shlibs_CXX=no
12884 fi
12885 ;;
12886 esac
12887 ;;
12888
12889 interix[3-9]*)
12890 hardcode_direct_CXX=no
12891 hardcode_shlibpath_var_CXX=no
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}-E'
12894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12895 # Instead, shared libraries are loaded at an image base (0x10000000 by
12896 # default) and relocated if they conflict, which is a slow very memory
12897 # consuming and fragmenting process. To avoid this, we pick a random,
12898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12900 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'
12901 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'
12902 ;;
12903 irix5* | irix6*)
12904 case $cc_basename in
12905 CC*)
12906 # SGI C++
12907 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12908
12909 # Archives containing C++ object files must be created using
12910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12911 # necessary to make sure instantiated templates are included
12912 # in the archive.
12913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12914 ;;
12915 *)
12916 if test "$GXX" = yes; then
12917 if test "$with_gnu_ld" = no; then
12918 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12919 else
12920 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12921 fi
12922 fi
12923 link_all_deplibs_CXX=yes
12924 ;;
12925 esac
12926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator_CXX=:
12928 inherit_rpath_CXX=yes
12929 ;;
12930
12931 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12932 case $cc_basename in
12933 KCC*)
12934 # Kuck and Associates, Inc. (KAI) C++ Compiler
12935
12936 # KCC will only create a shared library if the output file
12937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12938 # to its proper name (with version) after linking.
12939 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'
12940 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'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12944 #
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12948 # dependencies.
12949 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; func_echo_all "$list"'
12950
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12953
12954 # Archives containing C++ object files must be created using
12955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12957 ;;
12958 icpc* | ecpc* )
12959 # Intel C++
12960 with_gnu_ld=yes
12961 # version 8.0 and above of icpc choke on multiply defined symbols
12962 # if we add $predep_objects and $postdep_objects, however 7.1 and
12963 # earlier do not add the objects themselves.
12964 case `$CC -V 2>&1` in
12965 *"Version 7."*)
12966 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967 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'
12968 ;;
12969 *) # Version 8.0 or newer
12970 tmp_idyn=
12971 case $host_cpu in
12972 ia64*) tmp_idyn=' -i_dynamic';;
12973 esac
12974 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 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'
12976 ;;
12977 esac
12978 archive_cmds_need_lc_CXX=no
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12982 ;;
12983 pgCC* | pgcpp*)
12984 # Portland Group C++ compiler
12985 case `$CC -V` in
12986 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12987 prelink_cmds_CXX='tpldir=Template.dir~
12988 rm -rf $tpldir~
12989 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12990 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12991 old_archive_cmds_CXX='tpldir=Template.dir~
12992 rm -rf $tpldir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12994 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12995 $RANLIB $oldlib'
12996 archive_cmds_CXX='tpldir=Template.dir~
12997 rm -rf $tpldir~
12998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13000 archive_expsym_cmds_CXX='tpldir=Template.dir~
13001 rm -rf $tpldir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $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'
13004 ;;
13005 *) # Version 6 and above use weak symbols
13006 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 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'
13008 ;;
13009 esac
13010
13011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13014 ;;
13015 cxx*)
13016 # Compaq C++
13017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 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'
13019
13020 runpath_var=LD_RUN_PATH
13021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13022 hardcode_libdir_separator_CXX=:
13023
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13027 #
13028 # There doesn't appear to be a way to prevent this compiler from
13029 # explicitly linking system object files so we need to strip them
13030 # from the output so that they don't get included in the library
13031 # dependencies.
13032 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13033 ;;
13034 xl* | mpixl* | bgxl*)
13035 # IBM XL 8.0 on PPC, with GNU ld
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 if test "x$supports_anon_versioning" = xyes; then
13040 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13042 echo "local: *; };" >> $output_objdir/$libname.ver~
13043 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13044 fi
13045 ;;
13046 *)
13047 case `$CC -V 2>&1 | sed 5q` in
13048 *Sun\ C*)
13049 # Sun C++ 5.9
13050 no_undefined_flag_CXX=' -zdefs'
13051 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13052 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'
13053 hardcode_libdir_flag_spec_CXX='-R$libdir'
13054 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13055 compiler_needs_object_CXX=yes
13056
13057 # Not sure whether something based on
13058 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13059 # would be better.
13060 output_verbose_link_cmd='func_echo_all'
13061
13062 # Archives containing C++ object files must be created using
13063 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13064 # necessary to make sure instantiated templates are included
13065 # in the archive.
13066 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13067 ;;
13068 esac
13069 ;;
13070 esac
13071 ;;
13072
13073 lynxos*)
13074 # FIXME: insert proper C++ library support
13075 ld_shlibs_CXX=no
13076 ;;
13077
13078 m88k*)
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13081 ;;
13082
13083 mvs*)
13084 case $cc_basename in
13085 cxx*)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089 *)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093 esac
13094 ;;
13095
13096 netbsd*)
13097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13098 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13099 wlarc=
13100 hardcode_libdir_flag_spec_CXX='-R$libdir'
13101 hardcode_direct_CXX=yes
13102 hardcode_shlibpath_var_CXX=no
13103 fi
13104 # Workaround some broken pre-1.5 toolchains
13105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13106 ;;
13107
13108 *nto* | *qnx*)
13109 ld_shlibs_CXX=yes
13110 ;;
13111
13112 openbsd2*)
13113 # C++ shared libraries are fairly broken
13114 ld_shlibs_CXX=no
13115 ;;
13116
13117 openbsd*)
13118 if test -f /usr/libexec/ld.so; then
13119 hardcode_direct_CXX=yes
13120 hardcode_shlibpath_var_CXX=no
13121 hardcode_direct_absolute_CXX=yes
13122 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13127 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13128 fi
13129 output_verbose_link_cmd=func_echo_all
13130 else
13131 ld_shlibs_CXX=no
13132 fi
13133 ;;
13134
13135 osf3* | osf4* | osf5*)
13136 case $cc_basename in
13137 KCC*)
13138 # Kuck and Associates, Inc. (KAI) C++ Compiler
13139
13140 # KCC will only create a shared library if the output file
13141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13142 # to its proper name (with version) after linking.
13143 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'
13144
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 hardcode_libdir_separator_CXX=:
13147
13148 # Archives containing C++ object files must be created using
13149 # the KAI C++ compiler.
13150 case $host in
13151 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13152 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13153 esac
13154 ;;
13155 RCC*)
13156 # Rational C++ 2.4.1
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 ;;
13160 cxx*)
13161 case $host in
13162 osf3*)
13163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13164 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13166 ;;
13167 *)
13168 allow_undefined_flag_CXX=' -expect_unresolved \*'
13169 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13171 echo "-hidden">> $lib.exp~
13172 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13173 $RM $lib.exp'
13174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13175 ;;
13176 esac
13177
13178 hardcode_libdir_separator_CXX=:
13179
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13183 #
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13187 # dependencies.
13188 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13189 ;;
13190 *)
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13193 case $host in
13194 osf3*)
13195 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13196 ;;
13197 *)
13198 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13199 ;;
13200 esac
13201
13202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13203 hardcode_libdir_separator_CXX=:
13204
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13209
13210 else
13211 # FIXME: insert proper C++ library support
13212 ld_shlibs_CXX=no
13213 fi
13214 ;;
13215 esac
13216 ;;
13217
13218 psos*)
13219 # FIXME: insert proper C++ library support
13220 ld_shlibs_CXX=no
13221 ;;
13222
13223 sunos4*)
13224 case $cc_basename in
13225 CC*)
13226 # Sun C++ 4.x
13227 # FIXME: insert proper C++ library support
13228 ld_shlibs_CXX=no
13229 ;;
13230 lcc*)
13231 # Lucid
13232 # FIXME: insert proper C++ library support
13233 ld_shlibs_CXX=no
13234 ;;
13235 *)
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13238 ;;
13239 esac
13240 ;;
13241
13242 solaris*)
13243 case $cc_basename in
13244 CC*)
13245 # Sun C++ 4.2, 5.x and Centerline C++
13246 archive_cmds_need_lc_CXX=yes
13247 no_undefined_flag_CXX=' -zdefs'
13248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250 $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'
13251
13252 hardcode_libdir_flag_spec_CXX='-R$libdir'
13253 hardcode_shlibpath_var_CXX=no
13254 case $host_os in
13255 solaris2.[0-5] | solaris2.[0-5].*) ;;
13256 *)
13257 # The compiler driver will combine and reorder linker options,
13258 # but understands `-z linker_flag'.
13259 # Supported since Solaris 2.6 (maybe 2.5.1?)
13260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13261 ;;
13262 esac
13263 link_all_deplibs_CXX=yes
13264
13265 output_verbose_link_cmd='func_echo_all'
13266
13267 # Archives containing C++ object files must be created using
13268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13269 # necessary to make sure instantiated templates are included
13270 # in the archive.
13271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13272 ;;
13273 gcx*)
13274 # Green Hills C++ Compiler
13275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13276
13277 # The C++ compiler must be used to create the archive.
13278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13279 ;;
13280 *)
13281 # GNU C++ compiler with Solaris linker
13282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13284 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13286 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13288
13289 # Commands to make compiler produce verbose output that lists
13290 # what "hidden" libraries, object files and flags are used when
13291 # linking a shared library.
13292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13293 else
13294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13295 # platform.
13296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13299
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13303 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13304 fi
13305
13306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13307 case $host_os in
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13309 *)
13310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13311 ;;
13312 esac
13313 fi
13314 ;;
13315 esac
13316 ;;
13317
13318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13319 no_undefined_flag_CXX='${wl}-z,text'
13320 archive_cmds_need_lc_CXX=no
13321 hardcode_shlibpath_var_CXX=no
13322 runpath_var='LD_RUN_PATH'
13323
13324 case $cc_basename in
13325 CC*)
13326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 ;;
13329 *)
13330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 esac
13334 ;;
13335
13336 sysv5* | sco3.2v5* | sco5v6*)
13337 # Note: We can NOT use -z defs as we might desire, because we do not
13338 # link with -lc, and that would cause any symbols used from libc to
13339 # always be unresolved, which means just about no library would
13340 # ever link correctly. If we're not using GNU ld we use -z text
13341 # though, which does catch some bad symbols but isn't as heavy-handed
13342 # as -z defs.
13343 no_undefined_flag_CXX='${wl}-z,text'
13344 allow_undefined_flag_CXX='${wl}-z,nodefs'
13345 archive_cmds_need_lc_CXX=no
13346 hardcode_shlibpath_var_CXX=no
13347 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13348 hardcode_libdir_separator_CXX=':'
13349 link_all_deplibs_CXX=yes
13350 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13351 runpath_var='LD_RUN_PATH'
13352
13353 case $cc_basename in
13354 CC*)
13355 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13358 '"$old_archive_cmds_CXX"
13359 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13360 '"$reload_cmds_CXX"
13361 ;;
13362 *)
13363 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 ;;
13366 esac
13367 ;;
13368
13369 tandem*)
13370 case $cc_basename in
13371 NCC*)
13372 # NonStop-UX NCC 3.20
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13375 ;;
13376 *)
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13379 ;;
13380 esac
13381 ;;
13382
13383 vxworks*)
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13386 ;;
13387
13388 *)
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13391 ;;
13392 esac
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13395$as_echo "$ld_shlibs_CXX" >&6; }
13396 test "$ld_shlibs_CXX" = no && can_build_shared=no
13397
13398 GCC_CXX="$GXX"
13399 LD_CXX="$LD"
13400
13401 ## CAVEAT EMPTOR:
13402 ## There is no encapsulation within the following macros, do not change
13403 ## the running order or otherwise move them around unless you know exactly
13404 ## what you are doing...
13405 # Dependencies to place before and after the object being linked:
13406predep_objects_CXX=
13407postdep_objects_CXX=
13408predeps_CXX=
13409postdeps_CXX=
13410compiler_lib_search_path_CXX=
13411
13412cat > conftest.$ac_ext <<_LT_EOF
13413class Foo
13414{
13415public:
13416 Foo (void) { a = 0; }
13417private:
13418 int a;
13419};
13420_LT_EOF
13421
13422if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423 (eval $ac_compile) 2>&5
13424 ac_status=$?
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; }; then
13427 # Parse the compiler output and extract the necessary
13428 # objects, libraries and library flags.
13429
13430 # Sentinel used to keep track of whether or not we are before
13431 # the conftest object file.
13432 pre_test_object_deps_done=no
13433
13434 for p in `eval "$output_verbose_link_cmd"`; do
13435 case $p in
13436
13437 -L* | -R* | -l*)
13438 # Some compilers place space between "-{L,R}" and the path.
13439 # Remove the space.
13440 if test $p = "-L" ||
13441 test $p = "-R"; then
13442 prev=$p
13443 continue
13444 else
13445 prev=
13446 fi
13447
13448 if test "$pre_test_object_deps_done" = no; then
13449 case $p in
13450 -L* | -R*)
13451 # Internal compiler library paths should come after those
13452 # provided the user. The postdeps already come after the
13453 # user supplied libs so there is no need to process them.
13454 if test -z "$compiler_lib_search_path_CXX"; then
13455 compiler_lib_search_path_CXX="${prev}${p}"
13456 else
13457 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13458 fi
13459 ;;
13460 # The "-l" case would never come before the object being
13461 # linked, so don't bother handling this case.
13462 esac
13463 else
13464 if test -z "$postdeps_CXX"; then
13465 postdeps_CXX="${prev}${p}"
13466 else
13467 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13468 fi
13469 fi
13470 ;;
13471
13472 *.$objext)
13473 # This assumes that the test object file only shows up
13474 # once in the compiler output.
13475 if test "$p" = "conftest.$objext"; then
13476 pre_test_object_deps_done=yes
13477 continue
13478 fi
13479
13480 if test "$pre_test_object_deps_done" = no; then
13481 if test -z "$predep_objects_CXX"; then
13482 predep_objects_CXX="$p"
13483 else
13484 predep_objects_CXX="$predep_objects_CXX $p"
13485 fi
13486 else
13487 if test -z "$postdep_objects_CXX"; then
13488 postdep_objects_CXX="$p"
13489 else
13490 postdep_objects_CXX="$postdep_objects_CXX $p"
13491 fi
13492 fi
13493 ;;
13494
13495 *) ;; # Ignore the rest.
13496
13497 esac
13498 done
13499
13500 # Clean up.
13501 rm -f a.out a.exe
13502else
13503 echo "libtool.m4: error: problem compiling CXX test program"
13504fi
13505
13506$RM -f confest.$objext
13507
13508# PORTME: override above test on systems where it is broken
13509case $host_os in
13510interix[3-9]*)
13511 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13512 # hack all around it, let's just trust "g++" to DTRT.
13513 predep_objects_CXX=
13514 postdep_objects_CXX=
13515 postdeps_CXX=
13516 ;;
13517
13518linux*)
13519 case `$CC -V 2>&1 | sed 5q` in
13520 *Sun\ C*)
13521 # Sun C++ 5.9
13522
13523 # The more standards-conforming stlport4 library is
13524 # incompatible with the Cstd library. Avoid specifying
13525 # it if it's in CXXFLAGS. Ignore libCrun as
13526 # -library=stlport4 depends on it.
13527 case " $CXX $CXXFLAGS " in
13528 *" -library=stlport4 "*)
13529 solaris_use_stlport4=yes
13530 ;;
13531 esac
13532
13533 if test "$solaris_use_stlport4" != yes; then
13534 postdeps_CXX='-library=Cstd -library=Crun'
13535 fi
13536 ;;
13537 esac
13538 ;;
13539
13540solaris*)
13541 case $cc_basename in
13542 CC*)
13543 # The more standards-conforming stlport4 library is
13544 # incompatible with the Cstd library. Avoid specifying
13545 # it if it's in CXXFLAGS. Ignore libCrun as
13546 # -library=stlport4 depends on it.
13547 case " $CXX $CXXFLAGS " in
13548 *" -library=stlport4 "*)
13549 solaris_use_stlport4=yes
13550 ;;
13551 esac
13552
13553 # Adding this requires a known-good setup of shared libraries for
13554 # Sun compiler versions before 5.6, else PIC objects from an old
13555 # archive will be linked into the output, leading to subtle bugs.
13556 if test "$solaris_use_stlport4" != yes; then
13557 postdeps_CXX='-library=Cstd -library=Crun'
13558 fi
13559 ;;
13560 esac
13561 ;;
13562esac
13563
13564
13565case " $postdeps_CXX " in
13566*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13567esac
13568 compiler_lib_search_dirs_CXX=
13569if test -n "${compiler_lib_search_path_CXX}"; then
13570 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13571fi
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603 lt_prog_compiler_wl_CXX=
13604lt_prog_compiler_pic_CXX=
13605lt_prog_compiler_static_CXX=
13606
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13608$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13609
13610 # C++ specific cases for pic, static, wl, etc.
13611 if test "$GXX" = yes; then
13612 lt_prog_compiler_wl_CXX='-Wl,'
13613 lt_prog_compiler_static_CXX='-static'
13614
13615 case $host_os in
13616 aix*)
13617 # All AIX code is PIC.
13618 if test "$host_cpu" = ia64; then
13619 # AIX 5 now supports IA64 processor
13620 lt_prog_compiler_static_CXX='-Bstatic'
13621 fi
52204357 13622 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13623 ;;
13624
13625 amigaos*)
13626 case $host_cpu in
13627 powerpc)
13628 # see comment about AmigaOS4 .so support
13629 lt_prog_compiler_pic_CXX='-fPIC'
13630 ;;
13631 m68k)
13632 # FIXME: we need at least 68020 code to build shared libraries, but
13633 # adding the `-m68020' flag to GCC prevents building anything better,
13634 # like `-m68040'.
13635 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13636 ;;
13637 esac
13638 ;;
13639
13640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13641 # PIC is the default for these OSes.
13642 ;;
13643 mingw* | cygwin* | os2* | pw32* | cegcc*)
13644 # This hack is so that the source file can tell whether it is being
13645 # built for inclusion in a dll (and should export symbols for example).
13646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13647 # (--disable-auto-import) libraries
13648 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13649 ;;
13650 darwin* | rhapsody*)
13651 # PIC is the default on this platform
13652 # Common symbols not allowed in MH_DYLIB files
13653 lt_prog_compiler_pic_CXX='-fno-common'
13654 ;;
13655 *djgpp*)
13656 # DJGPP does not support shared libraries at all
13657 lt_prog_compiler_pic_CXX=
13658 ;;
13659 haiku*)
13660 # PIC is the default for Haiku.
13661 # The "-static" flag exists, but is broken.
13662 lt_prog_compiler_static_CXX=
13663 ;;
13664 interix[3-9]*)
13665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13666 # Instead, we relocate shared libraries at runtime.
13667 ;;
13668 sysv4*MP*)
13669 if test -d /usr/nec; then
13670 lt_prog_compiler_pic_CXX=-Kconform_pic
13671 fi
13672 ;;
13673 hpux*)
13674 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13675 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13676 # sets the default TLS model and affects inlining.
13677 case $host_cpu in
13678 hppa*64*)
13679 ;;
13680 *)
13681 lt_prog_compiler_pic_CXX='-fPIC'
13682 ;;
13683 esac
13684 ;;
13685 *qnx* | *nto*)
13686 # QNX uses GNU C++, but need to define -shared option too, otherwise
13687 # it will coredump.
13688 lt_prog_compiler_pic_CXX='-fPIC -shared'
13689 ;;
13690 *)
13691 lt_prog_compiler_pic_CXX='-fPIC'
13692 ;;
13693 esac
13694 else
13695 case $host_os in
13696 aix[4-9]*)
13697 # All AIX code is PIC.
13698 if test "$host_cpu" = ia64; then
13699 # AIX 5 now supports IA64 processor
13700 lt_prog_compiler_static_CXX='-Bstatic'
13701 else
13702 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13703 fi
13704 ;;
13705 chorus*)
13706 case $cc_basename in
13707 cxch68*)
13708 # Green Hills C++ Compiler
13709 # _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"
13710 ;;
13711 esac
13712 ;;
13713 dgux*)
13714 case $cc_basename in
13715 ec++*)
13716 lt_prog_compiler_pic_CXX='-KPIC'
13717 ;;
13718 ghcx*)
13719 # Green Hills C++ Compiler
13720 lt_prog_compiler_pic_CXX='-pic'
13721 ;;
13722 *)
13723 ;;
13724 esac
13725 ;;
13726 freebsd* | dragonfly*)
13727 # FreeBSD uses GNU C++
13728 ;;
13729 hpux9* | hpux10* | hpux11*)
13730 case $cc_basename in
13731 CC*)
13732 lt_prog_compiler_wl_CXX='-Wl,'
13733 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13734 if test "$host_cpu" != ia64; then
13735 lt_prog_compiler_pic_CXX='+Z'
13736 fi
13737 ;;
13738 aCC*)
13739 lt_prog_compiler_wl_CXX='-Wl,'
13740 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13741 case $host_cpu in
13742 hppa*64*|ia64*)
13743 # +Z the default
13744 ;;
13745 *)
13746 lt_prog_compiler_pic_CXX='+Z'
13747 ;;
13748 esac
13749 ;;
13750 *)
13751 ;;
13752 esac
13753 ;;
13754 interix*)
13755 # This is c89, which is MS Visual C++ (no shared libs)
13756 # Anyone wants to do a port?
13757 ;;
13758 irix5* | irix6* | nonstopux*)
13759 case $cc_basename in
13760 CC*)
13761 lt_prog_compiler_wl_CXX='-Wl,'
13762 lt_prog_compiler_static_CXX='-non_shared'
13763 # CC pic flag -KPIC is the default.
13764 ;;
13765 *)
13766 ;;
13767 esac
13768 ;;
13769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13770 case $cc_basename in
13771 KCC*)
13772 # KAI C++ Compiler
13773 lt_prog_compiler_wl_CXX='--backend -Wl,'
13774 lt_prog_compiler_pic_CXX='-fPIC'
13775 ;;
13776 ecpc* )
13777 # old Intel C++ for x86_64 which still supported -KPIC.
13778 lt_prog_compiler_wl_CXX='-Wl,'
13779 lt_prog_compiler_pic_CXX='-KPIC'
13780 lt_prog_compiler_static_CXX='-static'
13781 ;;
13782 icpc* )
13783 # Intel C++, used to be incompatible with GCC.
13784 # ICC 10 doesn't accept -KPIC any more.
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_pic_CXX='-fPIC'
13787 lt_prog_compiler_static_CXX='-static'
13788 ;;
13789 pgCC* | pgcpp*)
13790 # Portland Group C++ compiler
13791 lt_prog_compiler_wl_CXX='-Wl,'
13792 lt_prog_compiler_pic_CXX='-fpic'
13793 lt_prog_compiler_static_CXX='-Bstatic'
13794 ;;
13795 cxx*)
13796 # Compaq C++
13797 # Make sure the PIC flag is empty. It appears that all Alpha
13798 # Linux and Compaq Tru64 Unix objects are PIC.
13799 lt_prog_compiler_pic_CXX=
13800 lt_prog_compiler_static_CXX='-non_shared'
13801 ;;
13802 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13803 # IBM XL 8.0, 9.0 on PPC and BlueGene
13804 lt_prog_compiler_wl_CXX='-Wl,'
13805 lt_prog_compiler_pic_CXX='-qpic'
13806 lt_prog_compiler_static_CXX='-qstaticlink'
13807 ;;
13808 *)
13809 case `$CC -V 2>&1 | sed 5q` in
13810 *Sun\ C*)
13811 # Sun C++ 5.9
13812 lt_prog_compiler_pic_CXX='-KPIC'
13813 lt_prog_compiler_static_CXX='-Bstatic'
13814 lt_prog_compiler_wl_CXX='-Qoption ld '
13815 ;;
13816 esac
13817 ;;
13818 esac
13819 ;;
13820 lynxos*)
13821 ;;
13822 m88k*)
13823 ;;
13824 mvs*)
13825 case $cc_basename in
13826 cxx*)
13827 lt_prog_compiler_pic_CXX='-W c,exportall'
13828 ;;
13829 *)
13830 ;;
13831 esac
13832 ;;
13833 netbsd*)
13834 ;;
13835 *qnx* | *nto*)
13836 # QNX uses GNU C++, but need to define -shared option too, otherwise
13837 # it will coredump.
13838 lt_prog_compiler_pic_CXX='-fPIC -shared'
13839 ;;
13840 osf3* | osf4* | osf5*)
13841 case $cc_basename in
13842 KCC*)
13843 lt_prog_compiler_wl_CXX='--backend -Wl,'
13844 ;;
13845 RCC*)
13846 # Rational C++ 2.4.1
13847 lt_prog_compiler_pic_CXX='-pic'
13848 ;;
13849 cxx*)
13850 # Digital/Compaq C++
13851 lt_prog_compiler_wl_CXX='-Wl,'
13852 # Make sure the PIC flag is empty. It appears that all Alpha
13853 # Linux and Compaq Tru64 Unix objects are PIC.
13854 lt_prog_compiler_pic_CXX=
13855 lt_prog_compiler_static_CXX='-non_shared'
13856 ;;
13857 *)
13858 ;;
13859 esac
13860 ;;
13861 psos*)
13862 ;;
13863 solaris*)
13864 case $cc_basename in
13865 CC*)
13866 # Sun C++ 4.2, 5.x and Centerline C++
13867 lt_prog_compiler_pic_CXX='-KPIC'
13868 lt_prog_compiler_static_CXX='-Bstatic'
13869 lt_prog_compiler_wl_CXX='-Qoption ld '
13870 ;;
13871 gcx*)
13872 # Green Hills C++ Compiler
13873 lt_prog_compiler_pic_CXX='-PIC'
13874 ;;
13875 *)
13876 ;;
13877 esac
13878 ;;
13879 sunos4*)
13880 case $cc_basename in
13881 CC*)
13882 # Sun C++ 4.x
13883 lt_prog_compiler_pic_CXX='-pic'
13884 lt_prog_compiler_static_CXX='-Bstatic'
13885 ;;
13886 lcc*)
13887 # Lucid
13888 lt_prog_compiler_pic_CXX='-pic'
13889 ;;
13890 *)
13891 ;;
13892 esac
13893 ;;
13894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13895 case $cc_basename in
13896 CC*)
13897 lt_prog_compiler_wl_CXX='-Wl,'
13898 lt_prog_compiler_pic_CXX='-KPIC'
13899 lt_prog_compiler_static_CXX='-Bstatic'
13900 ;;
13901 esac
13902 ;;
13903 tandem*)
13904 case $cc_basename in
13905 NCC*)
13906 # NonStop-UX NCC 3.20
13907 lt_prog_compiler_pic_CXX='-KPIC'
13908 ;;
13909 *)
13910 ;;
13911 esac
13912 ;;
13913 vxworks*)
13914 ;;
13915 *)
13916 lt_prog_compiler_can_build_shared_CXX=no
13917 ;;
13918 esac
13919 fi
13920
13921case $host_os in
13922 # For platforms which do not support PIC, -DPIC is meaningless:
13923 *djgpp*)
13924 lt_prog_compiler_pic_CXX=
13925 ;;
13926 *)
13927 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13928 ;;
13929esac
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13931$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13932
13933
13934
13935#
13936# Check to make sure the PIC flag actually works.
13937#
13938if test -n "$lt_prog_compiler_pic_CXX"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13940$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13941if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13943else
13944 lt_cv_prog_compiler_pic_works_CXX=no
13945 ac_outfile=conftest.$ac_objext
13946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13947 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13948 # Insert the option either (1) after the last *FLAGS variable, or
13949 # (2) before a word containing "conftest.", or (3) at the end.
13950 # Note that $ac_compile itself does not contain backslashes and begins
13951 # with a dollar sign (not a hyphen), so the echo should work correctly.
13952 # The option is referenced via a variable to avoid confusing sed.
13953 lt_compile=`echo "$ac_compile" | $SED \
13954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13956 -e 's:$: $lt_compiler_flag:'`
13957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13958 (eval "$lt_compile" 2>conftest.err)
13959 ac_status=$?
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 if (exit $ac_status) && test -s "$ac_outfile"; then
13963 # The compiler can only warn and ignore the option if not recognized
13964 # So say no if there are warnings other than the usual output.
13965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13968 lt_cv_prog_compiler_pic_works_CXX=yes
13969 fi
13970 fi
13971 $RM conftest*
13972
13973fi
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13975$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13976
13977if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13978 case $lt_prog_compiler_pic_CXX in
13979 "" | " "*) ;;
13980 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13981 esac
13982else
13983 lt_prog_compiler_pic_CXX=
13984 lt_prog_compiler_can_build_shared_CXX=no
13985fi
13986
13987fi
13988
13989
13990
13991#
13992# Check to make sure the static flag actually works.
13993#
13994wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13996$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13997if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
13999else
14000 lt_cv_prog_compiler_static_works_CXX=no
14001 save_LDFLAGS="$LDFLAGS"
14002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14005 # The linker can only warn and ignore the option if not recognized
14006 # So say no if there are warnings
14007 if test -s conftest.err; then
14008 # Append any errors to the config.log.
14009 cat conftest.err 1>&5
14010 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14012 if diff conftest.exp conftest.er2 >/dev/null; then
14013 lt_cv_prog_compiler_static_works_CXX=yes
14014 fi
14015 else
14016 lt_cv_prog_compiler_static_works_CXX=yes
14017 fi
14018 fi
14019 $RM -r conftest*
14020 LDFLAGS="$save_LDFLAGS"
14021
14022fi
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14024$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14025
14026if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14027 :
14028else
14029 lt_prog_compiler_static_CXX=
14030fi
14031
14032
14033
14034
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14036$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14037if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14038 $as_echo_n "(cached) " >&6
14039else
14040 lt_cv_prog_compiler_c_o_CXX=no
14041 $RM -r conftest 2>/dev/null
14042 mkdir conftest
14043 cd conftest
14044 mkdir out
14045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14046
14047 lt_compiler_flag="-o out/conftest2.$ac_objext"
14048 # Insert the option either (1) after the last *FLAGS variable, or
14049 # (2) before a word containing "conftest.", or (3) at the end.
14050 # Note that $ac_compile itself does not contain backslashes and begins
14051 # with a dollar sign (not a hyphen), so the echo should work correctly.
14052 lt_compile=`echo "$ac_compile" | $SED \
14053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14055 -e 's:$: $lt_compiler_flag:'`
14056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14057 (eval "$lt_compile" 2>out/conftest.err)
14058 ac_status=$?
14059 cat out/conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14062 then
14063 # The compiler can only warn and ignore the option if not recognized
14064 # So say no if there are warnings
14065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14068 lt_cv_prog_compiler_c_o_CXX=yes
14069 fi
14070 fi
14071 chmod u+w . 2>&5
14072 $RM conftest*
14073 # SGI C++ compiler will create directory out/ii_files/ for
14074 # template instantiation
14075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14076 $RM out/* && rmdir out
14077 cd ..
14078 $RM -r conftest
14079 $RM conftest*
14080
14081fi
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14083$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14084
14085
14086
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14088$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14089if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091else
14092 lt_cv_prog_compiler_c_o_CXX=no
14093 $RM -r conftest 2>/dev/null
14094 mkdir conftest
14095 cd conftest
14096 mkdir out
14097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14098
14099 lt_compiler_flag="-o out/conftest2.$ac_objext"
14100 # Insert the option either (1) after the last *FLAGS variable, or
14101 # (2) before a word containing "conftest.", or (3) at the end.
14102 # Note that $ac_compile itself does not contain backslashes and begins
14103 # with a dollar sign (not a hyphen), so the echo should work correctly.
14104 lt_compile=`echo "$ac_compile" | $SED \
14105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14107 -e 's:$: $lt_compiler_flag:'`
14108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14109 (eval "$lt_compile" 2>out/conftest.err)
14110 ac_status=$?
14111 cat out/conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14114 then
14115 # The compiler can only warn and ignore the option if not recognized
14116 # So say no if there are warnings
14117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14120 lt_cv_prog_compiler_c_o_CXX=yes
14121 fi
14122 fi
14123 chmod u+w . 2>&5
14124 $RM conftest*
14125 # SGI C++ compiler will create directory out/ii_files/ for
14126 # template instantiation
14127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14128 $RM out/* && rmdir out
14129 cd ..
14130 $RM -r conftest
14131 $RM conftest*
14132
14133fi
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14135$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14136
14137
14138
14139
14140hard_links="nottested"
14141if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14142 # do not overwrite the value of need_locks provided by the user
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14144$as_echo_n "checking if we can lock with hard links... " >&6; }
14145 hard_links=yes
14146 $RM conftest*
14147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148 touch conftest.a
14149 ln conftest.a conftest.b 2>&5 || hard_links=no
14150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14152$as_echo "$hard_links" >&6; }
14153 if test "$hard_links" = no; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14155$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14156 need_locks=warn
14157 fi
14158else
14159 need_locks=no
14160fi
14161
14162
14163
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14165$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14166
14167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14168 case $host_os in
14169 aix[4-9]*)
14170 # If we're using GNU nm, then we don't want the "-C" option.
14171 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14172 # Also, AIX nm treats weak defined symbols like other global defined
14173 # symbols, whereas GNU nm marks them as "W".
14174 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14175 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14176 else
14177 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'
14178 fi
14179 ;;
14180 pw32*)
14181 export_symbols_cmds_CXX="$ltdll_cmds"
14182 ;;
14183 cygwin* | mingw* | cegcc*)
14184 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'
14185 ;;
14186 *)
14187 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14188 ;;
14189 esac
14190 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14191
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14193$as_echo "$ld_shlibs_CXX" >&6; }
14194test "$ld_shlibs_CXX" = no && can_build_shared=no
14195
14196with_gnu_ld_CXX=$with_gnu_ld
14197
14198
14199
14200
14201
14202
14203#
14204# Do we need to explicitly link libc?
14205#
14206case "x$archive_cmds_need_lc_CXX" in
14207x|xyes)
14208 # Assume -lc should be added
14209 archive_cmds_need_lc_CXX=yes
14210
14211 if test "$enable_shared" = yes && test "$GCC" = yes; then
14212 case $archive_cmds_CXX in
14213 *'~'*)
14214 # FIXME: we may have to deal with multi-command sequences.
14215 ;;
14216 '$CC '*)
14217 # Test whether the compiler implicitly links with -lc since on some
14218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14219 # to ld, don't add -lc before -lgcc.
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14221$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14222if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14224else
14225 $RM conftest*
14226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227
14228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14229 (eval $ac_compile) 2>&5
14230 ac_status=$?
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; } 2>conftest.err; then
14233 soname=conftest
14234 lib=conftest
14235 libobjs=conftest.$ac_objext
14236 deplibs=
14237 wl=$lt_prog_compiler_wl_CXX
14238 pic_flag=$lt_prog_compiler_pic_CXX
14239 compiler_flags=-v
14240 linker_flags=-v
14241 verstring=
14242 output_objdir=.
14243 libname=conftest
14244 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14245 allow_undefined_flag_CXX=
14246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14247 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14248 ac_status=$?
14249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14250 test $ac_status = 0; }
14251 then
14252 lt_cv_archive_cmds_need_lc_CXX=no
14253 else
14254 lt_cv_archive_cmds_need_lc_CXX=yes
14255 fi
14256 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14257 else
14258 cat conftest.err 1>&5
14259 fi
14260 $RM conftest*
14261
14262fi
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14264$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14265 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14266 ;;
14267 esac
14268 fi
14269 ;;
14270esac
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14336$as_echo_n "checking dynamic linker characteristics... " >&6; }
14337
14338library_names_spec=
14339libname_spec='lib$name'
14340soname_spec=
14341shrext_cmds=".so"
14342postinstall_cmds=
14343postuninstall_cmds=
14344finish_cmds=
14345finish_eval=
14346shlibpath_var=
14347shlibpath_overrides_runpath=unknown
14348version_type=none
14349dynamic_linker="$host_os ld.so"
14350sys_lib_dlsearch_path_spec="/lib /usr/lib"
14351need_lib_prefix=unknown
14352hardcode_into_libs=no
14353
14354# when you set need_version to no, make sure it does not cause -set_version
14355# flags to be left without arguments
14356need_version=unknown
14357
14358case $host_os in
14359aix3*)
14360 version_type=linux
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14362 shlibpath_var=LIBPATH
14363
14364 # AIX 3 has no versioning support, so we append a major version to the name.
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 ;;
14367
14368aix[4-9]*)
14369 version_type=linux
14370 need_lib_prefix=no
14371 need_version=no
14372 hardcode_into_libs=yes
14373 if test "$host_cpu" = ia64; then
14374 # AIX 5 supports IA64
14375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 else
14378 # With GCC up to 2.95.x, collect2 would create an import file
14379 # for dependence libraries. The import file would start with
14380 # the line `#! .'. This would cause the generated library to
14381 # depend on `.', always an invalid library. This was fixed in
14382 # development snapshots of GCC prior to 3.0.
14383 case $host_os in
14384 aix4 | aix4.[01] | aix4.[01].*)
14385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14386 echo ' yes '
14387 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14388 :
14389 else
14390 can_build_shared=no
14391 fi
14392 ;;
14393 esac
14394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14395 # soname into executable. Probably we can add versioning support to
14396 # collect2, so additional links can be useful in future.
14397 if test "$aix_use_runtimelinking" = yes; then
14398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14399 # instead of lib<name>.a to let people know that these are not
14400 # typical AIX shared libraries.
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402 else
14403 # We preserve .a as extension for shared libraries through AIX4.2
14404 # and later when we are not doing run time linking.
14405 library_names_spec='${libname}${release}.a $libname.a'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 fi
14408 shlibpath_var=LIBPATH
14409 fi
14410 ;;
14411
14412amigaos*)
14413 case $host_cpu in
14414 powerpc)
14415 # Since July 2007 AmigaOS4 officially supports .so libraries.
14416 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418 ;;
14419 m68k)
14420 library_names_spec='$libname.ixlibrary $libname.a'
14421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14422 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14423 ;;
14424 esac
14425 ;;
14426
14427beos*)
14428 library_names_spec='${libname}${shared_ext}'
14429 dynamic_linker="$host_os ld.so"
14430 shlibpath_var=LIBRARY_PATH
14431 ;;
14432
14433bsdi[45]*)
14434 version_type=linux
14435 need_version=no
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14442 # the default ld.so.conf also contains /usr/contrib/lib and
14443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14444 # libtool to hard-code these into programs
14445 ;;
14446
14447cygwin* | mingw* | pw32* | cegcc*)
14448 version_type=windows
14449 shrext_cmds=".dll"
14450 need_version=no
14451 need_lib_prefix=no
14452
14453 case $GCC,$host_os in
14454 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14455 library_names_spec='$libname.dll.a'
14456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14457 postinstall_cmds='base_file=`basename \${file}`~
14458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14459 dldir=$destdir/`dirname \$dlpath`~
14460 test -d \$dldir || mkdir -p \$dldir~
14461 $install_prog $dir/$dlname \$dldir/$dlname~
14462 chmod a+x \$dldir/$dlname~
14463 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14464 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14465 fi'
14466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14467 dlpath=$dir/\$dldll~
14468 $RM \$dlpath'
14469 shlibpath_overrides_runpath=yes
14470
14471 case $host_os in
14472 cygwin*)
14473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14474 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14475
14476 ;;
14477 mingw* | cegcc*)
14478 # MinGW DLLs use traditional 'lib' prefix
14479 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480 ;;
14481 pw32*)
14482 # pw32 DLLs use 'pw' prefix rather than 'lib'
14483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484 ;;
14485 esac
14486 ;;
14487
14488 *)
14489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14490 ;;
14491 esac
14492 dynamic_linker='Win32 ld.exe'
14493 # FIXME: first we should search . and the directory the executable is in
14494 shlibpath_var=PATH
14495 ;;
14496
14497darwin* | rhapsody*)
14498 dynamic_linker="$host_os dyld"
14499 version_type=darwin
14500 need_lib_prefix=no
14501 need_version=no
14502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14503 soname_spec='${libname}${release}${major}$shared_ext'
14504 shlibpath_overrides_runpath=yes
14505 shlibpath_var=DYLD_LIBRARY_PATH
14506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14507
14508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14509 ;;
14510
14511dgux*)
14512 version_type=linux
14513 need_lib_prefix=no
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 ;;
14519
3cb62297
L
14520freebsd* | dragonfly*)
14521 # DragonFly does not have aout. When/if they implement a new
14522 # versioning mechanism, adjust this.
14523 if test -x /usr/bin/objformat; then
14524 objformat=`/usr/bin/objformat`
14525 else
14526 case $host_os in
6d2920c8 14527 freebsd[23].*) objformat=aout ;;
3cb62297
L
14528 *) objformat=elf ;;
14529 esac
14530 fi
14531 version_type=freebsd-$objformat
14532 case $version_type in
14533 freebsd-elf*)
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14535 need_version=no
14536 need_lib_prefix=no
14537 ;;
14538 freebsd-*)
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14540 need_version=yes
14541 ;;
14542 esac
14543 shlibpath_var=LD_LIBRARY_PATH
14544 case $host_os in
6d2920c8 14545 freebsd2.*)
3cb62297
L
14546 shlibpath_overrides_runpath=yes
14547 ;;
14548 freebsd3.[01]* | freebsdelf3.[01]*)
14549 shlibpath_overrides_runpath=yes
14550 hardcode_into_libs=yes
14551 ;;
14552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14554 shlibpath_overrides_runpath=no
14555 hardcode_into_libs=yes
14556 ;;
14557 *) # from 4.6 on, and DragonFly
14558 shlibpath_overrides_runpath=yes
14559 hardcode_into_libs=yes
14560 ;;
14561 esac
14562 ;;
14563
14564gnu*)
14565 version_type=linux
14566 need_lib_prefix=no
14567 need_version=no
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 hardcode_into_libs=yes
14572 ;;
14573
14574haiku*)
14575 version_type=linux
14576 need_lib_prefix=no
14577 need_version=no
14578 dynamic_linker="$host_os runtime_loader"
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LIBRARY_PATH
14582 shlibpath_overrides_runpath=yes
14583 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14584 hardcode_into_libs=yes
14585 ;;
14586
14587hpux9* | hpux10* | hpux11*)
14588 # Give a soname corresponding to the major version so that dld.sl refuses to
14589 # link against other versions.
14590 version_type=sunos
14591 need_lib_prefix=no
14592 need_version=no
14593 case $host_cpu in
14594 ia64*)
14595 shrext_cmds='.so'
14596 hardcode_into_libs=yes
14597 dynamic_linker="$host_os dld.so"
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 if test "X$HPUX_IA64_MODE" = X32; then
14603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14604 else
14605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14606 fi
14607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14608 ;;
14609 hppa*64*)
14610 shrext_cmds='.sl'
14611 hardcode_into_libs=yes
14612 dynamic_linker="$host_os dld.sl"
14613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14619 ;;
14620 *)
14621 shrext_cmds='.sl'
14622 dynamic_linker="$host_os dld.sl"
14623 shlibpath_var=SHLIB_PATH
14624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 ;;
14628 esac
14629 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14630 postinstall_cmds='chmod 555 $lib'
14631 # or fails outright, so override atomically:
14632 install_override_mode=555
14633 ;;
14634
14635interix[3-9]*)
14636 version_type=linux
14637 need_lib_prefix=no
14638 need_version=no
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=no
14644 hardcode_into_libs=yes
14645 ;;
14646
14647irix5* | irix6* | nonstopux*)
14648 case $host_os in
14649 nonstopux*) version_type=nonstopux ;;
14650 *)
14651 if test "$lt_cv_prog_gnu_ld" = yes; then
14652 version_type=linux
14653 else
14654 version_type=irix
14655 fi ;;
14656 esac
14657 need_lib_prefix=no
14658 need_version=no
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14661 case $host_os in
14662 irix5* | nonstopux*)
14663 libsuff= shlibsuff=
14664 ;;
14665 *)
14666 case $LD in # libtool.m4 will add one of these switches to LD
14667 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14668 libsuff= shlibsuff= libmagic=32-bit;;
14669 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14670 libsuff=32 shlibsuff=N32 libmagic=N32;;
14671 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14672 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14673 *) libsuff= shlibsuff= libmagic=never-match;;
14674 esac
14675 ;;
14676 esac
14677 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14678 shlibpath_overrides_runpath=no
14679 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14680 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14681 hardcode_into_libs=yes
14682 ;;
14683
14684# No shared lib support for Linux oldld, aout, or coff.
14685linux*oldld* | linux*aout* | linux*coff*)
14686 dynamic_linker=no
14687 ;;
14688
14689# This must be Linux ELF.
14690linux* | k*bsd*-gnu | kopensolaris*-gnu)
14691 version_type=linux
14692 need_lib_prefix=no
14693 need_version=no
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=no
14699
14700 # Some binutils ld are patched to set DT_RUNPATH
14701 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14702 $as_echo_n "(cached) " >&6
14703else
14704 lt_cv_shlibpath_overrides_runpath=no
14705 save_LDFLAGS=$LDFLAGS
14706 save_libdir=$libdir
14707 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14708 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710/* end confdefs.h. */
14711
14712int
14713main ()
14714{
14715
14716 ;
14717 return 0;
14718}
14719_ACEOF
14720if ac_fn_cxx_try_link "$LINENO"; then :
14721 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14722 lt_cv_shlibpath_overrides_runpath=yes
14723fi
14724fi
14725rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LDFLAGS=$save_LDFLAGS
14728 libdir=$save_libdir
14729
14730fi
14731
14732 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14733
14734 # This implies no fast_install, which is unacceptable.
14735 # Some rework will be needed to allow for fast_install
14736 # before this can be enabled.
14737 hardcode_into_libs=yes
14738
14739 # Append ld.so.conf contents to the search path
14740 if test -f /etc/ld.so.conf; then
14741 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;s/"//g;/^$/d' | tr '\n' ' '`
14742 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14743 fi
14744
14745 # We used to test for /lib/ld.so.1 and disable shared libraries on
14746 # powerpc, because MkLinux only supported shared libraries with the
14747 # GNU dynamic linker. Since this was broken with cross compilers,
14748 # most powerpc-linux boxes support dynamic linking these days and
14749 # people can always --disable-shared, the test was removed, and we
14750 # assume the GNU/Linux dynamic linker is in use.
14751 dynamic_linker='GNU/Linux ld.so'
14752 ;;
14753
14754netbsd*)
14755 version_type=sunos
14756 need_lib_prefix=no
14757 need_version=no
14758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14761 dynamic_linker='NetBSD (a.out) ld.so'
14762 else
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 dynamic_linker='NetBSD ld.elf_so'
14766 fi
14767 shlibpath_var=LD_LIBRARY_PATH
14768 shlibpath_overrides_runpath=yes
14769 hardcode_into_libs=yes
14770 ;;
14771
14772newsos6)
14773 version_type=linux
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=yes
14777 ;;
14778
14779*nto* | *qnx*)
14780 version_type=qnx
14781 need_lib_prefix=no
14782 need_version=no
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 shlibpath_overrides_runpath=no
14787 hardcode_into_libs=yes
14788 dynamic_linker='ldqnx.so'
14789 ;;
14790
14791openbsd*)
14792 version_type=sunos
14793 sys_lib_dlsearch_path_spec="/usr/lib"
14794 need_lib_prefix=no
14795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14796 case $host_os in
14797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14798 *) need_version=no ;;
14799 esac
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804 case $host_os in
14805 openbsd2.[89] | openbsd2.[89].*)
14806 shlibpath_overrides_runpath=no
14807 ;;
14808 *)
14809 shlibpath_overrides_runpath=yes
14810 ;;
14811 esac
14812 else
14813 shlibpath_overrides_runpath=yes
14814 fi
14815 ;;
14816
14817os2*)
14818 libname_spec='$name'
14819 shrext_cmds=".dll"
14820 need_lib_prefix=no
14821 library_names_spec='$libname${shared_ext} $libname.a'
14822 dynamic_linker='OS/2 ld.exe'
14823 shlibpath_var=LIBPATH
14824 ;;
14825
14826osf3* | osf4* | osf5*)
14827 version_type=osf
14828 need_lib_prefix=no
14829 need_version=no
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14835 ;;
14836
14837rdos*)
14838 dynamic_linker=no
14839 ;;
14840
14841solaris*)
14842 version_type=linux
14843 need_lib_prefix=no
14844 need_version=no
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=yes
14849 hardcode_into_libs=yes
14850 # ldd complains unless libraries are executable
14851 postinstall_cmds='chmod +x $lib'
14852 ;;
14853
14854sunos4*)
14855 version_type=sunos
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 if test "$with_gnu_ld" = yes; then
14861 need_lib_prefix=no
14862 fi
14863 need_version=yes
14864 ;;
14865
14866sysv4 | sysv4.3*)
14867 version_type=linux
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 case $host_vendor in
14872 sni)
14873 shlibpath_overrides_runpath=no
14874 need_lib_prefix=no
14875 runpath_var=LD_RUN_PATH
14876 ;;
14877 siemens)
14878 need_lib_prefix=no
14879 ;;
14880 motorola)
14881 need_lib_prefix=no
14882 need_version=no
14883 shlibpath_overrides_runpath=no
14884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14885 ;;
14886 esac
14887 ;;
14888
14889sysv4*MP*)
14890 if test -d /usr/nec ;then
14891 version_type=linux
14892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14893 soname_spec='$libname${shared_ext}.$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 fi
14896 ;;
14897
14898sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14899 version_type=freebsd-elf
14900 need_lib_prefix=no
14901 need_version=no
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=yes
14906 hardcode_into_libs=yes
14907 if test "$with_gnu_ld" = yes; then
14908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14909 else
14910 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14911 case $host_os in
14912 sco3.2v5*)
14913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14914 ;;
14915 esac
14916 fi
14917 sys_lib_dlsearch_path_spec='/usr/lib'
14918 ;;
14919
14920tpf*)
14921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14922 version_type=linux
14923 need_lib_prefix=no
14924 need_version=no
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 shlibpath_overrides_runpath=no
14928 hardcode_into_libs=yes
14929 ;;
14930
14931uts4*)
14932 version_type=linux
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 ;;
14937
14938*)
14939 dynamic_linker=no
14940 ;;
14941esac
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14943$as_echo "$dynamic_linker" >&6; }
14944test "$dynamic_linker" = no && can_build_shared=no
14945
14946variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14947if test "$GCC" = yes; then
14948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14949fi
14950
14951if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14952 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14953fi
14954if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14955 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14956fi
14957
3725885a 14958
ce2cded5 14959
ce2cded5 14960
ce2cded5 14961
d7040cdb 14962
ce2cded5 14963
ce2cded5 14964
ce2cded5 14965
d7040cdb 14966
ce2cded5
L
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
ce2cded5
L
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
b879806f
AM
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14996$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14997hardcode_action_CXX=
14998if test -n "$hardcode_libdir_flag_spec_CXX" ||
14999 test -n "$runpath_var_CXX" ||
15000 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15001
15002 # We can hardcode non-existent directories.
15003 if test "$hardcode_direct_CXX" != no &&
15004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15005 # have to relink, otherwise we might link with an installed library
15006 # when we should be linking with a yet-to-be-installed one
15007 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15008 test "$hardcode_minus_L_CXX" != no; then
15009 # Linking always hardcodes the temporary library directory.
15010 hardcode_action_CXX=relink
15011 else
15012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15013 hardcode_action_CXX=immediate
15014 fi
15015else
15016 # We cannot hardcode anything, or else we can only hardcode existing
15017 # directories.
15018 hardcode_action_CXX=unsupported
15019fi
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15021$as_echo "$hardcode_action_CXX" >&6; }
15022
15023if test "$hardcode_action_CXX" = relink ||
15024 test "$inherit_rpath_CXX" = yes; then
15025 # Fast installation is not supported
15026 enable_fast_install=no
15027elif test "$shlibpath_overrides_runpath" = yes ||
15028 test "$enable_shared" = no; then
15029 # Fast installation is not necessary
15030 enable_fast_install=needless
15031fi
15032
15033
15034
15035
15036
15037
15038
15039 fi # test -n "$compiler"
15040
15041 CC=$lt_save_CC
15042 LDCXX=$LD
15043 LD=$lt_save_LD
15044 GCC=$lt_save_GCC
15045 with_gnu_ld=$lt_save_with_gnu_ld
15046 lt_cv_path_LDCXX=$lt_cv_path_LD
15047 lt_cv_path_LD=$lt_save_path_LD
15048 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15049 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15050fi # test "$_lt_caught_CXX_error" != yes
15051
15052ac_ext=c
15053ac_cpp='$CPP $CPPFLAGS'
15054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056ac_compiler_gnu=$ac_cv_c_compiler_gnu
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070 ac_config_commands="$ac_config_commands libtool"
15071
15072
15073
15074
15075# Only expand once:
15076
15077
15078
15079# The tests for host and target for $enable_largefile require
15080# canonical names.
15081
15082
15083
15084# As the $enable_largefile decision depends on --enable-plugins we must set it
15085# even in directories otherwise not depending on the $plugins option.
15086
15087
15088 maybe_plugins=no
15089 for ac_header in dlfcn.h
15090do :
15091 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15092"
15093if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15094 cat >>confdefs.h <<_ACEOF
15095#define HAVE_DLFCN_H 1
15096_ACEOF
15097 maybe_plugins=yes
15098fi
15099
15100done
15101
15102 for ac_header in windows.h
15103do :
15104 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15105"
15106if test "x$ac_cv_header_windows_h" = x""yes; then :
15107 cat >>confdefs.h <<_ACEOF
15108#define HAVE_WINDOWS_H 1
15109_ACEOF
15110 maybe_plugins=yes
15111fi
15112
15113done
15114
15115
15116 # Check whether --enable-plugins was given.
15117if test "${enable_plugins+set}" = set; then :
15118 enableval=$enable_plugins; case "${enableval}" in
15119 no) plugins=no ;;
15120 *) plugins=yes
15121 if test "$maybe_plugins" != "yes" ; then
15122 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15123 fi ;;
15124 esac
15125else
15126 plugins=$maybe_plugins
15127
15128fi
15129
2974be62
AM
15130 if test "$plugins" = "yes"; then
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15132$as_echo_n "checking for library containing dlopen... " >&6; }
15133if test "${ac_cv_search_dlopen+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15135else
15136 ac_func_search_save_LIBS=$LIBS
15137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h. */
15139
15140/* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15143#ifdef __cplusplus
15144extern "C"
15145#endif
15146char dlopen ();
15147int
15148main ()
15149{
15150return dlopen ();
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155for ac_lib in '' dl; do
15156 if test -z "$ac_lib"; then
15157 ac_res="none required"
15158 else
15159 ac_res=-l$ac_lib
15160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15161 fi
15162 if ac_fn_c_try_link "$LINENO"; then :
15163 ac_cv_search_dlopen=$ac_res
15164fi
15165rm -f core conftest.err conftest.$ac_objext \
15166 conftest$ac_exeext
15167 if test "${ac_cv_search_dlopen+set}" = set; then :
15168 break
15169fi
15170done
15171if test "${ac_cv_search_dlopen+set}" = set; then :
15172
15173else
15174 ac_cv_search_dlopen=no
15175fi
15176rm conftest.$ac_ext
15177LIBS=$ac_func_search_save_LIBS
15178fi
15179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15180$as_echo "$ac_cv_search_dlopen" >&6; }
15181ac_res=$ac_cv_search_dlopen
15182if test "$ac_res" != no; then :
15183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15184
15185fi
15186
15187 fi
b879806f
AM
15188
15189
15190case "${host}" in
15191 sparc-*-solaris*|i[3-7]86-*-solaris*)
15192 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15193 # are mutually exclusive; and without procfs support, the bfd/ elf module
15194 # cannot provide certain routines such as elfcore_write_prpsinfo
15195 # or elfcore_write_prstatus. So unless the user explicitly requested
15196 # large-file support through the --enable-largefile switch, disable
15197 # large-file support in favor of procfs support.
15198 test "${target}" = "${host}" -a "x$plugins" = xno \
15199 && : ${enable_largefile="no"}
15200 ;;
15201esac
15202
15203# Check whether --enable-largefile was given.
15204if test "${enable_largefile+set}" = set; then :
15205 enableval=$enable_largefile;
15206fi
15207
15208if test "$enable_largefile" != no; then
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15211$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15212if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15213 $as_echo_n "(cached) " >&6
15214else
15215 ac_cv_sys_largefile_CC=no
15216 if test "$GCC" != yes; then
15217 ac_save_CC=$CC
15218 while :; do
15219 # IRIX 6.2 and later do not support large files by default,
15220 # so use the C compiler's -n32 option if that helps.
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222/* end confdefs.h. */
15223#include <sys/types.h>
15224 /* Check that off_t can represent 2**63 - 1 correctly.
15225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15226 since some C++ compilers masquerading as C compilers
15227 incorrectly reject 9223372036854775807. */
15228#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15230 && LARGE_OFF_T % 2147483647 == 1)
15231 ? 1 : -1];
15232int
15233main ()
15234{
15235
15236 ;
15237 return 0;
15238}
15239_ACEOF
15240 if ac_fn_c_try_compile "$LINENO"; then :
15241 break
15242fi
15243rm -f core conftest.err conftest.$ac_objext
15244 CC="$CC -n32"
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246 ac_cv_sys_largefile_CC=' -n32'; break
15247fi
15248rm -f core conftest.err conftest.$ac_objext
15249 break
15250 done
15251 CC=$ac_save_CC
15252 rm -f conftest.$ac_ext
15253 fi
15254fi
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15256$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15257 if test "$ac_cv_sys_largefile_CC" != no; then
15258 CC=$CC$ac_cv_sys_largefile_CC
15259 fi
15260
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15262$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15263if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15264 $as_echo_n "(cached) " >&6
15265else
15266 while :; do
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h. */
15269#include <sys/types.h>
15270 /* Check that off_t can represent 2**63 - 1 correctly.
15271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15272 since some C++ compilers masquerading as C compilers
15273 incorrectly reject 9223372036854775807. */
15274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15276 && LARGE_OFF_T % 2147483647 == 1)
15277 ? 1 : -1];
15278int
15279main ()
15280{
15281
15282 ;
15283 return 0;
15284}
15285_ACEOF
15286if ac_fn_c_try_compile "$LINENO"; then :
15287 ac_cv_sys_file_offset_bits=no; break
15288fi
15289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h. */
15292#define _FILE_OFFSET_BITS 64
15293#include <sys/types.h>
15294 /* Check that off_t can represent 2**63 - 1 correctly.
15295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15296 since some C++ compilers masquerading as C compilers
15297 incorrectly reject 9223372036854775807. */
15298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15300 && LARGE_OFF_T % 2147483647 == 1)
15301 ? 1 : -1];
15302int
15303main ()
15304{
15305
15306 ;
15307 return 0;
15308}
15309_ACEOF
15310if ac_fn_c_try_compile "$LINENO"; then :
15311 ac_cv_sys_file_offset_bits=64; break
15312fi
15313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15314 ac_cv_sys_file_offset_bits=unknown
15315 break
15316done
15317fi
15318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15319$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15320case $ac_cv_sys_file_offset_bits in #(
15321 no | unknown) ;;
15322 *)
15323cat >>confdefs.h <<_ACEOF
15324#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15325_ACEOF
15326;;
15327esac
15328rm -rf conftest*
15329 if test $ac_cv_sys_file_offset_bits = unknown; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15331$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15332if test "${ac_cv_sys_large_files+set}" = set; then :
15333 $as_echo_n "(cached) " >&6
15334else
15335 while :; do
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h. */
15338#include <sys/types.h>
15339 /* Check that off_t can represent 2**63 - 1 correctly.
15340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15341 since some C++ compilers masquerading as C compilers
15342 incorrectly reject 9223372036854775807. */
15343#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15345 && LARGE_OFF_T % 2147483647 == 1)
15346 ? 1 : -1];
15347int
15348main ()
15349{
15350
15351 ;
15352 return 0;
15353}
15354_ACEOF
15355if ac_fn_c_try_compile "$LINENO"; then :
15356 ac_cv_sys_large_files=no; break
15357fi
15358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h. */
15361#define _LARGE_FILES 1
15362#include <sys/types.h>
15363 /* Check that off_t can represent 2**63 - 1 correctly.
15364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15365 since some C++ compilers masquerading as C compilers
15366 incorrectly reject 9223372036854775807. */
15367#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15369 && LARGE_OFF_T % 2147483647 == 1)
15370 ? 1 : -1];
15371int
15372main ()
15373{
15374
15375 ;
15376 return 0;
15377}
15378_ACEOF
15379if ac_fn_c_try_compile "$LINENO"; then :
15380 ac_cv_sys_large_files=1; break
15381fi
15382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 ac_cv_sys_large_files=unknown
15384 break
15385done
15386fi
15387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15388$as_echo "$ac_cv_sys_large_files" >&6; }
15389case $ac_cv_sys_large_files in #(
15390 no | unknown) ;;
15391 *)
15392cat >>confdefs.h <<_ACEOF
15393#define _LARGE_FILES $ac_cv_sys_large_files
15394_ACEOF
15395;;
15396esac
15397rm -rf conftest*
15398 fi
15399fi
15400
15401
15402
15403
15404# Check whether --with-lib-path was given.
15405if test "${with_lib_path+set}" = set; then :
15406 withval=$with_lib_path; LIB_PATH=$withval
15407fi
15408
15409# Check whether --enable-targets was given.
15410if test "${enable_targets+set}" = set; then :
15411 enableval=$enable_targets; case "${enableval}" in
15412 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15413 ;;
15414 no) enable_targets= ;;
15415 *) enable_targets=$enableval ;;
15416esac
15417fi
15418# Check whether --enable-64-bit-bfd was given.
15419if test "${enable_64_bit_bfd+set}" = set; then :
15420 enableval=$enable_64_bit_bfd; case "${enableval}" in
15421 yes) want64=true ;;
15422 no) want64=false ;;
15423 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15424esac
15425else
15426 want64=false
15427fi
15428
15429
15430# Check whether --with-sysroot was given.
15431if test "${with_sysroot+set}" = set; then :
15432 withval=$with_sysroot;
15433 case ${with_sysroot} in
15434 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15435 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15436 esac
15437
15438 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15439 use_sysroot=yes
15440
15441 if test "x$prefix" = xNONE; then
15442 test_prefix=/usr/local
15443 else
15444 test_prefix=$prefix
15445 fi
15446 if test "x$exec_prefix" = xNONE; then
15447 test_exec_prefix=$test_prefix
15448 else
15449 test_exec_prefix=$exec_prefix
15450 fi
15451 case ${TARGET_SYSTEM_ROOT} in
15452 "${test_prefix}"|"${test_prefix}/"*|\
15453 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15454 '${prefix}'|'${prefix}/'*|\
15455 '${exec_prefix}'|'${exec_prefix}/'*)
15456 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15457 TARGET_SYSTEM_ROOT_DEFINE="$t"
15458 ;;
15459 esac
15460
15461else
15462
15463 use_sysroot=no
15464 TARGET_SYSTEM_ROOT=
15465 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15466
15467fi
15468
15469
15470
15471
15472
15473# Check whether --enable-gold was given.
15474if test "${enable_gold+set}" = set; then :
15475 enableval=$enable_gold; case "${enableval}" in
15476 default)
15477 install_as_default=no
15478 installed_linker=ld.bfd
15479 ;;
15480 yes|no)
15481 install_as_default=yes
15482 installed_linker=ld.bfd
15483 ;;
15484 *)
15485 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15486 ;;
15487 esac
15488else
15489 install_as_default=yes
15490 installed_linker=ld.bfd
15491fi
15492
15493
15494
15495
15496# Check whether --enable-got was given.
15497if test "${enable_got+set}" = set; then :
15498 enableval=$enable_got; case "${enableval}" in
15499 target | single | negative | multigot) got_handling=$enableval ;;
15500 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15501esac
15502else
15503 got_handling=target
15504fi
15505
15506
15507case "${got_handling}" in
15508 target)
15509
15510$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15511 ;;
15512 single)
15513
15514$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15515 ;;
15516 negative)
15517
15518$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15519 ;;
15520 multigot)
15521
15522$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15523 ;;
15524 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15525esac
15526
6c3bc0f8
NC
15527# PR gas/19109
15528# Decide the default method for compressing debug sections.
15529ac_default_compressed_debug_sections=unset
15530# Provide a configure time option to override our default.
15531# Check whether --enable-compressed_debug_sections was given.
15532if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15533 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15534 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15535 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15536esac
15537fi
15538
b879806f
AM
15539
15540# Set the 'development' global.
15541. $srcdir/../bfd/development.sh
15542
15543GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h. */
15546__GNUC__
15547_ACEOF
15548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15549 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
ce2cded5 15550
3cb62297 15551else
b879806f 15552 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15553fi
b879806f 15554rm -f conftest*
ce2cded5 15555
ce2cded5 15556
b879806f
AM
15557# Check whether --enable-werror was given.
15558if test "${enable_werror+set}" = set; then :
15559 enableval=$enable_werror; case "${enableval}" in
15560 yes | y) ERROR_ON_WARNING="yes" ;;
15561 no | n) ERROR_ON_WARNING="no" ;;
15562 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15563 esac
15564fi
ce2cded5
L
15565
15566
b879806f
AM
15567# Disable -Wformat by default when using gcc on mingw
15568case "${host}" in
15569 *-*-mingw32*)
15570 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15571 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15572 fi
15573 ;;
15574 *) ;;
15575esac
ce2cded5 15576
b879806f
AM
15577# Enable -Werror by default when using gcc. Turn it off for releases.
15578if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15579 ERROR_ON_WARNING=yes
15580fi
d7040cdb 15581
b879806f
AM
15582NO_WERROR=
15583if test "${ERROR_ON_WARNING}" = yes ; then
15584 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15585 NO_WERROR="-Wno-error"
15586fi
3cb62297 15587
b879806f
AM
15588if test "${GCC}" = yes ; then
15589 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15590fi
67310ccd 15591
b879806f
AM
15592# Check whether --enable-build-warnings was given.
15593if test "${enable_build_warnings+set}" = set; then :
15594 enableval=$enable_build_warnings; case "${enableval}" in
15595 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15596 no) if test "${GCC}" = yes ; then
15597 WARN_CFLAGS="-w"
15598 fi;;
15599 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15600 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15601 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15602 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15603 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15604esac
15605fi
67310ccd 15606
d7040cdb 15607
b879806f
AM
15608if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15609 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15610fi
d7040cdb 15611
d7040cdb 15612
d7040cdb 15613
d7040cdb 15614
ce2cded5
L
15615
15616
b879806f
AM
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15618$as_echo_n "checking for LC_MESSAGES... " >&6; }
15619if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15621else
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623/* end confdefs.h. */
15624#include <locale.h>
15625int
15626main ()
15627{
15628return LC_MESSAGES
15629 ;
15630 return 0;
15631}
15632_ACEOF
15633if ac_fn_c_try_link "$LINENO"; then :
15634 am_cv_val_LC_MESSAGES=yes
15635else
15636 am_cv_val_LC_MESSAGES=no
15637fi
15638rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15642$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15643 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 15644
b879806f 15645$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 15646
b879806f 15647 fi
ce2cded5 15648
ce2cded5 15649
b879806f 15650ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
15651
15652
b879806f 15653# PR 14072
ce2cded5 15654
ce2cded5 15655
b879806f
AM
15656if test -z "$target" ; then
15657 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15658fi
15659if test -z "$host" ; then
15660 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15661fi
d7040cdb 15662
b879806f 15663# host-specific stuff:
d7040cdb 15664
3e4fe8ac 15665ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15666# If we haven't got the data from the intl directory,
15667# assume NLS is disabled.
15668USE_NLS=no
15669LIBINTL=
15670LIBINTL_DEP=
15671INCINTL=
15672XGETTEXT=
15673GMSGFMT=
15674POSUB=
15675
15676if test -f ../intl/config.intl; then
15677 . ../intl/config.intl
15678fi
81ecdfbb
RW
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15680$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15681if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683$as_echo "no" >&6; }
d7040cdb 15684else
81ecdfbb
RW
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15686$as_echo "yes" >&6; }
d7040cdb 15687
81ecdfbb 15688$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15689
15690
81ecdfbb
RW
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15692$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15693 # Look for .po and .gmo files in the source directory.
15694 CATALOGS=
15695 XLINGUAS=
15696 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15697 # If there aren't any .gmo files the shell will give us the
15698 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15699 # weeded out.
15700 case "$cat" in *\**)
15701 continue;;
15702 esac
15703 # The quadruple backslash is collapsed to a double backslash
15704 # by the backticks, then collapsed again by the double quotes,
15705 # leaving us with one backslash in the sed expression (right
15706 # before the dot that mustn't act as a wildcard).
15707 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15708 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15709 # The user is allowed to set LINGUAS to a list of languages to
15710 # install catalogs for. If it's empty that means "all of them."
15711 if test "x$LINGUAS" = x; then
15712 CATALOGS="$CATALOGS $cat"
15713 XLINGUAS="$XLINGUAS $lang"
15714 else
15715 case "$LINGUAS" in *$lang*)
15716 CATALOGS="$CATALOGS $cat"
15717 XLINGUAS="$XLINGUAS $lang"
15718 ;;
15719 esac
15720 fi
15721 done
15722 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15724$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15725
15726
15727 DATADIRNAME=share
15728
15729 INSTOBJEXT=.mo
15730
15731 GENCAT=gencat
15732
15733 CATOBJEXT=.gmo
15734
15735fi
15736
15737 MKINSTALLDIRS=
15738 if test -n "$ac_aux_dir"; then
15739 case "$ac_aux_dir" in
15740 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15741 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15742 esac
15743 fi
15744 if test -z "$MKINSTALLDIRS"; then
15745 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15746 fi
15747
15748
15749
81ecdfbb
RW
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15751$as_echo_n "checking whether NLS is requested... " >&6; }
15752 # Check whether --enable-nls was given.
15753if test "${enable_nls+set}" = set; then :
15754 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15755else
15756 USE_NLS=yes
81ecdfbb
RW
15757fi
15758
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15760$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15761
15762
15763
15764
15765
15766
15767# Prepare PATH_SEPARATOR.
15768# The user is always right.
15769if test "${PATH_SEPARATOR+set}" != set; then
15770 echo "#! /bin/sh" >conf$$.sh
15771 echo "exit 0" >>conf$$.sh
15772 chmod +x conf$$.sh
15773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15774 PATH_SEPARATOR=';'
15775 else
15776 PATH_SEPARATOR=:
15777 fi
15778 rm -f conf$$.sh
15779fi
15780
15781# Find out how to test for executable files. Don't use a zero-byte file,
15782# as systems may use methods other than mode bits to determine executability.
15783cat >conf$$.file <<_ASEOF
15784#! /bin/sh
15785exit 0
15786_ASEOF
15787chmod +x conf$$.file
15788if test -x conf$$.file >/dev/null 2>&1; then
15789 ac_executable_p="test -x"
15790else
15791 ac_executable_p="test -f"
15792fi
15793rm -f conf$$.file
15794
15795# Extract the first word of "msgfmt", so it can be a program name with args.
15796set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15798$as_echo_n "checking for $ac_word... " >&6; }
15799if test "${ac_cv_path_MSGFMT+set}" = set; then :
15800 $as_echo_n "(cached) " >&6
d7040cdb
SE
15801else
15802 case "$MSGFMT" in
15803 [\\/]* | ?:[\\/]*)
15804 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15805 ;;
15806 *)
15807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15808 for ac_dir in $PATH; do
15809 IFS="$ac_save_IFS"
15810 test -z "$ac_dir" && ac_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15813 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15814 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15815 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15816 break 2
15817 fi
15818 fi
15819 done
15820 done
15821 IFS="$ac_save_IFS"
15822 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15823 ;;
15824esac
15825fi
15826MSGFMT="$ac_cv_path_MSGFMT"
15827if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15829$as_echo "$MSGFMT" >&6; }
d7040cdb 15830else
81ecdfbb
RW
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15832$as_echo "no" >&6; }
d7040cdb
SE
15833fi
15834
15835 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15836set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838$as_echo_n "checking for $ac_word... " >&6; }
15839if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15840 $as_echo_n "(cached) " >&6
d7040cdb
SE
15841else
15842 case $GMSGFMT in
15843 [\\/]* | ?:[\\/]*)
15844 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15845 ;;
15846 *)
15847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848for as_dir in $PATH
15849do
15850 IFS=$as_save_IFS
15851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15852 for ac_exec_ext in '' $ac_executable_extensions; do
15853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15854 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15856 break 2
15857 fi
15858done
81ecdfbb
RW
15859 done
15860IFS=$as_save_IFS
d7040cdb
SE
15861
15862 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15863 ;;
15864esac
15865fi
15866GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15867if test -n "$GMSGFMT"; then
81ecdfbb
RW
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15869$as_echo "$GMSGFMT" >&6; }
d7040cdb 15870else
81ecdfbb
RW
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872$as_echo "no" >&6; }
20e95c23 15873fi
42ecbf5e 15874
20e95c23 15875
252b5132 15876
81ecdfbb 15877
d7040cdb
SE
15878# Prepare PATH_SEPARATOR.
15879# The user is always right.
15880if test "${PATH_SEPARATOR+set}" != set; then
15881 echo "#! /bin/sh" >conf$$.sh
15882 echo "exit 0" >>conf$$.sh
15883 chmod +x conf$$.sh
15884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15885 PATH_SEPARATOR=';'
15886 else
15887 PATH_SEPARATOR=:
15888 fi
15889 rm -f conf$$.sh
20e95c23 15890fi
252b5132 15891
d7040cdb
SE
15892# Find out how to test for executable files. Don't use a zero-byte file,
15893# as systems may use methods other than mode bits to determine executability.
15894cat >conf$$.file <<_ASEOF
15895#! /bin/sh
15896exit 0
15897_ASEOF
15898chmod +x conf$$.file
15899if test -x conf$$.file >/dev/null 2>&1; then
15900 ac_executable_p="test -x"
20e95c23 15901else
d7040cdb
SE
15902 ac_executable_p="test -f"
15903fi
15904rm -f conf$$.file
20e95c23 15905
d7040cdb
SE
15906# Extract the first word of "xgettext", so it can be a program name with args.
15907set dummy xgettext; ac_word=$2
81ecdfbb
RW
15908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15909$as_echo_n "checking for $ac_word... " >&6; }
15910if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
252b5132 15912else
d7040cdb
SE
15913 case "$XGETTEXT" in
15914 [\\/]* | ?:[\\/]*)
15915 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15916 ;;
15917 *)
15918 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15919 for ac_dir in $PATH; do
15920 IFS="$ac_save_IFS"
15921 test -z "$ac_dir" && ac_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15924 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15925 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15926 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15927 break 2
15928 fi
15929 fi
15930 done
15931 done
15932 IFS="$ac_save_IFS"
15933 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15934 ;;
15935esac
252b5132 15936fi
d7040cdb
SE
15937XGETTEXT="$ac_cv_path_XGETTEXT"
15938if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15940$as_echo "$XGETTEXT" >&6; }
d5fbea21 15941else
81ecdfbb
RW
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943$as_echo "no" >&6; }
d5fbea21
DJ
15944fi
15945
d7040cdb 15946 rm -f messages.po
d5fbea21 15947
20e95c23 15948
d7040cdb
SE
15949# Prepare PATH_SEPARATOR.
15950# The user is always right.
15951if test "${PATH_SEPARATOR+set}" != set; then
15952 echo "#! /bin/sh" >conf$$.sh
15953 echo "exit 0" >>conf$$.sh
15954 chmod +x conf$$.sh
15955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15956 PATH_SEPARATOR=';'
15957 else
15958 PATH_SEPARATOR=:
15959 fi
15960 rm -f conf$$.sh
15961fi
20e95c23 15962
d7040cdb
SE
15963# Find out how to test for executable files. Don't use a zero-byte file,
15964# as systems may use methods other than mode bits to determine executability.
15965cat >conf$$.file <<_ASEOF
15966#! /bin/sh
15967exit 0
15968_ASEOF
15969chmod +x conf$$.file
15970if test -x conf$$.file >/dev/null 2>&1; then
15971 ac_executable_p="test -x"
15972else
15973 ac_executable_p="test -f"
15974fi
15975rm -f conf$$.file
20e95c23 15976
d7040cdb
SE
15977# Extract the first word of "msgmerge", so it can be a program name with args.
15978set dummy msgmerge; ac_word=$2
81ecdfbb
RW
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980$as_echo_n "checking for $ac_word... " >&6; }
15981if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15982 $as_echo_n "(cached) " >&6
d7040cdb
SE
15983else
15984 case "$MSGMERGE" in
15985 [\\/]* | ?:[\\/]*)
15986 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15987 ;;
15988 *)
15989 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15990 for ac_dir in $PATH; do
15991 IFS="$ac_save_IFS"
15992 test -z "$ac_dir" && ac_dir=.
15993 for ac_exec_ext in '' $ac_executable_extensions; do
15994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15995 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15996 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15997 break 2
15998 fi
15999 fi
16000 done
16001 done
16002 IFS="$ac_save_IFS"
16003 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16004 ;;
16005esac
16006fi
16007MSGMERGE="$ac_cv_path_MSGMERGE"
16008if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16010$as_echo "$MSGMERGE" >&6; }
d7040cdb 16011else
81ecdfbb
RW
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16013$as_echo "no" >&6; }
d7040cdb 16014fi
20e95c23
DJ
16015
16016
d7040cdb
SE
16017 if test "$GMSGFMT" != ":"; then
16018 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16019 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16020 : ;
16021 else
16022 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16024$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16025 GMSGFMT=":"
16026 fi
16027 fi
20e95c23 16028
d7040cdb
SE
16029 if test "$XGETTEXT" != ":"; then
16030 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16031 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16032 : ;
16033 else
81ecdfbb
RW
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16035$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16036 XGETTEXT=":"
16037 fi
16038 rm -f messages.po
20e95c23 16039 fi
42ecbf5e 16040
81ecdfbb 16041 ac_config_commands="$ac_config_commands default-1"
252b5132 16042
42ecbf5e 16043
252b5132 16044
42ecbf5e
DJ
16045
16046
d7040cdb 16047for ac_prog in 'bison -y' byacc
20e95c23 16048do
d7040cdb
SE
16049 # Extract the first word of "$ac_prog", so it can be a program name with args.
16050set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16052$as_echo_n "checking for $ac_word... " >&6; }
16053if test "${ac_cv_prog_YACC+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
20e95c23 16055else
d7040cdb
SE
16056 if test -n "$YACC"; then
16057 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16058else
d7040cdb
SE
16059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16060for as_dir in $PATH
16061do
16062 IFS=$as_save_IFS
16063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16064 for ac_exec_ext in '' $ac_executable_extensions; do
16065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16066 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16068 break 2
16069 fi
16070done
81ecdfbb
RW
16071 done
16072IFS=$as_save_IFS
42ecbf5e 16073
42ecbf5e 16074fi
e5a52504 16075fi
d7040cdb
SE
16076YACC=$ac_cv_prog_YACC
16077if test -n "$YACC"; then
81ecdfbb
RW
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16079$as_echo "$YACC" >&6; }
42ecbf5e 16080else
81ecdfbb
RW
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
42ecbf5e 16083fi
252b5132 16084
81ecdfbb 16085
d7040cdb 16086 test -n "$YACC" && break
42ecbf5e 16087done
d7040cdb 16088test -n "$YACC" || YACC="yacc"
d15b04bd 16089
d7040cdb
SE
16090for ac_prog in flex lex
16091do
16092 # Extract the first word of "$ac_prog", so it can be a program name with args.
16093set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095$as_echo_n "checking for $ac_word... " >&6; }
16096if test "${ac_cv_prog_LEX+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
d15b04bd 16098else
d7040cdb
SE
16099 if test -n "$LEX"; then
16100 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16101else
16102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103for as_dir in $PATH
16104do
16105 IFS=$as_save_IFS
16106 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16107 for ac_exec_ext in '' $ac_executable_extensions; do
16108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16109 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16111 break 2
16112 fi
16113done
81ecdfbb
RW
16114 done
16115IFS=$as_save_IFS
d7040cdb
SE
16116
16117fi
16118fi
16119LEX=$ac_cv_prog_LEX
16120if test -n "$LEX"; then
81ecdfbb
RW
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16122$as_echo "$LEX" >&6; }
d7040cdb 16123else
81ecdfbb
RW
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16125$as_echo "no" >&6; }
d15b04bd 16126fi
e5a52504 16127
81ecdfbb 16128
d7040cdb
SE
16129 test -n "$LEX" && break
16130done
16131test -n "$LEX" || LEX=":"
42ecbf5e 16132
81ecdfbb
RW
16133if test "x$LEX" != "x:"; then
16134 cat >conftest.l <<_ACEOF
16135%%
16136a { ECHO; }
16137b { REJECT; }
16138c { yymore (); }
16139d { yyless (1); }
16140e { yyless (input () != 0); }
16141f { unput (yytext[0]); }
16142. { BEGIN INITIAL; }
16143%%
16144#ifdef YYTEXT_POINTER
16145extern char *yytext;
d7040cdb 16146#endif
42ecbf5e 16147int
81ecdfbb 16148main (void)
42ecbf5e 16149{
81ecdfbb 16150 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16151}
16152_ACEOF
81ecdfbb
RW
16153{ { ac_try="$LEX conftest.l"
16154case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157esac
16158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16159$as_echo "$ac_try_echo"; } >&5
16160 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16161 ac_status=$?
81ecdfbb
RW
16162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163 test $ac_status = 0; }
16164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16165$as_echo_n "checking lex output file root... " >&6; }
16166if test "${ac_cv_prog_lex_root+set}" = set; then :
16167 $as_echo_n "(cached) " >&6
42ecbf5e 16168else
42ecbf5e 16169
81ecdfbb
RW
16170if test -f lex.yy.c; then
16171 ac_cv_prog_lex_root=lex.yy
16172elif test -f lexyy.c; then
16173 ac_cv_prog_lex_root=lexyy
16174else
16175 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16176fi
42ecbf5e 16177fi
81ecdfbb
RW
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16179$as_echo "$ac_cv_prog_lex_root" >&6; }
16180LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16181
81ecdfbb
RW
16182if test -z "${LEXLIB+set}"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16184$as_echo_n "checking lex library... " >&6; }
16185if test "${ac_cv_lib_lex+set}" = set; then :
16186 $as_echo_n "(cached) " >&6
252b5132 16187else
20e95c23 16188
81ecdfbb
RW
16189 ac_save_LIBS=$LIBS
16190 ac_cv_lib_lex='none needed'
16191 for ac_lib in '' -lfl -ll; do
16192 LIBS="$ac_lib $ac_save_LIBS"
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194/* end confdefs.h. */
16195`cat $LEX_OUTPUT_ROOT.c`
16196_ACEOF
16197if ac_fn_c_try_link "$LINENO"; then :
16198 ac_cv_lib_lex=$ac_lib
20e95c23 16199fi
81ecdfbb
RW
16200rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16202 test "$ac_cv_lib_lex" != 'none needed' && break
16203 done
16204 LIBS=$ac_save_LIBS
20e95c23
DJ
16205
16206fi
81ecdfbb
RW
16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16208$as_echo "$ac_cv_lib_lex" >&6; }
16209 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16210fi
20e95c23 16211
20e95c23 16212
81ecdfbb
RW
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16214$as_echo_n "checking whether yytext is a pointer... " >&6; }
16215if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16216 $as_echo_n "(cached) " >&6
d7040cdb
SE
16217else
16218 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16219# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16220# not all implementations provide the %pointer and %array declarations.
16221ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16222ac_save_LIBS=$LIBS
81ecdfbb
RW
16223LIBS="$LEXLIB $ac_save_LIBS"
16224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225/* end confdefs.h. */
16226#define YYTEXT_POINTER 1
d7040cdb 16227`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16228_ACEOF
81ecdfbb 16229if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16230 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16231fi
81ecdfbb
RW
16232rm -f core conftest.err conftest.$ac_objext \
16233 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16234LIBS=$ac_save_LIBS
d7040cdb
SE
16235
16236fi
81ecdfbb
RW
16237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16238$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16239if test $ac_cv_prog_lex_yytext_pointer = yes; then
16240
81ecdfbb 16241$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16242
16243fi
81ecdfbb 16244rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
16245
16246fi
16247if test "$LEX" = :; then
16248 LEX=${am_missing_run}flex
16249fi
16250
81ecdfbb
RW
16251
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16253$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16254 # Check whether --enable-maintainer-mode was given.
16255if test "${enable_maintainer_mode+set}" = set; then :
16256 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16257else
d7040cdb 16258 USE_MAINTAINER_MODE=no
81ecdfbb 16259fi
d7040cdb 16260
81ecdfbb
RW
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16262$as_echo "$USE_MAINTAINER_MODE" >&6; }
16263 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16264 MAINTAINER_MODE_TRUE=
16265 MAINTAINER_MODE_FALSE='#'
16266else
16267 MAINTAINER_MODE_TRUE='#'
16268 MAINTAINER_MODE_FALSE=
252b5132 16269fi
252b5132 16270
d7040cdb
SE
16271 MAINT=$MAINTAINER_MODE_TRUE
16272
16273
81ecdfbb 16274 if false; then
d7040cdb
SE
16275 GENINSRC_NEVER_TRUE=
16276 GENINSRC_NEVER_FALSE='#'
16277else
16278 GENINSRC_NEVER_TRUE='#'
16279 GENINSRC_NEVER_FALSE=
252b5132
RH
16280fi
16281
81ecdfbb
RW
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16283$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16284if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16285 $as_echo_n "(cached) " >&6
eccbf555
AM
16286else
16287 echo abfoo >t1
16288 echo cdfoo >t2
16289 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16290 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16291 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16292 :
16293 else
16294 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16295 fi
16296 fi
16297 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16298 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16299 :
16300 else
16301 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16302 fi
16303 fi
16304 rm t1 t2
16305
16306fi
81ecdfbb
RW
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16308$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16309do_compare="$gcc_cv_prog_cmp_skip"
16310
16311
d7040cdb
SE
16312
16313. ${srcdir}/configure.host
16314
16315
16316
16317
252b5132
RH
16318
16319
6738cadc 16320
b27caf75 16321
58797674 16322for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16323do :
16324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16325ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16326eval as_val=\$$as_ac_Header
16327 if test "x$as_val" = x""yes; then :
42ecbf5e 16328 cat >>confdefs.h <<_ACEOF
81ecdfbb 16329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16330_ACEOF
16331
16332fi
16333
252b5132
RH
16334done
16335
5d3236ee
DK
16336for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16337do :
16338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16340eval as_val=\$$as_ac_Header
16341 if test "x$as_val" = x""yes; then :
16342 cat >>confdefs.h <<_ACEOF
16343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344_ACEOF
16345
16346fi
16347
16348done
16349
208a4923
NC
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16351$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16352if test "${gcc_cv_header_string+set}" = set; then :
16353 $as_echo_n "(cached) " >&6
16354else
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356/* end confdefs.h. */
16357#include <string.h>
16358#include <strings.h>
16359int
16360main ()
16361{
16362
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367if ac_fn_c_try_compile "$LINENO"; then :
16368 gcc_cv_header_string=yes
16369else
16370 gcc_cv_header_string=no
16371fi
16372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373fi
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16375$as_echo "$gcc_cv_header_string" >&6; }
16376if test $gcc_cv_header_string = yes; then
16377
16378$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16379
16380fi
16381
44350750 16382for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16383do :
16384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16386eval as_val=\$$as_ac_var
16387 if test "x$as_val" = x""yes; then :
42ecbf5e 16388 cat >>confdefs.h <<_ACEOF
81ecdfbb 16389#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16390_ACEOF
252b5132 16391
252b5132
RH
16392fi
16393done
16394
5d3236ee
DK
16395for ac_func in open lseek close
16396do :
16397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16399eval as_val=\$$as_ac_var
16400 if test "x$as_val" = x""yes; then :
16401 cat >>confdefs.h <<_ACEOF
16402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16403_ACEOF
16404
16405fi
16406done
16407
252b5132 16408ac_header_dirent=no
42ecbf5e 16409for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16410 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16412$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16414 $as_echo_n "(cached) " >&6
16415else
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16417/* end confdefs.h. */
252b5132
RH
16418#include <sys/types.h>
16419#include <$ac_hdr>
42ecbf5e
DJ
16420
16421int
16422main ()
16423{
16424if ((DIR *) 0)
16425return 0;
16426 ;
16427 return 0;
16428}
16429_ACEOF
81ecdfbb 16430if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16431 eval "$as_ac_Header=yes"
16432else
81ecdfbb 16433 eval "$as_ac_Header=no"
42ecbf5e 16434fi
81ecdfbb 16435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16436fi
81ecdfbb
RW
16437eval ac_res=\$$as_ac_Header
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16439$as_echo "$ac_res" >&6; }
16440eval as_val=\$$as_ac_Header
16441 if test "x$as_val" = x""yes; then :
42ecbf5e 16442 cat >>confdefs.h <<_ACEOF
81ecdfbb 16443#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16444_ACEOF
16445
16446ac_header_dirent=$ac_hdr; break
d15b04bd 16447fi
42ecbf5e 16448
d15b04bd
L
16449done
16450# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16451if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16453$as_echo_n "checking for library containing opendir... " >&6; }
16454if test "${ac_cv_search_opendir+set}" = set; then :
16455 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16456else
16457 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16459/* end confdefs.h. */
16460
81ecdfbb
RW
16461/* Override any GCC internal prototype to avoid an error.
16462 Use char because int might match the return type of a GCC
16463 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16464#ifdef __cplusplus
16465extern "C"
16466#endif
42ecbf5e
DJ
16467char opendir ();
16468int
16469main ()
16470{
81ecdfbb 16471return opendir ();
42ecbf5e
DJ
16472 ;
16473 return 0;
16474}
16475_ACEOF
81ecdfbb
RW
16476for ac_lib in '' dir; do
16477 if test -z "$ac_lib"; then
16478 ac_res="none required"
16479 else
16480 ac_res=-l$ac_lib
42ecbf5e 16481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16482 fi
16483 if ac_fn_c_try_link "$LINENO"; then :
16484 ac_cv_search_opendir=$ac_res
16485fi
16486rm -f core conftest.err conftest.$ac_objext \
16487 conftest$ac_exeext
16488 if test "${ac_cv_search_opendir+set}" = set; then :
16489 break
16490fi
16491done
16492if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16493
42ecbf5e 16494else
81ecdfbb 16495 ac_cv_search_opendir=no
252b5132 16496fi
81ecdfbb 16497rm conftest.$ac_ext
42ecbf5e
DJ
16498LIBS=$ac_func_search_save_LIBS
16499fi
81ecdfbb
RW
16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16501$as_echo "$ac_cv_search_opendir" >&6; }
16502ac_res=$ac_cv_search_opendir
16503if test "$ac_res" != no; then :
16504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16505
d15b04bd 16506fi
252b5132
RH
16507
16508else
81ecdfbb
RW
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16510$as_echo_n "checking for library containing opendir... " >&6; }
16511if test "${ac_cv_search_opendir+set}" = set; then :
16512 $as_echo_n "(cached) " >&6
252b5132 16513else
42ecbf5e 16514 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16516/* end confdefs.h. */
16517
81ecdfbb
RW
16518/* Override any GCC internal prototype to avoid an error.
16519 Use char because int might match the return type of a GCC
16520 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16521#ifdef __cplusplus
16522extern "C"
16523#endif
42ecbf5e
DJ
16524char opendir ();
16525int
16526main ()
16527{
81ecdfbb 16528return opendir ();
42ecbf5e
DJ
16529 ;
16530 return 0;
16531}
16532_ACEOF
81ecdfbb
RW
16533for ac_lib in '' x; do
16534 if test -z "$ac_lib"; then
16535 ac_res="none required"
16536 else
16537 ac_res=-l$ac_lib
42ecbf5e 16538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16539 fi
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 ac_cv_search_opendir=$ac_res
16542fi
16543rm -f core conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext
16545 if test "${ac_cv_search_opendir+set}" = set; then :
16546 break
16547fi
16548done
16549if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16550
42ecbf5e 16551else
81ecdfbb 16552 ac_cv_search_opendir=no
252b5132 16553fi
81ecdfbb 16554rm conftest.$ac_ext
42ecbf5e 16555LIBS=$ac_func_search_save_LIBS
252b5132 16556fi
81ecdfbb
RW
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16558$as_echo "$ac_cv_search_opendir" >&6; }
16559ac_res=$ac_cv_search_opendir
16560if test "$ac_res" != no; then :
16561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16562
d15b04bd 16563fi
252b5132
RH
16564
16565fi
16566
16567
2aec968d
L
16568for ac_header in stdlib.h unistd.h
16569do :
16570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16571ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16572eval as_val=\$$as_ac_Header
16573 if test "x$as_val" = x""yes; then :
16574 cat >>confdefs.h <<_ACEOF
16575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16576_ACEOF
16577
16578fi
16579
16580done
16581
16582for ac_func in getpagesize
16583do :
16584 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16585if test "x$ac_cv_func_getpagesize" = x""yes; then :
16586 cat >>confdefs.h <<_ACEOF
16587#define HAVE_GETPAGESIZE 1
16588_ACEOF
16589
16590fi
16591done
16592
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16594$as_echo_n "checking for working mmap... " >&6; }
16595if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16596 $as_echo_n "(cached) " >&6
16597else
16598 if test "$cross_compiling" = yes; then :
16599 ac_cv_func_mmap_fixed_mapped=no
16600else
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h. */
16603$ac_includes_default
16604/* malloc might have been renamed as rpl_malloc. */
16605#undef malloc
16606
16607/* Thanks to Mike Haertel and Jim Avera for this test.
16608 Here is a matrix of mmap possibilities:
16609 mmap private not fixed
16610 mmap private fixed at somewhere currently unmapped
16611 mmap private fixed at somewhere already mapped
16612 mmap shared not fixed
16613 mmap shared fixed at somewhere currently unmapped
16614 mmap shared fixed at somewhere already mapped
16615 For private mappings, we should verify that changes cannot be read()
16616 back from the file, nor mmap's back from the file at a different
16617 address. (There have been systems where private was not correctly
16618 implemented like the infamous i386 svr4.0, and systems where the
16619 VM page cache was not coherent with the file system buffer cache
16620 like early versions of FreeBSD and possibly contemporary NetBSD.)
16621 For shared mappings, we should conversely verify that changes get
16622 propagated back to all the places they're supposed to be.
16623
16624 Grep wants private fixed already mapped.
16625 The main things grep needs to know about mmap are:
16626 * does it exist and is it safe to write into the mmap'd area
16627 * how to use it (BSD variants) */
16628
16629#include <fcntl.h>
16630#include <sys/mman.h>
16631
16632#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16633char *malloc ();
16634#endif
16635
16636/* This mess was copied from the GNU getpagesize.h. */
16637#ifndef HAVE_GETPAGESIZE
16638/* Assume that all systems that can run configure have sys/param.h. */
16639# ifndef HAVE_SYS_PARAM_H
16640# define HAVE_SYS_PARAM_H 1
16641# endif
16642
16643# ifdef _SC_PAGESIZE
16644# define getpagesize() sysconf(_SC_PAGESIZE)
16645# else /* no _SC_PAGESIZE */
16646# ifdef HAVE_SYS_PARAM_H
16647# include <sys/param.h>
16648# ifdef EXEC_PAGESIZE
16649# define getpagesize() EXEC_PAGESIZE
16650# else /* no EXEC_PAGESIZE */
16651# ifdef NBPG
16652# define getpagesize() NBPG * CLSIZE
16653# ifndef CLSIZE
16654# define CLSIZE 1
16655# endif /* no CLSIZE */
16656# else /* no NBPG */
16657# ifdef NBPC
16658# define getpagesize() NBPC
16659# else /* no NBPC */
16660# ifdef PAGESIZE
16661# define getpagesize() PAGESIZE
16662# endif /* PAGESIZE */
16663# endif /* no NBPC */
16664# endif /* no NBPG */
16665# endif /* no EXEC_PAGESIZE */
16666# else /* no HAVE_SYS_PARAM_H */
16667# define getpagesize() 8192 /* punt totally */
16668# endif /* no HAVE_SYS_PARAM_H */
16669# endif /* no _SC_PAGESIZE */
16670
16671#endif /* no HAVE_GETPAGESIZE */
16672
16673int
16674main ()
16675{
16676 char *data, *data2, *data3;
16677 int i, pagesize;
16678 int fd;
16679
16680 pagesize = getpagesize ();
16681
16682 /* First, make a file with some known garbage in it. */
16683 data = (char *) malloc (pagesize);
16684 if (!data)
16685 return 1;
16686 for (i = 0; i < pagesize; ++i)
16687 *(data + i) = rand ();
16688 umask (0);
16689 fd = creat ("conftest.mmap", 0600);
16690 if (fd < 0)
16691 return 1;
16692 if (write (fd, data, pagesize) != pagesize)
16693 return 1;
16694 close (fd);
16695
16696 /* Next, try to mmap the file at a fixed address which already has
16697 something else allocated at it. If we can, also make sure that
16698 we see the same garbage. */
16699 fd = open ("conftest.mmap", O_RDWR);
16700 if (fd < 0)
16701 return 1;
16702 data2 = (char *) malloc (2 * pagesize);
16703 if (!data2)
16704 return 1;
16705 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16708 return 1;
16709 for (i = 0; i < pagesize; ++i)
16710 if (*(data + i) != *(data2 + i))
16711 return 1;
16712
16713 /* Finally, make sure that changes to the mapped area do not
16714 percolate back to the file as seen by read(). (This is a bug on
16715 some variants of i386 svr4.0.) */
16716 for (i = 0; i < pagesize; ++i)
16717 *(data2 + i) = *(data2 + i) + 1;
16718 data3 = (char *) malloc (pagesize);
16719 if (!data3)
16720 return 1;
16721 if (read (fd, data3, pagesize) != pagesize)
16722 return 1;
16723 for (i = 0; i < pagesize; ++i)
16724 if (*(data + i) != *(data3 + i))
16725 return 1;
16726 close (fd);
16727 return 0;
16728}
16729_ACEOF
16730if ac_fn_c_try_run "$LINENO"; then :
16731 ac_cv_func_mmap_fixed_mapped=yes
16732else
16733 ac_cv_func_mmap_fixed_mapped=no
16734fi
16735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16736 conftest.$ac_objext conftest.beam conftest.$ac_ext
16737fi
16738
16739fi
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16741$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16742if test $ac_cv_func_mmap_fixed_mapped = yes; then
16743
16744$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16745
16746fi
16747rm -f conftest.mmap
16748
16749
5d3236ee
DK
16750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16751$as_echo_n "checking for library containing dlopen... " >&6; }
16752if test "${ac_cv_search_dlopen+set}" = set; then :
16753 $as_echo_n "(cached) " >&6
16754else
16755 ac_func_search_save_LIBS=$LIBS
16756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h. */
16758
16759/* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16762#ifdef __cplusplus
16763extern "C"
16764#endif
16765char dlopen ();
16766int
16767main ()
16768{
16769return dlopen ();
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774for ac_lib in '' dl; do
16775 if test -z "$ac_lib"; then
16776 ac_res="none required"
16777 else
16778 ac_res=-l$ac_lib
16779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16780 fi
16781 if ac_fn_c_try_link "$LINENO"; then :
16782 ac_cv_search_dlopen=$ac_res
16783fi
16784rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext
16786 if test "${ac_cv_search_dlopen+set}" = set; then :
16787 break
16788fi
16789done
16790if test "${ac_cv_search_dlopen+set}" = set; then :
16791
16792else
16793 ac_cv_search_dlopen=no
16794fi
16795rm conftest.$ac_ext
16796LIBS=$ac_func_search_save_LIBS
16797fi
16798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16799$as_echo "$ac_cv_search_dlopen" >&6; }
16800ac_res=$ac_cv_search_dlopen
16801if test "$ac_res" != no; then :
16802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16803
3917d5d5
DK
16804fi
16805
b879806f 16806 if test x$plugins = xyes; then
5d3236ee
DK
16807 ENABLE_PLUGINS_TRUE=
16808 ENABLE_PLUGINS_FALSE='#'
16809else
16810 ENABLE_PLUGINS_TRUE='#'
16811 ENABLE_PLUGINS_FALSE=
16812fi
16813
16814
02ecc8e9
L
16815# Check whether --enable-initfini-array was given.
16816if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
16817 enableval=$enable_initfini_array; case "${enableval}" in
16818 yes|no) ;;
16819 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16820 esac
02ecc8e9 16821else
26e3a0c9 16822 enable_initfini_array=yes
02ecc8e9
L
16823fi
16824
16825
16826if test $enable_initfini_array = yes; then
16827
16828$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16829
16830fi
16831
81ecdfbb
RW
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16833$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16834if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
34875e64 16836else
81ecdfbb 16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16838/* end confdefs.h. */
34875e64 16839#include <unistd.h>
42ecbf5e
DJ
16840int
16841main ()
16842{
34875e64 16843extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16844 ;
16845 return 0;
16846}
16847_ACEOF
81ecdfbb 16848if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16849 ld_cv_decl_getopt_unistd_h=yes
16850else
81ecdfbb 16851 ld_cv_decl_getopt_unistd_h=no
34875e64 16852fi
81ecdfbb 16853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16854fi
16855
81ecdfbb
RW
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16857$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16858if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16859
81ecdfbb 16860$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16861
16862fi
42ecbf5e 16863
252b5132
RH
16864
16865case "${host}" in
a8100d5b 16866*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16867
81ecdfbb 16868$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16869 ;;
16870esac
16871
81ecdfbb
RW
16872ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16873if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16874 ac_have_decl=1
252b5132 16875else
81ecdfbb
RW
16876 ac_have_decl=0
16877fi
502bdb00 16878
81ecdfbb
RW
16879cat >>confdefs.h <<_ACEOF
16880#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16881_ACEOF
81ecdfbb
RW
16882ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16883if test "x$ac_cv_have_decl_free" = x""yes; then :
16884 ac_have_decl=1
252b5132 16885else
81ecdfbb 16886 ac_have_decl=0
252b5132
RH
16887fi
16888
502bdb00 16889cat >>confdefs.h <<_ACEOF
81ecdfbb 16890#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16891_ACEOF
81ecdfbb
RW
16892ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16893if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16894 ac_have_decl=1
16895else
16896 ac_have_decl=0
16897fi
42ecbf5e 16898
81ecdfbb
RW
16899cat >>confdefs.h <<_ACEOF
16900#define HAVE_DECL_SBRK $ac_have_decl
16901_ACEOF
16902ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16903if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16904 ac_have_decl=1
16905else
16906 ac_have_decl=0
16907fi
502bdb00 16908
81ecdfbb
RW
16909cat >>confdefs.h <<_ACEOF
16910#define HAVE_DECL_GETENV $ac_have_decl
16911_ACEOF
16912ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16913if test "x$ac_cv_have_decl_environ" = x""yes; then :
16914 ac_have_decl=1
502bdb00 16915else
81ecdfbb
RW
16916 ac_have_decl=0
16917fi
16918
16919cat >>confdefs.h <<_ACEOF
16920#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16921_ACEOF
252b5132 16922
252b5132 16923
597e2591
ILT
16924# When converting linker scripts into strings for use in emulation
16925# files, use astring.sed if the compiler supports ANSI string
16926# concatenation, or ostring.sed otherwise. This is to support the
16927# broken Microsoft MSVC compiler, which limits the length of string
16928# constants, while still supporting pre-ANSI compilers which do not
16929# support string concatenation.
81ecdfbb
RW
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16931$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16932if test "${ld_cv_string_concatenation+set}" = set; then :
16933 $as_echo_n "(cached) " >&6
42ecbf5e 16934else
81ecdfbb 16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16936/* end confdefs.h. */
81ecdfbb 16937
314e9a4e
L
16938int
16939main ()
16940{
81ecdfbb 16941char *a = "a" "a";
314e9a4e
L
16942 ;
16943 return 0;
16944}
16945_ACEOF
81ecdfbb
RW
16946if ac_fn_c_try_compile "$LINENO"; then :
16947 ld_cv_string_concatenation=yes
314e9a4e 16948else
81ecdfbb 16949 ld_cv_string_concatenation=no
314e9a4e 16950fi
81ecdfbb 16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16952fi
81ecdfbb
RW
16953
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16955$as_echo "$ld_cv_string_concatenation" >&6; }
16956if test "$ld_cv_string_concatenation" = "yes"; then
16957 STRINGIFY=astring.sed
16958else
16959 STRINGIFY=ostring.sed
314e9a4e 16960fi
81ecdfbb
RW
16961
16962
16963# target-specific stuff:
16964
16965all_targets=
16966EMUL=
16967all_emuls=
16968all_emul_extras=
16969all_libpath=
16970
16971rm -f tdirs
16972
bf9ef603 16973# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 16974# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
16975if test x${want64} = xfalse; then
16976 # The cast to long int works around a bug in the HP C Compiler
16977# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16978# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16979# This bug is HP SR number 8606223364.
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16981$as_echo_n "checking size of void *... " >&6; }
16982if test "${ac_cv_sizeof_void_p+set}" = set; then :
16983 $as_echo_n "(cached) " >&6
16984else
16985 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16986
16987else
16988 if test "$ac_cv_type_void_p" = yes; then
16989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16991{ as_fn_set_status 77
16992as_fn_error "cannot compute sizeof (void *)
16993See \`config.log' for more details." "$LINENO" 5; }; }
16994 else
16995 ac_cv_sizeof_void_p=0
16996 fi
16997fi
16998
16999fi
17000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17001$as_echo "$ac_cv_sizeof_void_p" >&6; }
17002
17003
17004
17005cat >>confdefs.h <<_ACEOF
17006#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17007_ACEOF
17008
17009
17010 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17011 want64=true
17012 fi
17013fi
17014
c58212ea
L
17015elf_list_options=FALSE
17016elf_shlib_list_options=FALSE
17017elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17018for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17019do
17020 if test "$targ_alias" = "all"; then
17021 all_targets=true
82d8e420
L
17022 elf_list_options=TRUE
17023 elf_shlib_list_options=TRUE
17024 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17025 else
17026 # Canonicalize the secondary target names.
17027 result=`$ac_config_sub $targ_alias 2>/dev/null`
17028 if test -n "$result"; then
17029 targ=$result
17030 else
17031 targ=$targ_alias
17032 fi
17033
17034 . ${srcdir}/configure.tgt
17035
17036 if test "$targ" = "$target"; then
17037 EMUL=$targ_emul
17038 fi
17039
17040 if test x${want64} = xfalse; then
17041 . ${srcdir}/../bfd/config.bfd
17042 fi
17043
17044 if test x${want64} = xtrue; then
17045 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17046 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17047 fi
17048
17049 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17050 case " $all_emuls " in
8c3fff59
AM
17051 *" e${i}.o "*) ;;
17052 *)
17053 all_emuls="$all_emuls e${i}.o"
17054 eval result=\$tdir_$i
17055 test -z "$result" && result=$targ_alias
17056 echo tdir_$i=$result >> tdirs
c58212ea
L
17057 case "${i}" in
17058 *elf*)
17059 elf_list_options=TRUE
68880f31
CLT
17060 ;;
17061 *)
17062 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17063 elf_list_options=TRUE
17064 fi
17065 ;;
17066 esac
17067 if test "$elf_list_options" = "TRUE"; then
c58212ea
L
17068 . ${srcdir}/emulparams/${i}.sh
17069 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17070 elf_shlib_list_options=TRUE
17071 fi
17072 if test x${PLT_UNWIND} = xyes; then
17073 elf_plt_unwind_list_options=TRUE
17074 fi
68880f31 17075 fi
c58212ea 17076 ;;
81ecdfbb
RW
17077 esac
17078 done
17079
17080 for i in $targ_emul $targ_extra_libpath; do
17081 case " $all_libpath " in
17082 *" ${i} "*) ;;
17083 *)
17084 if test -z "$all_libpath"; then
17085 all_libpath=${i}
17086 else
17087 all_libpath="$all_libpath ${i}"
17088 fi
17089 ;;
17090 esac
17091 done
17092
17093 for i in $targ_extra_ofiles; do
17094 case " $all_emul_extras " in
17095 *" ${i} "*) ;;
17096 *)
17097 all_emul_extras="$all_emul_extras ${i}"
17098 ;;
17099 esac
17100 done
5063daf7 17101
81ecdfbb
RW
17102 fi
17103done
17104
6c3bc0f8
NC
17105if test x$ac_default_compressed_debug_sections == xyes ; then
17106
17107$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17108
17109fi
17110
81ecdfbb
RW
17111
17112
c58212ea
L
17113
17114
17115
81ecdfbb
RW
17116TDIRS=tdirs
17117
17118
17119if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17120 if test x${want64} = xtrue; then
17121 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17122 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17123 else
17124 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17125 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17126 fi
42ecbf5e
DJ
17127else
17128 EMULATION_OFILES=$all_emuls
17129 EMUL_EXTRA_OFILES=$all_emul_extras
17130fi
17131
17132
17133
17134
17135EMULATION_LIBPATH=$all_libpath
17136
17137
17138if test x${enable_static} = xno; then
17139 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17140else
17141 TESTBFDLIB="../bfd/.libs/libbfd.a"
17142fi
17143
17144
17145target_vendor=${target_vendor=$host_vendor}
17146case "$target_vendor" in
17147 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17148 *) EXTRA_SHLIB_EXTENSION= ;;
17149esac
17150
17151case "$target_os" in
17152 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17153esac
17154
17155if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17156
17157cat >>confdefs.h <<_ACEOF
17158#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17159_ACEOF
17160
17161fi
17162
108a6f8e
CD
17163
17164
17165
17166
31dd3154 17167
81ecdfbb 17168ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17169
42ecbf5e
DJ
17170cat >confcache <<\_ACEOF
17171# This file is a shell script that caches the results of configure
17172# tests run on this system so they can be shared between configure
17173# scripts and configure runs, see configure's option --config-cache.
17174# It is not useful on other systems. If it contains results you don't
17175# want to keep, you may remove or edit it.
17176#
17177# config.status only pays attention to the cache file if you give it
17178# the --recheck option to rerun configure.
17179#
17180# `ac_cv_env_foo' variables (set or unset) will be overridden when
17181# loading this file, other *unset* `ac_cv_foo' will be assigned the
17182# following values.
17183
17184_ACEOF
17185
17186# The following way of writing the cache mishandles newlines in values,
17187# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17188# So, we kill variables containing newlines.
42ecbf5e
DJ
17189# Ultrix sh set writes to stderr and can't be redirected directly,
17190# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17191(
17192 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17193 eval ac_val=\$$ac_var
17194 case $ac_val in #(
17195 *${as_nl}*)
17196 case $ac_var in #(
17197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17198$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17199 esac
17200 case $ac_var in #(
17201 _ | IFS | as_nl) ;; #(
17202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17203 *) { eval $ac_var=; unset $ac_var;} ;;
17204 esac ;;
17205 esac
17206 done
17207
42ecbf5e 17208 (set) 2>&1 |
81ecdfbb
RW
17209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17210 *${as_nl}ac_space=\ *)
17211 # `set' does not quote correctly, so add quotes: double-quote
17212 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17213 sed -n \
17214 "s/'/'\\\\''/g;
17215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17216 ;; #(
42ecbf5e
DJ
17217 *)
17218 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17220 ;;
81ecdfbb
RW
17221 esac |
17222 sort
17223) |
42ecbf5e 17224 sed '
81ecdfbb 17225 /^ac_cv_env_/b end
42ecbf5e 17226 t clear
81ecdfbb 17227 :clear
42ecbf5e
DJ
17228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17229 t end
81ecdfbb
RW
17230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17231 :end' >>confcache
17232if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17233 if test -w "$cache_file"; then
17234 test "x$cache_file" != "x/dev/null" &&
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17236$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17237 cat confcache >$cache_file
17238 else
81ecdfbb
RW
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17240$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17241 fi
17242fi
17243rm -f confcache
17244
17245test "x$prefix" = xNONE && prefix=$ac_default_prefix
17246# Let make expand exec_prefix.
17247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17248
42ecbf5e
DJ
17249DEFS=-DHAVE_CONFIG_H
17250
17251ac_libobjs=
17252ac_ltlibobjs=
17253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17254 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17256 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17258 # will be set to the directory where LIBOBJS objects are built.
17259 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17260 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17261done
17262LIBOBJS=$ac_libobjs
17263
17264LTLIBOBJS=$ac_ltlibobjs
17265
17266
17267if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17268 as_fn_error "conditional \"AMDEP\" was never defined.
17269Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17270fi
17271if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17272 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17273Usually this means the macro was only invoked conditionally." "$LINENO" 5
17274fi
17275 if test -n "$EXEEXT"; then
17276 am__EXEEXT_TRUE=
17277 am__EXEEXT_FALSE='#'
17278else
17279 am__EXEEXT_TRUE='#'
17280 am__EXEEXT_FALSE=
42ecbf5e 17281fi
81ecdfbb 17282
64ac50ac
RW
17283if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17284 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17285Usually this means the macro was only invoked conditionally." "$LINENO" 5
17286fi
3cb62297
L
17287if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17288 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17289Usually this means the macro was only invoked conditionally." "$LINENO" 5
17290fi
42ecbf5e 17291if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17292 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17293Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17294fi
d5fbea21 17295if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17296 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17297Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17298fi
5d3236ee
DK
17299if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17300 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17301Usually this means the macro was only invoked conditionally." "$LINENO" 5
17302fi
42ecbf5e
DJ
17303
17304: ${CONFIG_STATUS=./config.status}
81ecdfbb 17305ac_write_fail=0
42ecbf5e
DJ
17306ac_clean_files_save=$ac_clean_files
17307ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17309$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17310as_write_fail=0
17311cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17312#! $SHELL
17313# Generated by $as_me.
17314# Run this file to recreate the current configuration.
17315# Compiler output produced by configure, useful for debugging
17316# configure, is in config.log if it exists.
17317
17318debug=false
17319ac_cs_recheck=false
17320ac_cs_silent=false
42ecbf5e 17321
81ecdfbb
RW
17322SHELL=\${CONFIG_SHELL-$SHELL}
17323export SHELL
17324_ASEOF
17325cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17326## -------------------- ##
17327## M4sh Initialization. ##
17328## -------------------- ##
42ecbf5e 17329
81ecdfbb
RW
17330# Be more Bourne compatible
17331DUALCASE=1; export DUALCASE # for MKS sh
17332if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17333 emulate sh
17334 NULLCMD=:
81ecdfbb 17335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17336 # is contrary to our usage. Disable this feature.
17337 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17338 setopt NO_GLOB_SUBST
17339else
17340 case `(set -o) 2>/dev/null` in #(
17341 *posix*) :
17342 set -o posix ;; #(
17343 *) :
17344 ;;
17345esac
42ecbf5e 17346fi
42ecbf5e 17347
81ecdfbb
RW
17348
17349as_nl='
17350'
17351export as_nl
17352# Printing a long string crashes Solaris 7 /usr/bin/printf.
17353as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17356# Prefer a ksh shell builtin over an external printf program on Solaris,
17357# but without wasting forks for bash or zsh.
17358if test -z "$BASH_VERSION$ZSH_VERSION" \
17359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17360 as_echo='print -r --'
17361 as_echo_n='print -rn --'
17362elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17363 as_echo='printf %s\n'
17364 as_echo_n='printf %s'
17365else
17366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17367 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17368 as_echo_n='/usr/ucb/echo -n'
17369 else
17370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17371 as_echo_n_body='eval
17372 arg=$1;
17373 case $arg in #(
17374 *"$as_nl"*)
17375 expr "X$arg" : "X\\(.*\\)$as_nl";
17376 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17377 esac;
17378 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17379 '
17380 export as_echo_n_body
17381 as_echo_n='sh -c $as_echo_n_body as_echo'
17382 fi
17383 export as_echo_body
17384 as_echo='sh -c $as_echo_body as_echo'
17385fi
17386
17387# The user is always right.
17388if test "${PATH_SEPARATOR+set}" != set; then
17389 PATH_SEPARATOR=:
17390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17392 PATH_SEPARATOR=';'
17393 }
42ecbf5e
DJ
17394fi
17395
17396
81ecdfbb
RW
17397# IFS
17398# We need space, tab and new line, in precisely that order. Quoting is
17399# there to prevent editors from complaining about space-tab.
17400# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17401# splitting by setting IFS to empty value.)
17402IFS=" "" $as_nl"
17403
17404# Find who we are. Look in the path if we contain no directory separator.
17405case $0 in #((
17406 *[\\/]* ) as_myself=$0 ;;
17407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17408for as_dir in $PATH
17409do
17410 IFS=$as_save_IFS
17411 test -z "$as_dir" && as_dir=.
17412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17413 done
17414IFS=$as_save_IFS
17415
17416 ;;
17417esac
17418# We did not find ourselves, most probably we were run as `sh COMMAND'
17419# in which case we are not to be found in the path.
17420if test "x$as_myself" = x; then
17421 as_myself=$0
17422fi
17423if test ! -f "$as_myself"; then
17424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17425 exit 1
17426fi
17427
17428# Unset variables that we do not need and which cause bugs (e.g. in
17429# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17430# suppresses any "Segmentation fault" message there. '((' could
17431# trigger a bug in pdksh 5.2.14.
17432for as_var in BASH_ENV ENV MAIL MAILPATH
17433do eval test x\${$as_var+set} = xset \
17434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17435done
42ecbf5e
DJ
17436PS1='$ '
17437PS2='> '
17438PS4='+ '
17439
17440# NLS nuisances.
81ecdfbb
RW
17441LC_ALL=C
17442export LC_ALL
17443LANGUAGE=C
17444export LANGUAGE
17445
17446# CDPATH.
17447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17448
17449
17450# as_fn_error ERROR [LINENO LOG_FD]
17451# ---------------------------------
17452# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17453# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17454# script with status $?, using 1 if that was 0.
17455as_fn_error ()
17456{
17457 as_status=$?; test $as_status -eq 0 && as_status=1
17458 if test "$3"; then
17459 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17461 fi
81ecdfbb
RW
17462 $as_echo "$as_me: error: $1" >&2
17463 as_fn_exit $as_status
17464} # as_fn_error
17465
17466
17467# as_fn_set_status STATUS
17468# -----------------------
17469# Set $? to STATUS, without forking.
17470as_fn_set_status ()
17471{
17472 return $1
17473} # as_fn_set_status
17474
17475# as_fn_exit STATUS
17476# -----------------
17477# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17478as_fn_exit ()
17479{
17480 set +e
17481 as_fn_set_status $1
17482 exit $1
17483} # as_fn_exit
17484
17485# as_fn_unset VAR
17486# ---------------
17487# Portably unset VAR.
17488as_fn_unset ()
17489{
17490 { eval $1=; unset $1;}
17491}
17492as_unset=as_fn_unset
17493# as_fn_append VAR VALUE
17494# ----------------------
17495# Append the text in VALUE to the end of the definition contained in VAR. Take
17496# advantage of any shell optimizations that allow amortized linear growth over
17497# repeated appends, instead of the typical quadratic growth present in naive
17498# implementations.
17499if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17500 eval 'as_fn_append ()
17501 {
17502 eval $1+=\$2
17503 }'
17504else
17505 as_fn_append ()
17506 {
17507 eval $1=\$$1\$2
17508 }
17509fi # as_fn_append
17510
17511# as_fn_arith ARG...
17512# ------------------
17513# Perform arithmetic evaluation on the ARGs, and store the result in the
17514# global $as_val. Take advantage of shells that can avoid forks. The arguments
17515# must be portable across $(()) and expr.
17516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17517 eval 'as_fn_arith ()
17518 {
17519 as_val=$(( $* ))
17520 }'
17521else
17522 as_fn_arith ()
17523 {
17524 as_val=`expr "$@" || test $? -eq 1`
17525 }
17526fi # as_fn_arith
17527
42ecbf5e 17528
81ecdfbb
RW
17529if expr a : '\(a\)' >/dev/null 2>&1 &&
17530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17531 as_expr=expr
17532else
17533 as_expr=false
17534fi
17535
81ecdfbb 17536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17537 as_basename=basename
17538else
17539 as_basename=false
17540fi
17541
81ecdfbb
RW
17542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17543 as_dirname=dirname
17544else
17545 as_dirname=false
17546fi
42ecbf5e 17547
81ecdfbb 17548as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17550 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17552$as_echo X/"$0" |
17553 sed '/^.*\/\([^/][^/]*\)\/*$/{
17554 s//\1/
17555 q
17556 }
17557 /^X\/\(\/\/\)$/{
17558 s//\1/
17559 q
17560 }
17561 /^X\/\(\/\).*/{
17562 s//\1/
17563 q
17564 }
17565 s/.*/./; q'`
42ecbf5e 17566
42ecbf5e
DJ
17567# Avoid depending upon Character Ranges.
17568as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17570as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17571as_cr_digits='0123456789'
17572as_cr_alnum=$as_cr_Letters$as_cr_digits
17573
81ecdfbb
RW
17574ECHO_C= ECHO_N= ECHO_T=
17575case `echo -n x` in #(((((
17576-n*)
17577 case `echo 'xy\c'` in
17578 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17579 xy) ECHO_C='\c';;
17580 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17581 ECHO_T=' ';;
17582 esac;;
17583*)
17584 ECHO_N='-n';;
42ecbf5e 17585esac
252b5132 17586
81ecdfbb
RW
17587rm -f conf$$ conf$$.exe conf$$.file
17588if test -d conf$$.dir; then
17589 rm -f conf$$.dir/conf$$.file
42ecbf5e 17590else
81ecdfbb
RW
17591 rm -f conf$$.dir
17592 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17593fi
81ecdfbb
RW
17594if (echo >conf$$.file) 2>/dev/null; then
17595 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17596 as_ln_s='ln -s'
81ecdfbb
RW
17597 # ... but there are two gotchas:
17598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17600 # In both cases, we have to default to `cp -p'.
17601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17602 as_ln_s='cp -p'
17603 elif ln conf$$.file conf$$ 2>/dev/null; then
17604 as_ln_s=ln
17605 else
17606 as_ln_s='cp -p'
252b5132 17607 fi
e5a52504 17608else
42ecbf5e 17609 as_ln_s='cp -p'
e5a52504 17610fi
81ecdfbb
RW
17611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17612rmdir conf$$.dir 2>/dev/null
17613
17614
17615# as_fn_mkdir_p
17616# -------------
17617# Create "$as_dir" as a directory, including parents if necessary.
17618as_fn_mkdir_p ()
17619{
17620
17621 case $as_dir in #(
17622 -*) as_dir=./$as_dir;;
17623 esac
17624 test -d "$as_dir" || eval $as_mkdir_p || {
17625 as_dirs=
17626 while :; do
17627 case $as_dir in #(
17628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17629 *) as_qdir=$as_dir;;
17630 esac
17631 as_dirs="'$as_qdir' $as_dirs"
17632 as_dir=`$as_dirname -- "$as_dir" ||
17633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17634 X"$as_dir" : 'X\(//\)[^/]' \| \
17635 X"$as_dir" : 'X\(//\)$' \| \
17636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17637$as_echo X"$as_dir" |
17638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17639 s//\1/
17640 q
17641 }
17642 /^X\(\/\/\)[^/].*/{
17643 s//\1/
17644 q
17645 }
17646 /^X\(\/\/\)$/{
17647 s//\1/
17648 q
17649 }
17650 /^X\(\/\).*/{
17651 s//\1/
17652 q
17653 }
17654 s/.*/./; q'`
17655 test -d "$as_dir" && break
17656 done
17657 test -z "$as_dirs" || eval "mkdir $as_dirs"
17658 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17659
252b5132 17660
81ecdfbb 17661} # as_fn_mkdir_p
42ecbf5e 17662if mkdir -p . 2>/dev/null; then
81ecdfbb 17663 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17664else
17665 test -d ./-p && rmdir ./-p
17666 as_mkdir_p=false
17667fi
252b5132 17668
81ecdfbb
RW
17669if test -x / >/dev/null 2>&1; then
17670 as_test_x='test -x'
17671else
17672 if ls -dL / >/dev/null 2>&1; then
17673 as_ls_L_option=L
17674 else
17675 as_ls_L_option=
17676 fi
17677 as_test_x='
17678 eval sh -c '\''
17679 if test -d "$1"; then
17680 test -d "$1/.";
17681 else
17682 case $1 in #(
17683 -*)set "./$1";;
17684 esac;
17685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17686 ???[sx]*):;;*)false;;esac;fi
17687 '\'' sh
17688 '
17689fi
17690as_executable_p=$as_test_x
252b5132 17691
42ecbf5e
DJ
17692# Sed expression to map a string onto a valid CPP name.
17693as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17694
42ecbf5e
DJ
17695# Sed expression to map a string onto a valid variable name.
17696as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17697
e5a52504 17698
42ecbf5e 17699exec 6>&1
81ecdfbb
RW
17700## ----------------------------------- ##
17701## Main body of $CONFIG_STATUS script. ##
17702## ----------------------------------- ##
17703_ASEOF
17704test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17705
81ecdfbb
RW
17706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17707# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17708# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17709# values after options handling.
17710ac_log="
d8bd95ef 17711This file was extended by ld $as_me 2.26.51, which was
81ecdfbb 17712generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17713
17714 CONFIG_FILES = $CONFIG_FILES
17715 CONFIG_HEADERS = $CONFIG_HEADERS
17716 CONFIG_LINKS = $CONFIG_LINKS
17717 CONFIG_COMMANDS = $CONFIG_COMMANDS
17718 $ $0 $@
e5a52504 17719
81ecdfbb
RW
17720on `(hostname || uname -n) 2>/dev/null | sed 1q`
17721"
17722
42ecbf5e
DJ
17723_ACEOF
17724
81ecdfbb
RW
17725case $ac_config_files in *"
17726"*) set x $ac_config_files; shift; ac_config_files=$*;;
17727esac
e5a52504 17728
81ecdfbb
RW
17729case $ac_config_headers in *"
17730"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17731esac
42ecbf5e 17732
42ecbf5e 17733
81ecdfbb
RW
17734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17735# Files that config.status was made for.
17736config_files="$ac_config_files"
17737config_headers="$ac_config_headers"
17738config_commands="$ac_config_commands"
42ecbf5e 17739
81ecdfbb 17740_ACEOF
42ecbf5e 17741
81ecdfbb 17742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17743ac_cs_usage="\
81ecdfbb
RW
17744\`$as_me' instantiates files and other configuration actions
17745from templates according to the current configuration. Unless the files
17746and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17747
81ecdfbb 17748Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17749
17750 -h, --help print this help, then exit
81ecdfbb
RW
17751 -V, --version print version number and configuration settings, then exit
17752 -q, --quiet, --silent
17753 do not print progress messages
42ecbf5e
DJ
17754 -d, --debug don't remove temporary files
17755 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17756 --file=FILE[:TEMPLATE]
17757 instantiate the configuration file FILE
17758 --header=FILE[:TEMPLATE]
17759 instantiate the configuration header FILE
42ecbf5e
DJ
17760
17761Configuration files:
17762$config_files
17763
17764Configuration headers:
17765$config_headers
17766
17767Configuration commands:
17768$config_commands
17769
81ecdfbb 17770Report bugs to the package provider."
42ecbf5e 17771
81ecdfbb
RW
17772_ACEOF
17773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17774ac_cs_version="\\
d8bd95ef 17775ld config.status 2.26.51
81ecdfbb
RW
17776configured by $0, generated by GNU Autoconf 2.64,
17777 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17778
81ecdfbb 17779Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17780This config.status script is free software; the Free Software Foundation
17781gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17782
17783ac_pwd='$ac_pwd'
17784srcdir='$srcdir'
17785INSTALL='$INSTALL'
17786MKDIR_P='$MKDIR_P'
17787AWK='$AWK'
17788test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17789_ACEOF
17790
81ecdfbb
RW
17791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17792# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17793ac_need_defaults=:
17794while test $# != 0
17795do
17796 case $1 in
17797 --*=*)
81ecdfbb
RW
17798 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17799 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17800 ac_shift=:
252b5132 17801 ;;
81ecdfbb 17802 *)
42ecbf5e
DJ
17803 ac_option=$1
17804 ac_optarg=$2
17805 ac_shift=shift
252b5132 17806 ;;
42ecbf5e 17807 esac
252b5132 17808
42ecbf5e
DJ
17809 case $ac_option in
17810 # Handling of the options.
42ecbf5e
DJ
17811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17812 ac_cs_recheck=: ;;
81ecdfbb
RW
17813 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17814 $as_echo "$ac_cs_version"; exit ;;
17815 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17816 debug=: ;;
17817 --file | --fil | --fi | --f )
17818 $ac_shift
81ecdfbb
RW
17819 case $ac_optarg in
17820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17821 esac
17822 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17823 ac_need_defaults=false;;
17824 --header | --heade | --head | --hea )
17825 $ac_shift
81ecdfbb
RW
17826 case $ac_optarg in
17827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17828 esac
17829 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17830 ac_need_defaults=false;;
81ecdfbb
RW
17831 --he | --h)
17832 # Conflict between --help and --header
17833 as_fn_error "ambiguous option: \`$1'
17834Try \`$0 --help' for more information.";;
17835 --help | --hel | -h )
17836 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17839 ac_cs_silent=: ;;
252b5132 17840
42ecbf5e 17841 # This is an error.
81ecdfbb
RW
17842 -*) as_fn_error "unrecognized option: \`$1'
17843Try \`$0 --help' for more information." ;;
252b5132 17844
81ecdfbb
RW
17845 *) as_fn_append ac_config_targets " $1"
17846 ac_need_defaults=false ;;
252b5132 17847
42ecbf5e
DJ
17848 esac
17849 shift
17850done
d15b04bd 17851
42ecbf5e 17852ac_configure_extra_args=
e5a52504 17853
42ecbf5e
DJ
17854if $ac_cs_silent; then
17855 exec 6>/dev/null
17856 ac_configure_extra_args="$ac_configure_extra_args --silent"
17857fi
e5a52504 17858
42ecbf5e 17859_ACEOF
81ecdfbb 17860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17861if \$ac_cs_recheck; then
81ecdfbb
RW
17862 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17863 shift
17864 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17865 CONFIG_SHELL='$SHELL'
17866 export CONFIG_SHELL
17867 exec "\$@"
42ecbf5e
DJ
17868fi
17869
17870_ACEOF
81ecdfbb
RW
17871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17872exec 5>>config.log
17873{
17874 echo
17875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17876## Running $as_me. ##
17877_ASBOX
17878 $as_echo "$ac_log"
17879} >&5
42ecbf5e 17880
81ecdfbb
RW
17881_ACEOF
17882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17883#
81ecdfbb 17884# INIT-COMMANDS
252b5132 17885#
42ecbf5e 17886AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17887
17888
17889# The HP-UX ksh and POSIX shell print the target directory to stdout
17890# if CDPATH is set.
17891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17892
17893sed_quote_subst='$sed_quote_subst'
17894double_quote_subst='$double_quote_subst'
17895delay_variable_subst='$delay_variable_subst'
3725885a
RW
17896macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17897macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17898enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17899enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17900pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17901enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17902SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17903ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17904host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17905host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17906host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17907build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17908build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17909build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17910SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17911Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17912GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17913EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17914FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17915LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17916NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17917LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17918max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17919ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17920exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17921lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17922lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17923lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17924reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17925reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17926OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17927deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17928file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17929AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17930AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17931STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17932RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17933old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17934old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17935old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17936lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17937CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17938CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17939compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17940GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17941lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17942lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17943lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17944lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17945objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17946MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17947lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17948lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17949lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17950lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17951lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17952need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17953DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17954NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17955LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17956OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17957OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17958libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17959shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17960extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17961archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17962enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17963export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17964whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17965compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17966old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17967old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17968archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17969archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17970module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17971module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17972with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17973allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17974no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17975hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17976hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17977hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17978hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17979hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17980hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17981hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17982hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17983inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17984link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17985fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17986always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17987export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17988exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17989include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17990prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17991file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17992variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17993need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17994need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17995version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17996runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17997shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17998shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17999libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18000library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18001soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18002install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18003postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18004postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18005finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18006finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18007hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18008sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18009sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18010hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18011enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18012enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18013enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18014old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18015striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18016compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18017predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18018postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18019predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18020postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18021compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18022LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18023reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18024reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18025old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18026compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18027GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18028lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18029lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18030lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18031lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18032lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18033archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18034enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18035export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18036whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18037compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18038old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18039old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18040archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18041archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18042module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18043module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18044with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18045allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18046no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18047hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18048hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18049hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18050hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18051hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18052hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18053hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18054hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18055inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18056link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18057fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18058always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18059export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18060exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18061include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18062prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18063file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18064hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18065compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18066predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18067postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18068predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18069postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18070compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18071
18072LTCC='$LTCC'
18073LTCFLAGS='$LTCFLAGS'
18074compiler='$compiler_DEFAULT'
18075
3725885a
RW
18076# A function that is used when there is no print builtin or printf.
18077func_fallback_echo ()
18078{
18079 eval 'cat <<_LTECHO_EOF
18080\$1
18081_LTECHO_EOF'
18082}
18083
d7040cdb 18084# Quote evaled strings.
3725885a
RW
18085for var in SHELL \
18086ECHO \
18087SED \
d7040cdb
SE
18088GREP \
18089EGREP \
18090FGREP \
18091LD \
18092NM \
18093LN_S \
18094lt_SP2NL \
18095lt_NL2SP \
18096reload_flag \
b214d478 18097OBJDUMP \
d7040cdb
SE
18098deplibs_check_method \
18099file_magic_cmd \
18100AR \
18101AR_FLAGS \
18102STRIP \
18103RANLIB \
18104CC \
18105CFLAGS \
18106compiler \
18107lt_cv_sys_global_symbol_pipe \
18108lt_cv_sys_global_symbol_to_cdecl \
18109lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18110lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18111lt_prog_compiler_no_builtin_flag \
18112lt_prog_compiler_wl \
18113lt_prog_compiler_pic \
18114lt_prog_compiler_static \
18115lt_cv_prog_compiler_c_o \
18116need_locks \
b214d478
SE
18117DSYMUTIL \
18118NMEDIT \
18119LIPO \
18120OTOOL \
18121OTOOL64 \
d7040cdb
SE
18122shrext_cmds \
18123export_dynamic_flag_spec \
18124whole_archive_flag_spec \
18125compiler_needs_object \
18126with_gnu_ld \
18127allow_undefined_flag \
18128no_undefined_flag \
18129hardcode_libdir_flag_spec \
18130hardcode_libdir_flag_spec_ld \
18131hardcode_libdir_separator \
18132fix_srcfile_path \
18133exclude_expsyms \
18134include_expsyms \
18135file_list_spec \
18136variables_saved_for_relink \
18137libname_spec \
18138library_names_spec \
18139soname_spec \
3725885a 18140install_override_mode \
d7040cdb
SE
18141finish_eval \
18142old_striplib \
3cb62297
L
18143striplib \
18144compiler_lib_search_dirs \
18145predep_objects \
18146postdep_objects \
18147predeps \
18148postdeps \
18149compiler_lib_search_path \
18150LD_CXX \
18151reload_flag_CXX \
18152compiler_CXX \
18153lt_prog_compiler_no_builtin_flag_CXX \
18154lt_prog_compiler_wl_CXX \
18155lt_prog_compiler_pic_CXX \
18156lt_prog_compiler_static_CXX \
18157lt_cv_prog_compiler_c_o_CXX \
18158export_dynamic_flag_spec_CXX \
18159whole_archive_flag_spec_CXX \
18160compiler_needs_object_CXX \
18161with_gnu_ld_CXX \
18162allow_undefined_flag_CXX \
18163no_undefined_flag_CXX \
18164hardcode_libdir_flag_spec_CXX \
18165hardcode_libdir_flag_spec_ld_CXX \
18166hardcode_libdir_separator_CXX \
18167fix_srcfile_path_CXX \
18168exclude_expsyms_CXX \
18169include_expsyms_CXX \
18170file_list_spec_CXX \
18171compiler_lib_search_dirs_CXX \
18172predep_objects_CXX \
18173postdep_objects_CXX \
18174predeps_CXX \
18175postdeps_CXX \
18176compiler_lib_search_path_CXX; do
3725885a 18177 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18178 *[\\\\\\\`\\"\\\$]*)
3725885a 18179 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18180 ;;
18181 *)
18182 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18183 ;;
18184 esac
18185done
18186
18187# Double-quote double-evaled strings.
18188for var in reload_cmds \
18189old_postinstall_cmds \
18190old_postuninstall_cmds \
18191old_archive_cmds \
18192extract_expsyms_cmds \
18193old_archive_from_new_cmds \
18194old_archive_from_expsyms_cmds \
18195archive_cmds \
18196archive_expsym_cmds \
18197module_cmds \
18198module_expsym_cmds \
18199export_symbols_cmds \
18200prelink_cmds \
18201postinstall_cmds \
18202postuninstall_cmds \
18203finish_cmds \
18204sys_lib_search_path_spec \
3cb62297
L
18205sys_lib_dlsearch_path_spec \
18206reload_cmds_CXX \
18207old_archive_cmds_CXX \
18208old_archive_from_new_cmds_CXX \
18209old_archive_from_expsyms_cmds_CXX \
18210archive_cmds_CXX \
18211archive_expsym_cmds_CXX \
18212module_cmds_CXX \
18213module_expsym_cmds_CXX \
18214export_symbols_cmds_CXX \
18215prelink_cmds_CXX; do
3725885a 18216 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18217 *[\\\\\\\`\\"\\\$]*)
3725885a 18218 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18219 ;;
18220 *)
18221 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18222 ;;
18223 esac
18224done
18225
d7040cdb
SE
18226ac_aux_dir='$ac_aux_dir'
18227xsi_shell='$xsi_shell'
18228lt_shell_append='$lt_shell_append'
18229
18230# See if we are running on zsh, and set the options which allow our
18231# commands through without removal of \ escapes INIT.
18232if test -n "\${ZSH_VERSION+set}" ; then
18233 setopt NO_GLOB_SUBST
18234fi
18235
18236
18237 PACKAGE='$PACKAGE'
18238 VERSION='$VERSION'
18239 TIMESTAMP='$TIMESTAMP'
18240 RM='$RM'
18241 ofile='$ofile'
18242
18243
18244
3cb62297
L
18245
18246
20e95c23
DJ
18247# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18248 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18249 # from automake.
18250 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18251 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18252 LINGUAS="${LINGUAS-%UNSET%}"
18253
42ecbf5e
DJ
18254
18255_ACEOF
18256
81ecdfbb 18257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18258
81ecdfbb 18259# Handling of arguments.
42ecbf5e 18260for ac_config_target in $ac_config_targets
252b5132 18261do
81ecdfbb
RW
18262 case $ac_config_target in
18263 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18264 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18265 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb
RW
18266 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18267 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18268 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18269
18270 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18271 esac
18272done
18273
81ecdfbb 18274
42ecbf5e
DJ
18275# If the user did not use the arguments to specify the items to instantiate,
18276# then the envvar interface is used. Set only those that are not.
18277# We use the long form for the default assignment because of an extremely
18278# bizarre bug on SunOS 4.1.3.
18279if $ac_need_defaults; then
18280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18282 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18283fi
18284
18285# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18286# simply because there is no reason against having it here, and in addition,
42ecbf5e 18287# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18288# Hook for its removal unless debugging.
18289# Note that there is a small window in which the directory will not be cleaned:
18290# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18291$debug ||
18292{
81ecdfbb
RW
18293 tmp=
18294 trap 'exit_status=$?
18295 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18296' 0
18297 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18298}
42ecbf5e 18299# Create a (secure) tmp directory for tmp files.
e5a52504 18300
42ecbf5e 18301{
81ecdfbb 18302 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18303 test -n "$tmp" && test -d "$tmp"
18304} ||
18305{
81ecdfbb
RW
18306 tmp=./conf$$-$RANDOM
18307 (umask 077 && mkdir "$tmp")
18308} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18309
18310# Set up the scripts for CONFIG_FILES section.
18311# No need to generate them if there are no CONFIG_FILES.
18312# This happens for instance with `./config.status config.h'.
18313if test -n "$CONFIG_FILES"; then
18314
18315if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18316 ac_cs_awk_getline=:
18317 ac_cs_awk_pipe_init=
18318 ac_cs_awk_read_file='
18319 while ((getline aline < (F[key])) > 0)
18320 print(aline)
18321 close(F[key])'
18322 ac_cs_awk_pipe_fini=
18323else
18324 ac_cs_awk_getline=false
18325 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18326 ac_cs_awk_read_file='
18327 print "|#_!!_#|"
18328 print "cat " F[key] " &&"
18329 '$ac_cs_awk_pipe_init
18330 # The final `:' finishes the AND list.
18331 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18332fi
18333ac_cr=`echo X | tr X '\015'`
18334# On cygwin, bash can eat \r inside `` if the user requested igncr.
18335# But we know of no other shell where ac_cr would be empty at this
18336# point, so we can use a bashism as a fallback.
18337if test "x$ac_cr" = x; then
18338 eval ac_cr=\$\'\\r\'
18339fi
18340ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18341if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18342 ac_cs_awk_cr='\r'
18343else
18344 ac_cs_awk_cr=$ac_cr
18345fi
18346
18347echo 'BEGIN {' >"$tmp/subs1.awk" &&
18348_ACEOF
18349
18350# Create commands to substitute file output variables.
42ecbf5e 18351{
81ecdfbb
RW
18352 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18353 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18354 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18355 echo "_ACAWK" &&
18356 echo "_ACEOF"
18357} >conf$$files.sh &&
18358. ./conf$$files.sh ||
18359 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18360rm -f conf$$files.sh
e5a52504 18361
81ecdfbb
RW
18362{
18363 echo "cat >conf$$subs.awk <<_ACEOF" &&
18364 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18365 echo "_ACEOF"
18366} >conf$$subs.sh ||
18367 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18368ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18369ac_delim='%!_!# '
18370for ac_last_try in false false false false false :; do
18371 . ./conf$$subs.sh ||
18372 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18373
18374 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18375 if test $ac_delim_n = $ac_delim_num; then
18376 break
18377 elif $ac_last_try; then
18378 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18379 else
18380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18381 fi
18382done
18383rm -f conf$$subs.sh
18384
18385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18386cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18387_ACEOF
18388sed -n '
18389h
18390s/^/S["/; s/!.*/"]=/
18391p
18392g
18393s/^[^!]*!//
18394:repl
18395t repl
18396s/'"$ac_delim"'$//
18397t delim
18398:nl
18399h
18400s/\(.\{148\}\).*/\1/
18401t more1
18402s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18403p
18404n
18405b repl
18406:more1
18407s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18408p
18409g
18410s/.\{148\}//
18411t nl
18412:delim
18413h
18414s/\(.\{148\}\).*/\1/
18415t more2
18416s/["\\]/\\&/g; s/^/"/; s/$/"/
18417p
18418b
18419:more2
18420s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18421p
18422g
18423s/.\{148\}//
18424t delim
18425' <conf$$subs.awk | sed '
18426/^[^""]/{
18427 N
18428 s/\n//
18429}
18430' >>$CONFIG_STATUS || ac_write_fail=1
18431rm -f conf$$subs.awk
18432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18433_ACAWK
18434cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18435 for (key in S) S_is_set[key] = 1
18436 FS = "\a"
18437 \$ac_cs_awk_pipe_init
18438}
18439{
18440 line = $ 0
18441 nfields = split(line, field, "@")
18442 substed = 0
18443 len = length(field[1])
18444 for (i = 2; i < nfields; i++) {
18445 key = field[i]
18446 keylen = length(key)
18447 if (S_is_set[key]) {
18448 value = S[key]
18449 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18450 len += length(value) + length(field[++i])
18451 substed = 1
18452 } else
18453 len += 1 + keylen
18454 }
18455 if (nfields == 3 && !substed) {
18456 key = field[2]
18457 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18458 \$ac_cs_awk_read_file
18459 next
18460 }
18461 }
18462 print line
18463}
18464\$ac_cs_awk_pipe_fini
18465_ACAWK
18466_ACEOF
18467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18468if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18470else
18471 cat
18472fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18473 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18474_ACEOF
d15b04bd 18475
81ecdfbb
RW
18476# VPATH may cause trouble with some makes, so we remove $(srcdir),
18477# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18478# trailing colons and then remove the whole line if VPATH becomes empty
18479# (actually we leave an empty line to preserve line numbers).
18480if test "x$srcdir" = x.; then
18481 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18482s/:*\$(srcdir):*/:/
18483s/:*\${srcdir}:*/:/
18484s/:*@srcdir@:*/:/
18485s/^\([^=]*=[ ]*\):*/\1/
18486s/:*$//
18487s/^[^=]*=[ ]*$//
18488}'
18489fi
18490
18491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18492fi # test -n "$CONFIG_FILES"
42ecbf5e 18493
81ecdfbb
RW
18494# Set up the scripts for CONFIG_HEADERS section.
18495# No need to generate them if there are no CONFIG_HEADERS.
18496# This happens for instance with `./config.status Makefile'.
18497if test -n "$CONFIG_HEADERS"; then
18498cat >"$tmp/defines.awk" <<\_ACAWK ||
18499BEGIN {
18500_ACEOF
42ecbf5e 18501
81ecdfbb
RW
18502# Transform confdefs.h into an awk script `defines.awk', embedded as
18503# here-document in config.status, that substitutes the proper values into
18504# config.h.in to produce config.h.
252b5132 18505
81ecdfbb
RW
18506# Create a delimiter string that does not exist in confdefs.h, to ease
18507# handling of long lines.
18508ac_delim='%!_!# '
18509for ac_last_try in false false :; do
18510 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18511 if test -z "$ac_t"; then
18512 break
18513 elif $ac_last_try; then
18514 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18515 else
18516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18517 fi
18518done
18519
18520# For the awk script, D is an array of macro values keyed by name,
18521# likewise P contains macro parameters if any. Preserve backslash
18522# newline sequences.
18523
18524ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18525sed -n '
18526s/.\{148\}/&'"$ac_delim"'/g
18527t rset
18528:rset
18529s/^[ ]*#[ ]*define[ ][ ]*/ /
18530t def
18531d
18532:def
18533s/\\$//
18534t bsnl
18535s/["\\]/\\&/g
18536s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18537D["\1"]=" \3"/p
18538s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18539d
18540:bsnl
18541s/["\\]/\\&/g
18542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18543D["\1"]=" \3\\\\\\n"\\/p
18544t cont
18545s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18546t cont
18547d
18548:cont
18549n
18550s/.\{148\}/&'"$ac_delim"'/g
18551t clear
18552:clear
18553s/\\$//
18554t bsnlc
18555s/["\\]/\\&/g; s/^/"/; s/$/"/p
18556d
18557:bsnlc
18558s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18559b cont
18560' <confdefs.h | sed '
18561s/'"$ac_delim"'/"\\\
18562"/g' >>$CONFIG_STATUS || ac_write_fail=1
18563
18564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18565 for (key in D) D_is_set[key] = 1
18566 FS = "\a"
18567}
18568/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18569 line = \$ 0
18570 split(line, arg, " ")
18571 if (arg[1] == "#") {
18572 defundef = arg[2]
18573 mac1 = arg[3]
18574 } else {
18575 defundef = substr(arg[1], 2)
18576 mac1 = arg[2]
18577 }
18578 split(mac1, mac2, "(") #)
18579 macro = mac2[1]
18580 prefix = substr(line, 1, index(line, defundef) - 1)
18581 if (D_is_set[macro]) {
18582 # Preserve the white space surrounding the "#".
18583 print prefix "define", macro P[macro] D[macro]
18584 next
18585 } else {
18586 # Replace #undef with comments. This is necessary, for example,
18587 # in the case of _POSIX_SOURCE, which is predefined and required
18588 # on some systems where configure will not decide to define it.
18589 if (defundef == "undef") {
18590 print "/*", prefix defundef, macro, "*/"
18591 next
18592 }
18593 }
18594}
18595{ print }
18596_ACAWK
42ecbf5e 18597_ACEOF
81ecdfbb
RW
18598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18600fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18601
81ecdfbb
RW
18602
18603eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18604shift
18605for ac_tag
18606do
18607 case $ac_tag in
18608 :[FHLC]) ac_mode=$ac_tag; continue;;
18609 esac
18610 case $ac_mode$ac_tag in
18611 :[FHL]*:*);;
18612 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18613 :[FH]-) ac_tag=-:-;;
18614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18615 esac
18616 ac_save_IFS=$IFS
18617 IFS=:
18618 set x $ac_tag
18619 IFS=$ac_save_IFS
18620 shift
18621 ac_file=$1
18622 shift
18623
18624 case $ac_mode in
18625 :L) ac_source=$1;;
18626 :[FH])
18627 ac_file_inputs=
18628 for ac_f
18629 do
18630 case $ac_f in
18631 -) ac_f="$tmp/stdin";;
18632 *) # Look for the file first in the build tree, then in the source tree
18633 # (if the path is not absolute). The absolute path cannot be DOS-style,
18634 # because $ac_f cannot contain `:'.
18635 test -f "$ac_f" ||
18636 case $ac_f in
18637 [\\/$]*) false;;
18638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18639 esac ||
18640 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18641 esac
18642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18643 as_fn_append ac_file_inputs " '$ac_f'"
18644 done
18645
18646 # Let's still pretend it is `configure' which instantiates (i.e., don't
18647 # use $as_me), people would be surprised to read:
18648 # /* config.h. Generated by config.status. */
18649 configure_input='Generated from '`
18650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18651 `' by configure.'
18652 if test x"$ac_file" != x-; then
18653 configure_input="$ac_file. $configure_input"
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18655$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18656 fi
81ecdfbb
RW
18657 # Neutralize special characters interpreted by sed in replacement strings.
18658 case $configure_input in #(
18659 *\&* | *\|* | *\\* )
18660 ac_sed_conf_input=`$as_echo "$configure_input" |
18661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18662 *) ac_sed_conf_input=$configure_input;;
18663 esac
252b5132 18664
81ecdfbb
RW
18665 case $ac_tag in
18666 *:-:* | *:-) cat >"$tmp/stdin" \
18667 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18668 esac
18669 ;;
252b5132
RH
18670 esac
18671
81ecdfbb 18672 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18673$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18674 X"$ac_file" : 'X\(//\)[^/]' \| \
18675 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18677$as_echo X"$ac_file" |
18678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18679 s//\1/
18680 q
18681 }
18682 /^X\(\/\/\)[^/].*/{
18683 s//\1/
18684 q
18685 }
18686 /^X\(\/\/\)$/{
18687 s//\1/
18688 q
18689 }
18690 /^X\(\/\).*/{
18691 s//\1/
18692 q
18693 }
18694 s/.*/./; q'`
18695 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18696 ac_builddir=.
18697
81ecdfbb
RW
18698case "$ac_dir" in
18699.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18700*)
18701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18702 # A ".." for each directory in $ac_dir_suffix.
18703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18704 case $ac_top_builddir_sub in
18705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18707 esac ;;
18708esac
18709ac_abs_top_builddir=$ac_pwd
18710ac_abs_builddir=$ac_pwd$ac_dir_suffix
18711# for backward compatibility:
18712ac_top_builddir=$ac_top_build_prefix
252b5132 18713
42ecbf5e 18714case $srcdir in
81ecdfbb 18715 .) # We are building in place.
42ecbf5e 18716 ac_srcdir=.
81ecdfbb
RW
18717 ac_top_srcdir=$ac_top_builddir_sub
18718 ac_abs_top_srcdir=$ac_pwd ;;
18719 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18720 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18721 ac_top_srcdir=$srcdir
18722 ac_abs_top_srcdir=$srcdir ;;
18723 *) # Relative name.
18724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18725 ac_top_srcdir=$ac_top_build_prefix$srcdir
18726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18727esac
81ecdfbb 18728ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18729
252b5132 18730
81ecdfbb
RW
18731 case $ac_mode in
18732 :F)
18733 #
18734 # CONFIG_FILE
18735 #
e5a52504 18736
42ecbf5e
DJ
18737 case $INSTALL in
18738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18739 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18740 esac
18741 ac_MKDIR_P=$MKDIR_P
18742 case $MKDIR_P in
18743 [\\/$]* | ?:[\\/]* ) ;;
18744 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18745 esac
81ecdfbb 18746_ACEOF
e5a52504 18747
81ecdfbb
RW
18748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18749# If the template does not know about datarootdir, expand it.
18750# FIXME: This hack should be removed a few years after 2.60.
18751ac_datarootdir_hack=; ac_datarootdir_seen=
18752ac_sed_dataroot='
18753/datarootdir/ {
18754 p
18755 q
18756}
18757/@datadir@/p
18758/@docdir@/p
18759/@infodir@/p
18760/@localedir@/p
18761/@mandir@/p'
18762case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18763*datarootdir*) ac_datarootdir_seen=yes;;
18764*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18766$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18767_ACEOF
18768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769 ac_datarootdir_hack='
18770 s&@datadir@&$datadir&g
18771 s&@docdir@&$docdir&g
18772 s&@infodir@&$infodir&g
18773 s&@localedir@&$localedir&g
18774 s&@mandir@&$mandir&g
18775 s&\\\${datarootdir}&$datarootdir&g' ;;
18776esac
42ecbf5e 18777_ACEOF
81ecdfbb
RW
18778
18779# Neutralize VPATH when `$srcdir' = `.'.
18780# Shell code in configure.ac might set extrasub.
18781# FIXME: do we really want to maintain this feature?
18782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18784$extrasub
18785_ACEOF
81ecdfbb 18786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18787:t
18788/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18789s|@configure_input@|$ac_sed_conf_input|;t t
18790s&@top_builddir@&$ac_top_builddir_sub&;t t
18791s&@top_build_prefix@&$ac_top_build_prefix&;t t
18792s&@srcdir@&$ac_srcdir&;t t
18793s&@abs_srcdir@&$ac_abs_srcdir&;t t
18794s&@top_srcdir@&$ac_top_srcdir&;t t
18795s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18796s&@builddir@&$ac_builddir&;t t
18797s&@abs_builddir@&$ac_abs_builddir&;t t
18798s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18799s&@INSTALL@&$ac_INSTALL&;t t
18800s&@MKDIR_P@&$ac_MKDIR_P&;t t
18801$ac_datarootdir_hack
18802"
18803eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18804if $ac_cs_awk_getline; then
18805 $AWK -f "$tmp/subs.awk"
18806else
18807 $AWK -f "$tmp/subs.awk" | $SHELL
18808fi >$tmp/out \
18809 || as_fn_error "could not create $ac_file" "$LINENO" 5
18810
18811test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18812 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18815which seems to be undefined. Please make sure it is defined." >&5
18816$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18817which seems to be undefined. Please make sure it is defined." >&2;}
18818
18819 rm -f "$tmp/stdin"
42ecbf5e 18820 case $ac_file in
81ecdfbb
RW
18821 -) cat "$tmp/out" && rm -f "$tmp/out";;
18822 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18823 esac \
18824 || as_fn_error "could not create $ac_file" "$LINENO" 5
18825 ;;
18826 :H)
18827 #
18828 # CONFIG_HEADER
18829 #
42ecbf5e 18830 if test x"$ac_file" != x-; then
81ecdfbb
RW
18831 {
18832 $as_echo "/* $configure_input */" \
18833 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18834 } >"$tmp/config.h" \
18835 || as_fn_error "could not create $ac_file" "$LINENO" 5
18836 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18838$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18839 else
81ecdfbb
RW
18840 rm -f "$ac_file"
18841 mv "$tmp/config.h" "$ac_file" \
18842 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18843 fi
42ecbf5e 18844 else
81ecdfbb
RW
18845 $as_echo "/* $configure_input */" \
18846 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18847 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18848 fi
81ecdfbb
RW
18849# Compute "$ac_file"'s index in $config_headers.
18850_am_arg="$ac_file"
42ecbf5e
DJ
18851_am_stamp_count=1
18852for _am_header in $config_headers :; do
18853 case $_am_header in
81ecdfbb 18854 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18855 break ;;
18856 * )
18857 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18858 esac
18859done
81ecdfbb
RW
18860echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18861$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18862 X"$_am_arg" : 'X\(//\)[^/]' \| \
18863 X"$_am_arg" : 'X\(//\)$' \| \
18864 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18865$as_echo X"$_am_arg" |
18866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18867 s//\1/
18868 q
18869 }
18870 /^X\(\/\/\)[^/].*/{
18871 s//\1/
18872 q
18873 }
18874 /^X\(\/\/\)$/{
18875 s//\1/
18876 q
18877 }
18878 /^X\(\/\).*/{
18879 s//\1/
18880 q
18881 }
18882 s/.*/./; q'`/stamp-h$_am_stamp_count
18883 ;;
42ecbf5e 18884
81ecdfbb
RW
18885 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18886$as_echo "$as_me: executing $ac_file commands" >&6;}
18887 ;;
18888 esac
42ecbf5e
DJ
18889
18890
81ecdfbb
RW
18891 case $ac_file$ac_mode in
18892 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18893 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18894 # are listed without --file. Let's play safe and only enable the eval
18895 # if we detect the quoting.
18896 case $CONFIG_FILES in
18897 *\'*) eval set x "$CONFIG_FILES" ;;
18898 *) set x $CONFIG_FILES ;;
18899 esac
18900 shift
18901 for mf
18902 do
18903 # Strip MF so we end up with the name of the file.
18904 mf=`echo "$mf" | sed -e 's/:.*$//'`
18905 # Check whether this is an Automake generated Makefile or not.
18906 # We used to match only the files named `Makefile.in', but
18907 # some people rename them; so instead we look at the file content.
18908 # Grep'ing the first line is not enough: some people post-process
18909 # each Makefile.in and add a new line on top of each file to say so.
18910 # Grep'ing the whole file is not good either: AIX grep has a line
18911 # limit of 2048, but all sed's we know have understand at least 4000.
18912 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18913 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18914$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18915 X"$mf" : 'X\(//\)[^/]' \| \
18916 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18917 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18918$as_echo X"$mf" |
18919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18920 s//\1/
18921 q
18922 }
18923 /^X\(\/\/\)[^/].*/{
18924 s//\1/
18925 q
18926 }
18927 /^X\(\/\/\)$/{
18928 s//\1/
18929 q
18930 }
18931 /^X\(\/\).*/{
18932 s//\1/
18933 q
18934 }
18935 s/.*/./; q'`
18936 else
18937 continue
18938 fi
18939 # Extract the definition of DEPDIR, am__include, and am__quote
18940 # from the Makefile without running `make'.
18941 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18942 test -z "$DEPDIR" && continue
18943 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18944 test -z "am__include" && continue
18945 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18946 # When using ansi2knr, U may be empty or an underscore; expand it
18947 U=`sed -n 's/^U = //p' < "$mf"`
18948 # Find all dependency output files, they are included files with
18949 # $(DEPDIR) in their names. We invoke sed twice because it is the
18950 # simplest approach to changing $(DEPDIR) to its actual value in the
18951 # expansion.
18952 for file in `sed -n "
18953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18955 # Make sure the directory exists.
18956 test -f "$dirpart/$file" && continue
18957 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18958$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959 X"$file" : 'X\(//\)[^/]' \| \
18960 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18961 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18962$as_echo X"$file" |
18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18964 s//\1/
18965 q
18966 }
18967 /^X\(\/\/\)[^/].*/{
18968 s//\1/
18969 q
18970 }
18971 /^X\(\/\/\)$/{
18972 s//\1/
18973 q
18974 }
18975 /^X\(\/\).*/{
18976 s//\1/
18977 q
18978 }
18979 s/.*/./; q'`
18980 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18981 # echo "creating $dirpart/$file"
18982 echo '# dummy' > "$dirpart/$file"
42ecbf5e 18983 done
42ecbf5e 18984 done
81ecdfbb 18985}
d7040cdb 18986 ;;
81ecdfbb 18987 "libtool":C)
d7040cdb
SE
18988
18989 # See if we are running on zsh, and set the options which allow our
18990 # commands through without removal of \ escapes.
18991 if test -n "${ZSH_VERSION+set}" ; then
18992 setopt NO_GLOB_SUBST
18993 fi
18994
18995 cfgfile="${ofile}T"
18996 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18997 $RM "$cfgfile"
18998
18999 cat <<_LT_EOF >> "$cfgfile"
19000#! $SHELL
19001
19002# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19003# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19004# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19005# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19006#
b214d478 19007# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19008# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19009# Written by Gordon Matzigkeit, 1996
d7040cdb 19010#
b214d478 19011# This file is part of GNU Libtool.
d7040cdb 19012#
b214d478
SE
19013# GNU Libtool is free software; you can redistribute it and/or
19014# modify it under the terms of the GNU General Public License as
19015# published by the Free Software Foundation; either version 2 of
19016# the License, or (at your option) any later version.
d7040cdb 19017#
b214d478
SE
19018# As a special exception to the GNU General Public License,
19019# if you distribute this file as part of a program or library that
19020# is built using GNU Libtool, you may include this file under the
19021# same distribution terms that you use for the rest of that program.
d7040cdb 19022#
b214d478
SE
19023# GNU Libtool is distributed in the hope that it will be useful,
19024# but WITHOUT ANY WARRANTY; without even the implied warranty of
19025# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19026# GNU General Public License for more details.
d7040cdb 19027#
b214d478
SE
19028# You should have received a copy of the GNU General Public License
19029# along with GNU Libtool; see the file COPYING. If not, a copy
19030# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19031# obtained by writing to the Free Software Foundation, Inc.,
19032# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19033
19034
19035# The names of the tagged configurations supported by this script.
3cb62297 19036available_tags="CXX "
d7040cdb
SE
19037
19038# ### BEGIN LIBTOOL CONFIG
19039
19040# Which release of libtool.m4 was used?
19041macro_version=$macro_version
19042macro_revision=$macro_revision
19043
19044# Whether or not to build shared libraries.
19045build_libtool_libs=$enable_shared
19046
19047# Whether or not to build static libraries.
19048build_old_libs=$enable_static
19049
19050# What type of objects to build.
19051pic_mode=$pic_mode
19052
19053# Whether or not to optimize for fast installation.
19054fast_install=$enable_fast_install
19055
3725885a
RW
19056# Shell to use when invoking shell scripts.
19057SHELL=$lt_SHELL
19058
19059# An echo program that protects backslashes.
19060ECHO=$lt_ECHO
19061
d7040cdb
SE
19062# The host system.
19063host_alias=$host_alias
19064host=$host
19065host_os=$host_os
19066
19067# The build system.
19068build_alias=$build_alias
19069build=$build
19070build_os=$build_os
19071
19072# A sed program that does not truncate output.
19073SED=$lt_SED
19074
19075# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19076Xsed="\$SED -e 1s/^X//"
19077
19078# A grep program that handles long lines.
19079GREP=$lt_GREP
19080
19081# An ERE matcher.
19082EGREP=$lt_EGREP
19083
19084# A literal string matcher.
19085FGREP=$lt_FGREP
19086
19087# A BSD- or MS-compatible name lister.
19088NM=$lt_NM
19089
19090# Whether we need soft or hard links.
19091LN_S=$lt_LN_S
19092
19093# What is the maximum length of a command?
19094max_cmd_len=$max_cmd_len
19095
19096# Object file suffix (normally "o").
19097objext=$ac_objext
19098
19099# Executable file suffix (normally "").
19100exeext=$exeext
19101
19102# whether the shell understands "unset".
19103lt_unset=$lt_unset
19104
19105# turn spaces into newlines.
19106SP2NL=$lt_lt_SP2NL
19107
19108# turn newlines into spaces.
19109NL2SP=$lt_lt_NL2SP
19110
b214d478
SE
19111# An object symbol dumper.
19112OBJDUMP=$lt_OBJDUMP
19113
d7040cdb
SE
19114# Method to check whether dependent libraries are shared objects.
19115deplibs_check_method=$lt_deplibs_check_method
19116
19117# Command to use when deplibs_check_method == "file_magic".
19118file_magic_cmd=$lt_file_magic_cmd
19119
19120# The archiver.
19121AR=$lt_AR
19122AR_FLAGS=$lt_AR_FLAGS
19123
19124# A symbol stripping program.
19125STRIP=$lt_STRIP
19126
19127# Commands used to install an old-style archive.
19128RANLIB=$lt_RANLIB
19129old_postinstall_cmds=$lt_old_postinstall_cmds
19130old_postuninstall_cmds=$lt_old_postuninstall_cmds
19131
3725885a
RW
19132# Whether to use a lock for old archive extraction.
19133lock_old_archive_extraction=$lock_old_archive_extraction
19134
d7040cdb
SE
19135# A C compiler.
19136LTCC=$lt_CC
19137
19138# LTCC compiler flags.
19139LTCFLAGS=$lt_CFLAGS
19140
19141# Take the output of nm and produce a listing of raw symbols and C names.
19142global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19143
19144# Transform the output of nm in a proper C declaration.
19145global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19146
19147# Transform the output of nm in a C name address pair.
19148global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19149
b214d478
SE
19150# Transform the output of nm in a C name address pair when lib prefix is needed.
19151global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19152
d7040cdb
SE
19153# The name of the directory that contains temporary libtool files.
19154objdir=$objdir
19155
d7040cdb
SE
19156# Used to examine libraries when file_magic_cmd begins with "file".
19157MAGIC_CMD=$MAGIC_CMD
19158
19159# Must we lock files when doing compilation?
19160need_locks=$lt_need_locks
19161
b214d478
SE
19162# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19163DSYMUTIL=$lt_DSYMUTIL
19164
19165# Tool to change global to local symbols on Mac OS X.
19166NMEDIT=$lt_NMEDIT
19167
19168# Tool to manipulate fat objects and archives on Mac OS X.
19169LIPO=$lt_LIPO
19170
19171# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19172OTOOL=$lt_OTOOL
19173
19174# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19175OTOOL64=$lt_OTOOL64
19176
d7040cdb
SE
19177# Old archive suffix (normally "a").
19178libext=$libext
19179
19180# Shared library suffix (normally ".so").
19181shrext_cmds=$lt_shrext_cmds
19182
19183# The commands to extract the exported symbol list from a shared archive.
19184extract_expsyms_cmds=$lt_extract_expsyms_cmds
19185
19186# Variables whose values should be saved in libtool wrapper scripts and
19187# restored at link time.
19188variables_saved_for_relink=$lt_variables_saved_for_relink
19189
19190# Do we need the "lib" prefix for modules?
19191need_lib_prefix=$need_lib_prefix
19192
19193# Do we need a version for libraries?
19194need_version=$need_version
19195
19196# Library versioning type.
19197version_type=$version_type
19198
19199# Shared library runtime path variable.
19200runpath_var=$runpath_var
19201
19202# Shared library path variable.
19203shlibpath_var=$shlibpath_var
19204
19205# Is shlibpath searched before the hard-coded library search path?
19206shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19207
19208# Format of library name prefix.
19209libname_spec=$lt_libname_spec
19210
19211# List of archive names. First name is the real one, the rest are links.
19212# The last name is the one that the linker finds with -lNAME
19213library_names_spec=$lt_library_names_spec
19214
19215# The coded name of the library, if different from the real name.
19216soname_spec=$lt_soname_spec
19217
3725885a
RW
19218# Permission mode override for installation of shared libraries.
19219install_override_mode=$lt_install_override_mode
19220
d7040cdb
SE
19221# Command to use after installation of a shared archive.
19222postinstall_cmds=$lt_postinstall_cmds
19223
19224# Command to use after uninstallation of a shared archive.
19225postuninstall_cmds=$lt_postuninstall_cmds
19226
19227# Commands used to finish a libtool library installation in a directory.
19228finish_cmds=$lt_finish_cmds
19229
19230# As "finish_cmds", except a single script fragment to be evaled but
19231# not shown.
19232finish_eval=$lt_finish_eval
19233
19234# Whether we should hardcode library paths into libraries.
19235hardcode_into_libs=$hardcode_into_libs
19236
19237# Compile-time system search path for libraries.
19238sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19239
19240# Run-time system search path for libraries.
19241sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19242
19243# Whether dlopen is supported.
19244dlopen_support=$enable_dlopen
19245
19246# Whether dlopen of programs is supported.
19247dlopen_self=$enable_dlopen_self
19248
19249# Whether dlopen of statically linked programs is supported.
19250dlopen_self_static=$enable_dlopen_self_static
19251
19252# Commands to strip libraries.
19253old_striplib=$lt_old_striplib
19254striplib=$lt_striplib
19255
19256
19257# The linker used to build libraries.
19258LD=$lt_LD
19259
3725885a
RW
19260# How to create reloadable object files.
19261reload_flag=$lt_reload_flag
19262reload_cmds=$lt_reload_cmds
19263
d7040cdb
SE
19264# Commands used to build an old-style archive.
19265old_archive_cmds=$lt_old_archive_cmds
19266
19267# A language specific compiler.
19268CC=$lt_compiler
19269
19270# Is the compiler the GNU compiler?
19271with_gcc=$GCC
19272
19273# Compiler flag to turn off builtin functions.
19274no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19275
19276# How to pass a linker flag through the compiler.
19277wl=$lt_lt_prog_compiler_wl
19278
19279# Additional compiler flags for building library objects.
19280pic_flag=$lt_lt_prog_compiler_pic
19281
19282# Compiler flag to prevent dynamic linking.
19283link_static_flag=$lt_lt_prog_compiler_static
19284
19285# Does compiler simultaneously support -c and -o options?
19286compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19287
19288# Whether or not to add -lc for building shared libraries.
19289build_libtool_need_lc=$archive_cmds_need_lc
19290
19291# Whether or not to disallow shared libs when runtime libs are static.
19292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19293
19294# Compiler flag to allow reflexive dlopens.
19295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19296
19297# Compiler flag to generate shared objects directly from archives.
19298whole_archive_flag_spec=$lt_whole_archive_flag_spec
19299
19300# Whether the compiler copes with passing no objects directly.
19301compiler_needs_object=$lt_compiler_needs_object
19302
19303# Create an old-style archive from a shared archive.
19304old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19305
19306# Create a temporary old-style archive to link instead of a shared archive.
19307old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19308
19309# Commands used to build a shared archive.
19310archive_cmds=$lt_archive_cmds
19311archive_expsym_cmds=$lt_archive_expsym_cmds
19312
19313# Commands used to build a loadable module if different from building
19314# a shared archive.
19315module_cmds=$lt_module_cmds
19316module_expsym_cmds=$lt_module_expsym_cmds
19317
19318# Whether we are building with GNU ld or not.
19319with_gnu_ld=$lt_with_gnu_ld
19320
19321# Flag that allows shared libraries with undefined symbols to be built.
19322allow_undefined_flag=$lt_allow_undefined_flag
19323
19324# Flag that enforces no undefined symbols.
19325no_undefined_flag=$lt_no_undefined_flag
19326
19327# Flag to hardcode \$libdir into a binary during linking.
19328# This must work even if \$libdir does not exist
19329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19330
19331# If ld is used when linking, flag to hardcode \$libdir into a binary
19332# during linking. This must work even if \$libdir does not exist.
19333hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19334
19335# Whether we need a single "-rpath" flag with a separated argument.
19336hardcode_libdir_separator=$lt_hardcode_libdir_separator
19337
19338# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19339# DIR into the resulting binary.
19340hardcode_direct=$hardcode_direct
19341
19342# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19343# DIR into the resulting binary and the resulting library dependency is
19344# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19345# library is relocated.
19346hardcode_direct_absolute=$hardcode_direct_absolute
19347
19348# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19349# into the resulting binary.
19350hardcode_minus_L=$hardcode_minus_L
19351
19352# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19353# into the resulting binary.
19354hardcode_shlibpath_var=$hardcode_shlibpath_var
19355
19356# Set to "yes" if building a shared library automatically hardcodes DIR
19357# into the library and all subsequent libraries and executables linked
19358# against it.
19359hardcode_automatic=$hardcode_automatic
19360
19361# Set to yes if linker adds runtime paths of dependent libraries
19362# to runtime path list.
19363inherit_rpath=$inherit_rpath
19364
19365# Whether libtool must link a program against all its dependency libraries.
19366link_all_deplibs=$link_all_deplibs
19367
19368# Fix the shell variable \$srcfile for the compiler.
19369fix_srcfile_path=$lt_fix_srcfile_path
19370
19371# Set to "yes" if exported symbols are required.
19372always_export_symbols=$always_export_symbols
19373
19374# The commands to list exported symbols.
19375export_symbols_cmds=$lt_export_symbols_cmds
19376
19377# Symbols that should not be listed in the preloaded symbols.
19378exclude_expsyms=$lt_exclude_expsyms
19379
19380# Symbols that must always be exported.
19381include_expsyms=$lt_include_expsyms
19382
19383# Commands necessary for linking programs (against libraries) with templates.
19384prelink_cmds=$lt_prelink_cmds
19385
19386# Specify filename containing input files.
19387file_list_spec=$lt_file_list_spec
19388
19389# How to hardcode a shared library path into an executable.
19390hardcode_action=$hardcode_action
19391
3cb62297
L
19392# The directories searched by this compiler when creating a shared library.
19393compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19394
19395# Dependencies to place before and after the objects being linked to
19396# create a shared library.
19397predep_objects=$lt_predep_objects
19398postdep_objects=$lt_postdep_objects
19399predeps=$lt_predeps
19400postdeps=$lt_postdeps
19401
19402# The library search path used internally by the compiler when linking
19403# a shared library.
19404compiler_lib_search_path=$lt_compiler_lib_search_path
19405
d7040cdb
SE
19406# ### END LIBTOOL CONFIG
19407
19408_LT_EOF
19409
19410 case $host_os in
19411 aix3*)
19412 cat <<\_LT_EOF >> "$cfgfile"
19413# AIX sometimes has problems with the GCC collect2 program. For some
19414# reason, if we set the COLLECT_NAMES environment variable, the problems
19415# vanish in a puff of smoke.
19416if test "X${COLLECT_NAMES+set}" != Xset; then
19417 COLLECT_NAMES=
19418 export COLLECT_NAMES
19419fi
19420_LT_EOF
19421 ;;
19422 esac
19423
19424
19425ltmain="$ac_aux_dir/ltmain.sh"
19426
19427
19428 # We use sed instead of cat because bash on DJGPP gets confused if
19429 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19430 # text mode, it properly converts lines to CR/LF. This bash problem
19431 # is reportedly fixed, but why not run on old versions too?
19432 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19433 || (rm -f "$cfgfile"; exit 1)
19434
19435 case $xsi_shell in
19436 yes)
19437 cat << \_LT_EOF >> "$cfgfile"
b214d478 19438
d7040cdb
SE
19439# func_dirname file append nondir_replacement
19440# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19441# otherwise set result to NONDIR_REPLACEMENT.
19442func_dirname ()
19443{
19444 case ${1} in
19445 */*) func_dirname_result="${1%/*}${2}" ;;
19446 * ) func_dirname_result="${3}" ;;
19447 esac
19448}
19449
19450# func_basename file
19451func_basename ()
19452{
19453 func_basename_result="${1##*/}"
19454}
19455
b214d478
SE
19456# func_dirname_and_basename file append nondir_replacement
19457# perform func_basename and func_dirname in a single function
19458# call:
19459# dirname: Compute the dirname of FILE. If nonempty,
19460# add APPEND to the result, otherwise set result
19461# to NONDIR_REPLACEMENT.
19462# value returned in "$func_dirname_result"
19463# basename: Compute filename of FILE.
19464# value retuned in "$func_basename_result"
19465# Implementation must be kept synchronized with func_dirname
19466# and func_basename. For efficiency, we do not delegate to
19467# those functions but instead duplicate the functionality here.
19468func_dirname_and_basename ()
19469{
19470 case ${1} in
19471 */*) func_dirname_result="${1%/*}${2}" ;;
19472 * ) func_dirname_result="${3}" ;;
19473 esac
19474 func_basename_result="${1##*/}"
19475}
19476
d7040cdb
SE
19477# func_stripname prefix suffix name
19478# strip PREFIX and SUFFIX off of NAME.
19479# PREFIX and SUFFIX must not contain globbing or regex special
19480# characters, hashes, percent signs, but SUFFIX may contain a leading
19481# dot (in which case that matches only a dot).
19482func_stripname ()
19483{
19484 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19485 # positional parameters, so assign one to ordinary parameter first.
19486 func_stripname_result=${3}
19487 func_stripname_result=${func_stripname_result#"${1}"}
19488 func_stripname_result=${func_stripname_result%"${2}"}
19489}
19490
19491# func_opt_split
19492func_opt_split ()
19493{
19494 func_opt_split_opt=${1%%=*}
19495 func_opt_split_arg=${1#*=}
19496}
19497
19498# func_lo2o object
19499func_lo2o ()
19500{
19501 case ${1} in
19502 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19503 *) func_lo2o_result=${1} ;;
19504 esac
19505}
b214d478
SE
19506
19507# func_xform libobj-or-source
19508func_xform ()
19509{
19510 func_xform_result=${1%.*}.lo
19511}
19512
19513# func_arith arithmetic-term...
19514func_arith ()
19515{
19516 func_arith_result=$(( $* ))
19517}
19518
19519# func_len string
19520# STRING may not start with a hyphen.
19521func_len ()
19522{
19523 func_len_result=${#1}
19524}
19525
d7040cdb
SE
19526_LT_EOF
19527 ;;
19528 *) # Bourne compatible functions.
19529 cat << \_LT_EOF >> "$cfgfile"
b214d478 19530
d7040cdb
SE
19531# func_dirname file append nondir_replacement
19532# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19533# otherwise set result to NONDIR_REPLACEMENT.
19534func_dirname ()
19535{
19536 # Extract subdirectory from the argument.
3725885a 19537 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19538 if test "X$func_dirname_result" = "X${1}"; then
19539 func_dirname_result="${3}"
19540 else
19541 func_dirname_result="$func_dirname_result${2}"
19542 fi
19543}
19544
19545# func_basename file
19546func_basename ()
19547{
3725885a 19548 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19549}
19550
b214d478 19551
d7040cdb
SE
19552# func_stripname prefix suffix name
19553# strip PREFIX and SUFFIX off of NAME.
19554# PREFIX and SUFFIX must not contain globbing or regex special
19555# characters, hashes, percent signs, but SUFFIX may contain a leading
19556# dot (in which case that matches only a dot).
19557# func_strip_suffix prefix name
19558func_stripname ()
19559{
19560 case ${2} in
3725885a
RW
19561 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19562 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19563 esac
19564}
19565
19566# sed scripts:
19567my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19568my_sed_long_arg='1s/^-[^=]*=//'
19569
19570# func_opt_split
19571func_opt_split ()
19572{
3725885a
RW
19573 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19574 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19575}
19576
19577# func_lo2o object
19578func_lo2o ()
19579{
3725885a 19580 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19581}
b214d478
SE
19582
19583# func_xform libobj-or-source
19584func_xform ()
19585{
3725885a 19586 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19587}
19588
19589# func_arith arithmetic-term...
19590func_arith ()
19591{
19592 func_arith_result=`expr "$@"`
19593}
19594
19595# func_len string
19596# STRING may not start with a hyphen.
19597func_len ()
19598{
19599 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19600}
19601
d7040cdb
SE
19602_LT_EOF
19603esac
19604
19605case $lt_shell_append in
19606 yes)
19607 cat << \_LT_EOF >> "$cfgfile"
19608
19609# func_append var value
19610# Append VALUE to the end of shell variable VAR.
19611func_append ()
19612{
19613 eval "$1+=\$2"
19614}
19615_LT_EOF
19616 ;;
19617 *)
19618 cat << \_LT_EOF >> "$cfgfile"
19619
19620# func_append var value
19621# Append VALUE to the end of shell variable VAR.
19622func_append ()
19623{
19624 eval "$1=\$$1\$2"
19625}
b214d478 19626
d7040cdb
SE
19627_LT_EOF
19628 ;;
19629 esac
19630
19631
19632 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19633 || (rm -f "$cfgfile"; exit 1)
19634
19635 mv -f "$cfgfile" "$ofile" ||
19636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19637 chmod +x "$ofile"
19638
3cb62297
L
19639
19640 cat <<_LT_EOF >> "$ofile"
19641
19642# ### BEGIN LIBTOOL TAG CONFIG: CXX
19643
19644# The linker used to build libraries.
19645LD=$lt_LD_CXX
19646
19647# How to create reloadable object files.
19648reload_flag=$lt_reload_flag_CXX
19649reload_cmds=$lt_reload_cmds_CXX
19650
19651# Commands used to build an old-style archive.
19652old_archive_cmds=$lt_old_archive_cmds_CXX
19653
19654# A language specific compiler.
19655CC=$lt_compiler_CXX
19656
19657# Is the compiler the GNU compiler?
19658with_gcc=$GCC_CXX
19659
19660# Compiler flag to turn off builtin functions.
19661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19662
19663# How to pass a linker flag through the compiler.
19664wl=$lt_lt_prog_compiler_wl_CXX
19665
19666# Additional compiler flags for building library objects.
19667pic_flag=$lt_lt_prog_compiler_pic_CXX
19668
19669# Compiler flag to prevent dynamic linking.
19670link_static_flag=$lt_lt_prog_compiler_static_CXX
19671
19672# Does compiler simultaneously support -c and -o options?
19673compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19674
19675# Whether or not to add -lc for building shared libraries.
19676build_libtool_need_lc=$archive_cmds_need_lc_CXX
19677
19678# Whether or not to disallow shared libs when runtime libs are static.
19679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19680
19681# Compiler flag to allow reflexive dlopens.
19682export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19683
19684# Compiler flag to generate shared objects directly from archives.
19685whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19686
19687# Whether the compiler copes with passing no objects directly.
19688compiler_needs_object=$lt_compiler_needs_object_CXX
19689
19690# Create an old-style archive from a shared archive.
19691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19692
19693# Create a temporary old-style archive to link instead of a shared archive.
19694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19695
19696# Commands used to build a shared archive.
19697archive_cmds=$lt_archive_cmds_CXX
19698archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19699
19700# Commands used to build a loadable module if different from building
19701# a shared archive.
19702module_cmds=$lt_module_cmds_CXX
19703module_expsym_cmds=$lt_module_expsym_cmds_CXX
19704
19705# Whether we are building with GNU ld or not.
19706with_gnu_ld=$lt_with_gnu_ld_CXX
19707
19708# Flag that allows shared libraries with undefined symbols to be built.
19709allow_undefined_flag=$lt_allow_undefined_flag_CXX
19710
19711# Flag that enforces no undefined symbols.
19712no_undefined_flag=$lt_no_undefined_flag_CXX
19713
19714# Flag to hardcode \$libdir into a binary during linking.
19715# This must work even if \$libdir does not exist
19716hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19717
19718# If ld is used when linking, flag to hardcode \$libdir into a binary
19719# during linking. This must work even if \$libdir does not exist.
19720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19721
19722# Whether we need a single "-rpath" flag with a separated argument.
19723hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19724
19725# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19726# DIR into the resulting binary.
19727hardcode_direct=$hardcode_direct_CXX
19728
19729# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19730# DIR into the resulting binary and the resulting library dependency is
19731# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19732# library is relocated.
19733hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19734
19735# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19736# into the resulting binary.
19737hardcode_minus_L=$hardcode_minus_L_CXX
19738
19739# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19740# into the resulting binary.
19741hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19742
19743# Set to "yes" if building a shared library automatically hardcodes DIR
19744# into the library and all subsequent libraries and executables linked
19745# against it.
19746hardcode_automatic=$hardcode_automatic_CXX
19747
19748# Set to yes if linker adds runtime paths of dependent libraries
19749# to runtime path list.
19750inherit_rpath=$inherit_rpath_CXX
19751
19752# Whether libtool must link a program against all its dependency libraries.
19753link_all_deplibs=$link_all_deplibs_CXX
19754
19755# Fix the shell variable \$srcfile for the compiler.
19756fix_srcfile_path=$lt_fix_srcfile_path_CXX
19757
19758# Set to "yes" if exported symbols are required.
19759always_export_symbols=$always_export_symbols_CXX
19760
19761# The commands to list exported symbols.
19762export_symbols_cmds=$lt_export_symbols_cmds_CXX
19763
19764# Symbols that should not be listed in the preloaded symbols.
19765exclude_expsyms=$lt_exclude_expsyms_CXX
19766
19767# Symbols that must always be exported.
19768include_expsyms=$lt_include_expsyms_CXX
19769
19770# Commands necessary for linking programs (against libraries) with templates.
19771prelink_cmds=$lt_prelink_cmds_CXX
19772
19773# Specify filename containing input files.
19774file_list_spec=$lt_file_list_spec_CXX
19775
19776# How to hardcode a shared library path into an executable.
19777hardcode_action=$hardcode_action_CXX
19778
19779# The directories searched by this compiler when creating a shared library.
19780compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19781
19782# Dependencies to place before and after the objects being linked to
19783# create a shared library.
19784predep_objects=$lt_predep_objects_CXX
19785postdep_objects=$lt_postdep_objects_CXX
19786predeps=$lt_predeps_CXX
19787postdeps=$lt_postdeps_CXX
19788
19789# The library search path used internally by the compiler when linking
19790# a shared library.
19791compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19792
19793# ### END LIBTOOL TAG CONFIG: CXX
19794_LT_EOF
19795
42ecbf5e 19796 ;;
81ecdfbb 19797 "default-1":C)
20e95c23
DJ
19798 for ac_file in $CONFIG_FILES; do
19799 # Support "outfile[:infile[:infile...]]"
19800 case "$ac_file" in
19801 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19802 esac
19803 # PO directories have a Makefile.in generated from Makefile.in.in.
19804 case "$ac_file" in */Makefile.in)
19805 # Adjust a relative srcdir.
19806 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19807 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19808 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19809 # In autoconf-2.13 it is called $ac_given_srcdir.
19810 # In autoconf-2.50 it is called $srcdir.
19811 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19812 case "$ac_given_srcdir" in
19813 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19814 /*) top_srcdir="$ac_given_srcdir" ;;
19815 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19816 esac
19817 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19818 rm -f "$ac_dir/POTFILES"
19819 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19820 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19821 POMAKEFILEDEPS="POTFILES.in"
19822 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19823 # on $ac_dir but don't depend on user-specified configuration
19824 # parameters.
19825 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19826 # The LINGUAS file contains the set of available languages.
19827 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 19828 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
19829 fi
19830 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19831 # Hide the ALL_LINGUAS assigment from automake.
19832 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19833 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19834 else
37a42ee9 19835 # The set of available languages was given in configure.ac.
20e95c23
DJ
19836 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19837 fi
19838 case "$ac_given_srcdir" in
19839 .) srcdirpre= ;;
19840 *) srcdirpre='$(srcdir)/' ;;
19841 esac
19842 POFILES=
19843 GMOFILES=
19844 UPDATEPOFILES=
19845 DUMMYPOFILES=
19846 for lang in $ALL_LINGUAS; do
19847 POFILES="$POFILES $srcdirpre$lang.po"
19848 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19849 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19850 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19851 done
19852 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19853 # environment variable.
19854 INST_LINGUAS=
19855 if test -n "$ALL_LINGUAS"; then
19856 for presentlang in $ALL_LINGUAS; do
19857 useit=no
19858 if test "%UNSET%" != "$LINGUAS"; then
19859 desiredlanguages="$LINGUAS"
19860 else
19861 desiredlanguages="$ALL_LINGUAS"
19862 fi
19863 for desiredlang in $desiredlanguages; do
19864 # Use the presentlang catalog if desiredlang is
19865 # a. equal to presentlang, or
19866 # b. a variant of presentlang (because in this case,
19867 # presentlang can be used as a fallback for messages
19868 # which are not translated in the desiredlang catalog).
19869 case "$desiredlang" in
19870 "$presentlang"*) useit=yes;;
19871 esac
19872 done
19873 if test $useit = yes; then
19874 INST_LINGUAS="$INST_LINGUAS $presentlang"
19875 fi
19876 done
19877 fi
19878 CATALOGS=
19879 if test -n "$INST_LINGUAS"; then
19880 for lang in $INST_LINGUAS; do
19881 CATALOGS="$CATALOGS $lang.gmo"
19882 done
19883 fi
19884 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19885 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19886 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19887 if test -f "$f"; then
19888 case "$f" in
19889 *.orig | *.bak | *~) ;;
19890 *) cat "$f" >> "$ac_dir/Makefile" ;;
19891 esac
19892 fi
19893 done
19894 fi
19895 ;;
19896 esac
19897 done ;;
81ecdfbb 19898
42ecbf5e 19899 esac
81ecdfbb 19900done # for ac_tag
42ecbf5e 19901
42ecbf5e 19902
81ecdfbb 19903as_fn_exit 0
42ecbf5e 19904_ACEOF
42ecbf5e
DJ
19905ac_clean_files=$ac_clean_files_save
19906
81ecdfbb
RW
19907test $ac_write_fail = 0 ||
19908 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19909
42ecbf5e
DJ
19910
19911# configure is writing to config.log, and then calls config.status.
19912# config.status does its own redirection, appending to config.log.
19913# Unfortunately, on DOS this fails, as config.log is still kept open
19914# by configure, so config.status won't be able to write to it; its
19915# output is simply discarded. So we exec the FD to /dev/null,
19916# effectively closing config.log, so it can be properly (re)opened and
19917# appended to by config.status. When coming back to configure, we
19918# need to make the FD available again.
19919if test "$no_create" != yes; then
19920 ac_cs_success=:
19921 ac_config_status_args=
19922 test "$silent" = yes &&
19923 ac_config_status_args="$ac_config_status_args --quiet"
19924 exec 5>/dev/null
19925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19926 exec 5>>config.log
19927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19928 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19929 $ac_cs_success || as_fn_exit $?
19930fi
19931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19933$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19934fi
252b5132 19935
This page took 1.872624 seconds and 4 git commands to generate.