Reset x86 Linux targets to not compressing debug sections by default. Enable compres...
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
91dc4e0a 3# Generated by GNU Autoconf 2.64 for ld 2.25.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'
91dc4e0a
TG
559PACKAGE_VERSION='2.25.51'
560PACKAGE_STRING='ld 2.25.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
91dc4e0a 1353\`configure' configures ld 2.25.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
91dc4e0a 1424 short | recursive ) echo "Configuration of ld 2.25.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)
6c3bc0f8 1448 --enable-compressed-debug-sections compress debug sections by default
ce2cded5
L
1449 --enable-werror treat compile warnings as errors
1450 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1451 --disable-nls do not use Native Language Support
02ecc8e9 1452 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1453
1454Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1460 --with-lib-path=dir1:dir2... set default LIB_PATH
1461 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1462
1463Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
81ecdfbb
RW
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
3cb62297
L
1471 CXX C++ compiler command
1472 CXXFLAGS C++ compiler flags
b879806f 1473 CPP C preprocessor
3cb62297 1474 CXXCPP C++ preprocessor
81ecdfbb
RW
1475 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1476 the first program found out of: `bison -y', `byacc', `yacc'.
1477 YFLAGS The list of arguments that will be passed by default to $YACC.
1478 This script will default YFLAGS to the empty string to avoid a
1479 default value of `-d' given by some make applications.
42ecbf5e
DJ
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
81ecdfbb 1484Report bugs to the package provider.
42ecbf5e 1485_ACEOF
81ecdfbb 1486ac_status=$?
42ecbf5e
DJ
1487fi
1488
1489if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
42ecbf5e 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 continue
42ecbf5e
DJ
1495 ac_builddir=.
1496
81ecdfbb
RW
1497case "$ac_dir" in
1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499*)
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507esac
1508ac_abs_top_builddir=$ac_pwd
1509ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510# for backward compatibility:
1511ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1512
1513case $srcdir in
81ecdfbb 1514 .) # We are building in place.
42ecbf5e 1515 ac_srcdir=.
81ecdfbb
RW
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1519 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1526esac
81ecdfbb
RW
1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1537 else
81ecdfbb
RW
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1541 done
a2d91340
AC
1542fi
1543
81ecdfbb 1544test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1545if $ac_init_version; then
1546 cat <<\_ACEOF
91dc4e0a 1547ld configure 2.25.51
81ecdfbb 1548generated by GNU Autoconf 2.64
a2d91340 1549
81ecdfbb 1550Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1551This configure script is free software; the Free Software Foundation
1552gives unlimited permission to copy, distribute and modify it.
1553_ACEOF
81ecdfbb 1554 exit
42ecbf5e 1555fi
a2d91340 1556
81ecdfbb
RW
1557## ------------------------ ##
1558## Autoconf initialization. ##
1559## ------------------------ ##
a2d91340 1560
81ecdfbb
RW
1561# ac_fn_c_try_compile LINENO
1562# --------------------------
1563# Try to compile conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_compile ()
1565{
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588else
1589 $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1591
81ecdfbb
RW
1592 ac_retval=1
1593fi
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 return $ac_retval
1596
1597} # ac_fn_c_try_compile
1598
1599# ac_fn_c_try_link LINENO
1600# -----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_link ()
42ecbf5e 1603{
81ecdfbb
RW
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest$ac_exeext
1606 if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest$ac_exeext && {
1625 test "$cross_compiling" = yes ||
1626 $as_test_x conftest$ac_exeext
1627 }; then :
1628 ac_retval=0
1629else
1630 $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1632
81ecdfbb
RW
1633 ac_retval=1
1634fi
1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637 # interfere with the next link command; also delete a directory that is
1638 # left behind by Apple's compiler. We do this before executing the actions.
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
42ecbf5e 1642
81ecdfbb 1643} # ac_fn_c_try_link
42ecbf5e 1644
b879806f
AM
1645# ac_fn_cxx_try_compile LINENO
1646# ----------------------------
1647# Try to compile conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_cxx_try_compile ()
81ecdfbb
RW
1649{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
81ecdfbb
RW
1653case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
b879806f 1659 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1667 test $ac_status = 0; } && {
1668 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1669 test ! -s conftest.err
b879806f 1670 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
b879806f 1676 ac_retval=1
81ecdfbb
RW
1677fi
1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679 return $ac_retval
1680
b879806f 1681} # ac_fn_cxx_try_compile
81ecdfbb 1682
b879806f
AM
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
3cb62297
L
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
b879806f 1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1704 test $ac_status = 0; } >/dev/null && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1706 test ! -s conftest.err
b879806f 1707 }; then :
3cb62297
L
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
b879806f 1713 ac_retval=1
3cb62297
L
1714fi
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 return $ac_retval
1717
b879806f 1718} # ac_fn_c_try_cpp
3cb62297 1719
81ecdfbb
RW
1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721# -------------------------------------------------------
1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723# the include files in INCLUDES and setting the cache variable VAR
1724# accordingly.
1725ac_fn_c_check_header_mongrel ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 $as_echo_n "(cached) " >&6
1733fi
1734eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737else
1738 # Is the header compilable?
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740$as_echo_n "checking $2 usability... " >&6; }
1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1748else
1749 ac_header_compiler=no
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753$as_echo "$ac_header_compiler" >&6; }
1754
1755# Is the header present?
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757$as_echo_n "checking $2 presence... " >&6; }
1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h. */
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1764else
1765 ac_header_preproc=no
1766fi
1767rm -f conftest.err conftest.$ac_ext
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769$as_echo "$ac_header_preproc" >&6; }
1770
1771# So? What about this header?
1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773 yes:no: )
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778 ;;
1779 no:yes:* )
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791esac
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 eval "$3=\$ac_header_compiler"
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802fi
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805} # ac_fn_c_check_header_mongrel
1806
1807# ac_fn_c_try_run LINENO
1808# ----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1810# that executables *can* be run.
1811ac_fn_c_try_run ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>&5
1822 ac_status=$?
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1825 { { case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_try") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; }; }; then :
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: program exited with status $ac_status" >&5
1838 $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=$ac_status
1842fi
1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847} # ac_fn_c_try_run
1848
1849# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1850# -------------------------------------------------------
1851# Tests whether HEADER exists and can be compiled using the include files in
1852# INCLUDES, setting the cache variable VAR accordingly.
1853ac_fn_c_check_header_compile ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859 $as_echo_n "(cached) " >&6
1860else
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863$4
1864#include <$2>
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$3=yes"
1868else
1869 eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877
1878} # ac_fn_c_check_header_compile
1879
1880# ac_fn_c_check_func LINENO FUNC VAR
1881# ----------------------------------
1882# Tests whether FUNC exists, setting the cache variable VAR accordingly
1883ac_fn_c_check_func ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1890else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895#define $2 innocuous_$2
1896
1897/* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1901
1902#ifdef __STDC__
1903# include <limits.h>
1904#else
1905# include <assert.h>
1906#endif
1907
1908#undef $2
1909
1910/* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1913#ifdef __cplusplus
1914extern "C"
1915#endif
1916char $2 ();
1917/* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920#if defined __stub_$2 || defined __stub___$2
1921choke me
1922#endif
1923
1924int
1925main ()
1926{
1927return $2 ();
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_link "$LINENO"; then :
1933 eval "$3=yes"
1934else
1935 eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext \
1938 conftest$ac_exeext conftest.$ac_ext
1939fi
1940eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945} # ac_fn_c_check_func
1946
3cb62297
L
1947# ac_fn_cxx_try_cpp LINENO
1948# ------------------------
1949# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1950ac_fn_cxx_try_cpp ()
1951{
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { { ac_try="$ac_cpp conftest.$ac_ext"
1954case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961 ac_status=$?
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1966 fi
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } >/dev/null && {
1969 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1970 test ! -s conftest.err
1971 }; then :
1972 ac_retval=0
1973else
1974 $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=1
1978fi
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1981
1982} # ac_fn_cxx_try_cpp
1983
1984# ac_fn_cxx_try_link LINENO
1985# -------------------------
1986# Try to link conftest.$ac_ext, and return whether this succeeded.
1987ac_fn_cxx_try_link ()
1988{
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext conftest$ac_exeext
1991 if { { ac_try="$ac_link"
1992case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_link") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest$ac_exeext && {
2010 test "$cross_compiling" = yes ||
2011 $as_test_x conftest$ac_exeext
2012 }; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019fi
2020 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2021 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2022 # interfere with the next link command; also delete a directory that is
2023 # left behind by Apple's compiler. We do this before executing the actions.
2024 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026 return $ac_retval
2027
2028} # ac_fn_cxx_try_link
2029
81ecdfbb
RW
2030# ac_fn_c_check_decl LINENO SYMBOL VAR
2031# ------------------------------------
2032# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2033ac_fn_c_check_decl ()
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2036 as_decl_name=`echo $2|sed 's/ *(.*//'`
2037 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2039$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2040if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041 $as_echo_n "(cached) " >&6
2042else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045$4
2046int
2047main ()
2048{
360cfc9c
AM
2049#ifndef $as_decl_name
2050#ifdef __cplusplus
2051 (void) $as_decl_use;
2052#else
2053 (void) $as_decl_name;
2054#endif
81ecdfbb
RW
2055#endif
2056
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063else
2064 eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072
2073} # ac_fn_c_check_decl
2074
2075# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076# --------------------------------------------
2077# Tries to find the compile-time value of EXPR in a program that includes
2078# INCLUDES, setting VAR accordingly. Returns whether the value could be
2079# computed
2080ac_fn_c_compute_int ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$4
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(($2) >= 0)];
2092test_array [0] = 0
2093
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=0 ac_mid=0
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104int
2105main ()
2106{
2107static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108test_array [0] = 0
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2116else
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2121 fi
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) < 0)];
2134test_array [0] = 0
2135
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150test_array [0] = 0
2151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2158else
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2161 ac_lo= ac_hi=
2162 break
2163 fi
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168else
2169 ac_lo= ac_hi=
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174# Binary search between lo and hi bounds.
2175while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184test_array [0] = 0
2185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196done
2197case $ac_lo in #((
2198?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199'') ac_retval=1 ;;
2200esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h. */
2204$4
2205static long int longval () { return $2; }
2206static unsigned long int ulongval () { return $2; }
2207#include <stdio.h>
2208#include <stdlib.h>
2209int
2210main ()
2211{
2212
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2217 {
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2222 }
2223 else
2224 {
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2229 }
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2233
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240else
2241 ac_retval=1
2242fi
2243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245rm -f conftest.val
2246
2247 fi
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2250
2251} # ac_fn_c_compute_int
2252cat >config.log <<_ACEOF
2253This file contains any messages produced by compilers while
2254running configure, to aid debugging if configure makes a mistake.
2255
91dc4e0a 2256It was created by ld $as_me 2.25.51, which was
81ecdfbb
RW
2257generated by GNU Autoconf 2.64. Invocation command line was
2258
2259 $ $0 $@
2260
2261_ACEOF
2262exec 5>>config.log
2263{
2264cat <<_ASUNAME
2265## --------- ##
2266## Platform. ##
2267## --------- ##
2268
2269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274
2275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277
2278/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2282/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285
2286_ASUNAME
2287
2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH
2290do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2293 $as_echo "PATH: $as_dir"
2294 done
2295IFS=$as_save_IFS
252b5132 2296
42ecbf5e 2297} >&5
5d64ca4e 2298
42ecbf5e 2299cat >&5 <<_ACEOF
5d64ca4e 2300
5d64ca4e 2301
42ecbf5e
DJ
2302## ----------- ##
2303## Core tests. ##
2304## ----------- ##
5d64ca4e 2305
42ecbf5e 2306_ACEOF
2469cfa2 2307
42ecbf5e
DJ
2308
2309# Keep a trace of the command line.
2310# Strip out --no-create and --no-recursion so they do not pile up.
2311# Strip out --silent because we don't want to record it for future runs.
2312# Also quote any args containing shell meta-characters.
2313# Make two passes to allow for proper duplicate-argument suppression.
2314ac_configure_args=
2315ac_configure_args0=
2316ac_configure_args1=
42ecbf5e
DJ
2317ac_must_keep_next=false
2318for ac_pass in 1 2
2319do
2320 for ac_arg
2321 do
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
81ecdfbb
RW
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2329 esac
2330 case $ac_pass in
81ecdfbb 2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2332 2)
81ecdfbb 2333 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2345 ;;
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2348 fi
81ecdfbb 2349 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2350 ;;
2351 esac
2352 done
2353done
81ecdfbb
RW
2354{ ac_configure_args0=; unset ac_configure_args0;}
2355{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2356
2357# When interrupted or exit'd, cleanup temporary files, and complete
2358# config.log. We remove comments because anyway the quotes in there
2359# would cause problems or look ugly.
81ecdfbb
RW
2360# WARNING: Use '\'' to represent an apostrophe within the trap.
2361# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2362trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2364 {
2365 echo
2366
2367 cat <<\_ASBOX
2368## ---------------- ##
2369## Cache variables. ##
2370## ---------------- ##
2371_ASBOX
2372 echo
2373 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2374(
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in #(
2378 *${as_nl}*)
2379 case $ac_var in #(
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 esac
2383 case $ac_var in #(
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2387 esac ;;
2388 esac
2389 done
42ecbf5e 2390 (set) 2>&1 |
81ecdfbb
RW
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
42ecbf5e 2393 sed -n \
81ecdfbb
RW
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 ;; #(
42ecbf5e 2397 *)
81ecdfbb 2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2399 ;;
81ecdfbb
RW
2400 esac |
2401 sort
2402)
42ecbf5e
DJ
2403 echo
2404
2405 cat <<\_ASBOX
2406## ----------------- ##
2407## Output variables. ##
2408## ----------------- ##
2409_ASBOX
2410 echo
2411 for ac_var in $ac_subst_vars
2412 do
81ecdfbb
RW
2413 eval ac_val=\$$ac_var
2414 case $ac_val in
2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 esac
2417 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2418 done | sort
2419 echo
2420
2421 if test -n "$ac_subst_files"; then
2422 cat <<\_ASBOX
81ecdfbb
RW
2423## ------------------- ##
2424## File substitutions. ##
2425## ------------------- ##
42ecbf5e
DJ
2426_ASBOX
2427 echo
2428 for ac_var in $ac_subst_files
2429 do
81ecdfbb
RW
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
2440 cat <<\_ASBOX
2441## ----------- ##
2442## confdefs.h. ##
2443## ----------- ##
2444_ASBOX
2445 echo
81ecdfbb 2446 cat confdefs.h
42ecbf5e
DJ
2447 echo
2448 fi
2449 test "$ac_signal" != 0 &&
81ecdfbb
RW
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2452 } >&5
81ecdfbb
RW
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2455 exit $exit_status
81ecdfbb 2456' 0
42ecbf5e 2457for ac_signal in 1 2 13 15; do
81ecdfbb 2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2459done
2460ac_signal=0
2461
2462# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2463rm -f -r conftest* confdefs.h
2464
2465$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2466
2467# Predefined preprocessor variables.
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_NAME "$PACKAGE_NAME"
2471_ACEOF
2472
42ecbf5e
DJ
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475_ACEOF
2476
42ecbf5e
DJ
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_VERSION "$PACKAGE_VERSION"
2479_ACEOF
2480
42ecbf5e
DJ
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_STRING "$PACKAGE_STRING"
2483_ACEOF
2484
42ecbf5e
DJ
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487_ACEOF
2488
81ecdfbb
RW
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_URL "$PACKAGE_URL"
2491_ACEOF
2492
42ecbf5e
DJ
2493
2494# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2495# Prefer an explicitly selected file to automatically selected ones.
2496ac_site_file1=NONE
2497ac_site_file2=NONE
2498if test -n "$CONFIG_SITE"; then
2499 ac_site_file1=$CONFIG_SITE
2500elif test "x$prefix" != xNONE; then
2501 ac_site_file1=$prefix/share/config.site
2502 ac_site_file2=$prefix/etc/config.site
2503else
2504 ac_site_file1=$ac_default_prefix/share/config.site
2505 ac_site_file2=$ac_default_prefix/etc/config.site
2506fi
2507for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508do
2509 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2510 if test -r "$ac_site_file"; then
81ecdfbb
RW
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2513 sed 's/^/| /' "$ac_site_file" >&5
2514 . "$ac_site_file"
2515 fi
2516done
2517
2518if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special
2520 # files actually), so we avoid doing that.
2521 if test -f "$cache_file"; then
81ecdfbb
RW
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2524 case $cache_file in
81ecdfbb
RW
2525 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526 *) . "./$cache_file";;
42ecbf5e
DJ
2527 esac
2528 fi
2529else
81ecdfbb
RW
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2532 >$cache_file
2533fi
2534
2535# Check that the precious variables saved in the cache have kept the same
2536# value.
2537ac_cache_corrupted=false
81ecdfbb 2538for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2543 case $ac_old_set,$ac_new_set in
2544 set,)
81ecdfbb
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2547 ac_cache_corrupted=: ;;
2548 ,set)
81ecdfbb
RW
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2551 ac_cache_corrupted=: ;;
2552 ,);;
2553 *)
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x $ac_old_val`
2557 ac_new_val_w=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted=:
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2568$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2570$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2571 fi;;
2572 esac
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2575 case $ac_new_val in
81ecdfbb 2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2577 *) ac_arg=$ac_var=$ac_new_val ;;
2578 esac
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2582 esac
2583 fi
2584done
2585if $ac_cache_corrupted; then
81ecdfbb
RW
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2591fi
81ecdfbb
RW
2592## -------------------- ##
2593## Main body of script. ##
2594## -------------------- ##
42ecbf5e
DJ
2595
2596ac_ext=c
2597ac_cpp='$CPP $CPPFLAGS'
2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601
2602
2603
42ecbf5e 2604
da594c4a 2605
42ecbf5e
DJ
2606
2607
2608ac_aux_dir=
81ecdfbb
RW
2609for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2610 for ac_t in install-sh install.sh shtool; do
2611 if test -f "$ac_dir/$ac_t"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/$ac_t -c"
2614 break 2
2615 fi
2616 done
42ecbf5e
DJ
2617done
2618if test -z "$ac_aux_dir"; then
81ecdfbb 2619 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2620fi
81ecdfbb
RW
2621
2622# These three variables are undocumented and unsupported,
2623# and are intended to be withdrawn in a future Autoconf release.
2624# They can cause serious problems if a builder's source tree is in a directory
2625# whose full name contains unusual characters.
2626ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2627ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2628ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2629
42ecbf5e
DJ
2630
2631# Make sure we can run config.sub.
81ecdfbb
RW
2632$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2633 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2636$as_echo_n "checking build system type... " >&6; }
2637if test "${ac_cv_build+set}" = set; then :
2638 $as_echo_n "(cached) " >&6
2639else
2640 ac_build_alias=$build_alias
2641test "x$ac_build_alias" = x &&
2642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2643test "x$ac_build_alias" = x &&
2644 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2645ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2650$as_echo "$ac_cv_build" >&6; }
2651case $ac_cv_build in
2652*-*-*) ;;
2653*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2654esac
42ecbf5e 2655build=$ac_cv_build
81ecdfbb
RW
2656ac_save_IFS=$IFS; IFS='-'
2657set x $ac_cv_build
2658shift
2659build_cpu=$1
2660build_vendor=$2
2661shift; shift
2662# Remember, the first character of IFS is used to create $*,
2663# except with old shells:
2664build_os=$*
2665IFS=$ac_save_IFS
2666case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2667
2668
81ecdfbb
RW
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2670$as_echo_n "checking host system type... " >&6; }
2671if test "${ac_cv_host+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673else
2674 if test "x$host_alias" = x; then
2675 ac_cv_host=$ac_cv_build
42ecbf5e 2676else
81ecdfbb
RW
2677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2678 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679fi
42ecbf5e
DJ
2680
2681fi
81ecdfbb
RW
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2683$as_echo "$ac_cv_host" >&6; }
2684case $ac_cv_host in
2685*-*-*) ;;
2686*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2687esac
42ecbf5e 2688host=$ac_cv_host
81ecdfbb
RW
2689ac_save_IFS=$IFS; IFS='-'
2690set x $ac_cv_host
2691shift
2692host_cpu=$1
2693host_vendor=$2
2694shift; shift
2695# Remember, the first character of IFS is used to create $*,
2696# except with old shells:
2697host_os=$*
2698IFS=$ac_save_IFS
2699case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2700
2701
81ecdfbb
RW
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2703$as_echo_n "checking target system type... " >&6; }
2704if test "${ac_cv_target+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
42ecbf5e 2706else
81ecdfbb
RW
2707 if test "x$target_alias" = x; then
2708 ac_cv_target=$ac_cv_host
2709else
2710 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712fi
42ecbf5e
DJ
2713
2714fi
81ecdfbb
RW
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2716$as_echo "$ac_cv_target" >&6; }
2717case $ac_cv_target in
2718*-*-*) ;;
2719*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2720esac
42ecbf5e 2721target=$ac_cv_target
81ecdfbb
RW
2722ac_save_IFS=$IFS; IFS='-'
2723set x $ac_cv_target
2724shift
2725target_cpu=$1
2726target_vendor=$2
2727shift; shift
2728# Remember, the first character of IFS is used to create $*,
2729# except with old shells:
2730target_os=$*
2731IFS=$ac_save_IFS
2732case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2733
2734
2735# The aliases save the names the user supplied, while $host etc.
2736# will get canonicalized.
2737test -n "$target_alias" &&
2738 test "$program_prefix$program_suffix$program_transform_name" = \
2739 NONENONEs,x,x, &&
2740 program_prefix=${target_alias}-
02ecc8e9 2741
42ecbf5e
DJ
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if test "${ac_cv_prog_CC+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2754else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2767 break 2
2768 fi
2769done
81ecdfbb
RW
2770 done
2771IFS=$as_save_IFS
42ecbf5e
DJ
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
81ecdfbb
RW
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778$as_echo "$CC" >&6; }
42ecbf5e 2779else
81ecdfbb
RW
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
42ecbf5e
DJ
2782fi
2783
81ecdfbb 2784
42ecbf5e
DJ
2785fi
2786if test -z "$ac_cv_prog_CC"; then
2787 ac_ct_CC=$CC
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789set dummy gcc; ac_word=$2
81ecdfbb
RW
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2794else
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2805 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2807 break 2
2808 fi
2809done
81ecdfbb
RW
2810 done
2811IFS=$as_save_IFS
42ecbf5e
DJ
2812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2819else
81ecdfbb
RW
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
42ecbf5e
DJ
2822fi
2823
81ecdfbb
RW
2824 if test "x$ac_ct_CC" = x; then
2825 CC=""
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833 CC=$ac_ct_CC
2834 fi
42ecbf5e
DJ
2835else
2836 CC="$ac_cv_prog_CC"
2837fi
2838
2839if test -z "$CC"; then
81ecdfbb
RW
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2842set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if test "${ac_cv_prog_CC+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2847else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2858 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2860 break 2
2861 fi
2862done
81ecdfbb
RW
2863 done
2864IFS=$as_save_IFS
42ecbf5e
DJ
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
81ecdfbb
RW
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871$as_echo "$CC" >&6; }
42ecbf5e 2872else
81ecdfbb
RW
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
42ecbf5e
DJ
2875fi
2876
42ecbf5e 2877
81ecdfbb 2878 fi
42ecbf5e
DJ
2879fi
2880if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882set dummy cc; ac_word=$2
81ecdfbb
RW
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
2885if test "${ac_cv_prog_CC+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2887else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890else
2891 ac_prog_rejected=no
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2901 continue
2902 fi
2903 ac_cv_prog_CC="cc"
81ecdfbb 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2905 break 2
2906 fi
2907done
81ecdfbb
RW
2908 done
2909IFS=$as_save_IFS
42ecbf5e
DJ
2910
2911if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2914 shift
2915 if test $# != 0; then
2916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2919 shift
2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 fi
2922fi
2923fi
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
81ecdfbb
RW
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928$as_echo "$CC" >&6; }
42ecbf5e 2929else
81ecdfbb
RW
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
42ecbf5e
DJ
2932fi
2933
81ecdfbb 2934
42ecbf5e
DJ
2935fi
2936if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
81ecdfbb 2938 for ac_prog in cl.exe
42ecbf5e
DJ
2939 do
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if test "${ac_cv_prog_CC+set}" = set; then :
2945 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2946else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2959 break 2
2960 fi
2961done
81ecdfbb
RW
2962 done
2963IFS=$as_save_IFS
42ecbf5e
DJ
2964
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
81ecdfbb
RW
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970$as_echo "$CC" >&6; }
42ecbf5e 2971else
81ecdfbb
RW
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
42ecbf5e
DJ
2974fi
2975
81ecdfbb 2976
42ecbf5e
DJ
2977 test -n "$CC" && break
2978 done
2979fi
2980if test -z "$CC"; then
2981 ac_ct_CC=$CC
81ecdfbb 2982 for ac_prog in cl.exe
42ecbf5e
DJ
2983do
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2990else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3001 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3003 break 2
3004 fi
3005done
81ecdfbb
RW
3006 done
3007IFS=$as_save_IFS
42ecbf5e
DJ
3008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3015else
81ecdfbb
RW
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
42ecbf5e
DJ
3018fi
3019
81ecdfbb 3020
42ecbf5e
DJ
3021 test -n "$ac_ct_CC" && break
3022done
3023
81ecdfbb
RW
3024 if test "x$ac_ct_CC" = x; then
3025 CC=""
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028yes:)
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031ac_tool_warned=yes ;;
3032esac
3033 CC=$ac_ct_CC
3034 fi
42ecbf5e
DJ
3035fi
3036
3037fi
3038
3039
81ecdfbb
RW
3040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042as_fn_error "no acceptable C compiler found in \$PATH
3043See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3044
3045# Provide some information about the compiler.
81ecdfbb
RW
3046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047set X $ac_compile
3048ac_compiler=$2
3049for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3051case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056$as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3058 ac_status=$?
81ecdfbb
RW
3059 if test -s conftest.err; then
3060 sed '10a\
3061... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3064 rm -f conftest.er1 conftest.err
3065 fi
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068done
42ecbf5e 3069
81ecdfbb 3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081ac_clean_files_save=$ac_clean_files
81ecdfbb 3082ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3083# Try to create an executable without -o first, disregard a.out.
3084# It will help us diagnose broken compilers, and finding out an intuition
3085# of exeext.
81ecdfbb
RW
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087$as_echo_n "checking for C compiler default output file name... " >&6; }
3088ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3089
3090# The possible output files:
3091ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092
3093ac_rmfiles=
3094for ac_file in $ac_files
3095do
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099 esac
3100done
3101rm -f $ac_rmfiles
3102
3103if { { ac_try="$ac_link_default"
3104case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116# in a Makefile. We should not override ac_cv_exeext if it was cached,
3117# so that the user can short-circuit this test for compilers unknown to
3118# Autoconf.
3119for ac_file in $ac_files ''
42ecbf5e
DJ
3120do
3121 test -f "$ac_file" || continue
3122 case $ac_file in
81ecdfbb 3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3124 ;;
3125 [ab].out )
3126 # We found the default executable, but exeext='' is most
3127 # certainly right.
3128 break;;
3129 *.* )
81ecdfbb
RW
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131 then :; else
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133 fi
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3138 # actually working.
42ecbf5e
DJ
3139 break;;
3140 * )
3141 break;;
3142 esac
3143done
81ecdfbb
RW
3144test "$ac_cv_exeext" = no && ac_cv_exeext=
3145
42ecbf5e 3146else
81ecdfbb
RW
3147 ac_file=''
3148fi
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150$as_echo "$ac_file" >&6; }
3151if test -z "$ac_file"; then :
3152 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
81ecdfbb
RW
3155{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157{ as_fn_set_status 77
3158as_fn_error "C compiler cannot create executables
3159See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3160fi
42ecbf5e 3161ac_exeext=$ac_cv_exeext
42ecbf5e 3162
81ecdfbb 3163# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3164# the compiler is broken, or we cross compile.
81ecdfbb
RW
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3166$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3167# If not cross compiling, check that we can run a simple program.
3168if test "$cross_compiling" != yes; then
3169 if { ac_try='./$ac_file'
81ecdfbb
RW
3170 { { case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175$as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_try") 2>&5
42ecbf5e 3177 ac_status=$?
81ecdfbb
RW
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3180 cross_compiling=no
3181 else
3182 if test "$cross_compiling" = maybe; then
3183 cross_compiling=yes
3184 else
81ecdfbb
RW
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error "cannot run C compiled programs.
42ecbf5e 3188If you meant to cross compile, use \`--host'.
81ecdfbb 3189See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3190 fi
3191 fi
3192fi
81ecdfbb
RW
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194$as_echo "yes" >&6; }
42ecbf5e 3195
81ecdfbb 3196rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3197ac_clean_files=$ac_clean_files_save
81ecdfbb 3198# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3199# the compiler is broken, or we cross compile.
81ecdfbb
RW
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3201$as_echo_n "checking whether we are cross compiling... " >&6; }
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3203$as_echo "$cross_compiling" >&6; }
3204
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206$as_echo_n "checking for suffix of executables... " >&6; }
3207if { { ac_try="$ac_link"
3208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
42ecbf5e 3215 ac_status=$?
81ecdfbb
RW
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
42ecbf5e
DJ
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220# work properly (i.e., refer to `conftest.exe'), while it won't with
3221# `rm'.
3222for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
81ecdfbb 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3227 break;;
3228 * ) break;;
3229 esac
3230done
3231else
81ecdfbb
RW
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error "cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3236fi
42ecbf5e 3237rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
81ecdfbb
RW
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3245$as_echo_n "checking for suffix of object files... " >&6; }
3246if test "${ac_cv_objext+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
42ecbf5e 3248else
81ecdfbb 3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3250/* end confdefs.h. */
3251
3252int
3253main ()
3254{
3255
3256 ;
3257 return 0;
3258}
3259_ACEOF
3260rm -f conftest.o conftest.obj
81ecdfbb
RW
3261if { { ac_try="$ac_compile"
3262case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267$as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_compile") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 for ac_file in conftest.o conftest.obj conftest.*; do
3273 test -f "$ac_file" || continue;
42ecbf5e 3274 case $ac_file in
81ecdfbb 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3277 break;;
3278 esac
3279done
3280else
81ecdfbb 3281 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
81ecdfbb
RW
3284{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error "cannot compute suffix of object files: cannot compile
3287See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3288fi
42ecbf5e
DJ
3289rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290fi
81ecdfbb
RW
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3292$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3293OBJEXT=$ac_cv_objext
3294ac_objext=$OBJEXT
81ecdfbb
RW
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3296$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3297if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3298 $as_echo_n "(cached) " >&6
42ecbf5e 3299else
81ecdfbb 3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306#ifndef __GNUC__
3307 choke me
3308#endif
3309
3310 ;
3311 return 0;
3312}
3313_ACEOF
81ecdfbb 3314if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3315 ac_compiler_gnu=yes
3316else
81ecdfbb 3317 ac_compiler_gnu=no
42ecbf5e 3318fi
81ecdfbb 3319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3320ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321
3322fi
81ecdfbb
RW
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3324$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3325if test $ac_compiler_gnu = yes; then
3326 GCC=yes
3327else
3328 GCC=
3329fi
42ecbf5e
DJ
3330ac_test_CFLAGS=${CFLAGS+set}
3331ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3333$as_echo_n "checking whether $CC accepts -g... " >&6; }
3334if test "${ac_cv_prog_cc_g+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3336else
3337 ac_save_c_werror_flag=$ac_c_werror_flag
3338 ac_c_werror_flag=yes
3339 ac_cv_prog_cc_g=no
3340 CFLAGS="-g"
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3342/* end confdefs.h. */
3343
3344int
3345main ()
3346{
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
81ecdfbb 3352if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3353 ac_cv_prog_cc_g=yes
3354else
81ecdfbb
RW
3355 CFLAGS=""
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h. */
3358
3359int
3360main ()
3361{
3362
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367if ac_fn_c_try_compile "$LINENO"; then :
3368
3369else
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3371 CFLAGS="-g"
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h. */
3374
3375int
3376main ()
3377{
42ecbf5e 3378
81ecdfbb
RW
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_cv_prog_cc_g=yes
3385fi
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3389fi
81ecdfbb
RW
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3392fi
81ecdfbb
RW
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3394$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3395if test "$ac_test_CFLAGS" = set; then
3396 CFLAGS=$ac_save_CFLAGS
3397elif test $ac_cv_prog_cc_g = yes; then
3398 if test "$GCC" = yes; then
3399 CFLAGS="-g -O2"
3400 else
3401 CFLAGS="-g"
3402 fi
3403else
3404 if test "$GCC" = yes; then
3405 CFLAGS="-O2"
3406 else
3407 CFLAGS=
3408 fi
3409fi
81ecdfbb
RW
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3411$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3412if test "${ac_cv_prog_cc_c89+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
42ecbf5e 3414else
81ecdfbb 3415 ac_cv_prog_cc_c89=no
42ecbf5e 3416ac_save_CC=$CC
81ecdfbb 3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3418/* end confdefs.h. */
3419#include <stdarg.h>
3420#include <stdio.h>
3421#include <sys/types.h>
3422#include <sys/stat.h>
3423/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3424struct buf { int x; };
3425FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426static char *e (p, i)
3427 char **p;
3428 int i;
3429{
3430 return p[i];
3431}
3432static char *f (char * (*g) (char **, int), char **p, ...)
3433{
3434 char *s;
3435 va_list v;
3436 va_start (v,p);
3437 s = g (p, va_arg (v,int));
3438 va_end (v);
3439 return s;
3440}
3441
3442/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3443 function prototypes and stuff, but not '\xHH' hex character constants.
3444 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3445 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3447 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3448 that's true only with -std. */
42ecbf5e
DJ
3449int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450
81ecdfbb
RW
3451/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3452 inside strings and character constants. */
3453#define FOO(x) 'x'
3454int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3455
42ecbf5e
DJ
3456int test (int i, double x);
3457struct s1 {int (*f) (int a);};
3458struct s2 {int (*f) (double a);};
3459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460int argc;
3461char **argv;
3462int
3463main ()
3464{
3465return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 ;
3467 return 0;
3468}
3469_ACEOF
81ecdfbb
RW
3470for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3472do
3473 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3476fi
81ecdfbb
RW
3477rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3479done
81ecdfbb 3480rm -f conftest.$ac_ext
42ecbf5e
DJ
3481CC=$ac_save_CC
3482
3483fi
81ecdfbb
RW
3484# AC_CACHE_VAL
3485case "x$ac_cv_prog_cc_c89" in
3486 x)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3488$as_echo "none needed" >&6; } ;;
3489 xno)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3491$as_echo "unsupported" >&6; } ;;
42ecbf5e 3492 *)
81ecdfbb
RW
3493 CC="$CC $ac_cv_prog_cc_c89"
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3495$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3496esac
81ecdfbb 3497if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3498
42ecbf5e
DJ
3499fi
3500
42ecbf5e
DJ
3501ac_ext=c
3502ac_cpp='$CPP $CPPFLAGS'
3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507
81ecdfbb
RW
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3509$as_echo_n "checking for library containing strerror... " >&6; }
3510if test "${ac_cv_search_strerror+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3512else
3513 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3515/* end confdefs.h. */
3516
81ecdfbb
RW
3517/* Override any GCC internal prototype to avoid an error.
3518 Use char because int might match the return type of a GCC
3519 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3520#ifdef __cplusplus
3521extern "C"
3522#endif
42ecbf5e
DJ
3523char strerror ();
3524int
3525main ()
3526{
81ecdfbb 3527return strerror ();
42ecbf5e
DJ
3528 ;
3529 return 0;
3530}
3531_ACEOF
81ecdfbb
RW
3532for ac_lib in '' cposix; do
3533 if test -z "$ac_lib"; then
3534 ac_res="none required"
3535 else
3536 ac_res=-l$ac_lib
42ecbf5e 3537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3538 fi
3539 if ac_fn_c_try_link "$LINENO"; then :
3540 ac_cv_search_strerror=$ac_res
3541fi
3542rm -f core conftest.err conftest.$ac_objext \
3543 conftest$ac_exeext
3544 if test "${ac_cv_search_strerror+set}" = set; then :
3545 break
3546fi
3547done
3548if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3549
42ecbf5e 3550else
81ecdfbb 3551 ac_cv_search_strerror=no
42ecbf5e 3552fi
81ecdfbb 3553rm conftest.$ac_ext
42ecbf5e
DJ
3554LIBS=$ac_func_search_save_LIBS
3555fi
81ecdfbb
RW
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3557$as_echo "$ac_cv_search_strerror" >&6; }
3558ac_res=$ac_cv_search_strerror
3559if test "$ac_res" != no; then :
3560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3561
3562fi
e5a52504
MM
3563
3564
81ecdfbb
RW
3565am__api_version='1.11'
3566
e5a52504
MM
3567# Find a good install program. We prefer a C program (faster),
3568# so one script is as good as another. But avoid the broken or
3569# incompatible versions:
3570# SysV /etc/install, /usr/sbin/install
3571# SunOS /usr/etc/install
3572# IRIX /sbin/install
3573# AIX /bin/install
42ecbf5e 3574# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3578# OS/2's system install, which has a completely different semantic
e5a52504 3579# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3580# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3582$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3583if test -z "$INSTALL"; then
81ecdfbb
RW
3584if test "${ac_cv_path_install+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
e5a52504 3586else
42ecbf5e
DJ
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3592 # Account for people who put trailing slashes in PATH elements.
3593case $as_dir/ in #((
3594 ./ | .// | /[cC]/* | \
42ecbf5e 3595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3596 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3597 /usr/ucb/* ) ;;
3598 *)
3599 # OSF1 and SCO ODT 3.0 have their own names for install.
3600 # Don't use installbsd from OSF since it installs stuff as root
3601 # by default.
3602 for ac_prog in ginstall scoinst install; do
3603 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3604 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3605 if test $ac_prog = install &&
42ecbf5e 3606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3607 # AIX install. It has an incompatible calling convention.
3608 :
42ecbf5e
DJ
3609 elif test $ac_prog = install &&
3610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3611 # program-specific install script used by HP pwplus--don't use.
3612 :
252b5132 3613 else
58c85be7
RW
3614 rm -rf conftest.one conftest.two conftest.dir
3615 echo one > conftest.one
3616 echo two > conftest.two
3617 mkdir conftest.dir
3618 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3619 test -s conftest.one && test -s conftest.two &&
3620 test -s conftest.dir/conftest.one &&
3621 test -s conftest.dir/conftest.two
3622 then
3623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3624 break 3
3625 fi
252b5132
RH
3626 fi
3627 fi
3628 done
42ecbf5e
DJ
3629 done
3630 ;;
3631esac
81ecdfbb
RW
3632
3633 done
3634IFS=$as_save_IFS
42ecbf5e 3635
58c85be7 3636rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3637
3638fi
3639 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3640 INSTALL=$ac_cv_path_install
252b5132 3641 else
58c85be7
RW
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for INSTALL within a source directory, because that will
252b5132 3644 # break other packages using the cache if that directory is
58c85be7 3645 # removed, or if the value is a relative name.
42ecbf5e 3646 INSTALL=$ac_install_sh
252b5132
RH
3647 fi
3648fi
81ecdfbb
RW
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3650$as_echo "$INSTALL" >&6; }
252b5132
RH
3651
3652# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653# It thinks the first close brace ends the variable substitution.
3654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
42ecbf5e 3656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3657
3658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659
81ecdfbb
RW
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3661$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3662# Just in case
3663sleep 1
42ecbf5e 3664echo timestamp > conftest.file
81ecdfbb
RW
3665# Reject unsafe characters in $srcdir or the absolute working directory
3666# name. Accept space and tab only in the latter.
3667am_lf='
3668'
3669case `pwd` in
3670 *[\\\"\#\$\&\'\`$am_lf]*)
3671 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3672esac
3673case $srcdir in
3674 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3675 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3676esac
3677
252b5132
RH
3678# Do `set' in a subshell so we don't clobber the current shell's
3679# arguments. Must try -L first in case configure is actually a
3680# symlink; some systems play weird games with the mod time of symlinks
3681# (eg FreeBSD returns the mod time of the symlink's containing
3682# directory).
3683if (
81ecdfbb 3684 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3685 if test "$*" = "X"; then
3686 # -L didn't work.
81ecdfbb 3687 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3688 fi
42ecbf5e
DJ
3689 rm -f conftest.file
3690 if test "$*" != "X $srcdir/configure conftest.file" \
3691 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3692
3693 # If neither matched, then we have a broken ls. This can happen
3694 # if, for instance, CONFIG_SHELL is bash and it inherits a
3695 # broken ls alias from the environment. This has actually
3696 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3697 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3698alias in your environment" "$LINENO" 5
252b5132
RH
3699 fi
3700
42ecbf5e 3701 test "$2" = conftest.file
252b5132
RH
3702 )
3703then
3704 # Ok.
3705 :
3706else
81ecdfbb
RW
3707 as_fn_error "newly created file is older than distributed files!
3708Check your system clock" "$LINENO" 5
252b5132 3709fi
81ecdfbb
RW
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711$as_echo "yes" >&6; }
252b5132 3712test "$program_prefix" != NONE &&
81ecdfbb 3713 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3714# Use a double $ so make ignores it.
3715test "$program_suffix" != NONE &&
81ecdfbb
RW
3716 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3717# Double any \ or $.
42ecbf5e 3718# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3719ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3720program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3721
3722# expand $ac_aux_dir to an absolute path
3723am_aux_dir=`cd $ac_aux_dir && pwd`
3724
81ecdfbb
RW
3725if test x"${MISSING+set}" != xset; then
3726 case $am_aux_dir in
3727 *\ * | *\ *)
3728 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3729 *)
3730 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3731 esac
3732fi
42ecbf5e
DJ
3733# Use eval to expand $SHELL
3734if eval "$MISSING --run true"; then
3735 am_missing_run="$MISSING --run "
3736else
3737 am_missing_run=
81ecdfbb
RW
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3739$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3740fi
3741
3742if test x"${install_sh}" != xset; then
3743 case $am_aux_dir in
3744 *\ * | *\ *)
3745 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3746 *)
3747 install_sh="\${SHELL} $am_aux_dir/install-sh"
3748 esac
3749fi
3750
3751# Installed binaries are usually stripped using `strip' when the user
3752# run `make install-strip'. However `strip' might not be the right
3753# tool to use in cross-compilation environments, therefore Automake
3754# will honor the `STRIP' environment variable to overrule this program.
3755if test "$cross_compiling" != no; then
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}strip; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
3761if test "${ac_cv_prog_STRIP+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779 done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784STRIP=$ac_cv_prog_STRIP
3785if test -n "$STRIP"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3787$as_echo "$STRIP" >&6; }
3788else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$ac_cv_prog_STRIP"; then
3796 ac_ct_STRIP=$STRIP
3797 # Extract the first word of "strip", so it can be a program name with args.
3798set dummy strip; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
3801if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803else
3804 if test -n "$ac_ct_STRIP"; then
3805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_ac_ct_STRIP="strip"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818done
3819 done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3825if test -n "$ac_ct_STRIP"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3827$as_echo "$ac_ct_STRIP" >&6; }
3828else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833 if test "x$ac_ct_STRIP" = x; then
3834 STRIP=":"
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842 STRIP=$ac_ct_STRIP
3843 fi
3844else
3845 STRIP="$ac_cv_prog_STRIP"
3846fi
3847
3848fi
3849INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3850
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3852$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3853if test -z "$MKDIR_P"; then
3854 if test "${ac_cv_path_mkdir+set}" = set; then :
3855 $as_echo_n "(cached) " >&6
3856else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3859do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in mkdir gmkdir; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3865 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3866 'mkdir (GNU coreutils) '* | \
3867 'mkdir (coreutils) '* | \
3868 'mkdir (fileutils) '4.1*)
3869 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3870 break 3;;
3871 esac
3872 done
3873 done
42ecbf5e 3874 done
81ecdfbb
RW
3875IFS=$as_save_IFS
3876
3877fi
3878
3879 if test "${ac_cv_path_mkdir+set}" = set; then
3880 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3881 else
81ecdfbb
RW
3882 # As a last resort, use the slow shell script. Don't cache a
3883 # value for MKDIR_P within a source directory, because that will
3884 # break other packages using the cache if that directory is
3885 # removed, or if the value is a relative name.
3886 test -d ./--version && rmdir ./--version
3887 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3888 fi
3889fi
81ecdfbb
RW
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3891$as_echo "$MKDIR_P" >&6; }
3892
3893mkdir_p="$MKDIR_P"
3894case $mkdir_p in
3895 [\\/$]* | ?:[\\/]*) ;;
3896 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3897esac
42ecbf5e
DJ
3898
3899for ac_prog in gawk mawk nawk awk
3900do
3901 # Extract the first word of "$ac_prog", so it can be a program name with args.
3902set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if test "${ac_cv_prog_AWK+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3907else
3908 if test -n "$AWK"; then
3909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3918 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3920 break 2
3921 fi
3922done
81ecdfbb
RW
3923 done
3924IFS=$as_save_IFS
42ecbf5e
DJ
3925
3926fi
3927fi
3928AWK=$ac_cv_prog_AWK
3929if test -n "$AWK"; then
81ecdfbb
RW
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3931$as_echo "$AWK" >&6; }
42ecbf5e 3932else
81ecdfbb
RW
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
42ecbf5e 3935fi
252b5132 3936
81ecdfbb 3937
42ecbf5e
DJ
3938 test -n "$AWK" && break
3939done
252b5132 3940
81ecdfbb
RW
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3942$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3943set x ${MAKE-make}
3944ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3945if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3946 $as_echo_n "(cached) " >&6
252b5132 3947else
42ecbf5e 3948 cat >conftest.make <<\_ACEOF
81ecdfbb 3949SHELL = /bin/sh
252b5132 3950all:
81ecdfbb 3951 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3952_ACEOF
252b5132 3953# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3954case `${MAKE-make} -f conftest.make 2>/dev/null` in
3955 *@@@%%%=?*=@@@%%%*)
3956 eval ac_cv_prog_make_${ac_make}_set=yes;;
3957 *)
3958 eval ac_cv_prog_make_${ac_make}_set=no;;
3959esac
42ecbf5e 3960rm -f conftest.make
252b5132 3961fi
81ecdfbb
RW
3962if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964$as_echo "yes" >&6; }
252b5132
RH
3965 SET_MAKE=
3966else
81ecdfbb
RW
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
252b5132
RH
3969 SET_MAKE="MAKE=${MAKE-make}"
3970fi
3971
42ecbf5e
DJ
3972rm -rf .tst 2>/dev/null
3973mkdir .tst 2>/dev/null
3974if test -d .tst; then
3975 am__leading_dot=.
3976else
3977 am__leading_dot=_
3978fi
3979rmdir .tst 2>/dev/null
3980
3981DEPDIR="${am__leading_dot}deps"
3982
81ecdfbb 3983ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3984
3985
3986am_make=${MAKE-make}
3987cat > confinc << 'END'
3988am__doit:
81ecdfbb 3989 @echo this is the am__doit target
42ecbf5e
DJ
3990.PHONY: am__doit
3991END
3992# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3994$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3995am__include="#"
3996am__quote=
3997_am_result=none
3998# First try GNU make style include.
3999echo "include confinc" > confmf
81ecdfbb
RW
4000# Ignore all kinds of additional output from `make'.
4001case `$am_make -s -f confmf 2> /dev/null` in #(
4002*the\ am__doit\ target*)
4003 am__include=include
4004 am__quote=
4005 _am_result=GNU
4006 ;;
4007esac
42ecbf5e
DJ
4008# Now try BSD make style include.
4009if test "$am__include" = "#"; then
4010 echo '.include "confinc"' > confmf
81ecdfbb
RW
4011 case `$am_make -s -f confmf 2> /dev/null` in #(
4012 *the\ am__doit\ target*)
4013 am__include=.include
4014 am__quote="\""
4015 _am_result=BSD
4016 ;;
4017 esac
42ecbf5e
DJ
4018fi
4019
4020
81ecdfbb
RW
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4022$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4023rm -f confinc confmf
4024
81ecdfbb
RW
4025# Check whether --enable-dependency-tracking was given.
4026if test "${enable_dependency_tracking+set}" = set; then :
4027 enableval=$enable_dependency_tracking;
4028fi
42ecbf5e 4029
42ecbf5e
DJ
4030if test "x$enable_dependency_tracking" != xno; then
4031 am_depcomp="$ac_aux_dir/depcomp"
4032 AMDEPBACKSLASH='\'
4033fi
81ecdfbb 4034 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4035 AMDEP_TRUE=
4036 AMDEP_FALSE='#'
4037else
4038 AMDEP_TRUE='#'
4039 AMDEP_FALSE=
4040fi
4041
e5a52504 4042
81ecdfbb
RW
4043if test "`cd $srcdir && pwd`" != "`pwd`"; then
4044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4045 # is not polluted with repeated "-I."
4046 am__isrc=' -I$(srcdir)'
4047 # test to see if srcdir already configured
4048 if test -f $srcdir/config.status; then
4049 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4050 fi
42ecbf5e 4051fi
252b5132 4052
42ecbf5e
DJ
4053# test whether we have cygpath
4054if test -z "$CYGPATH_W"; then
4055 if (cygpath --version) >/dev/null 2>/dev/null; then
4056 CYGPATH_W='cygpath -w'
4057 else
4058 CYGPATH_W=echo
4059 fi
252b5132 4060fi
42ecbf5e
DJ
4061
4062
4063# Define the identity of the package.
2e98a7bd 4064 PACKAGE='ld'
91dc4e0a 4065 VERSION='2.25.51'
42ecbf5e
DJ
4066
4067
4068cat >>confdefs.h <<_ACEOF
e5a52504 4069#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4070_ACEOF
4071
252b5132 4072
42ecbf5e 4073cat >>confdefs.h <<_ACEOF
e5a52504 4074#define VERSION "$VERSION"
42ecbf5e
DJ
4075_ACEOF
4076
4077# Some tools Automake needs.
4078
4079ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4080
4081
4082AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4083
4084
4085AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4086
4087
4088AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4089
e5a52504 4090
42ecbf5e 4091MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4092
42ecbf5e
DJ
4093# We need awk for the "check" target. The system "awk" is bad on
4094# some platforms.
4095# Always define AMTAR for backward compatibility.
4096
4097AMTAR=${AMTAR-"${am_missing_run}tar"}
4098
4099am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4100
4101
4102
4103
4104depcc="$CC" am_compiler_list=
4105
81ecdfbb
RW
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107$as_echo_n "checking dependency style of $depcc... " >&6; }
4108if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4110else
4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112 # We make a subdir and do the tests there. Otherwise we can end up
4113 # making bogus files that we don't know about and never remove. For
4114 # instance it was reported that on HP-UX the gcc test will end up
4115 # making a dummy file named `D' -- because `-MD' means `put the output
4116 # in D'.
4117 mkdir conftest.dir
4118 # Copy depcomp to subdir because otherwise we won't find it if we're
4119 # using a relative directory.
4120 cp "$am_depcomp" conftest.dir
4121 cd conftest.dir
4122 # We will build objects and dependencies in a subdirectory because
4123 # it helps to detect inapplicable dependency modes. For instance
4124 # both Tru64's cc and ICC support -MD to output dependencies as a
4125 # side effect of compilation, but ICC will put the dependencies in
4126 # the current directory while Tru64 will put them in the object
4127 # directory.
4128 mkdir sub
4129
4130 am_cv_CC_dependencies_compiler_type=none
4131 if test "$am_compiler_list" = ""; then
4132 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4133 fi
81ecdfbb
RW
4134 am__universal=false
4135 case " $depcc " in #(
4136 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4137 esac
4138
42ecbf5e
DJ
4139 for depmode in $am_compiler_list; do
4140 # Setup a source with many dependencies, because some compilers
4141 # like to wrap large dependency lists on column 80 (with \), and
4142 # we should not choose a depcomp mode which is confused by this.
4143 #
4144 # We need to recreate these files for each test, as the compiler may
4145 # overwrite some of them when testing with obscure command lines.
4146 # This happens at least with the AIX C compiler.
4147 : > sub/conftest.c
4148 for i in 1 2 3 4 5 6; do
4149 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4151 # Solaris 8's {/usr,}/bin/sh.
4152 touch sub/conftst$i.h
4153 done
4154 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155
81ecdfbb
RW
4156 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4157 # mode. It turns out that the SunPro C++ compiler does not properly
4158 # handle `-M -o', and we need to detect this. Also, some Intel
4159 # versions had trouble with output in subdirs
4160 am__obj=sub/conftest.${OBJEXT-o}
4161 am__minus_obj="-o $am__obj"
42ecbf5e 4162 case $depmode in
81ecdfbb
RW
4163 gcc)
4164 # This depmode causes a compiler race in universal mode.
4165 test "$am__universal" = false || continue
4166 ;;
42ecbf5e
DJ
4167 nosideeffect)
4168 # after this tag, mechanisms are not by side-effect, so they'll
4169 # only be used when explicitly requested
4170 if test "x$enable_dependency_tracking" = xyes; then
4171 continue
4172 else
4173 break
4174 fi
4175 ;;
81ecdfbb
RW
4176 msvisualcpp | msvcmsys)
4177 # This compiler won't grok `-c -o', but also, the minuso test has
4178 # not run yet. These depmodes are late enough in the game, and
4179 # so weak that their functioning should not be impacted.
4180 am__obj=conftest.${OBJEXT-o}
4181 am__minus_obj=
4182 ;;
42ecbf5e
DJ
4183 none) break ;;
4184 esac
42ecbf5e 4185 if depmode=$depmode \
81ecdfbb 4186 source=sub/conftest.c object=$am__obj \
42ecbf5e 4187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4188 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4189 >/dev/null 2>conftest.err &&
81ecdfbb 4190 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4191 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4192 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4193 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194 # icc doesn't choke on unknown options, it will just issue warnings
4195 # or remarks (even with -Werror). So we grep stderr for any message
4196 # that says an option was ignored or not supported.
4197 # When given -MP, icc 7.0 and 7.1 complain thusly:
4198 # icc: Command line warning: ignoring option '-M'; no argument required
4199 # The diagnosis changed in icc 8.0:
4200 # icc: Command line remark: option '-MP' not supported
4201 if (grep 'ignoring option' conftest.err ||
4202 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203 am_cv_CC_dependencies_compiler_type=$depmode
4204 break
4205 fi
4206 fi
4207 done
2469cfa2 4208
42ecbf5e
DJ
4209 cd ..
4210 rm -rf conftest.dir
2469cfa2 4211else
42ecbf5e
DJ
4212 am_cv_CC_dependencies_compiler_type=none
4213fi
4214
2469cfa2 4215fi
81ecdfbb
RW
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4217$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4218CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
81ecdfbb 4220 if
42ecbf5e
DJ
4221 test "x$enable_dependency_tracking" != xno \
4222 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223 am__fastdepCC_TRUE=
4224 am__fastdepCC_FALSE='#'
2469cfa2 4225else
42ecbf5e
DJ
4226 am__fastdepCC_TRUE='#'
4227 am__fastdepCC_FALSE=
2469cfa2 4228fi
2469cfa2 4229
2469cfa2 4230
e5a52504 4231
42ecbf5e 4232
64ac50ac
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4234$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4235 # Check whether --enable-maintainer-mode was given.
4236if test "${enable_maintainer_mode+set}" = set; then :
4237 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4238else
4239 USE_MAINTAINER_MODE=no
4240fi
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4243$as_echo "$USE_MAINTAINER_MODE" >&6; }
4244 if test $USE_MAINTAINER_MODE = yes; then
4245 MAINTAINER_MODE_TRUE=
4246 MAINTAINER_MODE_FALSE='#'
4247else
4248 MAINTAINER_MODE_TRUE='#'
4249 MAINTAINER_MODE_FALSE=
4250fi
4251
4252 MAINT=$MAINTAINER_MODE_TRUE
4253
4254
4255
b879806f
AM
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}gcc; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if test "${ac_cv_prog_CC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC="$CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283done
4284 done
4285IFS=$as_save_IFS
d7040cdb 4286
81ecdfbb 4287fi
81ecdfbb 4288fi
b879806f
AM
4289CC=$ac_cv_prog_CC
4290if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292$as_echo "$CC" >&6; }
2469cfa2 4293else
b879806f
AM
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
81ecdfbb 4296fi
d7040cdb
SE
4297
4298
b879806f
AM
4299fi
4300if test -z "$ac_cv_prog_CC"; then
4301 ac_ct_CC=$CC
4302 # Extract the first word of "gcc", so it can be a program name with args.
4303set dummy gcc; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
e5a52504 4308else
b879806f
AM
4309 if test -n "$ac_ct_CC"; then
4310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_ac_ct_CC="gcc"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323done
4324 done
4325IFS=$as_save_IFS
d7040cdb 4326
81ecdfbb 4327fi
b879806f
AM
4328fi
4329ac_ct_CC=$ac_cv_prog_ac_ct_CC
4330if test -n "$ac_ct_CC"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4332$as_echo "$ac_ct_CC" >&6; }
4fda8867 4333else
b879806f
AM
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
4fda8867
NC
4336fi
4337
b879806f
AM
4338 if test "x$ac_ct_CC" = x; then
4339 CC=""
4340 else
4341 case $cross_compiling:$ac_tool_warned in
4342yes:)
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345ac_tool_warned=yes ;;
7fb9f789 4346esac
b879806f
AM
4347 CC=$ac_ct_CC
4348 fi
7fb9f789 4349else
b879806f 4350 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4351fi
4352
b879806f
AM
4353if test -z "$CC"; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4356set dummy ${ac_tool_prefix}cc; ac_word=$2
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358$as_echo_n "checking for $ac_word... " >&6; }
4359if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4360 $as_echo_n "(cached) " >&6
4361else
b879806f
AM
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
397841b5 4367do
b879806f
AM
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_CC="${ac_tool_prefix}cc"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377 done
4378IFS=$as_save_IFS
d7040cdb 4379
ce2cded5 4380fi
ce2cded5 4381fi
b879806f
AM
4382CC=$ac_cv_prog_CC
4383if test -n "$CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385$as_echo "$CC" >&6; }
4386else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388$as_echo "no" >&6; }
81ecdfbb
RW
4389fi
4390
d7040cdb 4391
b879806f 4392 fi
ce2cded5 4393fi
b879806f
AM
4394if test -z "$CC"; then
4395 # Extract the first word of "cc", so it can be a program name with args.
4396set dummy cc; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if test "${ac_cv_prog_CC+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
397841b5 4401else
b879806f
AM
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4404else
4405 ac_prog_rejected=no
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
397841b5 4408do
b879806f
AM
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4414 ac_prog_rejected=yes
4415 continue
4416 fi
4417 ac_cv_prog_CC="cc"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4420 fi
4421done
4422 done
4423IFS=$as_save_IFS
d7040cdb 4424
b879806f
AM
4425if test $ac_prog_rejected = yes; then
4426 # We found a bogon in the path, so make sure we never use it.
4427 set dummy $ac_cv_prog_CC
4428 shift
4429 if test $# != 0; then
4430 # We chose a different compiler from the bogus one.
4431 # However, it has the same basename, so the bogon will be chosen
4432 # first if we set CC to just the basename; use the full file name.
4433 shift
4434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4435 fi
397841b5 4436fi
397841b5 4437fi
b879806f
AM
4438fi
4439CC=$ac_cv_prog_CC
4440if test -n "$CC"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4442$as_echo "$CC" >&6; }
397841b5 4443else
b879806f
AM
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
ce2cded5 4446fi
d7040cdb 4447
397841b5 4448
b879806f
AM
4449fi
4450if test -z "$CC"; then
4451 if test -n "$ac_tool_prefix"; then
4452 for ac_prog in cl.exe
4453 do
4454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4459 $as_echo_n "(cached) " >&6
d7040cdb 4460else
b879806f
AM
4461 if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
d7040cdb
SE
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
81ecdfbb 4469 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
397841b5
AM
4476 done
4477IFS=$as_save_IFS
d7040cdb 4478
252b5132 4479fi
b879806f
AM
4480fi
4481CC=$ac_cv_prog_CC
4482if test -n "$CC"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4484$as_echo "$CC" >&6; }
4485else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
397841b5
AM
4489
4490
b879806f
AM
4491 test -n "$CC" && break
4492 done
4493fi
4494if test -z "$CC"; then
4495 ac_ct_CC=$CC
4496 for ac_prog in cl.exe
4497do
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499set dummy $ac_prog; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
4502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4503 $as_echo_n "(cached) " >&6
4504else
b879806f
AM
4505 if test -n "$ac_ct_CC"; then
4506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
397841b5
AM
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
397841b5 4513 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 ac_cv_prog_ac_ct_CC="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4518 fi
4519done
397841b5
AM
4520 done
4521IFS=$as_save_IFS
397841b5 4522
397841b5 4523fi
397841b5 4524fi
b879806f
AM
4525ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526if test -n "$ac_ct_CC"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4528$as_echo "$ac_ct_CC" >&6; }
4529else
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
397841b5
AM
4532fi
4533
397841b5 4534
b879806f
AM
4535 test -n "$ac_ct_CC" && break
4536done
397841b5 4537
b879806f
AM
4538 if test "x$ac_ct_CC" = x; then
4539 CC=""
4540 else
4541 case $cross_compiling:$ac_tool_warned in
4542yes:)
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545ac_tool_warned=yes ;;
397841b5 4546esac
b879806f
AM
4547 CC=$ac_ct_CC
4548 fi
397841b5
AM
4549fi
4550
397841b5
AM
4551fi
4552
4553
b879806f
AM
4554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556as_fn_error "no acceptable C compiler found in \$PATH
4557See \`config.log' for more details." "$LINENO" 5; }
397841b5 4558
b879806f
AM
4559# Provide some information about the compiler.
4560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4561set X $ac_compile
4562ac_compiler=$2
4563for ac_option in --version -v -V -qversion; do
4564 { { ac_try="$ac_compiler $ac_option >&5"
4565case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4572 ac_status=$?
4573 if test -s conftest.err; then
4574 sed '10a\
4575... rest of stderr output deleted ...
4576 10q' conftest.err >conftest.er1
4577 cat conftest.er1 >&5
4578 rm -f conftest.er1 conftest.err
4579 fi
4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581 test $ac_status = 0; }
4582done
397841b5 4583
b879806f
AM
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4585$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4586if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4587 $as_echo_n "(cached) " >&6
4588else
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
b879806f 4591
44350750
NC
4592int
4593main ()
4594{
b879806f
AM
4595#ifndef __GNUC__
4596 choke me
4597#endif
4598
4599 ;
44350750
NC
4600 return 0;
4601}
4602_ACEOF
b879806f
AM
4603if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_compiler_gnu=yes
44350750 4605else
b879806f 4606 ac_compiler_gnu=no
44350750 4607fi
b879806f
AM
4608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609ac_cv_c_compiler_gnu=$ac_compiler_gnu
4610
44350750 4611fi
b879806f
AM
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4613$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4614if test $ac_compiler_gnu = yes; then
4615 GCC=yes
4616else
4617 GCC=
4618fi
4619ac_test_CFLAGS=${CFLAGS+set}
4620ac_save_CFLAGS=$CFLAGS
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4622$as_echo_n "checking whether $CC accepts -g... " >&6; }
4623if test "${ac_cv_prog_cc_g+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625else
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 ac_cv_prog_cc_g=no
4629 CFLAGS="-g"
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
44350750 4632
b879806f
AM
4633int
4634main ()
4635{
44350750 4636
b879806f
AM
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_g=yes
4643else
4644 CFLAGS=""
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h. */
4647
4648int
4649main ()
4650{
44350750 4651
b879806f
AM
4652 ;
4653 return 0;
4654}
4655_ACEOF
4656if ac_fn_c_try_compile "$LINENO"; then :
44350750 4657
b879806f
AM
4658else
4659 ac_c_werror_flag=$ac_save_c_werror_flag
4660 CFLAGS="-g"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h. */
397841b5 4663
b879806f
AM
4664int
4665main ()
4666{
397841b5 4667
b879806f
AM
4668 ;
4669 return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_compile "$LINENO"; then :
4673 ac_cv_prog_cc_g=yes
4674fi
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 ac_c_werror_flag=$ac_save_c_werror_flag
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4683$as_echo "$ac_cv_prog_cc_g" >&6; }
4684if test "$ac_test_CFLAGS" = set; then
4685 CFLAGS=$ac_save_CFLAGS
4686elif test $ac_cv_prog_cc_g = yes; then
4687 if test "$GCC" = yes; then
4688 CFLAGS="-g -O2"
4689 else
4690 CFLAGS="-g"
4691 fi
4692else
4693 if test "$GCC" = yes; then
4694 CFLAGS="-O2"
4695 else
4696 CFLAGS=
4697 fi
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4701if test "${ac_cv_prog_cc_c89+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703else
4704 ac_cv_prog_cc_c89=no
4705ac_save_CC=$CC
4706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h. */
4708#include <stdarg.h>
4709#include <stdio.h>
4710#include <sys/types.h>
4711#include <sys/stat.h>
4712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4713struct buf { int x; };
4714FILE * (*rcsopen) (struct buf *, struct stat *, int);
4715static char *e (p, i)
4716 char **p;
4717 int i;
4718{
4719 return p[i];
4720}
4721static char *f (char * (*g) (char **, int), char **p, ...)
4722{
4723 char *s;
4724 va_list v;
4725 va_start (v,p);
4726 s = g (p, va_arg (v,int));
4727 va_end (v);
4728 return s;
4729}
df7b86aa 4730
b879806f
AM
4731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4732 function prototypes and stuff, but not '\xHH' hex character constants.
4733 These don't provoke an error unfortunately, instead are silently treated
4734 as 'x'. The following induces an error, until -std is added to get
4735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4736 array size at least. It's necessary to write '\x00'==0 to get something
4737 that's true only with -std. */
4738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4739
b879806f
AM
4740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4741 inside strings and character constants. */
4742#define FOO(x) 'x'
4743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744
4745int test (int i, double x);
4746struct s1 {int (*f) (int a);};
4747struct s2 {int (*f) (double a);};
4748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4749int argc;
4750char **argv;
4751int
4752main ()
4753{
4754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761do
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_prog_cc_c89=$ac_arg
397841b5 4765fi
b879806f
AM
4766rm -f core conftest.err conftest.$ac_objext
4767 test "x$ac_cv_prog_cc_c89" != "xno" && break
4768done
4769rm -f conftest.$ac_ext
4770CC=$ac_save_CC
4771
397841b5 4772fi
b879806f
AM
4773# AC_CACHE_VAL
4774case "x$ac_cv_prog_cc_c89" in
4775 x)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777$as_echo "none needed" >&6; } ;;
4778 xno)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780$as_echo "unsupported" >&6; } ;;
4781 *)
4782 CC="$CC $ac_cv_prog_cc_c89"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4785esac
4786if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4787
b879806f 4788fi
397841b5
AM
4789
4790ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4795
4796ac_ext=cpp
4797ac_cpp='$CXXCPP $CPPFLAGS'
4798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801if test -z "$CXX"; then
4802 if test -n "$CCC"; then
4803 CXX=$CCC
4804 else
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4807 do
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4812if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4813 $as_echo_n "(cached) " >&6
4814else
b879806f
AM
4815 if test -n "$CXX"; then
4816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830 done
4831IFS=$as_save_IFS
4832
4833fi
4834fi
b879806f
AM
4835CXX=$ac_cv_prog_CXX
4836if test -n "$CXX"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4838$as_echo "$CXX" >&6; }
397841b5
AM
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843
4844
b879806f
AM
4845 test -n "$CXX" && break
4846 done
397841b5 4847fi
b879806f
AM
4848if test -z "$CXX"; then
4849 ac_ct_CXX=$CXX
4850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4851do
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853set dummy $ac_prog; ac_word=$2
397841b5
AM
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4856if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4857 $as_echo_n "(cached) " >&6
252b5132 4858else
b879806f
AM
4859 if test -n "$ac_ct_CXX"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4861else
ce2cded5
L
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4869 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4871 break 2
4872 fi
4873done
81ecdfbb
RW
4874 done
4875IFS=$as_save_IFS
4876
252b5132
RH
4877fi
4878fi
b879806f
AM
4879ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880if test -n "$ac_ct_CXX"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4883else
81ecdfbb
RW
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
d7040cdb
SE
4886fi
4887
81ecdfbb 4888
b879806f 4889 test -n "$ac_ct_CXX" && break
d7040cdb 4890done
d7040cdb 4891
b879806f
AM
4892 if test "x$ac_ct_CXX" = x; then
4893 CXX="g++"
81ecdfbb
RW
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896yes:)
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899ac_tool_warned=yes ;;
4900esac
b879806f 4901 CXX=$ac_ct_CXX
81ecdfbb 4902 fi
d7040cdb
SE
4903fi
4904
b879806f 4905 fi
d7040cdb 4906fi
ce2cded5 4907# Provide some information about the compiler.
b879806f 4908$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4909set X $ac_compile
4910ac_compiler=$2
4911for ac_option in --version -v -V -qversion; do
4912 { { ac_try="$ac_compiler $ac_option >&5"
4913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
4917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918$as_echo "$ac_try_echo"; } >&5
4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4920 ac_status=$?
81ecdfbb
RW
4921 if test -s conftest.err; then
4922 sed '10a\
4923... rest of stderr output deleted ...
4924 10q' conftest.err >conftest.er1
4925 cat conftest.er1 >&5
4926 rm -f conftest.er1 conftest.err
4927 fi
4928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929 test $ac_status = 0; }
4930done
d7040cdb 4931
b879806f
AM
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4933$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4934if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4935 $as_echo_n "(cached) " >&6
d7040cdb 4936else
81ecdfbb 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4938/* end confdefs.h. */
d7040cdb 4939
ce2cded5
L
4940int
4941main ()
4942{
4943#ifndef __GNUC__
4944 choke me
4945#endif
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
b879806f 4951if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4952 ac_compiler_gnu=yes
d7040cdb 4953else
81ecdfbb 4954 ac_compiler_gnu=no
d7040cdb 4955fi
81ecdfbb 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4957ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4958
ce2cded5 4959fi
b879806f
AM
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4961$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4962if test $ac_compiler_gnu = yes; then
b879806f 4963 GXX=yes
81ecdfbb 4964else
b879806f 4965 GXX=
81ecdfbb 4966fi
b879806f
AM
4967ac_test_CXXFLAGS=${CXXFLAGS+set}
4968ac_save_CXXFLAGS=$CXXFLAGS
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4970$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4971if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4972 $as_echo_n "(cached) " >&6
4973else
b879806f
AM
4974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4975 ac_cxx_werror_flag=yes
4976 ac_cv_prog_cxx_g=no
4977 CXXFLAGS="-g"
81ecdfbb 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4979/* end confdefs.h. */
d7040cdb 4980
ce2cded5
L
4981int
4982main ()
4983{
d7040cdb 4984
ce2cded5
L
4985 ;
4986 return 0;
4987}
4988_ACEOF
b879806f
AM
4989if ac_fn_cxx_try_compile "$LINENO"; then :
4990 ac_cv_prog_cxx_g=yes
ce2cded5 4991else
b879806f 4992 CXXFLAGS=""
81ecdfbb
RW
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h. */
4995
4996int
4997main ()
4998{
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
b879806f 5004if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5005
5006else
b879806f
AM
5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008 CXXFLAGS="-g"
81ecdfbb
RW
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h. */
5011
5012int
5013main ()
5014{
d7040cdb 5015
81ecdfbb
RW
5016 ;
5017 return 0;
5018}
5019_ACEOF
b879806f
AM
5020if ac_fn_cxx_try_compile "$LINENO"; then :
5021 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5026fi
81ecdfbb 5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5029fi
b879806f
AM
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5031$as_echo "$ac_cv_prog_cxx_g" >&6; }
5032if test "$ac_test_CXXFLAGS" = set; then
5033 CXXFLAGS=$ac_save_CXXFLAGS
5034elif test $ac_cv_prog_cxx_g = yes; then
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-g -O2"
ce2cded5 5037 else
b879806f 5038 CXXFLAGS="-g"
ce2cded5 5039 fi
d7040cdb 5040else
b879806f
AM
5041 if test "$GXX" = yes; then
5042 CXXFLAGS="-O2"
ce2cded5 5043 else
b879806f 5044 CXXFLAGS=
ce2cded5 5045 fi
d7040cdb 5046fi
b879806f
AM
5047ac_ext=c
5048ac_cpp='$CPP $CPPFLAGS'
5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052
5053depcc="$CXX" am_compiler_list=
5054
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5056$as_echo_n "checking dependency style of $depcc... " >&6; }
5057if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5058 $as_echo_n "(cached) " >&6
d7040cdb 5059else
b879806f
AM
5060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5061 # We make a subdir and do the tests there. Otherwise we can end up
5062 # making bogus files that we don't know about and never remove. For
5063 # instance it was reported that on HP-UX the gcc test will end up
5064 # making a dummy file named `D' -- because `-MD' means `put the output
5065 # in D'.
5066 mkdir conftest.dir
5067 # Copy depcomp to subdir because otherwise we won't find it if we're
5068 # using a relative directory.
5069 cp "$am_depcomp" conftest.dir
5070 cd conftest.dir
5071 # We will build objects and dependencies in a subdirectory because
5072 # it helps to detect inapplicable dependency modes. For instance
5073 # both Tru64's cc and ICC support -MD to output dependencies as a
5074 # side effect of compilation, but ICC will put the dependencies in
5075 # the current directory while Tru64 will put them in the object
5076 # directory.
5077 mkdir sub
d7040cdb 5078
b879806f
AM
5079 am_cv_CXX_dependencies_compiler_type=none
5080 if test "$am_compiler_list" = ""; then
5081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5082 fi
5083 am__universal=false
5084 case " $depcc " in #(
5085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5086 esac
d7040cdb 5087
b879806f
AM
5088 for depmode in $am_compiler_list; do
5089 # Setup a source with many dependencies, because some compilers
5090 # like to wrap large dependency lists on column 80 (with \), and
5091 # we should not choose a depcomp mode which is confused by this.
5092 #
5093 # We need to recreate these files for each test, as the compiler may
5094 # overwrite some of them when testing with obscure command lines.
5095 # This happens at least with the AIX C compiler.
5096 : > sub/conftest.c
5097 for i in 1 2 3 4 5 6; do
5098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5099 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5100 # Solaris 8's {/usr,}/bin/sh.
5101 touch sub/conftst$i.h
5102 done
5103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5104
b879806f
AM
5105 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5106 # mode. It turns out that the SunPro C++ compiler does not properly
5107 # handle `-M -o', and we need to detect this. Also, some Intel
5108 # versions had trouble with output in subdirs
5109 am__obj=sub/conftest.${OBJEXT-o}
5110 am__minus_obj="-o $am__obj"
5111 case $depmode in
5112 gcc)
5113 # This depmode causes a compiler race in universal mode.
5114 test "$am__universal" = false || continue
5115 ;;
5116 nosideeffect)
5117 # after this tag, mechanisms are not by side-effect, so they'll
5118 # only be used when explicitly requested
5119 if test "x$enable_dependency_tracking" = xyes; then
5120 continue
5121 else
5122 break
5123 fi
5124 ;;
5125 msvisualcpp | msvcmsys)
5126 # This compiler won't grok `-c -o', but also, the minuso test has
5127 # not run yet. These depmodes are late enough in the game, and
5128 # so weak that their functioning should not be impacted.
5129 am__obj=conftest.${OBJEXT-o}
5130 am__minus_obj=
5131 ;;
5132 none) break ;;
5133 esac
5134 if depmode=$depmode \
5135 source=sub/conftest.c object=$am__obj \
5136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5138 >/dev/null 2>conftest.err &&
5139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5143 # icc doesn't choke on unknown options, it will just issue warnings
5144 # or remarks (even with -Werror). So we grep stderr for any message
5145 # that says an option was ignored or not supported.
5146 # When given -MP, icc 7.0 and 7.1 complain thusly:
5147 # icc: Command line warning: ignoring option '-M'; no argument required
5148 # The diagnosis changed in icc 8.0:
5149 # icc: Command line remark: option '-MP' not supported
5150 if (grep 'ignoring option' conftest.err ||
5151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152 am_cv_CXX_dependencies_compiler_type=$depmode
5153 break
5154 fi
5155 fi
5156 done
5157
5158 cd ..
5159 rm -rf conftest.dir
5160else
5161 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5162fi
d7040cdb 5163
ce2cded5 5164fi
b879806f
AM
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5166$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5167CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5168
b879806f
AM
5169 if
5170 test "x$enable_dependency_tracking" != xno \
5171 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5172 am__fastdepCXX_TRUE=
5173 am__fastdepCXX_FALSE='#'
5174else
5175 am__fastdepCXX_TRUE='#'
5176 am__fastdepCXX_FALSE=
ce2cded5 5177fi
d7040cdb 5178
b879806f 5179
68880f31
CLT
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5181$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5182if test "${ac_cv_path_GREP+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184else
5185 if test -z "$GREP"; then
5186 ac_path_GREP_found=false
5187 # Loop through the user's path and test for each of PROGNAME-LIST
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_prog in grep ggrep; do
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5197# Check for GNU ac_path_GREP and select it if it is found.
5198 # Check for GNU $ac_path_GREP
5199case `"$ac_path_GREP" --version 2>&1` in
5200*GNU*)
5201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5202*)
5203 ac_count=0
5204 $as_echo_n 0123456789 >"conftest.in"
5205 while :
5206 do
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 $as_echo 'GREP' >> "conftest.nl"
5211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_GREP="$ac_path_GREP"
5217 ac_path_GREP_max=$ac_count
5218 fi
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5221 done
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223esac
5224
5225 $ac_path_GREP_found && break 3
5226 done
5227 done
5228 done
5229IFS=$as_save_IFS
5230 if test -z "$ac_cv_path_GREP"; then
5231 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 fi
5233else
5234 ac_cv_path_GREP=$GREP
5235fi
5236
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5239$as_echo "$ac_cv_path_GREP" >&6; }
5240 GREP="$ac_cv_path_GREP"
5241
5242
ce2cded5
L
5243ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5249$as_echo_n "checking how to run the C preprocessor... " >&6; }
5250# On Suns, sometimes $CPP names a directory.
5251if test -n "$CPP" && test -d "$CPP"; then
5252 CPP=
7357c5b6 5253fi
b879806f
AM
5254if test -z "$CPP"; then
5255 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5256 $as_echo_n "(cached) " >&6
5257else
b879806f
AM
5258 # Double quotes because CPP needs to be expanded
5259 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5260 do
5261 ac_preproc_ok=false
5262for ac_c_preproc_warn_flag in '' yes
3cb62297 5263do
b879806f
AM
5264 # Use a header file that comes with gcc, so configuring glibc
5265 # with a fresh cross-compiler works.
5266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5267 # <limits.h> exists even on freestanding compilers.
5268 # On the NeXT, cc -E runs the code through the compiler's parser,
5269 # not just through cpp. "Syntax error" is here to catch this case.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h. */
5272#ifdef __STDC__
5273# include <limits.h>
5274#else
5275# include <assert.h>
5276#endif
5277 Syntax error
5278_ACEOF
5279if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5280
3cb62297 5281else
b879806f
AM
5282 # Broken: fails on valid input.
5283continue
7357c5b6 5284fi
b879806f 5285rm -f conftest.err conftest.$ac_ext
252b5132 5286
b879806f
AM
5287 # OK, works on sane cases. Now check whether nonexistent headers
5288 # can be detected and how.
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290/* end confdefs.h. */
5291#include <ac_nonexistent.h>
5292_ACEOF
5293if ac_fn_c_try_cpp "$LINENO"; then :
5294 # Broken: success on invalid input.
5295continue
5296else
5297 # Passes both tests.
5298ac_preproc_ok=:
5299break
5300fi
5301rm -f conftest.err conftest.$ac_ext
42ecbf5e 5302
3cb62297 5303done
b879806f
AM
5304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305rm -f conftest.err conftest.$ac_ext
5306if $ac_preproc_ok; then :
5307 break
7357c5b6 5308fi
ac48eca1 5309
b879806f
AM
5310 done
5311 ac_cv_prog_CPP=$CPP
d7040cdb 5312
b879806f
AM
5313fi
5314 CPP=$ac_cv_prog_CPP
7357c5b6 5315else
b879806f
AM
5316 ac_cv_prog_CPP=$CPP
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5319$as_echo "$CPP" >&6; }
5320ac_preproc_ok=false
5321for ac_c_preproc_warn_flag in '' yes
5322do
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5328 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5330/* end confdefs.h. */
b879806f
AM
5331#ifdef __STDC__
5332# include <limits.h>
5333#else
5334# include <assert.h>
3cb62297 5335#endif
b879806f 5336 Syntax error
7357c5b6 5337_ACEOF
b879806f
AM
5338if ac_fn_c_try_cpp "$LINENO"; then :
5339
81ecdfbb 5340else
b879806f
AM
5341 # Broken: fails on valid input.
5342continue
7357c5b6 5343fi
b879806f 5344rm -f conftest.err conftest.$ac_ext
81ecdfbb 5345
b879806f
AM
5346 # OK, works on sane cases. Now check whether nonexistent headers
5347 # can be detected and how.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h. */
5350#include <ac_nonexistent.h>
5351_ACEOF
5352if ac_fn_c_try_cpp "$LINENO"; then :
5353 # Broken: success on invalid input.
5354continue
3cb62297 5355else
b879806f
AM
5356 # Passes both tests.
5357ac_preproc_ok=:
5358break
7357c5b6 5359fi
b879806f 5360rm -f conftest.err conftest.$ac_ext
252b5132 5361
b879806f
AM
5362done
5363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5364rm -f conftest.err conftest.$ac_ext
5365if $ac_preproc_ok; then :
252b5132 5366
3cb62297 5367else
b879806f
AM
5368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5370as_fn_error "C preprocessor \"$CPP\" fails sanity check
5371See \`config.log' for more details." "$LINENO" 5; }
5372fi
42ecbf5e 5373
b879806f
AM
5374ac_ext=c
5375ac_cpp='$CPP $CPPFLAGS'
5376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5379
5380
b879806f
AM
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5382$as_echo_n "checking for egrep... " >&6; }
5383if test "${ac_cv_path_EGREP+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385else
5386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387 then ac_cv_path_EGREP="$GREP -E"
5388 else
5389 if test -z "$EGREP"; then
5390 ac_path_EGREP_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_prog in egrep; do
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5401# Check for GNU ac_path_EGREP and select it if it is found.
5402 # Check for GNU $ac_path_EGREP
5403case `"$ac_path_EGREP" --version 2>&1` in
5404*GNU*)
5405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5406*)
5407 ac_count=0
5408 $as_echo_n 0123456789 >"conftest.in"
5409 while :
5410 do
5411 cat "conftest.in" "conftest.in" >"conftest.tmp"
5412 mv "conftest.tmp" "conftest.in"
5413 cp "conftest.in" "conftest.nl"
5414 $as_echo 'EGREP' >> "conftest.nl"
5415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417 as_fn_arith $ac_count + 1 && ac_count=$as_val
5418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5419 # Best one so far, save it but keep looking for a better one
5420 ac_cv_path_EGREP="$ac_path_EGREP"
5421 ac_path_EGREP_max=$ac_count
5422 fi
5423 # 10*(2^10) chars as input seems more than enough
5424 test $ac_count -gt 10 && break
5425 done
5426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5427esac
5428
5429 $ac_path_EGREP_found && break 3
5430 done
5431 done
5432 done
5433IFS=$as_save_IFS
5434 if test -z "$ac_cv_path_EGREP"; then
5435 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5436 fi
5437else
5438 ac_cv_path_EGREP=$EGREP
5439fi
5440
5441 fi
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5444$as_echo "$ac_cv_path_EGREP" >&6; }
5445 EGREP="$ac_cv_path_EGREP"
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5449$as_echo_n "checking for ANSI C header files... " >&6; }
5450if test "${ac_cv_header_stdc+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452else
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5454/* end confdefs.h. */
b879806f
AM
5455#include <stdlib.h>
5456#include <stdarg.h>
5457#include <string.h>
5458#include <float.h>
42ecbf5e 5459
3cb62297
L
5460int
5461main ()
5462{
42ecbf5e 5463
3cb62297
L
5464 ;
5465 return 0;
5466}
5467_ACEOF
b879806f
AM
5468if ac_fn_c_try_compile "$LINENO"; then :
5469 ac_cv_header_stdc=yes
5470else
5471 ac_cv_header_stdc=no
3cb62297
L
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5474
5475if test $ac_cv_header_stdc = yes; then
5476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h. */
5479#include <string.h>
5480
5481_ACEOF
5482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483 $EGREP "memchr" >/dev/null 2>&1; then :
5484
5485else
5486 ac_cv_header_stdc=no
3cb62297 5487fi
b879806f
AM
5488rm -f conftest*
5489
3cb62297 5490fi
b879806f
AM
5491
5492if test $ac_cv_header_stdc = yes; then
5493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h. */
5496#include <stdlib.h>
5497
5498_ACEOF
5499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500 $EGREP "free" >/dev/null 2>&1; then :
5501
ce2cded5 5502else
b879806f 5503 ac_cv_header_stdc=no
ce2cded5 5504fi
b879806f 5505rm -f conftest*
42ecbf5e 5506
b879806f 5507fi
e5a52504 5508
b879806f
AM
5509if test $ac_cv_header_stdc = yes; then
5510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5511 if test "$cross_compiling" = yes; then :
5512 :
3cb62297 5513else
b879806f
AM
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h. */
5516#include <ctype.h>
5517#include <stdlib.h>
5518#if ((' ' & 0x0FF) == 0x020)
5519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5521#else
5522# define ISLOWER(c) \
5523 (('a' <= (c) && (c) <= 'i') \
5524 || ('j' <= (c) && (c) <= 'r') \
5525 || ('s' <= (c) && (c) <= 'z'))
5526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5527#endif
3cb62297
L
5528
5529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5530int
5531main ()
5532{
5533 int i;
5534 for (i = 0; i < 256; i++)
5535 if (XOR (islower (i), ISLOWER (i))
5536 || toupper (i) != TOUPPER (i))
5537 return 2;
5538 return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_run "$LINENO"; then :
5542
5543else
5544 ac_cv_header_stdc=no
5545fi
5546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5547 conftest.$ac_objext conftest.beam conftest.$ac_ext
5548fi
5549
5550fi
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5553$as_echo "$ac_cv_header_stdc" >&6; }
5554if test $ac_cv_header_stdc = yes; then
5555
5556$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5557
5558fi
5559
5560# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5561for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5562 inttypes.h stdint.h unistd.h
5563do :
5564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5565ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5566"
5567eval as_val=\$$as_ac_Header
5568 if test "x$as_val" = x""yes; then :
5569 cat >>confdefs.h <<_ACEOF
5570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571_ACEOF
5572
5573fi
5574
5575done
5576
5577
5578
5579 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5580if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5581 MINIX=yes
5582else
5583 MINIX=
5584fi
5585
5586
5587 if test "$MINIX" = yes; then
5588
5589$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5590
5591
5592$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5593
5594
5595$as_echo "#define _MINIX 1" >>confdefs.h
5596
5597 fi
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5601$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5602if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h. */
5607
5608# define __EXTENSIONS__ 1
5609 $ac_includes_default
5610int
5611main ()
5612{
5613
5614 ;
5615 return 0;
5616}
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"; then :
5619 ac_cv_safe_to_define___extensions__=yes
5620else
5621 ac_cv_safe_to_define___extensions__=no
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5626$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5627 test $ac_cv_safe_to_define___extensions__ = yes &&
5628 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5629
5630 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5631
5632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5633
5634 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5635
5636 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5637
5638
5639
5640
5641
3cb62297 5642
b879806f
AM
5643case `pwd` in
5644 *\ * | *\ *)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5646$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5647esac
3cb62297
L
5648
5649
da2f07f1 5650
b879806f
AM
5651macro_version='2.2.7a'
5652macro_revision='1.3134'
d7040cdb 5653
d7040cdb
SE
5654
5655
d7040cdb 5656
d7040cdb 5657
42ecbf5e 5658
d7040cdb 5659
252b5132 5660
252b5132 5661
252b5132 5662
252b5132
RH
5663
5664
ce2cded5 5665
b214d478 5666ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5667
3725885a
RW
5668# Backslashify metacharacters that are still active within
5669# double-quoted strings.
5670sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5671
5672# Same as above, but do not quote variable references.
5673double_quote_subst='s/\(["`\\]\)/\\\1/g'
5674
5675# Sed substitution to delay expansion of an escaped shell variable in a
5676# double_quote_subst'ed string.
5677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5678
5679# Sed substitution to delay expansion of an escaped single quote.
5680delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5681
5682# Sed substitution to avoid accidental globbing in evaled expressions
5683no_glob_subst='s/\*/\\\*/g'
5684
5685ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5686ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5688
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5690$as_echo_n "checking how to print strings... " >&6; }
5691# Test print first, because it will be a builtin if present.
5692if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5693 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5694 ECHO='print -r --'
5695elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5696 ECHO='printf %s\n'
5697else
5698 # Use this function as a fallback that always works.
5699 func_fallback_echo ()
5700 {
5701 eval 'cat <<_LTECHO_EOF
5702$1
5703_LTECHO_EOF'
5704 }
5705 ECHO='func_fallback_echo'
5706fi
5707
5708# func_echo_all arg...
5709# Invoke $ECHO with all args, space-separated.
5710func_echo_all ()
5711{
5712 $ECHO ""
5713}
5714
5715case "$ECHO" in
5716 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5717$as_echo "printf" >&6; } ;;
5718 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5719$as_echo "print -r" >&6; } ;;
5720 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5721$as_echo "cat" >&6; } ;;
5722esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
81ecdfbb
RW
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5738$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5739if test "${ac_cv_path_SED+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5743 for ac_i in 1 2 3 4 5 6 7; do
5744 ac_script="$ac_script$as_nl$ac_script"
5745 done
5746 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5747 { ac_script=; unset ac_script;}
5748 if test -z "$SED"; then
5749 ac_path_SED_found=false
5750 # Loop through the user's path and test for each of PROGNAME-LIST
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
81ecdfbb 5756 for ac_prog in sed gsed; do
7357c5b6 5757 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5758 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5759 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5760# Check for GNU ac_path_SED and select it if it is found.
5761 # Check for GNU $ac_path_SED
5762case `"$ac_path_SED" --version 2>&1` in
5763*GNU*)
5764 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5765*)
5766 ac_count=0
5767 $as_echo_n 0123456789 >"conftest.in"
5768 while :
5769 do
5770 cat "conftest.in" "conftest.in" >"conftest.tmp"
5771 mv "conftest.tmp" "conftest.in"
5772 cp "conftest.in" "conftest.nl"
5773 $as_echo '' >> "conftest.nl"
5774 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5776 as_fn_arith $ac_count + 1 && ac_count=$as_val
5777 if test $ac_count -gt ${ac_path_SED_max-0}; then
5778 # Best one so far, save it but keep looking for a better one
5779 ac_cv_path_SED="$ac_path_SED"
5780 ac_path_SED_max=$ac_count
5781 fi
5782 # 10*(2^10) chars as input seems more than enough
5783 test $ac_count -gt 10 && break
5784 done
5785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5786esac
5787
5788 $ac_path_SED_found && break 3
7357c5b6
AM
5789 done
5790 done
81ecdfbb 5791 done
7357c5b6 5792IFS=$as_save_IFS
81ecdfbb
RW
5793 if test -z "$ac_cv_path_SED"; then
5794 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5795 fi
81ecdfbb
RW
5796else
5797 ac_cv_path_SED=$SED
7357c5b6 5798fi
20e95c23 5799
81ecdfbb
RW
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5802$as_echo "$ac_cv_path_SED" >&6; }
5803 SED="$ac_cv_path_SED"
5804 rm -f conftest.sed
20e95c23 5805
7357c5b6
AM
5806test -z "$SED" && SED=sed
5807Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5808
5809
5810
5811
5812
5813
20e95c23 5814
20e95c23 5815
d7040cdb 5816
d7040cdb 5817
7357c5b6 5818
81ecdfbb
RW
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5820$as_echo_n "checking for fgrep... " >&6; }
5821if test "${ac_cv_path_FGREP+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
7357c5b6 5823else
81ecdfbb
RW
5824 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5825 then ac_cv_path_FGREP="$GREP -F"
5826 else
5827 if test -z "$FGREP"; then
5828 ac_path_FGREP_found=false
5829 # Loop through the user's path and test for each of PROGNAME-LIST
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_prog in fgrep; do
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5838 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5839# Check for GNU ac_path_FGREP and select it if it is found.
5840 # Check for GNU $ac_path_FGREP
5841case `"$ac_path_FGREP" --version 2>&1` in
5842*GNU*)
5843 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5844*)
5845 ac_count=0
5846 $as_echo_n 0123456789 >"conftest.in"
5847 while :
5848 do
5849 cat "conftest.in" "conftest.in" >"conftest.tmp"
5850 mv "conftest.tmp" "conftest.in"
5851 cp "conftest.in" "conftest.nl"
5852 $as_echo 'FGREP' >> "conftest.nl"
5853 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5855 as_fn_arith $ac_count + 1 && ac_count=$as_val
5856 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5857 # Best one so far, save it but keep looking for a better one
5858 ac_cv_path_FGREP="$ac_path_FGREP"
5859 ac_path_FGREP_max=$ac_count
7357c5b6 5860 fi
81ecdfbb
RW
5861 # 10*(2^10) chars as input seems more than enough
5862 test $ac_count -gt 10 && break
5863 done
5864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5865esac
5866
5867 $ac_path_FGREP_found && break 3
5868 done
5869 done
5870 done
5871IFS=$as_save_IFS
5872 if test -z "$ac_cv_path_FGREP"; then
5873 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5874 fi
5875else
5876 ac_cv_path_FGREP=$FGREP
5877fi
5878
5879 fi
20e95c23 5880fi
81ecdfbb
RW
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5882$as_echo "$ac_cv_path_FGREP" >&6; }
5883 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5884
5885
5886test -z "$GREP" && GREP=grep
5887
d7040cdb
SE
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
20e95c23 5899
ce2cded5 5900
d7040cdb 5901
7357c5b6
AM
5902
5903
5904
5905
81ecdfbb
RW
5906# Check whether --with-gnu-ld was given.
5907if test "${with_gnu_ld+set}" = set; then :
5908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5909else
5910 with_gnu_ld=no
81ecdfbb
RW
5911fi
5912
7357c5b6
AM
5913ac_prog=ld
5914if test "$GCC" = yes; then
5915 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5917$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5918 case $host in
5919 *-*-mingw*)
5920 # gcc leaves a trailing carriage return which upsets mingw
5921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5922 *)
5923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5924 esac
5925 case $ac_prog in
5926 # Accept absolute paths.
5927 [\\/]* | ?:[\\/]*)
5928 re_direlt='/[^/][^/]*/\.\./'
5929 # Canonicalize the pathname of ld
5930 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5931 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5932 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5933 done
5934 test -z "$LD" && LD="$ac_prog"
5935 ;;
5936 "")
5937 # If it fails, then pretend we aren't using GCC.
5938 ac_prog=ld
5939 ;;
5940 *)
5941 # If it is relative, then search for the first ld in PATH.
5942 with_gnu_ld=unknown
5943 ;;
5944 esac
5945elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5947$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5948else
81ecdfbb
RW
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5950$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5951fi
81ecdfbb
RW
5952if test "${lt_cv_path_LD+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
ce2cded5 5954else
7357c5b6
AM
5955 if test -z "$LD"; then
5956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5957 for ac_dir in $PATH; do
5958 IFS="$lt_save_ifs"
5959 test -z "$ac_dir" && ac_dir=.
5960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5961 lt_cv_path_LD="$ac_dir/$ac_prog"
5962 # Check to see if the program is GNU ld. I'd rather use --version,
5963 # but apparently some variants of GNU ld only accept -v.
5964 # Break only if it was the GNU/non-GNU ld that we prefer.
5965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5966 *GNU* | *'with BFD'*)
5967 test "$with_gnu_ld" != no && break
5968 ;;
5969 *)
5970 test "$with_gnu_ld" != yes && break
5971 ;;
5972 esac
5973 fi
5974 done
5975 IFS="$lt_save_ifs"
ce2cded5 5976else
7357c5b6 5977 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5978fi
5979fi
7357c5b6
AM
5980
5981LD="$lt_cv_path_LD"
5982if test -n "$LD"; then
81ecdfbb
RW
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5984$as_echo "$LD" >&6; }
ce2cded5 5985else
81ecdfbb
RW
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
ce2cded5 5988fi
81ecdfbb
RW
5989test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5991$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5992if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
ce2cded5 5994else
7357c5b6
AM
5995 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5996case `$LD -v 2>&1 </dev/null` in
5997*GNU* | *'with BFD'*)
5998 lt_cv_prog_gnu_ld=yes
5999 ;;
6000*)
6001 lt_cv_prog_gnu_ld=no
6002 ;;
6003esac
ce2cded5 6004fi
81ecdfbb
RW
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6006$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6007with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6008
6009
6010
6011
6012
6013
6014
6015
6016
81ecdfbb
RW
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6018$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6019if test "${lt_cv_path_NM+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
ce2cded5 6021else
7357c5b6
AM
6022 if test -n "$NM"; then
6023 # Let the user override the test.
6024 lt_cv_path_NM="$NM"
ce2cded5 6025else
7357c5b6
AM
6026 lt_nm_to_check="${ac_tool_prefix}nm"
6027 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6028 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6029 fi
7357c5b6
AM
6030 for lt_tmp_nm in $lt_nm_to_check; do
6031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6033 IFS="$lt_save_ifs"
6034 test -z "$ac_dir" && ac_dir=.
6035 tmp_nm="$ac_dir/$lt_tmp_nm"
6036 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6037 # Check to see if the nm accepts a BSD-compat flag.
6038 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6039 # nm: unknown option "B" ignored
6040 # Tru64's nm complains that /dev/null is an invalid object file
6041 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6042 */dev/null* | *'Invalid file or object type'*)
6043 lt_cv_path_NM="$tmp_nm -B"
6044 break
6045 ;;
6046 *)
6047 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6048 */dev/null*)
6049 lt_cv_path_NM="$tmp_nm -p"
6050 break
6051 ;;
6052 *)
6053 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6054 continue # so that we can try to find one that supports BSD flags
6055 ;;
6056 esac
6057 ;;
6058 esac
6059 fi
6060 done
6061 IFS="$lt_save_ifs"
6062 done
6063 : ${lt_cv_path_NM=no}
ce2cded5
L
6064fi
6065fi
81ecdfbb
RW
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6067$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6068if test "$lt_cv_path_NM" != "no"; then
6069 NM="$lt_cv_path_NM"
ce2cded5 6070else
7357c5b6 6071 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6072 if test -n "$DUMPBIN"; then :
6073 # Let the user override the test.
6074 else
6075 if test -n "$ac_tool_prefix"; then
6076 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6077 do
6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
20e95c23 6084else
7357c5b6
AM
6085 if test -n "$DUMPBIN"; then
6086 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6095 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6097 break 2
6098 fi
6099done
81ecdfbb
RW
6100 done
6101IFS=$as_save_IFS
d7040cdb 6102
20e95c23 6103fi
ce2cded5 6104fi
7357c5b6
AM
6105DUMPBIN=$ac_cv_prog_DUMPBIN
6106if test -n "$DUMPBIN"; then
81ecdfbb
RW
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6108$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6109else
81ecdfbb
RW
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
42ecbf5e
DJ
6112fi
6113
81ecdfbb 6114
7357c5b6
AM
6115 test -n "$DUMPBIN" && break
6116 done
ce2cded5 6117fi
7357c5b6
AM
6118if test -z "$DUMPBIN"; then
6119 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6120 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6121do
6122 # Extract the first word of "$ac_prog", so it can be a program name with args.
6123set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
6126if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
42ecbf5e 6128else
7357c5b6
AM
6129 if test -n "$ac_ct_DUMPBIN"; then
6130 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6131else
6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133for as_dir in $PATH
6134do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6139 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6141 break 2
6142 fi
6143done
81ecdfbb
RW
6144 done
6145IFS=$as_save_IFS
d7040cdb 6146
ce2cded5
L
6147fi
6148fi
7357c5b6
AM
6149ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6150if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6152$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6153else
81ecdfbb
RW
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155$as_echo "no" >&6; }
ce2cded5 6156fi
d7040cdb 6157
81ecdfbb 6158
7357c5b6 6159 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6160done
d7040cdb 6161
81ecdfbb
RW
6162 if test "x$ac_ct_DUMPBIN" = x; then
6163 DUMPBIN=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171 DUMPBIN=$ac_ct_DUMPBIN
6172 fi
ce2cded5 6173fi
7357c5b6 6174
3725885a
RW
6175 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6176 *COFF*)
6177 DUMPBIN="$DUMPBIN -symbols"
6178 ;;
6179 *)
6180 DUMPBIN=:
6181 ;;
6182 esac
6183 fi
7357c5b6
AM
6184
6185 if test "$DUMPBIN" != ":"; then
6186 NM="$DUMPBIN"
6187 fi
ce2cded5 6188fi
7357c5b6
AM
6189test -z "$NM" && NM=nm
6190
6191
6192
6193
6194
6195
81ecdfbb
RW
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6197$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6198if test "${lt_cv_nm_interface+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
20e95c23 6200else
7357c5b6
AM
6201 lt_cv_nm_interface="BSD nm"
6202 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6203 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6204 (eval "$ac_compile" 2>conftest.err)
6205 cat conftest.err >&5
3725885a 6206 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6207 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6208 cat conftest.err >&5
3725885a 6209 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6210 cat conftest.out >&5
6211 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6212 lt_cv_nm_interface="MS dumpbin"
6213 fi
6214 rm -f conftest*
20e95c23 6215fi
81ecdfbb
RW
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6217$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6218
81ecdfbb
RW
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6220$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6221LN_S=$as_ln_s
6222if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6224$as_echo "yes" >&6; }
ce2cded5 6225else
81ecdfbb
RW
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6227$as_echo "no, using $LN_S" >&6; }
d7040cdb 6228fi
20e95c23 6229
7357c5b6 6230# find the maximum length of command line arguments
81ecdfbb
RW
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6232$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6233if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
7357c5b6
AM
6235else
6236 i=0
6237 teststring="ABCD"
20e95c23 6238
7357c5b6
AM
6239 case $build_os in
6240 msdosdjgpp*)
6241 # On DJGPP, this test can blow up pretty badly due to problems in libc
6242 # (any single argument exceeding 2000 bytes causes a buffer overrun
6243 # during glob expansion). Even if it were fixed, the result of this
6244 # check would be larger than it should be.
6245 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6246 ;;
20e95c23 6247
7357c5b6
AM
6248 gnu*)
6249 # Under GNU Hurd, this test is not required because there is
6250 # no limit to the length of command line arguments.
6251 # Libtool will interpret -1 as no limit whatsoever
6252 lt_cv_sys_max_cmd_len=-1;
6253 ;;
20e95c23 6254
b214d478 6255 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6256 # On Win9x/ME, this test blows up -- it succeeds, but takes
6257 # about 5 minutes as the teststring grows exponentially.
6258 # Worse, since 9x/ME are not pre-emptively multitasking,
6259 # you end up with a "frozen" computer, even though with patience
6260 # the test eventually succeeds (with a max line length of 256k).
6261 # Instead, let's just punt: use the minimum linelength reported by
6262 # all of the supported platforms: 8192 (on NT/2K/XP).
6263 lt_cv_sys_max_cmd_len=8192;
6264 ;;
20e95c23 6265
3725885a
RW
6266 mint*)
6267 # On MiNT this can take a long time and run out of memory.
6268 lt_cv_sys_max_cmd_len=8192;
6269 ;;
6270
7357c5b6
AM
6271 amigaos*)
6272 # On AmigaOS with pdksh, this test takes hours, literally.
6273 # So we just punt and use a minimum line length of 8192.
6274 lt_cv_sys_max_cmd_len=8192;
6275 ;;
20e95c23 6276
7357c5b6
AM
6277 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6278 # This has been around since 386BSD, at least. Likely further.
6279 if test -x /sbin/sysctl; then
6280 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6281 elif test -x /usr/sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6283 else
6284 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6285 fi
6286 # And add a safety zone
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289 ;;
d7040cdb 6290
7357c5b6
AM
6291 interix*)
6292 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6293 lt_cv_sys_max_cmd_len=196608
6294 ;;
d7040cdb 6295
7357c5b6
AM
6296 osf*)
6297 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6298 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6299 # nice to cause kernel panics so lets avoid the loop below.
6300 # First set a reasonable default.
6301 lt_cv_sys_max_cmd_len=16384
6302 #
6303 if test -x /sbin/sysconfig; then
6304 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6305 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6306 esac
6307 fi
6308 ;;
6309 sco3.2v5*)
6310 lt_cv_sys_max_cmd_len=102400
6311 ;;
6312 sysv5* | sco5v6* | sysv4.2uw2*)
6313 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6314 if test -n "$kargmax"; then
6315 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6316 else
6317 lt_cv_sys_max_cmd_len=32768
6318 fi
ce2cded5
L
6319 ;;
6320 *)
b214d478
SE
6321 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6322 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325 else
6326 # Make teststring a little bigger before we do anything with it.
6327 # a 1K string should be a reasonable start.
6328 for i in 1 2 3 4 5 6 7 8 ; do
6329 teststring=$teststring$teststring
6330 done
6331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6332 # If test is not a shell built-in, we'll probably end up computing a
6333 # maximum length that is only half of the actual maximum length, but
6334 # we can't tell.
3725885a
RW
6335 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6336 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6337 test $i != 17 # 1/2 MB should be enough
6338 do
6339 i=`expr $i + 1`
6340 teststring=$teststring$teststring
6341 done
6342 # Only check the string length outside the loop.
6343 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6344 teststring=
6345 # Add a significant safety factor because C++ compilers can tack on
6346 # massive amounts of additional arguments before passing them to the
6347 # linker. It appears as though 1/2 is a usable value.
6348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6349 fi
ce2cded5
L
6350 ;;
6351 esac
d7040cdb 6352
7357c5b6 6353fi
d7040cdb 6354
7357c5b6 6355if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6357$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6358else
81ecdfbb
RW
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6360$as_echo "none" >&6; }
7357c5b6
AM
6361fi
6362max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6363
6364
6365
6366
6367
d7040cdb 6368
7357c5b6
AM
6369: ${CP="cp -f"}
6370: ${MV="mv -f"}
6371: ${RM="rm -f"}
d7040cdb 6372
81ecdfbb
RW
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6374$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6375# Try some XSI features
6376xsi_shell=no
6377( _lt_dummy="a/b/c"
6378 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6379 = c,a/b,, \
6380 && eval 'test $(( 1 + 1 )) -eq 2 \
6381 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6382 && xsi_shell=yes
81ecdfbb
RW
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6384$as_echo "$xsi_shell" >&6; }
d7040cdb 6385
d7040cdb 6386
81ecdfbb
RW
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6388$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6389lt_shell_append=no
6390( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6391 >/dev/null 2>&1 \
6392 && lt_shell_append=yes
81ecdfbb
RW
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6394$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6395
6396
7357c5b6
AM
6397if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6398 lt_unset=unset
6399else
6400 lt_unset=false
6401fi
d7040cdb 6402
d7040cdb 6403
d7040cdb 6404
d7040cdb 6405
d7040cdb 6406
7357c5b6
AM
6407# test EBCDIC or ASCII
6408case `echo X|tr X '\101'` in
6409 A) # ASCII based system
6410 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6411 lt_SP2NL='tr \040 \012'
6412 lt_NL2SP='tr \015\012 \040\040'
6413 ;;
6414 *) # EBCDIC based system
6415 lt_SP2NL='tr \100 \n'
6416 lt_NL2SP='tr \r\n \100\100'
6417 ;;
6418esac
42ecbf5e 6419
d7040cdb
SE
6420
6421
6422
6423
6424
6425
d7040cdb 6426
d7040cdb 6427
81ecdfbb
RW
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6429$as_echo_n "checking for $LD option to reload object files... " >&6; }
6430if test "${lt_cv_ld_reload_flag+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
7357c5b6
AM
6432else
6433 lt_cv_ld_reload_flag='-r'
6434fi
81ecdfbb
RW
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6436$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6437reload_flag=$lt_cv_ld_reload_flag
6438case $reload_flag in
6439"" | " "*) ;;
6440*) reload_flag=" $reload_flag" ;;
6441esac
6442reload_cmds='$LD$reload_flag -o $output$reload_objs'
6443case $host_os in
6444 darwin*)
6445 if test "$GCC" = yes; then
6446 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6447 else
6448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6449 fi
6450 ;;
6451esac
d7040cdb 6452
d7040cdb 6453
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
b214d478
SE
6461if test -n "$ac_tool_prefix"; then
6462 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6463set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
6466if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
b214d478
SE
6468else
6469 if test -n "$OBJDUMP"; then
6470 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6479 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6481 break 2
6482 fi
6483done
81ecdfbb
RW
6484 done
6485IFS=$as_save_IFS
b214d478
SE
6486
6487fi
6488fi
6489OBJDUMP=$ac_cv_prog_OBJDUMP
6490if test -n "$OBJDUMP"; then
81ecdfbb
RW
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6492$as_echo "$OBJDUMP" >&6; }
b214d478 6493else
81ecdfbb
RW
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
b214d478
SE
6496fi
6497
81ecdfbb 6498
b214d478
SE
6499fi
6500if test -z "$ac_cv_prog_OBJDUMP"; then
6501 ac_ct_OBJDUMP=$OBJDUMP
6502 # Extract the first word of "objdump", so it can be a program name with args.
6503set dummy objdump; ac_word=$2
81ecdfbb
RW
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505$as_echo_n "checking for $ac_word... " >&6; }
6506if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
b214d478
SE
6508else
6509 if test -n "$ac_ct_OBJDUMP"; then
6510 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6519 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6521 break 2
6522 fi
6523done
81ecdfbb
RW
6524 done
6525IFS=$as_save_IFS
b214d478 6526
b214d478
SE
6527fi
6528fi
6529ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6530if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6532$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6533else
81ecdfbb
RW
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535$as_echo "no" >&6; }
b214d478
SE
6536fi
6537
81ecdfbb
RW
6538 if test "x$ac_ct_OBJDUMP" = x; then
6539 OBJDUMP="false"
6540 else
6541 case $cross_compiling:$ac_tool_warned in
6542yes:)
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545ac_tool_warned=yes ;;
6546esac
6547 OBJDUMP=$ac_ct_OBJDUMP
6548 fi
b214d478
SE
6549else
6550 OBJDUMP="$ac_cv_prog_OBJDUMP"
6551fi
6552
6553test -z "$OBJDUMP" && OBJDUMP=objdump
6554
6555
6556
6557
6558
6559
6560
6561
d7040cdb 6562
81ecdfbb
RW
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6564$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6565if test "${lt_cv_deplibs_check_method+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
ce2cded5 6567else
7357c5b6
AM
6568 lt_cv_file_magic_cmd='$MAGIC_CMD'
6569lt_cv_file_magic_test_file=
6570lt_cv_deplibs_check_method='unknown'
6571# Need to set the preceding variable on all platforms that support
6572# interlibrary dependencies.
6573# 'none' -- dependencies not supported.
6574# `unknown' -- same as none, but documents that we really don't know.
6575# 'pass_all' -- all dependencies passed with no checks.
6576# 'test_compile' -- check by making test program.
6577# 'file_magic [[regex]]' -- check by looking for files in library path
6578# which responds to the $file_magic_cmd with a given extended regex.
6579# If you have `file' or equivalent on your system and you're not sure
6580# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6581
ce2cded5 6582case $host_os in
7357c5b6
AM
6583aix[4-9]*)
6584 lt_cv_deplibs_check_method=pass_all
ce2cded5 6585 ;;
7357c5b6
AM
6586
6587beos*)
6588 lt_cv_deplibs_check_method=pass_all
ce2cded5 6589 ;;
7357c5b6
AM
6590
6591bsdi[45]*)
6592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6593 lt_cv_file_magic_cmd='/usr/bin/file -L'
6594 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6595 ;;
7357c5b6
AM
6596
6597cygwin*)
6598 # func_win32_libid is a shell function defined in ltmain.sh
6599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6600 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6601 ;;
7357c5b6
AM
6602
6603mingw* | pw32*)
6604 # Base MSYS/MinGW do not provide the 'file' command needed by
6605 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6606 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6607 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6608 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6610 lt_cv_file_magic_cmd='func_win32_libid'
6611 else
6612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6613 lt_cv_file_magic_cmd='$OBJDUMP -f'
6614 fi
ce2cded5 6615 ;;
7357c5b6 6616
3725885a 6617cegcc*)
b214d478
SE
6618 # use the weaker test based on 'objdump'. See mingw*.
6619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6620 lt_cv_file_magic_cmd='$OBJDUMP -f'
6621 ;;
6622
7357c5b6
AM
6623darwin* | rhapsody*)
6624 lt_cv_deplibs_check_method=pass_all
ce2cded5 6625 ;;
7357c5b6
AM
6626
6627freebsd* | dragonfly*)
6628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6629 case $host_cpu in
6630 i*86 )
6631 # Not sure whether the presence of OpenBSD here was a mistake.
6632 # Let's accept both of them until this is cleared up.
6633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6634 lt_cv_file_magic_cmd=/usr/bin/file
6635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6636 ;;
6637 esac
6638 else
6639 lt_cv_deplibs_check_method=pass_all
6640 fi
ce2cded5 6641 ;;
7357c5b6
AM
6642
6643gnu*)
6644 lt_cv_deplibs_check_method=pass_all
ce2cded5 6645 ;;
7357c5b6 6646
3725885a
RW
6647haiku*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
7357c5b6
AM
6651hpux10.20* | hpux11*)
6652 lt_cv_file_magic_cmd=/usr/bin/file
6653 case $host_cpu in
6654 ia64*)
6655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6657 ;;
6658 hppa*64*)
3725885a 6659 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
6660 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6661 ;;
6662 *)
3725885a 6663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6664 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6665 ;;
6666 esac
ce2cded5 6667 ;;
d7040cdb 6668
7357c5b6
AM
6669interix[3-9]*)
6670 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6672 ;;
d7040cdb 6673
7357c5b6
AM
6674irix5* | irix6* | nonstopux*)
6675 case $LD in
6676 *-32|*"-32 ") libmagic=32-bit;;
6677 *-n32|*"-n32 ") libmagic=N32;;
6678 *-64|*"-64 ") libmagic=64-bit;;
6679 *) libmagic=never-match;;
6680 esac
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
d7040cdb 6683
7357c5b6 6684# This must be Linux ELF.
58e24671 6685linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
d7040cdb 6688
7357c5b6
AM
6689netbsd*)
6690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6692 else
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6694 fi
ce2cded5 6695 ;;
d7040cdb 6696
7357c5b6
AM
6697newos6*)
6698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6699 lt_cv_file_magic_cmd=/usr/bin/file
6700 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6701 ;;
d7040cdb 6702
7357c5b6
AM
6703*nto* | *qnx*)
6704 lt_cv_deplibs_check_method=pass_all
6705 ;;
d7040cdb 6706
7357c5b6
AM
6707openbsd*)
6708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6710 else
7357c5b6 6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6712 fi
7357c5b6 6713 ;;
d7040cdb 6714
7357c5b6
AM
6715osf3* | osf4* | osf5*)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
d7040cdb 6718
7357c5b6
AM
6719rdos*)
6720 lt_cv_deplibs_check_method=pass_all
6721 ;;
d7040cdb 6722
7357c5b6
AM
6723solaris*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
d7040cdb 6726
7357c5b6
AM
6727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
d7040cdb 6730
7357c5b6
AM
6731sysv4 | sysv4.3*)
6732 case $host_vendor in
6733 motorola)
6734 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]'
6735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6736 ;;
6737 ncr)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740 sequent)
6741 lt_cv_file_magic_cmd='/bin/file'
6742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6743 ;;
6744 sni)
6745 lt_cv_file_magic_cmd='/bin/file'
6746 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6747 lt_cv_file_magic_test_file=/lib/libc.so
6748 ;;
6749 siemens)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752 pc)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755 esac
6756 ;;
d7040cdb 6757
7357c5b6
AM
6758tpf*)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761esac
d7040cdb 6762
7357c5b6 6763fi
81ecdfbb
RW
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6765$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6766file_magic_cmd=$lt_cv_file_magic_cmd
6767deplibs_check_method=$lt_cv_deplibs_check_method
6768test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6769
6770
6771
7357c5b6
AM
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6783set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
6786if test "${ac_cv_prog_AR+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
7357c5b6
AM
6788else
6789 if test -n "$AR"; then
6790 ac_cv_prog_AR="$AR" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6799 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6801 break 2
ce2cded5
L
6802 fi
6803done
81ecdfbb
RW
6804 done
6805IFS=$as_save_IFS
d7040cdb 6806
42ecbf5e 6807fi
ce2cded5 6808fi
7357c5b6
AM
6809AR=$ac_cv_prog_AR
6810if test -n "$AR"; then
81ecdfbb
RW
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6812$as_echo "$AR" >&6; }
42ecbf5e 6813else
81ecdfbb
RW
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
42ecbf5e
DJ
6816fi
6817
81ecdfbb 6818
7357c5b6
AM
6819fi
6820if test -z "$ac_cv_prog_AR"; then
6821 ac_ct_AR=$AR
6822 # Extract the first word of "ar", so it can be a program name with args.
6823set dummy ar; ac_word=$2
81ecdfbb
RW
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
7357c5b6
AM
6828else
6829 if test -n "$ac_ct_AR"; then
6830 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6839 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6841 break 2
6842 fi
6843done
81ecdfbb
RW
6844 done
6845IFS=$as_save_IFS
42ecbf5e 6846
7357c5b6
AM
6847fi
6848fi
6849ac_ct_AR=$ac_cv_prog_ac_ct_AR
6850if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6852$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6853else
81ecdfbb
RW
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
7357c5b6 6856fi
d7040cdb 6857
81ecdfbb
RW
6858 if test "x$ac_ct_AR" = x; then
6859 AR="false"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862yes:)
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865ac_tool_warned=yes ;;
6866esac
6867 AR=$ac_ct_AR
6868 fi
7357c5b6
AM
6869else
6870 AR="$ac_cv_prog_AR"
6871fi
d7040cdb 6872
7357c5b6
AM
6873test -z "$AR" && AR=ar
6874test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6875
6876
6877
20e95c23 6878
d7040cdb 6879
d7040cdb
SE
6880
6881
6882
6883
6884
6885
7357c5b6
AM
6886if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_prog_STRIP+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
7357c5b6
AM
6893else
6894 if test -n "$STRIP"; then
6895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6906 break 2
ce2cded5 6907 fi
7357c5b6 6908done
81ecdfbb
RW
6909 done
6910IFS=$as_save_IFS
d7040cdb 6911
7357c5b6
AM
6912fi
6913fi
6914STRIP=$ac_cv_prog_STRIP
6915if test -n "$STRIP"; then
81ecdfbb
RW
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6917$as_echo "$STRIP" >&6; }
7357c5b6 6918else
81ecdfbb
RW
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
7357c5b6
AM
6921fi
6922
81ecdfbb 6923
7357c5b6
AM
6924fi
6925if test -z "$ac_cv_prog_STRIP"; then
6926 ac_ct_STRIP=$STRIP
6927 # Extract the first word of "strip", so it can be a program name with args.
6928set dummy strip; ac_word=$2
81ecdfbb
RW
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
7357c5b6
AM
6933else
6934 if test -n "$ac_ct_STRIP"; then
6935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6944 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6946 break 2
ce2cded5 6947 fi
7357c5b6 6948done
81ecdfbb
RW
6949 done
6950IFS=$as_save_IFS
d7040cdb 6951
7357c5b6
AM
6952fi
6953fi
6954ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6957$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6958else
81ecdfbb
RW
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
7357c5b6 6961fi
d7040cdb 6962
81ecdfbb
RW
6963 if test "x$ac_ct_STRIP" = x; then
6964 STRIP=":"
6965 else
6966 case $cross_compiling:$ac_tool_warned in
6967yes:)
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970ac_tool_warned=yes ;;
6971esac
6972 STRIP=$ac_ct_STRIP
6973 fi
7357c5b6
AM
6974else
6975 STRIP="$ac_cv_prog_STRIP"
6976fi
d7040cdb 6977
7357c5b6 6978test -z "$STRIP" && STRIP=:
d7040cdb 6979
d7040cdb
SE
6980
6981
6982
d7040cdb 6983
7357c5b6
AM
6984
6985if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if test "${ac_cv_prog_RANLIB+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
ce2cded5 6992else
7357c5b6
AM
6993 if test -n "$RANLIB"; then
6994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
ce2cded5 6998do
7357c5b6
AM
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7005 break 2
ce2cded5 7006 fi
7357c5b6 7007done
81ecdfbb
RW
7008 done
7009IFS=$as_save_IFS
7357c5b6 7010
ce2cded5 7011fi
7357c5b6
AM
7012fi
7013RANLIB=$ac_cv_prog_RANLIB
7014if test -n "$RANLIB"; then
81ecdfbb
RW
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016$as_echo "$RANLIB" >&6; }
ce2cded5 7017else
81ecdfbb
RW
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
ce2cded5 7020fi
d7040cdb 7021
81ecdfbb 7022
7357c5b6
AM
7023fi
7024if test -z "$ac_cv_prog_RANLIB"; then
7025 ac_ct_RANLIB=$RANLIB
7026 # Extract the first word of "ranlib", so it can be a program name with args.
7027set dummy ranlib; ac_word=$2
81ecdfbb
RW
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
ce2cded5 7032else
7357c5b6
AM
7033 if test -n "$ac_ct_RANLIB"; then
7034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7043 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7045 break 2
7046 fi
7047done
81ecdfbb
RW
7048 done
7049IFS=$as_save_IFS
7357c5b6 7050
ce2cded5 7051fi
7357c5b6
AM
7052fi
7053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7054if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7056$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7057else
81ecdfbb
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
ce2cded5 7060fi
d7040cdb 7061
81ecdfbb
RW
7062 if test "x$ac_ct_RANLIB" = x; then
7063 RANLIB=":"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071 RANLIB=$ac_ct_RANLIB
7072 fi
7357c5b6
AM
7073else
7074 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7075fi
d7040cdb 7076
7357c5b6 7077test -z "$RANLIB" && RANLIB=:
d7040cdb 7078
7357c5b6
AM
7079
7080
7081
7082
7083
7084# Determine commands to create old-style static archives.
b214d478 7085old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7086old_postinstall_cmds='chmod 644 $oldlib'
7087old_postuninstall_cmds=
7088
7089if test -n "$RANLIB"; then
7090 case $host_os in
7091 openbsd*)
7092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7093 ;;
7094 *)
7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7096 ;;
7097 esac
7098 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7099fi
7357c5b6 7100
3725885a
RW
7101case $host_os in
7102 darwin*)
7103 lock_old_archive_extraction=yes ;;
7104 *)
7105 lock_old_archive_extraction=no ;;
7106esac
7107
7108
7109
7110
7111
7112
7357c5b6
AM
7113
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# If no C compiler was specified, use CC.
7147LTCC=${LTCC-"$CC"}
7148
7149# If no C compiler flags were specified, use CFLAGS.
7150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7151
7152# Allow CC to be a program name with arguments.
7153compiler=$CC
7154
7155
7156# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7158$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7159if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
ce2cded5 7161else
d7040cdb 7162
7357c5b6
AM
7163# These are sane defaults that work on at least a few old systems.
7164# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7165
7357c5b6
AM
7166# Character class describing NM global symbol codes.
7167symcode='[BCDEGRST]'
7168
7169# Regexp to match symbols that can be accessed directly from C.
7170sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7171
7172# Define system-specific variables.
7173case $host_os in
7174aix*)
7175 symcode='[BCDT]'
7176 ;;
b214d478 7177cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7178 symcode='[ABCDGISTW]'
7179 ;;
7180hpux*)
7181 if test "$host_cpu" = ia64; then
7182 symcode='[ABCDEGRST]'
ce2cded5 7183 fi
7357c5b6
AM
7184 ;;
7185irix* | nonstopux*)
7186 symcode='[BCDEGRST]'
7187 ;;
7188osf*)
7189 symcode='[BCDEGQRST]'
7190 ;;
7191solaris*)
7192 symcode='[BDRT]'
7193 ;;
7194sco3.2v5*)
7195 symcode='[DT]'
7196 ;;
7197sysv4.2uw2*)
7198 symcode='[DT]'
7199 ;;
7200sysv5* | sco5v6* | unixware* | OpenUNIX*)
7201 symcode='[ABDT]'
7202 ;;
7203sysv4)
7204 symcode='[DFNSTU]'
7205 ;;
7206esac
d7040cdb 7207
7357c5b6
AM
7208# If we're using GNU nm, then use its standard symbol codes.
7209case `$NM -V 2>&1` in
7210*GNU* | *'with BFD'*)
7211 symcode='[ABCDGIRSTW]' ;;
7212esac
d7040cdb 7213
7357c5b6
AM
7214# Transform an extracted symbol line into a proper C declaration.
7215# Some systems (esp. on ia64) link data and code symbols differently,
7216# so use this general approach.
7217lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7218
7219# Transform an extracted symbol line into symbol name and symbol address
7220lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7221lt_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
7222
7223# Handle CRLF in mingw tool chain
7224opt_cr=
7225case $build_os in
7226mingw*)
7227 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7228 ;;
7229esac
d7040cdb 7230
7357c5b6
AM
7231# Try without a prefix underscore, then with it.
7232for ac_symprfx in "" "_"; do
d7040cdb 7233
7357c5b6
AM
7234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7235 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7236
7357c5b6
AM
7237 # Write the raw and C identifiers.
7238 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7239 # Fake it for dumpbin and say T for any non-static function
7240 # and D for any global variable.
7241 # Also find C++ and __fastcall symbols from MSVC++,
7242 # which start with @ or ?.
7243 lt_cv_sys_global_symbol_pipe="$AWK '"\
7244" {last_section=section; section=\$ 3};"\
7245" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7246" \$ 0!~/External *\|/{next};"\
7247" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7248" {if(hide[section]) next};"\
7249" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7250" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7251" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7252" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7253" ' prfx=^$ac_symprfx"
7254 else
7255 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7256 fi
d7040cdb 7257
7357c5b6
AM
7258 # Check to see that the pipe works correctly.
7259 pipe_works=no
d7040cdb 7260
7357c5b6
AM
7261 rm -f conftest*
7262 cat > conftest.$ac_ext <<_LT_EOF
7263#ifdef __cplusplus
7264extern "C" {
7265#endif
7266char nm_test_var;
7267void nm_test_func(void);
7268void nm_test_func(void){}
7269#ifdef __cplusplus
20e95c23 7270}
7357c5b6
AM
7271#endif
7272int main(){nm_test_var='a';nm_test_func();return(0);}
7273_LT_EOF
7274
81ecdfbb 7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7276 (eval $ac_compile) 2>&5
20e95c23 7277 ac_status=$?
81ecdfbb
RW
7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; }; then
7357c5b6
AM
7280 # Now try to grab the symbols.
7281 nlist=conftest.nm
3725885a
RW
7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7283 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7284 ac_status=$?
81ecdfbb
RW
7285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7287 # Try sorting and uniquifying the output.
7288 if sort "$nlist" | uniq > "$nlist"T; then
7289 mv -f "$nlist"T "$nlist"
7290 else
7291 rm -f "$nlist"T
7292 fi
d7040cdb 7293
7357c5b6
AM
7294 # Make sure that we snagged all the symbols we need.
7295 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7296 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7297 cat <<_LT_EOF > conftest.$ac_ext
7298#ifdef __cplusplus
7299extern "C" {
7300#endif
ce2cded5 7301
7357c5b6
AM
7302_LT_EOF
7303 # Now generate the symbol file.
7304 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7305
7357c5b6 7306 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7307
7357c5b6
AM
7308/* The mapping between symbol names and symbols. */
7309const struct {
7310 const char *name;
7311 void *address;
7312}
7313lt__PROGRAM__LTX_preloaded_symbols[] =
7314{
7315 { "@PROGRAM@", (void *) 0 },
7316_LT_EOF
7317 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7318 cat <<\_LT_EOF >> conftest.$ac_ext
7319 {0, (void *) 0}
7320};
d7040cdb 7321
7357c5b6
AM
7322/* This works around a problem in FreeBSD linker */
7323#ifdef FREEBSD_WORKAROUND
7324static const void *lt_preloaded_setup() {
7325 return lt__PROGRAM__LTX_preloaded_symbols;
7326}
ce2cded5 7327#endif
42ecbf5e 7328
7357c5b6 7329#ifdef __cplusplus
ce2cded5 7330}
7357c5b6
AM
7331#endif
7332_LT_EOF
7333 # Now try linking the two files.
7334 mv conftest.$ac_objext conftstm.$ac_objext
7335 lt_save_LIBS="$LIBS"
7336 lt_save_CFLAGS="$CFLAGS"
7337 LIBS="conftstm.$ac_objext"
7338 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7340 (eval $ac_link) 2>&5
7341 ac_status=$?
81ecdfbb
RW
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7344 pipe_works=yes
7345 fi
7346 LIBS="$lt_save_LIBS"
7347 CFLAGS="$lt_save_CFLAGS"
7348 else
7349 echo "cannot find nm_test_func in $nlist" >&5
7350 fi
7351 else
7352 echo "cannot find nm_test_var in $nlist" >&5
7353 fi
7354 else
7355 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7356 fi
7357 else
7358 echo "$progname: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 fi
b214d478 7361 rm -rf conftest* conftst*
7357c5b6
AM
7362
7363 # Do not use the global_symbol_pipe unless it works.
7364 if test "$pipe_works" = yes; then
7365 break
7366 else
7367 lt_cv_sys_global_symbol_pipe=
7368 fi
7369done
42ecbf5e 7370
ce2cded5 7371fi
7357c5b6
AM
7372
7373if test -z "$lt_cv_sys_global_symbol_pipe"; then
7374 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7375fi
7357c5b6 7376if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7378$as_echo "failed" >&6; }
7357c5b6 7379else
81ecdfbb
RW
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7381$as_echo "ok" >&6; }
ce2cded5 7382fi
e5a52504 7383
d7040cdb 7384
e5a52504 7385
d7040cdb 7386
d7040cdb 7387
d7040cdb 7388
d7040cdb 7389
d7040cdb 7390
d7040cdb 7391
d7040cdb 7392
d7040cdb 7393
d7040cdb 7394
7357c5b6
AM
7395
7396
7397
b214d478
SE
7398
7399
7400
7401
7402
7357c5b6
AM
7403
7404
81ecdfbb
RW
7405# Check whether --enable-libtool-lock was given.
7406if test "${enable_libtool_lock+set}" = set; then :
7407 enableval=$enable_libtool_lock;
7408fi
7357c5b6 7409
7357c5b6
AM
7410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7411
7412# Some flags need to be propagated to the compiler or linker for good
7413# libtool support.
7414case $host in
7415ia64-*-hpux*)
7416 # Find out which ABI we are using.
7417 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7419 (eval $ac_compile) 2>&5
7420 ac_status=$?
81ecdfbb
RW
7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; }; then
7357c5b6
AM
7423 case `/usr/bin/file conftest.$ac_objext` in
7424 *ELF-32*)
7425 HPUX_IA64_MODE="32"
7426 ;;
7427 *ELF-64*)
7428 HPUX_IA64_MODE="64"
7429 ;;
7430 esac
7431 fi
7432 rm -rf conftest*
7433 ;;
7434*-*-irix6*)
7435 # Find out which ABI we are using.
3725885a 7436 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7438 (eval $ac_compile) 2>&5
7439 ac_status=$?
81ecdfbb
RW
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
7357c5b6
AM
7442 if test "$lt_cv_prog_gnu_ld" = yes; then
7443 case `/usr/bin/file conftest.$ac_objext` in
7444 *32-bit*)
7445 LD="${LD-ld} -melf32bsmip"
7446 ;;
7447 *N32*)
7448 LD="${LD-ld} -melf32bmipn32"
7449 ;;
7450 *64-bit*)
7451 LD="${LD-ld} -melf64bmip"
7452 ;;
7453 esac
7454 else
7455 case `/usr/bin/file conftest.$ac_objext` in
7456 *32-bit*)
7457 LD="${LD-ld} -32"
7458 ;;
7459 *N32*)
7460 LD="${LD-ld} -n32"
7461 ;;
7462 *64-bit*)
7463 LD="${LD-ld} -64"
7464 ;;
7465 esac
7466 fi
7467 fi
7468 rm -rf conftest*
7469 ;;
7470
cc9afea3 7471x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7472s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7473 # Find out which ABI we are using.
7474 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7476 (eval $ac_compile) 2>&5
7477 ac_status=$?
81ecdfbb
RW
7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; then
7357c5b6
AM
7480 case `/usr/bin/file conftest.o` in
7481 *32-bit*)
7482 case $host in
7483 x86_64-*kfreebsd*-gnu)
7484 LD="${LD-ld} -m elf_i386_fbsd"
7485 ;;
7486 x86_64-*linux*)
6d2920c8
L
7487 case `/usr/bin/file conftest.o` in
7488 *x86-64*)
7489 LD="${LD-ld} -m elf32_x86_64"
7490 ;;
7491 *)
7492 LD="${LD-ld} -m elf_i386"
7493 ;;
7494 esac
7357c5b6 7495 ;;
cc9afea3
AM
7496 powerpc64le-*linux*)
7497 LD="${LD-ld} -m elf32lppclinux"
7498 ;;
7499 powerpc64-*linux*)
7357c5b6
AM
7500 LD="${LD-ld} -m elf32ppclinux"
7501 ;;
7502 s390x-*linux*)
7503 LD="${LD-ld} -m elf_s390"
7504 ;;
7505 sparc64-*linux*)
7506 LD="${LD-ld} -m elf32_sparc"
7507 ;;
7508 esac
7509 ;;
7510 *64-bit*)
7511 case $host in
7512 x86_64-*kfreebsd*-gnu)
7513 LD="${LD-ld} -m elf_x86_64_fbsd"
7514 ;;
7515 x86_64-*linux*)
7516 LD="${LD-ld} -m elf_x86_64"
7517 ;;
cc9afea3
AM
7518 powerpcle-*linux*)
7519 LD="${LD-ld} -m elf64lppc"
7520 ;;
7521 powerpc-*linux*)
7357c5b6
AM
7522 LD="${LD-ld} -m elf64ppc"
7523 ;;
7524 s390*-*linux*|s390*-*tpf*)
7525 LD="${LD-ld} -m elf64_s390"
7526 ;;
7527 sparc*-*linux*)
7528 LD="${LD-ld} -m elf64_sparc"
7529 ;;
7530 esac
7531 ;;
7532 esac
7533 fi
7534 rm -rf conftest*
7535 ;;
7536
7537*-*-sco3.2v5*)
7538 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7539 SAVE_CFLAGS="$CFLAGS"
7540 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7542$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7543if test "${lt_cv_cc_needs_belf+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
ce2cded5 7545else
7357c5b6
AM
7546 ac_ext=c
7547ac_cpp='$CPP $CPPFLAGS'
7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551
81ecdfbb 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7553/* end confdefs.h. */
d7040cdb 7554
7357c5b6
AM
7555int
7556main ()
7557{
7558
7559 ;
7560 return 0;
7561}
ce2cded5 7562_ACEOF
81ecdfbb 7563if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7564 lt_cv_cc_needs_belf=yes
ce2cded5 7565else
81ecdfbb 7566 lt_cv_cc_needs_belf=no
ce2cded5 7567fi
81ecdfbb
RW
7568rm -f core conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7570 ac_ext=c
7571ac_cpp='$CPP $CPPFLAGS'
7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7575
b214d478 7576fi
81ecdfbb
RW
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7578$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7579 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7580 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7581 CFLAGS="$SAVE_CFLAGS"
7582 fi
7583 ;;
7584sparc*-*solaris*)
7585 # Find out which ABI we are using.
7586 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7588 (eval $ac_compile) 2>&5
7589 ac_status=$?
81ecdfbb
RW
7590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591 test $ac_status = 0; }; then
b214d478
SE
7592 case `/usr/bin/file conftest.o` in
7593 *64-bit*)
7594 case $lt_cv_prog_gnu_ld in
7595 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7596 *)
7597 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7598 LD="${LD-ld} -64"
7599 fi
7600 ;;
7601 esac
7602 ;;
7603 esac
7604 fi
7605 rm -rf conftest*
7606 ;;
7607esac
7608
7609need_locks="$enable_libtool_lock"
7610
7611
7612 case $host_os in
7613 rhapsody* | darwin*)
7614 if test -n "$ac_tool_prefix"; then
7615 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7616set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
b214d478
SE
7621else
7622 if test -n "$DSYMUTIL"; then
7623 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7632 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7634 break 2
7635 fi
7636done
81ecdfbb
RW
7637 done
7638IFS=$as_save_IFS
b214d478
SE
7639
7640fi
7641fi
7642DSYMUTIL=$ac_cv_prog_DSYMUTIL
7643if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7645$as_echo "$DSYMUTIL" >&6; }
b214d478 7646else
81ecdfbb
RW
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
b214d478
SE
7649fi
7650
81ecdfbb 7651
b214d478
SE
7652fi
7653if test -z "$ac_cv_prog_DSYMUTIL"; then
7654 ac_ct_DSYMUTIL=$DSYMUTIL
7655 # Extract the first word of "dsymutil", so it can be a program name with args.
7656set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658$as_echo_n "checking for $ac_word... " >&6; }
7659if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
b214d478
SE
7661else
7662 if test -n "$ac_ct_DSYMUTIL"; then
7663 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7664else
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7672 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7674 break 2
7675 fi
7676done
81ecdfbb
RW
7677 done
7678IFS=$as_save_IFS
b214d478 7679
b214d478
SE
7680fi
7681fi
7682ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7683if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7685$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7686else
81ecdfbb
RW
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688$as_echo "no" >&6; }
b214d478
SE
7689fi
7690
81ecdfbb
RW
7691 if test "x$ac_ct_DSYMUTIL" = x; then
7692 DSYMUTIL=":"
7693 else
7694 case $cross_compiling:$ac_tool_warned in
7695yes:)
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698ac_tool_warned=yes ;;
7699esac
7700 DSYMUTIL=$ac_ct_DSYMUTIL
7701 fi
b214d478
SE
7702else
7703 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7704fi
7705
7706 if test -n "$ac_tool_prefix"; then
7707 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7708set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
b214d478
SE
7713else
7714 if test -n "$NMEDIT"; then
7715 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7724 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7726 break 2
7727 fi
7728done
81ecdfbb
RW
7729 done
7730IFS=$as_save_IFS
b214d478
SE
7731
7732fi
7733fi
7734NMEDIT=$ac_cv_prog_NMEDIT
7735if test -n "$NMEDIT"; then
81ecdfbb
RW
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7737$as_echo "$NMEDIT" >&6; }
b214d478 7738else
81ecdfbb
RW
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
b214d478
SE
7741fi
7742
81ecdfbb 7743
b214d478
SE
7744fi
7745if test -z "$ac_cv_prog_NMEDIT"; then
7746 ac_ct_NMEDIT=$NMEDIT
7747 # Extract the first word of "nmedit", so it can be a program name with args.
7748set dummy nmedit; ac_word=$2
81ecdfbb
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
b214d478
SE
7753else
7754 if test -n "$ac_ct_NMEDIT"; then
7755 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7756else
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7764 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7766 break 2
7767 fi
7768done
81ecdfbb
RW
7769 done
7770IFS=$as_save_IFS
b214d478 7771
b214d478
SE
7772fi
7773fi
7774ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7775if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7777$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7778else
81ecdfbb
RW
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
b214d478
SE
7781fi
7782
81ecdfbb
RW
7783 if test "x$ac_ct_NMEDIT" = x; then
7784 NMEDIT=":"
7785 else
7786 case $cross_compiling:$ac_tool_warned in
7787yes:)
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7790ac_tool_warned=yes ;;
7791esac
7792 NMEDIT=$ac_ct_NMEDIT
7793 fi
b214d478
SE
7794else
7795 NMEDIT="$ac_cv_prog_NMEDIT"
7796fi
7797
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7800set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if test "${ac_cv_prog_LIPO+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
b214d478
SE
7805else
7806 if test -n "$LIPO"; then
7807 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7816 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7818 break 2
7819 fi
7820done
81ecdfbb
RW
7821 done
7822IFS=$as_save_IFS
b214d478
SE
7823
7824fi
7825fi
7826LIPO=$ac_cv_prog_LIPO
7827if test -n "$LIPO"; then
81ecdfbb
RW
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7829$as_echo "$LIPO" >&6; }
b214d478 7830else
81ecdfbb
RW
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
b214d478
SE
7833fi
7834
81ecdfbb 7835
b214d478
SE
7836fi
7837if test -z "$ac_cv_prog_LIPO"; then
7838 ac_ct_LIPO=$LIPO
7839 # Extract the first word of "lipo", so it can be a program name with args.
7840set dummy lipo; ac_word=$2
81ecdfbb
RW
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842$as_echo_n "checking for $ac_word... " >&6; }
7843if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
b214d478
SE
7845else
7846 if test -n "$ac_ct_LIPO"; then
7847 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7856 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7858 break 2
7859 fi
7860done
81ecdfbb
RW
7861 done
7862IFS=$as_save_IFS
b214d478 7863
b214d478
SE
7864fi
7865fi
7866ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7867if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7869$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7870else
81ecdfbb
RW
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
b214d478
SE
7873fi
7874
81ecdfbb
RW
7875 if test "x$ac_ct_LIPO" = x; then
7876 LIPO=":"
7877 else
7878 case $cross_compiling:$ac_tool_warned in
7879yes:)
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7882ac_tool_warned=yes ;;
7883esac
7884 LIPO=$ac_ct_LIPO
7885 fi
b214d478
SE
7886else
7887 LIPO="$ac_cv_prog_LIPO"
7888fi
7889
7890 if test -n "$ac_tool_prefix"; then
7891 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7892set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if test "${ac_cv_prog_OTOOL+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
b214d478
SE
7897else
7898 if test -n "$OTOOL"; then
7899 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7908 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7910 break 2
7911 fi
7912done
81ecdfbb
RW
7913 done
7914IFS=$as_save_IFS
b214d478
SE
7915
7916fi
7917fi
7918OTOOL=$ac_cv_prog_OTOOL
7919if test -n "$OTOOL"; then
81ecdfbb
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7921$as_echo "$OTOOL" >&6; }
b214d478 7922else
81ecdfbb
RW
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
b214d478
SE
7925fi
7926
81ecdfbb 7927
b214d478
SE
7928fi
7929if test -z "$ac_cv_prog_OTOOL"; then
7930 ac_ct_OTOOL=$OTOOL
7931 # Extract the first word of "otool", so it can be a program name with args.
7932set dummy otool; ac_word=$2
81ecdfbb
RW
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
b214d478
SE
7937else
7938 if test -n "$ac_ct_OTOOL"; then
7939 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7948 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7950 break 2
7951 fi
7952done
81ecdfbb
RW
7953 done
7954IFS=$as_save_IFS
b214d478 7955
b214d478
SE
7956fi
7957fi
7958ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7959if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7961$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7962else
81ecdfbb
RW
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
b214d478
SE
7965fi
7966
81ecdfbb
RW
7967 if test "x$ac_ct_OTOOL" = x; then
7968 OTOOL=":"
7969 else
7970 case $cross_compiling:$ac_tool_warned in
7971yes:)
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974ac_tool_warned=yes ;;
7975esac
7976 OTOOL=$ac_ct_OTOOL
7977 fi
b214d478
SE
7978else
7979 OTOOL="$ac_cv_prog_OTOOL"
7980fi
7981
7982 if test -n "$ac_tool_prefix"; then
7983 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7984set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986$as_echo_n "checking for $ac_word... " >&6; }
7987if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
b214d478
SE
7989else
7990 if test -n "$OTOOL64"; then
7991 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8000 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8002 break 2
8003 fi
8004done
81ecdfbb
RW
8005 done
8006IFS=$as_save_IFS
b214d478
SE
8007
8008fi
8009fi
8010OTOOL64=$ac_cv_prog_OTOOL64
8011if test -n "$OTOOL64"; then
81ecdfbb
RW
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8013$as_echo "$OTOOL64" >&6; }
b214d478 8014else
81ecdfbb
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
b214d478
SE
8017fi
8018
81ecdfbb 8019
b214d478
SE
8020fi
8021if test -z "$ac_cv_prog_OTOOL64"; then
8022 ac_ct_OTOOL64=$OTOOL64
8023 # Extract the first word of "otool64", so it can be a program name with args.
8024set dummy otool64; ac_word=$2
81ecdfbb
RW
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026$as_echo_n "checking for $ac_word... " >&6; }
8027if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
b214d478
SE
8029else
8030 if test -n "$ac_ct_OTOOL64"; then
8031 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8032else
8033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8040 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8042 break 2
8043 fi
8044done
81ecdfbb
RW
8045 done
8046IFS=$as_save_IFS
b214d478 8047
b214d478
SE
8048fi
8049fi
8050ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8051if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8053$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8054else
81ecdfbb
RW
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
b214d478
SE
8057fi
8058
81ecdfbb
RW
8059 if test "x$ac_ct_OTOOL64" = x; then
8060 OTOOL64=":"
8061 else
8062 case $cross_compiling:$ac_tool_warned in
8063yes:)
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066ac_tool_warned=yes ;;
8067esac
8068 OTOOL64=$ac_ct_OTOOL64
8069 fi
b214d478
SE
8070else
8071 OTOOL64="$ac_cv_prog_OTOOL64"
8072fi
8073
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
81ecdfbb
RW
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8101$as_echo_n "checking for -single_module linker flag... " >&6; }
8102if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
b214d478
SE
8104else
8105 lt_cv_apple_cc_single_mod=no
8106 if test -z "${LT_MULTI_MODULE}"; then
8107 # By default we will add the -single_module flag. You can override
8108 # by either setting the environment variable LT_MULTI_MODULE
8109 # non-empty at configure time, or by adding -multi_module to the
8110 # link flags.
8111 rm -rf libconftest.dylib*
8112 echo "int foo(void){return 1;}" > conftest.c
8113 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114-dynamiclib -Wl,-single_module conftest.c" >&5
8115 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8117 _lt_result=$?
8118 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8119 lt_cv_apple_cc_single_mod=yes
8120 else
8121 cat conftest.err >&5
8122 fi
8123 rm -rf libconftest.dylib*
8124 rm -f conftest.*
8125 fi
8126fi
81ecdfbb
RW
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8128$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8130$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8131if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
b214d478
SE
8133else
8134 lt_cv_ld_exported_symbols_list=no
8135 save_LDFLAGS=$LDFLAGS
8136 echo "_main" > conftest.sym
8137 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8139/* end confdefs.h. */
8140
8141int
8142main ()
8143{
8144
8145 ;
8146 return 0;
8147}
8148_ACEOF
81ecdfbb 8149if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8150 lt_cv_ld_exported_symbols_list=yes
8151else
81ecdfbb 8152 lt_cv_ld_exported_symbols_list=no
b214d478 8153fi
81ecdfbb
RW
8154rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8156 LDFLAGS="$save_LDFLAGS"
8157
8158fi
81ecdfbb
RW
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8160$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8162$as_echo_n "checking for -force_load linker flag... " >&6; }
8163if test "${lt_cv_ld_force_load+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165else
8166 lt_cv_ld_force_load=no
8167 cat > conftest.c << _LT_EOF
8168int forced_loaded() { return 2;}
8169_LT_EOF
8170 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8171 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8172 echo "$AR cru libconftest.a conftest.o" >&5
8173 $AR cru libconftest.a conftest.o 2>&5
8174 cat > conftest.c << _LT_EOF
8175int main() { return 0;}
8176_LT_EOF
8177 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8178 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8179 _lt_result=$?
8180 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8181 lt_cv_ld_force_load=yes
8182 else
8183 cat conftest.err >&5
8184 fi
8185 rm -f conftest.err libconftest.a conftest conftest.c
8186 rm -rf conftest.dSYM
8187
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8190$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8191 case $host_os in
8192 rhapsody* | darwin1.[012])
8193 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8194 darwin1.*)
8195 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8196 darwin*) # darwin 5.x on
8197 # if running on 10.5 or later, the deployment target defaults
8198 # to the OS version, if on x86, and 10.4, the deployment
8199 # target defaults to 10.4. Don't you love it?
8200 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8201 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8202 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8203 10.[012][,.]*)
b214d478
SE
8204 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8205 10.*)
8206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8207 esac
8208 ;;
8209 esac
8210 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8211 _lt_dar_single_mod='$single_module'
8212 fi
8213 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8214 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8215 else
8216 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8217 fi
3725885a 8218 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8219 _lt_dsymutil='~$DSYMUTIL $lib || :'
8220 else
8221 _lt_dsymutil=
8222 fi
8223 ;;
8224 esac
8225
b214d478 8226for ac_header in dlfcn.h
81ecdfbb
RW
8227do :
8228 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8229"
8230if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8231 cat >>confdefs.h <<_ACEOF
81ecdfbb 8232#define HAVE_DLFCN_H 1
b214d478
SE
8233_ACEOF
8234
8235fi
8236
8237done
8238
8239
8240
3725885a
RW
8241
8242
3cb62297 8243
b214d478
SE
8244# Set options
8245
8246
8247
8248 enable_dlopen=no
8249
8250
8251 enable_win32_dll=no
8252
8253
81ecdfbb
RW
8254 # Check whether --enable-shared was given.
8255if test "${enable_shared+set}" = set; then :
8256 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8257 case $enableval in
8258 yes) enable_shared=yes ;;
8259 no) enable_shared=no ;;
8260 *)
8261 enable_shared=no
8262 # Look at the argument we got. We use all the common list separators.
8263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8264 for pkg in $enableval; do
8265 IFS="$lt_save_ifs"
8266 if test "X$pkg" = "X$p"; then
8267 enable_shared=yes
8268 fi
8269 done
8270 IFS="$lt_save_ifs"
8271 ;;
8272 esac
8273else
8274 enable_shared=yes
81ecdfbb 8275fi
b214d478
SE
8276
8277
8278
8279
8280
8281
8282
8283
81ecdfbb
RW
8284
8285 # Check whether --enable-static was given.
8286if test "${enable_static+set}" = set; then :
8287 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8288 case $enableval in
8289 yes) enable_static=yes ;;
8290 no) enable_static=no ;;
8291 *)
8292 enable_static=no
8293 # Look at the argument we got. We use all the common list separators.
8294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 for pkg in $enableval; do
8296 IFS="$lt_save_ifs"
8297 if test "X$pkg" = "X$p"; then
8298 enable_static=yes
8299 fi
8300 done
8301 IFS="$lt_save_ifs"
8302 ;;
8303 esac
8304else
8305 enable_static=yes
81ecdfbb 8306fi
b214d478
SE
8307
8308
8309
8310
8311
8312
8313
8314
8315
81ecdfbb
RW
8316
8317# Check whether --with-pic was given.
8318if test "${with_pic+set}" = set; then :
8319 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8320else
8321 pic_mode=default
81ecdfbb
RW
8322fi
8323
b214d478
SE
8324
8325test -z "$pic_mode" && pic_mode=default
8326
8327
8328
8329
8330
8331
8332
81ecdfbb
RW
8333 # Check whether --enable-fast-install was given.
8334if test "${enable_fast_install+set}" = set; then :
8335 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8336 case $enableval in
8337 yes) enable_fast_install=yes ;;
8338 no) enable_fast_install=no ;;
8339 *)
8340 enable_fast_install=no
8341 # Look at the argument we got. We use all the common list separators.
8342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8343 for pkg in $enableval; do
8344 IFS="$lt_save_ifs"
8345 if test "X$pkg" = "X$p"; then
8346 enable_fast_install=yes
8347 fi
8348 done
8349 IFS="$lt_save_ifs"
7357c5b6
AM
8350 ;;
8351 esac
b214d478
SE
8352else
8353 enable_fast_install=yes
81ecdfbb
RW
8354fi
8355
ce2cded5 8356
ce2cded5
L
8357
8358
ce2cded5 8359
42ecbf5e 8360
d7040cdb 8361
d7040cdb 8362
d7040cdb 8363
d7040cdb 8364
d7040cdb 8365
ce2cded5
L
8366# This can be used to rebuild libtool when needed
8367LIBTOOL_DEPS="$ltmain"
d7040cdb 8368
ce2cded5
L
8369# Always use our own libtool.
8370LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8371
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
SE
8387
8388
8389
8390
8391
8392
8393
3725885a 8394
d7040cdb
SE
8395
8396
ce2cded5 8397test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8398
8399
8400
8401
8402
8403
d7040cdb
SE
8404
8405
8406
8407
8408
8409
8410
8411
ce2cded5
L
8412if test -n "${ZSH_VERSION+set}" ; then
8413 setopt NO_GLOB_SUBST
8414fi
d7040cdb 8415
81ecdfbb
RW
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8417$as_echo_n "checking for objdir... " >&6; }
8418if test "${lt_cv_objdir+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
ce2cded5
L
8420else
8421 rm -f .libs 2>/dev/null
8422mkdir .libs 2>/dev/null
8423if test -d .libs; then
8424 lt_cv_objdir=.libs
8425else
8426 # MS-DOS does not allow filenames that begin with a dot.
8427 lt_cv_objdir=_libs
8428fi
8429rmdir .libs 2>/dev/null
8430fi
81ecdfbb
RW
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8432$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8433objdir=$lt_cv_objdir
d7040cdb
SE
8434
8435
8436
8437
8438
ce2cded5
L
8439cat >>confdefs.h <<_ACEOF
8440#define LT_OBJDIR "$lt_cv_objdir/"
8441_ACEOF
d7040cdb
SE
8442
8443
8444
8445
ce2cded5
L
8446case $host_os in
8447aix3*)
8448 # AIX sometimes has problems with the GCC collect2 program. For some
8449 # reason, if we set the COLLECT_NAMES environment variable, the problems
8450 # vanish in a puff of smoke.
8451 if test "X${COLLECT_NAMES+set}" != Xset; then
8452 COLLECT_NAMES=
8453 export COLLECT_NAMES
8454 fi
8455 ;;
8456esac
d7040cdb 8457
ce2cded5
L
8458# Global variables:
8459ofile=libtool
8460can_build_shared=yes
d7040cdb 8461
ce2cded5
L
8462# All known linkers require a `.a' archive for static linking (except MSVC,
8463# which needs '.lib').
8464libext=a
d7040cdb 8465
ce2cded5 8466with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8467
ce2cded5
L
8468old_CC="$CC"
8469old_CFLAGS="$CFLAGS"
d7040cdb 8470
ce2cded5
L
8471# Set sane defaults for various variables
8472test -z "$CC" && CC=cc
8473test -z "$LTCC" && LTCC=$CC
8474test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8475test -z "$LD" && LD=ld
8476test -z "$ac_objext" && ac_objext=o
d7040cdb 8477
ce2cded5
L
8478for cc_temp in $compiler""; do
8479 case $cc_temp in
8480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8482 \-*) ;;
8483 *) break;;
8484 esac
8485done
3725885a 8486cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8487
8488
ce2cded5
L
8489# Only perform the check for file, if the check method requires it
8490test -z "$MAGIC_CMD" && MAGIC_CMD=file
8491case $deplibs_check_method in
8492file_magic*)
8493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8495$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8496if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
ce2cded5
L
8498else
8499 case $MAGIC_CMD in
8500[\\/*] | ?:[\\/]*)
8501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8502 ;;
8503*)
8504 lt_save_MAGIC_CMD="$MAGIC_CMD"
8505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8507 for ac_dir in $ac_dummy; do
8508 IFS="$lt_save_ifs"
8509 test -z "$ac_dir" && ac_dir=.
8510 if test -f $ac_dir/${ac_tool_prefix}file; then
8511 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8512 if test -n "$file_magic_test_file"; then
8513 case $deplibs_check_method in
8514 "file_magic "*)
8515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8518 $EGREP "$file_magic_regex" > /dev/null; then
8519 :
8520 else
8521 cat <<_LT_EOF 1>&2
d7040cdb 8522
ce2cded5
L
8523*** Warning: the command libtool uses to detect shared libraries,
8524*** $file_magic_cmd, produces output that libtool cannot recognize.
8525*** The result is that libtool may fail to recognize shared libraries
8526*** as such. This will affect the creation of libtool libraries that
8527*** depend on shared libraries, but programs linked with such libtool
8528*** libraries will work regardless of this problem. Nevertheless, you
8529*** may want to report the problem to your system manager and/or to
8530*** bug-libtool@gnu.org
d7040cdb 8531
ce2cded5
L
8532_LT_EOF
8533 fi ;;
8534 esac
8535 fi
8536 break
8537 fi
8538 done
8539 IFS="$lt_save_ifs"
8540 MAGIC_CMD="$lt_save_MAGIC_CMD"
8541 ;;
8542esac
8543fi
d7040cdb 8544
ce2cded5
L
8545MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8548$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8549else
81ecdfbb
RW
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
ce2cded5 8552fi
d7040cdb
SE
8553
8554
8555
8556
8557
ce2cded5
L
8558if test -z "$lt_cv_path_MAGIC_CMD"; then
8559 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8561$as_echo_n "checking for file... " >&6; }
8562if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
ce2cded5
L
8564else
8565 case $MAGIC_CMD in
8566[\\/*] | ?:[\\/]*)
8567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8568 ;;
8569*)
8570 lt_save_MAGIC_CMD="$MAGIC_CMD"
8571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8573 for ac_dir in $ac_dummy; do
8574 IFS="$lt_save_ifs"
8575 test -z "$ac_dir" && ac_dir=.
8576 if test -f $ac_dir/file; then
8577 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8578 if test -n "$file_magic_test_file"; then
8579 case $deplibs_check_method in
8580 "file_magic "*)
8581 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8584 $EGREP "$file_magic_regex" > /dev/null; then
8585 :
8586 else
8587 cat <<_LT_EOF 1>&2
d7040cdb 8588
ce2cded5
L
8589*** Warning: the command libtool uses to detect shared libraries,
8590*** $file_magic_cmd, produces output that libtool cannot recognize.
8591*** The result is that libtool may fail to recognize shared libraries
8592*** as such. This will affect the creation of libtool libraries that
8593*** depend on shared libraries, but programs linked with such libtool
8594*** libraries will work regardless of this problem. Nevertheless, you
8595*** may want to report the problem to your system manager and/or to
8596*** bug-libtool@gnu.org
d7040cdb 8597
ce2cded5
L
8598_LT_EOF
8599 fi ;;
8600 esac
8601 fi
8602 break
8603 fi
8604 done
8605 IFS="$lt_save_ifs"
8606 MAGIC_CMD="$lt_save_MAGIC_CMD"
8607 ;;
8608esac
8609fi
d7040cdb 8610
ce2cded5
L
8611MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8612if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8614$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8615else
81ecdfbb
RW
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
ce2cded5 8618fi
d7040cdb
SE
8619
8620
ce2cded5
L
8621 else
8622 MAGIC_CMD=:
8623 fi
8624fi
d7040cdb 8625
ce2cded5
L
8626 fi
8627 ;;
8628esac
d7040cdb 8629
ce2cded5 8630# Use C for the default configuration in the libtool script
d7040cdb 8631
ce2cded5
L
8632lt_save_CC="$CC"
8633ac_ext=c
8634ac_cpp='$CPP $CPPFLAGS'
8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8638
8639
ce2cded5
L
8640# Source file extension for C test sources.
8641ac_ext=c
d7040cdb 8642
ce2cded5
L
8643# Object file extension for compiled C test sources.
8644objext=o
8645objext=$objext
d7040cdb 8646
ce2cded5
L
8647# Code to be used in simple compile tests
8648lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8649
ce2cded5
L
8650# Code to be used in simple link tests
8651lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8652
8653
8654
8655
8656
8657
8658
ce2cded5
L
8659# If no C compiler was specified, use CC.
8660LTCC=${LTCC-"$CC"}
d7040cdb 8661
ce2cded5
L
8662# If no C compiler flags were specified, use CFLAGS.
8663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8664
ce2cded5
L
8665# Allow CC to be a program name with arguments.
8666compiler=$CC
d7040cdb 8667
ce2cded5
L
8668# Save the default compiler, since it gets overwritten when the other
8669# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8670compiler_DEFAULT=$CC
d7040cdb 8671
ce2cded5
L
8672# save warnings/boilerplate of simple test code
8673ac_outfile=conftest.$ac_objext
8674echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8675eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8676_lt_compiler_boilerplate=`cat conftest.err`
8677$RM conftest*
d7040cdb 8678
ce2cded5
L
8679ac_outfile=conftest.$ac_objext
8680echo "$lt_simple_link_test_code" >conftest.$ac_ext
8681eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682_lt_linker_boilerplate=`cat conftest.err`
b214d478 8683$RM -r conftest*
d7040cdb
SE
8684
8685
ce2cded5
L
8686## CAVEAT EMPTOR:
8687## There is no encapsulation within the following macros, do not change
8688## the running order or otherwise move them around unless you know exactly
8689## what you are doing...
8690if test -n "$compiler"; then
d7040cdb 8691
ce2cded5 8692lt_prog_compiler_no_builtin_flag=
d7040cdb 8693
ce2cded5 8694if test "$GCC" = yes; then
3725885a
RW
8695 case $cc_basename in
8696 nvcc*)
8697 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8698 *)
8699 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8700 esac
d7040cdb 8701
81ecdfbb
RW
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8703$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8704if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8705 $as_echo_n "(cached) " >&6
ce2cded5
L
8706else
8707 lt_cv_prog_compiler_rtti_exceptions=no
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8710 lt_compiler_flag="-fno-rtti -fno-exceptions"
8711 # Insert the option either (1) after the last *FLAGS variable, or
8712 # (2) before a word containing "conftest.", or (3) at the end.
8713 # Note that $ac_compile itself does not contain backslashes and begins
8714 # with a dollar sign (not a hyphen), so the echo should work correctly.
8715 # The option is referenced via a variable to avoid confusing sed.
8716 lt_compile=`echo "$ac_compile" | $SED \
8717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719 -e 's:$: $lt_compiler_flag:'`
3725885a 8720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8721 (eval "$lt_compile" 2>conftest.err)
8722 ac_status=$?
8723 cat conftest.err >&5
3725885a 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8725 if (exit $ac_status) && test -s "$ac_outfile"; then
8726 # The compiler can only warn and ignore the option if not recognized
8727 # So say no if there are warnings other than the usual output.
3725885a 8728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8731 lt_cv_prog_compiler_rtti_exceptions=yes
8732 fi
8733 fi
8734 $RM conftest*
d7040cdb 8735
ce2cded5 8736fi
81ecdfbb
RW
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8738$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8739
ce2cded5
L
8740if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8742else
8743 :
8744fi
d7040cdb 8745
ce2cded5 8746fi
d7040cdb
SE
8747
8748
8749
8750
8751
8752
ce2cded5
L
8753 lt_prog_compiler_wl=
8754lt_prog_compiler_pic=
8755lt_prog_compiler_static=
d7040cdb 8756
81ecdfbb
RW
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8758$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8759
ce2cded5
L
8760 if test "$GCC" = yes; then
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_static='-static'
d7040cdb 8763
ce2cded5
L
8764 case $host_os in
8765 aix*)
8766 # All AIX code is PIC.
8767 if test "$host_cpu" = ia64; then
8768 # AIX 5 now supports IA64 processor
8769 lt_prog_compiler_static='-Bstatic'
8770 fi
52204357 8771 lt_prog_compiler_pic='-fPIC'
ce2cded5 8772 ;;
d7040cdb 8773
ce2cded5 8774 amigaos*)
b214d478
SE
8775 case $host_cpu in
8776 powerpc)
8777 # see comment about AmigaOS4 .so support
8778 lt_prog_compiler_pic='-fPIC'
8779 ;;
8780 m68k)
8781 # FIXME: we need at least 68020 code to build shared libraries, but
8782 # adding the `-m68020' flag to GCC prevents building anything better,
8783 # like `-m68040'.
8784 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8785 ;;
8786 esac
ce2cded5 8787 ;;
d7040cdb 8788
ce2cded5
L
8789 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8790 # PIC is the default for these OSes.
8791 ;;
d7040cdb 8792
b214d478 8793 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8794 # This hack is so that the source file can tell whether it is being
8795 # built for inclusion in a dll (and should export symbols for example).
8796 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8797 # (--disable-auto-import) libraries
8798 lt_prog_compiler_pic='-DDLL_EXPORT'
8799 ;;
d7040cdb 8800
ce2cded5
L
8801 darwin* | rhapsody*)
8802 # PIC is the default on this platform
8803 # Common symbols not allowed in MH_DYLIB files
8804 lt_prog_compiler_pic='-fno-common'
8805 ;;
d7040cdb 8806
3725885a
RW
8807 haiku*)
8808 # PIC is the default for Haiku.
8809 # The "-static" flag exists, but is broken.
8810 lt_prog_compiler_static=
8811 ;;
8812
ce2cded5 8813 hpux*)
b214d478
SE
8814 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8815 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8816 # sets the default TLS model and affects inlining.
ce2cded5 8817 case $host_cpu in
b214d478 8818 hppa*64*)
ce2cded5
L
8819 # +Z the default
8820 ;;
8821 *)
8822 lt_prog_compiler_pic='-fPIC'
8823 ;;
8824 esac
8825 ;;
d7040cdb 8826
ce2cded5
L
8827 interix[3-9]*)
8828 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8829 # Instead, we relocate shared libraries at runtime.
8830 ;;
d7040cdb 8831
ce2cded5
L
8832 msdosdjgpp*)
8833 # Just because we use GCC doesn't mean we suddenly get shared libraries
8834 # on systems that don't support them.
8835 lt_prog_compiler_can_build_shared=no
8836 enable_shared=no
8837 ;;
d7040cdb 8838
ce2cded5
L
8839 *nto* | *qnx*)
8840 # QNX uses GNU C++, but need to define -shared option too, otherwise
8841 # it will coredump.
8842 lt_prog_compiler_pic='-fPIC -shared'
8843 ;;
d7040cdb 8844
ce2cded5
L
8845 sysv4*MP*)
8846 if test -d /usr/nec; then
8847 lt_prog_compiler_pic=-Kconform_pic
8848 fi
8849 ;;
d7040cdb 8850
ce2cded5
L
8851 *)
8852 lt_prog_compiler_pic='-fPIC'
8853 ;;
8854 esac
3725885a
RW
8855
8856 case $cc_basename in
8857 nvcc*) # Cuda Compiler Driver 2.2
8858 lt_prog_compiler_wl='-Xlinker '
8859 lt_prog_compiler_pic='-Xcompiler -fPIC'
8860 ;;
8861 esac
ce2cded5
L
8862 else
8863 # PORTME Check for flag to pass linker flags through the system compiler.
8864 case $host_os in
8865 aix*)
8866 lt_prog_compiler_wl='-Wl,'
8867 if test "$host_cpu" = ia64; then
8868 # AIX 5 now supports IA64 processor
8869 lt_prog_compiler_static='-Bstatic'
8870 else
8871 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8872 fi
8873 ;;
d7040cdb 8874
b214d478 8875 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8876 # This hack is so that the source file can tell whether it is being
8877 # built for inclusion in a dll (and should export symbols for example).
8878 lt_prog_compiler_pic='-DDLL_EXPORT'
8879 ;;
d7040cdb 8880
ce2cded5
L
8881 hpux9* | hpux10* | hpux11*)
8882 lt_prog_compiler_wl='-Wl,'
8883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8884 # not for PA HP-UX.
8885 case $host_cpu in
8886 hppa*64*|ia64*)
8887 # +Z the default
8888 ;;
8889 *)
8890 lt_prog_compiler_pic='+Z'
8891 ;;
8892 esac
8893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8894 lt_prog_compiler_static='${wl}-a ${wl}archive'
8895 ;;
d7040cdb 8896
ce2cded5
L
8897 irix5* | irix6* | nonstopux*)
8898 lt_prog_compiler_wl='-Wl,'
8899 # PIC (with -KPIC) is the default.
8900 lt_prog_compiler_static='-non_shared'
8901 ;;
d7040cdb 8902
58e24671 8903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8904 case $cc_basename in
b214d478
SE
8905 # old Intel for x86_64 which still supported -KPIC.
8906 ecc*)
ce2cded5
L
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-static'
8910 ;;
b214d478
SE
8911 # icc used to be incompatible with GCC.
8912 # ICC 10 doesn't accept -KPIC any more.
8913 icc* | ifort*)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_pic='-fPIC'
8916 lt_prog_compiler_static='-static'
8917 ;;
8918 # Lahey Fortran 8.1.
8919 lf95*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='--shared'
8922 lt_prog_compiler_static='--static'
8923 ;;
3725885a 8924 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8925 # Portland Group compilers (*not* the Pentium gcc compiler,
8926 # which looks to be a dead project)
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_pic='-fpic'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931 ccc*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # All Alpha code is PIC.
8934 lt_prog_compiler_static='-non_shared'
8935 ;;
3725885a
RW
8936 xl* | bgxl* | bgf* | mpixl*)
8937 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-qpic'
8940 lt_prog_compiler_static='-qstaticlink'
8941 ;;
ce2cded5
L
8942 *)
8943 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8944 *Sun\ F* | *Sun*Fortran*)
8945 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8946 lt_prog_compiler_pic='-KPIC'
8947 lt_prog_compiler_static='-Bstatic'
3725885a 8948 lt_prog_compiler_wl=''
ce2cded5 8949 ;;
3725885a
RW
8950 *Sun\ C*)
8951 # Sun C 5.9
ce2cded5
L
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
3725885a 8954 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8955 ;;
8956 esac
8957 ;;
8958 esac
8959 ;;
d7040cdb 8960
ce2cded5
L
8961 newsos6)
8962 lt_prog_compiler_pic='-KPIC'
8963 lt_prog_compiler_static='-Bstatic'
8964 ;;
d7040cdb 8965
ce2cded5
L
8966 *nto* | *qnx*)
8967 # QNX uses GNU C++, but need to define -shared option too, otherwise
8968 # it will coredump.
8969 lt_prog_compiler_pic='-fPIC -shared'
8970 ;;
d7040cdb 8971
ce2cded5
L
8972 osf3* | osf4* | osf5*)
8973 lt_prog_compiler_wl='-Wl,'
8974 # All OSF/1 code is PIC.
8975 lt_prog_compiler_static='-non_shared'
8976 ;;
d7040cdb 8977
ce2cded5
L
8978 rdos*)
8979 lt_prog_compiler_static='-non_shared'
8980 ;;
d7040cdb 8981
ce2cded5
L
8982 solaris*)
8983 lt_prog_compiler_pic='-KPIC'
8984 lt_prog_compiler_static='-Bstatic'
8985 case $cc_basename in
8986 f77* | f90* | f95*)
8987 lt_prog_compiler_wl='-Qoption ld ';;
8988 *)
8989 lt_prog_compiler_wl='-Wl,';;
8990 esac
8991 ;;
d7040cdb 8992
ce2cded5
L
8993 sunos4*)
8994 lt_prog_compiler_wl='-Qoption ld '
8995 lt_prog_compiler_pic='-PIC'
8996 lt_prog_compiler_static='-Bstatic'
8997 ;;
d7040cdb 8998
ce2cded5
L
8999 sysv4 | sysv4.2uw2* | sysv4.3*)
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 ;;
d7040cdb 9004
ce2cded5
L
9005 sysv4*MP*)
9006 if test -d /usr/nec ;then
9007 lt_prog_compiler_pic='-Kconform_pic'
9008 lt_prog_compiler_static='-Bstatic'
9009 fi
9010 ;;
d7040cdb 9011
ce2cded5
L
9012 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9013 lt_prog_compiler_wl='-Wl,'
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 ;;
d7040cdb 9017
ce2cded5
L
9018 unicos*)
9019 lt_prog_compiler_wl='-Wl,'
9020 lt_prog_compiler_can_build_shared=no
9021 ;;
d7040cdb 9022
ce2cded5
L
9023 uts4*)
9024 lt_prog_compiler_pic='-pic'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
d7040cdb 9027
ce2cded5
L
9028 *)
9029 lt_prog_compiler_can_build_shared=no
9030 ;;
9031 esac
9032 fi
d7040cdb 9033
ce2cded5
L
9034case $host_os in
9035 # For platforms which do not support PIC, -DPIC is meaningless:
9036 *djgpp*)
9037 lt_prog_compiler_pic=
9038 ;;
9039 *)
9040 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9041 ;;
9042esac
81ecdfbb
RW
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9044$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9045
9046
9047
9048
9049
9050
ce2cded5
L
9051#
9052# Check to make sure the PIC flag actually works.
9053#
9054if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9056$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9057if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
ce2cded5 9059else
b214d478 9060 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9061 ac_outfile=conftest.$ac_objext
9062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9064 # Insert the option either (1) after the last *FLAGS variable, or
9065 # (2) before a word containing "conftest.", or (3) at the end.
9066 # Note that $ac_compile itself does not contain backslashes and begins
9067 # with a dollar sign (not a hyphen), so the echo should work correctly.
9068 # The option is referenced via a variable to avoid confusing sed.
9069 lt_compile=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
3725885a 9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9074 (eval "$lt_compile" 2>conftest.err)
9075 ac_status=$?
9076 cat conftest.err >&5
3725885a 9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9078 if (exit $ac_status) && test -s "$ac_outfile"; then
9079 # The compiler can only warn and ignore the option if not recognized
9080 # So say no if there are warnings other than the usual output.
3725885a 9081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9084 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9085 fi
9086 fi
9087 $RM conftest*
d7040cdb 9088
ce2cded5 9089fi
81ecdfbb
RW
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9091$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9092
b214d478 9093if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9094 case $lt_prog_compiler_pic in
9095 "" | " "*) ;;
9096 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9097 esac
9098else
9099 lt_prog_compiler_pic=
9100 lt_prog_compiler_can_build_shared=no
9101fi
9102
9103fi
d7040cdb
SE
9104
9105
9106
9107
9108
9109
ce2cded5
L
9110#
9111# Check to make sure the static flag actually works.
9112#
9113wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9115$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9116if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
ce2cded5 9118else
b214d478 9119 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9120 save_LDFLAGS="$LDFLAGS"
9121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9122 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124 # The linker can only warn and ignore the option if not recognized
9125 # So say no if there are warnings
9126 if test -s conftest.err; then
9127 # Append any errors to the config.log.
9128 cat conftest.err 1>&5
3725885a 9129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9132 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9133 fi
9134 else
b214d478 9135 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9136 fi
9137 fi
b214d478 9138 $RM -r conftest*
ce2cded5 9139 LDFLAGS="$save_LDFLAGS"
d7040cdb 9140
ce2cded5 9141fi
81ecdfbb
RW
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9143$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9144
b214d478 9145if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9146 :
9147else
9148 lt_prog_compiler_static=
9149fi
d7040cdb
SE
9150
9151
9152
9153
9154
9155
9156
81ecdfbb
RW
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9159if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
ce2cded5
L
9161else
9162 lt_cv_prog_compiler_c_o=no
9163 $RM -r conftest 2>/dev/null
9164 mkdir conftest
9165 cd conftest
9166 mkdir out
9167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9168
ce2cded5
L
9169 lt_compiler_flag="-o out/conftest2.$ac_objext"
9170 # Insert the option either (1) after the last *FLAGS variable, or
9171 # (2) before a word containing "conftest.", or (3) at the end.
9172 # Note that $ac_compile itself does not contain backslashes and begins
9173 # with a dollar sign (not a hyphen), so the echo should work correctly.
9174 lt_compile=`echo "$ac_compile" | $SED \
9175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9177 -e 's:$: $lt_compiler_flag:'`
3725885a 9178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9179 (eval "$lt_compile" 2>out/conftest.err)
9180 ac_status=$?
9181 cat out/conftest.err >&5
3725885a 9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9184 then
9185 # The compiler can only warn and ignore the option if not recognized
9186 # So say no if there are warnings
3725885a 9187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9190 lt_cv_prog_compiler_c_o=yes
9191 fi
9192 fi
9193 chmod u+w . 2>&5
9194 $RM conftest*
9195 # SGI C++ compiler will create directory out/ii_files/ for
9196 # template instantiation
9197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9198 $RM out/* && rmdir out
9199 cd ..
9200 $RM -r conftest
9201 $RM conftest*
d7040cdb 9202
ce2cded5 9203fi
81ecdfbb
RW
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9205$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9206
9207
9208
9209
9210
9211
81ecdfbb
RW
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9213$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9214if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
ce2cded5
L
9216else
9217 lt_cv_prog_compiler_c_o=no
9218 $RM -r conftest 2>/dev/null
9219 mkdir conftest
9220 cd conftest
9221 mkdir out
9222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9223
ce2cded5
L
9224 lt_compiler_flag="-o out/conftest2.$ac_objext"
9225 # Insert the option either (1) after the last *FLAGS variable, or
9226 # (2) before a word containing "conftest.", or (3) at the end.
9227 # Note that $ac_compile itself does not contain backslashes and begins
9228 # with a dollar sign (not a hyphen), so the echo should work correctly.
9229 lt_compile=`echo "$ac_compile" | $SED \
9230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232 -e 's:$: $lt_compiler_flag:'`
3725885a 9233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9234 (eval "$lt_compile" 2>out/conftest.err)
9235 ac_status=$?
9236 cat out/conftest.err >&5
3725885a 9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9239 then
9240 # The compiler can only warn and ignore the option if not recognized
9241 # So say no if there are warnings
3725885a 9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9245 lt_cv_prog_compiler_c_o=yes
9246 fi
9247 fi
9248 chmod u+w . 2>&5
9249 $RM conftest*
9250 # SGI C++ compiler will create directory out/ii_files/ for
9251 # template instantiation
9252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9253 $RM out/* && rmdir out
9254 cd ..
9255 $RM -r conftest
9256 $RM conftest*
9257
9258fi
81ecdfbb
RW
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9260$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9261
9262
9263
9264
9265hard_links="nottested"
9266if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9267 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9269$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9270 hard_links=yes
9271 $RM conftest*
9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273 touch conftest.a
9274 ln conftest.a conftest.b 2>&5 || hard_links=no
9275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9277$as_echo "$hard_links" >&6; }
ce2cded5 9278 if test "$hard_links" = no; then
81ecdfbb
RW
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9280$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9281 need_locks=warn
d7040cdb 9282 fi
d7040cdb 9283else
ce2cded5 9284 need_locks=no
d7040cdb 9285fi
d7040cdb 9286
d7040cdb 9287
d7040cdb 9288
d7040cdb 9289
d7040cdb 9290
d7040cdb 9291
81ecdfbb
RW
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9293$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9294
ce2cded5
L
9295 runpath_var=
9296 allow_undefined_flag=
9297 always_export_symbols=no
9298 archive_cmds=
9299 archive_expsym_cmds=
9300 compiler_needs_object=no
9301 enable_shared_with_static_runtimes=no
9302 export_dynamic_flag_spec=
9303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9304 hardcode_automatic=no
9305 hardcode_direct=no
9306 hardcode_direct_absolute=no
9307 hardcode_libdir_flag_spec=
9308 hardcode_libdir_flag_spec_ld=
9309 hardcode_libdir_separator=
9310 hardcode_minus_L=no
9311 hardcode_shlibpath_var=unsupported
9312 inherit_rpath=no
9313 link_all_deplibs=unknown
9314 module_cmds=
9315 module_expsym_cmds=
9316 old_archive_from_new_cmds=
9317 old_archive_from_expsyms_cmds=
9318 thread_safe_flag_spec=
9319 whole_archive_flag_spec=
9320 # include_expsyms should be a list of space-separated symbols to be *always*
9321 # included in the symbol list
9322 include_expsyms=
9323 # exclude_expsyms can be an extended regexp of symbols to exclude
9324 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9326 # as well as any symbol that contains `d'.
b214d478 9327 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9329 # platforms (ab)use it in PIC code, but their linkers get confused if
9330 # the symbol is explicitly referenced. Since portable code cannot
9331 # rely on this symbol name, it's probably fine to never include it in
9332 # preloaded symbol tables.
b214d478 9333 # Exclude shared library initialization/finalization symbols.
ce2cded5 9334 extract_expsyms_cmds=
d7040cdb 9335
ce2cded5 9336 case $host_os in
b214d478 9337 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9339 # When not using gcc, we currently assume that we are using
9340 # Microsoft Visual C++.
9341 if test "$GCC" != yes; then
9342 with_gnu_ld=no
9343 fi
d7040cdb 9344 ;;
ce2cded5
L
9345 interix*)
9346 # we just hope/assume this is gcc and not c89 (= MSVC++)
9347 with_gnu_ld=yes
9348 ;;
9349 openbsd*)
9350 with_gnu_ld=no
d7040cdb
SE
9351 ;;
9352 esac
d7040cdb 9353
ce2cded5 9354 ld_shlibs=yes
3725885a
RW
9355
9356 # On some targets, GNU ld is compatible enough with the native linker
9357 # that we're better off using the native interface for both.
9358 lt_use_gnu_ld_interface=no
ce2cded5 9359 if test "$with_gnu_ld" = yes; then
3725885a
RW
9360 case $host_os in
9361 aix*)
9362 # The AIX port of GNU ld has always aspired to compatibility
9363 # with the native linker. However, as the warning in the GNU ld
9364 # block says, versions before 2.19.5* couldn't really create working
9365 # shared libraries, regardless of the interface used.
9366 case `$LD -v 2>&1` in
9367 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9368 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9369 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9370 *)
9371 lt_use_gnu_ld_interface=yes
9372 ;;
9373 esac
9374 ;;
9375 *)
9376 lt_use_gnu_ld_interface=yes
9377 ;;
9378 esac
9379 fi
9380
9381 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9382 # If archive_cmds runs LD, not CC, wlarc should be empty
9383 wlarc='${wl}'
d7040cdb 9384
ce2cded5
L
9385 # Set some defaults for GNU ld with shared library support. These
9386 # are reset later if shared libraries are not supported. Putting them
9387 # here allows them to be overridden if necessary.
9388 runpath_var=LD_RUN_PATH
9389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390 export_dynamic_flag_spec='${wl}--export-dynamic'
9391 # ancient GNU ld didn't support --whole-archive et. al.
9392 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9393 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394 else
9395 whole_archive_flag_spec=
9396 fi
9397 supports_anon_versioning=no
9398 case `$LD -v 2>&1` in
3725885a 9399 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9403 *\ 2.11.*) ;; # other 2.11 versions
9404 *) supports_anon_versioning=yes ;;
9405 esac
d7040cdb 9406
ce2cded5
L
9407 # See if GNU ld supports shared libraries.
9408 case $host_os in
50e7d84b 9409 aix[3-9]*)
ce2cded5
L
9410 # On AIX/PPC, the GNU linker is very broken
9411 if test "$host_cpu" != ia64; then
9412 ld_shlibs=no
9413 cat <<_LT_EOF 1>&2
d7040cdb 9414
3725885a 9415*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9416*** to be unable to reliably create shared libraries on AIX.
9417*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9418*** really care for shared libraries, you may want to install binutils
9419*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9420*** You will then need to restart the configuration process.
d7040cdb 9421
ce2cded5
L
9422_LT_EOF
9423 fi
d7040cdb 9424 ;;
d7040cdb 9425
ce2cded5 9426 amigaos*)
b214d478
SE
9427 case $host_cpu in
9428 powerpc)
9429 # see comment about AmigaOS4 .so support
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds=''
9432 ;;
9433 m68k)
9434 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)'
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_minus_L=yes
9437 ;;
9438 esac
ce2cded5 9439 ;;
d7040cdb 9440
ce2cded5
L
9441 beos*)
9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 allow_undefined_flag=unsupported
9444 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9445 # support --undefined. This deserves some investigation. FIXME
9446 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
d7040cdb 9451
b214d478 9452 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9453 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9454 # as there is no search path for DLLs.
9455 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9456 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9457 allow_undefined_flag=unsupported
9458 always_export_symbols=no
9459 enable_shared_with_static_runtimes=yes
9460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9461
9462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464 # If the export-symbols file already is a .def file (1st line
9465 # is EXPORTS), use it as is; otherwise, prepend...
9466 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9468 else
ce2cded5
L
9469 echo EXPORTS > $output_objdir/$soname.def;
9470 cat $export_symbols >> $output_objdir/$soname.def;
9471 fi~
9472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473 else
9474 ld_shlibs=no
9475 fi
9476 ;;
d7040cdb 9477
3725885a
RW
9478 haiku*)
9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 link_all_deplibs=yes
9481 ;;
9482
ce2cded5
L
9483 interix[3-9]*)
9484 hardcode_direct=no
9485 hardcode_shlibpath_var=no
9486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487 export_dynamic_flag_spec='${wl}-E'
9488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489 # Instead, shared libraries are loaded at an image base (0x10000000 by
9490 # default) and relocated if they conflict, which is a slow very memory
9491 # consuming and fragmenting process. To avoid this, we pick a random,
9492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495 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'
9496 ;;
d7040cdb 9497
58e24671 9498 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9499 tmp_diet=no
9500 if test "$host_os" = linux-dietlibc; then
9501 case $cc_basename in
9502 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9503 esac
9504 fi
9505 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506 && test "$tmp_diet" = no
9507 then
6e733cce 9508 tmp_addflag=' $pic_flag'
b214d478 9509 tmp_sharedflag='-shared'
ce2cded5
L
9510 case $cc_basename,$host_cpu in
9511 pgcc*) # Portland Group C compiler
3725885a 9512 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
9513 tmp_addflag=' $pic_flag'
9514 ;;
3725885a
RW
9515 pgf77* | pgf90* | pgf95* | pgfortran*)
9516 # Portland Group f77 and f90 compilers
9517 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
9518 tmp_addflag=' $pic_flag -Mnomain' ;;
9519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9520 tmp_addflag=' -i_dynamic' ;;
9521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9522 tmp_addflag=' -i_dynamic -nofor_main' ;;
9523 ifc* | ifort*) # Intel Fortran compiler
9524 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9525 lf95*) # Lahey Fortran 8.1
9526 whole_archive_flag_spec=
9527 tmp_sharedflag='--shared' ;;
3725885a 9528 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9529 tmp_sharedflag='-qmkshrobj'
9530 tmp_addflag= ;;
3725885a
RW
9531 nvcc*) # Cuda Compiler Driver 2.2
9532 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'
9533 compiler_needs_object=yes
9534 ;;
ce2cded5
L
9535 esac
9536 case `$CC -V 2>&1 | sed 5q` in
9537 *Sun\ C*) # Sun C 5.9
3725885a 9538 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
9539 compiler_needs_object=yes
9540 tmp_sharedflag='-G' ;;
9541 *Sun\ F*) # Sun Fortran 8.3
9542 tmp_sharedflag='-G' ;;
ce2cded5
L
9543 esac
9544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9545
ce2cded5
L
9546 if test "x$supports_anon_versioning" = xyes; then
9547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549 echo "local: *; };" >> $output_objdir/$libname.ver~
9550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551 fi
b214d478
SE
9552
9553 case $cc_basename in
3725885a 9554 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557 hardcode_libdir_flag_spec=
9558 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9559 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9560 if test "x$supports_anon_versioning" = xyes; then
9561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9563 echo "local: *; };" >> $output_objdir/$libname.ver~
9564 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9565 fi
9566 ;;
9567 esac
ce2cded5
L
9568 else
9569 ld_shlibs=no
9570 fi
9571 ;;
d7040cdb 9572
ce2cded5
L
9573 netbsd*)
9574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9575 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9576 wlarc=
9577 else
9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580 fi
9581 ;;
9582
9583 solaris*)
9584 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9585 ld_shlibs=no
9586 cat <<_LT_EOF 1>&2
9587
9588*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9589*** create shared libraries on Solaris systems. Therefore, libtool
9590*** is disabling shared libraries support. We urge you to upgrade GNU
9591*** binutils to release 2.9.1 or newer. Another option is to modify
9592*** your PATH or compiler configuration so that the native linker is
9593*** used, and then restart.
9594
9595_LT_EOF
9596 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9599 else
9600 ld_shlibs=no
9601 fi
9602 ;;
9603
9604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9605 case `$LD -v 2>&1` in
9606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9607 ld_shlibs=no
9608 cat <<_LT_EOF 1>&2
9609
9610*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9611*** reliably create shared libraries on SCO systems. Therefore, libtool
9612*** is disabling shared libraries support. We urge you to upgrade GNU
9613*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9614*** your PATH or compiler configuration so that the native linker is
9615*** used, and then restart.
9616
9617_LT_EOF
9618 ;;
9619 *)
9620 # For security reasons, it is highly recommended that you always
9621 # use absolute paths for naming shared libraries, and exclude the
9622 # DT_RUNPATH tag from executables and libraries. But doing so
9623 # requires that you compile everything twice, which is a pain.
9624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9628 else
9629 ld_shlibs=no
9630 fi
9631 ;;
9632 esac
9633 ;;
9634
9635 sunos4*)
9636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 wlarc=
9638 hardcode_direct=yes
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 *)
9643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650 esac
9651
9652 if test "$ld_shlibs" = no; then
9653 runpath_var=
9654 hardcode_libdir_flag_spec=
9655 export_dynamic_flag_spec=
9656 whole_archive_flag_spec=
9657 fi
9658 else
9659 # PORTME fill in a description of your system's linker (not GNU ld)
9660 case $host_os in
9661 aix3*)
9662 allow_undefined_flag=unsupported
9663 always_export_symbols=yes
9664 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'
9665 # Note: this linker hardcodes the directories in LIBPATH if there
9666 # are no directories specified by -L.
9667 hardcode_minus_L=yes
9668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9669 # Neither direct hardcoding nor static linking is supported with a
9670 # broken collect2.
9671 hardcode_direct=unsupported
9672 fi
9673 ;;
9674
50e7d84b 9675 aix[4-9]*)
ce2cded5
L
9676 if test "$host_cpu" = ia64; then
9677 # On IA64, the linker does run time linking by default, so we don't
9678 # have to do anything special.
9679 aix_use_runtimelinking=no
9680 exp_sym_flag='-Bexport'
9681 no_entry_flag=""
9682 else
9683 # If we're using GNU nm, then we don't want the "-C" option.
9684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9685 # Also, AIX nm treats weak defined symbols like other global
9686 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9687 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9688 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
9689 else
9690 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'
9691 fi
9692 aix_use_runtimelinking=no
9693
9694 # Test if we are trying to use run time linking or normal
9695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9696 # need to do runtime linking.
50e7d84b 9697 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9698 for ld_flag in $LDFLAGS; do
9699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9700 aix_use_runtimelinking=yes
9701 break
9702 fi
9703 done
9704 ;;
9705 esac
9706
9707 exp_sym_flag='-bexport'
9708 no_entry_flag='-bnoentry'
9709 fi
9710
9711 # When large executables or shared objects are built, AIX ld can
9712 # have problems creating the table of contents. If linking a library
9713 # or program results in "error TOC overflow" add -mminimal-toc to
9714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716
9717 archive_cmds=''
9718 hardcode_direct=yes
9719 hardcode_direct_absolute=yes
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 file_list_spec='${wl}-f,'
9723
9724 if test "$GCC" = yes; then
9725 case $host_os in aix4.[012]|aix4.[012].*)
9726 # We only want to do this on AIX 4.2 and lower, the check
9727 # below for broken collect2 doesn't work under 4.3+
9728 collect2name=`${CC} -print-prog-name=collect2`
9729 if test -f "$collect2name" &&
9730 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9731 then
9732 # We have reworked collect2
9733 :
9734 else
9735 # We have old collect2
9736 hardcode_direct=unsupported
9737 # It fails to find uninstalled libraries when the uninstalled
9738 # path is not listed in the libpath. Setting hardcode_minus_L
9739 # to unsupported forces relinking
9740 hardcode_minus_L=yes
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_libdir_separator=
9743 fi
9744 ;;
9745 esac
9746 shared_flag='-shared'
9747 if test "$aix_use_runtimelinking" = yes; then
9748 shared_flag="$shared_flag "'${wl}-G'
9749 fi
9750 else
9751 # not using gcc
9752 if test "$host_cpu" = ia64; then
9753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754 # chokes on -Wl,-G. The following line is correct:
9755 shared_flag='-G'
9756 else
9757 if test "$aix_use_runtimelinking" = yes; then
9758 shared_flag='${wl}-G'
9759 else
9760 shared_flag='${wl}-bM:SRE'
9761 fi
9762 fi
9763 fi
9764
b214d478 9765 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9766 # It seems that -bexpall does not export symbols beginning with
9767 # underscore (_), so it is better to generate a list of symbols to export.
9768 always_export_symbols=yes
9769 if test "$aix_use_runtimelinking" = yes; then
9770 # Warning - without using the other runtime loading flags (-brtl),
9771 # -berok will link without error, but may produce a broken library.
9772 allow_undefined_flag='-berok'
9773 # Determine the default libpath from the value encoded in an
9774 # empty executable.
81ecdfbb 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9776/* end confdefs.h. */
9777
9778int
9779main ()
9780{
9781
9782 ;
9783 return 0;
9784}
9785_ACEOF
81ecdfbb 9786if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9787
ce2cded5
L
9788lt_aix_libpath_sed='
9789 /Import File Strings/,/^$/ {
9790 /^0/ {
9791 s/^0 *\(.*\)$/\1/
9792 p
9793 }
9794 }'
9795aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796# Check for a 64-bit object if we didn't find anything.
9797if test -z "$aix_libpath"; then
9798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799fi
d7040cdb 9800fi
81ecdfbb
RW
9801rm -f core conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9804
ce2cded5 9805 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9806 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
9807 else
9808 if test "$host_cpu" = ia64; then
9809 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9810 allow_undefined_flag="-z nodefs"
9811 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"
9812 else
9813 # Determine the default libpath from the value encoded in an
9814 # empty executable.
81ecdfbb 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9816/* end confdefs.h. */
d7040cdb 9817
ce2cded5
L
9818int
9819main ()
9820{
d7040cdb 9821
ce2cded5
L
9822 ;
9823 return 0;
9824}
9825_ACEOF
81ecdfbb 9826if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9827
ce2cded5
L
9828lt_aix_libpath_sed='
9829 /Import File Strings/,/^$/ {
9830 /^0/ {
9831 s/^0 *\(.*\)$/\1/
9832 p
9833 }
9834 }'
9835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836# Check for a 64-bit object if we didn't find anything.
9837if test -z "$aix_libpath"; then
9838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9839fi
ce2cded5 9840fi
81ecdfbb
RW
9841rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9844
ce2cded5
L
9845 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9846 # Warning - without using the other run time loading flags,
9847 # -berok will link without error, but may produce a broken library.
9848 no_undefined_flag=' ${wl}-bernotok'
9849 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9850 if test "$with_gnu_ld" = yes; then
9851 # We only use this code for GNU lds that support --whole-archive.
9852 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9853 else
9854 # Exported symbols can be pulled into shared objects from archives
9855 whole_archive_flag_spec='$convenience'
9856 fi
ce2cded5
L
9857 archive_cmds_need_lc=yes
9858 # This is similar to how AIX traditionally builds its shared libraries.
9859 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'
9860 fi
9861 fi
9862 ;;
d7040cdb 9863
ce2cded5 9864 amigaos*)
b214d478
SE
9865 case $host_cpu in
9866 powerpc)
9867 # see comment about AmigaOS4 .so support
9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869 archive_expsym_cmds=''
9870 ;;
9871 m68k)
9872 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)'
9873 hardcode_libdir_flag_spec='-L$libdir'
9874 hardcode_minus_L=yes
9875 ;;
9876 esac
ce2cded5
L
9877 ;;
9878
9879 bsdi[45]*)
9880 export_dynamic_flag_spec=-rdynamic
9881 ;;
9882
b214d478 9883 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9884 # When not using gcc, we currently assume that we are using
9885 # Microsoft Visual C++.
9886 # hardcode_libdir_flag_spec is actually meaningless, as there is
9887 # no search path for DLLs.
9888 hardcode_libdir_flag_spec=' '
9889 allow_undefined_flag=unsupported
9890 # Tell ltmain to make .lib files, not .a files.
9891 libext=lib
9892 # Tell ltmain to make .dll files, not .so files.
9893 shrext_cmds=".dll"
9894 # FIXME: Setting linknames here is a bad hack.
3725885a 9895 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9896 # The linker will automatically build a .lib file if we build a DLL.
9897 old_archive_from_new_cmds='true'
9898 # FIXME: Should let the user specify the lib program.
9899 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9900 fix_srcfile_path='`cygpath -w "$srcfile"`'
9901 enable_shared_with_static_runtimes=yes
9902 ;;
9903
9904 darwin* | rhapsody*)
d7040cdb 9905
b214d478
SE
9906
9907 archive_cmds_need_lc=no
9908 hardcode_direct=no
9909 hardcode_automatic=yes
9910 hardcode_shlibpath_var=unsupported
3725885a
RW
9911 if test "$lt_cv_ld_force_load" = "yes"; then
9912 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\"`'
9913 else
9914 whole_archive_flag_spec=''
9915 fi
b214d478
SE
9916 link_all_deplibs=yes
9917 allow_undefined_flag="$_lt_dar_allow_undefined"
9918 case $cc_basename in
9919 ifort*) _lt_dar_can_shared=yes ;;
9920 *) _lt_dar_can_shared=$GCC ;;
9921 esac
9922 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9923 output_verbose_link_cmd=func_echo_all
b214d478
SE
9924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9926 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}"
9927 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}"
9928
9929 else
9930 ld_shlibs=no
9931 fi
9932
ce2cded5 9933 ;;
d7040cdb 9934
ce2cded5
L
9935 dgux*)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_shlibpath_var=no
9939 ;;
d7040cdb 9940
ce2cded5
L
9941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9942 # support. Future versions do this automatically, but an explicit c++rt0.o
9943 # does not break anything, and helps significantly (at the cost of a little
9944 # extra space).
9945 freebsd2.2*)
9946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9947 hardcode_libdir_flag_spec='-R$libdir'
9948 hardcode_direct=yes
9949 hardcode_shlibpath_var=no
d7040cdb 9950 ;;
d7040cdb 9951
ce2cded5 9952 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9953 freebsd2.*)
ce2cded5
L
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_direct=yes
9956 hardcode_minus_L=yes
9957 hardcode_shlibpath_var=no
9958 ;;
d7040cdb 9959
ce2cded5
L
9960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9961 freebsd* | dragonfly*)
9962 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 ;;
d7040cdb 9967
ce2cded5
L
9968 hpux9*)
9969 if test "$GCC" = yes; then
9970 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'
9971 else
9972 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'
9973 fi
9974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9975 hardcode_libdir_separator=:
9976 hardcode_direct=yes
d7040cdb 9977
ce2cded5
L
9978 # hardcode_minus_L: Not really in the search PATH,
9979 # but as the default location of the library.
9980 hardcode_minus_L=yes
9981 export_dynamic_flag_spec='${wl}-E'
9982 ;;
d7040cdb 9983
ce2cded5 9984 hpux10*)
3725885a 9985 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9986 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987 else
9988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9989 fi
9990 if test "$with_gnu_ld" = no; then
9991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992 hardcode_libdir_flag_spec_ld='+b $libdir'
9993 hardcode_libdir_separator=:
9994 hardcode_direct=yes
9995 hardcode_direct_absolute=yes
9996 export_dynamic_flag_spec='${wl}-E'
9997 # hardcode_minus_L: Not really in the search PATH,
9998 # but as the default location of the library.
9999 hardcode_minus_L=yes
10000 fi
10001 ;;
d7040cdb 10002
ce2cded5 10003 hpux11*)
3725885a 10004 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10005 case $host_cpu in
10006 hppa*64*)
10007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10008 ;;
10009 ia64*)
b214d478 10010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10011 ;;
10012 *)
10013 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014 ;;
10015 esac
10016 else
10017 case $host_cpu in
10018 hppa*64*)
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 ;;
10021 ia64*)
10022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023 ;;
10024 *)
3725885a
RW
10025
10026 # Older versions of the 11.00 compiler do not understand -b yet
10027 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10029$as_echo_n "checking if $CC understands -b... " >&6; }
10030if test "${lt_cv_prog_compiler__b+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10032else
10033 lt_cv_prog_compiler__b=no
10034 save_LDFLAGS="$LDFLAGS"
10035 LDFLAGS="$LDFLAGS -b"
10036 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10038 # The linker can only warn and ignore the option if not recognized
10039 # So say no if there are warnings
10040 if test -s conftest.err; then
10041 # Append any errors to the config.log.
10042 cat conftest.err 1>&5
10043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10045 if diff conftest.exp conftest.er2 >/dev/null; then
10046 lt_cv_prog_compiler__b=yes
10047 fi
10048 else
10049 lt_cv_prog_compiler__b=yes
10050 fi
10051 fi
10052 $RM -r conftest*
10053 LDFLAGS="$save_LDFLAGS"
10054
10055fi
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10057$as_echo "$lt_cv_prog_compiler__b" >&6; }
10058
10059if test x"$lt_cv_prog_compiler__b" = xyes; then
10060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061else
10062 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10063fi
10064
ce2cded5
L
10065 ;;
10066 esac
10067 fi
10068 if test "$with_gnu_ld" = no; then
10069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070 hardcode_libdir_separator=:
d7040cdb 10071
ce2cded5
L
10072 case $host_cpu in
10073 hppa*64*|ia64*)
10074 hardcode_direct=no
10075 hardcode_shlibpath_var=no
10076 ;;
10077 *)
10078 hardcode_direct=yes
10079 hardcode_direct_absolute=yes
10080 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10081
ce2cded5
L
10082 # hardcode_minus_L: Not really in the search PATH,
10083 # but as the default location of the library.
10084 hardcode_minus_L=yes
10085 ;;
10086 esac
10087 fi
10088 ;;
d7040cdb 10089
ce2cded5
L
10090 irix5* | irix6* | nonstopux*)
10091 if test "$GCC" = yes; then
3725885a 10092 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
10093 # Try to use the -exported_symbol ld option, if it does not
10094 # work, assume that -exports_file does not work either and
10095 # implicitly export all symbols.
10096 save_LDFLAGS="$LDFLAGS"
10097 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h. */
ce2cded5
L
10100int foo(void) {}
10101_ACEOF
81ecdfbb 10102if ac_fn_c_try_link "$LINENO"; then :
3725885a 10103 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 10104
ce2cded5 10105fi
81ecdfbb
RW
10106rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10108 LDFLAGS="$save_LDFLAGS"
10109 else
3725885a
RW
10110 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'
10111 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
10112 fi
10113 archive_cmds_need_lc='no'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 hardcode_libdir_separator=:
10116 inherit_rpath=yes
10117 link_all_deplibs=yes
10118 ;;
d7040cdb 10119
ce2cded5
L
10120 netbsd*)
10121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10123 else
10124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10125 fi
10126 hardcode_libdir_flag_spec='-R$libdir'
10127 hardcode_direct=yes
10128 hardcode_shlibpath_var=no
10129 ;;
d7040cdb 10130
ce2cded5
L
10131 newsos6)
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=yes
10134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135 hardcode_libdir_separator=:
10136 hardcode_shlibpath_var=no
10137 ;;
d7040cdb 10138
ce2cded5
L
10139 *nto* | *qnx*)
10140 ;;
d7040cdb 10141
ce2cded5 10142 openbsd*)
b214d478
SE
10143 if test -f /usr/libexec/ld.so; then
10144 hardcode_direct=yes
10145 hardcode_shlibpath_var=no
10146 hardcode_direct_absolute=yes
10147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10151 export_dynamic_flag_spec='${wl}-E'
10152 else
10153 case $host_os in
10154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_libdir_flag_spec='-R$libdir'
10157 ;;
10158 *)
10159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10161 ;;
10162 esac
10163 fi
10164 else
10165 ld_shlibs=no
ce2cded5
L
10166 fi
10167 ;;
d7040cdb 10168
ce2cded5
L
10169 os2*)
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_minus_L=yes
10172 allow_undefined_flag=unsupported
3725885a 10173 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
10174 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10175 ;;
d7040cdb 10176
ce2cded5
L
10177 osf3*)
10178 if test "$GCC" = yes; then
10179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10180 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
10181 else
10182 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10183 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
10184 fi
10185 archive_cmds_need_lc='no'
10186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187 hardcode_libdir_separator=:
10188 ;;
d7040cdb 10189
ce2cded5
L
10190 osf4* | osf5*) # as osf3* with the addition of -msym flag
10191 if test "$GCC" = yes; then
10192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10193 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
10194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195 else
10196 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10197 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 10198 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 10199 $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 10200
ce2cded5
L
10201 # Both c and cxx compiler support -rpath directly
10202 hardcode_libdir_flag_spec='-rpath $libdir'
10203 fi
10204 archive_cmds_need_lc='no'
10205 hardcode_libdir_separator=:
10206 ;;
d7040cdb 10207
ce2cded5
L
10208 solaris*)
10209 no_undefined_flag=' -z defs'
10210 if test "$GCC" = yes; then
10211 wlarc='${wl}'
10212 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10214 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10215 else
10216 case `$CC -V 2>&1` in
10217 *"Compilers 5.0"*)
10218 wlarc=''
10219 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10222 ;;
10223 *)
10224 wlarc='${wl}'
10225 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10228 ;;
10229 esac
10230 fi
10231 hardcode_libdir_flag_spec='-R$libdir'
10232 hardcode_shlibpath_var=no
10233 case $host_os in
10234 solaris2.[0-5] | solaris2.[0-5].*) ;;
10235 *)
10236 # The compiler driver will combine and reorder linker options,
10237 # but understands `-z linker_flag'. GCC discards it without `$wl',
10238 # but is careful enough not to reorder.
10239 # Supported since Solaris 2.6 (maybe 2.5.1?)
10240 if test "$GCC" = yes; then
10241 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10242 else
10243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10244 fi
10245 ;;
10246 esac
10247 link_all_deplibs=yes
10248 ;;
d7040cdb 10249
ce2cded5
L
10250 sunos4*)
10251 if test "x$host_vendor" = xsequent; then
10252 # Use $CC to link under sequent, because it throws in some extra .o
10253 # files that make .init and .fini sections work.
10254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10255 else
10256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10257 fi
10258 hardcode_libdir_flag_spec='-L$libdir'
10259 hardcode_direct=yes
10260 hardcode_minus_L=yes
10261 hardcode_shlibpath_var=no
10262 ;;
d7040cdb 10263
ce2cded5
L
10264 sysv4)
10265 case $host_vendor in
10266 sni)
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_direct=yes # is this really true???
10269 ;;
10270 siemens)
10271 ## LD is ld it makes a PLAMLIB
10272 ## CC just makes a GrossModule.
10273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10274 reload_cmds='$CC -r -o $output$reload_objs'
10275 hardcode_direct=no
10276 ;;
10277 motorola)
10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10280 ;;
10281 esac
10282 runpath_var='LD_RUN_PATH'
10283 hardcode_shlibpath_var=no
10284 ;;
d7040cdb 10285
ce2cded5
L
10286 sysv4.3*)
10287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288 hardcode_shlibpath_var=no
10289 export_dynamic_flag_spec='-Bexport'
10290 ;;
d7040cdb 10291
ce2cded5
L
10292 sysv4*MP*)
10293 if test -d /usr/nec; then
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_shlibpath_var=no
10296 runpath_var=LD_RUN_PATH
10297 hardcode_runpath_var=yes
10298 ld_shlibs=yes
10299 fi
10300 ;;
d7040cdb 10301
ce2cded5
L
10302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10303 no_undefined_flag='${wl}-z,text'
10304 archive_cmds_need_lc=no
10305 hardcode_shlibpath_var=no
10306 runpath_var='LD_RUN_PATH'
d7040cdb 10307
ce2cded5
L
10308 if test "$GCC" = yes; then
10309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 else
10312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 fi
10315 ;;
d7040cdb 10316
ce2cded5
L
10317 sysv5* | sco3.2v5* | sco5v6*)
10318 # Note: We can NOT use -z defs as we might desire, because we do not
10319 # link with -lc, and that would cause any symbols used from libc to
10320 # always be unresolved, which means just about no library would
10321 # ever link correctly. If we're not using GNU ld we use -z text
10322 # though, which does catch some bad symbols but isn't as heavy-handed
10323 # as -z defs.
10324 no_undefined_flag='${wl}-z,text'
10325 allow_undefined_flag='${wl}-z,nodefs'
10326 archive_cmds_need_lc=no
10327 hardcode_shlibpath_var=no
10328 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10329 hardcode_libdir_separator=':'
10330 link_all_deplibs=yes
10331 export_dynamic_flag_spec='${wl}-Bexport'
10332 runpath_var='LD_RUN_PATH'
d7040cdb 10333
ce2cded5
L
10334 if test "$GCC" = yes; then
10335 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 else
10338 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 fi
10341 ;;
d7040cdb 10342
ce2cded5
L
10343 uts4*)
10344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345 hardcode_libdir_flag_spec='-L$libdir'
10346 hardcode_shlibpath_var=no
10347 ;;
d7040cdb 10348
ce2cded5
L
10349 *)
10350 ld_shlibs=no
10351 ;;
10352 esac
d7040cdb 10353
ce2cded5
L
10354 if test x$host_vendor = xsni; then
10355 case $host in
10356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10357 export_dynamic_flag_spec='${wl}-Blargedynsym'
10358 ;;
10359 esac
10360 fi
10361 fi
d7040cdb 10362
81ecdfbb
RW
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10364$as_echo "$ld_shlibs" >&6; }
ce2cded5 10365test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10366
ce2cded5 10367with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
ce2cded5
L
10383#
10384# Do we need to explicitly link libc?
10385#
10386case "x$archive_cmds_need_lc" in
10387x|xyes)
10388 # Assume -lc should be added
10389 archive_cmds_need_lc=yes
d7040cdb 10390
ce2cded5
L
10391 if test "$enable_shared" = yes && test "$GCC" = yes; then
10392 case $archive_cmds in
10393 *'~'*)
10394 # FIXME: we may have to deal with multi-command sequences.
10395 ;;
10396 '$CC '*)
10397 # Test whether the compiler implicitly links with -lc since on some
10398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10399 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10401$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10402if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
39144654
RW
10404else
10405 $RM conftest*
10406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10407
81ecdfbb 10408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10409 (eval $ac_compile) 2>&5
10410 ac_status=$?
81ecdfbb
RW
10411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10412 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10413 soname=conftest
10414 lib=conftest
10415 libobjs=conftest.$ac_objext
10416 deplibs=
10417 wl=$lt_prog_compiler_wl
10418 pic_flag=$lt_prog_compiler_pic
10419 compiler_flags=-v
10420 linker_flags=-v
10421 verstring=
10422 output_objdir=.
10423 libname=conftest
10424 lt_save_allow_undefined_flag=$allow_undefined_flag
10425 allow_undefined_flag=
81ecdfbb 10426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10427 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10428 ac_status=$?
81ecdfbb
RW
10429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10430 test $ac_status = 0; }
39144654
RW
10431 then
10432 lt_cv_archive_cmds_need_lc=no
10433 else
10434 lt_cv_archive_cmds_need_lc=yes
10435 fi
10436 allow_undefined_flag=$lt_save_allow_undefined_flag
10437 else
10438 cat conftest.err 1>&5
10439 fi
10440 $RM conftest*
10441
10442fi
81ecdfbb
RW
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10444$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10445 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10446 ;;
10447 esac
10448 fi
10449 ;;
10450esac
d7040cdb
SE
10451
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
d7040cdb 10478
d7040cdb 10479
d7040cdb
SE
10480
10481
10482
10483
10484
10485
d7040cdb 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
ce2cded5
L
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
81ecdfbb
RW
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10609$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10610
10611if test "$GCC" = yes; then
ce2cded5
L
10612 case $host_os in
10613 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10614 *) lt_awk_arg="/^libraries:/" ;;
10615 esac
3725885a
RW
10616 case $host_os in
10617 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10618 *) lt_sed_strip_eq="s,=/,/,g" ;;
10619 esac
10620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10621 case $lt_search_path_spec in
10622 *\;*)
ce2cded5
L
10623 # if the path contains ";" then we assume it to be the separator
10624 # otherwise default to the standard path separator (i.e. ":") - it is
10625 # assumed that no part of a normal pathname contains ";" but that should
10626 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10628 ;;
10629 *)
10630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10631 ;;
10632 esac
ce2cded5
L
10633 # Ok, now we have the path, separated by spaces, we can step through it
10634 # and add multilib dir if necessary.
10635 lt_tmp_lt_search_path_spec=
10636 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10637 for lt_sys_path in $lt_search_path_spec; do
10638 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10640 else
10641 test -d "$lt_sys_path" && \
10642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10643 fi
10644 done
3725885a 10645 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10646BEGIN {RS=" "; FS="/|\n";} {
10647 lt_foo="";
10648 lt_count=0;
10649 for (lt_i = NF; lt_i > 0; lt_i--) {
10650 if ($lt_i != "" && $lt_i != ".") {
10651 if ($lt_i == "..") {
10652 lt_count++;
10653 } else {
10654 if (lt_count == 0) {
10655 lt_foo="/" $lt_i lt_foo;
10656 } else {
10657 lt_count--;
10658 }
10659 }
10660 }
10661 }
10662 if (lt_foo != "") { lt_freq[lt_foo]++; }
10663 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10664}'`
3725885a
RW
10665 # AWK program above erroneously prepends '/' to C:/dos/paths
10666 # for these hosts.
10667 case $host_os in
10668 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10669 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10670 esac
10671 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10672else
ce2cded5
L
10673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10674fi
10675library_names_spec=
10676libname_spec='lib$name'
10677soname_spec=
10678shrext_cmds=".so"
10679postinstall_cmds=
10680postuninstall_cmds=
10681finish_cmds=
10682finish_eval=
10683shlibpath_var=
10684shlibpath_overrides_runpath=unknown
10685version_type=none
10686dynamic_linker="$host_os ld.so"
10687sys_lib_dlsearch_path_spec="/lib /usr/lib"
10688need_lib_prefix=unknown
10689hardcode_into_libs=no
10690
10691# when you set need_version to no, make sure it does not cause -set_version
10692# flags to be left without arguments
10693need_version=unknown
10694
10695case $host_os in
10696aix3*)
10697 version_type=linux
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10699 shlibpath_var=LIBPATH
10700
10701 # AIX 3 has no versioning support, so we append a major version to the name.
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 ;;
10704
50e7d84b 10705aix[4-9]*)
ce2cded5
L
10706 version_type=linux
10707 need_lib_prefix=no
10708 need_version=no
10709 hardcode_into_libs=yes
10710 if test "$host_cpu" = ia64; then
10711 # AIX 5 supports IA64
10712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 else
10715 # With GCC up to 2.95.x, collect2 would create an import file
10716 # for dependence libraries. The import file would start with
10717 # the line `#! .'. This would cause the generated library to
10718 # depend on `.', always an invalid library. This was fixed in
10719 # development snapshots of GCC prior to 3.0.
10720 case $host_os in
10721 aix4 | aix4.[01] | aix4.[01].*)
10722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10723 echo ' yes '
10724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10725 :
10726 else
10727 can_build_shared=no
10728 fi
10729 ;;
10730 esac
10731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10732 # soname into executable. Probably we can add versioning support to
10733 # collect2, so additional links can be useful in future.
10734 if test "$aix_use_runtimelinking" = yes; then
10735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10736 # instead of lib<name>.a to let people know that these are not
10737 # typical AIX shared libraries.
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 else
10740 # We preserve .a as extension for shared libraries through AIX4.2
10741 # and later when we are not doing run time linking.
10742 library_names_spec='${libname}${release}.a $libname.a'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 fi
10745 shlibpath_var=LIBPATH
10746 fi
10747 ;;
10748
10749amigaos*)
b214d478
SE
10750 case $host_cpu in
10751 powerpc)
10752 # Since July 2007 AmigaOS4 officially supports .so libraries.
10753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 ;;
10756 m68k)
ce2cded5
L
10757 library_names_spec='$libname.ixlibrary $libname.a'
10758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10759 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
10760 ;;
10761 esac
ce2cded5
L
10762 ;;
10763
10764beos*)
10765 library_names_spec='${libname}${shared_ext}'
10766 dynamic_linker="$host_os ld.so"
10767 shlibpath_var=LIBRARY_PATH
10768 ;;
10769
10770bsdi[45]*)
10771 version_type=linux
10772 need_version=no
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10779 # the default ld.so.conf also contains /usr/contrib/lib and
10780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10781 # libtool to hard-code these into programs
10782 ;;
10783
b214d478 10784cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10785 version_type=windows
10786 shrext_cmds=".dll"
10787 need_version=no
10788 need_lib_prefix=no
10789
b214d478
SE
10790 case $GCC,$host_os in
10791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10792 library_names_spec='$libname.dll.a'
10793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10794 postinstall_cmds='base_file=`basename \${file}`~
10795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10796 dldir=$destdir/`dirname \$dlpath`~
10797 test -d \$dldir || mkdir -p \$dldir~
10798 $install_prog $dir/$dlname \$dldir/$dlname~
10799 chmod a+x \$dldir/$dlname~
10800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10802 fi'
10803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10804 dlpath=$dir/\$dldll~
10805 $RM \$dlpath'
10806 shlibpath_overrides_runpath=yes
10807
10808 case $host_os in
10809 cygwin*)
10810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10812
10813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10814 ;;
b214d478 10815 mingw* | cegcc*)
ce2cded5
L
10816 # MinGW DLLs use traditional 'lib' prefix
10817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10818 ;;
10819 pw32*)
10820 # pw32 DLLs use 'pw' prefix rather than 'lib'
10821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10822 ;;
10823 esac
10824 ;;
10825
10826 *)
10827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10828 ;;
10829 esac
10830 dynamic_linker='Win32 ld.exe'
10831 # FIXME: first we should search . and the directory the executable is in
10832 shlibpath_var=PATH
10833 ;;
10834
10835darwin* | rhapsody*)
10836 dynamic_linker="$host_os dyld"
10837 version_type=darwin
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10841 soname_spec='${libname}${release}${major}$shared_ext'
10842 shlibpath_overrides_runpath=yes
10843 shlibpath_var=DYLD_LIBRARY_PATH
10844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10845
10846 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10848 ;;
10849
10850dgux*)
10851 version_type=linux
10852 need_lib_prefix=no
10853 need_version=no
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 ;;
10858
ce2cded5
L
10859freebsd* | dragonfly*)
10860 # DragonFly does not have aout. When/if they implement a new
10861 # versioning mechanism, adjust this.
10862 if test -x /usr/bin/objformat; then
10863 objformat=`/usr/bin/objformat`
10864 else
10865 case $host_os in
6d2920c8 10866 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10867 *) objformat=elf ;;
10868 esac
10869 fi
10870 version_type=freebsd-$objformat
10871 case $version_type in
10872 freebsd-elf*)
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10874 need_version=no
10875 need_lib_prefix=no
10876 ;;
10877 freebsd-*)
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10879 need_version=yes
10880 ;;
10881 esac
10882 shlibpath_var=LD_LIBRARY_PATH
10883 case $host_os in
6d2920c8 10884 freebsd2.*)
ce2cded5
L
10885 shlibpath_overrides_runpath=yes
10886 ;;
10887 freebsd3.[01]* | freebsdelf3.[01]*)
10888 shlibpath_overrides_runpath=yes
10889 hardcode_into_libs=yes
10890 ;;
10891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10895 ;;
10896 *) # from 4.6 on, and DragonFly
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 ;;
10900 esac
10901 ;;
10902
10903gnu*)
10904 version_type=linux
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 hardcode_into_libs=yes
10911 ;;
10912
3725885a
RW
10913haiku*)
10914 version_type=linux
10915 need_lib_prefix=no
10916 need_version=no
10917 dynamic_linker="$host_os runtime_loader"
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes
10922 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10923 hardcode_into_libs=yes
10924 ;;
10925
ce2cded5
L
10926hpux9* | hpux10* | hpux11*)
10927 # Give a soname corresponding to the major version so that dld.sl refuses to
10928 # link against other versions.
10929 version_type=sunos
10930 need_lib_prefix=no
10931 need_version=no
10932 case $host_cpu in
10933 ia64*)
10934 shrext_cmds='.so'
10935 hardcode_into_libs=yes
10936 dynamic_linker="$host_os dld.so"
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 if test "X$HPUX_IA64_MODE" = X32; then
10942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10943 else
10944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10945 fi
10946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10947 ;;
10948 hppa*64*)
10949 shrext_cmds='.sl'
10950 hardcode_into_libs=yes
10951 dynamic_linker="$host_os dld.sl"
10952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958 ;;
10959 *)
10960 shrext_cmds='.sl'
10961 dynamic_linker="$host_os dld.sl"
10962 shlibpath_var=SHLIB_PATH
10963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 ;;
10967 esac
3725885a 10968 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10969 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10970 # or fails outright, so override atomically:
10971 install_override_mode=555
ce2cded5
L
10972 ;;
10973
10974interix[3-9]*)
10975 version_type=linux
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10984 ;;
10985
10986irix5* | irix6* | nonstopux*)
10987 case $host_os in
10988 nonstopux*) version_type=nonstopux ;;
10989 *)
10990 if test "$lt_cv_prog_gnu_ld" = yes; then
10991 version_type=linux
10992 else
10993 version_type=irix
10994 fi ;;
10995 esac
10996 need_lib_prefix=no
10997 need_version=no
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11000 case $host_os in
11001 irix5* | nonstopux*)
11002 libsuff= shlibsuff=
11003 ;;
11004 *)
11005 case $LD in # libtool.m4 will add one of these switches to LD
11006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11007 libsuff= shlibsuff= libmagic=32-bit;;
11008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11009 libsuff=32 shlibsuff=N32 libmagic=N32;;
11010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11012 *) libsuff= shlibsuff= libmagic=never-match;;
11013 esac
11014 ;;
11015 esac
11016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11017 shlibpath_overrides_runpath=no
11018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11020 hardcode_into_libs=yes
11021 ;;
11022
11023# No shared lib support for Linux oldld, aout, or coff.
11024linux*oldld* | linux*aout* | linux*coff*)
11025 dynamic_linker=no
11026 ;;
11027
11028# This must be Linux ELF.
58e24671 11029linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11030 version_type=linux
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
39144654 11038
ce2cded5 11039 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11040 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
39144654
RW
11042else
11043 lt_cv_shlibpath_overrides_runpath=no
11044 save_LDFLAGS=$LDFLAGS
11045 save_libdir=$libdir
11046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11049/* end confdefs.h. */
11050
d7040cdb
SE
11051int
11052main ()
11053{
ce2cded5 11054
d7040cdb
SE
11055 ;
11056 return 0;
11057}
11058_ACEOF
81ecdfbb
RW
11059if ac_fn_c_try_link "$LINENO"; then :
11060 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11061 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11062fi
d7040cdb 11063fi
81ecdfbb
RW
11064rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11066 LDFLAGS=$save_LDFLAGS
11067 libdir=$save_libdir
11068
11069fi
11070
11071 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11072
ce2cded5
L
11073 # This implies no fast_install, which is unacceptable.
11074 # Some rework will be needed to allow for fast_install
11075 # before this can be enabled.
11076 hardcode_into_libs=yes
d7040cdb 11077
ce2cded5
L
11078 # Append ld.so.conf contents to the search path
11079 if test -f /etc/ld.so.conf; then
3725885a 11080 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
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11082 fi
d7040cdb 11083
ce2cded5
L
11084 # We used to test for /lib/ld.so.1 and disable shared libraries on
11085 # powerpc, because MkLinux only supported shared libraries with the
11086 # GNU dynamic linker. Since this was broken with cross compilers,
11087 # most powerpc-linux boxes support dynamic linking these days and
11088 # people can always --disable-shared, the test was removed, and we
11089 # assume the GNU/Linux dynamic linker is in use.
11090 dynamic_linker='GNU/Linux ld.so'
11091 ;;
d7040cdb 11092
ce2cded5
L
11093netbsd*)
11094 version_type=sunos
11095 need_lib_prefix=no
11096 need_version=no
11097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11100 dynamic_linker='NetBSD (a.out) ld.so'
11101 else
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 dynamic_linker='NetBSD ld.elf_so'
11105 fi
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 hardcode_into_libs=yes
11109 ;;
d7040cdb 11110
ce2cded5
L
11111newsos6)
11112 version_type=linux
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 ;;
d7040cdb 11117
ce2cded5
L
11118*nto* | *qnx*)
11119 version_type=qnx
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=no
11126 hardcode_into_libs=yes
11127 dynamic_linker='ldqnx.so'
11128 ;;
d7040cdb 11129
ce2cded5
L
11130openbsd*)
11131 version_type=sunos
11132 sys_lib_dlsearch_path_spec="/usr/lib"
11133 need_lib_prefix=no
11134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11135 case $host_os in
11136 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11137 *) need_version=no ;;
11138 esac
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11143 case $host_os in
11144 openbsd2.[89] | openbsd2.[89].*)
11145 shlibpath_overrides_runpath=no
11146 ;;
11147 *)
11148 shlibpath_overrides_runpath=yes
11149 ;;
11150 esac
11151 else
11152 shlibpath_overrides_runpath=yes
11153 fi
11154 ;;
d7040cdb 11155
ce2cded5
L
11156os2*)
11157 libname_spec='$name'
11158 shrext_cmds=".dll"
11159 need_lib_prefix=no
11160 library_names_spec='$libname${shared_ext} $libname.a'
11161 dynamic_linker='OS/2 ld.exe'
11162 shlibpath_var=LIBPATH
11163 ;;
d7040cdb 11164
ce2cded5
L
11165osf3* | osf4* | osf5*)
11166 version_type=osf
11167 need_lib_prefix=no
11168 need_version=no
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11174 ;;
d7040cdb 11175
ce2cded5
L
11176rdos*)
11177 dynamic_linker=no
11178 ;;
d7040cdb 11179
ce2cded5
L
11180solaris*)
11181 version_type=linux
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 hardcode_into_libs=yes
11189 # ldd complains unless libraries are executable
11190 postinstall_cmds='chmod +x $lib'
11191 ;;
d7040cdb 11192
ce2cded5
L
11193sunos4*)
11194 version_type=sunos
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 if test "$with_gnu_ld" = yes; then
11200 need_lib_prefix=no
11201 fi
11202 need_version=yes
11203 ;;
d7040cdb 11204
ce2cded5
L
11205sysv4 | sysv4.3*)
11206 version_type=linux
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_vendor in
11211 sni)
11212 shlibpath_overrides_runpath=no
11213 need_lib_prefix=no
11214 runpath_var=LD_RUN_PATH
11215 ;;
11216 siemens)
11217 need_lib_prefix=no
11218 ;;
11219 motorola)
11220 need_lib_prefix=no
11221 need_version=no
11222 shlibpath_overrides_runpath=no
11223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11224 ;;
11225 esac
11226 ;;
d7040cdb 11227
ce2cded5
L
11228sysv4*MP*)
11229 if test -d /usr/nec ;then
11230 version_type=linux
11231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11232 soname_spec='$libname${shared_ext}.$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 fi
11235 ;;
d7040cdb 11236
ce2cded5
L
11237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 version_type=freebsd-elf
11239 need_lib_prefix=no
11240 need_version=no
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 if test "$with_gnu_ld" = yes; then
11247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248 else
11249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250 case $host_os in
11251 sco3.2v5*)
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253 ;;
11254 esac
11255 fi
11256 sys_lib_dlsearch_path_spec='/usr/lib'
11257 ;;
d7040cdb 11258
ce2cded5
L
11259tpf*)
11260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261 version_type=linux
11262 need_lib_prefix=no
11263 need_version=no
b214d478 11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11267 hardcode_into_libs=yes
11268 ;;
d7040cdb 11269
ce2cded5
L
11270uts4*)
11271 version_type=linux
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 ;;
d7040cdb 11276
ce2cded5
L
11277*)
11278 dynamic_linker=no
11279 ;;
11280esac
81ecdfbb
RW
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11282$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11283test "$dynamic_linker" = no && can_build_shared=no
11284
11285variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286if test "$GCC" = yes; then
11287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11288fi
11289
b214d478
SE
11290if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11291 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11292fi
11293if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11294 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11295fi
11296
d7040cdb
SE
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
d7040cdb 11308
d7040cdb 11309
d7040cdb 11310
d7040cdb 11311
d7040cdb
SE
11312
11313
11314
11315
d7040cdb 11316
d7040cdb
SE
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
d7040cdb
SE
11330
11331
11332
11333
d7040cdb
SE
11334
11335
11336
11337
d7040cdb 11338
d7040cdb 11339
d7040cdb 11340
d7040cdb 11341
d7040cdb 11342
d7040cdb 11343
d7040cdb 11344
d7040cdb
SE
11345
11346
11347
11348
11349
d7040cdb 11350
d7040cdb 11351
d7040cdb 11352
d7040cdb 11353
d7040cdb 11354
d7040cdb 11355
d7040cdb
SE
11356
11357
11358
11359
11360
d7040cdb
SE
11361
11362
d7040cdb 11363
d7040cdb 11364
d7040cdb 11365
d7040cdb 11366
ce2cded5
L
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
3725885a
RW
11377
11378
11379
11380
11381
ce2cded5
L
11382
11383
11384
11385
11386
11387
81ecdfbb
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11389$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11390hardcode_action=
11391if test -n "$hardcode_libdir_flag_spec" ||
11392 test -n "$runpath_var" ||
11393 test "X$hardcode_automatic" = "Xyes" ; then
11394
11395 # We can hardcode non-existent directories.
11396 if test "$hardcode_direct" != no &&
11397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11398 # have to relink, otherwise we might link with an installed library
11399 # when we should be linking with a yet-to-be-installed one
11400 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11401 test "$hardcode_minus_L" != no; then
11402 # Linking always hardcodes the temporary library directory.
11403 hardcode_action=relink
11404 else
11405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11406 hardcode_action=immediate
d7040cdb 11407 fi
d7040cdb 11408else
ce2cded5
L
11409 # We cannot hardcode anything, or else we can only hardcode existing
11410 # directories.
11411 hardcode_action=unsupported
d7040cdb 11412fi
81ecdfbb
RW
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11414$as_echo "$hardcode_action" >&6; }
d7040cdb 11415
ce2cded5
L
11416if test "$hardcode_action" = relink ||
11417 test "$inherit_rpath" = yes; then
11418 # Fast installation is not supported
11419 enable_fast_install=no
11420elif test "$shlibpath_overrides_runpath" = yes ||
11421 test "$enable_shared" = no; then
11422 # Fast installation is not necessary
11423 enable_fast_install=needless
d7040cdb
SE
11424fi
11425
d7040cdb 11426
d7040cdb 11427
d7040cdb 11428
d7040cdb 11429
d7040cdb 11430
ce2cded5
L
11431 if test "x$enable_dlopen" != xyes; then
11432 enable_dlopen=unknown
11433 enable_dlopen_self=unknown
11434 enable_dlopen_self_static=unknown
d7040cdb 11435else
ce2cded5
L
11436 lt_cv_dlopen=no
11437 lt_cv_dlopen_libs=
d7040cdb 11438
ce2cded5
L
11439 case $host_os in
11440 beos*)
11441 lt_cv_dlopen="load_add_on"
11442 lt_cv_dlopen_libs=
11443 lt_cv_dlopen_self=yes
11444 ;;
d7040cdb 11445
b214d478 11446 mingw* | pw32* | cegcc*)
ce2cded5
L
11447 lt_cv_dlopen="LoadLibrary"
11448 lt_cv_dlopen_libs=
11449 ;;
11450
11451 cygwin*)
11452 lt_cv_dlopen="dlopen"
11453 lt_cv_dlopen_libs=
11454 ;;
11455
11456 darwin*)
11457 # if libdl is installed we need to link against it
81ecdfbb
RW
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459$as_echo_n "checking for dlopen in -ldl... " >&6; }
11460if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
d7040cdb 11462else
ce2cded5
L
11463 ac_check_lib_save_LIBS=$LIBS
11464LIBS="-ldl $LIBS"
81ecdfbb 11465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11466/* end confdefs.h. */
11467
81ecdfbb
RW
11468/* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
ce2cded5
L
11471#ifdef __cplusplus
11472extern "C"
11473#endif
ce2cded5
L
11474char dlopen ();
11475int
11476main ()
11477{
81ecdfbb 11478return dlopen ();
ce2cded5
L
11479 ;
11480 return 0;
11481}
11482_ACEOF
81ecdfbb 11483if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11484 ac_cv_lib_dl_dlopen=yes
11485else
81ecdfbb 11486 ac_cv_lib_dl_dlopen=no
d7040cdb 11487fi
81ecdfbb
RW
11488rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11490LIBS=$ac_check_lib_save_LIBS
d7040cdb 11491fi
81ecdfbb
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11496else
d7040cdb 11497
ce2cded5
L
11498 lt_cv_dlopen="dyld"
11499 lt_cv_dlopen_libs=
11500 lt_cv_dlopen_self=yes
11501
d7040cdb 11502fi
ce2cded5
L
11503
11504 ;;
11505
11506 *)
81ecdfbb
RW
11507 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11508if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11509 lt_cv_dlopen="shl_load"
11510else
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11512$as_echo_n "checking for shl_load in -ldld... " >&6; }
11513if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
ce2cded5
L
11515else
11516 ac_check_lib_save_LIBS=$LIBS
11517LIBS="-ldld $LIBS"
81ecdfbb 11518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11519/* end confdefs.h. */
d7040cdb 11520
81ecdfbb
RW
11521/* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
ce2cded5
L
11524#ifdef __cplusplus
11525extern "C"
11526#endif
ce2cded5
L
11527char shl_load ();
11528int
11529main ()
11530{
81ecdfbb 11531return shl_load ();
ce2cded5
L
11532 ;
11533 return 0;
11534}
11535_ACEOF
81ecdfbb 11536if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11537 ac_cv_lib_dld_shl_load=yes
11538else
81ecdfbb 11539 ac_cv_lib_dld_shl_load=no
ce2cded5 11540fi
81ecdfbb
RW
11541rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11543LIBS=$ac_check_lib_save_LIBS
11544fi
81ecdfbb
RW
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11546$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11547if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11548 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11549else
81ecdfbb
RW
11550 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11551if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11552 lt_cv_dlopen="dlopen"
11553else
81ecdfbb
RW
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11555$as_echo_n "checking for dlopen in -ldl... " >&6; }
11556if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
d7040cdb 11558else
ce2cded5
L
11559 ac_check_lib_save_LIBS=$LIBS
11560LIBS="-ldl $LIBS"
81ecdfbb 11561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11562/* end confdefs.h. */
11563
81ecdfbb
RW
11564/* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
ce2cded5
L
11567#ifdef __cplusplus
11568extern "C"
11569#endif
ce2cded5 11570char dlopen ();
d7040cdb
SE
11571int
11572main ()
11573{
81ecdfbb 11574return dlopen ();
d7040cdb
SE
11575 ;
11576 return 0;
11577}
11578_ACEOF
81ecdfbb 11579if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11580 ac_cv_lib_dl_dlopen=yes
d7040cdb 11581else
81ecdfbb 11582 ac_cv_lib_dl_dlopen=no
d7040cdb 11583fi
81ecdfbb
RW
11584rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11586LIBS=$ac_check_lib_save_LIBS
d7040cdb 11587fi
81ecdfbb
RW
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11589$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11590if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11592else
81ecdfbb
RW
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11594$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11595if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
d7040cdb 11597else
ce2cded5
L
11598 ac_check_lib_save_LIBS=$LIBS
11599LIBS="-lsvld $LIBS"
81ecdfbb 11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11601/* end confdefs.h. */
d7040cdb 11602
81ecdfbb
RW
11603/* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
ce2cded5
L
11606#ifdef __cplusplus
11607extern "C"
11608#endif
ce2cded5 11609char dlopen ();
d7040cdb
SE
11610int
11611main ()
11612{
81ecdfbb 11613return dlopen ();
d7040cdb
SE
11614 ;
11615 return 0;
11616}
11617_ACEOF
81ecdfbb 11618if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11619 ac_cv_lib_svld_dlopen=yes
d7040cdb 11620else
81ecdfbb 11621 ac_cv_lib_svld_dlopen=no
d7040cdb 11622fi
81ecdfbb
RW
11623rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11625LIBS=$ac_check_lib_save_LIBS
d7040cdb 11626fi
81ecdfbb
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11628$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11629if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11631else
81ecdfbb
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11633$as_echo_n "checking for dld_link in -ldld... " >&6; }
11634if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
ce2cded5
L
11636else
11637 ac_check_lib_save_LIBS=$LIBS
11638LIBS="-ldld $LIBS"
81ecdfbb 11639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11640/* end confdefs.h. */
11641
81ecdfbb
RW
11642/* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
ce2cded5
L
11645#ifdef __cplusplus
11646extern "C"
11647#endif
ce2cded5 11648char dld_link ();
d7040cdb
SE
11649int
11650main ()
11651{
81ecdfbb 11652return dld_link ();
d7040cdb
SE
11653 ;
11654 return 0;
11655}
11656_ACEOF
81ecdfbb 11657if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11658 ac_cv_lib_dld_dld_link=yes
d7040cdb 11659else
81ecdfbb 11660 ac_cv_lib_dld_dld_link=no
d7040cdb 11661fi
81ecdfbb
RW
11662rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11664LIBS=$ac_check_lib_save_LIBS
11665fi
81ecdfbb
RW
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11667$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11668if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11670fi
11671
11672
11673fi
11674
11675
11676fi
11677
11678
11679fi
11680
11681
11682fi
11683
11684
11685fi
11686
11687 ;;
11688 esac
11689
11690 if test "x$lt_cv_dlopen" != xno; then
11691 enable_dlopen=yes
11692 else
11693 enable_dlopen=no
11694 fi
11695
11696 case $lt_cv_dlopen in
11697 dlopen)
11698 save_CPPFLAGS="$CPPFLAGS"
11699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11700
11701 save_LDFLAGS="$LDFLAGS"
11702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11703
11704 save_LIBS="$LIBS"
11705 LIBS="$lt_cv_dlopen_libs $LIBS"
11706
81ecdfbb
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11708$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11709if test "${lt_cv_dlopen_self+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
ce2cded5
L
11711else
11712 if test "$cross_compiling" = yes; then :
11713 lt_cv_dlopen_self=cross
11714else
11715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11716 lt_status=$lt_dlunknown
11717 cat > conftest.$ac_ext <<_LT_EOF
6c3bc0f8 11718#line 11718 "configure"
ce2cded5
L
11719#include "confdefs.h"
11720
11721#if HAVE_DLFCN_H
11722#include <dlfcn.h>
11723#endif
11724
11725#include <stdio.h>
11726
11727#ifdef RTLD_GLOBAL
11728# define LT_DLGLOBAL RTLD_GLOBAL
11729#else
11730# ifdef DL_GLOBAL
11731# define LT_DLGLOBAL DL_GLOBAL
11732# else
11733# define LT_DLGLOBAL 0
11734# endif
11735#endif
11736
11737/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11738 find out it does not work in some platform. */
11739#ifndef LT_DLLAZY_OR_NOW
11740# ifdef RTLD_LAZY
11741# define LT_DLLAZY_OR_NOW RTLD_LAZY
11742# else
11743# ifdef DL_LAZY
11744# define LT_DLLAZY_OR_NOW DL_LAZY
11745# else
11746# ifdef RTLD_NOW
11747# define LT_DLLAZY_OR_NOW RTLD_NOW
11748# else
11749# ifdef DL_NOW
11750# define LT_DLLAZY_OR_NOW DL_NOW
11751# else
11752# define LT_DLLAZY_OR_NOW 0
11753# endif
11754# endif
11755# endif
11756# endif
11757#endif
11758
3725885a
RW
11759/* When -fvisbility=hidden is used, assume the code has been annotated
11760 correspondingly for the symbols needed. */
11761#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11762void fnord () __attribute__((visibility("default")));
11763#endif
11764
11765void fnord () { int i=42; }
ce2cded5 11766int main ()
d7040cdb 11767{
ce2cded5
L
11768 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11769 int status = $lt_dlunknown;
11770
11771 if (self)
11772 {
11773 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11774 else
11775 {
11776 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11777 else puts (dlerror ());
11778 }
ce2cded5
L
11779 /* dlclose (self); */
11780 }
11781 else
11782 puts (dlerror ());
11783
b214d478 11784 return status;
d7040cdb 11785}
ce2cded5 11786_LT_EOF
81ecdfbb 11787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11788 (eval $ac_link) 2>&5
d7040cdb 11789 ac_status=$?
81ecdfbb
RW
11790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11791 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11792 (./conftest; exit; ) >&5 2>/dev/null
11793 lt_status=$?
11794 case x$lt_status in
11795 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11796 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11798 esac
11799 else :
11800 # compilation failed
11801 lt_cv_dlopen_self=no
11802 fi
11803fi
11804rm -fr conftest*
11805
11806
11807fi
81ecdfbb
RW
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11809$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11810
11811 if test "x$lt_cv_dlopen_self" = xyes; then
11812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11814$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11815if test "${lt_cv_dlopen_self_static+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
ce2cded5
L
11817else
11818 if test "$cross_compiling" = yes; then :
11819 lt_cv_dlopen_self_static=cross
11820else
11821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11822 lt_status=$lt_dlunknown
11823 cat > conftest.$ac_ext <<_LT_EOF
6c3bc0f8 11824#line 11824 "configure"
ce2cded5
L
11825#include "confdefs.h"
11826
11827#if HAVE_DLFCN_H
11828#include <dlfcn.h>
11829#endif
11830
11831#include <stdio.h>
11832
11833#ifdef RTLD_GLOBAL
11834# define LT_DLGLOBAL RTLD_GLOBAL
11835#else
11836# ifdef DL_GLOBAL
11837# define LT_DLGLOBAL DL_GLOBAL
11838# else
11839# define LT_DLGLOBAL 0
11840# endif
11841#endif
11842
11843/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11844 find out it does not work in some platform. */
11845#ifndef LT_DLLAZY_OR_NOW
11846# ifdef RTLD_LAZY
11847# define LT_DLLAZY_OR_NOW RTLD_LAZY
11848# else
11849# ifdef DL_LAZY
11850# define LT_DLLAZY_OR_NOW DL_LAZY
11851# else
11852# ifdef RTLD_NOW
11853# define LT_DLLAZY_OR_NOW RTLD_NOW
11854# else
11855# ifdef DL_NOW
11856# define LT_DLLAZY_OR_NOW DL_NOW
11857# else
11858# define LT_DLLAZY_OR_NOW 0
11859# endif
11860# endif
11861# endif
11862# endif
11863#endif
11864
3cb62297
L
11865/* When -fvisbility=hidden is used, assume the code has been annotated
11866 correspondingly for the symbols needed. */
11867#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11868void fnord () __attribute__((visibility("default")));
11869#endif
11870
11871void fnord () { int i=42; }
11872int main ()
11873{
11874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11875 int status = $lt_dlunknown;
11876
11877 if (self)
11878 {
11879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11880 else
11881 {
11882 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11883 else puts (dlerror ());
11884 }
11885 /* dlclose (self); */
11886 }
11887 else
11888 puts (dlerror ());
11889
11890 return status;
11891}
11892_LT_EOF
11893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11894 (eval $ac_link) 2>&5
11895 ac_status=$?
11896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11897 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11898 (./conftest; exit; ) >&5 2>/dev/null
11899 lt_status=$?
11900 case x$lt_status in
11901 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11902 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11904 esac
11905 else :
11906 # compilation failed
11907 lt_cv_dlopen_self_static=no
11908 fi
11909fi
11910rm -fr conftest*
11911
11912
11913fi
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11915$as_echo "$lt_cv_dlopen_self_static" >&6; }
11916 fi
11917
11918 CPPFLAGS="$save_CPPFLAGS"
11919 LDFLAGS="$save_LDFLAGS"
11920 LIBS="$save_LIBS"
11921 ;;
11922 esac
11923
11924 case $lt_cv_dlopen_self in
11925 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11926 *) enable_dlopen_self=unknown ;;
11927 esac
11928
11929 case $lt_cv_dlopen_self_static in
11930 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11931 *) enable_dlopen_self_static=unknown ;;
11932 esac
11933fi
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951striplib=
11952old_striplib=
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11954$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11955if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11956 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11957 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
11960else
11961# FIXME - insert some real tests, host_os isn't really good enough
11962 case $host_os in
11963 darwin*)
11964 if test -n "$STRIP" ; then
11965 striplib="$STRIP -x"
11966 old_striplib="$STRIP -S"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968$as_echo "yes" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
11972 fi
11973 ;;
11974 *)
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
11977 ;;
11978 esac
11979fi
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 # Report which library types will actually be built
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11994$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11996$as_echo "$can_build_shared" >&6; }
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11999$as_echo_n "checking whether to build shared libraries... " >&6; }
12000 test "$can_build_shared" = "no" && enable_shared=no
12001
12002 # On AIX, shared libraries and static libraries use the same namespace, and
12003 # are all built from PIC.
12004 case $host_os in
12005 aix3*)
12006 test "$enable_shared" = yes && enable_static=no
12007 if test -n "$RANLIB"; then
12008 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12009 postinstall_cmds='$RANLIB $lib'
12010 fi
12011 ;;
12012
12013 aix[4-9]*)
12014 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12015 test "$enable_shared" = yes && enable_static=no
12016 fi
12017 ;;
12018 esac
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12020$as_echo "$enable_shared" >&6; }
12021
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12023$as_echo_n "checking whether to build static libraries... " >&6; }
12024 # Make sure either enable_shared or enable_static is yes.
12025 test "$enable_shared" = yes || enable_static=yes
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12027$as_echo "$enable_static" >&6; }
12028
12029
12030
12031
12032fi
12033ac_ext=c
12034ac_cpp='$CPP $CPPFLAGS'
12035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12037ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038
12039CC="$lt_save_CC"
12040
12041 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12042 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12043 (test "X$CXX" != "Xg++"))) ; then
12044 ac_ext=cpp
12045ac_cpp='$CXXCPP $CPPFLAGS'
12046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12050$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12051if test -z "$CXXCPP"; then
12052 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054else
12055 # Double quotes because CXXCPP needs to be expanded
12056 for CXXCPP in "$CXX -E" "/lib/cpp"
12057 do
12058 ac_preproc_ok=false
12059for ac_cxx_preproc_warn_flag in '' yes
12060do
12061 # Use a header file that comes with gcc, so configuring glibc
12062 # with a fresh cross-compiler works.
12063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 # <limits.h> exists even on freestanding compilers.
12065 # On the NeXT, cc -E runs the code through the compiler's parser,
12066 # not just through cpp. "Syntax error" is here to catch this case.
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h. */
12069#ifdef __STDC__
12070# include <limits.h>
12071#else
12072# include <assert.h>
12073#endif
12074 Syntax error
12075_ACEOF
12076if ac_fn_cxx_try_cpp "$LINENO"; then :
12077
12078else
12079 # Broken: fails on valid input.
12080continue
12081fi
12082rm -f conftest.err conftest.$ac_ext
12083
12084 # OK, works on sane cases. Now check whether nonexistent headers
12085 # can be detected and how.
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h. */
12088#include <ac_nonexistent.h>
12089_ACEOF
12090if ac_fn_cxx_try_cpp "$LINENO"; then :
12091 # Broken: success on invalid input.
12092continue
12093else
12094 # Passes both tests.
12095ac_preproc_ok=:
12096break
12097fi
12098rm -f conftest.err conftest.$ac_ext
12099
12100done
12101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12102rm -f conftest.err conftest.$ac_ext
12103if $ac_preproc_ok; then :
12104 break
12105fi
12106
12107 done
12108 ac_cv_prog_CXXCPP=$CXXCPP
12109
12110fi
12111 CXXCPP=$ac_cv_prog_CXXCPP
12112else
12113 ac_cv_prog_CXXCPP=$CXXCPP
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12116$as_echo "$CXXCPP" >&6; }
12117ac_preproc_ok=false
12118for ac_cxx_preproc_warn_flag in '' yes
12119do
12120 # Use a header file that comes with gcc, so configuring glibc
12121 # with a fresh cross-compiler works.
12122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12123 # <limits.h> exists even on freestanding compilers.
12124 # On the NeXT, cc -E runs the code through the compiler's parser,
12125 # not just through cpp. "Syntax error" is here to catch this case.
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h. */
12128#ifdef __STDC__
12129# include <limits.h>
12130#else
12131# include <assert.h>
12132#endif
12133 Syntax error
12134_ACEOF
12135if ac_fn_cxx_try_cpp "$LINENO"; then :
12136
12137else
12138 # Broken: fails on valid input.
12139continue
12140fi
12141rm -f conftest.err conftest.$ac_ext
12142
12143 # OK, works on sane cases. Now check whether nonexistent headers
12144 # can be detected and how.
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h. */
12147#include <ac_nonexistent.h>
12148_ACEOF
12149if ac_fn_cxx_try_cpp "$LINENO"; then :
12150 # Broken: success on invalid input.
12151continue
12152else
12153 # Passes both tests.
12154ac_preproc_ok=:
12155break
12156fi
12157rm -f conftest.err conftest.$ac_ext
12158
12159done
12160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12161rm -f conftest.err conftest.$ac_ext
12162if $ac_preproc_ok; then :
12163
12164else
12165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12167as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12168See \`config.log' for more details." "$LINENO" 5; }
12169fi
12170
12171ac_ext=c
12172ac_cpp='$CPP $CPPFLAGS'
12173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12175ac_compiler_gnu=$ac_cv_c_compiler_gnu
12176
12177else
12178 _lt_caught_CXX_error=yes
12179fi
12180
12181ac_ext=cpp
12182ac_cpp='$CXXCPP $CPPFLAGS'
12183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12186
12187archive_cmds_need_lc_CXX=no
12188allow_undefined_flag_CXX=
12189always_export_symbols_CXX=no
12190archive_expsym_cmds_CXX=
12191compiler_needs_object_CXX=no
12192export_dynamic_flag_spec_CXX=
12193hardcode_direct_CXX=no
12194hardcode_direct_absolute_CXX=no
12195hardcode_libdir_flag_spec_CXX=
12196hardcode_libdir_flag_spec_ld_CXX=
12197hardcode_libdir_separator_CXX=
12198hardcode_minus_L_CXX=no
12199hardcode_shlibpath_var_CXX=unsupported
12200hardcode_automatic_CXX=no
12201inherit_rpath_CXX=no
12202module_cmds_CXX=
12203module_expsym_cmds_CXX=
12204link_all_deplibs_CXX=unknown
12205old_archive_cmds_CXX=$old_archive_cmds
12206reload_flag_CXX=$reload_flag
12207reload_cmds_CXX=$reload_cmds
12208no_undefined_flag_CXX=
12209whole_archive_flag_spec_CXX=
12210enable_shared_with_static_runtimes_CXX=no
12211
12212# Source file extension for C++ test sources.
12213ac_ext=cpp
12214
12215# Object file extension for compiled C++ test sources.
12216objext=o
12217objext_CXX=$objext
12218
12219# No sense in running all these tests if we already determined that
12220# the CXX compiler isn't working. Some variables (like enable_shared)
12221# are currently assumed to apply to all compilers on this platform,
12222# and will be corrupted by setting them based on a non-working compiler.
12223if test "$_lt_caught_CXX_error" != yes; then
12224 # Code to be used in simple compile tests
12225 lt_simple_compile_test_code="int some_variable = 0;"
12226
12227 # Code to be used in simple link tests
12228 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12229
12230 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12231
12232
12233
12234
12235
12236
12237# If no C compiler was specified, use CC.
12238LTCC=${LTCC-"$CC"}
12239
12240# If no C compiler flags were specified, use CFLAGS.
12241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12242
12243# Allow CC to be a program name with arguments.
12244compiler=$CC
12245
12246
12247 # save warnings/boilerplate of simple test code
12248 ac_outfile=conftest.$ac_objext
12249echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12250eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12251_lt_compiler_boilerplate=`cat conftest.err`
12252$RM conftest*
12253
12254 ac_outfile=conftest.$ac_objext
12255echo "$lt_simple_link_test_code" >conftest.$ac_ext
12256eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12257_lt_linker_boilerplate=`cat conftest.err`
12258$RM -r conftest*
12259
12260
12261 # Allow CC to be a program name with arguments.
12262 lt_save_CC=$CC
12263 lt_save_LD=$LD
12264 lt_save_GCC=$GCC
12265 GCC=$GXX
12266 lt_save_with_gnu_ld=$with_gnu_ld
12267 lt_save_path_LD=$lt_cv_path_LD
12268 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12269 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12270 else
12271 $as_unset lt_cv_prog_gnu_ld
12272 fi
12273 if test -n "${lt_cv_path_LDCXX+set}"; then
12274 lt_cv_path_LD=$lt_cv_path_LDCXX
12275 else
12276 $as_unset lt_cv_path_LD
12277 fi
12278 test -z "${LDCXX+set}" || LD=$LDCXX
12279 CC=${CXX-"c++"}
12280 compiler=$CC
12281 compiler_CXX=$CC
12282 for cc_temp in $compiler""; do
12283 case $cc_temp in
12284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12286 \-*) ;;
12287 *) break;;
12288 esac
12289done
12290cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12291
12292
12293 if test -n "$compiler"; then
12294 # We don't want -fno-exception when compiling C++ code, so set the
12295 # no_builtin_flag separately
12296 if test "$GXX" = yes; then
12297 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12298 else
12299 lt_prog_compiler_no_builtin_flag_CXX=
12300 fi
12301
12302 if test "$GXX" = yes; then
12303 # Set up default GNU C++ configuration
12304
12305
12306
12307# Check whether --with-gnu-ld was given.
12308if test "${with_gnu_ld+set}" = set; then :
12309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12310else
12311 with_gnu_ld=no
12312fi
12313
12314ac_prog=ld
12315if test "$GCC" = yes; then
12316 # Check if gcc -print-prog-name=ld gives a path.
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12318$as_echo_n "checking for ld used by $CC... " >&6; }
12319 case $host in
12320 *-*-mingw*)
12321 # gcc leaves a trailing carriage return which upsets mingw
12322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12323 *)
12324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12325 esac
12326 case $ac_prog in
12327 # Accept absolute paths.
12328 [\\/]* | ?:[\\/]*)
12329 re_direlt='/[^/][^/]*/\.\./'
12330 # Canonicalize the pathname of ld
12331 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12332 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12333 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12334 done
12335 test -z "$LD" && LD="$ac_prog"
12336 ;;
12337 "")
12338 # If it fails, then pretend we aren't using GCC.
12339 ac_prog=ld
12340 ;;
12341 *)
12342 # If it is relative, then search for the first ld in PATH.
12343 with_gnu_ld=unknown
12344 ;;
12345 esac
12346elif test "$with_gnu_ld" = yes; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12348$as_echo_n "checking for GNU ld... " >&6; }
12349else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12351$as_echo_n "checking for non-GNU ld... " >&6; }
12352fi
12353if test "${lt_cv_path_LD+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355else
12356 if test -z "$LD"; then
12357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12358 for ac_dir in $PATH; do
12359 IFS="$lt_save_ifs"
12360 test -z "$ac_dir" && ac_dir=.
12361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12362 lt_cv_path_LD="$ac_dir/$ac_prog"
12363 # Check to see if the program is GNU ld. I'd rather use --version,
12364 # but apparently some variants of GNU ld only accept -v.
12365 # Break only if it was the GNU/non-GNU ld that we prefer.
12366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12367 *GNU* | *'with BFD'*)
12368 test "$with_gnu_ld" != no && break
12369 ;;
12370 *)
12371 test "$with_gnu_ld" != yes && break
12372 ;;
12373 esac
12374 fi
12375 done
12376 IFS="$lt_save_ifs"
12377else
12378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12379fi
12380fi
12381
12382LD="$lt_cv_path_LD"
12383if test -n "$LD"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12385$as_echo "$LD" >&6; }
12386else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12392$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12393if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395else
12396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12397case `$LD -v 2>&1 </dev/null` in
12398*GNU* | *'with BFD'*)
12399 lt_cv_prog_gnu_ld=yes
12400 ;;
12401*)
12402 lt_cv_prog_gnu_ld=no
12403 ;;
12404esac
12405fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12407$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12408with_gnu_ld=$lt_cv_prog_gnu_ld
12409
12410
12411
12412
12413
12414
12415
12416 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12417 # archiving commands below assume that GNU ld is being used.
12418 if test "$with_gnu_ld" = yes; then
6e733cce
L
12419 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12420 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
12421
12422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12424
12425 # If archive_cmds runs LD, not CC, wlarc should be empty
12426 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12427 # investigate it a little bit more. (MM)
12428 wlarc='${wl}'
12429
12430 # ancient GNU ld didn't support --whole-archive et. al.
12431 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12432 $GREP 'no-whole-archive' > /dev/null; then
12433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12434 else
12435 whole_archive_flag_spec_CXX=
12436 fi
12437 else
12438 with_gnu_ld=no
12439 wlarc=
12440
12441 # A generic and very simple default shared library creation
12442 # command for GNU C++ for the case where it uses the native
12443 # linker, instead of GNU ld. If possible, this setting should
12444 # overridden to take advantage of the native linker features on
12445 # the platform it is being used on.
12446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12447 fi
12448
12449 # Commands to make compiler produce verbose output that lists
12450 # what "hidden" libraries, object files and flags are used when
12451 # linking a shared library.
12452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12453
12454 else
12455 GXX=no
12456 with_gnu_ld=no
12457 wlarc=
12458 fi
12459
12460 # PORTME: fill in a description of your system's C++ link characteristics
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12462$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12463 ld_shlibs_CXX=yes
12464 case $host_os in
12465 aix3*)
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12468 ;;
12469 aix[4-9]*)
12470 if test "$host_cpu" = ia64; then
12471 # On IA64, the linker does run time linking by default, so we don't
12472 # have to do anything special.
12473 aix_use_runtimelinking=no
12474 exp_sym_flag='-Bexport'
12475 no_entry_flag=""
12476 else
12477 aix_use_runtimelinking=no
12478
12479 # Test if we are trying to use run time linking or normal
12480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12481 # need to do runtime linking.
12482 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12483 for ld_flag in $LDFLAGS; do
12484 case $ld_flag in
12485 *-brtl*)
12486 aix_use_runtimelinking=yes
12487 break
12488 ;;
12489 esac
12490 done
12491 ;;
12492 esac
12493
12494 exp_sym_flag='-bexport'
12495 no_entry_flag='-bnoentry'
12496 fi
12497
12498 # When large executables or shared objects are built, AIX ld can
12499 # have problems creating the table of contents. If linking a library
12500 # or program results in "error TOC overflow" add -mminimal-toc to
12501 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12502 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12503
12504 archive_cmds_CXX=''
12505 hardcode_direct_CXX=yes
12506 hardcode_direct_absolute_CXX=yes
12507 hardcode_libdir_separator_CXX=':'
12508 link_all_deplibs_CXX=yes
12509 file_list_spec_CXX='${wl}-f,'
12510
12511 if test "$GXX" = yes; then
12512 case $host_os in aix4.[012]|aix4.[012].*)
12513 # We only want to do this on AIX 4.2 and lower, the check
12514 # below for broken collect2 doesn't work under 4.3+
12515 collect2name=`${CC} -print-prog-name=collect2`
12516 if test -f "$collect2name" &&
12517 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12518 then
12519 # We have reworked collect2
12520 :
12521 else
12522 # We have old collect2
12523 hardcode_direct_CXX=unsupported
12524 # It fails to find uninstalled libraries when the uninstalled
12525 # path is not listed in the libpath. Setting hardcode_minus_L
12526 # to unsupported forces relinking
12527 hardcode_minus_L_CXX=yes
12528 hardcode_libdir_flag_spec_CXX='-L$libdir'
12529 hardcode_libdir_separator_CXX=
12530 fi
12531 esac
12532 shared_flag='-shared'
12533 if test "$aix_use_runtimelinking" = yes; then
12534 shared_flag="$shared_flag "'${wl}-G'
12535 fi
12536 else
12537 # not using gcc
12538 if test "$host_cpu" = ia64; then
12539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12540 # chokes on -Wl,-G. The following line is correct:
12541 shared_flag='-G'
12542 else
12543 if test "$aix_use_runtimelinking" = yes; then
12544 shared_flag='${wl}-G'
12545 else
12546 shared_flag='${wl}-bM:SRE'
12547 fi
12548 fi
12549 fi
12550
12551 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12552 # It seems that -bexpall does not export symbols beginning with
12553 # underscore (_), so it is better to generate a list of symbols to
12554 # export.
12555 always_export_symbols_CXX=yes
12556 if test "$aix_use_runtimelinking" = yes; then
12557 # Warning - without using the other runtime loading flags (-brtl),
12558 # -berok will link without error, but may produce a broken library.
12559 allow_undefined_flag_CXX='-berok'
12560 # Determine the default libpath from the value encoded in an empty
12561 # executable.
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h. */
12564
12565int
12566main ()
12567{
12568
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573if ac_fn_cxx_try_link "$LINENO"; then :
12574
12575lt_aix_libpath_sed='
12576 /Import File Strings/,/^$/ {
12577 /^0/ {
12578 s/^0 *\(.*\)$/\1/
12579 p
12580 }
12581 }'
12582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583# Check for a 64-bit object if we didn't find anything.
12584if test -z "$aix_libpath"; then
12585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12586fi
12587fi
12588rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12591
12592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12593
12594 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"
12595 else
12596 if test "$host_cpu" = ia64; then
12597 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12598 allow_undefined_flag_CXX="-z nodefs"
12599 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"
12600 else
12601 # Determine the default libpath from the value encoded in an
12602 # empty executable.
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h. */
12605
12606int
12607main ()
12608{
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614if ac_fn_cxx_try_link "$LINENO"; then :
12615
12616lt_aix_libpath_sed='
12617 /Import File Strings/,/^$/ {
12618 /^0/ {
12619 s/^0 *\(.*\)$/\1/
12620 p
12621 }
12622 }'
12623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624# Check for a 64-bit object if we didn't find anything.
12625if test -z "$aix_libpath"; then
12626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627fi
12628fi
12629rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12632
12633 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12634 # Warning - without using the other run time loading flags,
12635 # -berok will link without error, but may produce a broken library.
12636 no_undefined_flag_CXX=' ${wl}-bernotok'
12637 allow_undefined_flag_CXX=' ${wl}-berok'
12638 if test "$with_gnu_ld" = yes; then
12639 # We only use this code for GNU lds that support --whole-archive.
12640 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12641 else
12642 # Exported symbols can be pulled into shared objects from archives
12643 whole_archive_flag_spec_CXX='$convenience'
12644 fi
12645 archive_cmds_need_lc_CXX=yes
12646 # This is similar to how AIX traditionally builds its shared
12647 # libraries.
12648 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'
12649 fi
12650 fi
12651 ;;
12652
12653 beos*)
12654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12655 allow_undefined_flag_CXX=unsupported
12656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12657 # support --undefined. This deserves some investigation. FIXME
12658 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12659 else
12660 ld_shlibs_CXX=no
12661 fi
12662 ;;
12663
12664 chorus*)
12665 case $cc_basename in
12666 *)
12667 # FIXME: insert proper C++ library support
12668 ld_shlibs_CXX=no
12669 ;;
12670 esac
12671 ;;
12672
12673 cygwin* | mingw* | pw32* | cegcc*)
12674 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12675 # as there is no search path for DLLs.
12676 hardcode_libdir_flag_spec_CXX='-L$libdir'
12677 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12678 allow_undefined_flag_CXX=unsupported
12679 always_export_symbols_CXX=no
12680 enable_shared_with_static_runtimes_CXX=yes
12681
12682 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12683 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'
12684 # If the export-symbols file already is a .def file (1st line
12685 # is EXPORTS), use it as is; otherwise, prepend...
12686 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12687 cp $export_symbols $output_objdir/$soname.def;
12688 else
12689 echo EXPORTS > $output_objdir/$soname.def;
12690 cat $export_symbols >> $output_objdir/$soname.def;
12691 fi~
12692 $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'
12693 else
12694 ld_shlibs_CXX=no
12695 fi
12696 ;;
12697 darwin* | rhapsody*)
12698
12699
12700 archive_cmds_need_lc_CXX=no
12701 hardcode_direct_CXX=no
12702 hardcode_automatic_CXX=yes
12703 hardcode_shlibpath_var_CXX=unsupported
12704 if test "$lt_cv_ld_force_load" = "yes"; then
12705 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\"`'
12706 else
12707 whole_archive_flag_spec_CXX=''
12708 fi
12709 link_all_deplibs_CXX=yes
12710 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12711 case $cc_basename in
12712 ifort*) _lt_dar_can_shared=yes ;;
12713 *) _lt_dar_can_shared=$GCC ;;
12714 esac
12715 if test "$_lt_dar_can_shared" = "yes"; then
12716 output_verbose_link_cmd=func_echo_all
12717 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}"
12718 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12719 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}"
12720 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}"
12721 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12722 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}"
12723 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}"
12724 fi
12725
12726 else
12727 ld_shlibs_CXX=no
12728 fi
12729
12730 ;;
12731
12732 dgux*)
12733 case $cc_basename in
12734 ec++*)
12735 # FIXME: insert proper C++ library support
12736 ld_shlibs_CXX=no
12737 ;;
12738 ghcx*)
12739 # Green Hills C++ Compiler
12740 # FIXME: insert proper C++ library support
12741 ld_shlibs_CXX=no
12742 ;;
12743 *)
12744 # FIXME: insert proper C++ library support
12745 ld_shlibs_CXX=no
12746 ;;
12747 esac
12748 ;;
12749
6d2920c8 12750 freebsd2.*)
3cb62297
L
12751 # C++ shared libraries reported to be fairly broken before
12752 # switch to ELF
12753 ld_shlibs_CXX=no
12754 ;;
12755
12756 freebsd-elf*)
12757 archive_cmds_need_lc_CXX=no
12758 ;;
12759
12760 freebsd* | dragonfly*)
12761 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12762 # conventions
12763 ld_shlibs_CXX=yes
12764 ;;
12765
12766 gnu*)
12767 ;;
12768
12769 haiku*)
12770 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771 link_all_deplibs_CXX=yes
12772 ;;
12773
12774 hpux9*)
12775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12776 hardcode_libdir_separator_CXX=:
12777 export_dynamic_flag_spec_CXX='${wl}-E'
12778 hardcode_direct_CXX=yes
12779 hardcode_minus_L_CXX=yes # Not in the search PATH,
12780 # but as the default
12781 # location of the library.
12782
12783 case $cc_basename in
12784 CC*)
12785 # FIXME: insert proper C++ library support
12786 ld_shlibs_CXX=no
12787 ;;
12788 aCC*)
12789 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'
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12793 #
12794 # There doesn't appear to be a way to prevent this compiler from
12795 # explicitly linking system object files so we need to strip them
12796 # from the output so that they don't get included in the library
12797 # dependencies.
12798 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"'
12799 ;;
12800 *)
12801 if test "$GXX" = yes; then
12802 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'
12803 else
12804 # FIXME: insert proper C++ library support
12805 ld_shlibs_CXX=no
12806 fi
12807 ;;
12808 esac
12809 ;;
12810
12811 hpux10*|hpux11*)
12812 if test $with_gnu_ld = no; then
12813 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12814 hardcode_libdir_separator_CXX=:
12815
12816 case $host_cpu in
12817 hppa*64*|ia64*)
12818 ;;
12819 *)
12820 export_dynamic_flag_spec_CXX='${wl}-E'
12821 ;;
12822 esac
12823 fi
12824 case $host_cpu in
12825 hppa*64*|ia64*)
12826 hardcode_direct_CXX=no
12827 hardcode_shlibpath_var_CXX=no
12828 ;;
12829 *)
12830 hardcode_direct_CXX=yes
12831 hardcode_direct_absolute_CXX=yes
12832 hardcode_minus_L_CXX=yes # Not in the search PATH,
12833 # but as the default
12834 # location of the library.
12835 ;;
12836 esac
12837
12838 case $cc_basename in
12839 CC*)
12840 # FIXME: insert proper C++ library support
12841 ld_shlibs_CXX=no
12842 ;;
12843 aCC*)
12844 case $host_cpu in
12845 hppa*64*)
12846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 ;;
12848 ia64*)
12849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850 ;;
12851 *)
12852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853 ;;
12854 esac
12855 # Commands to make compiler produce verbose output that lists
12856 # what "hidden" libraries, object files and flags are used when
12857 # linking a shared library.
12858 #
12859 # There doesn't appear to be a way to prevent this compiler from
12860 # explicitly linking system object files so we need to strip them
12861 # from the output so that they don't get included in the library
12862 # dependencies.
12863 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"'
12864 ;;
12865 *)
12866 if test "$GXX" = yes; then
12867 if test $with_gnu_ld = no; then
12868 case $host_cpu in
12869 hppa*64*)
12870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871 ;;
12872 ia64*)
12873 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874 ;;
12875 *)
12876 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'
12877 ;;
12878 esac
12879 fi
12880 else
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 fi
12884 ;;
12885 esac
12886 ;;
12887
12888 interix[3-9]*)
12889 hardcode_direct_CXX=no
12890 hardcode_shlibpath_var_CXX=no
12891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12892 export_dynamic_flag_spec_CXX='${wl}-E'
12893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12894 # Instead, shared libraries are loaded at an image base (0x10000000 by
12895 # default) and relocated if they conflict, which is a slow very memory
12896 # consuming and fragmenting process. To avoid this, we pick a random,
12897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12898 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12899 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'
12900 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'
12901 ;;
12902 irix5* | irix6*)
12903 case $cc_basename in
12904 CC*)
12905 # SGI C++
12906 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'
12907
12908 # Archives containing C++ object files must be created using
12909 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12910 # necessary to make sure instantiated templates are included
12911 # in the archive.
12912 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12913 ;;
12914 *)
12915 if test "$GXX" = yes; then
12916 if test "$with_gnu_ld" = no; then
12917 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'
12918 else
12919 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'
12920 fi
12921 fi
12922 link_all_deplibs_CXX=yes
12923 ;;
12924 esac
12925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator_CXX=:
12927 inherit_rpath_CXX=yes
12928 ;;
12929
12930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12931 case $cc_basename in
12932 KCC*)
12933 # Kuck and Associates, Inc. (KAI) C++ Compiler
12934
12935 # KCC will only create a shared library if the output file
12936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12937 # to its proper name (with version) after linking.
12938 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'
12939 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'
12940 # Commands to make compiler produce verbose output that lists
12941 # what "hidden" libraries, object files and flags are used when
12942 # linking a shared library.
12943 #
12944 # There doesn't appear to be a way to prevent this compiler from
12945 # explicitly linking system object files so we need to strip them
12946 # from the output so that they don't get included in the library
12947 # dependencies.
12948 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"'
12949
12950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12952
12953 # Archives containing C++ object files must be created using
12954 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12955 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12956 ;;
12957 icpc* | ecpc* )
12958 # Intel C++
12959 with_gnu_ld=yes
12960 # version 8.0 and above of icpc choke on multiply defined symbols
12961 # if we add $predep_objects and $postdep_objects, however 7.1 and
12962 # earlier do not add the objects themselves.
12963 case `$CC -V 2>&1` in
12964 *"Version 7."*)
12965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12966 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12967 ;;
12968 *) # Version 8.0 or newer
12969 tmp_idyn=
12970 case $host_cpu in
12971 ia64*) tmp_idyn=' -i_dynamic';;
12972 esac
12973 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 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'
12975 ;;
12976 esac
12977 archive_cmds_need_lc_CXX=no
12978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12980 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12981 ;;
12982 pgCC* | pgcpp*)
12983 # Portland Group C++ compiler
12984 case `$CC -V` in
12985 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12986 prelink_cmds_CXX='tpldir=Template.dir~
12987 rm -rf $tpldir~
12988 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12989 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12990 old_archive_cmds_CXX='tpldir=Template.dir~
12991 rm -rf $tpldir~
12992 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12993 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12994 $RANLIB $oldlib'
12995 archive_cmds_CXX='tpldir=Template.dir~
12996 rm -rf $tpldir~
12997 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12998 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12999 archive_expsym_cmds_CXX='tpldir=Template.dir~
13000 rm -rf $tpldir~
13001 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13002 $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'
13003 ;;
13004 *) # Version 6 and above use weak symbols
13005 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13006 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'
13007 ;;
13008 esac
13009
13010 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13012 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'
13013 ;;
13014 cxx*)
13015 # Compaq C++
13016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017 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'
13018
13019 runpath_var=LD_RUN_PATH
13020 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13021 hardcode_libdir_separator_CXX=:
13022
13023 # Commands to make compiler produce verbose output that lists
13024 # what "hidden" libraries, object files and flags are used when
13025 # linking a shared library.
13026 #
13027 # There doesn't appear to be a way to prevent this compiler from
13028 # explicitly linking system object files so we need to strip them
13029 # from the output so that they don't get included in the library
13030 # dependencies.
13031 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'
13032 ;;
13033 xl* | mpixl* | bgxl*)
13034 # IBM XL 8.0 on PPC, with GNU ld
13035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13036 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13037 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038 if test "x$supports_anon_versioning" = xyes; then
13039 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13041 echo "local: *; };" >> $output_objdir/$libname.ver~
13042 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13043 fi
13044 ;;
13045 *)
13046 case `$CC -V 2>&1 | sed 5q` in
13047 *Sun\ C*)
13048 # Sun C++ 5.9
13049 no_undefined_flag_CXX=' -zdefs'
13050 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13051 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'
13052 hardcode_libdir_flag_spec_CXX='-R$libdir'
13053 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'
13054 compiler_needs_object_CXX=yes
13055
13056 # Not sure whether something based on
13057 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13058 # would be better.
13059 output_verbose_link_cmd='func_echo_all'
13060
13061 # Archives containing C++ object files must be created using
13062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13063 # necessary to make sure instantiated templates are included
13064 # in the archive.
13065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13066 ;;
13067 esac
13068 ;;
13069 esac
13070 ;;
13071
13072 lynxos*)
13073 # FIXME: insert proper C++ library support
13074 ld_shlibs_CXX=no
13075 ;;
13076
13077 m88k*)
13078 # FIXME: insert proper C++ library support
13079 ld_shlibs_CXX=no
13080 ;;
13081
13082 mvs*)
13083 case $cc_basename in
13084 cxx*)
13085 # FIXME: insert proper C++ library support
13086 ld_shlibs_CXX=no
13087 ;;
13088 *)
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13091 ;;
13092 esac
13093 ;;
13094
13095 netbsd*)
13096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13097 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13098 wlarc=
13099 hardcode_libdir_flag_spec_CXX='-R$libdir'
13100 hardcode_direct_CXX=yes
13101 hardcode_shlibpath_var_CXX=no
13102 fi
13103 # Workaround some broken pre-1.5 toolchains
13104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13105 ;;
13106
13107 *nto* | *qnx*)
13108 ld_shlibs_CXX=yes
13109 ;;
13110
13111 openbsd2*)
13112 # C++ shared libraries are fairly broken
13113 ld_shlibs_CXX=no
13114 ;;
13115
13116 openbsd*)
13117 if test -f /usr/libexec/ld.so; then
13118 hardcode_direct_CXX=yes
13119 hardcode_shlibpath_var_CXX=no
13120 hardcode_direct_absolute_CXX=yes
13121 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13124 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13125 export_dynamic_flag_spec_CXX='${wl}-E'
13126 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13127 fi
13128 output_verbose_link_cmd=func_echo_all
13129 else
13130 ld_shlibs_CXX=no
13131 fi
13132 ;;
13133
13134 osf3* | osf4* | osf5*)
13135 case $cc_basename in
13136 KCC*)
13137 # Kuck and Associates, Inc. (KAI) C++ Compiler
13138
13139 # KCC will only create a shared library if the output file
13140 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13141 # to its proper name (with version) after linking.
13142 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'
13143
13144 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13145 hardcode_libdir_separator_CXX=:
13146
13147 # Archives containing C++ object files must be created using
13148 # the KAI C++ compiler.
13149 case $host in
13150 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13151 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13152 esac
13153 ;;
13154 RCC*)
13155 # Rational C++ 2.4.1
13156 # FIXME: insert proper C++ library support
13157 ld_shlibs_CXX=no
13158 ;;
13159 cxx*)
13160 case $host in
13161 osf3*)
13162 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13163 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'
13164 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13165 ;;
13166 *)
13167 allow_undefined_flag_CXX=' -expect_unresolved \*'
13168 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'
13169 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13170 echo "-hidden">> $lib.exp~
13171 $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~
13172 $RM $lib.exp'
13173 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13174 ;;
13175 esac
13176
13177 hardcode_libdir_separator_CXX=:
13178
13179 # Commands to make compiler produce verbose output that lists
13180 # what "hidden" libraries, object files and flags are used when
13181 # linking a shared library.
13182 #
13183 # There doesn't appear to be a way to prevent this compiler from
13184 # explicitly linking system object files so we need to strip them
13185 # from the output so that they don't get included in the library
13186 # dependencies.
13187 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"'
13188 ;;
13189 *)
13190 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13192 case $host in
13193 osf3*)
13194 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'
13195 ;;
13196 *)
13197 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'
13198 ;;
13199 esac
13200
13201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13202 hardcode_libdir_separator_CXX=:
13203
13204 # Commands to make compiler produce verbose output that lists
13205 # what "hidden" libraries, object files and flags are used when
13206 # linking a shared library.
13207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13208
13209 else
13210 # FIXME: insert proper C++ library support
13211 ld_shlibs_CXX=no
13212 fi
13213 ;;
13214 esac
13215 ;;
13216
13217 psos*)
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 ;;
13221
13222 sunos4*)
13223 case $cc_basename in
13224 CC*)
13225 # Sun C++ 4.x
13226 # FIXME: insert proper C++ library support
13227 ld_shlibs_CXX=no
13228 ;;
13229 lcc*)
13230 # Lucid
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13233 ;;
13234 *)
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13237 ;;
13238 esac
13239 ;;
13240
13241 solaris*)
13242 case $cc_basename in
13243 CC*)
13244 # Sun C++ 4.2, 5.x and Centerline C++
13245 archive_cmds_need_lc_CXX=yes
13246 no_undefined_flag_CXX=' -zdefs'
13247 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13248 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249 $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'
13250
13251 hardcode_libdir_flag_spec_CXX='-R$libdir'
13252 hardcode_shlibpath_var_CXX=no
13253 case $host_os in
13254 solaris2.[0-5] | solaris2.[0-5].*) ;;
13255 *)
13256 # The compiler driver will combine and reorder linker options,
13257 # but understands `-z linker_flag'.
13258 # Supported since Solaris 2.6 (maybe 2.5.1?)
13259 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13260 ;;
13261 esac
13262 link_all_deplibs_CXX=yes
13263
13264 output_verbose_link_cmd='func_echo_all'
13265
13266 # Archives containing C++ object files must be created using
13267 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13268 # necessary to make sure instantiated templates are included
13269 # in the archive.
13270 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13271 ;;
13272 gcx*)
13273 # Green Hills C++ Compiler
13274 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13275
13276 # The C++ compiler must be used to create the archive.
13277 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13278 ;;
13279 *)
13280 # GNU C++ compiler with Solaris linker
13281 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13282 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13283 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13284 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13285 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13286 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13287
13288 # Commands to make compiler produce verbose output that lists
13289 # what "hidden" libraries, object files and flags are used when
13290 # linking a shared library.
13291 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13292 else
13293 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13294 # platform.
13295 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13296 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13297 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13298
13299 # Commands to make compiler produce verbose output that lists
13300 # what "hidden" libraries, object files and flags are used when
13301 # linking a shared library.
13302 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13303 fi
13304
13305 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13306 case $host_os in
13307 solaris2.[0-5] | solaris2.[0-5].*) ;;
13308 *)
13309 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13310 ;;
13311 esac
13312 fi
13313 ;;
13314 esac
13315 ;;
13316
13317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13318 no_undefined_flag_CXX='${wl}-z,text'
13319 archive_cmds_need_lc_CXX=no
13320 hardcode_shlibpath_var_CXX=no
13321 runpath_var='LD_RUN_PATH'
13322
13323 case $cc_basename in
13324 CC*)
13325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 ;;
13328 *)
13329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 ;;
13332 esac
13333 ;;
13334
13335 sysv5* | sco3.2v5* | sco5v6*)
13336 # Note: We can NOT use -z defs as we might desire, because we do not
13337 # link with -lc, and that would cause any symbols used from libc to
13338 # always be unresolved, which means just about no library would
13339 # ever link correctly. If we're not using GNU ld we use -z text
13340 # though, which does catch some bad symbols but isn't as heavy-handed
13341 # as -z defs.
13342 no_undefined_flag_CXX='${wl}-z,text'
13343 allow_undefined_flag_CXX='${wl}-z,nodefs'
13344 archive_cmds_need_lc_CXX=no
13345 hardcode_shlibpath_var_CXX=no
13346 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13347 hardcode_libdir_separator_CXX=':'
13348 link_all_deplibs_CXX=yes
13349 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13350 runpath_var='LD_RUN_PATH'
13351
13352 case $cc_basename in
13353 CC*)
13354 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13357 '"$old_archive_cmds_CXX"
13358 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13359 '"$reload_cmds_CXX"
13360 ;;
13361 *)
13362 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 ;;
13365 esac
13366 ;;
13367
13368 tandem*)
13369 case $cc_basename in
13370 NCC*)
13371 # NonStop-UX NCC 3.20
13372 # FIXME: insert proper C++ library support
13373 ld_shlibs_CXX=no
13374 ;;
13375 *)
13376 # FIXME: insert proper C++ library support
13377 ld_shlibs_CXX=no
13378 ;;
13379 esac
13380 ;;
13381
13382 vxworks*)
13383 # FIXME: insert proper C++ library support
13384 ld_shlibs_CXX=no
13385 ;;
13386
13387 *)
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13390 ;;
13391 esac
13392
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13394$as_echo "$ld_shlibs_CXX" >&6; }
13395 test "$ld_shlibs_CXX" = no && can_build_shared=no
13396
13397 GCC_CXX="$GXX"
13398 LD_CXX="$LD"
13399
13400 ## CAVEAT EMPTOR:
13401 ## There is no encapsulation within the following macros, do not change
13402 ## the running order or otherwise move them around unless you know exactly
13403 ## what you are doing...
13404 # Dependencies to place before and after the object being linked:
13405predep_objects_CXX=
13406postdep_objects_CXX=
13407predeps_CXX=
13408postdeps_CXX=
13409compiler_lib_search_path_CXX=
13410
13411cat > conftest.$ac_ext <<_LT_EOF
13412class Foo
13413{
13414public:
13415 Foo (void) { a = 0; }
13416private:
13417 int a;
13418};
13419_LT_EOF
13420
13421if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13422 (eval $ac_compile) 2>&5
13423 ac_status=$?
13424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425 test $ac_status = 0; }; then
13426 # Parse the compiler output and extract the necessary
13427 # objects, libraries and library flags.
13428
13429 # Sentinel used to keep track of whether or not we are before
13430 # the conftest object file.
13431 pre_test_object_deps_done=no
13432
13433 for p in `eval "$output_verbose_link_cmd"`; do
13434 case $p in
13435
13436 -L* | -R* | -l*)
13437 # Some compilers place space between "-{L,R}" and the path.
13438 # Remove the space.
13439 if test $p = "-L" ||
13440 test $p = "-R"; then
13441 prev=$p
13442 continue
13443 else
13444 prev=
13445 fi
13446
13447 if test "$pre_test_object_deps_done" = no; then
13448 case $p in
13449 -L* | -R*)
13450 # Internal compiler library paths should come after those
13451 # provided the user. The postdeps already come after the
13452 # user supplied libs so there is no need to process them.
13453 if test -z "$compiler_lib_search_path_CXX"; then
13454 compiler_lib_search_path_CXX="${prev}${p}"
13455 else
13456 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13457 fi
13458 ;;
13459 # The "-l" case would never come before the object being
13460 # linked, so don't bother handling this case.
13461 esac
13462 else
13463 if test -z "$postdeps_CXX"; then
13464 postdeps_CXX="${prev}${p}"
13465 else
13466 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13467 fi
13468 fi
13469 ;;
13470
13471 *.$objext)
13472 # This assumes that the test object file only shows up
13473 # once in the compiler output.
13474 if test "$p" = "conftest.$objext"; then
13475 pre_test_object_deps_done=yes
13476 continue
13477 fi
13478
13479 if test "$pre_test_object_deps_done" = no; then
13480 if test -z "$predep_objects_CXX"; then
13481 predep_objects_CXX="$p"
13482 else
13483 predep_objects_CXX="$predep_objects_CXX $p"
13484 fi
13485 else
13486 if test -z "$postdep_objects_CXX"; then
13487 postdep_objects_CXX="$p"
13488 else
13489 postdep_objects_CXX="$postdep_objects_CXX $p"
13490 fi
13491 fi
13492 ;;
13493
13494 *) ;; # Ignore the rest.
13495
13496 esac
13497 done
13498
13499 # Clean up.
13500 rm -f a.out a.exe
13501else
13502 echo "libtool.m4: error: problem compiling CXX test program"
13503fi
13504
13505$RM -f confest.$objext
13506
13507# PORTME: override above test on systems where it is broken
13508case $host_os in
13509interix[3-9]*)
13510 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13511 # hack all around it, let's just trust "g++" to DTRT.
13512 predep_objects_CXX=
13513 postdep_objects_CXX=
13514 postdeps_CXX=
13515 ;;
13516
13517linux*)
13518 case `$CC -V 2>&1 | sed 5q` in
13519 *Sun\ C*)
13520 # Sun C++ 5.9
13521
13522 # The more standards-conforming stlport4 library is
13523 # incompatible with the Cstd library. Avoid specifying
13524 # it if it's in CXXFLAGS. Ignore libCrun as
13525 # -library=stlport4 depends on it.
13526 case " $CXX $CXXFLAGS " in
13527 *" -library=stlport4 "*)
13528 solaris_use_stlport4=yes
13529 ;;
13530 esac
13531
13532 if test "$solaris_use_stlport4" != yes; then
13533 postdeps_CXX='-library=Cstd -library=Crun'
13534 fi
13535 ;;
13536 esac
13537 ;;
13538
13539solaris*)
13540 case $cc_basename in
13541 CC*)
13542 # The more standards-conforming stlport4 library is
13543 # incompatible with the Cstd library. Avoid specifying
13544 # it if it's in CXXFLAGS. Ignore libCrun as
13545 # -library=stlport4 depends on it.
13546 case " $CXX $CXXFLAGS " in
13547 *" -library=stlport4 "*)
13548 solaris_use_stlport4=yes
13549 ;;
13550 esac
13551
13552 # Adding this requires a known-good setup of shared libraries for
13553 # Sun compiler versions before 5.6, else PIC objects from an old
13554 # archive will be linked into the output, leading to subtle bugs.
13555 if test "$solaris_use_stlport4" != yes; then
13556 postdeps_CXX='-library=Cstd -library=Crun'
13557 fi
13558 ;;
13559 esac
13560 ;;
13561esac
13562
13563
13564case " $postdeps_CXX " in
13565*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13566esac
13567 compiler_lib_search_dirs_CXX=
13568if test -n "${compiler_lib_search_path_CXX}"; then
13569 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13570fi
13571
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 lt_prog_compiler_wl_CXX=
13603lt_prog_compiler_pic_CXX=
13604lt_prog_compiler_static_CXX=
13605
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13607$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13608
13609 # C++ specific cases for pic, static, wl, etc.
13610 if test "$GXX" = yes; then
13611 lt_prog_compiler_wl_CXX='-Wl,'
13612 lt_prog_compiler_static_CXX='-static'
13613
13614 case $host_os in
13615 aix*)
13616 # All AIX code is PIC.
13617 if test "$host_cpu" = ia64; then
13618 # AIX 5 now supports IA64 processor
13619 lt_prog_compiler_static_CXX='-Bstatic'
13620 fi
52204357 13621 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13622 ;;
13623
13624 amigaos*)
13625 case $host_cpu in
13626 powerpc)
13627 # see comment about AmigaOS4 .so support
13628 lt_prog_compiler_pic_CXX='-fPIC'
13629 ;;
13630 m68k)
13631 # FIXME: we need at least 68020 code to build shared libraries, but
13632 # adding the `-m68020' flag to GCC prevents building anything better,
13633 # like `-m68040'.
13634 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13635 ;;
13636 esac
13637 ;;
13638
13639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13640 # PIC is the default for these OSes.
13641 ;;
13642 mingw* | cygwin* | os2* | pw32* | cegcc*)
13643 # This hack is so that the source file can tell whether it is being
13644 # built for inclusion in a dll (and should export symbols for example).
13645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13646 # (--disable-auto-import) libraries
13647 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13648 ;;
13649 darwin* | rhapsody*)
13650 # PIC is the default on this platform
13651 # Common symbols not allowed in MH_DYLIB files
13652 lt_prog_compiler_pic_CXX='-fno-common'
13653 ;;
13654 *djgpp*)
13655 # DJGPP does not support shared libraries at all
13656 lt_prog_compiler_pic_CXX=
13657 ;;
13658 haiku*)
13659 # PIC is the default for Haiku.
13660 # The "-static" flag exists, but is broken.
13661 lt_prog_compiler_static_CXX=
13662 ;;
13663 interix[3-9]*)
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13666 ;;
13667 sysv4*MP*)
13668 if test -d /usr/nec; then
13669 lt_prog_compiler_pic_CXX=-Kconform_pic
13670 fi
13671 ;;
13672 hpux*)
13673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13675 # sets the default TLS model and affects inlining.
13676 case $host_cpu in
13677 hppa*64*)
13678 ;;
13679 *)
13680 lt_prog_compiler_pic_CXX='-fPIC'
13681 ;;
13682 esac
13683 ;;
13684 *qnx* | *nto*)
13685 # QNX uses GNU C++, but need to define -shared option too, otherwise
13686 # it will coredump.
13687 lt_prog_compiler_pic_CXX='-fPIC -shared'
13688 ;;
13689 *)
13690 lt_prog_compiler_pic_CXX='-fPIC'
13691 ;;
13692 esac
13693 else
13694 case $host_os in
13695 aix[4-9]*)
13696 # All AIX code is PIC.
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 now supports IA64 processor
13699 lt_prog_compiler_static_CXX='-Bstatic'
13700 else
13701 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13702 fi
13703 ;;
13704 chorus*)
13705 case $cc_basename in
13706 cxch68*)
13707 # Green Hills C++ Compiler
13708 # _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"
13709 ;;
13710 esac
13711 ;;
13712 dgux*)
13713 case $cc_basename in
13714 ec++*)
13715 lt_prog_compiler_pic_CXX='-KPIC'
13716 ;;
13717 ghcx*)
13718 # Green Hills C++ Compiler
13719 lt_prog_compiler_pic_CXX='-pic'
13720 ;;
13721 *)
13722 ;;
13723 esac
13724 ;;
13725 freebsd* | dragonfly*)
13726 # FreeBSD uses GNU C++
13727 ;;
13728 hpux9* | hpux10* | hpux11*)
13729 case $cc_basename in
13730 CC*)
13731 lt_prog_compiler_wl_CXX='-Wl,'
13732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13733 if test "$host_cpu" != ia64; then
13734 lt_prog_compiler_pic_CXX='+Z'
13735 fi
13736 ;;
13737 aCC*)
13738 lt_prog_compiler_wl_CXX='-Wl,'
13739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13740 case $host_cpu in
13741 hppa*64*|ia64*)
13742 # +Z the default
13743 ;;
13744 *)
13745 lt_prog_compiler_pic_CXX='+Z'
13746 ;;
13747 esac
13748 ;;
13749 *)
13750 ;;
13751 esac
13752 ;;
13753 interix*)
13754 # This is c89, which is MS Visual C++ (no shared libs)
13755 # Anyone wants to do a port?
13756 ;;
13757 irix5* | irix6* | nonstopux*)
13758 case $cc_basename in
13759 CC*)
13760 lt_prog_compiler_wl_CXX='-Wl,'
13761 lt_prog_compiler_static_CXX='-non_shared'
13762 # CC pic flag -KPIC is the default.
13763 ;;
13764 *)
13765 ;;
13766 esac
13767 ;;
13768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13769 case $cc_basename in
13770 KCC*)
13771 # KAI C++ Compiler
13772 lt_prog_compiler_wl_CXX='--backend -Wl,'
13773 lt_prog_compiler_pic_CXX='-fPIC'
13774 ;;
13775 ecpc* )
13776 # old Intel C++ for x86_64 which still supported -KPIC.
13777 lt_prog_compiler_wl_CXX='-Wl,'
13778 lt_prog_compiler_pic_CXX='-KPIC'
13779 lt_prog_compiler_static_CXX='-static'
13780 ;;
13781 icpc* )
13782 # Intel C++, used to be incompatible with GCC.
13783 # ICC 10 doesn't accept -KPIC any more.
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_pic_CXX='-fPIC'
13786 lt_prog_compiler_static_CXX='-static'
13787 ;;
13788 pgCC* | pgcpp*)
13789 # Portland Group C++ compiler
13790 lt_prog_compiler_wl_CXX='-Wl,'
13791 lt_prog_compiler_pic_CXX='-fpic'
13792 lt_prog_compiler_static_CXX='-Bstatic'
13793 ;;
13794 cxx*)
13795 # Compaq C++
13796 # Make sure the PIC flag is empty. It appears that all Alpha
13797 # Linux and Compaq Tru64 Unix objects are PIC.
13798 lt_prog_compiler_pic_CXX=
13799 lt_prog_compiler_static_CXX='-non_shared'
13800 ;;
13801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13802 # IBM XL 8.0, 9.0 on PPC and BlueGene
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-qpic'
13805 lt_prog_compiler_static_CXX='-qstaticlink'
13806 ;;
13807 *)
13808 case `$CC -V 2>&1 | sed 5q` in
13809 *Sun\ C*)
13810 # Sun C++ 5.9
13811 lt_prog_compiler_pic_CXX='-KPIC'
13812 lt_prog_compiler_static_CXX='-Bstatic'
13813 lt_prog_compiler_wl_CXX='-Qoption ld '
13814 ;;
13815 esac
13816 ;;
13817 esac
13818 ;;
13819 lynxos*)
13820 ;;
13821 m88k*)
13822 ;;
13823 mvs*)
13824 case $cc_basename in
13825 cxx*)
13826 lt_prog_compiler_pic_CXX='-W c,exportall'
13827 ;;
13828 *)
13829 ;;
13830 esac
13831 ;;
13832 netbsd*)
13833 ;;
13834 *qnx* | *nto*)
13835 # QNX uses GNU C++, but need to define -shared option too, otherwise
13836 # it will coredump.
13837 lt_prog_compiler_pic_CXX='-fPIC -shared'
13838 ;;
13839 osf3* | osf4* | osf5*)
13840 case $cc_basename in
13841 KCC*)
13842 lt_prog_compiler_wl_CXX='--backend -Wl,'
13843 ;;
13844 RCC*)
13845 # Rational C++ 2.4.1
13846 lt_prog_compiler_pic_CXX='-pic'
13847 ;;
13848 cxx*)
13849 # Digital/Compaq C++
13850 lt_prog_compiler_wl_CXX='-Wl,'
13851 # Make sure the PIC flag is empty. It appears that all Alpha
13852 # Linux and Compaq Tru64 Unix objects are PIC.
13853 lt_prog_compiler_pic_CXX=
13854 lt_prog_compiler_static_CXX='-non_shared'
13855 ;;
13856 *)
13857 ;;
13858 esac
13859 ;;
13860 psos*)
13861 ;;
13862 solaris*)
13863 case $cc_basename in
13864 CC*)
13865 # Sun C++ 4.2, 5.x and Centerline C++
13866 lt_prog_compiler_pic_CXX='-KPIC'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13868 lt_prog_compiler_wl_CXX='-Qoption ld '
13869 ;;
13870 gcx*)
13871 # Green Hills C++ Compiler
13872 lt_prog_compiler_pic_CXX='-PIC'
13873 ;;
13874 *)
13875 ;;
13876 esac
13877 ;;
13878 sunos4*)
13879 case $cc_basename in
13880 CC*)
13881 # Sun C++ 4.x
13882 lt_prog_compiler_pic_CXX='-pic'
13883 lt_prog_compiler_static_CXX='-Bstatic'
13884 ;;
13885 lcc*)
13886 # Lucid
13887 lt_prog_compiler_pic_CXX='-pic'
13888 ;;
13889 *)
13890 ;;
13891 esac
13892 ;;
13893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13894 case $cc_basename in
13895 CC*)
13896 lt_prog_compiler_wl_CXX='-Wl,'
13897 lt_prog_compiler_pic_CXX='-KPIC'
13898 lt_prog_compiler_static_CXX='-Bstatic'
13899 ;;
13900 esac
13901 ;;
13902 tandem*)
13903 case $cc_basename in
13904 NCC*)
13905 # NonStop-UX NCC 3.20
13906 lt_prog_compiler_pic_CXX='-KPIC'
13907 ;;
13908 *)
13909 ;;
13910 esac
13911 ;;
13912 vxworks*)
13913 ;;
13914 *)
13915 lt_prog_compiler_can_build_shared_CXX=no
13916 ;;
13917 esac
13918 fi
13919
13920case $host_os in
13921 # For platforms which do not support PIC, -DPIC is meaningless:
13922 *djgpp*)
13923 lt_prog_compiler_pic_CXX=
13924 ;;
13925 *)
13926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13927 ;;
13928esac
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13930$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13931
13932
13933
13934#
13935# Check to make sure the PIC flag actually works.
13936#
13937if test -n "$lt_prog_compiler_pic_CXX"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13939$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13940if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13942else
13943 lt_cv_prog_compiler_pic_works_CXX=no
13944 ac_outfile=conftest.$ac_objext
13945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13946 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13947 # Insert the option either (1) after the last *FLAGS variable, or
13948 # (2) before a word containing "conftest.", or (3) at the end.
13949 # Note that $ac_compile itself does not contain backslashes and begins
13950 # with a dollar sign (not a hyphen), so the echo should work correctly.
13951 # The option is referenced via a variable to avoid confusing sed.
13952 lt_compile=`echo "$ac_compile" | $SED \
13953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13955 -e 's:$: $lt_compiler_flag:'`
13956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13957 (eval "$lt_compile" 2>conftest.err)
13958 ac_status=$?
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 if (exit $ac_status) && test -s "$ac_outfile"; then
13962 # The compiler can only warn and ignore the option if not recognized
13963 # So say no if there are warnings other than the usual output.
13964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13967 lt_cv_prog_compiler_pic_works_CXX=yes
13968 fi
13969 fi
13970 $RM conftest*
13971
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13974$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13975
13976if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13977 case $lt_prog_compiler_pic_CXX in
13978 "" | " "*) ;;
13979 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13980 esac
13981else
13982 lt_prog_compiler_pic_CXX=
13983 lt_prog_compiler_can_build_shared_CXX=no
13984fi
13985
13986fi
13987
13988
13989
13990#
13991# Check to make sure the static flag actually works.
13992#
13993wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13996if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998else
13999 lt_cv_prog_compiler_static_works_CXX=no
14000 save_LDFLAGS="$LDFLAGS"
14001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004 # The linker can only warn and ignore the option if not recognized
14005 # So say no if there are warnings
14006 if test -s conftest.err; then
14007 # Append any errors to the config.log.
14008 cat conftest.err 1>&5
14009 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011 if diff conftest.exp conftest.er2 >/dev/null; then
14012 lt_cv_prog_compiler_static_works_CXX=yes
14013 fi
14014 else
14015 lt_cv_prog_compiler_static_works_CXX=yes
14016 fi
14017 fi
14018 $RM -r conftest*
14019 LDFLAGS="$save_LDFLAGS"
14020
14021fi
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14023$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14024
14025if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14026 :
14027else
14028 lt_prog_compiler_static_CXX=
14029fi
14030
14031
14032
14033
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14035$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14036if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038else
14039 lt_cv_prog_compiler_c_o_CXX=no
14040 $RM -r conftest 2>/dev/null
14041 mkdir conftest
14042 cd conftest
14043 mkdir out
14044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14045
14046 lt_compiler_flag="-o out/conftest2.$ac_objext"
14047 # Insert the option either (1) after the last *FLAGS variable, or
14048 # (2) before a word containing "conftest.", or (3) at the end.
14049 # Note that $ac_compile itself does not contain backslashes and begins
14050 # with a dollar sign (not a hyphen), so the echo should work correctly.
14051 lt_compile=`echo "$ac_compile" | $SED \
14052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054 -e 's:$: $lt_compiler_flag:'`
14055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14056 (eval "$lt_compile" 2>out/conftest.err)
14057 ac_status=$?
14058 cat out/conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14061 then
14062 # The compiler can only warn and ignore the option if not recognized
14063 # So say no if there are warnings
14064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14067 lt_cv_prog_compiler_c_o_CXX=yes
14068 fi
14069 fi
14070 chmod u+w . 2>&5
14071 $RM conftest*
14072 # SGI C++ compiler will create directory out/ii_files/ for
14073 # template instantiation
14074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14075 $RM out/* && rmdir out
14076 cd ..
14077 $RM -r conftest
14078 $RM conftest*
14079
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14082$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14083
14084
14085
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14088if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14090else
14091 lt_cv_prog_compiler_c_o_CXX=no
14092 $RM -r conftest 2>/dev/null
14093 mkdir conftest
14094 cd conftest
14095 mkdir out
14096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097
14098 lt_compiler_flag="-o out/conftest2.$ac_objext"
14099 # Insert the option either (1) after the last *FLAGS variable, or
14100 # (2) before a word containing "conftest.", or (3) at the end.
14101 # Note that $ac_compile itself does not contain backslashes and begins
14102 # with a dollar sign (not a hyphen), so the echo should work correctly.
14103 lt_compile=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>out/conftest.err)
14109 ac_status=$?
14110 cat out/conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14113 then
14114 # The compiler can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119 lt_cv_prog_compiler_c_o_CXX=yes
14120 fi
14121 fi
14122 chmod u+w . 2>&5
14123 $RM conftest*
14124 # SGI C++ compiler will create directory out/ii_files/ for
14125 # template instantiation
14126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14127 $RM out/* && rmdir out
14128 cd ..
14129 $RM -r conftest
14130 $RM conftest*
14131
14132fi
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14134$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14135
14136
14137
14138
14139hard_links="nottested"
14140if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141 # do not overwrite the value of need_locks provided by the user
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14143$as_echo_n "checking if we can lock with hard links... " >&6; }
14144 hard_links=yes
14145 $RM conftest*
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147 touch conftest.a
14148 ln conftest.a conftest.b 2>&5 || hard_links=no
14149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14151$as_echo "$hard_links" >&6; }
14152 if test "$hard_links" = no; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14155 need_locks=warn
14156 fi
14157else
14158 need_locks=no
14159fi
14160
14161
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14164$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14165
14166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14167 case $host_os in
14168 aix[4-9]*)
14169 # If we're using GNU nm, then we don't want the "-C" option.
14170 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14171 # Also, AIX nm treats weak defined symbols like other global defined
14172 # symbols, whereas GNU nm marks them as "W".
14173 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14174 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'
14175 else
14176 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'
14177 fi
14178 ;;
14179 pw32*)
14180 export_symbols_cmds_CXX="$ltdll_cmds"
14181 ;;
14182 cygwin* | mingw* | cegcc*)
14183 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'
14184 ;;
14185 *)
14186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14187 ;;
14188 esac
14189 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14190
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14192$as_echo "$ld_shlibs_CXX" >&6; }
14193test "$ld_shlibs_CXX" = no && can_build_shared=no
14194
14195with_gnu_ld_CXX=$with_gnu_ld
14196
14197
14198
14199
14200
14201
14202#
14203# Do we need to explicitly link libc?
14204#
14205case "x$archive_cmds_need_lc_CXX" in
14206x|xyes)
14207 # Assume -lc should be added
14208 archive_cmds_need_lc_CXX=yes
14209
14210 if test "$enable_shared" = yes && test "$GCC" = yes; then
14211 case $archive_cmds_CXX in
14212 *'~'*)
14213 # FIXME: we may have to deal with multi-command sequences.
14214 ;;
14215 '$CC '*)
14216 # Test whether the compiler implicitly links with -lc since on some
14217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218 # to ld, don't add -lc before -lgcc.
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14220$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14221if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223else
14224 $RM conftest*
14225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14228 (eval $ac_compile) 2>&5
14229 ac_status=$?
14230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231 test $ac_status = 0; } 2>conftest.err; then
14232 soname=conftest
14233 lib=conftest
14234 libobjs=conftest.$ac_objext
14235 deplibs=
14236 wl=$lt_prog_compiler_wl_CXX
14237 pic_flag=$lt_prog_compiler_pic_CXX
14238 compiler_flags=-v
14239 linker_flags=-v
14240 verstring=
14241 output_objdir=.
14242 libname=conftest
14243 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14244 allow_undefined_flag_CXX=
14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14246 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14247 ac_status=$?
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; }
14250 then
14251 lt_cv_archive_cmds_need_lc_CXX=no
14252 else
14253 lt_cv_archive_cmds_need_lc_CXX=yes
14254 fi
14255 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14256 else
14257 cat conftest.err 1>&5
14258 fi
14259 $RM conftest*
14260
14261fi
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14263$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14264 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14265 ;;
14266 esac
14267 fi
14268 ;;
14269esac
14270
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14335$as_echo_n "checking dynamic linker characteristics... " >&6; }
14336
14337library_names_spec=
14338libname_spec='lib$name'
14339soname_spec=
14340shrext_cmds=".so"
14341postinstall_cmds=
14342postuninstall_cmds=
14343finish_cmds=
14344finish_eval=
14345shlibpath_var=
14346shlibpath_overrides_runpath=unknown
14347version_type=none
14348dynamic_linker="$host_os ld.so"
14349sys_lib_dlsearch_path_spec="/lib /usr/lib"
14350need_lib_prefix=unknown
14351hardcode_into_libs=no
14352
14353# when you set need_version to no, make sure it does not cause -set_version
14354# flags to be left without arguments
14355need_version=unknown
14356
14357case $host_os in
14358aix3*)
14359 version_type=linux
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14361 shlibpath_var=LIBPATH
14362
14363 # AIX 3 has no versioning support, so we append a major version to the name.
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 ;;
14366
14367aix[4-9]*)
14368 version_type=linux
14369 need_lib_prefix=no
14370 need_version=no
14371 hardcode_into_libs=yes
14372 if test "$host_cpu" = ia64; then
14373 # AIX 5 supports IA64
14374 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 else
14377 # With GCC up to 2.95.x, collect2 would create an import file
14378 # for dependence libraries. The import file would start with
14379 # the line `#! .'. This would cause the generated library to
14380 # depend on `.', always an invalid library. This was fixed in
14381 # development snapshots of GCC prior to 3.0.
14382 case $host_os in
14383 aix4 | aix4.[01] | aix4.[01].*)
14384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14385 echo ' yes '
14386 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14387 :
14388 else
14389 can_build_shared=no
14390 fi
14391 ;;
14392 esac
14393 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14394 # soname into executable. Probably we can add versioning support to
14395 # collect2, so additional links can be useful in future.
14396 if test "$aix_use_runtimelinking" = yes; then
14397 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14398 # instead of lib<name>.a to let people know that these are not
14399 # typical AIX shared libraries.
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 else
14402 # We preserve .a as extension for shared libraries through AIX4.2
14403 # and later when we are not doing run time linking.
14404 library_names_spec='${libname}${release}.a $libname.a'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 fi
14407 shlibpath_var=LIBPATH
14408 fi
14409 ;;
14410
14411amigaos*)
14412 case $host_cpu in
14413 powerpc)
14414 # Since July 2007 AmigaOS4 officially supports .so libraries.
14415 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 ;;
14418 m68k)
14419 library_names_spec='$libname.ixlibrary $libname.a'
14420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14421 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'
14422 ;;
14423 esac
14424 ;;
14425
14426beos*)
14427 library_names_spec='${libname}${shared_ext}'
14428 dynamic_linker="$host_os ld.so"
14429 shlibpath_var=LIBRARY_PATH
14430 ;;
14431
14432bsdi[45]*)
14433 version_type=linux
14434 need_version=no
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14441 # the default ld.so.conf also contains /usr/contrib/lib and
14442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14443 # libtool to hard-code these into programs
14444 ;;
14445
14446cygwin* | mingw* | pw32* | cegcc*)
14447 version_type=windows
14448 shrext_cmds=".dll"
14449 need_version=no
14450 need_lib_prefix=no
14451
14452 case $GCC,$host_os in
14453 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14454 library_names_spec='$libname.dll.a'
14455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14456 postinstall_cmds='base_file=`basename \${file}`~
14457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14458 dldir=$destdir/`dirname \$dlpath`~
14459 test -d \$dldir || mkdir -p \$dldir~
14460 $install_prog $dir/$dlname \$dldir/$dlname~
14461 chmod a+x \$dldir/$dlname~
14462 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14463 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14464 fi'
14465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14466 dlpath=$dir/\$dldll~
14467 $RM \$dlpath'
14468 shlibpath_overrides_runpath=yes
14469
14470 case $host_os in
14471 cygwin*)
14472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474
14475 ;;
14476 mingw* | cegcc*)
14477 # MinGW DLLs use traditional 'lib' prefix
14478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479 ;;
14480 pw32*)
14481 # pw32 DLLs use 'pw' prefix rather than 'lib'
14482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483 ;;
14484 esac
14485 ;;
14486
14487 *)
14488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14489 ;;
14490 esac
14491 dynamic_linker='Win32 ld.exe'
14492 # FIXME: first we should search . and the directory the executable is in
14493 shlibpath_var=PATH
14494 ;;
14495
14496darwin* | rhapsody*)
14497 dynamic_linker="$host_os dyld"
14498 version_type=darwin
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502 soname_spec='${libname}${release}${major}$shared_ext'
14503 shlibpath_overrides_runpath=yes
14504 shlibpath_var=DYLD_LIBRARY_PATH
14505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14506
14507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14508 ;;
14509
14510dgux*)
14511 version_type=linux
14512 need_lib_prefix=no
14513 need_version=no
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 ;;
14518
3cb62297
L
14519freebsd* | dragonfly*)
14520 # DragonFly does not have aout. When/if they implement a new
14521 # versioning mechanism, adjust this.
14522 if test -x /usr/bin/objformat; then
14523 objformat=`/usr/bin/objformat`
14524 else
14525 case $host_os in
6d2920c8 14526 freebsd[23].*) objformat=aout ;;
3cb62297
L
14527 *) objformat=elf ;;
14528 esac
14529 fi
14530 version_type=freebsd-$objformat
14531 case $version_type in
14532 freebsd-elf*)
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14534 need_version=no
14535 need_lib_prefix=no
14536 ;;
14537 freebsd-*)
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14539 need_version=yes
14540 ;;
14541 esac
14542 shlibpath_var=LD_LIBRARY_PATH
14543 case $host_os in
6d2920c8 14544 freebsd2.*)
3cb62297
L
14545 shlibpath_overrides_runpath=yes
14546 ;;
14547 freebsd3.[01]* | freebsdelf3.[01]*)
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14550 ;;
14551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14553 shlibpath_overrides_runpath=no
14554 hardcode_into_libs=yes
14555 ;;
14556 *) # from 4.6 on, and DragonFly
14557 shlibpath_overrides_runpath=yes
14558 hardcode_into_libs=yes
14559 ;;
14560 esac
14561 ;;
14562
14563gnu*)
14564 version_type=linux
14565 need_lib_prefix=no
14566 need_version=no
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 hardcode_into_libs=yes
14571 ;;
14572
14573haiku*)
14574 version_type=linux
14575 need_lib_prefix=no
14576 need_version=no
14577 dynamic_linker="$host_os runtime_loader"
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LIBRARY_PATH
14581 shlibpath_overrides_runpath=yes
14582 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14583 hardcode_into_libs=yes
14584 ;;
14585
14586hpux9* | hpux10* | hpux11*)
14587 # Give a soname corresponding to the major version so that dld.sl refuses to
14588 # link against other versions.
14589 version_type=sunos
14590 need_lib_prefix=no
14591 need_version=no
14592 case $host_cpu in
14593 ia64*)
14594 shrext_cmds='.so'
14595 hardcode_into_libs=yes
14596 dynamic_linker="$host_os dld.so"
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 if test "X$HPUX_IA64_MODE" = X32; then
14602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14603 else
14604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14605 fi
14606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14607 ;;
14608 hppa*64*)
14609 shrext_cmds='.sl'
14610 hardcode_into_libs=yes
14611 dynamic_linker="$host_os dld.sl"
14612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14618 ;;
14619 *)
14620 shrext_cmds='.sl'
14621 dynamic_linker="$host_os dld.sl"
14622 shlibpath_var=SHLIB_PATH
14623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 ;;
14627 esac
14628 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14629 postinstall_cmds='chmod 555 $lib'
14630 # or fails outright, so override atomically:
14631 install_override_mode=555
14632 ;;
14633
14634interix[3-9]*)
14635 version_type=linux
14636 need_lib_prefix=no
14637 need_version=no
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14644 ;;
14645
14646irix5* | irix6* | nonstopux*)
14647 case $host_os in
14648 nonstopux*) version_type=nonstopux ;;
14649 *)
14650 if test "$lt_cv_prog_gnu_ld" = yes; then
14651 version_type=linux
14652 else
14653 version_type=irix
14654 fi ;;
14655 esac
14656 need_lib_prefix=no
14657 need_version=no
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14660 case $host_os in
14661 irix5* | nonstopux*)
14662 libsuff= shlibsuff=
14663 ;;
14664 *)
14665 case $LD in # libtool.m4 will add one of these switches to LD
14666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14667 libsuff= shlibsuff= libmagic=32-bit;;
14668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14669 libsuff=32 shlibsuff=N32 libmagic=N32;;
14670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14672 *) libsuff= shlibsuff= libmagic=never-match;;
14673 esac
14674 ;;
14675 esac
14676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14677 shlibpath_overrides_runpath=no
14678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14680 hardcode_into_libs=yes
14681 ;;
14682
14683# No shared lib support for Linux oldld, aout, or coff.
14684linux*oldld* | linux*aout* | linux*coff*)
14685 dynamic_linker=no
14686 ;;
14687
14688# This must be Linux ELF.
14689linux* | k*bsd*-gnu | kopensolaris*-gnu)
14690 version_type=linux
14691 need_lib_prefix=no
14692 need_version=no
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=no
14698
14699 # Some binutils ld are patched to set DT_RUNPATH
14700 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14701 $as_echo_n "(cached) " >&6
14702else
14703 lt_cv_shlibpath_overrides_runpath=no
14704 save_LDFLAGS=$LDFLAGS
14705 save_libdir=$libdir
14706 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14707 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709/* end confdefs.h. */
14710
14711int
14712main ()
14713{
14714
14715 ;
14716 return 0;
14717}
14718_ACEOF
14719if ac_fn_cxx_try_link "$LINENO"; then :
14720 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14721 lt_cv_shlibpath_overrides_runpath=yes
14722fi
14723fi
14724rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726 LDFLAGS=$save_LDFLAGS
14727 libdir=$save_libdir
14728
14729fi
14730
14731 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14732
14733 # This implies no fast_install, which is unacceptable.
14734 # Some rework will be needed to allow for fast_install
14735 # before this can be enabled.
14736 hardcode_into_libs=yes
14737
14738 # Append ld.so.conf contents to the search path
14739 if test -f /etc/ld.so.conf; then
14740 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' ' '`
14741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14742 fi
14743
14744 # We used to test for /lib/ld.so.1 and disable shared libraries on
14745 # powerpc, because MkLinux only supported shared libraries with the
14746 # GNU dynamic linker. Since this was broken with cross compilers,
14747 # most powerpc-linux boxes support dynamic linking these days and
14748 # people can always --disable-shared, the test was removed, and we
14749 # assume the GNU/Linux dynamic linker is in use.
14750 dynamic_linker='GNU/Linux ld.so'
14751 ;;
14752
14753netbsd*)
14754 version_type=sunos
14755 need_lib_prefix=no
14756 need_version=no
14757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760 dynamic_linker='NetBSD (a.out) ld.so'
14761 else
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 dynamic_linker='NetBSD ld.elf_so'
14765 fi
14766 shlibpath_var=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath=yes
14768 hardcode_into_libs=yes
14769 ;;
14770
14771newsos6)
14772 version_type=linux
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14776 ;;
14777
14778*nto* | *qnx*)
14779 version_type=qnx
14780 need_lib_prefix=no
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=no
14786 hardcode_into_libs=yes
14787 dynamic_linker='ldqnx.so'
14788 ;;
14789
14790openbsd*)
14791 version_type=sunos
14792 sys_lib_dlsearch_path_spec="/usr/lib"
14793 need_lib_prefix=no
14794 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14795 case $host_os in
14796 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14797 *) need_version=no ;;
14798 esac
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14803 case $host_os in
14804 openbsd2.[89] | openbsd2.[89].*)
14805 shlibpath_overrides_runpath=no
14806 ;;
14807 *)
14808 shlibpath_overrides_runpath=yes
14809 ;;
14810 esac
14811 else
14812 shlibpath_overrides_runpath=yes
14813 fi
14814 ;;
14815
14816os2*)
14817 libname_spec='$name'
14818 shrext_cmds=".dll"
14819 need_lib_prefix=no
14820 library_names_spec='$libname${shared_ext} $libname.a'
14821 dynamic_linker='OS/2 ld.exe'
14822 shlibpath_var=LIBPATH
14823 ;;
14824
14825osf3* | osf4* | osf5*)
14826 version_type=osf
14827 need_lib_prefix=no
14828 need_version=no
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14834 ;;
14835
14836rdos*)
14837 dynamic_linker=no
14838 ;;
14839
14840solaris*)
14841 version_type=linux
14842 need_lib_prefix=no
14843 need_version=no
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14849 # ldd complains unless libraries are executable
14850 postinstall_cmds='chmod +x $lib'
14851 ;;
14852
14853sunos4*)
14854 version_type=sunos
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 if test "$with_gnu_ld" = yes; then
14860 need_lib_prefix=no
14861 fi
14862 need_version=yes
14863 ;;
14864
14865sysv4 | sysv4.3*)
14866 version_type=linux
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 case $host_vendor in
14871 sni)
14872 shlibpath_overrides_runpath=no
14873 need_lib_prefix=no
14874 runpath_var=LD_RUN_PATH
14875 ;;
14876 siemens)
14877 need_lib_prefix=no
14878 ;;
14879 motorola)
14880 need_lib_prefix=no
14881 need_version=no
14882 shlibpath_overrides_runpath=no
14883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14884 ;;
14885 esac
14886 ;;
14887
14888sysv4*MP*)
14889 if test -d /usr/nec ;then
14890 version_type=linux
14891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14892 soname_spec='$libname${shared_ext}.$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 fi
14895 ;;
14896
14897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14898 version_type=freebsd-elf
14899 need_lib_prefix=no
14900 need_version=no
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes
14905 hardcode_into_libs=yes
14906 if test "$with_gnu_ld" = yes; then
14907 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14908 else
14909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14910 case $host_os in
14911 sco3.2v5*)
14912 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14913 ;;
14914 esac
14915 fi
14916 sys_lib_dlsearch_path_spec='/usr/lib'
14917 ;;
14918
14919tpf*)
14920 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14921 version_type=linux
14922 need_lib_prefix=no
14923 need_version=no
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=no
14927 hardcode_into_libs=yes
14928 ;;
14929
14930uts4*)
14931 version_type=linux
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 ;;
14936
14937*)
14938 dynamic_linker=no
14939 ;;
14940esac
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14942$as_echo "$dynamic_linker" >&6; }
14943test "$dynamic_linker" = no && can_build_shared=no
14944
14945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14946if test "$GCC" = yes; then
14947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14948fi
14949
14950if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14951 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14952fi
14953if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14954 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14955fi
14956
3725885a 14957
ce2cded5 14958
ce2cded5 14959
ce2cded5 14960
d7040cdb 14961
ce2cded5 14962
ce2cded5 14963
ce2cded5 14964
d7040cdb 14965
ce2cded5
L
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
ce2cded5
L
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
b879806f
AM
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14995$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14996hardcode_action_CXX=
14997if test -n "$hardcode_libdir_flag_spec_CXX" ||
14998 test -n "$runpath_var_CXX" ||
14999 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15000
15001 # We can hardcode non-existent directories.
15002 if test "$hardcode_direct_CXX" != no &&
15003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15004 # have to relink, otherwise we might link with an installed library
15005 # when we should be linking with a yet-to-be-installed one
15006 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15007 test "$hardcode_minus_L_CXX" != no; then
15008 # Linking always hardcodes the temporary library directory.
15009 hardcode_action_CXX=relink
15010 else
15011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15012 hardcode_action_CXX=immediate
15013 fi
15014else
15015 # We cannot hardcode anything, or else we can only hardcode existing
15016 # directories.
15017 hardcode_action_CXX=unsupported
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15020$as_echo "$hardcode_action_CXX" >&6; }
15021
15022if test "$hardcode_action_CXX" = relink ||
15023 test "$inherit_rpath_CXX" = yes; then
15024 # Fast installation is not supported
15025 enable_fast_install=no
15026elif test "$shlibpath_overrides_runpath" = yes ||
15027 test "$enable_shared" = no; then
15028 # Fast installation is not necessary
15029 enable_fast_install=needless
15030fi
15031
15032
15033
15034
15035
15036
15037
15038 fi # test -n "$compiler"
15039
15040 CC=$lt_save_CC
15041 LDCXX=$LD
15042 LD=$lt_save_LD
15043 GCC=$lt_save_GCC
15044 with_gnu_ld=$lt_save_with_gnu_ld
15045 lt_cv_path_LDCXX=$lt_cv_path_LD
15046 lt_cv_path_LD=$lt_save_path_LD
15047 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15048 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15049fi # test "$_lt_caught_CXX_error" != yes
15050
15051ac_ext=c
15052ac_cpp='$CPP $CPPFLAGS'
15053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055ac_compiler_gnu=$ac_cv_c_compiler_gnu
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 ac_config_commands="$ac_config_commands libtool"
15070
15071
15072
15073
15074# Only expand once:
15075
15076
15077
15078# The tests for host and target for $enable_largefile require
15079# canonical names.
15080
15081
15082
15083# As the $enable_largefile decision depends on --enable-plugins we must set it
15084# even in directories otherwise not depending on the $plugins option.
15085
15086
15087 maybe_plugins=no
15088 for ac_header in dlfcn.h
15089do :
15090 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15091"
15092if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15093 cat >>confdefs.h <<_ACEOF
15094#define HAVE_DLFCN_H 1
15095_ACEOF
15096 maybe_plugins=yes
15097fi
15098
15099done
15100
15101 for ac_header in windows.h
15102do :
15103 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15104"
15105if test "x$ac_cv_header_windows_h" = x""yes; then :
15106 cat >>confdefs.h <<_ACEOF
15107#define HAVE_WINDOWS_H 1
15108_ACEOF
15109 maybe_plugins=yes
15110fi
15111
15112done
15113
15114
15115 # Check whether --enable-plugins was given.
15116if test "${enable_plugins+set}" = set; then :
15117 enableval=$enable_plugins; case "${enableval}" in
15118 no) plugins=no ;;
15119 *) plugins=yes
15120 if test "$maybe_plugins" != "yes" ; then
15121 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15122 fi ;;
15123 esac
15124else
15125 plugins=$maybe_plugins
15126
15127fi
15128
2974be62
AM
15129 if test "$plugins" = "yes"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15131$as_echo_n "checking for library containing dlopen... " >&6; }
15132if test "${ac_cv_search_dlopen+set}" = set; then :
15133 $as_echo_n "(cached) " >&6
15134else
15135 ac_func_search_save_LIBS=$LIBS
15136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h. */
15138
15139/* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15142#ifdef __cplusplus
15143extern "C"
15144#endif
15145char dlopen ();
15146int
15147main ()
15148{
15149return dlopen ();
15150 ;
15151 return 0;
15152}
15153_ACEOF
15154for ac_lib in '' dl; do
15155 if test -z "$ac_lib"; then
15156 ac_res="none required"
15157 else
15158 ac_res=-l$ac_lib
15159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15160 fi
15161 if ac_fn_c_try_link "$LINENO"; then :
15162 ac_cv_search_dlopen=$ac_res
15163fi
15164rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext
15166 if test "${ac_cv_search_dlopen+set}" = set; then :
15167 break
15168fi
15169done
15170if test "${ac_cv_search_dlopen+set}" = set; then :
15171
15172else
15173 ac_cv_search_dlopen=no
15174fi
15175rm conftest.$ac_ext
15176LIBS=$ac_func_search_save_LIBS
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15179$as_echo "$ac_cv_search_dlopen" >&6; }
15180ac_res=$ac_cv_search_dlopen
15181if test "$ac_res" != no; then :
15182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15183
15184fi
15185
15186 fi
b879806f
AM
15187
15188
15189case "${host}" in
15190 sparc-*-solaris*|i[3-7]86-*-solaris*)
15191 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15192 # are mutually exclusive; and without procfs support, the bfd/ elf module
15193 # cannot provide certain routines such as elfcore_write_prpsinfo
15194 # or elfcore_write_prstatus. So unless the user explicitly requested
15195 # large-file support through the --enable-largefile switch, disable
15196 # large-file support in favor of procfs support.
15197 test "${target}" = "${host}" -a "x$plugins" = xno \
15198 && : ${enable_largefile="no"}
15199 ;;
15200esac
15201
15202# Check whether --enable-largefile was given.
15203if test "${enable_largefile+set}" = set; then :
15204 enableval=$enable_largefile;
15205fi
15206
15207if test "$enable_largefile" != no; then
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15210$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15211if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15212 $as_echo_n "(cached) " >&6
15213else
15214 ac_cv_sys_largefile_CC=no
15215 if test "$GCC" != yes; then
15216 ac_save_CC=$CC
15217 while :; do
15218 # IRIX 6.2 and later do not support large files by default,
15219 # so use the C compiler's -n32 option if that helps.
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h. */
15222#include <sys/types.h>
15223 /* Check that off_t can represent 2**63 - 1 correctly.
15224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15225 since some C++ compilers masquerading as C compilers
15226 incorrectly reject 9223372036854775807. */
15227#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15229 && LARGE_OFF_T % 2147483647 == 1)
15230 ? 1 : -1];
15231int
15232main ()
15233{
15234
15235 ;
15236 return 0;
15237}
15238_ACEOF
15239 if ac_fn_c_try_compile "$LINENO"; then :
15240 break
15241fi
15242rm -f core conftest.err conftest.$ac_objext
15243 CC="$CC -n32"
15244 if ac_fn_c_try_compile "$LINENO"; then :
15245 ac_cv_sys_largefile_CC=' -n32'; break
15246fi
15247rm -f core conftest.err conftest.$ac_objext
15248 break
15249 done
15250 CC=$ac_save_CC
15251 rm -f conftest.$ac_ext
15252 fi
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15255$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15256 if test "$ac_cv_sys_largefile_CC" != no; then
15257 CC=$CC$ac_cv_sys_largefile_CC
15258 fi
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15261$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15262if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15263 $as_echo_n "(cached) " >&6
15264else
15265 while :; do
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267/* end confdefs.h. */
15268#include <sys/types.h>
15269 /* Check that off_t can represent 2**63 - 1 correctly.
15270 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15271 since some C++ compilers masquerading as C compilers
15272 incorrectly reject 9223372036854775807. */
15273#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15274 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15275 && LARGE_OFF_T % 2147483647 == 1)
15276 ? 1 : -1];
15277int
15278main ()
15279{
15280
15281 ;
15282 return 0;
15283}
15284_ACEOF
15285if ac_fn_c_try_compile "$LINENO"; then :
15286 ac_cv_sys_file_offset_bits=no; break
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290/* end confdefs.h. */
15291#define _FILE_OFFSET_BITS 64
15292#include <sys/types.h>
15293 /* Check that off_t can represent 2**63 - 1 correctly.
15294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15295 since some C++ compilers masquerading as C compilers
15296 incorrectly reject 9223372036854775807. */
15297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15299 && LARGE_OFF_T % 2147483647 == 1)
15300 ? 1 : -1];
15301int
15302main ()
15303{
15304
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309if ac_fn_c_try_compile "$LINENO"; then :
15310 ac_cv_sys_file_offset_bits=64; break
15311fi
15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 ac_cv_sys_file_offset_bits=unknown
15314 break
15315done
15316fi
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15318$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15319case $ac_cv_sys_file_offset_bits in #(
15320 no | unknown) ;;
15321 *)
15322cat >>confdefs.h <<_ACEOF
15323#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15324_ACEOF
15325;;
15326esac
15327rm -rf conftest*
15328 if test $ac_cv_sys_file_offset_bits = unknown; then
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15330$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15331if test "${ac_cv_sys_large_files+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15333else
15334 while :; do
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h. */
15337#include <sys/types.h>
15338 /* Check that off_t can represent 2**63 - 1 correctly.
15339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15340 since some C++ compilers masquerading as C compilers
15341 incorrectly reject 9223372036854775807. */
15342#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15344 && LARGE_OFF_T % 2147483647 == 1)
15345 ? 1 : -1];
15346int
15347main ()
15348{
15349
15350 ;
15351 return 0;
15352}
15353_ACEOF
15354if ac_fn_c_try_compile "$LINENO"; then :
15355 ac_cv_sys_large_files=no; break
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359/* end confdefs.h. */
15360#define _LARGE_FILES 1
15361#include <sys/types.h>
15362 /* Check that off_t can represent 2**63 - 1 correctly.
15363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15364 since some C++ compilers masquerading as C compilers
15365 incorrectly reject 9223372036854775807. */
15366#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15368 && LARGE_OFF_T % 2147483647 == 1)
15369 ? 1 : -1];
15370int
15371main ()
15372{
15373
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378if ac_fn_c_try_compile "$LINENO"; then :
15379 ac_cv_sys_large_files=1; break
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 ac_cv_sys_large_files=unknown
15383 break
15384done
15385fi
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15387$as_echo "$ac_cv_sys_large_files" >&6; }
15388case $ac_cv_sys_large_files in #(
15389 no | unknown) ;;
15390 *)
15391cat >>confdefs.h <<_ACEOF
15392#define _LARGE_FILES $ac_cv_sys_large_files
15393_ACEOF
15394;;
15395esac
15396rm -rf conftest*
15397 fi
15398fi
15399
15400
15401
15402
15403# Check whether --with-lib-path was given.
15404if test "${with_lib_path+set}" = set; then :
15405 withval=$with_lib_path; LIB_PATH=$withval
15406fi
15407
15408# Check whether --enable-targets was given.
15409if test "${enable_targets+set}" = set; then :
15410 enableval=$enable_targets; case "${enableval}" in
15411 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15412 ;;
15413 no) enable_targets= ;;
15414 *) enable_targets=$enableval ;;
15415esac
15416fi
15417# Check whether --enable-64-bit-bfd was given.
15418if test "${enable_64_bit_bfd+set}" = set; then :
15419 enableval=$enable_64_bit_bfd; case "${enableval}" in
15420 yes) want64=true ;;
15421 no) want64=false ;;
15422 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15423esac
15424else
15425 want64=false
15426fi
15427
15428
15429# Check whether --with-sysroot was given.
15430if test "${with_sysroot+set}" = set; then :
15431 withval=$with_sysroot;
15432 case ${with_sysroot} in
15433 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15434 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15435 esac
15436
15437 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15438 use_sysroot=yes
15439
15440 if test "x$prefix" = xNONE; then
15441 test_prefix=/usr/local
15442 else
15443 test_prefix=$prefix
15444 fi
15445 if test "x$exec_prefix" = xNONE; then
15446 test_exec_prefix=$test_prefix
15447 else
15448 test_exec_prefix=$exec_prefix
15449 fi
15450 case ${TARGET_SYSTEM_ROOT} in
15451 "${test_prefix}"|"${test_prefix}/"*|\
15452 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15453 '${prefix}'|'${prefix}/'*|\
15454 '${exec_prefix}'|'${exec_prefix}/'*)
15455 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15456 TARGET_SYSTEM_ROOT_DEFINE="$t"
15457 ;;
15458 esac
15459
15460else
15461
15462 use_sysroot=no
15463 TARGET_SYSTEM_ROOT=
15464 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15465
15466fi
15467
15468
15469
15470
15471
15472# Check whether --enable-gold was given.
15473if test "${enable_gold+set}" = set; then :
15474 enableval=$enable_gold; case "${enableval}" in
15475 default)
15476 install_as_default=no
15477 installed_linker=ld.bfd
15478 ;;
15479 yes|no)
15480 install_as_default=yes
15481 installed_linker=ld.bfd
15482 ;;
15483 *)
15484 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15485 ;;
15486 esac
15487else
15488 install_as_default=yes
15489 installed_linker=ld.bfd
15490fi
15491
15492
15493
15494
15495# Check whether --enable-got was given.
15496if test "${enable_got+set}" = set; then :
15497 enableval=$enable_got; case "${enableval}" in
15498 target | single | negative | multigot) got_handling=$enableval ;;
15499 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15500esac
15501else
15502 got_handling=target
15503fi
15504
15505
15506case "${got_handling}" in
15507 target)
15508
15509$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15510 ;;
15511 single)
15512
15513$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15514 ;;
15515 negative)
15516
15517$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15518 ;;
15519 multigot)
15520
15521$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15522 ;;
15523 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15524esac
15525
6c3bc0f8
NC
15526# PR gas/19109
15527# Decide the default method for compressing debug sections.
15528ac_default_compressed_debug_sections=unset
15529# Provide a configure time option to override our default.
15530# Check whether --enable-compressed_debug_sections was given.
15531if test "${enable_compressed_debug_sections+set}" = set; then :
15532 enableval=$enable_compressed_debug_sections; case "${enableval}" in
15533 yes | all | ld) ac_default_compressed_debug_sections=yes ;;
15534 no | none) ac_default_compressed_debug_sections=no ;;
15535 *) ac_default_compressed_debug_sections=unset ;;
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 :
16817 enableval=$enable_initfini_array;
16818else
16819
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16821$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16822if test "${gcc_cv_initfini_array+set}" = set; then :
16823 $as_echo_n "(cached) " >&6
16824else
16825 if test "x${build}" = "x${target}" ; then
16826 if test "$cross_compiling" = yes; then :
16827 gcc_cv_initfini_array=no
16828else
16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830/* end confdefs.h. */
16831
16832static int x = -1;
16833int main (void) { return x; }
16834int foo (void) { x = 0; }
16835int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16836_ACEOF
16837if ac_fn_c_try_run "$LINENO"; then :
16838 gcc_cv_initfini_array=yes
16839else
16840 gcc_cv_initfini_array=no
16841fi
16842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16843 conftest.$ac_objext conftest.beam conftest.$ac_ext
16844fi
16845
16846 else
16847 gcc_cv_initfini_array=no
16848 fi
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16851$as_echo "$gcc_cv_initfini_array" >&6; }
16852 enable_initfini_array=$gcc_cv_initfini_array
16853
16854fi
16855
16856
16857if test $enable_initfini_array = yes; then
16858
16859$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16860
16861fi
16862
81ecdfbb
RW
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16864$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16865if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16866 $as_echo_n "(cached) " >&6
34875e64 16867else
81ecdfbb 16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16869/* end confdefs.h. */
34875e64 16870#include <unistd.h>
42ecbf5e
DJ
16871int
16872main ()
16873{
34875e64 16874extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16875 ;
16876 return 0;
16877}
16878_ACEOF
81ecdfbb 16879if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16880 ld_cv_decl_getopt_unistd_h=yes
16881else
81ecdfbb 16882 ld_cv_decl_getopt_unistd_h=no
34875e64 16883fi
81ecdfbb 16884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16885fi
16886
81ecdfbb
RW
16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16888$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16889if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16890
81ecdfbb 16891$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16892
16893fi
42ecbf5e 16894
252b5132
RH
16895
16896case "${host}" in
a8100d5b 16897*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16898
81ecdfbb 16899$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16900 ;;
16901esac
16902
81ecdfbb
RW
16903ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16904if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16905 ac_have_decl=1
252b5132 16906else
81ecdfbb
RW
16907 ac_have_decl=0
16908fi
502bdb00 16909
81ecdfbb
RW
16910cat >>confdefs.h <<_ACEOF
16911#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16912_ACEOF
81ecdfbb
RW
16913ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16914if test "x$ac_cv_have_decl_free" = x""yes; then :
16915 ac_have_decl=1
252b5132 16916else
81ecdfbb 16917 ac_have_decl=0
252b5132
RH
16918fi
16919
502bdb00 16920cat >>confdefs.h <<_ACEOF
81ecdfbb 16921#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16922_ACEOF
81ecdfbb
RW
16923ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16924if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16925 ac_have_decl=1
16926else
16927 ac_have_decl=0
16928fi
42ecbf5e 16929
81ecdfbb
RW
16930cat >>confdefs.h <<_ACEOF
16931#define HAVE_DECL_SBRK $ac_have_decl
16932_ACEOF
16933ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16934if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16935 ac_have_decl=1
16936else
16937 ac_have_decl=0
16938fi
502bdb00 16939
81ecdfbb
RW
16940cat >>confdefs.h <<_ACEOF
16941#define HAVE_DECL_GETENV $ac_have_decl
16942_ACEOF
16943ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16944if test "x$ac_cv_have_decl_environ" = x""yes; then :
16945 ac_have_decl=1
502bdb00 16946else
81ecdfbb
RW
16947 ac_have_decl=0
16948fi
16949
16950cat >>confdefs.h <<_ACEOF
16951#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16952_ACEOF
252b5132 16953
252b5132 16954
597e2591
ILT
16955# When converting linker scripts into strings for use in emulation
16956# files, use astring.sed if the compiler supports ANSI string
16957# concatenation, or ostring.sed otherwise. This is to support the
16958# broken Microsoft MSVC compiler, which limits the length of string
16959# constants, while still supporting pre-ANSI compilers which do not
16960# support string concatenation.
81ecdfbb
RW
16961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16962$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16963if test "${ld_cv_string_concatenation+set}" = set; then :
16964 $as_echo_n "(cached) " >&6
42ecbf5e 16965else
81ecdfbb 16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16967/* end confdefs.h. */
81ecdfbb 16968
314e9a4e
L
16969int
16970main ()
16971{
81ecdfbb 16972char *a = "a" "a";
314e9a4e
L
16973 ;
16974 return 0;
16975}
16976_ACEOF
81ecdfbb
RW
16977if ac_fn_c_try_compile "$LINENO"; then :
16978 ld_cv_string_concatenation=yes
314e9a4e 16979else
81ecdfbb 16980 ld_cv_string_concatenation=no
314e9a4e 16981fi
81ecdfbb 16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16983fi
81ecdfbb
RW
16984
16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16986$as_echo "$ld_cv_string_concatenation" >&6; }
16987if test "$ld_cv_string_concatenation" = "yes"; then
16988 STRINGIFY=astring.sed
16989else
16990 STRINGIFY=ostring.sed
314e9a4e 16991fi
81ecdfbb
RW
16992
16993
16994# target-specific stuff:
16995
16996all_targets=
16997EMUL=
16998all_emuls=
16999all_emul_extras=
17000all_libpath=
17001
17002rm -f tdirs
17003
bf9ef603 17004# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17005# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17006if test x${want64} = xfalse; then
17007 # The cast to long int works around a bug in the HP C Compiler
17008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17010# This bug is HP SR number 8606223364.
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17012$as_echo_n "checking size of void *... " >&6; }
17013if test "${ac_cv_sizeof_void_p+set}" = set; then :
17014 $as_echo_n "(cached) " >&6
17015else
17016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17017
17018else
17019 if test "$ac_cv_type_void_p" = yes; then
17020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17022{ as_fn_set_status 77
17023as_fn_error "cannot compute sizeof (void *)
17024See \`config.log' for more details." "$LINENO" 5; }; }
17025 else
17026 ac_cv_sizeof_void_p=0
17027 fi
17028fi
17029
17030fi
17031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17032$as_echo "$ac_cv_sizeof_void_p" >&6; }
17033
17034
17035
17036cat >>confdefs.h <<_ACEOF
17037#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17038_ACEOF
17039
17040
17041 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17042 want64=true
17043 fi
17044fi
17045
c58212ea
L
17046elf_list_options=FALSE
17047elf_shlib_list_options=FALSE
17048elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17049for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17050do
17051 if test "$targ_alias" = "all"; then
17052 all_targets=true
82d8e420
L
17053 elf_list_options=TRUE
17054 elf_shlib_list_options=TRUE
17055 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17056 else
17057 # Canonicalize the secondary target names.
17058 result=`$ac_config_sub $targ_alias 2>/dev/null`
17059 if test -n "$result"; then
17060 targ=$result
17061 else
17062 targ=$targ_alias
17063 fi
17064
17065 . ${srcdir}/configure.tgt
17066
17067 if test "$targ" = "$target"; then
17068 EMUL=$targ_emul
17069 fi
17070
17071 if test x${want64} = xfalse; then
17072 . ${srcdir}/../bfd/config.bfd
17073 fi
17074
17075 if test x${want64} = xtrue; then
17076 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17077 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17078 fi
17079
17080 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17081 case " $all_emuls " in
8c3fff59
AM
17082 *" e${i}.o "*) ;;
17083 *)
17084 all_emuls="$all_emuls e${i}.o"
17085 eval result=\$tdir_$i
17086 test -z "$result" && result=$targ_alias
17087 echo tdir_$i=$result >> tdirs
c58212ea
L
17088 case "${i}" in
17089 *elf*)
17090 elf_list_options=TRUE
68880f31
CLT
17091 ;;
17092 *)
17093 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17094 elf_list_options=TRUE
17095 fi
17096 ;;
17097 esac
17098 if test "$elf_list_options" = "TRUE"; then
c58212ea
L
17099 . ${srcdir}/emulparams/${i}.sh
17100 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17101 elf_shlib_list_options=TRUE
17102 fi
17103 if test x${PLT_UNWIND} = xyes; then
17104 elf_plt_unwind_list_options=TRUE
17105 fi
68880f31 17106 fi
c58212ea 17107 ;;
81ecdfbb
RW
17108 esac
17109 done
17110
17111 for i in $targ_emul $targ_extra_libpath; do
17112 case " $all_libpath " in
17113 *" ${i} "*) ;;
17114 *)
17115 if test -z "$all_libpath"; then
17116 all_libpath=${i}
17117 else
17118 all_libpath="$all_libpath ${i}"
17119 fi
17120 ;;
17121 esac
17122 done
17123
17124 for i in $targ_extra_ofiles; do
17125 case " $all_emul_extras " in
17126 *" ${i} "*) ;;
17127 *)
17128 all_emul_extras="$all_emul_extras ${i}"
17129 ;;
17130 esac
17131 done
5063daf7 17132
81ecdfbb
RW
17133 fi
17134done
17135
6c3bc0f8
NC
17136if test x$ac_default_compressed_debug_sections == xyes ; then
17137
17138$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17139
17140fi
17141
81ecdfbb
RW
17142
17143
c58212ea
L
17144
17145
17146
81ecdfbb
RW
17147TDIRS=tdirs
17148
17149
17150if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17151 if test x${want64} = xtrue; then
17152 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17153 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17154 else
17155 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17156 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17157 fi
42ecbf5e
DJ
17158else
17159 EMULATION_OFILES=$all_emuls
17160 EMUL_EXTRA_OFILES=$all_emul_extras
17161fi
17162
17163
17164
17165
17166EMULATION_LIBPATH=$all_libpath
17167
17168
17169if test x${enable_static} = xno; then
17170 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17171else
17172 TESTBFDLIB="../bfd/.libs/libbfd.a"
17173fi
17174
17175
17176target_vendor=${target_vendor=$host_vendor}
17177case "$target_vendor" in
17178 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17179 *) EXTRA_SHLIB_EXTENSION= ;;
17180esac
17181
17182case "$target_os" in
17183 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17184esac
17185
17186if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17187
17188cat >>confdefs.h <<_ACEOF
17189#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17190_ACEOF
17191
17192fi
17193
108a6f8e
CD
17194
17195
17196
17197
31dd3154 17198
81ecdfbb 17199ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17200
42ecbf5e
DJ
17201cat >confcache <<\_ACEOF
17202# This file is a shell script that caches the results of configure
17203# tests run on this system so they can be shared between configure
17204# scripts and configure runs, see configure's option --config-cache.
17205# It is not useful on other systems. If it contains results you don't
17206# want to keep, you may remove or edit it.
17207#
17208# config.status only pays attention to the cache file if you give it
17209# the --recheck option to rerun configure.
17210#
17211# `ac_cv_env_foo' variables (set or unset) will be overridden when
17212# loading this file, other *unset* `ac_cv_foo' will be assigned the
17213# following values.
17214
17215_ACEOF
17216
17217# The following way of writing the cache mishandles newlines in values,
17218# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17219# So, we kill variables containing newlines.
42ecbf5e
DJ
17220# Ultrix sh set writes to stderr and can't be redirected directly,
17221# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17222(
17223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17224 eval ac_val=\$$ac_var
17225 case $ac_val in #(
17226 *${as_nl}*)
17227 case $ac_var in #(
17228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17229$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17230 esac
17231 case $ac_var in #(
17232 _ | IFS | as_nl) ;; #(
17233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17234 *) { eval $ac_var=; unset $ac_var;} ;;
17235 esac ;;
17236 esac
17237 done
17238
42ecbf5e 17239 (set) 2>&1 |
81ecdfbb
RW
17240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17241 *${as_nl}ac_space=\ *)
17242 # `set' does not quote correctly, so add quotes: double-quote
17243 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17244 sed -n \
17245 "s/'/'\\\\''/g;
17246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17247 ;; #(
42ecbf5e
DJ
17248 *)
17249 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17251 ;;
81ecdfbb
RW
17252 esac |
17253 sort
17254) |
42ecbf5e 17255 sed '
81ecdfbb 17256 /^ac_cv_env_/b end
42ecbf5e 17257 t clear
81ecdfbb 17258 :clear
42ecbf5e
DJ
17259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17260 t end
81ecdfbb
RW
17261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17262 :end' >>confcache
17263if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17264 if test -w "$cache_file"; then
17265 test "x$cache_file" != "x/dev/null" &&
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17267$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17268 cat confcache >$cache_file
17269 else
81ecdfbb
RW
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17271$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17272 fi
17273fi
17274rm -f confcache
17275
17276test "x$prefix" = xNONE && prefix=$ac_default_prefix
17277# Let make expand exec_prefix.
17278test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17279
42ecbf5e
DJ
17280DEFS=-DHAVE_CONFIG_H
17281
17282ac_libobjs=
17283ac_ltlibobjs=
17284for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17285 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17287 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17289 # will be set to the directory where LIBOBJS objects are built.
17290 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17291 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17292done
17293LIBOBJS=$ac_libobjs
17294
17295LTLIBOBJS=$ac_ltlibobjs
17296
17297
17298if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17299 as_fn_error "conditional \"AMDEP\" was never defined.
17300Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17301fi
17302if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17303 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17304Usually this means the macro was only invoked conditionally." "$LINENO" 5
17305fi
17306 if test -n "$EXEEXT"; then
17307 am__EXEEXT_TRUE=
17308 am__EXEEXT_FALSE='#'
17309else
17310 am__EXEEXT_TRUE='#'
17311 am__EXEEXT_FALSE=
42ecbf5e 17312fi
81ecdfbb 17313
64ac50ac
RW
17314if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17315 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17316Usually this means the macro was only invoked conditionally." "$LINENO" 5
17317fi
3cb62297
L
17318if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17319 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17320Usually this means the macro was only invoked conditionally." "$LINENO" 5
17321fi
42ecbf5e 17322if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17323 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17324Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17325fi
d5fbea21 17326if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17327 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17328Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17329fi
5d3236ee
DK
17330if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17331 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17332Usually this means the macro was only invoked conditionally." "$LINENO" 5
17333fi
42ecbf5e
DJ
17334
17335: ${CONFIG_STATUS=./config.status}
81ecdfbb 17336ac_write_fail=0
42ecbf5e
DJ
17337ac_clean_files_save=$ac_clean_files
17338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17339{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17340$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17341as_write_fail=0
17342cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17343#! $SHELL
17344# Generated by $as_me.
17345# Run this file to recreate the current configuration.
17346# Compiler output produced by configure, useful for debugging
17347# configure, is in config.log if it exists.
17348
17349debug=false
17350ac_cs_recheck=false
17351ac_cs_silent=false
42ecbf5e 17352
81ecdfbb
RW
17353SHELL=\${CONFIG_SHELL-$SHELL}
17354export SHELL
17355_ASEOF
17356cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17357## -------------------- ##
17358## M4sh Initialization. ##
17359## -------------------- ##
42ecbf5e 17360
81ecdfbb
RW
17361# Be more Bourne compatible
17362DUALCASE=1; export DUALCASE # for MKS sh
17363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17364 emulate sh
17365 NULLCMD=:
81ecdfbb 17366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17367 # is contrary to our usage. Disable this feature.
17368 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17369 setopt NO_GLOB_SUBST
17370else
17371 case `(set -o) 2>/dev/null` in #(
17372 *posix*) :
17373 set -o posix ;; #(
17374 *) :
17375 ;;
17376esac
42ecbf5e 17377fi
42ecbf5e 17378
81ecdfbb
RW
17379
17380as_nl='
17381'
17382export as_nl
17383# Printing a long string crashes Solaris 7 /usr/bin/printf.
17384as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17386as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17387# Prefer a ksh shell builtin over an external printf program on Solaris,
17388# but without wasting forks for bash or zsh.
17389if test -z "$BASH_VERSION$ZSH_VERSION" \
17390 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17391 as_echo='print -r --'
17392 as_echo_n='print -rn --'
17393elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17394 as_echo='printf %s\n'
17395 as_echo_n='printf %s'
17396else
17397 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17398 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17399 as_echo_n='/usr/ucb/echo -n'
17400 else
17401 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17402 as_echo_n_body='eval
17403 arg=$1;
17404 case $arg in #(
17405 *"$as_nl"*)
17406 expr "X$arg" : "X\\(.*\\)$as_nl";
17407 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17408 esac;
17409 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17410 '
17411 export as_echo_n_body
17412 as_echo_n='sh -c $as_echo_n_body as_echo'
17413 fi
17414 export as_echo_body
17415 as_echo='sh -c $as_echo_body as_echo'
17416fi
17417
17418# The user is always right.
17419if test "${PATH_SEPARATOR+set}" != set; then
17420 PATH_SEPARATOR=:
17421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17423 PATH_SEPARATOR=';'
17424 }
42ecbf5e
DJ
17425fi
17426
17427
81ecdfbb
RW
17428# IFS
17429# We need space, tab and new line, in precisely that order. Quoting is
17430# there to prevent editors from complaining about space-tab.
17431# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17432# splitting by setting IFS to empty value.)
17433IFS=" "" $as_nl"
17434
17435# Find who we are. Look in the path if we contain no directory separator.
17436case $0 in #((
17437 *[\\/]* ) as_myself=$0 ;;
17438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439for as_dir in $PATH
17440do
17441 IFS=$as_save_IFS
17442 test -z "$as_dir" && as_dir=.
17443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17444 done
17445IFS=$as_save_IFS
17446
17447 ;;
17448esac
17449# We did not find ourselves, most probably we were run as `sh COMMAND'
17450# in which case we are not to be found in the path.
17451if test "x$as_myself" = x; then
17452 as_myself=$0
17453fi
17454if test ! -f "$as_myself"; then
17455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17456 exit 1
17457fi
17458
17459# Unset variables that we do not need and which cause bugs (e.g. in
17460# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17461# suppresses any "Segmentation fault" message there. '((' could
17462# trigger a bug in pdksh 5.2.14.
17463for as_var in BASH_ENV ENV MAIL MAILPATH
17464do eval test x\${$as_var+set} = xset \
17465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17466done
42ecbf5e
DJ
17467PS1='$ '
17468PS2='> '
17469PS4='+ '
17470
17471# NLS nuisances.
81ecdfbb
RW
17472LC_ALL=C
17473export LC_ALL
17474LANGUAGE=C
17475export LANGUAGE
17476
17477# CDPATH.
17478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17479
17480
17481# as_fn_error ERROR [LINENO LOG_FD]
17482# ---------------------------------
17483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17485# script with status $?, using 1 if that was 0.
17486as_fn_error ()
17487{
17488 as_status=$?; test $as_status -eq 0 && as_status=1
17489 if test "$3"; then
17490 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17492 fi
81ecdfbb
RW
17493 $as_echo "$as_me: error: $1" >&2
17494 as_fn_exit $as_status
17495} # as_fn_error
17496
17497
17498# as_fn_set_status STATUS
17499# -----------------------
17500# Set $? to STATUS, without forking.
17501as_fn_set_status ()
17502{
17503 return $1
17504} # as_fn_set_status
17505
17506# as_fn_exit STATUS
17507# -----------------
17508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17509as_fn_exit ()
17510{
17511 set +e
17512 as_fn_set_status $1
17513 exit $1
17514} # as_fn_exit
17515
17516# as_fn_unset VAR
17517# ---------------
17518# Portably unset VAR.
17519as_fn_unset ()
17520{
17521 { eval $1=; unset $1;}
17522}
17523as_unset=as_fn_unset
17524# as_fn_append VAR VALUE
17525# ----------------------
17526# Append the text in VALUE to the end of the definition contained in VAR. Take
17527# advantage of any shell optimizations that allow amortized linear growth over
17528# repeated appends, instead of the typical quadratic growth present in naive
17529# implementations.
17530if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17531 eval 'as_fn_append ()
17532 {
17533 eval $1+=\$2
17534 }'
17535else
17536 as_fn_append ()
17537 {
17538 eval $1=\$$1\$2
17539 }
17540fi # as_fn_append
17541
17542# as_fn_arith ARG...
17543# ------------------
17544# Perform arithmetic evaluation on the ARGs, and store the result in the
17545# global $as_val. Take advantage of shells that can avoid forks. The arguments
17546# must be portable across $(()) and expr.
17547if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17548 eval 'as_fn_arith ()
17549 {
17550 as_val=$(( $* ))
17551 }'
17552else
17553 as_fn_arith ()
17554 {
17555 as_val=`expr "$@" || test $? -eq 1`
17556 }
17557fi # as_fn_arith
17558
42ecbf5e 17559
81ecdfbb
RW
17560if expr a : '\(a\)' >/dev/null 2>&1 &&
17561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17562 as_expr=expr
17563else
17564 as_expr=false
17565fi
17566
81ecdfbb 17567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17568 as_basename=basename
17569else
17570 as_basename=false
17571fi
17572
81ecdfbb
RW
17573if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17574 as_dirname=dirname
17575else
17576 as_dirname=false
17577fi
42ecbf5e 17578
81ecdfbb 17579as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17580$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17581 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17583$as_echo X/"$0" |
17584 sed '/^.*\/\([^/][^/]*\)\/*$/{
17585 s//\1/
17586 q
17587 }
17588 /^X\/\(\/\/\)$/{
17589 s//\1/
17590 q
17591 }
17592 /^X\/\(\/\).*/{
17593 s//\1/
17594 q
17595 }
17596 s/.*/./; q'`
42ecbf5e 17597
42ecbf5e
DJ
17598# Avoid depending upon Character Ranges.
17599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17602as_cr_digits='0123456789'
17603as_cr_alnum=$as_cr_Letters$as_cr_digits
17604
81ecdfbb
RW
17605ECHO_C= ECHO_N= ECHO_T=
17606case `echo -n x` in #(((((
17607-n*)
17608 case `echo 'xy\c'` in
17609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17610 xy) ECHO_C='\c';;
17611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17612 ECHO_T=' ';;
17613 esac;;
17614*)
17615 ECHO_N='-n';;
42ecbf5e 17616esac
252b5132 17617
81ecdfbb
RW
17618rm -f conf$$ conf$$.exe conf$$.file
17619if test -d conf$$.dir; then
17620 rm -f conf$$.dir/conf$$.file
42ecbf5e 17621else
81ecdfbb
RW
17622 rm -f conf$$.dir
17623 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17624fi
81ecdfbb
RW
17625if (echo >conf$$.file) 2>/dev/null; then
17626 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17627 as_ln_s='ln -s'
81ecdfbb
RW
17628 # ... but there are two gotchas:
17629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17631 # In both cases, we have to default to `cp -p'.
17632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17633 as_ln_s='cp -p'
17634 elif ln conf$$.file conf$$ 2>/dev/null; then
17635 as_ln_s=ln
17636 else
17637 as_ln_s='cp -p'
252b5132 17638 fi
e5a52504 17639else
42ecbf5e 17640 as_ln_s='cp -p'
e5a52504 17641fi
81ecdfbb
RW
17642rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17643rmdir conf$$.dir 2>/dev/null
17644
17645
17646# as_fn_mkdir_p
17647# -------------
17648# Create "$as_dir" as a directory, including parents if necessary.
17649as_fn_mkdir_p ()
17650{
17651
17652 case $as_dir in #(
17653 -*) as_dir=./$as_dir;;
17654 esac
17655 test -d "$as_dir" || eval $as_mkdir_p || {
17656 as_dirs=
17657 while :; do
17658 case $as_dir in #(
17659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17660 *) as_qdir=$as_dir;;
17661 esac
17662 as_dirs="'$as_qdir' $as_dirs"
17663 as_dir=`$as_dirname -- "$as_dir" ||
17664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17665 X"$as_dir" : 'X\(//\)[^/]' \| \
17666 X"$as_dir" : 'X\(//\)$' \| \
17667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17668$as_echo X"$as_dir" |
17669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17670 s//\1/
17671 q
17672 }
17673 /^X\(\/\/\)[^/].*/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\/\)$/{
17678 s//\1/
17679 q
17680 }
17681 /^X\(\/\).*/{
17682 s//\1/
17683 q
17684 }
17685 s/.*/./; q'`
17686 test -d "$as_dir" && break
17687 done
17688 test -z "$as_dirs" || eval "mkdir $as_dirs"
17689 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17690
252b5132 17691
81ecdfbb 17692} # as_fn_mkdir_p
42ecbf5e 17693if mkdir -p . 2>/dev/null; then
81ecdfbb 17694 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17695else
17696 test -d ./-p && rmdir ./-p
17697 as_mkdir_p=false
17698fi
252b5132 17699
81ecdfbb
RW
17700if test -x / >/dev/null 2>&1; then
17701 as_test_x='test -x'
17702else
17703 if ls -dL / >/dev/null 2>&1; then
17704 as_ls_L_option=L
17705 else
17706 as_ls_L_option=
17707 fi
17708 as_test_x='
17709 eval sh -c '\''
17710 if test -d "$1"; then
17711 test -d "$1/.";
17712 else
17713 case $1 in #(
17714 -*)set "./$1";;
17715 esac;
17716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17717 ???[sx]*):;;*)false;;esac;fi
17718 '\'' sh
17719 '
17720fi
17721as_executable_p=$as_test_x
252b5132 17722
42ecbf5e
DJ
17723# Sed expression to map a string onto a valid CPP name.
17724as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17725
42ecbf5e
DJ
17726# Sed expression to map a string onto a valid variable name.
17727as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17728
e5a52504 17729
42ecbf5e 17730exec 6>&1
81ecdfbb
RW
17731## ----------------------------------- ##
17732## Main body of $CONFIG_STATUS script. ##
17733## ----------------------------------- ##
17734_ASEOF
17735test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17736
81ecdfbb
RW
17737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17738# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17739# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17740# values after options handling.
17741ac_log="
91dc4e0a 17742This file was extended by ld $as_me 2.25.51, which was
81ecdfbb 17743generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17744
17745 CONFIG_FILES = $CONFIG_FILES
17746 CONFIG_HEADERS = $CONFIG_HEADERS
17747 CONFIG_LINKS = $CONFIG_LINKS
17748 CONFIG_COMMANDS = $CONFIG_COMMANDS
17749 $ $0 $@
e5a52504 17750
81ecdfbb
RW
17751on `(hostname || uname -n) 2>/dev/null | sed 1q`
17752"
17753
42ecbf5e
DJ
17754_ACEOF
17755
81ecdfbb
RW
17756case $ac_config_files in *"
17757"*) set x $ac_config_files; shift; ac_config_files=$*;;
17758esac
e5a52504 17759
81ecdfbb
RW
17760case $ac_config_headers in *"
17761"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17762esac
42ecbf5e 17763
42ecbf5e 17764
81ecdfbb
RW
17765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766# Files that config.status was made for.
17767config_files="$ac_config_files"
17768config_headers="$ac_config_headers"
17769config_commands="$ac_config_commands"
42ecbf5e 17770
81ecdfbb 17771_ACEOF
42ecbf5e 17772
81ecdfbb 17773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17774ac_cs_usage="\
81ecdfbb
RW
17775\`$as_me' instantiates files and other configuration actions
17776from templates according to the current configuration. Unless the files
17777and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17778
81ecdfbb 17779Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17780
17781 -h, --help print this help, then exit
81ecdfbb
RW
17782 -V, --version print version number and configuration settings, then exit
17783 -q, --quiet, --silent
17784 do not print progress messages
42ecbf5e
DJ
17785 -d, --debug don't remove temporary files
17786 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17787 --file=FILE[:TEMPLATE]
17788 instantiate the configuration file FILE
17789 --header=FILE[:TEMPLATE]
17790 instantiate the configuration header FILE
42ecbf5e
DJ
17791
17792Configuration files:
17793$config_files
17794
17795Configuration headers:
17796$config_headers
17797
17798Configuration commands:
17799$config_commands
17800
81ecdfbb 17801Report bugs to the package provider."
42ecbf5e 17802
81ecdfbb
RW
17803_ACEOF
17804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17805ac_cs_version="\\
91dc4e0a 17806ld config.status 2.25.51
81ecdfbb
RW
17807configured by $0, generated by GNU Autoconf 2.64,
17808 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17809
81ecdfbb 17810Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17811This config.status script is free software; the Free Software Foundation
17812gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17813
17814ac_pwd='$ac_pwd'
17815srcdir='$srcdir'
17816INSTALL='$INSTALL'
17817MKDIR_P='$MKDIR_P'
17818AWK='$AWK'
17819test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17820_ACEOF
17821
81ecdfbb
RW
17822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17823# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17824ac_need_defaults=:
17825while test $# != 0
17826do
17827 case $1 in
17828 --*=*)
81ecdfbb
RW
17829 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17830 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17831 ac_shift=:
252b5132 17832 ;;
81ecdfbb 17833 *)
42ecbf5e
DJ
17834 ac_option=$1
17835 ac_optarg=$2
17836 ac_shift=shift
252b5132 17837 ;;
42ecbf5e 17838 esac
252b5132 17839
42ecbf5e
DJ
17840 case $ac_option in
17841 # Handling of the options.
42ecbf5e
DJ
17842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17843 ac_cs_recheck=: ;;
81ecdfbb
RW
17844 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17845 $as_echo "$ac_cs_version"; exit ;;
17846 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17847 debug=: ;;
17848 --file | --fil | --fi | --f )
17849 $ac_shift
81ecdfbb
RW
17850 case $ac_optarg in
17851 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17852 esac
17853 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17854 ac_need_defaults=false;;
17855 --header | --heade | --head | --hea )
17856 $ac_shift
81ecdfbb
RW
17857 case $ac_optarg in
17858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17859 esac
17860 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17861 ac_need_defaults=false;;
81ecdfbb
RW
17862 --he | --h)
17863 # Conflict between --help and --header
17864 as_fn_error "ambiguous option: \`$1'
17865Try \`$0 --help' for more information.";;
17866 --help | --hel | -h )
17867 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17870 ac_cs_silent=: ;;
252b5132 17871
42ecbf5e 17872 # This is an error.
81ecdfbb
RW
17873 -*) as_fn_error "unrecognized option: \`$1'
17874Try \`$0 --help' for more information." ;;
252b5132 17875
81ecdfbb
RW
17876 *) as_fn_append ac_config_targets " $1"
17877 ac_need_defaults=false ;;
252b5132 17878
42ecbf5e
DJ
17879 esac
17880 shift
17881done
d15b04bd 17882
42ecbf5e 17883ac_configure_extra_args=
e5a52504 17884
42ecbf5e
DJ
17885if $ac_cs_silent; then
17886 exec 6>/dev/null
17887 ac_configure_extra_args="$ac_configure_extra_args --silent"
17888fi
e5a52504 17889
42ecbf5e 17890_ACEOF
81ecdfbb 17891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17892if \$ac_cs_recheck; then
81ecdfbb
RW
17893 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17894 shift
17895 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17896 CONFIG_SHELL='$SHELL'
17897 export CONFIG_SHELL
17898 exec "\$@"
42ecbf5e
DJ
17899fi
17900
17901_ACEOF
81ecdfbb
RW
17902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17903exec 5>>config.log
17904{
17905 echo
17906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17907## Running $as_me. ##
17908_ASBOX
17909 $as_echo "$ac_log"
17910} >&5
42ecbf5e 17911
81ecdfbb
RW
17912_ACEOF
17913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17914#
81ecdfbb 17915# INIT-COMMANDS
252b5132 17916#
42ecbf5e 17917AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17918
17919
17920# The HP-UX ksh and POSIX shell print the target directory to stdout
17921# if CDPATH is set.
17922(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17923
17924sed_quote_subst='$sed_quote_subst'
17925double_quote_subst='$double_quote_subst'
17926delay_variable_subst='$delay_variable_subst'
3725885a
RW
17927macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17928macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17929enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17930enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17931pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17932enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17933SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17934ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17935host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17936host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17937host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17938build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17939build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17940build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17941SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17942Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17943GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17944EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17945FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17946LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17947NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17948LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17949max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17950ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17951exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17952lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17953lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17954lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17955reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17956reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17957OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17958deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17959file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17960AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17961AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17962STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17963RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17964old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17965old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17966old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17967lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17968CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17969CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17970compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17971GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17972lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17973lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17974lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17975lt_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"`'
17976objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17977MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17978lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17979lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17980lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17981lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17982lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17983need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17984DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17985NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17986LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17987OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17988OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17989libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17990shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17991extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17992archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17993enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17994export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17995whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17996compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17997old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17998old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17999archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18000archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18001module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18002module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18003with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18004allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18005no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18006hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18007hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18008hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18009hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18010hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18011hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18012hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18013hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18014inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18015link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18016fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18017always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18018export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18019exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18020include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18021prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18022file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18023variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18024need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18025need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18026version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18027runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18028shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18029shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18030libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18031library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18032soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18033install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18034postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18035postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18036finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18037finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18038hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18039sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18040sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18041hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18042enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18043enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18044enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18045old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18046striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18047compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18048predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18049postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18050predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18051postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18052compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18053LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18054reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18055reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18056old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18057compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18058GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18059lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18060lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18061lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18062lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18063lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18064archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18065enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18066export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18067whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18068compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18069old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18070old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18071archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18072archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18073module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18074module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18075with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18076allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18077no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18078hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18079hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18080hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18081hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18082hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18083hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18084hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18085hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18086inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18087link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18088fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18089always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18090export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18091exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18092include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18093prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18094file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18095hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18096compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18097predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18098postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18099predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18100postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18101compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18102
18103LTCC='$LTCC'
18104LTCFLAGS='$LTCFLAGS'
18105compiler='$compiler_DEFAULT'
18106
3725885a
RW
18107# A function that is used when there is no print builtin or printf.
18108func_fallback_echo ()
18109{
18110 eval 'cat <<_LTECHO_EOF
18111\$1
18112_LTECHO_EOF'
18113}
18114
d7040cdb 18115# Quote evaled strings.
3725885a
RW
18116for var in SHELL \
18117ECHO \
18118SED \
d7040cdb
SE
18119GREP \
18120EGREP \
18121FGREP \
18122LD \
18123NM \
18124LN_S \
18125lt_SP2NL \
18126lt_NL2SP \
18127reload_flag \
b214d478 18128OBJDUMP \
d7040cdb
SE
18129deplibs_check_method \
18130file_magic_cmd \
18131AR \
18132AR_FLAGS \
18133STRIP \
18134RANLIB \
18135CC \
18136CFLAGS \
18137compiler \
18138lt_cv_sys_global_symbol_pipe \
18139lt_cv_sys_global_symbol_to_cdecl \
18140lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18141lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18142lt_prog_compiler_no_builtin_flag \
18143lt_prog_compiler_wl \
18144lt_prog_compiler_pic \
18145lt_prog_compiler_static \
18146lt_cv_prog_compiler_c_o \
18147need_locks \
b214d478
SE
18148DSYMUTIL \
18149NMEDIT \
18150LIPO \
18151OTOOL \
18152OTOOL64 \
d7040cdb
SE
18153shrext_cmds \
18154export_dynamic_flag_spec \
18155whole_archive_flag_spec \
18156compiler_needs_object \
18157with_gnu_ld \
18158allow_undefined_flag \
18159no_undefined_flag \
18160hardcode_libdir_flag_spec \
18161hardcode_libdir_flag_spec_ld \
18162hardcode_libdir_separator \
18163fix_srcfile_path \
18164exclude_expsyms \
18165include_expsyms \
18166file_list_spec \
18167variables_saved_for_relink \
18168libname_spec \
18169library_names_spec \
18170soname_spec \
3725885a 18171install_override_mode \
d7040cdb
SE
18172finish_eval \
18173old_striplib \
3cb62297
L
18174striplib \
18175compiler_lib_search_dirs \
18176predep_objects \
18177postdep_objects \
18178predeps \
18179postdeps \
18180compiler_lib_search_path \
18181LD_CXX \
18182reload_flag_CXX \
18183compiler_CXX \
18184lt_prog_compiler_no_builtin_flag_CXX \
18185lt_prog_compiler_wl_CXX \
18186lt_prog_compiler_pic_CXX \
18187lt_prog_compiler_static_CXX \
18188lt_cv_prog_compiler_c_o_CXX \
18189export_dynamic_flag_spec_CXX \
18190whole_archive_flag_spec_CXX \
18191compiler_needs_object_CXX \
18192with_gnu_ld_CXX \
18193allow_undefined_flag_CXX \
18194no_undefined_flag_CXX \
18195hardcode_libdir_flag_spec_CXX \
18196hardcode_libdir_flag_spec_ld_CXX \
18197hardcode_libdir_separator_CXX \
18198fix_srcfile_path_CXX \
18199exclude_expsyms_CXX \
18200include_expsyms_CXX \
18201file_list_spec_CXX \
18202compiler_lib_search_dirs_CXX \
18203predep_objects_CXX \
18204postdep_objects_CXX \
18205predeps_CXX \
18206postdeps_CXX \
18207compiler_lib_search_path_CXX; do
3725885a 18208 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18209 *[\\\\\\\`\\"\\\$]*)
3725885a 18210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18211 ;;
18212 *)
18213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18214 ;;
18215 esac
18216done
18217
18218# Double-quote double-evaled strings.
18219for var in reload_cmds \
18220old_postinstall_cmds \
18221old_postuninstall_cmds \
18222old_archive_cmds \
18223extract_expsyms_cmds \
18224old_archive_from_new_cmds \
18225old_archive_from_expsyms_cmds \
18226archive_cmds \
18227archive_expsym_cmds \
18228module_cmds \
18229module_expsym_cmds \
18230export_symbols_cmds \
18231prelink_cmds \
18232postinstall_cmds \
18233postuninstall_cmds \
18234finish_cmds \
18235sys_lib_search_path_spec \
3cb62297
L
18236sys_lib_dlsearch_path_spec \
18237reload_cmds_CXX \
18238old_archive_cmds_CXX \
18239old_archive_from_new_cmds_CXX \
18240old_archive_from_expsyms_cmds_CXX \
18241archive_cmds_CXX \
18242archive_expsym_cmds_CXX \
18243module_cmds_CXX \
18244module_expsym_cmds_CXX \
18245export_symbols_cmds_CXX \
18246prelink_cmds_CXX; do
3725885a 18247 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18248 *[\\\\\\\`\\"\\\$]*)
3725885a 18249 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18250 ;;
18251 *)
18252 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18253 ;;
18254 esac
18255done
18256
d7040cdb
SE
18257ac_aux_dir='$ac_aux_dir'
18258xsi_shell='$xsi_shell'
18259lt_shell_append='$lt_shell_append'
18260
18261# See if we are running on zsh, and set the options which allow our
18262# commands through without removal of \ escapes INIT.
18263if test -n "\${ZSH_VERSION+set}" ; then
18264 setopt NO_GLOB_SUBST
18265fi
18266
18267
18268 PACKAGE='$PACKAGE'
18269 VERSION='$VERSION'
18270 TIMESTAMP='$TIMESTAMP'
18271 RM='$RM'
18272 ofile='$ofile'
18273
18274
18275
3cb62297
L
18276
18277
20e95c23
DJ
18278# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18279 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18280 # from automake.
18281 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18282 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18283 LINGUAS="${LINGUAS-%UNSET%}"
18284
42ecbf5e
DJ
18285
18286_ACEOF
18287
81ecdfbb 18288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18289
81ecdfbb 18290# Handling of arguments.
42ecbf5e 18291for ac_config_target in $ac_config_targets
252b5132 18292do
81ecdfbb
RW
18293 case $ac_config_target in
18294 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18295 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18296 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb
RW
18297 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18298 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18299 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18300
18301 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18302 esac
18303done
18304
81ecdfbb 18305
42ecbf5e
DJ
18306# If the user did not use the arguments to specify the items to instantiate,
18307# then the envvar interface is used. Set only those that are not.
18308# We use the long form for the default assignment because of an extremely
18309# bizarre bug on SunOS 4.1.3.
18310if $ac_need_defaults; then
18311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18314fi
18315
18316# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18317# simply because there is no reason against having it here, and in addition,
42ecbf5e 18318# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18319# Hook for its removal unless debugging.
18320# Note that there is a small window in which the directory will not be cleaned:
18321# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18322$debug ||
18323{
81ecdfbb
RW
18324 tmp=
18325 trap 'exit_status=$?
18326 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18327' 0
18328 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18329}
42ecbf5e 18330# Create a (secure) tmp directory for tmp files.
e5a52504 18331
42ecbf5e 18332{
81ecdfbb 18333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18334 test -n "$tmp" && test -d "$tmp"
18335} ||
18336{
81ecdfbb
RW
18337 tmp=./conf$$-$RANDOM
18338 (umask 077 && mkdir "$tmp")
18339} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18340
18341# Set up the scripts for CONFIG_FILES section.
18342# No need to generate them if there are no CONFIG_FILES.
18343# This happens for instance with `./config.status config.h'.
18344if test -n "$CONFIG_FILES"; then
18345
18346if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18347 ac_cs_awk_getline=:
18348 ac_cs_awk_pipe_init=
18349 ac_cs_awk_read_file='
18350 while ((getline aline < (F[key])) > 0)
18351 print(aline)
18352 close(F[key])'
18353 ac_cs_awk_pipe_fini=
18354else
18355 ac_cs_awk_getline=false
18356 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18357 ac_cs_awk_read_file='
18358 print "|#_!!_#|"
18359 print "cat " F[key] " &&"
18360 '$ac_cs_awk_pipe_init
18361 # The final `:' finishes the AND list.
18362 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18363fi
18364ac_cr=`echo X | tr X '\015'`
18365# On cygwin, bash can eat \r inside `` if the user requested igncr.
18366# But we know of no other shell where ac_cr would be empty at this
18367# point, so we can use a bashism as a fallback.
18368if test "x$ac_cr" = x; then
18369 eval ac_cr=\$\'\\r\'
18370fi
18371ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18372if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18373 ac_cs_awk_cr='\r'
18374else
18375 ac_cs_awk_cr=$ac_cr
18376fi
18377
18378echo 'BEGIN {' >"$tmp/subs1.awk" &&
18379_ACEOF
18380
18381# Create commands to substitute file output variables.
42ecbf5e 18382{
81ecdfbb
RW
18383 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18384 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18385 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18386 echo "_ACAWK" &&
18387 echo "_ACEOF"
18388} >conf$$files.sh &&
18389. ./conf$$files.sh ||
18390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18391rm -f conf$$files.sh
e5a52504 18392
81ecdfbb
RW
18393{
18394 echo "cat >conf$$subs.awk <<_ACEOF" &&
18395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18396 echo "_ACEOF"
18397} >conf$$subs.sh ||
18398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18399ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18400ac_delim='%!_!# '
18401for ac_last_try in false false false false false :; do
18402 . ./conf$$subs.sh ||
18403 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18404
18405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18406 if test $ac_delim_n = $ac_delim_num; then
18407 break
18408 elif $ac_last_try; then
18409 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18410 else
18411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18412 fi
18413done
18414rm -f conf$$subs.sh
18415
18416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18417cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18418_ACEOF
18419sed -n '
18420h
18421s/^/S["/; s/!.*/"]=/
18422p
18423g
18424s/^[^!]*!//
18425:repl
18426t repl
18427s/'"$ac_delim"'$//
18428t delim
18429:nl
18430h
18431s/\(.\{148\}\).*/\1/
18432t more1
18433s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18434p
18435n
18436b repl
18437:more1
18438s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18439p
18440g
18441s/.\{148\}//
18442t nl
18443:delim
18444h
18445s/\(.\{148\}\).*/\1/
18446t more2
18447s/["\\]/\\&/g; s/^/"/; s/$/"/
18448p
18449b
18450:more2
18451s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18452p
18453g
18454s/.\{148\}//
18455t delim
18456' <conf$$subs.awk | sed '
18457/^[^""]/{
18458 N
18459 s/\n//
18460}
18461' >>$CONFIG_STATUS || ac_write_fail=1
18462rm -f conf$$subs.awk
18463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18464_ACAWK
18465cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18466 for (key in S) S_is_set[key] = 1
18467 FS = "\a"
18468 \$ac_cs_awk_pipe_init
18469}
18470{
18471 line = $ 0
18472 nfields = split(line, field, "@")
18473 substed = 0
18474 len = length(field[1])
18475 for (i = 2; i < nfields; i++) {
18476 key = field[i]
18477 keylen = length(key)
18478 if (S_is_set[key]) {
18479 value = S[key]
18480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18481 len += length(value) + length(field[++i])
18482 substed = 1
18483 } else
18484 len += 1 + keylen
18485 }
18486 if (nfields == 3 && !substed) {
18487 key = field[2]
18488 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18489 \$ac_cs_awk_read_file
18490 next
18491 }
18492 }
18493 print line
18494}
18495\$ac_cs_awk_pipe_fini
18496_ACAWK
18497_ACEOF
18498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18499if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18500 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18501else
18502 cat
18503fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18504 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18505_ACEOF
d15b04bd 18506
81ecdfbb
RW
18507# VPATH may cause trouble with some makes, so we remove $(srcdir),
18508# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18509# trailing colons and then remove the whole line if VPATH becomes empty
18510# (actually we leave an empty line to preserve line numbers).
18511if test "x$srcdir" = x.; then
18512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18513s/:*\$(srcdir):*/:/
18514s/:*\${srcdir}:*/:/
18515s/:*@srcdir@:*/:/
18516s/^\([^=]*=[ ]*\):*/\1/
18517s/:*$//
18518s/^[^=]*=[ ]*$//
18519}'
18520fi
18521
18522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18523fi # test -n "$CONFIG_FILES"
42ecbf5e 18524
81ecdfbb
RW
18525# Set up the scripts for CONFIG_HEADERS section.
18526# No need to generate them if there are no CONFIG_HEADERS.
18527# This happens for instance with `./config.status Makefile'.
18528if test -n "$CONFIG_HEADERS"; then
18529cat >"$tmp/defines.awk" <<\_ACAWK ||
18530BEGIN {
18531_ACEOF
42ecbf5e 18532
81ecdfbb
RW
18533# Transform confdefs.h into an awk script `defines.awk', embedded as
18534# here-document in config.status, that substitutes the proper values into
18535# config.h.in to produce config.h.
252b5132 18536
81ecdfbb
RW
18537# Create a delimiter string that does not exist in confdefs.h, to ease
18538# handling of long lines.
18539ac_delim='%!_!# '
18540for ac_last_try in false false :; do
18541 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18542 if test -z "$ac_t"; then
18543 break
18544 elif $ac_last_try; then
18545 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18546 else
18547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18548 fi
18549done
18550
18551# For the awk script, D is an array of macro values keyed by name,
18552# likewise P contains macro parameters if any. Preserve backslash
18553# newline sequences.
18554
18555ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18556sed -n '
18557s/.\{148\}/&'"$ac_delim"'/g
18558t rset
18559:rset
18560s/^[ ]*#[ ]*define[ ][ ]*/ /
18561t def
18562d
18563:def
18564s/\\$//
18565t bsnl
18566s/["\\]/\\&/g
18567s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18568D["\1"]=" \3"/p
18569s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18570d
18571:bsnl
18572s/["\\]/\\&/g
18573s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18574D["\1"]=" \3\\\\\\n"\\/p
18575t cont
18576s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18577t cont
18578d
18579:cont
18580n
18581s/.\{148\}/&'"$ac_delim"'/g
18582t clear
18583:clear
18584s/\\$//
18585t bsnlc
18586s/["\\]/\\&/g; s/^/"/; s/$/"/p
18587d
18588:bsnlc
18589s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18590b cont
18591' <confdefs.h | sed '
18592s/'"$ac_delim"'/"\\\
18593"/g' >>$CONFIG_STATUS || ac_write_fail=1
18594
18595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18596 for (key in D) D_is_set[key] = 1
18597 FS = "\a"
18598}
18599/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18600 line = \$ 0
18601 split(line, arg, " ")
18602 if (arg[1] == "#") {
18603 defundef = arg[2]
18604 mac1 = arg[3]
18605 } else {
18606 defundef = substr(arg[1], 2)
18607 mac1 = arg[2]
18608 }
18609 split(mac1, mac2, "(") #)
18610 macro = mac2[1]
18611 prefix = substr(line, 1, index(line, defundef) - 1)
18612 if (D_is_set[macro]) {
18613 # Preserve the white space surrounding the "#".
18614 print prefix "define", macro P[macro] D[macro]
18615 next
18616 } else {
18617 # Replace #undef with comments. This is necessary, for example,
18618 # in the case of _POSIX_SOURCE, which is predefined and required
18619 # on some systems where configure will not decide to define it.
18620 if (defundef == "undef") {
18621 print "/*", prefix defundef, macro, "*/"
18622 next
18623 }
18624 }
18625}
18626{ print }
18627_ACAWK
42ecbf5e 18628_ACEOF
81ecdfbb
RW
18629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18630 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18631fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18632
81ecdfbb
RW
18633
18634eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18635shift
18636for ac_tag
18637do
18638 case $ac_tag in
18639 :[FHLC]) ac_mode=$ac_tag; continue;;
18640 esac
18641 case $ac_mode$ac_tag in
18642 :[FHL]*:*);;
18643 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18644 :[FH]-) ac_tag=-:-;;
18645 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18646 esac
18647 ac_save_IFS=$IFS
18648 IFS=:
18649 set x $ac_tag
18650 IFS=$ac_save_IFS
18651 shift
18652 ac_file=$1
18653 shift
18654
18655 case $ac_mode in
18656 :L) ac_source=$1;;
18657 :[FH])
18658 ac_file_inputs=
18659 for ac_f
18660 do
18661 case $ac_f in
18662 -) ac_f="$tmp/stdin";;
18663 *) # Look for the file first in the build tree, then in the source tree
18664 # (if the path is not absolute). The absolute path cannot be DOS-style,
18665 # because $ac_f cannot contain `:'.
18666 test -f "$ac_f" ||
18667 case $ac_f in
18668 [\\/$]*) false;;
18669 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18670 esac ||
18671 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18672 esac
18673 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18674 as_fn_append ac_file_inputs " '$ac_f'"
18675 done
18676
18677 # Let's still pretend it is `configure' which instantiates (i.e., don't
18678 # use $as_me), people would be surprised to read:
18679 # /* config.h. Generated by config.status. */
18680 configure_input='Generated from '`
18681 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18682 `' by configure.'
18683 if test x"$ac_file" != x-; then
18684 configure_input="$ac_file. $configure_input"
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18686$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18687 fi
81ecdfbb
RW
18688 # Neutralize special characters interpreted by sed in replacement strings.
18689 case $configure_input in #(
18690 *\&* | *\|* | *\\* )
18691 ac_sed_conf_input=`$as_echo "$configure_input" |
18692 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18693 *) ac_sed_conf_input=$configure_input;;
18694 esac
252b5132 18695
81ecdfbb
RW
18696 case $ac_tag in
18697 *:-:* | *:-) cat >"$tmp/stdin" \
18698 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18699 esac
18700 ;;
252b5132
RH
18701 esac
18702
81ecdfbb 18703 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18704$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18705 X"$ac_file" : 'X\(//\)[^/]' \| \
18706 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18708$as_echo X"$ac_file" |
18709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18710 s//\1/
18711 q
18712 }
18713 /^X\(\/\/\)[^/].*/{
18714 s//\1/
18715 q
18716 }
18717 /^X\(\/\/\)$/{
18718 s//\1/
18719 q
18720 }
18721 /^X\(\/\).*/{
18722 s//\1/
18723 q
18724 }
18725 s/.*/./; q'`
18726 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18727 ac_builddir=.
18728
81ecdfbb
RW
18729case "$ac_dir" in
18730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18731*)
18732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18733 # A ".." for each directory in $ac_dir_suffix.
18734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18735 case $ac_top_builddir_sub in
18736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18738 esac ;;
18739esac
18740ac_abs_top_builddir=$ac_pwd
18741ac_abs_builddir=$ac_pwd$ac_dir_suffix
18742# for backward compatibility:
18743ac_top_builddir=$ac_top_build_prefix
252b5132 18744
42ecbf5e 18745case $srcdir in
81ecdfbb 18746 .) # We are building in place.
42ecbf5e 18747 ac_srcdir=.
81ecdfbb
RW
18748 ac_top_srcdir=$ac_top_builddir_sub
18749 ac_abs_top_srcdir=$ac_pwd ;;
18750 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18751 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18752 ac_top_srcdir=$srcdir
18753 ac_abs_top_srcdir=$srcdir ;;
18754 *) # Relative name.
18755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18756 ac_top_srcdir=$ac_top_build_prefix$srcdir
18757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18758esac
81ecdfbb 18759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18760
252b5132 18761
81ecdfbb
RW
18762 case $ac_mode in
18763 :F)
18764 #
18765 # CONFIG_FILE
18766 #
e5a52504 18767
42ecbf5e
DJ
18768 case $INSTALL in
18769 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18770 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18771 esac
18772 ac_MKDIR_P=$MKDIR_P
18773 case $MKDIR_P in
18774 [\\/$]* | ?:[\\/]* ) ;;
18775 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18776 esac
81ecdfbb 18777_ACEOF
e5a52504 18778
81ecdfbb
RW
18779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780# If the template does not know about datarootdir, expand it.
18781# FIXME: This hack should be removed a few years after 2.60.
18782ac_datarootdir_hack=; ac_datarootdir_seen=
18783ac_sed_dataroot='
18784/datarootdir/ {
18785 p
18786 q
18787}
18788/@datadir@/p
18789/@docdir@/p
18790/@infodir@/p
18791/@localedir@/p
18792/@mandir@/p'
18793case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18794*datarootdir*) ac_datarootdir_seen=yes;;
18795*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18797$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18798_ACEOF
18799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18800 ac_datarootdir_hack='
18801 s&@datadir@&$datadir&g
18802 s&@docdir@&$docdir&g
18803 s&@infodir@&$infodir&g
18804 s&@localedir@&$localedir&g
18805 s&@mandir@&$mandir&g
18806 s&\\\${datarootdir}&$datarootdir&g' ;;
18807esac
42ecbf5e 18808_ACEOF
81ecdfbb
RW
18809
18810# Neutralize VPATH when `$srcdir' = `.'.
18811# Shell code in configure.ac might set extrasub.
18812# FIXME: do we really want to maintain this feature?
18813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18815$extrasub
18816_ACEOF
81ecdfbb 18817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18818:t
18819/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18820s|@configure_input@|$ac_sed_conf_input|;t t
18821s&@top_builddir@&$ac_top_builddir_sub&;t t
18822s&@top_build_prefix@&$ac_top_build_prefix&;t t
18823s&@srcdir@&$ac_srcdir&;t t
18824s&@abs_srcdir@&$ac_abs_srcdir&;t t
18825s&@top_srcdir@&$ac_top_srcdir&;t t
18826s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18827s&@builddir@&$ac_builddir&;t t
18828s&@abs_builddir@&$ac_abs_builddir&;t t
18829s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18830s&@INSTALL@&$ac_INSTALL&;t t
18831s&@MKDIR_P@&$ac_MKDIR_P&;t t
18832$ac_datarootdir_hack
18833"
18834eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18835if $ac_cs_awk_getline; then
18836 $AWK -f "$tmp/subs.awk"
18837else
18838 $AWK -f "$tmp/subs.awk" | $SHELL
18839fi >$tmp/out \
18840 || as_fn_error "could not create $ac_file" "$LINENO" 5
18841
18842test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18843 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18846which seems to be undefined. Please make sure it is defined." >&5
18847$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18848which seems to be undefined. Please make sure it is defined." >&2;}
18849
18850 rm -f "$tmp/stdin"
42ecbf5e 18851 case $ac_file in
81ecdfbb
RW
18852 -) cat "$tmp/out" && rm -f "$tmp/out";;
18853 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18854 esac \
18855 || as_fn_error "could not create $ac_file" "$LINENO" 5
18856 ;;
18857 :H)
18858 #
18859 # CONFIG_HEADER
18860 #
42ecbf5e 18861 if test x"$ac_file" != x-; then
81ecdfbb
RW
18862 {
18863 $as_echo "/* $configure_input */" \
18864 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18865 } >"$tmp/config.h" \
18866 || as_fn_error "could not create $ac_file" "$LINENO" 5
18867 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18869$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18870 else
81ecdfbb
RW
18871 rm -f "$ac_file"
18872 mv "$tmp/config.h" "$ac_file" \
18873 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18874 fi
42ecbf5e 18875 else
81ecdfbb
RW
18876 $as_echo "/* $configure_input */" \
18877 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18878 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18879 fi
81ecdfbb
RW
18880# Compute "$ac_file"'s index in $config_headers.
18881_am_arg="$ac_file"
42ecbf5e
DJ
18882_am_stamp_count=1
18883for _am_header in $config_headers :; do
18884 case $_am_header in
81ecdfbb 18885 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18886 break ;;
18887 * )
18888 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18889 esac
18890done
81ecdfbb
RW
18891echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18892$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18893 X"$_am_arg" : 'X\(//\)[^/]' \| \
18894 X"$_am_arg" : 'X\(//\)$' \| \
18895 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18896$as_echo X"$_am_arg" |
18897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18898 s//\1/
18899 q
18900 }
18901 /^X\(\/\/\)[^/].*/{
18902 s//\1/
18903 q
18904 }
18905 /^X\(\/\/\)$/{
18906 s//\1/
18907 q
18908 }
18909 /^X\(\/\).*/{
18910 s//\1/
18911 q
18912 }
18913 s/.*/./; q'`/stamp-h$_am_stamp_count
18914 ;;
42ecbf5e 18915
81ecdfbb
RW
18916 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18917$as_echo "$as_me: executing $ac_file commands" >&6;}
18918 ;;
18919 esac
42ecbf5e
DJ
18920
18921
81ecdfbb
RW
18922 case $ac_file$ac_mode in
18923 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18924 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18925 # are listed without --file. Let's play safe and only enable the eval
18926 # if we detect the quoting.
18927 case $CONFIG_FILES in
18928 *\'*) eval set x "$CONFIG_FILES" ;;
18929 *) set x $CONFIG_FILES ;;
18930 esac
18931 shift
18932 for mf
18933 do
18934 # Strip MF so we end up with the name of the file.
18935 mf=`echo "$mf" | sed -e 's/:.*$//'`
18936 # Check whether this is an Automake generated Makefile or not.
18937 # We used to match only the files named `Makefile.in', but
18938 # some people rename them; so instead we look at the file content.
18939 # Grep'ing the first line is not enough: some people post-process
18940 # each Makefile.in and add a new line on top of each file to say so.
18941 # Grep'ing the whole file is not good either: AIX grep has a line
18942 # limit of 2048, but all sed's we know have understand at least 4000.
18943 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18944 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18945$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18946 X"$mf" : 'X\(//\)[^/]' \| \
18947 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18948 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18949$as_echo X"$mf" |
18950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18951 s//\1/
18952 q
18953 }
18954 /^X\(\/\/\)[^/].*/{
18955 s//\1/
18956 q
18957 }
18958 /^X\(\/\/\)$/{
18959 s//\1/
18960 q
18961 }
18962 /^X\(\/\).*/{
18963 s//\1/
18964 q
18965 }
18966 s/.*/./; q'`
18967 else
18968 continue
18969 fi
18970 # Extract the definition of DEPDIR, am__include, and am__quote
18971 # from the Makefile without running `make'.
18972 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18973 test -z "$DEPDIR" && continue
18974 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18975 test -z "am__include" && continue
18976 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18977 # When using ansi2knr, U may be empty or an underscore; expand it
18978 U=`sed -n 's/^U = //p' < "$mf"`
18979 # Find all dependency output files, they are included files with
18980 # $(DEPDIR) in their names. We invoke sed twice because it is the
18981 # simplest approach to changing $(DEPDIR) to its actual value in the
18982 # expansion.
18983 for file in `sed -n "
18984 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18985 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18986 # Make sure the directory exists.
18987 test -f "$dirpart/$file" && continue
18988 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18989$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18990 X"$file" : 'X\(//\)[^/]' \| \
18991 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18992 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18993$as_echo X"$file" |
18994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18995 s//\1/
18996 q
18997 }
18998 /^X\(\/\/\)[^/].*/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)$/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\).*/{
19007 s//\1/
19008 q
19009 }
19010 s/.*/./; q'`
19011 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19012 # echo "creating $dirpart/$file"
19013 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19014 done
42ecbf5e 19015 done
81ecdfbb 19016}
d7040cdb 19017 ;;
81ecdfbb 19018 "libtool":C)
d7040cdb
SE
19019
19020 # See if we are running on zsh, and set the options which allow our
19021 # commands through without removal of \ escapes.
19022 if test -n "${ZSH_VERSION+set}" ; then
19023 setopt NO_GLOB_SUBST
19024 fi
19025
19026 cfgfile="${ofile}T"
19027 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19028 $RM "$cfgfile"
19029
19030 cat <<_LT_EOF >> "$cfgfile"
19031#! $SHELL
19032
19033# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19034# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19035# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19036# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19037#
b214d478 19038# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19039# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19040# Written by Gordon Matzigkeit, 1996
d7040cdb 19041#
b214d478 19042# This file is part of GNU Libtool.
d7040cdb 19043#
b214d478
SE
19044# GNU Libtool is free software; you can redistribute it and/or
19045# modify it under the terms of the GNU General Public License as
19046# published by the Free Software Foundation; either version 2 of
19047# the License, or (at your option) any later version.
d7040cdb 19048#
b214d478
SE
19049# As a special exception to the GNU General Public License,
19050# if you distribute this file as part of a program or library that
19051# is built using GNU Libtool, you may include this file under the
19052# same distribution terms that you use for the rest of that program.
d7040cdb 19053#
b214d478
SE
19054# GNU Libtool is distributed in the hope that it will be useful,
19055# but WITHOUT ANY WARRANTY; without even the implied warranty of
19056# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19057# GNU General Public License for more details.
d7040cdb 19058#
b214d478
SE
19059# You should have received a copy of the GNU General Public License
19060# along with GNU Libtool; see the file COPYING. If not, a copy
19061# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19062# obtained by writing to the Free Software Foundation, Inc.,
19063# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19064
19065
19066# The names of the tagged configurations supported by this script.
3cb62297 19067available_tags="CXX "
d7040cdb
SE
19068
19069# ### BEGIN LIBTOOL CONFIG
19070
19071# Which release of libtool.m4 was used?
19072macro_version=$macro_version
19073macro_revision=$macro_revision
19074
19075# Whether or not to build shared libraries.
19076build_libtool_libs=$enable_shared
19077
19078# Whether or not to build static libraries.
19079build_old_libs=$enable_static
19080
19081# What type of objects to build.
19082pic_mode=$pic_mode
19083
19084# Whether or not to optimize for fast installation.
19085fast_install=$enable_fast_install
19086
3725885a
RW
19087# Shell to use when invoking shell scripts.
19088SHELL=$lt_SHELL
19089
19090# An echo program that protects backslashes.
19091ECHO=$lt_ECHO
19092
d7040cdb
SE
19093# The host system.
19094host_alias=$host_alias
19095host=$host
19096host_os=$host_os
19097
19098# The build system.
19099build_alias=$build_alias
19100build=$build
19101build_os=$build_os
19102
19103# A sed program that does not truncate output.
19104SED=$lt_SED
19105
19106# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19107Xsed="\$SED -e 1s/^X//"
19108
19109# A grep program that handles long lines.
19110GREP=$lt_GREP
19111
19112# An ERE matcher.
19113EGREP=$lt_EGREP
19114
19115# A literal string matcher.
19116FGREP=$lt_FGREP
19117
19118# A BSD- or MS-compatible name lister.
19119NM=$lt_NM
19120
19121# Whether we need soft or hard links.
19122LN_S=$lt_LN_S
19123
19124# What is the maximum length of a command?
19125max_cmd_len=$max_cmd_len
19126
19127# Object file suffix (normally "o").
19128objext=$ac_objext
19129
19130# Executable file suffix (normally "").
19131exeext=$exeext
19132
19133# whether the shell understands "unset".
19134lt_unset=$lt_unset
19135
19136# turn spaces into newlines.
19137SP2NL=$lt_lt_SP2NL
19138
19139# turn newlines into spaces.
19140NL2SP=$lt_lt_NL2SP
19141
b214d478
SE
19142# An object symbol dumper.
19143OBJDUMP=$lt_OBJDUMP
19144
d7040cdb
SE
19145# Method to check whether dependent libraries are shared objects.
19146deplibs_check_method=$lt_deplibs_check_method
19147
19148# Command to use when deplibs_check_method == "file_magic".
19149file_magic_cmd=$lt_file_magic_cmd
19150
19151# The archiver.
19152AR=$lt_AR
19153AR_FLAGS=$lt_AR_FLAGS
19154
19155# A symbol stripping program.
19156STRIP=$lt_STRIP
19157
19158# Commands used to install an old-style archive.
19159RANLIB=$lt_RANLIB
19160old_postinstall_cmds=$lt_old_postinstall_cmds
19161old_postuninstall_cmds=$lt_old_postuninstall_cmds
19162
3725885a
RW
19163# Whether to use a lock for old archive extraction.
19164lock_old_archive_extraction=$lock_old_archive_extraction
19165
d7040cdb
SE
19166# A C compiler.
19167LTCC=$lt_CC
19168
19169# LTCC compiler flags.
19170LTCFLAGS=$lt_CFLAGS
19171
19172# Take the output of nm and produce a listing of raw symbols and C names.
19173global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19174
19175# Transform the output of nm in a proper C declaration.
19176global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19177
19178# Transform the output of nm in a C name address pair.
19179global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19180
b214d478
SE
19181# Transform the output of nm in a C name address pair when lib prefix is needed.
19182global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19183
d7040cdb
SE
19184# The name of the directory that contains temporary libtool files.
19185objdir=$objdir
19186
d7040cdb
SE
19187# Used to examine libraries when file_magic_cmd begins with "file".
19188MAGIC_CMD=$MAGIC_CMD
19189
19190# Must we lock files when doing compilation?
19191need_locks=$lt_need_locks
19192
b214d478
SE
19193# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19194DSYMUTIL=$lt_DSYMUTIL
19195
19196# Tool to change global to local symbols on Mac OS X.
19197NMEDIT=$lt_NMEDIT
19198
19199# Tool to manipulate fat objects and archives on Mac OS X.
19200LIPO=$lt_LIPO
19201
19202# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19203OTOOL=$lt_OTOOL
19204
19205# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19206OTOOL64=$lt_OTOOL64
19207
d7040cdb
SE
19208# Old archive suffix (normally "a").
19209libext=$libext
19210
19211# Shared library suffix (normally ".so").
19212shrext_cmds=$lt_shrext_cmds
19213
19214# The commands to extract the exported symbol list from a shared archive.
19215extract_expsyms_cmds=$lt_extract_expsyms_cmds
19216
19217# Variables whose values should be saved in libtool wrapper scripts and
19218# restored at link time.
19219variables_saved_for_relink=$lt_variables_saved_for_relink
19220
19221# Do we need the "lib" prefix for modules?
19222need_lib_prefix=$need_lib_prefix
19223
19224# Do we need a version for libraries?
19225need_version=$need_version
19226
19227# Library versioning type.
19228version_type=$version_type
19229
19230# Shared library runtime path variable.
19231runpath_var=$runpath_var
19232
19233# Shared library path variable.
19234shlibpath_var=$shlibpath_var
19235
19236# Is shlibpath searched before the hard-coded library search path?
19237shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19238
19239# Format of library name prefix.
19240libname_spec=$lt_libname_spec
19241
19242# List of archive names. First name is the real one, the rest are links.
19243# The last name is the one that the linker finds with -lNAME
19244library_names_spec=$lt_library_names_spec
19245
19246# The coded name of the library, if different from the real name.
19247soname_spec=$lt_soname_spec
19248
3725885a
RW
19249# Permission mode override for installation of shared libraries.
19250install_override_mode=$lt_install_override_mode
19251
d7040cdb
SE
19252# Command to use after installation of a shared archive.
19253postinstall_cmds=$lt_postinstall_cmds
19254
19255# Command to use after uninstallation of a shared archive.
19256postuninstall_cmds=$lt_postuninstall_cmds
19257
19258# Commands used to finish a libtool library installation in a directory.
19259finish_cmds=$lt_finish_cmds
19260
19261# As "finish_cmds", except a single script fragment to be evaled but
19262# not shown.
19263finish_eval=$lt_finish_eval
19264
19265# Whether we should hardcode library paths into libraries.
19266hardcode_into_libs=$hardcode_into_libs
19267
19268# Compile-time system search path for libraries.
19269sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19270
19271# Run-time system search path for libraries.
19272sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19273
19274# Whether dlopen is supported.
19275dlopen_support=$enable_dlopen
19276
19277# Whether dlopen of programs is supported.
19278dlopen_self=$enable_dlopen_self
19279
19280# Whether dlopen of statically linked programs is supported.
19281dlopen_self_static=$enable_dlopen_self_static
19282
19283# Commands to strip libraries.
19284old_striplib=$lt_old_striplib
19285striplib=$lt_striplib
19286
19287
19288# The linker used to build libraries.
19289LD=$lt_LD
19290
3725885a
RW
19291# How to create reloadable object files.
19292reload_flag=$lt_reload_flag
19293reload_cmds=$lt_reload_cmds
19294
d7040cdb
SE
19295# Commands used to build an old-style archive.
19296old_archive_cmds=$lt_old_archive_cmds
19297
19298# A language specific compiler.
19299CC=$lt_compiler
19300
19301# Is the compiler the GNU compiler?
19302with_gcc=$GCC
19303
19304# Compiler flag to turn off builtin functions.
19305no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19306
19307# How to pass a linker flag through the compiler.
19308wl=$lt_lt_prog_compiler_wl
19309
19310# Additional compiler flags for building library objects.
19311pic_flag=$lt_lt_prog_compiler_pic
19312
19313# Compiler flag to prevent dynamic linking.
19314link_static_flag=$lt_lt_prog_compiler_static
19315
19316# Does compiler simultaneously support -c and -o options?
19317compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19318
19319# Whether or not to add -lc for building shared libraries.
19320build_libtool_need_lc=$archive_cmds_need_lc
19321
19322# Whether or not to disallow shared libs when runtime libs are static.
19323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19324
19325# Compiler flag to allow reflexive dlopens.
19326export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19327
19328# Compiler flag to generate shared objects directly from archives.
19329whole_archive_flag_spec=$lt_whole_archive_flag_spec
19330
19331# Whether the compiler copes with passing no objects directly.
19332compiler_needs_object=$lt_compiler_needs_object
19333
19334# Create an old-style archive from a shared archive.
19335old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19336
19337# Create a temporary old-style archive to link instead of a shared archive.
19338old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19339
19340# Commands used to build a shared archive.
19341archive_cmds=$lt_archive_cmds
19342archive_expsym_cmds=$lt_archive_expsym_cmds
19343
19344# Commands used to build a loadable module if different from building
19345# a shared archive.
19346module_cmds=$lt_module_cmds
19347module_expsym_cmds=$lt_module_expsym_cmds
19348
19349# Whether we are building with GNU ld or not.
19350with_gnu_ld=$lt_with_gnu_ld
19351
19352# Flag that allows shared libraries with undefined symbols to be built.
19353allow_undefined_flag=$lt_allow_undefined_flag
19354
19355# Flag that enforces no undefined symbols.
19356no_undefined_flag=$lt_no_undefined_flag
19357
19358# Flag to hardcode \$libdir into a binary during linking.
19359# This must work even if \$libdir does not exist
19360hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19361
19362# If ld is used when linking, flag to hardcode \$libdir into a binary
19363# during linking. This must work even if \$libdir does not exist.
19364hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19365
19366# Whether we need a single "-rpath" flag with a separated argument.
19367hardcode_libdir_separator=$lt_hardcode_libdir_separator
19368
19369# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19370# DIR into the resulting binary.
19371hardcode_direct=$hardcode_direct
19372
19373# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19374# DIR into the resulting binary and the resulting library dependency is
19375# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19376# library is relocated.
19377hardcode_direct_absolute=$hardcode_direct_absolute
19378
19379# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19380# into the resulting binary.
19381hardcode_minus_L=$hardcode_minus_L
19382
19383# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19384# into the resulting binary.
19385hardcode_shlibpath_var=$hardcode_shlibpath_var
19386
19387# Set to "yes" if building a shared library automatically hardcodes DIR
19388# into the library and all subsequent libraries and executables linked
19389# against it.
19390hardcode_automatic=$hardcode_automatic
19391
19392# Set to yes if linker adds runtime paths of dependent libraries
19393# to runtime path list.
19394inherit_rpath=$inherit_rpath
19395
19396# Whether libtool must link a program against all its dependency libraries.
19397link_all_deplibs=$link_all_deplibs
19398
19399# Fix the shell variable \$srcfile for the compiler.
19400fix_srcfile_path=$lt_fix_srcfile_path
19401
19402# Set to "yes" if exported symbols are required.
19403always_export_symbols=$always_export_symbols
19404
19405# The commands to list exported symbols.
19406export_symbols_cmds=$lt_export_symbols_cmds
19407
19408# Symbols that should not be listed in the preloaded symbols.
19409exclude_expsyms=$lt_exclude_expsyms
19410
19411# Symbols that must always be exported.
19412include_expsyms=$lt_include_expsyms
19413
19414# Commands necessary for linking programs (against libraries) with templates.
19415prelink_cmds=$lt_prelink_cmds
19416
19417# Specify filename containing input files.
19418file_list_spec=$lt_file_list_spec
19419
19420# How to hardcode a shared library path into an executable.
19421hardcode_action=$hardcode_action
19422
3cb62297
L
19423# The directories searched by this compiler when creating a shared library.
19424compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19425
19426# Dependencies to place before and after the objects being linked to
19427# create a shared library.
19428predep_objects=$lt_predep_objects
19429postdep_objects=$lt_postdep_objects
19430predeps=$lt_predeps
19431postdeps=$lt_postdeps
19432
19433# The library search path used internally by the compiler when linking
19434# a shared library.
19435compiler_lib_search_path=$lt_compiler_lib_search_path
19436
d7040cdb
SE
19437# ### END LIBTOOL CONFIG
19438
19439_LT_EOF
19440
19441 case $host_os in
19442 aix3*)
19443 cat <<\_LT_EOF >> "$cfgfile"
19444# AIX sometimes has problems with the GCC collect2 program. For some
19445# reason, if we set the COLLECT_NAMES environment variable, the problems
19446# vanish in a puff of smoke.
19447if test "X${COLLECT_NAMES+set}" != Xset; then
19448 COLLECT_NAMES=
19449 export COLLECT_NAMES
19450fi
19451_LT_EOF
19452 ;;
19453 esac
19454
19455
19456ltmain="$ac_aux_dir/ltmain.sh"
19457
19458
19459 # We use sed instead of cat because bash on DJGPP gets confused if
19460 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19461 # text mode, it properly converts lines to CR/LF. This bash problem
19462 # is reportedly fixed, but why not run on old versions too?
19463 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19464 || (rm -f "$cfgfile"; exit 1)
19465
19466 case $xsi_shell in
19467 yes)
19468 cat << \_LT_EOF >> "$cfgfile"
b214d478 19469
d7040cdb
SE
19470# func_dirname file append nondir_replacement
19471# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19472# otherwise set result to NONDIR_REPLACEMENT.
19473func_dirname ()
19474{
19475 case ${1} in
19476 */*) func_dirname_result="${1%/*}${2}" ;;
19477 * ) func_dirname_result="${3}" ;;
19478 esac
19479}
19480
19481# func_basename file
19482func_basename ()
19483{
19484 func_basename_result="${1##*/}"
19485}
19486
b214d478
SE
19487# func_dirname_and_basename file append nondir_replacement
19488# perform func_basename and func_dirname in a single function
19489# call:
19490# dirname: Compute the dirname of FILE. If nonempty,
19491# add APPEND to the result, otherwise set result
19492# to NONDIR_REPLACEMENT.
19493# value returned in "$func_dirname_result"
19494# basename: Compute filename of FILE.
19495# value retuned in "$func_basename_result"
19496# Implementation must be kept synchronized with func_dirname
19497# and func_basename. For efficiency, we do not delegate to
19498# those functions but instead duplicate the functionality here.
19499func_dirname_and_basename ()
19500{
19501 case ${1} in
19502 */*) func_dirname_result="${1%/*}${2}" ;;
19503 * ) func_dirname_result="${3}" ;;
19504 esac
19505 func_basename_result="${1##*/}"
19506}
19507
d7040cdb
SE
19508# func_stripname prefix suffix name
19509# strip PREFIX and SUFFIX off of NAME.
19510# PREFIX and SUFFIX must not contain globbing or regex special
19511# characters, hashes, percent signs, but SUFFIX may contain a leading
19512# dot (in which case that matches only a dot).
19513func_stripname ()
19514{
19515 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19516 # positional parameters, so assign one to ordinary parameter first.
19517 func_stripname_result=${3}
19518 func_stripname_result=${func_stripname_result#"${1}"}
19519 func_stripname_result=${func_stripname_result%"${2}"}
19520}
19521
19522# func_opt_split
19523func_opt_split ()
19524{
19525 func_opt_split_opt=${1%%=*}
19526 func_opt_split_arg=${1#*=}
19527}
19528
19529# func_lo2o object
19530func_lo2o ()
19531{
19532 case ${1} in
19533 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19534 *) func_lo2o_result=${1} ;;
19535 esac
19536}
b214d478
SE
19537
19538# func_xform libobj-or-source
19539func_xform ()
19540{
19541 func_xform_result=${1%.*}.lo
19542}
19543
19544# func_arith arithmetic-term...
19545func_arith ()
19546{
19547 func_arith_result=$(( $* ))
19548}
19549
19550# func_len string
19551# STRING may not start with a hyphen.
19552func_len ()
19553{
19554 func_len_result=${#1}
19555}
19556
d7040cdb
SE
19557_LT_EOF
19558 ;;
19559 *) # Bourne compatible functions.
19560 cat << \_LT_EOF >> "$cfgfile"
b214d478 19561
d7040cdb
SE
19562# func_dirname file append nondir_replacement
19563# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19564# otherwise set result to NONDIR_REPLACEMENT.
19565func_dirname ()
19566{
19567 # Extract subdirectory from the argument.
3725885a 19568 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19569 if test "X$func_dirname_result" = "X${1}"; then
19570 func_dirname_result="${3}"
19571 else
19572 func_dirname_result="$func_dirname_result${2}"
19573 fi
19574}
19575
19576# func_basename file
19577func_basename ()
19578{
3725885a 19579 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19580}
19581
b214d478 19582
d7040cdb
SE
19583# func_stripname prefix suffix name
19584# strip PREFIX and SUFFIX off of NAME.
19585# PREFIX and SUFFIX must not contain globbing or regex special
19586# characters, hashes, percent signs, but SUFFIX may contain a leading
19587# dot (in which case that matches only a dot).
19588# func_strip_suffix prefix name
19589func_stripname ()
19590{
19591 case ${2} in
3725885a
RW
19592 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19593 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19594 esac
19595}
19596
19597# sed scripts:
19598my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19599my_sed_long_arg='1s/^-[^=]*=//'
19600
19601# func_opt_split
19602func_opt_split ()
19603{
3725885a
RW
19604 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19605 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19606}
19607
19608# func_lo2o object
19609func_lo2o ()
19610{
3725885a 19611 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19612}
b214d478
SE
19613
19614# func_xform libobj-or-source
19615func_xform ()
19616{
3725885a 19617 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19618}
19619
19620# func_arith arithmetic-term...
19621func_arith ()
19622{
19623 func_arith_result=`expr "$@"`
19624}
19625
19626# func_len string
19627# STRING may not start with a hyphen.
19628func_len ()
19629{
19630 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19631}
19632
d7040cdb
SE
19633_LT_EOF
19634esac
19635
19636case $lt_shell_append in
19637 yes)
19638 cat << \_LT_EOF >> "$cfgfile"
19639
19640# func_append var value
19641# Append VALUE to the end of shell variable VAR.
19642func_append ()
19643{
19644 eval "$1+=\$2"
19645}
19646_LT_EOF
19647 ;;
19648 *)
19649 cat << \_LT_EOF >> "$cfgfile"
19650
19651# func_append var value
19652# Append VALUE to the end of shell variable VAR.
19653func_append ()
19654{
19655 eval "$1=\$$1\$2"
19656}
b214d478 19657
d7040cdb
SE
19658_LT_EOF
19659 ;;
19660 esac
19661
19662
19663 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19664 || (rm -f "$cfgfile"; exit 1)
19665
19666 mv -f "$cfgfile" "$ofile" ||
19667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19668 chmod +x "$ofile"
19669
3cb62297
L
19670
19671 cat <<_LT_EOF >> "$ofile"
19672
19673# ### BEGIN LIBTOOL TAG CONFIG: CXX
19674
19675# The linker used to build libraries.
19676LD=$lt_LD_CXX
19677
19678# How to create reloadable object files.
19679reload_flag=$lt_reload_flag_CXX
19680reload_cmds=$lt_reload_cmds_CXX
19681
19682# Commands used to build an old-style archive.
19683old_archive_cmds=$lt_old_archive_cmds_CXX
19684
19685# A language specific compiler.
19686CC=$lt_compiler_CXX
19687
19688# Is the compiler the GNU compiler?
19689with_gcc=$GCC_CXX
19690
19691# Compiler flag to turn off builtin functions.
19692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19693
19694# How to pass a linker flag through the compiler.
19695wl=$lt_lt_prog_compiler_wl_CXX
19696
19697# Additional compiler flags for building library objects.
19698pic_flag=$lt_lt_prog_compiler_pic_CXX
19699
19700# Compiler flag to prevent dynamic linking.
19701link_static_flag=$lt_lt_prog_compiler_static_CXX
19702
19703# Does compiler simultaneously support -c and -o options?
19704compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19705
19706# Whether or not to add -lc for building shared libraries.
19707build_libtool_need_lc=$archive_cmds_need_lc_CXX
19708
19709# Whether or not to disallow shared libs when runtime libs are static.
19710allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19711
19712# Compiler flag to allow reflexive dlopens.
19713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19714
19715# Compiler flag to generate shared objects directly from archives.
19716whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19717
19718# Whether the compiler copes with passing no objects directly.
19719compiler_needs_object=$lt_compiler_needs_object_CXX
19720
19721# Create an old-style archive from a shared archive.
19722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19723
19724# Create a temporary old-style archive to link instead of a shared archive.
19725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19726
19727# Commands used to build a shared archive.
19728archive_cmds=$lt_archive_cmds_CXX
19729archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19730
19731# Commands used to build a loadable module if different from building
19732# a shared archive.
19733module_cmds=$lt_module_cmds_CXX
19734module_expsym_cmds=$lt_module_expsym_cmds_CXX
19735
19736# Whether we are building with GNU ld or not.
19737with_gnu_ld=$lt_with_gnu_ld_CXX
19738
19739# Flag that allows shared libraries with undefined symbols to be built.
19740allow_undefined_flag=$lt_allow_undefined_flag_CXX
19741
19742# Flag that enforces no undefined symbols.
19743no_undefined_flag=$lt_no_undefined_flag_CXX
19744
19745# Flag to hardcode \$libdir into a binary during linking.
19746# This must work even if \$libdir does not exist
19747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19748
19749# If ld is used when linking, flag to hardcode \$libdir into a binary
19750# during linking. This must work even if \$libdir does not exist.
19751hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19752
19753# Whether we need a single "-rpath" flag with a separated argument.
19754hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19755
19756# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19757# DIR into the resulting binary.
19758hardcode_direct=$hardcode_direct_CXX
19759
19760# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19761# DIR into the resulting binary and the resulting library dependency is
19762# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19763# library is relocated.
19764hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19765
19766# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19767# into the resulting binary.
19768hardcode_minus_L=$hardcode_minus_L_CXX
19769
19770# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19771# into the resulting binary.
19772hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19773
19774# Set to "yes" if building a shared library automatically hardcodes DIR
19775# into the library and all subsequent libraries and executables linked
19776# against it.
19777hardcode_automatic=$hardcode_automatic_CXX
19778
19779# Set to yes if linker adds runtime paths of dependent libraries
19780# to runtime path list.
19781inherit_rpath=$inherit_rpath_CXX
19782
19783# Whether libtool must link a program against all its dependency libraries.
19784link_all_deplibs=$link_all_deplibs_CXX
19785
19786# Fix the shell variable \$srcfile for the compiler.
19787fix_srcfile_path=$lt_fix_srcfile_path_CXX
19788
19789# Set to "yes" if exported symbols are required.
19790always_export_symbols=$always_export_symbols_CXX
19791
19792# The commands to list exported symbols.
19793export_symbols_cmds=$lt_export_symbols_cmds_CXX
19794
19795# Symbols that should not be listed in the preloaded symbols.
19796exclude_expsyms=$lt_exclude_expsyms_CXX
19797
19798# Symbols that must always be exported.
19799include_expsyms=$lt_include_expsyms_CXX
19800
19801# Commands necessary for linking programs (against libraries) with templates.
19802prelink_cmds=$lt_prelink_cmds_CXX
19803
19804# Specify filename containing input files.
19805file_list_spec=$lt_file_list_spec_CXX
19806
19807# How to hardcode a shared library path into an executable.
19808hardcode_action=$hardcode_action_CXX
19809
19810# The directories searched by this compiler when creating a shared library.
19811compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19812
19813# Dependencies to place before and after the objects being linked to
19814# create a shared library.
19815predep_objects=$lt_predep_objects_CXX
19816postdep_objects=$lt_postdep_objects_CXX
19817predeps=$lt_predeps_CXX
19818postdeps=$lt_postdeps_CXX
19819
19820# The library search path used internally by the compiler when linking
19821# a shared library.
19822compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19823
19824# ### END LIBTOOL TAG CONFIG: CXX
19825_LT_EOF
19826
42ecbf5e 19827 ;;
81ecdfbb 19828 "default-1":C)
20e95c23
DJ
19829 for ac_file in $CONFIG_FILES; do
19830 # Support "outfile[:infile[:infile...]]"
19831 case "$ac_file" in
19832 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19833 esac
19834 # PO directories have a Makefile.in generated from Makefile.in.in.
19835 case "$ac_file" in */Makefile.in)
19836 # Adjust a relative srcdir.
19837 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19838 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19839 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19840 # In autoconf-2.13 it is called $ac_given_srcdir.
19841 # In autoconf-2.50 it is called $srcdir.
19842 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19843 case "$ac_given_srcdir" in
19844 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19845 /*) top_srcdir="$ac_given_srcdir" ;;
19846 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19847 esac
19848 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19849 rm -f "$ac_dir/POTFILES"
19850 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19851 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19852 POMAKEFILEDEPS="POTFILES.in"
19853 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19854 # on $ac_dir but don't depend on user-specified configuration
19855 # parameters.
19856 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19857 # The LINGUAS file contains the set of available languages.
19858 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 19859 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
19860 fi
19861 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19862 # Hide the ALL_LINGUAS assigment from automake.
19863 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19864 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19865 else
37a42ee9 19866 # The set of available languages was given in configure.ac.
20e95c23
DJ
19867 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19868 fi
19869 case "$ac_given_srcdir" in
19870 .) srcdirpre= ;;
19871 *) srcdirpre='$(srcdir)/' ;;
19872 esac
19873 POFILES=
19874 GMOFILES=
19875 UPDATEPOFILES=
19876 DUMMYPOFILES=
19877 for lang in $ALL_LINGUAS; do
19878 POFILES="$POFILES $srcdirpre$lang.po"
19879 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19880 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19881 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19882 done
19883 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19884 # environment variable.
19885 INST_LINGUAS=
19886 if test -n "$ALL_LINGUAS"; then
19887 for presentlang in $ALL_LINGUAS; do
19888 useit=no
19889 if test "%UNSET%" != "$LINGUAS"; then
19890 desiredlanguages="$LINGUAS"
19891 else
19892 desiredlanguages="$ALL_LINGUAS"
19893 fi
19894 for desiredlang in $desiredlanguages; do
19895 # Use the presentlang catalog if desiredlang is
19896 # a. equal to presentlang, or
19897 # b. a variant of presentlang (because in this case,
19898 # presentlang can be used as a fallback for messages
19899 # which are not translated in the desiredlang catalog).
19900 case "$desiredlang" in
19901 "$presentlang"*) useit=yes;;
19902 esac
19903 done
19904 if test $useit = yes; then
19905 INST_LINGUAS="$INST_LINGUAS $presentlang"
19906 fi
19907 done
19908 fi
19909 CATALOGS=
19910 if test -n "$INST_LINGUAS"; then
19911 for lang in $INST_LINGUAS; do
19912 CATALOGS="$CATALOGS $lang.gmo"
19913 done
19914 fi
19915 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19916 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"
19917 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19918 if test -f "$f"; then
19919 case "$f" in
19920 *.orig | *.bak | *~) ;;
19921 *) cat "$f" >> "$ac_dir/Makefile" ;;
19922 esac
19923 fi
19924 done
19925 fi
19926 ;;
19927 esac
19928 done ;;
81ecdfbb 19929
42ecbf5e 19930 esac
81ecdfbb 19931done # for ac_tag
42ecbf5e 19932
42ecbf5e 19933
81ecdfbb 19934as_fn_exit 0
42ecbf5e 19935_ACEOF
42ecbf5e
DJ
19936ac_clean_files=$ac_clean_files_save
19937
81ecdfbb
RW
19938test $ac_write_fail = 0 ||
19939 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19940
42ecbf5e
DJ
19941
19942# configure is writing to config.log, and then calls config.status.
19943# config.status does its own redirection, appending to config.log.
19944# Unfortunately, on DOS this fails, as config.log is still kept open
19945# by configure, so config.status won't be able to write to it; its
19946# output is simply discarded. So we exec the FD to /dev/null,
19947# effectively closing config.log, so it can be properly (re)opened and
19948# appended to by config.status. When coming back to configure, we
19949# need to make the FD available again.
19950if test "$no_create" != yes; then
19951 ac_cs_success=:
19952 ac_config_status_args=
19953 test "$silent" = yes &&
19954 ac_config_status_args="$ac_config_status_args --quiet"
19955 exec 5>/dev/null
19956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19957 exec 5>>config.log
19958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19959 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19960 $ac_cs_success || as_fn_exit $?
19961fi
19962if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19964$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19965fi
252b5132 19966
This page took 1.922692 seconds and 4 git commands to generate.