New option "set print symbol-loading".
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 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
5063daf7 608EMUL_EXTRA_BINARIES
81ecdfbb
RW
609EMUL_EXTRA_OFILES
610EMULATION_OFILES
611EMUL
612STRINGIFY
02ecc8e9 613enable_initfini_array
5d3236ee
DK
614ENABLE_PLUGINS_FALSE
615ENABLE_PLUGINS_TRUE
81ecdfbb 616NATIVE_LIB_DIRS
b27caf75 617HOSTING_SLIBS
81ecdfbb 618HOSTING_LIBS
6738cadc 619HOSTING_SCRT0
81ecdfbb
RW
620HOSTING_CRT0
621HDEFINES
622do_compare
623GENINSRC_NEVER_FALSE
624GENINSRC_NEVER_TRUE
81ecdfbb
RW
625LEXLIB
626LEX_OUTPUT_ROOT
627LEX
628YFLAGS
629YACC
630MSGMERGE
631MSGFMT
632MKINSTALLDIRS
633CATOBJEXT
634GENCAT
635INSTOBJEXT
636DATADIRNAME
637CATALOGS
638POSUB
639GMSGFMT
640XGETTEXT
641INCINTL
642LIBINTL_DEP
643LIBINTL
644USE_NLS
3cb62297 645CXXCPP
81ecdfbb
RW
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
81ecdfbb
RW
651RANLIB
652AR
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660SED
661LIBTOOL
3cb62297
L
662am__fastdepCXX_FALSE
663am__fastdepCXX_TRUE
664CXXDEPMODE
665ac_ct_CXX
666CXXFLAGS
667CXX
397841b5
AM
668NO_WERROR
669WARN_CFLAGS
81ecdfbb
RW
670EGREP
671GREP
672CPP
4fda8867
NC
673installed_linker
674install_as_default
81ecdfbb
RW
675TARGET_SYSTEM_ROOT_DEFINE
676TARGET_SYSTEM_ROOT
677use_sysroot
64ac50ac
RW
678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
81ecdfbb
RW
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
42ecbf5e 770ac_subst_files='TDIRS'
81ecdfbb
RW
771ac_user_opts='
772enable_option_checking
773enable_dependency_tracking
64ac50ac 774enable_maintainer_mode
81ecdfbb
RW
775with_lib_path
776enable_targets
777enable_64_bit_bfd
778with_sysroot
4fda8867 779enable_gold
81ecdfbb
RW
780enable_got
781enable_werror
782enable_build_warnings
da2f07f1 783enable_plugins
81ecdfbb
RW
784enable_largefile
785enable_shared
786enable_static
787with_pic
788enable_fast_install
789with_gnu_ld
790enable_libtool_lock
791enable_nls
02ecc8e9 792enable_initfini_array
52546677 793with_zlib
81ecdfbb
RW
794'
795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
3cb62297
L
804CXX
805CXXFLAGS
806CCC
807CXXCPP
81ecdfbb
RW
808YACC
809YFLAGS'
810
252b5132
RH
811
812# Initialize some variables set by options.
42ecbf5e
DJ
813ac_init_help=
814ac_init_version=false
81ecdfbb
RW
815ac_unrecognized_opts=
816ac_unrecognized_sep=
252b5132
RH
817# The variables have the same names as the options, with
818# dashes changed to underlines.
42ecbf5e 819cache_file=/dev/null
252b5132 820exec_prefix=NONE
252b5132 821no_create=
252b5132
RH
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
252b5132
RH
830verbose=
831x_includes=NONE
832x_libraries=NONE
42ecbf5e
DJ
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 839# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
252b5132
RH
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
252b5132
RH
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
81ecdfbb
RW
850docdir='${datarootdir}/doc/${PACKAGE}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
252b5132 859
252b5132 860ac_prev=
81ecdfbb 861ac_dashdash=
252b5132
RH
862for ac_option
863do
252b5132
RH
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
81ecdfbb 866 eval $ac_prev=\$ac_option
252b5132
RH
867 ac_prev=
868 continue
869 fi
870
81ecdfbb
RW
871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
252b5132
RH
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
81ecdfbb
RW
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
252b5132
RH
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 885 bindir=$ac_optarg ;;
252b5132
RH
886
887 -build | --build | --buil | --bui | --bu)
42ecbf5e 888 ac_prev=build_alias ;;
252b5132 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 890 build_alias=$ac_optarg ;;
252b5132
RH
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
252b5132 901
81ecdfbb 902 -datadir | --datadir | --datadi | --datad)
252b5132 903 ac_prev=datadir ;;
81ecdfbb 904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 905 datadir=$ac_optarg ;;
252b5132 906
81ecdfbb
RW
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
252b5132 914 -disable-* | --disable-*)
81ecdfbb 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 916 # Reject names that are not valid shell variable names.
81ecdfbb
RW
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
252b5132
RH
939
940 -enable-* | --enable-*)
81ecdfbb 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 942 # Reject names that are not valid shell variable names.
81ecdfbb
RW
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
252b5132 953 esac
81ecdfbb 954 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
42ecbf5e 963 exec_prefix=$ac_optarg ;;
252b5132
RH
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
42ecbf5e
DJ
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
252b5132
RH
975
976 -host | --host | --hos | --ho)
42ecbf5e 977 ac_prev=host_alias ;;
252b5132 978 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 979 host_alias=$ac_optarg ;;
252b5132 980
81ecdfbb
RW
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
252b5132
RH
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 992 includedir=$ac_optarg ;;
252b5132
RH
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 997 infodir=$ac_optarg ;;
252b5132
RH
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1002 libdir=$ac_optarg ;;
252b5132
RH
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1009 libexecdir=$ac_optarg ;;
252b5132 1010
81ecdfbb
RW
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
252b5132 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1017 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1021 localstatedir=$ac_optarg ;;
252b5132
RH
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1026 mandir=$ac_optarg ;;
252b5132
RH
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1033 | --no-cr | --no-c | -n)
252b5132
RH
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1047 oldincludedir=$ac_optarg ;;
252b5132
RH
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1052 prefix=$ac_optarg ;;
252b5132
RH
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1059 program_prefix=$ac_optarg ;;
252b5132
RH
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1066 program_suffix=$ac_optarg ;;
252b5132
RH
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1083 program_transform_name=$ac_optarg ;;
252b5132 1084
81ecdfbb
RW
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
252b5132
RH
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
42ecbf5e 1103 sbindir=$ac_optarg ;;
252b5132
RH
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
42ecbf5e 1114 sharedstatedir=$ac_optarg ;;
252b5132
RH
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
42ecbf5e 1119 site=$ac_optarg ;;
85fbca6a 1120
252b5132
RH
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1124 srcdir=$ac_optarg ;;
252b5132
RH
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1131 sysconfdir=$ac_optarg ;;
252b5132
RH
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1134 ac_prev=target_alias ;;
252b5132 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1136 target_alias=$ac_optarg ;;
252b5132
RH
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
42ecbf5e
DJ
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
252b5132
RH
1143
1144 -with-* | --with-*)
81ecdfbb 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1146 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
252b5132 1157 esac
81ecdfbb 1158 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1159
1160 -without-* | --without-*)
81ecdfbb 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1162 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
252b5132
RH
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1185 x_includes=$ac_optarg ;;
252b5132
RH
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1192 x_libraries=$ac_optarg ;;
252b5132 1193
81ecdfbb
RW
1194 -*) as_fn_error "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information."
252b5132
RH
1196 ;;
1197
42ecbf5e
DJ
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1206 export $ac_envvar ;;
1207
252b5132 1208 *)
42ecbf5e 1209 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
42ecbf5e 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1221 as_fn_error "missing argument to $ac_option"
252b5132 1222fi
252b5132 1223
81ecdfbb
RW
1224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1229 esac
81ecdfbb 1230fi
252b5132 1231
81ecdfbb
RW
1232# Check all directory arguments for consistency.
1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
252b5132 1237do
81ecdfbb
RW
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
42ecbf5e 1246 case $ac_val in
81ecdfbb
RW
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1249 esac
81ecdfbb 1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1251done
1252
42ecbf5e
DJ
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
81ecdfbb 1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269fi
e5a52504 1270
42ecbf5e
DJ
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
252b5132 1275
252b5132 1276
81ecdfbb
RW
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory"
1283
1284
252b5132
RH
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
81ecdfbb
RW
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294$as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
252b5132 1312 srcdir=$ac_confdir
81ecdfbb 1313 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1314 srcdir=..
1315 fi
1316else
1317 ac_srcdir_defaulted=no
1318fi
81ecdfbb
RW
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
252b5132 1343
42ecbf5e
DJ
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351\`configure' configures this package to adapt to many kinds of systems.
252b5132 1352
42ecbf5e 1353Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1354
42ecbf5e
DJ
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1357
42ecbf5e 1358Defaults for the options are specified in brackets.
ac48eca1 1359
42ecbf5e
DJ
1360Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
42ecbf5e
DJ
1371Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1373 [$ac_default_prefix]
42ecbf5e 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1375 [PREFIX]
ac48eca1 1376
42ecbf5e
DJ
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
ac48eca1 1381
42ecbf5e 1382For better control, use the options below.
ac48eca1 1383
42ecbf5e 1384Fine tuning of the installation directories:
81ecdfbb
RW
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1404_ACEOF
ac48eca1 1405
42ecbf5e 1406 cat <<\_ACEOF
252b5132 1407
42ecbf5e
DJ
1408Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1412
42ecbf5e
DJ
1413System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417_ACEOF
252b5132 1418fi
252b5132 1419
42ecbf5e 1420if test -n "$ac_init_help"; then
252b5132 1421
42ecbf5e 1422 cat <<\_ACEOF
e5a52504 1423
42ecbf5e 1424Optional Features:
81ecdfbb 1425 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1430 --enable-maintainer-mode enable make rules and dependencies not useful
1431 (and sometimes confusing) to the casual installer
ce2cded5
L
1432 --enable-targets alternative target configurations
1433 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1434 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1435 --enable-got=<type> GOT handling scheme (target, single, negative,
1436 multigot)
ce2cded5
L
1437 --enable-werror treat compile warnings as errors
1438 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1439 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1440 --disable-largefile omit support for large files
81ecdfbb
RW
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
42ecbf5e 1445 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1446 --disable-nls do not use Native Language Support
02ecc8e9 1447 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1448
1449Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1452 --with-lib-path=dir1:dir2... set default LIB_PATH
1453 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1454 --with-pic try to use only PIC/non-PIC objects [default=use
1455 both]
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
52546677 1457 --with-zlib include zlib support (auto/yes/no) default=auto
42ecbf5e
DJ
1458
1459Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
81ecdfbb
RW
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
42ecbf5e 1467 CPP C preprocessor
3cb62297
L
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1470 CXXCPP C++ preprocessor
81ecdfbb
RW
1471 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1472 the first program found out of: `bison -y', `byacc', `yacc'.
1473 YFLAGS The list of arguments that will be passed by default to $YACC.
1474 This script will default YFLAGS to the empty string to avoid a
1475 default value of `-d' given by some make applications.
42ecbf5e
DJ
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
81ecdfbb 1480Report bugs to the package provider.
42ecbf5e 1481_ACEOF
81ecdfbb 1482ac_status=$?
42ecbf5e
DJ
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
42ecbf5e 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
42ecbf5e
DJ
1491 ac_builddir=.
1492
81ecdfbb
RW
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1508
1509case $srcdir in
81ecdfbb 1510 .) # We are building in place.
42ecbf5e 1511 ac_srcdir=.
81ecdfbb
RW
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1515 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1522esac
81ecdfbb
RW
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1533 else
81ecdfbb
RW
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1537 done
a2d91340
AC
1538fi
1539
81ecdfbb 1540test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1541if $ac_init_version; then
1542 cat <<\_ACEOF
81ecdfbb
RW
1543configure
1544generated by GNU Autoconf 2.64
a2d91340 1545
81ecdfbb 1546Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
81ecdfbb 1550 exit
42ecbf5e 1551fi
a2d91340 1552
81ecdfbb
RW
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
a2d91340 1556
81ecdfbb
RW
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1587
81ecdfbb
RW
1588 ac_retval=1
1589fi
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
1595# ac_fn_c_try_link LINENO
1596# -----------------------
1597# Try to link conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_link ()
42ecbf5e 1599{
81ecdfbb
RW
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 $as_test_x conftest$ac_exeext
1623 }; then :
1624 ac_retval=0
1625else
1626 $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1628
81ecdfbb
RW
1629 ac_retval=1
1630fi
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 return $ac_retval
42ecbf5e 1638
81ecdfbb 1639} # ac_fn_c_try_link
42ecbf5e 1640
81ecdfbb
RW
1641# ac_fn_c_try_cpp LINENO
1642# ----------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_cpp ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } >/dev/null && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 return $ac_retval
1675
1676} # ac_fn_c_try_cpp
1677
3cb62297
L
1678# ac_fn_cxx_try_compile LINENO
1679# ----------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_cxx_try_compile ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_cxx_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710fi
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1713
1714} # ac_fn_cxx_try_compile
1715
81ecdfbb
RW
1716# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1719# the include files in INCLUDES and setting the cache variable VAR
1720# accordingly.
1721ac_fn_c_check_header_mongrel ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728 $as_echo_n "(cached) " >&6
1729fi
1730eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733else
1734 # Is the header compilable?
1735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1736$as_echo_n "checking $2 usability... " >&6; }
1737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h. */
1739$4
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743 ac_header_compiler=yes
1744else
1745 ac_header_compiler=no
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1749$as_echo "$ac_header_compiler" >&6; }
1750
1751# Is the header present?
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1753$as_echo_n "checking $2 presence... " >&6; }
1754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_cpp "$LINENO"; then :
1759 ac_header_preproc=yes
1760else
1761 ac_header_preproc=no
1762fi
1763rm -f conftest.err conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1765$as_echo "$ac_header_preproc" >&6; }
1766
1767# So? What about this header?
1768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1769 yes:no: )
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1771$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1773$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 ;;
1775 no:yes:* )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1777$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1779$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1781$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1783$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786 ;;
1787esac
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792else
1793 eval "$3=\$ac_header_compiler"
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798fi
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
1801} # ac_fn_c_check_header_mongrel
1802
1803# ac_fn_c_try_run LINENO
1804# ----------------------
1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806# that executables *can* be run.
1807ac_fn_c_try_run ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_link"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_link") 2>&5
1818 ac_status=$?
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821 { { case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_try") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; }; }; then :
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: program exited with status $ac_status" >&5
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=$ac_status
1838fi
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 return $ac_retval
1842
1843} # ac_fn_c_try_run
1844
1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists and can be compiled using the include files in
1848# INCLUDES, setting the cache variable VAR accordingly.
1849ac_fn_c_check_header_compile ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 $as_echo_n "(cached) " >&6
1856else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h. */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864else
1865 eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873
1874} # ac_fn_c_check_header_compile
1875
1876# ac_fn_c_check_func LINENO FUNC VAR
1877# ----------------------------------
1878# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879ac_fn_c_check_func ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891#define $2 innocuous_$2
1892
1893/* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1897
1898#ifdef __STDC__
1899# include <limits.h>
1900#else
1901# include <assert.h>
1902#endif
1903
1904#undef $2
1905
1906/* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909#ifdef __cplusplus
1910extern "C"
1911#endif
1912char $2 ();
1913/* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916#if defined __stub_$2 || defined __stub___$2
1917choke me
1918#endif
1919
1920int
1921main ()
1922{
1923return $2 ();
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941} # ac_fn_c_check_func
1942
3cb62297
L
1943# ac_fn_cxx_try_cpp LINENO
1944# ------------------------
1945# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946ac_fn_cxx_try_cpp ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1950case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } >/dev/null && {
1965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1967 }; then :
1968 ac_retval=0
1969else
1970 $as_echo "$as_me: failed program was:" >&5
1971sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=1
1974fi
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 return $ac_retval
1977
1978} # ac_fn_cxx_try_cpp
1979
1980# ac_fn_cxx_try_link LINENO
1981# -------------------------
1982# Try to link conftest.$ac_ext, and return whether this succeeded.
1983ac_fn_cxx_try_link ()
1984{
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 rm -f conftest.$ac_objext conftest$ac_exeext
1987 if { { ac_try="$ac_link"
1988case "(($ac_try" in
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1991esac
1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993$as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>conftest.err
1995 ac_status=$?
1996 if test -s conftest.err; then
1997 grep -v '^ *+' conftest.err >conftest.er1
1998 cat conftest.er1 >&5
1999 mv -f conftest.er1 conftest.err
2000 fi
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && {
2003 test -z "$ac_cxx_werror_flag" ||
2004 test ! -s conftest.err
2005 } && test -s conftest$ac_exeext && {
2006 test "$cross_compiling" = yes ||
2007 $as_test_x conftest$ac_exeext
2008 }; then :
2009 ac_retval=0
2010else
2011 $as_echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_retval=1
2015fi
2016 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018 # interfere with the next link command; also delete a directory that is
2019 # left behind by Apple's compiler. We do this before executing the actions.
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 return $ac_retval
2023
2024} # ac_fn_cxx_try_link
2025
81ecdfbb
RW
2026# ac_fn_c_check_decl LINENO SYMBOL VAR
2027# ------------------------------------
2028# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2029ac_fn_c_check_decl ()
2030{
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2032 as_decl_name=`echo $2|sed 's/ *(.*//'`
2033 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2035$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2036if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2037 $as_echo_n "(cached) " >&6
2038else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042int
2043main ()
2044{
360cfc9c
AM
2045#ifndef $as_decl_name
2046#ifdef __cplusplus
2047 (void) $as_decl_use;
2048#else
2049 (void) $as_decl_name;
2050#endif
81ecdfbb
RW
2051#endif
2052
2053 ;
2054 return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$3=yes"
2059else
2060 eval "$3=no"
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063fi
2064eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068
2069} # ac_fn_c_check_decl
2070
2071# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072# --------------------------------------------
2073# Tries to find the compile-time value of EXPR in a program that includes
2074# INCLUDES, setting VAR accordingly. Returns whether the value could be
2075# computed
2076ac_fn_c_compute_int ()
2077{
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) >= 0)];
2088test_array [0] = 0
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=0 ac_mid=0
2096 while :; do
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104test_array [0] = 0
2105
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=$ac_mid; break
2112else
2113 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114 if test $ac_lo -le $ac_mid; then
2115 ac_lo= ac_hi=
2116 break
2117 fi
2118 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 done
2122else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) < 0)];
2130test_array [0] = 0
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=-1 ac_mid=-1
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2146test_array [0] = 0
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_lo=$ac_mid; break
2154else
2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156 if test $ac_mid -le $ac_hi; then
2157 ac_lo= ac_hi=
2158 break
2159 fi
2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164else
2165 ac_lo= ac_hi=
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170# Binary search between lo and hi bounds.
2171while test "x$ac_lo" != "x$ac_hi"; do
2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180test_array [0] = 0
2181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=$ac_mid
2188else
2189 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209 FILE *f = fopen ("conftest.val", "w");
2210 if (! f)
2211 return 1;
2212 if (($2) < 0)
2213 {
2214 long int i = longval ();
2215 if (i != ($2))
2216 return 1;
2217 fprintf (f, "%ld", i);
2218 }
2219 else
2220 {
2221 unsigned long int i = ulongval ();
2222 if (i != ($2))
2223 return 1;
2224 fprintf (f, "%lu", i);
2225 }
2226 /* Do not output a trailing newline, as this causes \r\n confusion
2227 on some platforms. */
2228 return ferror (f) || fclose (f) != 0;
2229
2230 ;
2231 return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237 ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240 conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243 fi
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245 return $ac_retval
2246
2247} # ac_fn_c_compute_int
2248cat >config.log <<_ACEOF
2249This file contains any messages produced by compilers while
2250running configure, to aid debugging if configure makes a mistake.
2251
2252It was created by $as_me, which was
2253generated by GNU Autoconf 2.64. Invocation command line was
2254
2255 $ $0 $@
2256
2257_ACEOF
2258exec 5>>config.log
2259{
2260cat <<_ASUNAME
2261## --------- ##
2262## Platform. ##
2263## --------- ##
2264
2265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270
2271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2273
2274/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2278/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2281
2282_ASUNAME
2283
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2289 $as_echo "PATH: $as_dir"
2290 done
2291IFS=$as_save_IFS
252b5132 2292
42ecbf5e 2293} >&5
5d64ca4e 2294
42ecbf5e 2295cat >&5 <<_ACEOF
5d64ca4e 2296
5d64ca4e 2297
42ecbf5e
DJ
2298## ----------- ##
2299## Core tests. ##
2300## ----------- ##
5d64ca4e 2301
42ecbf5e 2302_ACEOF
2469cfa2 2303
42ecbf5e
DJ
2304
2305# Keep a trace of the command line.
2306# Strip out --no-create and --no-recursion so they do not pile up.
2307# Strip out --silent because we don't want to record it for future runs.
2308# Also quote any args containing shell meta-characters.
2309# Make two passes to allow for proper duplicate-argument suppression.
2310ac_configure_args=
2311ac_configure_args0=
2312ac_configure_args1=
42ecbf5e
DJ
2313ac_must_keep_next=false
2314for ac_pass in 1 2
2315do
2316 for ac_arg
2317 do
2318 case $ac_arg in
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2322 continue ;;
81ecdfbb
RW
2323 *\'*)
2324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2325 esac
2326 case $ac_pass in
81ecdfbb 2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2328 2)
81ecdfbb 2329 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2332 else
2333 case $ac_arg in
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 esac
2341 ;;
2342 -* ) ac_must_keep_next=true ;;
2343 esac
2344 fi
81ecdfbb 2345 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2346 ;;
2347 esac
2348 done
2349done
81ecdfbb
RW
2350{ ac_configure_args0=; unset ac_configure_args0;}
2351{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2352
2353# When interrupted or exit'd, cleanup temporary files, and complete
2354# config.log. We remove comments because anyway the quotes in there
2355# would cause problems or look ugly.
81ecdfbb
RW
2356# WARNING: Use '\'' to represent an apostrophe within the trap.
2357# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2358trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2360 {
2361 echo
2362
2363 cat <<\_ASBOX
2364## ---------------- ##
2365## Cache variables. ##
2366## ---------------- ##
2367_ASBOX
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2370(
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
2376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac ;;
2384 esac
2385 done
42ecbf5e 2386 (set) 2>&1 |
81ecdfbb
RW
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
42ecbf5e 2389 sed -n \
81ecdfbb
RW
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
42ecbf5e 2393 *)
81ecdfbb 2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2395 ;;
81ecdfbb
RW
2396 esac |
2397 sort
2398)
42ecbf5e
DJ
2399 echo
2400
2401 cat <<\_ASBOX
2402## ----------------- ##
2403## Output variables. ##
2404## ----------------- ##
2405_ASBOX
2406 echo
2407 for ac_var in $ac_subst_vars
2408 do
81ecdfbb
RW
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2414 done | sort
2415 echo
2416
2417 if test -n "$ac_subst_files"; then
2418 cat <<\_ASBOX
81ecdfbb
RW
2419## ------------------- ##
2420## File substitutions. ##
2421## ------------------- ##
42ecbf5e
DJ
2422_ASBOX
2423 echo
2424 for ac_var in $ac_subst_files
2425 do
81ecdfbb
RW
2426 eval ac_val=\$$ac_var
2427 case $ac_val in
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 esac
2430 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2431 done | sort
2432 echo
2433 fi
2434
2435 if test -s confdefs.h; then
2436 cat <<\_ASBOX
2437## ----------- ##
2438## confdefs.h. ##
2439## ----------- ##
2440_ASBOX
2441 echo
81ecdfbb 2442 cat confdefs.h
42ecbf5e
DJ
2443 echo
2444 fi
2445 test "$ac_signal" != 0 &&
81ecdfbb
RW
2446 $as_echo "$as_me: caught signal $ac_signal"
2447 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2448 } >&5
81ecdfbb
RW
2449 rm -f core *.core core.conftest.* &&
2450 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2451 exit $exit_status
81ecdfbb 2452' 0
42ecbf5e 2453for ac_signal in 1 2 13 15; do
81ecdfbb 2454 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2455done
2456ac_signal=0
2457
2458# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2459rm -f -r conftest* confdefs.h
2460
2461$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2462
2463# Predefined preprocessor variables.
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_NAME "$PACKAGE_NAME"
2467_ACEOF
2468
42ecbf5e
DJ
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471_ACEOF
2472
42ecbf5e
DJ
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_VERSION "$PACKAGE_VERSION"
2475_ACEOF
2476
42ecbf5e
DJ
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_STRING "$PACKAGE_STRING"
2479_ACEOF
2480
42ecbf5e
DJ
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483_ACEOF
2484
81ecdfbb
RW
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_URL "$PACKAGE_URL"
2487_ACEOF
2488
42ecbf5e
DJ
2489
2490# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2491# Prefer an explicitly selected file to automatically selected ones.
2492ac_site_file1=NONE
2493ac_site_file2=NONE
2494if test -n "$CONFIG_SITE"; then
2495 ac_site_file1=$CONFIG_SITE
2496elif test "x$prefix" != xNONE; then
2497 ac_site_file1=$prefix/share/config.site
2498 ac_site_file2=$prefix/etc/config.site
2499else
2500 ac_site_file1=$ac_default_prefix/share/config.site
2501 ac_site_file2=$ac_default_prefix/etc/config.site
2502fi
2503for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2504do
2505 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2506 if test -r "$ac_site_file"; then
81ecdfbb
RW
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2509 sed 's/^/| /' "$ac_site_file" >&5
2510 . "$ac_site_file"
2511 fi
2512done
2513
2514if test -r "$cache_file"; then
2515 # Some versions of bash will fail to source /dev/null (special
2516 # files actually), so we avoid doing that.
2517 if test -f "$cache_file"; then
81ecdfbb
RW
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2520 case $cache_file in
81ecdfbb
RW
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
42ecbf5e
DJ
2523 esac
2524 fi
2525else
81ecdfbb
RW
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2528 >$cache_file
2529fi
2530
2531# Check that the precious variables saved in the cache have kept the same
2532# value.
2533ac_cache_corrupted=false
81ecdfbb 2534for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2539 case $ac_old_set,$ac_new_set in
2540 set,)
81ecdfbb
RW
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2543 ac_cache_corrupted=: ;;
2544 ,set)
81ecdfbb
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2547 ac_cache_corrupted=: ;;
2548 ,);;
2549 *)
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
81ecdfbb 2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2578 esac
2579 fi
2580done
2581if $ac_cache_corrupted; then
81ecdfbb
RW
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2587fi
81ecdfbb
RW
2588## -------------------- ##
2589## Main body of script. ##
2590## -------------------- ##
42ecbf5e
DJ
2591
2592ac_ext=c
2593ac_cpp='$CPP $CPPFLAGS'
2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
2598
2599
42ecbf5e 2600
da594c4a 2601
42ecbf5e
DJ
2602
2603
2604ac_aux_dir=
81ecdfbb
RW
2605for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606 for ac_t in install-sh install.sh shtool; do
2607 if test -f "$ac_dir/$ac_t"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/$ac_t -c"
2610 break 2
2611 fi
2612 done
42ecbf5e
DJ
2613done
2614if test -z "$ac_aux_dir"; then
81ecdfbb 2615 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2616fi
81ecdfbb
RW
2617
2618# These three variables are undocumented and unsupported,
2619# and are intended to be withdrawn in a future Autoconf release.
2620# They can cause serious problems if a builder's source tree is in a directory
2621# whose full name contains unusual characters.
2622ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625
42ecbf5e
DJ
2626
2627# Make sure we can run config.sub.
81ecdfbb
RW
2628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2629 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2630
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2632$as_echo_n "checking build system type... " >&6; }
2633if test "${ac_cv_build+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2635else
2636 ac_build_alias=$build_alias
2637test "x$ac_build_alias" = x &&
2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639test "x$ac_build_alias" = x &&
2640 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2641ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2642 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2646$as_echo "$ac_cv_build" >&6; }
2647case $ac_cv_build in
2648*-*-*) ;;
2649*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2650esac
42ecbf5e 2651build=$ac_cv_build
81ecdfbb
RW
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_build
2654shift
2655build_cpu=$1
2656build_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660build_os=$*
2661IFS=$ac_save_IFS
2662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2663
2664
81ecdfbb
RW
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2666$as_echo_n "checking host system type... " >&6; }
2667if test "${ac_cv_host+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test "x$host_alias" = x; then
2671 ac_cv_host=$ac_cv_build
42ecbf5e 2672else
81ecdfbb
RW
2673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2674 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675fi
42ecbf5e
DJ
2676
2677fi
81ecdfbb
RW
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2679$as_echo "$ac_cv_host" >&6; }
2680case $ac_cv_host in
2681*-*-*) ;;
2682*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2683esac
42ecbf5e 2684host=$ac_cv_host
81ecdfbb
RW
2685ac_save_IFS=$IFS; IFS='-'
2686set x $ac_cv_host
2687shift
2688host_cpu=$1
2689host_vendor=$2
2690shift; shift
2691# Remember, the first character of IFS is used to create $*,
2692# except with old shells:
2693host_os=$*
2694IFS=$ac_save_IFS
2695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2696
2697
81ecdfbb
RW
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2699$as_echo_n "checking target system type... " >&6; }
2700if test "${ac_cv_target+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
42ecbf5e 2702else
81ecdfbb
RW
2703 if test "x$target_alias" = x; then
2704 ac_cv_target=$ac_cv_host
2705else
2706 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2707 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708fi
42ecbf5e
DJ
2709
2710fi
81ecdfbb
RW
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2712$as_echo "$ac_cv_target" >&6; }
2713case $ac_cv_target in
2714*-*-*) ;;
2715*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2716esac
42ecbf5e 2717target=$ac_cv_target
81ecdfbb
RW
2718ac_save_IFS=$IFS; IFS='-'
2719set x $ac_cv_target
2720shift
2721target_cpu=$1
2722target_vendor=$2
2723shift; shift
2724# Remember, the first character of IFS is used to create $*,
2725# except with old shells:
2726target_os=$*
2727IFS=$ac_save_IFS
2728case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2729
2730
2731# The aliases save the names the user supplied, while $host etc.
2732# will get canonicalized.
2733test -n "$target_alias" &&
2734 test "$program_prefix$program_suffix$program_transform_name" = \
2735 NONENONEs,x,x, &&
2736 program_prefix=${target_alias}-
02ecc8e9 2737
42ecbf5e
DJ
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
2748if test "${ac_cv_prog_CC+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2750else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2763 break 2
2764 fi
2765done
81ecdfbb
RW
2766 done
2767IFS=$as_save_IFS
42ecbf5e
DJ
2768
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
81ecdfbb
RW
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
42ecbf5e 2775else
81ecdfbb
RW
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
42ecbf5e
DJ
2778fi
2779
81ecdfbb 2780
42ecbf5e
DJ
2781fi
2782if test -z "$ac_cv_prog_CC"; then
2783 ac_ct_CC=$CC
2784 # Extract the first word of "gcc", so it can be a program name with args.
2785set dummy gcc; ac_word=$2
81ecdfbb
RW
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2790else
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2801 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2803 break 2
2804 fi
2805done
81ecdfbb
RW
2806 done
2807IFS=$as_save_IFS
42ecbf5e
DJ
2808
2809fi
2810fi
2811ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2815else
81ecdfbb
RW
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
42ecbf5e
DJ
2818fi
2819
81ecdfbb
RW
2820 if test "x$ac_ct_CC" = x; then
2821 CC=""
2822 else
2823 case $cross_compiling:$ac_tool_warned in
2824yes:)
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827ac_tool_warned=yes ;;
2828esac
2829 CC=$ac_ct_CC
2830 fi
42ecbf5e
DJ
2831else
2832 CC="$ac_cv_prog_CC"
2833fi
2834
2835if test -z "$CC"; then
81ecdfbb
RW
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2838set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if test "${ac_cv_prog_CC+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2843else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2856 break 2
2857 fi
2858done
81ecdfbb
RW
2859 done
2860IFS=$as_save_IFS
42ecbf5e
DJ
2861
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
81ecdfbb
RW
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867$as_echo "$CC" >&6; }
42ecbf5e 2868else
81ecdfbb
RW
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
42ecbf5e
DJ
2871fi
2872
42ecbf5e 2873
81ecdfbb 2874 fi
42ecbf5e
DJ
2875fi
2876if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878set dummy cc; ac_word=$2
81ecdfbb
RW
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if test "${ac_cv_prog_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2883else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887 ac_prog_rejected=no
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2897 continue
2898 fi
2899 ac_cv_prog_CC="cc"
81ecdfbb 2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2901 break 2
2902 fi
2903done
81ecdfbb
RW
2904 done
2905IFS=$as_save_IFS
42ecbf5e
DJ
2906
2907if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2910 shift
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2915 shift
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2917 fi
2918fi
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
81ecdfbb
RW
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
42ecbf5e 2925else
81ecdfbb
RW
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
42ecbf5e
DJ
2928fi
2929
81ecdfbb 2930
42ecbf5e
DJ
2931fi
2932if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
81ecdfbb 2934 for ac_prog in cl.exe
42ecbf5e
DJ
2935 do
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939$as_echo_n "checking for $ac_word... " >&6; }
2940if test "${ac_cv_prog_CC+set}" = set; then :
2941 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2942else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2955 break 2
2956 fi
2957done
81ecdfbb
RW
2958 done
2959IFS=$as_save_IFS
42ecbf5e
DJ
2960
2961fi
2962fi
2963CC=$ac_cv_prog_CC
2964if test -n "$CC"; then
81ecdfbb
RW
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966$as_echo "$CC" >&6; }
42ecbf5e 2967else
81ecdfbb
RW
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
42ecbf5e
DJ
2970fi
2971
81ecdfbb 2972
42ecbf5e
DJ
2973 test -n "$CC" && break
2974 done
2975fi
2976if test -z "$CC"; then
2977 ac_ct_CC=$CC
81ecdfbb 2978 for ac_prog in cl.exe
42ecbf5e
DJ
2979do
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983$as_echo_n "checking for $ac_word... " >&6; }
2984if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2986else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2997 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2999 break 2
3000 fi
3001done
81ecdfbb
RW
3002 done
3003IFS=$as_save_IFS
42ecbf5e
DJ
3004
3005fi
3006fi
3007ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3011else
81ecdfbb
RW
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013$as_echo "no" >&6; }
42ecbf5e
DJ
3014fi
3015
81ecdfbb 3016
42ecbf5e
DJ
3017 test -n "$ac_ct_CC" && break
3018done
3019
81ecdfbb
RW
3020 if test "x$ac_ct_CC" = x; then
3021 CC=""
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024yes:)
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027ac_tool_warned=yes ;;
3028esac
3029 CC=$ac_ct_CC
3030 fi
42ecbf5e
DJ
3031fi
3032
3033fi
3034
3035
81ecdfbb
RW
3036test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error "no acceptable C compiler found in \$PATH
3039See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3040
3041# Provide some information about the compiler.
81ecdfbb
RW
3042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3043set X $ac_compile
3044ac_compiler=$2
3045for ac_option in --version -v -V -qversion; do
3046 { { ac_try="$ac_compiler $ac_option >&5"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052$as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3054 ac_status=$?
81ecdfbb
RW
3055 if test -s conftest.err; then
3056 sed '10a\
3057... rest of stderr output deleted ...
3058 10q' conftest.err >conftest.er1
3059 cat conftest.er1 >&5
3060 rm -f conftest.er1 conftest.err
3061 fi
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064done
42ecbf5e 3065
81ecdfbb 3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3067/* end confdefs.h. */
3068
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077ac_clean_files_save=$ac_clean_files
81ecdfbb 3078ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3079# Try to create an executable without -o first, disregard a.out.
3080# It will help us diagnose broken compilers, and finding out an intuition
3081# of exeext.
81ecdfbb
RW
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3083$as_echo_n "checking for C compiler default output file name... " >&6; }
3084ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085
3086# The possible output files:
3087ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088
3089ac_rmfiles=
3090for ac_file in $ac_files
3091do
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 esac
3096done
3097rm -f $ac_rmfiles
3098
3099if { { ac_try="$ac_link_default"
3100case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105$as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link_default") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112# in a Makefile. We should not override ac_cv_exeext if it was cached,
3113# so that the user can short-circuit this test for compilers unknown to
3114# Autoconf.
3115for ac_file in $ac_files ''
42ecbf5e
DJ
3116do
3117 test -f "$ac_file" || continue
3118 case $ac_file in
81ecdfbb 3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3120 ;;
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
81ecdfbb
RW
3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127 then :; else
3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 fi
3130 # We set ac_cv_exeext here because the later test for it is not
3131 # safe: cross compilers may not add the suffix if given an `-o'
3132 # argument, so we may need to know it at that point already.
3133 # Even if this section looks crufty: it has the advantage of
3134 # actually working.
42ecbf5e
DJ
3135 break;;
3136 * )
3137 break;;
3138 esac
3139done
81ecdfbb
RW
3140test "$ac_cv_exeext" = no && ac_cv_exeext=
3141
42ecbf5e 3142else
81ecdfbb
RW
3143 ac_file=''
3144fi
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3146$as_echo "$ac_file" >&6; }
3147if test -z "$ac_file"; then :
3148 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
81ecdfbb
RW
3151{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153{ as_fn_set_status 77
3154as_fn_error "C compiler cannot create executables
3155See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3156fi
42ecbf5e 3157ac_exeext=$ac_cv_exeext
42ecbf5e 3158
81ecdfbb 3159# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3160# the compiler is broken, or we cross compile.
81ecdfbb
RW
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3162$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3163# If not cross compiling, check that we can run a simple program.
3164if test "$cross_compiling" != yes; then
3165 if { ac_try='./$ac_file'
81ecdfbb
RW
3166 { { case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_try") 2>&5
42ecbf5e 3173 ac_status=$?
81ecdfbb
RW
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3176 cross_compiling=no
3177 else
3178 if test "$cross_compiling" = maybe; then
3179 cross_compiling=yes
3180 else
81ecdfbb
RW
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183as_fn_error "cannot run C compiled programs.
42ecbf5e 3184If you meant to cross compile, use \`--host'.
81ecdfbb 3185See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3186 fi
3187 fi
3188fi
81ecdfbb
RW
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190$as_echo "yes" >&6; }
42ecbf5e 3191
81ecdfbb 3192rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3193ac_clean_files=$ac_clean_files_save
81ecdfbb 3194# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3195# the compiler is broken, or we cross compile.
81ecdfbb
RW
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197$as_echo_n "checking whether we are cross compiling... " >&6; }
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199$as_echo "$cross_compiling" >&6; }
3200
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202$as_echo_n "checking for suffix of executables... " >&6; }
3203if { { ac_try="$ac_link"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
42ecbf5e 3211 ac_status=$?
81ecdfbb
RW
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
42ecbf5e
DJ
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216# work properly (i.e., refer to `conftest.exe'), while it won't with
3217# `rm'.
3218for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
81ecdfbb 3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3223 break;;
3224 * ) break;;
3225 esac
3226done
3227else
81ecdfbb
RW
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230as_fn_error "cannot compute suffix of executables: cannot compile and link
3231See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3232fi
42ecbf5e 3233rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3236
3237rm -f conftest.$ac_ext
3238EXEEXT=$ac_cv_exeext
3239ac_exeext=$EXEEXT
81ecdfbb
RW
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3241$as_echo_n "checking for suffix of object files... " >&6; }
3242if test "${ac_cv_objext+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
42ecbf5e 3244else
81ecdfbb 3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3246/* end confdefs.h. */
3247
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.o conftest.obj
81ecdfbb
RW
3257if { { ac_try="$ac_compile"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_compile") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
3268 for ac_file in conftest.o conftest.obj conftest.*; do
3269 test -f "$ac_file" || continue;
42ecbf5e 3270 case $ac_file in
81ecdfbb 3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273 break;;
3274 esac
3275done
3276else
81ecdfbb 3277 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
81ecdfbb
RW
3280{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282as_fn_error "cannot compute suffix of object files: cannot compile
3283See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3284fi
42ecbf5e
DJ
3285rm -f conftest.$ac_cv_objext conftest.$ac_ext
3286fi
81ecdfbb
RW
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3288$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3289OBJEXT=$ac_cv_objext
3290ac_objext=$OBJEXT
81ecdfbb
RW
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3292$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3293if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
42ecbf5e 3295else
81ecdfbb 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3297/* end confdefs.h. */
3298
3299int
3300main ()
3301{
3302#ifndef __GNUC__
3303 choke me
3304#endif
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
81ecdfbb 3310if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3311 ac_compiler_gnu=yes
3312else
81ecdfbb 3313 ac_compiler_gnu=no
42ecbf5e 3314fi
81ecdfbb 3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3316ac_cv_c_compiler_gnu=$ac_compiler_gnu
3317
3318fi
81ecdfbb
RW
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3320$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3321if test $ac_compiler_gnu = yes; then
3322 GCC=yes
3323else
3324 GCC=
3325fi
42ecbf5e
DJ
3326ac_test_CFLAGS=${CFLAGS+set}
3327ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3329$as_echo_n "checking whether $CC accepts -g... " >&6; }
3330if test "${ac_cv_prog_cc_g+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3332else
3333 ac_save_c_werror_flag=$ac_c_werror_flag
3334 ac_c_werror_flag=yes
3335 ac_cv_prog_cc_g=no
3336 CFLAGS="-g"
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3338/* end confdefs.h. */
3339
3340int
3341main ()
3342{
3343
3344 ;
3345 return 0;
3346}
3347_ACEOF
81ecdfbb 3348if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3349 ac_cv_prog_cc_g=yes
3350else
81ecdfbb
RW
3351 CFLAGS=""
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h. */
3354
3355int
3356main ()
3357{
3358
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363if ac_fn_c_try_compile "$LINENO"; then :
3364
3365else
3366 ac_c_werror_flag=$ac_save_c_werror_flag
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h. */
3370
3371int
3372main ()
3373{
42ecbf5e 3374
81ecdfbb
RW
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_g=yes
3381fi
3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383fi
3384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3385fi
81ecdfbb
RW
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3388fi
81ecdfbb
RW
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3390$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3391if test "$ac_test_CFLAGS" = set; then
3392 CFLAGS=$ac_save_CFLAGS
3393elif test $ac_cv_prog_cc_g = yes; then
3394 if test "$GCC" = yes; then
3395 CFLAGS="-g -O2"
3396 else
3397 CFLAGS="-g"
3398 fi
3399else
3400 if test "$GCC" = yes; then
3401 CFLAGS="-O2"
3402 else
3403 CFLAGS=
3404 fi
3405fi
81ecdfbb
RW
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3407$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3408if test "${ac_cv_prog_cc_c89+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
42ecbf5e 3410else
81ecdfbb 3411 ac_cv_prog_cc_c89=no
42ecbf5e 3412ac_save_CC=$CC
81ecdfbb 3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3414/* end confdefs.h. */
3415#include <stdarg.h>
3416#include <stdio.h>
3417#include <sys/types.h>
3418#include <sys/stat.h>
3419/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3420struct buf { int x; };
3421FILE * (*rcsopen) (struct buf *, struct stat *, int);
3422static char *e (p, i)
3423 char **p;
3424 int i;
3425{
3426 return p[i];
3427}
3428static char *f (char * (*g) (char **, int), char **p, ...)
3429{
3430 char *s;
3431 va_list v;
3432 va_start (v,p);
3433 s = g (p, va_arg (v,int));
3434 va_end (v);
3435 return s;
3436}
3437
3438/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3439 function prototypes and stuff, but not '\xHH' hex character constants.
3440 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3441 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3443 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3444 that's true only with -std. */
42ecbf5e
DJ
3445int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3446
81ecdfbb
RW
3447/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3448 inside strings and character constants. */
3449#define FOO(x) 'x'
3450int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3451
42ecbf5e
DJ
3452int test (int i, double x);
3453struct s1 {int (*f) (int a);};
3454struct s2 {int (*f) (double a);};
3455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456int argc;
3457char **argv;
3458int
3459main ()
3460{
3461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 ;
3463 return 0;
3464}
3465_ACEOF
81ecdfbb
RW
3466for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3468do
3469 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3472fi
81ecdfbb
RW
3473rm -f core conftest.err conftest.$ac_objext
3474 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3475done
81ecdfbb 3476rm -f conftest.$ac_ext
42ecbf5e
DJ
3477CC=$ac_save_CC
3478
3479fi
81ecdfbb
RW
3480# AC_CACHE_VAL
3481case "x$ac_cv_prog_cc_c89" in
3482 x)
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3484$as_echo "none needed" >&6; } ;;
3485 xno)
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3487$as_echo "unsupported" >&6; } ;;
42ecbf5e 3488 *)
81ecdfbb
RW
3489 CC="$CC $ac_cv_prog_cc_c89"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3491$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3492esac
81ecdfbb 3493if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3494
42ecbf5e
DJ
3495fi
3496
42ecbf5e
DJ
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
81ecdfbb
RW
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3505$as_echo_n "checking for library containing strerror... " >&6; }
3506if test "${ac_cv_search_strerror+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3508else
3509 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3511/* end confdefs.h. */
3512
81ecdfbb
RW
3513/* Override any GCC internal prototype to avoid an error.
3514 Use char because int might match the return type of a GCC
3515 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3516#ifdef __cplusplus
3517extern "C"
3518#endif
42ecbf5e
DJ
3519char strerror ();
3520int
3521main ()
3522{
81ecdfbb 3523return strerror ();
42ecbf5e
DJ
3524 ;
3525 return 0;
3526}
3527_ACEOF
81ecdfbb
RW
3528for ac_lib in '' cposix; do
3529 if test -z "$ac_lib"; then
3530 ac_res="none required"
3531 else
3532 ac_res=-l$ac_lib
42ecbf5e 3533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3534 fi
3535 if ac_fn_c_try_link "$LINENO"; then :
3536 ac_cv_search_strerror=$ac_res
3537fi
3538rm -f core conftest.err conftest.$ac_objext \
3539 conftest$ac_exeext
3540 if test "${ac_cv_search_strerror+set}" = set; then :
3541 break
3542fi
3543done
3544if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3545
42ecbf5e 3546else
81ecdfbb 3547 ac_cv_search_strerror=no
42ecbf5e 3548fi
81ecdfbb 3549rm conftest.$ac_ext
42ecbf5e
DJ
3550LIBS=$ac_func_search_save_LIBS
3551fi
81ecdfbb
RW
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3553$as_echo "$ac_cv_search_strerror" >&6; }
3554ac_res=$ac_cv_search_strerror
3555if test "$ac_res" != no; then :
3556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3557
3558fi
e5a52504
MM
3559
3560
c4dd807e 3561BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
81ecdfbb
RW
3562am__api_version='1.11'
3563
e5a52504
MM
3564# Find a good install program. We prefer a C program (faster),
3565# so one script is as good as another. But avoid the broken or
3566# incompatible versions:
3567# SysV /etc/install, /usr/sbin/install
3568# SunOS /usr/etc/install
3569# IRIX /sbin/install
3570# AIX /bin/install
42ecbf5e 3571# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3575# OS/2's system install, which has a completely different semantic
e5a52504 3576# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3577# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3579$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3580if test -z "$INSTALL"; then
81ecdfbb
RW
3581if test "${ac_cv_path_install+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
e5a52504 3583else
42ecbf5e
DJ
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3589 # Account for people who put trailing slashes in PATH elements.
3590case $as_dir/ in #((
3591 ./ | .// | /[cC]/* | \
42ecbf5e 3592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3594 /usr/ucb/* ) ;;
3595 *)
3596 # OSF1 and SCO ODT 3.0 have their own names for install.
3597 # Don't use installbsd from OSF since it installs stuff as root
3598 # by default.
3599 for ac_prog in ginstall scoinst install; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3601 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3602 if test $ac_prog = install &&
42ecbf5e 3603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3604 # AIX install. It has an incompatible calling convention.
3605 :
42ecbf5e
DJ
3606 elif test $ac_prog = install &&
3607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3608 # program-specific install script used by HP pwplus--don't use.
3609 :
252b5132 3610 else
58c85be7
RW
3611 rm -rf conftest.one conftest.two conftest.dir
3612 echo one > conftest.one
3613 echo two > conftest.two
3614 mkdir conftest.dir
3615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3616 test -s conftest.one && test -s conftest.two &&
3617 test -s conftest.dir/conftest.one &&
3618 test -s conftest.dir/conftest.two
3619 then
3620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3621 break 3
3622 fi
252b5132
RH
3623 fi
3624 fi
3625 done
42ecbf5e
DJ
3626 done
3627 ;;
3628esac
81ecdfbb
RW
3629
3630 done
3631IFS=$as_save_IFS
42ecbf5e 3632
58c85be7 3633rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3634
3635fi
3636 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3637 INSTALL=$ac_cv_path_install
252b5132 3638 else
58c85be7
RW
3639 # As a last resort, use the slow shell script. Don't cache a
3640 # value for INSTALL within a source directory, because that will
252b5132 3641 # break other packages using the cache if that directory is
58c85be7 3642 # removed, or if the value is a relative name.
42ecbf5e 3643 INSTALL=$ac_install_sh
252b5132
RH
3644 fi
3645fi
81ecdfbb
RW
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3647$as_echo "$INSTALL" >&6; }
252b5132
RH
3648
3649# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3650# It thinks the first close brace ends the variable substitution.
3651test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3652
42ecbf5e 3653test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3654
3655test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3656
81ecdfbb
RW
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3659# Just in case
3660sleep 1
42ecbf5e 3661echo timestamp > conftest.file
81ecdfbb
RW
3662# Reject unsafe characters in $srcdir or the absolute working directory
3663# name. Accept space and tab only in the latter.
3664am_lf='
3665'
3666case `pwd` in
3667 *[\\\"\#\$\&\'\`$am_lf]*)
3668 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3669esac
3670case $srcdir in
3671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3672 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3673esac
3674
252b5132
RH
3675# Do `set' in a subshell so we don't clobber the current shell's
3676# arguments. Must try -L first in case configure is actually a
3677# symlink; some systems play weird games with the mod time of symlinks
3678# (eg FreeBSD returns the mod time of the symlink's containing
3679# directory).
3680if (
81ecdfbb 3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3682 if test "$*" = "X"; then
3683 # -L didn't work.
81ecdfbb 3684 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3685 fi
42ecbf5e
DJ
3686 rm -f conftest.file
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3689
3690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3694 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3695alias in your environment" "$LINENO" 5
252b5132
RH
3696 fi
3697
42ecbf5e 3698 test "$2" = conftest.file
252b5132
RH
3699 )
3700then
3701 # Ok.
3702 :
3703else
81ecdfbb
RW
3704 as_fn_error "newly created file is older than distributed files!
3705Check your system clock" "$LINENO" 5
252b5132 3706fi
81ecdfbb
RW
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708$as_echo "yes" >&6; }
252b5132 3709test "$program_prefix" != NONE &&
81ecdfbb 3710 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3711# Use a double $ so make ignores it.
3712test "$program_suffix" != NONE &&
81ecdfbb
RW
3713 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3714# Double any \ or $.
42ecbf5e 3715# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3716ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3717program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3718
3719# expand $ac_aux_dir to an absolute path
3720am_aux_dir=`cd $ac_aux_dir && pwd`
3721
81ecdfbb
RW
3722if test x"${MISSING+set}" != xset; then
3723 case $am_aux_dir in
3724 *\ * | *\ *)
3725 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3726 *)
3727 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3728 esac
3729fi
42ecbf5e
DJ
3730# Use eval to expand $SHELL
3731if eval "$MISSING --run true"; then
3732 am_missing_run="$MISSING --run "
3733else
3734 am_missing_run=
81ecdfbb
RW
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3736$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3737fi
3738
3739if test x"${install_sh}" != xset; then
3740 case $am_aux_dir in
3741 *\ * | *\ *)
3742 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3743 *)
3744 install_sh="\${SHELL} $am_aux_dir/install-sh"
3745 esac
3746fi
3747
3748# Installed binaries are usually stripped using `strip' when the user
3749# run `make install-strip'. However `strip' might not be the right
3750# tool to use in cross-compilation environments, therefore Automake
3751# will honor the `STRIP' environment variable to overrule this program.
3752if test "$cross_compiling" != no; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3755set dummy ${ac_tool_prefix}strip; ac_word=$2
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
3758if test "${ac_cv_prog_STRIP+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760else
3761 if test -n "$STRIP"; then
3762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775done
3776 done
3777IFS=$as_save_IFS
3778
3779fi
3780fi
3781STRIP=$ac_cv_prog_STRIP
3782if test -n "$STRIP"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3784$as_echo "$STRIP" >&6; }
3785else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787$as_echo "no" >&6; }
3788fi
3789
3790
3791fi
3792if test -z "$ac_cv_prog_STRIP"; then
3793 ac_ct_STRIP=$STRIP
3794 # Extract the first word of "strip", so it can be a program name with args.
3795set dummy strip; ac_word=$2
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
3798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800else
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816 done
3817IFS=$as_save_IFS
3818
3819fi
3820fi
3821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822if test -n "$ac_ct_STRIP"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3824$as_echo "$ac_ct_STRIP" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
3829
3830 if test "x$ac_ct_STRIP" = x; then
3831 STRIP=":"
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834yes:)
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;;
3838esac
3839 STRIP=$ac_ct_STRIP
3840 fi
3841else
3842 STRIP="$ac_cv_prog_STRIP"
3843fi
3844
3845fi
3846INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3847
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3849$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3850if test -z "$MKDIR_P"; then
3851 if test "${ac_cv_path_mkdir+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in mkdir gmkdir; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3862 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3863 'mkdir (GNU coreutils) '* | \
3864 'mkdir (coreutils) '* | \
3865 'mkdir (fileutils) '4.1*)
3866 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3867 break 3;;
3868 esac
3869 done
3870 done
42ecbf5e 3871 done
81ecdfbb
RW
3872IFS=$as_save_IFS
3873
3874fi
3875
3876 if test "${ac_cv_path_mkdir+set}" = set; then
3877 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3878 else
81ecdfbb
RW
3879 # As a last resort, use the slow shell script. Don't cache a
3880 # value for MKDIR_P within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the value is a relative name.
3883 test -d ./--version && rmdir ./--version
3884 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3885 fi
3886fi
81ecdfbb
RW
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3888$as_echo "$MKDIR_P" >&6; }
3889
3890mkdir_p="$MKDIR_P"
3891case $mkdir_p in
3892 [\\/$]* | ?:[\\/]*) ;;
3893 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3894esac
42ecbf5e
DJ
3895
3896for ac_prog in gawk mawk nawk awk
3897do
3898 # Extract the first word of "$ac_prog", so it can be a program name with args.
3899set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
3902if test "${ac_cv_prog_AWK+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3904else
3905 if test -n "$AWK"; then
3906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3915 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3917 break 2
3918 fi
3919done
81ecdfbb
RW
3920 done
3921IFS=$as_save_IFS
42ecbf5e
DJ
3922
3923fi
3924fi
3925AWK=$ac_cv_prog_AWK
3926if test -n "$AWK"; then
81ecdfbb
RW
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3928$as_echo "$AWK" >&6; }
42ecbf5e 3929else
81ecdfbb
RW
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
42ecbf5e 3932fi
252b5132 3933
81ecdfbb 3934
42ecbf5e
DJ
3935 test -n "$AWK" && break
3936done
252b5132 3937
81ecdfbb
RW
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3939$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3940set x ${MAKE-make}
3941ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3942if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3943 $as_echo_n "(cached) " >&6
252b5132 3944else
42ecbf5e 3945 cat >conftest.make <<\_ACEOF
81ecdfbb 3946SHELL = /bin/sh
252b5132 3947all:
81ecdfbb 3948 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3949_ACEOF
252b5132 3950# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3951case `${MAKE-make} -f conftest.make 2>/dev/null` in
3952 *@@@%%%=?*=@@@%%%*)
3953 eval ac_cv_prog_make_${ac_make}_set=yes;;
3954 *)
3955 eval ac_cv_prog_make_${ac_make}_set=no;;
3956esac
42ecbf5e 3957rm -f conftest.make
252b5132 3958fi
81ecdfbb
RW
3959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961$as_echo "yes" >&6; }
252b5132
RH
3962 SET_MAKE=
3963else
81ecdfbb
RW
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
252b5132
RH
3966 SET_MAKE="MAKE=${MAKE-make}"
3967fi
3968
42ecbf5e
DJ
3969rm -rf .tst 2>/dev/null
3970mkdir .tst 2>/dev/null
3971if test -d .tst; then
3972 am__leading_dot=.
3973else
3974 am__leading_dot=_
3975fi
3976rmdir .tst 2>/dev/null
3977
3978DEPDIR="${am__leading_dot}deps"
3979
81ecdfbb 3980ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3981
3982
3983am_make=${MAKE-make}
3984cat > confinc << 'END'
3985am__doit:
81ecdfbb 3986 @echo this is the am__doit target
42ecbf5e
DJ
3987.PHONY: am__doit
3988END
3989# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3991$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3992am__include="#"
3993am__quote=
3994_am_result=none
3995# First try GNU make style include.
3996echo "include confinc" > confmf
81ecdfbb
RW
3997# Ignore all kinds of additional output from `make'.
3998case `$am_make -s -f confmf 2> /dev/null` in #(
3999*the\ am__doit\ target*)
4000 am__include=include
4001 am__quote=
4002 _am_result=GNU
4003 ;;
4004esac
42ecbf5e
DJ
4005# Now try BSD make style include.
4006if test "$am__include" = "#"; then
4007 echo '.include "confinc"' > confmf
81ecdfbb
RW
4008 case `$am_make -s -f confmf 2> /dev/null` in #(
4009 *the\ am__doit\ target*)
4010 am__include=.include
4011 am__quote="\""
4012 _am_result=BSD
4013 ;;
4014 esac
42ecbf5e
DJ
4015fi
4016
4017
81ecdfbb
RW
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4019$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4020rm -f confinc confmf
4021
81ecdfbb
RW
4022# Check whether --enable-dependency-tracking was given.
4023if test "${enable_dependency_tracking+set}" = set; then :
4024 enableval=$enable_dependency_tracking;
4025fi
42ecbf5e 4026
42ecbf5e
DJ
4027if test "x$enable_dependency_tracking" != xno; then
4028 am_depcomp="$ac_aux_dir/depcomp"
4029 AMDEPBACKSLASH='\'
4030fi
81ecdfbb 4031 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4032 AMDEP_TRUE=
4033 AMDEP_FALSE='#'
4034else
4035 AMDEP_TRUE='#'
4036 AMDEP_FALSE=
4037fi
4038
e5a52504 4039
81ecdfbb
RW
4040if test "`cd $srcdir && pwd`" != "`pwd`"; then
4041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4042 # is not polluted with repeated "-I."
4043 am__isrc=' -I$(srcdir)'
4044 # test to see if srcdir already configured
4045 if test -f $srcdir/config.status; then
4046 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4047 fi
42ecbf5e 4048fi
252b5132 4049
42ecbf5e
DJ
4050# test whether we have cygpath
4051if test -z "$CYGPATH_W"; then
4052 if (cygpath --version) >/dev/null 2>/dev/null; then
4053 CYGPATH_W='cygpath -w'
4054 else
4055 CYGPATH_W=echo
4056 fi
252b5132 4057fi
42ecbf5e
DJ
4058
4059
4060# Define the identity of the package.
4061 PACKAGE=ld
4062 VERSION=${BFD_VERSION}
4063
4064
4065cat >>confdefs.h <<_ACEOF
e5a52504 4066#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4067_ACEOF
4068
252b5132 4069
42ecbf5e 4070cat >>confdefs.h <<_ACEOF
e5a52504 4071#define VERSION "$VERSION"
42ecbf5e
DJ
4072_ACEOF
4073
4074# Some tools Automake needs.
4075
4076ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4077
4078
4079AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4080
4081
4082AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4083
4084
4085AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4086
e5a52504 4087
42ecbf5e 4088MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4089
42ecbf5e
DJ
4090# We need awk for the "check" target. The system "awk" is bad on
4091# some platforms.
4092# Always define AMTAR for backward compatibility.
4093
4094AMTAR=${AMTAR-"${am_missing_run}tar"}
4095
4096am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4097
4098
4099
4100
4101depcc="$CC" am_compiler_list=
4102
81ecdfbb
RW
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4104$as_echo_n "checking dependency style of $depcc... " >&6; }
4105if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4107else
4108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4109 # We make a subdir and do the tests there. Otherwise we can end up
4110 # making bogus files that we don't know about and never remove. For
4111 # instance it was reported that on HP-UX the gcc test will end up
4112 # making a dummy file named `D' -- because `-MD' means `put the output
4113 # in D'.
4114 mkdir conftest.dir
4115 # Copy depcomp to subdir because otherwise we won't find it if we're
4116 # using a relative directory.
4117 cp "$am_depcomp" conftest.dir
4118 cd conftest.dir
4119 # We will build objects and dependencies in a subdirectory because
4120 # it helps to detect inapplicable dependency modes. For instance
4121 # both Tru64's cc and ICC support -MD to output dependencies as a
4122 # side effect of compilation, but ICC will put the dependencies in
4123 # the current directory while Tru64 will put them in the object
4124 # directory.
4125 mkdir sub
4126
4127 am_cv_CC_dependencies_compiler_type=none
4128 if test "$am_compiler_list" = ""; then
4129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130 fi
81ecdfbb
RW
4131 am__universal=false
4132 case " $depcc " in #(
4133 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4134 esac
4135
42ecbf5e
DJ
4136 for depmode in $am_compiler_list; do
4137 # Setup a source with many dependencies, because some compilers
4138 # like to wrap large dependency lists on column 80 (with \), and
4139 # we should not choose a depcomp mode which is confused by this.
4140 #
4141 # We need to recreate these files for each test, as the compiler may
4142 # overwrite some of them when testing with obscure command lines.
4143 # This happens at least with the AIX C compiler.
4144 : > sub/conftest.c
4145 for i in 1 2 3 4 5 6; do
4146 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4147 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4148 # Solaris 8's {/usr,}/bin/sh.
4149 touch sub/conftst$i.h
4150 done
4151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152
81ecdfbb
RW
4153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4154 # mode. It turns out that the SunPro C++ compiler does not properly
4155 # handle `-M -o', and we need to detect this. Also, some Intel
4156 # versions had trouble with output in subdirs
4157 am__obj=sub/conftest.${OBJEXT-o}
4158 am__minus_obj="-o $am__obj"
42ecbf5e 4159 case $depmode in
81ecdfbb
RW
4160 gcc)
4161 # This depmode causes a compiler race in universal mode.
4162 test "$am__universal" = false || continue
4163 ;;
42ecbf5e
DJ
4164 nosideeffect)
4165 # after this tag, mechanisms are not by side-effect, so they'll
4166 # only be used when explicitly requested
4167 if test "x$enable_dependency_tracking" = xyes; then
4168 continue
4169 else
4170 break
4171 fi
4172 ;;
81ecdfbb
RW
4173 msvisualcpp | msvcmsys)
4174 # This compiler won't grok `-c -o', but also, the minuso test has
4175 # not run yet. These depmodes are late enough in the game, and
4176 # so weak that their functioning should not be impacted.
4177 am__obj=conftest.${OBJEXT-o}
4178 am__minus_obj=
4179 ;;
42ecbf5e
DJ
4180 none) break ;;
4181 esac
42ecbf5e 4182 if depmode=$depmode \
81ecdfbb 4183 source=sub/conftest.c object=$am__obj \
42ecbf5e 4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4185 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4186 >/dev/null 2>conftest.err &&
81ecdfbb 4187 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4188 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4189 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191 # icc doesn't choke on unknown options, it will just issue warnings
4192 # or remarks (even with -Werror). So we grep stderr for any message
4193 # that says an option was ignored or not supported.
4194 # When given -MP, icc 7.0 and 7.1 complain thusly:
4195 # icc: Command line warning: ignoring option '-M'; no argument required
4196 # The diagnosis changed in icc 8.0:
4197 # icc: Command line remark: option '-MP' not supported
4198 if (grep 'ignoring option' conftest.err ||
4199 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200 am_cv_CC_dependencies_compiler_type=$depmode
4201 break
4202 fi
4203 fi
4204 done
2469cfa2 4205
42ecbf5e
DJ
4206 cd ..
4207 rm -rf conftest.dir
2469cfa2 4208else
42ecbf5e
DJ
4209 am_cv_CC_dependencies_compiler_type=none
4210fi
4211
2469cfa2 4212fi
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4214$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4215CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216
81ecdfbb 4217 if
42ecbf5e
DJ
4218 test "x$enable_dependency_tracking" != xno \
4219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4220 am__fastdepCC_TRUE=
4221 am__fastdepCC_FALSE='#'
2469cfa2 4222else
42ecbf5e
DJ
4223 am__fastdepCC_TRUE='#'
4224 am__fastdepCC_FALSE=
2469cfa2 4225fi
2469cfa2 4226
2469cfa2 4227
e5a52504 4228
42ecbf5e 4229
64ac50ac
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4231$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4232 # Check whether --enable-maintainer-mode was given.
4233if test "${enable_maintainer_mode+set}" = set; then :
4234 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4235else
4236 USE_MAINTAINER_MODE=no
4237fi
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4240$as_echo "$USE_MAINTAINER_MODE" >&6; }
4241 if test $USE_MAINTAINER_MODE = yes; then
4242 MAINTAINER_MODE_TRUE=
4243 MAINTAINER_MODE_FALSE='#'
4244else
4245 MAINTAINER_MODE_TRUE='#'
4246 MAINTAINER_MODE_FALSE=
4247fi
4248
4249 MAINT=$MAINTAINER_MODE_TRUE
4250
4251
4252
d7040cdb 4253
81ecdfbb
RW
4254# Check whether --with-lib-path was given.
4255if test "${with_lib_path+set}" = set; then :
4256 withval=$with_lib_path; LIB_PATH=$withval
4257fi
4258
4259# Check whether --enable-targets was given.
4260if test "${enable_targets+set}" = set; then :
4261 enableval=$enable_targets; case "${enableval}" in
4262 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4263 ;;
4264 no) enable_targets= ;;
4265 *) enable_targets=$enableval ;;
4266esac
81ecdfbb
RW
4267fi
4268# Check whether --enable-64-bit-bfd was given.
4269if test "${enable_64_bit_bfd+set}" = set; then :
4270 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4271 yes) want64=true ;;
4272 no) want64=false ;;
81ecdfbb 4273 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4274esac
2469cfa2 4275else
ce2cded5 4276 want64=false
81ecdfbb 4277fi
d7040cdb
SE
4278
4279
81ecdfbb
RW
4280# Check whether --with-sysroot was given.
4281if test "${with_sysroot+set}" = set; then :
4282 withval=$with_sysroot;
ce2cded5
L
4283 case ${with_sysroot} in
4284 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4285 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4286 esac
d7040cdb 4287
ce2cded5
L
4288 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4289 use_sysroot=yes
d7040cdb 4290
ce2cded5
L
4291 if test "x$prefix" = xNONE; then
4292 test_prefix=/usr/local
4293 else
4294 test_prefix=$prefix
4295 fi
4296 if test "x$exec_prefix" = xNONE; then
4297 test_exec_prefix=$test_prefix
4298 else
4299 test_exec_prefix=$exec_prefix
4300 fi
4301 case ${TARGET_SYSTEM_ROOT} in
4302 "${test_prefix}"|"${test_prefix}/"*|\
4303 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4304 '${prefix}'|'${prefix}/'*|\
4305 '${exec_prefix}'|'${exec_prefix}/'*)
4306 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4307 TARGET_SYSTEM_ROOT_DEFINE="$t"
4308 ;;
4309 esac
d7040cdb 4310
e5a52504 4311else
d7040cdb 4312
ce2cded5
L
4313 use_sysroot=no
4314 TARGET_SYSTEM_ROOT=
4315 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4316
81ecdfbb
RW
4317fi
4318
d7040cdb
SE
4319
4320
4321
4322
4fda8867
NC
4323# Check whether --enable-gold was given.
4324if test "${enable_gold+set}" = set; then :
4325 enableval=$enable_gold; case "${enableval}" in
c7791212 4326 default)
4fda8867
NC
4327 install_as_default=no
4328 installed_linker=ld.bfd
4329 ;;
c7791212 4330 yes|no)
4fda8867
NC
4331 install_as_default=yes
4332 installed_linker=ld.bfd
4333 ;;
4334 *)
4335 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4336 ;;
4337 esac
4338else
c7791212
NC
4339 install_as_default=yes
4340 installed_linker=ld.bfd
4fda8867
NC
4341fi
4342
4343
4344
4345
81ecdfbb
RW
4346# Check whether --enable-got was given.
4347if test "${enable_got+set}" = set; then :
4348 enableval=$enable_got; case "${enableval}" in
7fb9f789 4349 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4350 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4351esac
4352else
4353 got_handling=target
81ecdfbb
RW
4354fi
4355
7fb9f789
NC
4356
4357case "${got_handling}" in
4358 target)
4359
81ecdfbb 4360$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4361 ;;
4362 single)
4363
81ecdfbb 4364$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4365 ;;
4366 negative)
4367
81ecdfbb 4368$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4369 ;;
4370 multigot)
4371
81ecdfbb 4372$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4373 ;;
81ecdfbb 4374 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4375esac
4376
397841b5
AM
4377ac_ext=c
4378ac_cpp='$CPP $CPPFLAGS'
4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4383$as_echo_n "checking how to run the C preprocessor... " >&6; }
4384# On Suns, sometimes $CPP names a directory.
4385if test -n "$CPP" && test -d "$CPP"; then
4386 CPP=
ce2cded5 4387fi
397841b5
AM
4388if test -z "$CPP"; then
4389 if test "${ac_cv_prog_CPP+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391else
4392 # Double quotes because CPP needs to be expanded
4393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4394 do
4395 ac_preproc_ok=false
4396for ac_c_preproc_warn_flag in '' yes
4397do
4398 # Use a header file that comes with gcc, so configuring glibc
4399 # with a fresh cross-compiler works.
4400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 # <limits.h> exists even on freestanding compilers.
4402 # On the NeXT, cc -E runs the code through the compiler's parser,
4403 # not just through cpp. "Syntax error" is here to catch this case.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406#ifdef __STDC__
4407# include <limits.h>
4408#else
4409# include <assert.h>
4410#endif
4411 Syntax error
4412_ACEOF
4413if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4414
397841b5
AM
4415else
4416 # Broken: fails on valid input.
4417continue
ce2cded5 4418fi
397841b5 4419rm -f conftest.err conftest.$ac_ext
d7040cdb 4420
397841b5
AM
4421 # OK, works on sane cases. Now check whether nonexistent headers
4422 # can be detected and how.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h. */
4425#include <ac_nonexistent.h>
4426_ACEOF
4427if ac_fn_c_try_cpp "$LINENO"; then :
4428 # Broken: success on invalid input.
4429continue
4430else
4431 # Passes both tests.
4432ac_preproc_ok=:
4433break
ce2cded5 4434fi
397841b5 4435rm -f conftest.err conftest.$ac_ext
d7040cdb 4436
397841b5
AM
4437done
4438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439rm -f conftest.err conftest.$ac_ext
4440if $ac_preproc_ok; then :
4441 break
81ecdfbb
RW
4442fi
4443
397841b5
AM
4444 done
4445 ac_cv_prog_CPP=$CPP
d7040cdb 4446
ce2cded5 4447fi
397841b5
AM
4448 CPP=$ac_cv_prog_CPP
4449else
4450 ac_cv_prog_CPP=$CPP
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4453$as_echo "$CPP" >&6; }
4454ac_preproc_ok=false
4455for ac_c_preproc_warn_flag in '' yes
4456do
4457 # Use a header file that comes with gcc, so configuring glibc
4458 # with a fresh cross-compiler works.
4459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460 # <limits.h> exists even on freestanding compilers.
4461 # On the NeXT, cc -E runs the code through the compiler's parser,
4462 # not just through cpp. "Syntax error" is here to catch this case.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h. */
4465#ifdef __STDC__
4466# include <limits.h>
4467#else
4468# include <assert.h>
4469#endif
4470 Syntax error
4471_ACEOF
4472if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4473
397841b5
AM
4474else
4475 # Broken: fails on valid input.
4476continue
4477fi
4478rm -f conftest.err conftest.$ac_ext
2469cfa2 4479
397841b5
AM
4480 # OK, works on sane cases. Now check whether nonexistent headers
4481 # can be detected and how.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h. */
4484#include <ac_nonexistent.h>
4485_ACEOF
4486if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: success on invalid input.
4488continue
4489else
4490 # Passes both tests.
4491ac_preproc_ok=:
4492break
4493fi
4494rm -f conftest.err conftest.$ac_ext
d7040cdb 4495
397841b5
AM
4496done
4497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498rm -f conftest.err conftest.$ac_ext
4499if $ac_preproc_ok; then :
d7040cdb 4500
397841b5
AM
4501else
4502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504as_fn_error "C preprocessor \"$CPP\" fails sanity check
4505See \`config.log' for more details." "$LINENO" 5; }
ce2cded5 4506fi
d7040cdb 4507
ce2cded5
L
4508ac_ext=c
4509ac_cpp='$CPP $CPPFLAGS'
4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512ac_compiler_gnu=$ac_cv_c_compiler_gnu
397841b5
AM
4513
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4516$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4517if test "${ac_cv_path_GREP+set}" = set; then :
81ecdfbb 4518 $as_echo_n "(cached) " >&6
d7040cdb 4519else
397841b5
AM
4520 if test -z "$GREP"; then
4521 ac_path_GREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
397841b5 4528 for ac_prog in grep ggrep; do
81ecdfbb 4529 for ac_exec_ext in '' $ac_executable_extensions; do
397841b5
AM
4530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4532# Check for GNU ac_path_GREP and select it if it is found.
4533 # Check for GNU $ac_path_GREP
4534case `"$ac_path_GREP" --version 2>&1` in
4535*GNU*)
4536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4537*)
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'GREP' >> "conftest.nl"
4546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_GREP="$ac_path_GREP"
4552 ac_path_GREP_max=$ac_count
4553 fi
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
81ecdfbb 4556 done
397841b5
AM
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
d7040cdb 4559
397841b5
AM
4560 $ac_path_GREP_found && break 3
4561 done
4562 done
4563 done
4564IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_GREP"; then
4566 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567 fi
d7040cdb 4568else
397841b5 4569 ac_cv_path_GREP=$GREP
d7040cdb 4570fi
d7040cdb 4571
252b5132 4572fi
397841b5
AM
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4574$as_echo "$ac_cv_path_GREP" >&6; }
4575 GREP="$ac_cv_path_GREP"
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4579$as_echo_n "checking for egrep... " >&6; }
4580if test "${ac_cv_path_EGREP+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582else
4583 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4584 then ac_cv_path_EGREP="$GREP -E"
4585 else
4586 if test -z "$EGREP"; then
4587 ac_path_EGREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in egrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4597 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4598# Check for GNU ac_path_EGREP and select it if it is found.
4599 # Check for GNU $ac_path_EGREP
4600case `"$ac_path_EGREP" --version 2>&1` in
4601*GNU*)
4602 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4603*)
4604 ac_count=0
4605 $as_echo_n 0123456789 >"conftest.in"
4606 while :
4607 do
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo 'EGREP' >> "conftest.nl"
4612 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_EGREP="$ac_path_EGREP"
4618 ac_path_EGREP_max=$ac_count
4619 fi
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4622 done
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624esac
4625
4626 $ac_path_EGREP_found && break 3
4627 done
4628 done
4629 done
4630IFS=$as_save_IFS
4631 if test -z "$ac_cv_path_EGREP"; then
4632 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4633 fi
4634else
4635 ac_cv_path_EGREP=$EGREP
4636fi
4637
4638 fi
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4641$as_echo "$ac_cv_path_EGREP" >&6; }
4642 EGREP="$ac_cv_path_EGREP"
4643
4644
4645
4646GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h. */
4649__GNUC__
4650_ACEOF
4651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4653
4654else
4655 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4656fi
4657rm -f conftest*
4658
4659
4660# Check whether --enable-werror was given.
4661if test "${enable_werror+set}" = set; then :
4662 enableval=$enable_werror; case "${enableval}" in
4663 yes | y) ERROR_ON_WARNING="yes" ;;
4664 no | n) ERROR_ON_WARNING="no" ;;
4665 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4666 esac
4667fi
4668
4669
4670# Disable -Wformat by default when using gcc on mingw
4671case "${host}" in
4672 *-*-mingw32*)
4673 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4674 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4675 fi
4676 ;;
4677 *) ;;
4678esac
4679
4680# Enable -Werror by default when using gcc
4681if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4682 ERROR_ON_WARNING=yes
4683fi
4684
4685NO_WERROR=
4686if test "${ERROR_ON_WARNING}" = yes ; then
4687 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4688 NO_WERROR="-Wno-error"
4689fi
4690
4691if test "${GCC}" = yes ; then
4692 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4693fi
4694
4695# Check whether --enable-build-warnings was given.
4696if test "${enable_build_warnings+set}" = set; then :
4697 enableval=$enable_build_warnings; case "${enableval}" in
4698 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4699 no) if test "${GCC}" = yes ; then
4700 WARN_CFLAGS="-w"
4701 fi;;
4702 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4703 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4704 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4705 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4706 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4707esac
4708fi
4709
4710
4711if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4712 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4713fi
4714
4715
4716
4717
4718
44350750
NC
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
4721$as_echo_n "checking for LC_MESSAGES... " >&6; }
4722if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h. */
4727#include <locale.h>
4728int
4729main ()
4730{
4731return LC_MESSAGES
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736if ac_fn_c_try_link "$LINENO"; then :
4737 am_cv_val_LC_MESSAGES=yes
4738else
4739 am_cv_val_LC_MESSAGES=no
4740fi
4741rm -f core conftest.err conftest.$ac_objext \
4742 conftest$ac_exeext conftest.$ac_ext
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
4745$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
4746 if test $am_cv_val_LC_MESSAGES = yes; then
4747
4748$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
4749
4750 fi
4751
4752
397841b5
AM
4753ac_config_headers="$ac_config_headers config.h:config.in"
4754
4755
df7b86aa
NC
4756# PR 14072
4757
4758
397841b5
AM
4759if test -z "$target" ; then
4760 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4761fi
4762if test -z "$host" ; then
4763 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4764fi
4765
4766# host-specific stuff:
4767
4768ac_ext=c
4769ac_cpp='$CPP $CPPFLAGS'
4770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4775set dummy ${ac_tool_prefix}gcc; ac_word=$2
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777$as_echo_n "checking for $ac_word... " >&6; }
4778if test "${ac_cv_prog_CC+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780else
4781 if test -n "$CC"; then
4782 ac_cv_prog_CC="$CC" # Let the user override the test.
4783else
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795done
4796 done
4797IFS=$as_save_IFS
4798
4799fi
4800fi
4801CC=$ac_cv_prog_CC
4802if test -n "$CC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4804$as_echo "$CC" >&6; }
4805else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811fi
4812if test -z "$ac_cv_prog_CC"; then
4813 ac_ct_CC=$CC
4814 # Extract the first word of "gcc", so it can be a program name with args.
4815set dummy gcc; ac_word=$2
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817$as_echo_n "checking for $ac_word... " >&6; }
81ecdfbb
RW
4818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
252b5132 4820else
ce2cded5
L
4821 if test -n "$ac_ct_CC"; then
4822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4823else
ce2cded5
L
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4831 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4833 break 2
4834 fi
4835done
81ecdfbb
RW
4836 done
4837IFS=$as_save_IFS
4838
252b5132
RH
4839fi
4840fi
ce2cded5
L
4841ac_ct_CC=$ac_cv_prog_ac_ct_CC
4842if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4844$as_echo "$ac_ct_CC" >&6; }
252b5132 4845else
81ecdfbb
RW
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
252b5132 4848fi
ce2cded5 4849
81ecdfbb
RW
4850 if test "x$ac_ct_CC" = x; then
4851 CC=""
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854yes:)
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857ac_tool_warned=yes ;;
4858esac
4859 CC=$ac_ct_CC
4860 fi
252b5132 4861else
ce2cded5 4862 CC="$ac_cv_prog_CC"
252b5132 4863fi
d7040cdb 4864
ce2cded5 4865if test -z "$CC"; then
81ecdfbb
RW
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4868set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870$as_echo_n "checking for $ac_word... " >&6; }
4871if test "${ac_cv_prog_CC+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
252b5132 4873else
ce2cded5
L
4874 if test -n "$CC"; then
4875 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4876else
ce2cded5
L
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4884 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4886 break 2
4887 fi
4888done
81ecdfbb
RW
4889 done
4890IFS=$as_save_IFS
ce2cded5 4891
252b5132
RH
4892fi
4893fi
ce2cded5
L
4894CC=$ac_cv_prog_CC
4895if test -n "$CC"; then
81ecdfbb
RW
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4897$as_echo "$CC" >&6; }
ce2cded5 4898else
81ecdfbb
RW
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900$as_echo "no" >&6; }
ce2cded5
L
4901fi
4902
ce2cded5 4903
81ecdfbb 4904 fi
ce2cded5
L
4905fi
4906if test -z "$CC"; then
4907 # Extract the first word of "cc", so it can be a program name with args.
4908set dummy cc; ac_word=$2
81ecdfbb
RW
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910$as_echo_n "checking for $ac_word... " >&6; }
4911if test "${ac_cv_prog_CC+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
ce2cded5
L
4913else
4914 if test -n "$CC"; then
4915 ac_cv_prog_CC="$CC" # Let the user override the test.
4916else
4917 ac_prog_rejected=no
4918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in $PATH
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4926 ac_prog_rejected=yes
4927 continue
4928 fi
4929 ac_cv_prog_CC="cc"
81ecdfbb 4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4931 break 2
4932 fi
4933done
81ecdfbb
RW
4934 done
4935IFS=$as_save_IFS
ce2cded5
L
4936
4937if test $ac_prog_rejected = yes; then
4938 # We found a bogon in the path, so make sure we never use it.
4939 set dummy $ac_cv_prog_CC
4940 shift
4941 if test $# != 0; then
4942 # We chose a different compiler from the bogus one.
4943 # However, it has the same basename, so the bogon will be chosen
4944 # first if we set CC to just the basename; use the full file name.
4945 shift
4946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4947 fi
4948fi
4949fi
4950fi
4951CC=$ac_cv_prog_CC
4952if test -n "$CC"; then
81ecdfbb
RW
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954$as_echo "$CC" >&6; }
ce2cded5 4955else
81ecdfbb
RW
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
ce2cded5
L
4958fi
4959
81ecdfbb 4960
ce2cded5
L
4961fi
4962if test -z "$CC"; then
d7040cdb 4963 if test -n "$ac_tool_prefix"; then
81ecdfbb 4964 for ac_prog in cl.exe
d7040cdb
SE
4965 do
4966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if test "${ac_cv_prog_CC+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
d7040cdb 4972else
ce2cded5
L
4973 if test -n "$CC"; then
4974 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4985 break 2
4986 fi
4987done
81ecdfbb
RW
4988 done
4989IFS=$as_save_IFS
d7040cdb
SE
4990
4991fi
4992fi
ce2cded5
L
4993CC=$ac_cv_prog_CC
4994if test -n "$CC"; then
81ecdfbb
RW
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4996$as_echo "$CC" >&6; }
d7040cdb 4997else
81ecdfbb
RW
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
d7040cdb
SE
5000fi
5001
81ecdfbb 5002
ce2cded5 5003 test -n "$CC" && break
d7040cdb
SE
5004 done
5005fi
ce2cded5
L
5006if test -z "$CC"; then
5007 ac_ct_CC=$CC
81ecdfbb 5008 for ac_prog in cl.exe
d7040cdb
SE
5009do
5010 # Extract the first word of "$ac_prog", so it can be a program name with args.
5011set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013$as_echo_n "checking for $ac_word... " >&6; }
5014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
d7040cdb 5016else
ce2cded5
L
5017 if test -n "$ac_ct_CC"; then
5018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5027 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5029 break 2
5030 fi
5031done
81ecdfbb
RW
5032 done
5033IFS=$as_save_IFS
d7040cdb
SE
5034
5035fi
5036fi
ce2cded5
L
5037ac_ct_CC=$ac_cv_prog_ac_ct_CC
5038if test -n "$ac_ct_CC"; then
81ecdfbb
RW
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5040$as_echo "$ac_ct_CC" >&6; }
d7040cdb 5041else
81ecdfbb
RW
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
d7040cdb
SE
5044fi
5045
81ecdfbb 5046
ce2cded5 5047 test -n "$ac_ct_CC" && break
d7040cdb 5048done
d7040cdb 5049
81ecdfbb
RW
5050 if test "x$ac_ct_CC" = x; then
5051 CC=""
5052 else
5053 case $cross_compiling:$ac_tool_warned in
5054yes:)
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057ac_tool_warned=yes ;;
5058esac
5059 CC=$ac_ct_CC
5060 fi
d7040cdb
SE
5061fi
5062
d7040cdb 5063fi
d7040cdb
SE
5064
5065
81ecdfbb
RW
5066test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5068as_fn_error "no acceptable C compiler found in \$PATH
5069See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 5070
ce2cded5 5071# Provide some information about the compiler.
81ecdfbb
RW
5072$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5073set X $ac_compile
5074ac_compiler=$2
5075for ac_option in --version -v -V -qversion; do
5076 { { ac_try="$ac_compiler $ac_option >&5"
5077case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080esac
5081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5082$as_echo "$ac_try_echo"; } >&5
5083 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5084 ac_status=$?
81ecdfbb
RW
5085 if test -s conftest.err; then
5086 sed '10a\
5087... rest of stderr output deleted ...
5088 10q' conftest.err >conftest.er1
5089 cat conftest.er1 >&5
5090 rm -f conftest.er1 conftest.err
5091 fi
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }
5094done
d7040cdb 5095
81ecdfbb
RW
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5097$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5098if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
d7040cdb 5100else
81ecdfbb 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5102/* end confdefs.h. */
d7040cdb 5103
ce2cded5
L
5104int
5105main ()
5106{
5107#ifndef __GNUC__
5108 choke me
5109#endif
5110
5111 ;
5112 return 0;
5113}
5114_ACEOF
81ecdfbb 5115if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 5116 ac_compiler_gnu=yes
d7040cdb 5117else
81ecdfbb 5118 ac_compiler_gnu=no
d7040cdb 5119fi
81ecdfbb 5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5121ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 5122
ce2cded5 5123fi
81ecdfbb
RW
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5125$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5126if test $ac_compiler_gnu = yes; then
5127 GCC=yes
5128else
5129 GCC=
5130fi
ce2cded5
L
5131ac_test_CFLAGS=${CFLAGS+set}
5132ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5134$as_echo_n "checking whether $CC accepts -g... " >&6; }
5135if test "${ac_cv_prog_cc_g+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137else
5138 ac_save_c_werror_flag=$ac_c_werror_flag
5139 ac_c_werror_flag=yes
5140 ac_cv_prog_cc_g=no
5141 CFLAGS="-g"
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5143/* end confdefs.h. */
d7040cdb 5144
ce2cded5
L
5145int
5146main ()
5147{
d7040cdb 5148
ce2cded5
L
5149 ;
5150 return 0;
5151}
5152_ACEOF
81ecdfbb 5153if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
5154 ac_cv_prog_cc_g=yes
5155else
81ecdfbb
RW
5156 CFLAGS=""
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h. */
5159
5160int
5161main ()
5162{
5163
5164 ;
5165 return 0;
5166}
5167_ACEOF
5168if ac_fn_c_try_compile "$LINENO"; then :
5169
5170else
5171 ac_c_werror_flag=$ac_save_c_werror_flag
5172 CFLAGS="-g"
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h. */
5175
5176int
5177main ()
5178{
d7040cdb 5179
81ecdfbb
RW
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184if ac_fn_c_try_compile "$LINENO"; then :
5185 ac_cv_prog_cc_g=yes
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188fi
5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5190fi
81ecdfbb
RW
5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 5193fi
81ecdfbb
RW
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5195$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
5196if test "$ac_test_CFLAGS" = set; then
5197 CFLAGS=$ac_save_CFLAGS
5198elif test $ac_cv_prog_cc_g = yes; then
5199 if test "$GCC" = yes; then
5200 CFLAGS="-g -O2"
5201 else
5202 CFLAGS="-g"
5203 fi
d7040cdb 5204else
ce2cded5
L
5205 if test "$GCC" = yes; then
5206 CFLAGS="-O2"
5207 else
5208 CFLAGS=
5209 fi
d7040cdb 5210fi
81ecdfbb
RW
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5212$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5213if test "${ac_cv_prog_cc_c89+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
d7040cdb 5215else
81ecdfbb 5216 ac_cv_prog_cc_c89=no
ce2cded5 5217ac_save_CC=$CC
81ecdfbb 5218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
5219/* end confdefs.h. */
5220#include <stdarg.h>
5221#include <stdio.h>
5222#include <sys/types.h>
5223#include <sys/stat.h>
5224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5225struct buf { int x; };
5226FILE * (*rcsopen) (struct buf *, struct stat *, int);
5227static char *e (p, i)
5228 char **p;
5229 int i;
5230{
5231 return p[i];
5232}
5233static char *f (char * (*g) (char **, int), char **p, ...)
5234{
5235 char *s;
5236 va_list v;
5237 va_start (v,p);
5238 s = g (p, va_arg (v,int));
5239 va_end (v);
5240 return s;
5241}
d7040cdb 5242
ce2cded5
L
5243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5244 function prototypes and stuff, but not '\xHH' hex character constants.
5245 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5246 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
5247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5248 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5249 that's true only with -std. */
ce2cded5 5250int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 5251
81ecdfbb
RW
5252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5253 inside strings and character constants. */
5254#define FOO(x) 'x'
5255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5256
ce2cded5
L
5257int test (int i, double x);
5258struct s1 {int (*f) (int a);};
5259struct s2 {int (*f) (double a);};
5260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5261int argc;
5262char **argv;
5263int
5264main ()
5265{
5266return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5267 ;
5268 return 0;
5269}
5270_ACEOF
81ecdfbb
RW
5271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
5273do
5274 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 5277fi
81ecdfbb
RW
5278rm -f core conftest.err conftest.$ac_objext
5279 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 5280done
81ecdfbb 5281rm -f conftest.$ac_ext
ce2cded5 5282CC=$ac_save_CC
d7040cdb 5283
ce2cded5 5284fi
81ecdfbb
RW
5285# AC_CACHE_VAL
5286case "x$ac_cv_prog_cc_c89" in
5287 x)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5289$as_echo "none needed" >&6; } ;;
5290 xno)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5292$as_echo "unsupported" >&6; } ;;
ce2cded5 5293 *)
81ecdfbb
RW
5294 CC="$CC $ac_cv_prog_cc_c89"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5296$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 5297esac
81ecdfbb 5298if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 5299
ce2cded5 5300fi
d7040cdb 5301
ce2cded5
L
5302ac_ext=c
5303ac_cpp='$CPP $CPPFLAGS'
5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5307
3cb62297
L
5308ac_ext=cpp
5309ac_cpp='$CXXCPP $CPPFLAGS'
5310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5313if test -z "$CXX"; then
5314 if test -n "$CCC"; then
5315 CXX=$CCC
5316 else
5317 if test -n "$ac_tool_prefix"; then
5318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5319 do
5320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323$as_echo_n "checking for $ac_word... " >&6; }
5324if test "${ac_cv_prog_CXX+set}" = set; then :
81ecdfbb
RW
5325 $as_echo_n "(cached) " >&6
5326else
3cb62297
L
5327 if test -n "$CXX"; then
5328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341done
5342 done
5343IFS=$as_save_IFS
81ecdfbb 5344
3cb62297
L
5345fi
5346fi
5347CXX=$ac_cv_prog_CXX
5348if test -n "$CXX"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5350$as_echo "$CXX" >&6; }
81ecdfbb 5351else
3cb62297
L
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }
7357c5b6 5354fi
42ecbf5e 5355
81ecdfbb 5356
3cb62297
L
5357 test -n "$CXX" && break
5358 done
7357c5b6 5359fi
3cb62297
L
5360if test -z "$CXX"; then
5361 ac_ct_CXX=$CXX
5362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5363do
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370else
5371 if test -n "$ac_ct_CXX"; then
5372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_ac_ct_CXX="$ac_prog"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385done
5386 done
5387IFS=$as_save_IFS
252b5132 5388
3cb62297
L
5389fi
5390fi
5391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5392if test -n "$ac_ct_CXX"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5394$as_echo "$ac_ct_CXX" >&6; }
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
7357c5b6 5398fi
252b5132 5399
42ecbf5e 5400
3cb62297
L
5401 test -n "$ac_ct_CXX" && break
5402done
81ecdfbb 5403
3cb62297
L
5404 if test "x$ac_ct_CXX" = x; then
5405 CXX="g++"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408yes:)
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413 CXX=$ac_ct_CXX
5414 fi
7357c5b6 5415fi
ac48eca1 5416
3cb62297 5417 fi
7357c5b6 5418fi
3cb62297
L
5419# Provide some information about the compiler.
5420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5421set X $ac_compile
5422ac_compiler=$2
5423for ac_option in --version -v -V -qversion; do
5424 { { ac_try="$ac_compiler $ac_option >&5"
5425case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5430$as_echo "$ac_try_echo"; } >&5
5431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5432 ac_status=$?
5433 if test -s conftest.err; then
5434 sed '10a\
5435... rest of stderr output deleted ...
5436 10q' conftest.err >conftest.er1
5437 cat conftest.er1 >&5
5438 rm -f conftest.er1 conftest.err
5439 fi
5440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441 test $ac_status = 0; }
5442done
d7040cdb 5443
3cb62297
L
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5445$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5446if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
7357c5b6 5448else
81ecdfbb 5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5450/* end confdefs.h. */
d7040cdb 5451
7357c5b6
AM
5452int
5453main ()
5454{
3cb62297
L
5455#ifndef __GNUC__
5456 choke me
5457#endif
5458
5459 ;
81ecdfbb 5460 return 0;
7357c5b6
AM
5461}
5462_ACEOF
3cb62297
L
5463if ac_fn_cxx_try_compile "$LINENO"; then :
5464 ac_compiler_gnu=yes
81ecdfbb 5465else
3cb62297 5466 ac_compiler_gnu=no
7357c5b6 5467fi
3cb62297
L
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
81ecdfbb 5470
7357c5b6 5471fi
3cb62297
L
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5473$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5474if test $ac_compiler_gnu = yes; then
5475 GXX=yes
5476else
5477 GXX=
7357c5b6 5478fi
3cb62297
L
5479ac_test_CXXFLAGS=${CXXFLAGS+set}
5480ac_save_CXXFLAGS=$CXXFLAGS
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5482$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5483if test "${ac_cv_prog_cxx_g+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485else
5486 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5487 ac_cxx_werror_flag=yes
5488 ac_cv_prog_cxx_g=no
5489 CXXFLAGS="-g"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h. */
252b5132 5492
3cb62297
L
5493int
5494main ()
5495{
252b5132 5496
3cb62297
L
5497 ;
5498 return 0;
5499}
7357c5b6 5500_ACEOF
3cb62297
L
5501if ac_fn_cxx_try_compile "$LINENO"; then :
5502 ac_cv_prog_cxx_g=yes
5503else
5504 CXXFLAGS=""
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h. */
42ecbf5e 5507
3cb62297
L
5508int
5509main ()
5510{
42ecbf5e 5511
3cb62297
L
5512 ;
5513 return 0;
5514}
5515_ACEOF
5516if ac_fn_cxx_try_compile "$LINENO"; then :
42ecbf5e 5517
3cb62297
L
5518else
5519 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5520 CXXFLAGS="-g"
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h. */
42ecbf5e 5523
3cb62297
L
5524int
5525main ()
5526{
42ecbf5e 5527
3cb62297
L
5528 ;
5529 return 0;
5530}
5531_ACEOF
5532if ac_fn_cxx_try_compile "$LINENO"; then :
5533 ac_cv_prog_cxx_g=yes
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5543$as_echo "$ac_cv_prog_cxx_g" >&6; }
5544if test "$ac_test_CXXFLAGS" = set; then
5545 CXXFLAGS=$ac_save_CXXFLAGS
5546elif test $ac_cv_prog_cxx_g = yes; then
5547 if test "$GXX" = yes; then
5548 CXXFLAGS="-g -O2"
5549 else
5550 CXXFLAGS="-g"
5551 fi
ce2cded5 5552else
3cb62297
L
5553 if test "$GXX" = yes; then
5554 CXXFLAGS="-O2"
5555 else
5556 CXXFLAGS=
5557 fi
ce2cded5 5558fi
3cb62297
L
5559ac_ext=c
5560ac_cpp='$CPP $CPPFLAGS'
5561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 5564
3cb62297 5565depcc="$CXX" am_compiler_list=
e5a52504 5566
3cb62297
L
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5568$as_echo_n "checking dependency style of $depcc... " >&6; }
5569if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571else
5572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5573 # We make a subdir and do the tests there. Otherwise we can end up
5574 # making bogus files that we don't know about and never remove. For
5575 # instance it was reported that on HP-UX the gcc test will end up
5576 # making a dummy file named `D' -- because `-MD' means `put the output
5577 # in D'.
5578 mkdir conftest.dir
5579 # Copy depcomp to subdir because otherwise we won't find it if we're
5580 # using a relative directory.
5581 cp "$am_depcomp" conftest.dir
5582 cd conftest.dir
5583 # We will build objects and dependencies in a subdirectory because
5584 # it helps to detect inapplicable dependency modes. For instance
5585 # both Tru64's cc and ICC support -MD to output dependencies as a
5586 # side effect of compilation, but ICC will put the dependencies in
5587 # the current directory while Tru64 will put them in the object
5588 # directory.
5589 mkdir sub
7357c5b6 5590
3cb62297
L
5591 am_cv_CXX_dependencies_compiler_type=none
5592 if test "$am_compiler_list" = ""; then
5593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5594 fi
5595 am__universal=false
5596 case " $depcc " in #(
5597 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5598 esac
d7040cdb 5599
3cb62297
L
5600 for depmode in $am_compiler_list; do
5601 # Setup a source with many dependencies, because some compilers
5602 # like to wrap large dependency lists on column 80 (with \), and
5603 # we should not choose a depcomp mode which is confused by this.
5604 #
5605 # We need to recreate these files for each test, as the compiler may
5606 # overwrite some of them when testing with obscure command lines.
5607 # This happens at least with the AIX C compiler.
5608 : > sub/conftest.c
5609 for i in 1 2 3 4 5 6; do
5610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5612 # Solaris 8's {/usr,}/bin/sh.
5613 touch sub/conftst$i.h
5614 done
5615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d7040cdb 5616
3cb62297
L
5617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5618 # mode. It turns out that the SunPro C++ compiler does not properly
5619 # handle `-M -o', and we need to detect this. Also, some Intel
5620 # versions had trouble with output in subdirs
5621 am__obj=sub/conftest.${OBJEXT-o}
5622 am__minus_obj="-o $am__obj"
5623 case $depmode in
5624 gcc)
5625 # This depmode causes a compiler race in universal mode.
5626 test "$am__universal" = false || continue
5627 ;;
5628 nosideeffect)
5629 # after this tag, mechanisms are not by side-effect, so they'll
5630 # only be used when explicitly requested
5631 if test "x$enable_dependency_tracking" = xyes; then
5632 continue
5633 else
5634 break
5635 fi
5636 ;;
5637 msvisualcpp | msvcmsys)
5638 # This compiler won't grok `-c -o', but also, the minuso test has
5639 # not run yet. These depmodes are late enough in the game, and
5640 # so weak that their functioning should not be impacted.
5641 am__obj=conftest.${OBJEXT-o}
5642 am__minus_obj=
5643 ;;
5644 none) break ;;
5645 esac
5646 if depmode=$depmode \
5647 source=sub/conftest.c object=$am__obj \
5648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5649 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5650 >/dev/null 2>conftest.err &&
5651 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5652 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5653 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5654 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5655 # icc doesn't choke on unknown options, it will just issue warnings
5656 # or remarks (even with -Werror). So we grep stderr for any message
5657 # that says an option was ignored or not supported.
5658 # When given -MP, icc 7.0 and 7.1 complain thusly:
5659 # icc: Command line warning: ignoring option '-M'; no argument required
5660 # The diagnosis changed in icc 8.0:
5661 # icc: Command line remark: option '-MP' not supported
5662 if (grep 'ignoring option' conftest.err ||
5663 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5664 am_cv_CXX_dependencies_compiler_type=$depmode
5665 break
5666 fi
5667 fi
5668 done
d7040cdb 5669
3cb62297
L
5670 cd ..
5671 rm -rf conftest.dir
5672else
5673 am_cv_CXX_dependencies_compiler_type=none
5674fi
d7040cdb 5675
3cb62297
L
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5678$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5679CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5680
3cb62297
L
5681 if
5682 test "x$enable_dependency_tracking" != xno \
5683 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5684 am__fastdepCXX_TRUE=
5685 am__fastdepCXX_FALSE='#'
5686else
5687 am__fastdepCXX_TRUE='#'
5688 am__fastdepCXX_FALSE=
5689fi
d7040cdb 5690
d7040cdb 5691
3cb62297
L
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5693$as_echo_n "checking for ANSI C header files... " >&6; }
5694if test "${ac_cv_header_stdc+set}" = set; then :
81ecdfbb 5695 $as_echo_n "(cached) " >&6
ce2cded5 5696else
81ecdfbb 5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5698/* end confdefs.h. */
3cb62297
L
5699#include <stdlib.h>
5700#include <stdarg.h>
5701#include <string.h>
5702#include <float.h>
7357c5b6 5703
7357c5b6
AM
5704int
5705main ()
5706{
5707
5708 ;
5709 return 0;
5710}
5711_ACEOF
81ecdfbb 5712if ac_fn_c_try_compile "$LINENO"; then :
3cb62297 5713 ac_cv_header_stdc=yes
ce2cded5 5714else
3cb62297 5715 ac_cv_header_stdc=no
ce2cded5 5716fi
81ecdfbb 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5718
3cb62297
L
5719if test $ac_cv_header_stdc = yes; then
5720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723#include <string.h>
7357c5b6 5724
3cb62297
L
5725_ACEOF
5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "memchr" >/dev/null 2>&1; then :
d053aef8 5728
3cb62297
L
5729else
5730 ac_cv_header_stdc=no
5731fi
5732rm -f conftest*
da2f07f1 5733
3cb62297 5734fi
3388710e 5735
3cb62297
L
5736if test $ac_cv_header_stdc = yes; then
5737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740#include <stdlib.h>
3388710e 5741
3cb62297
L
5742_ACEOF
5743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5744 $EGREP "free" >/dev/null 2>&1; then :
3388710e 5745
3cb62297
L
5746else
5747 ac_cv_header_stdc=no
5748fi
5749rm -f conftest*
5750
5751fi
5752
5753if test $ac_cv_header_stdc = yes; then
5754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5755 if test "$cross_compiling" = yes; then :
5756 :
5757else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h. */
5760#include <ctype.h>
5761#include <stdlib.h>
5762#if ((' ' & 0x0FF) == 0x020)
5763# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5764# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5765#else
5766# define ISLOWER(c) \
5767 (('a' <= (c) && (c) <= 'i') \
5768 || ('j' <= (c) && (c) <= 'r') \
5769 || ('s' <= (c) && (c) <= 'z'))
5770# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5771#endif
5772
5773#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5774int
5775main ()
5776{
5777 int i;
5778 for (i = 0; i < 256; i++)
5779 if (XOR (islower (i), ISLOWER (i))
5780 || toupper (i) != TOUPPER (i))
5781 return 2;
5782 return 0;
5783}
5784_ACEOF
5785if ac_fn_c_try_run "$LINENO"; then :
5786
5787else
5788 ac_cv_header_stdc=no
5789fi
5790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5791 conftest.$ac_objext conftest.beam conftest.$ac_ext
5792fi
5793
5794fi
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5797$as_echo "$ac_cv_header_stdc" >&6; }
5798if test $ac_cv_header_stdc = yes; then
5799
5800$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5801
5802fi
5803
5804# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5805for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5806 inttypes.h stdint.h unistd.h
5807do :
5808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5809ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5810"
5811eval as_val=\$$as_ac_Header
5812 if test "x$as_val" = x""yes; then :
5813 cat >>confdefs.h <<_ACEOF
5814#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5815_ACEOF
5816
5817fi
5818
5819done
5820
5821
5822
5823 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5824if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5825 MINIX=yes
5826else
5827 MINIX=
5828fi
5829
5830
5831 if test "$MINIX" = yes; then
5832
5833$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5834
5835
5836$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5837
5838
5839$as_echo "#define _MINIX 1" >>confdefs.h
5840
5841 fi
5842
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5845$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5846if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848else
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h. */
5851
5852# define __EXTENSIONS__ 1
5853 $ac_includes_default
5854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
5862if ac_fn_c_try_compile "$LINENO"; then :
5863 ac_cv_safe_to_define___extensions__=yes
5864else
5865 ac_cv_safe_to_define___extensions__=no
5866fi
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5870$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5871 test $ac_cv_safe_to_define___extensions__ = yes &&
5872 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5873
5874 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5875
5876 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5877
5878 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5879
5880 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5881
5882
5883
5884
5885
5886# The tests for host and target for $enable_largefile require
5887# canonical names.
5888
5889
5890
5891# As the $enable_largefile decision depends on --enable-plugins we must set it
5892# even in directories otherwise not depending on the $plugins option.
da2f07f1
JK
5893
5894
5895# Check whether --enable-plugins was given.
5896if test "${enable_plugins+set}" = set; then :
5897 enableval=$enable_plugins; case "${enableval}" in
5898 yes | "") plugins=yes ;;
5899 no) plugins=no ;;
5900 *) plugins=yes ;;
5901 esac
5902else
5903 plugins=no
5904fi
5905
5906
5907
5908case "${host}" in
5909 sparc-*-solaris*|i[3-7]86-*-solaris*)
5910 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5911 # are mutually exclusive; and without procfs support, the bfd/ elf module
5912 # cannot provide certain routines such as elfcore_write_prpsinfo
5913 # or elfcore_write_prstatus. So unless the user explicitly requested
5914 # large-file support through the --enable-largefile switch, disable
5915 # large-file support in favor of procfs support.
5916 test "${target}" = "${host}" -a "x$plugins" = xno \
5917 && : ${enable_largefile="no"}
5918 ;;
5919esac
5920
81ecdfbb
RW
5921# Check whether --enable-largefile was given.
5922if test "${enable_largefile+set}" = set; then :
5923 enableval=$enable_largefile;
5924fi
5925
d053aef8
JK
5926if test "$enable_largefile" != no; then
5927
81ecdfbb
RW
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5929$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5930if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
d053aef8
JK
5932else
5933 ac_cv_sys_largefile_CC=no
5934 if test "$GCC" != yes; then
5935 ac_save_CC=$CC
5936 while :; do
81ecdfbb
RW
5937 # IRIX 6.2 and later do not support large files by default,
5938 # so use the C compiler's -n32 option if that helps.
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5940/* end confdefs.h. */
5941#include <sys/types.h>
5942 /* Check that off_t can represent 2**63 - 1 correctly.
5943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5944 since some C++ compilers masquerading as C compilers
5945 incorrectly reject 9223372036854775807. */
5946#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5948 && LARGE_OFF_T % 2147483647 == 1)
5949 ? 1 : -1];
5950int
5951main ()
5952{
5953
5954 ;
5955 return 0;
5956}
5957_ACEOF
81ecdfbb 5958 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5959 break
d053aef8 5960fi
81ecdfbb
RW
5961rm -f core conftest.err conftest.$ac_objext
5962 CC="$CC -n32"
5963 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5964 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5965fi
81ecdfbb 5966rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5967 break
5968 done
5969 CC=$ac_save_CC
5970 rm -f conftest.$ac_ext
5971 fi
5972fi
81ecdfbb
RW
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5974$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5975 if test "$ac_cv_sys_largefile_CC" != no; then
5976 CC=$CC$ac_cv_sys_largefile_CC
5977 fi
5978
81ecdfbb
RW
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5980$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5981if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
d053aef8
JK
5983else
5984 while :; do
81ecdfbb 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5986/* end confdefs.h. */
5987#include <sys/types.h>
5988 /* Check that off_t can represent 2**63 - 1 correctly.
5989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5990 since some C++ compilers masquerading as C compilers
5991 incorrectly reject 9223372036854775807. */
5992#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5994 && LARGE_OFF_T % 2147483647 == 1)
5995 ? 1 : -1];
5996int
5997main ()
5998{
5999
6000 ;
6001 return 0;
6002}
6003_ACEOF
81ecdfbb
RW
6004if ac_fn_c_try_compile "$LINENO"; then :
6005 ac_cv_sys_file_offset_bits=no; break
d053aef8 6006fi
81ecdfbb
RW
6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6009/* end confdefs.h. */
6010#define _FILE_OFFSET_BITS 64
6011#include <sys/types.h>
6012 /* Check that off_t can represent 2**63 - 1 correctly.
6013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6014 since some C++ compilers masquerading as C compilers
6015 incorrectly reject 9223372036854775807. */
6016#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6018 && LARGE_OFF_T % 2147483647 == 1)
6019 ? 1 : -1];
6020int
6021main ()
6022{
6023
6024 ;
6025 return 0;
6026}
6027_ACEOF
81ecdfbb 6028if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6029 ac_cv_sys_file_offset_bits=64; break
d053aef8 6030fi
81ecdfbb
RW
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
6033 break
6034done
6035fi
81ecdfbb
RW
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6037$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6038case $ac_cv_sys_file_offset_bits in #(
6039 no | unknown) ;;
6040 *)
d053aef8
JK
6041cat >>confdefs.h <<_ACEOF
6042#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6043_ACEOF
81ecdfbb
RW
6044;;
6045esac
6046rm -rf conftest*
6047 if test $ac_cv_sys_file_offset_bits = unknown; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6049$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6050if test "${ac_cv_sys_large_files+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
d053aef8
JK
6052else
6053 while :; do
81ecdfbb 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6055/* end confdefs.h. */
6056#include <sys/types.h>
6057 /* Check that off_t can represent 2**63 - 1 correctly.
6058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6059 since some C++ compilers masquerading as C compilers
6060 incorrectly reject 9223372036854775807. */
6061#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6063 && LARGE_OFF_T % 2147483647 == 1)
6064 ? 1 : -1];
6065int
6066main ()
6067{
6068
6069 ;
6070 return 0;
6071}
6072_ACEOF
81ecdfbb
RW
6073if ac_fn_c_try_compile "$LINENO"; then :
6074 ac_cv_sys_large_files=no; break
d053aef8 6075fi
81ecdfbb
RW
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
6078/* end confdefs.h. */
6079#define _LARGE_FILES 1
6080#include <sys/types.h>
6081 /* Check that off_t can represent 2**63 - 1 correctly.
6082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6083 since some C++ compilers masquerading as C compilers
6084 incorrectly reject 9223372036854775807. */
6085#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6087 && LARGE_OFF_T % 2147483647 == 1)
6088 ? 1 : -1];
6089int
6090main ()
6091{
6092
6093 ;
6094 return 0;
6095}
6096_ACEOF
81ecdfbb 6097if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 6098 ac_cv_sys_large_files=1; break
d053aef8 6099fi
81ecdfbb
RW
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 ac_cv_sys_large_files=unknown
d053aef8
JK
6102 break
6103done
6104fi
81ecdfbb
RW
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6106$as_echo "$ac_cv_sys_large_files" >&6; }
6107case $ac_cv_sys_large_files in #(
6108 no | unknown) ;;
6109 *)
d053aef8
JK
6110cat >>confdefs.h <<_ACEOF
6111#define _LARGE_FILES $ac_cv_sys_large_files
6112_ACEOF
81ecdfbb
RW
6113;;
6114esac
6115rm -rf conftest*
6116 fi
d053aef8
JK
6117fi
6118
42ecbf5e 6119
42ecbf5e 6120
da2f07f1 6121
b214d478
SE
6122case `pwd` in
6123 *\ * | *\ *)
81ecdfbb
RW
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6125$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 6126esac
252b5132 6127
42ecbf5e 6128
d7040cdb 6129
3725885a
RW
6130macro_version='2.2.7a'
6131macro_revision='1.3134'
d7040cdb 6132
d7040cdb
SE
6133
6134
d7040cdb 6135
d7040cdb 6136
42ecbf5e 6137
d7040cdb 6138
252b5132 6139
252b5132 6140
252b5132 6141
252b5132
RH
6142
6143
ce2cded5 6144
b214d478 6145ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 6146
3725885a
RW
6147# Backslashify metacharacters that are still active within
6148# double-quoted strings.
6149sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6150
6151# Same as above, but do not quote variable references.
6152double_quote_subst='s/\(["`\\]\)/\\\1/g'
6153
6154# Sed substitution to delay expansion of an escaped shell variable in a
6155# double_quote_subst'ed string.
6156delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6157
6158# Sed substitution to delay expansion of an escaped single quote.
6159delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6160
6161# Sed substitution to avoid accidental globbing in evaled expressions
6162no_glob_subst='s/\*/\\\*/g'
6163
6164ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6165ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6166ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6167
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6169$as_echo_n "checking how to print strings... " >&6; }
6170# Test print first, because it will be a builtin if present.
6171if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6172 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6173 ECHO='print -r --'
6174elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6175 ECHO='printf %s\n'
6176else
6177 # Use this function as a fallback that always works.
6178 func_fallback_echo ()
6179 {
6180 eval 'cat <<_LTECHO_EOF
6181$1
6182_LTECHO_EOF'
6183 }
6184 ECHO='func_fallback_echo'
6185fi
6186
6187# func_echo_all arg...
6188# Invoke $ECHO with all args, space-separated.
6189func_echo_all ()
6190{
6191 $ECHO ""
6192}
6193
6194case "$ECHO" in
6195 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6196$as_echo "printf" >&6; } ;;
6197 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6198$as_echo "print -r" >&6; } ;;
6199 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6200$as_echo "cat" >&6; } ;;
6201esac
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
81ecdfbb
RW
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6217$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6218if test "${ac_cv_path_SED+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6220else
6221 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6222 for ac_i in 1 2 3 4 5 6 7; do
6223 ac_script="$ac_script$as_nl$ac_script"
6224 done
6225 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6226 { ac_script=; unset ac_script;}
6227 if test -z "$SED"; then
6228 ac_path_SED_found=false
6229 # Loop through the user's path and test for each of PROGNAME-LIST
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
81ecdfbb 6235 for ac_prog in sed gsed; do
7357c5b6 6236 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
6237 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6238 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6239# Check for GNU ac_path_SED and select it if it is found.
6240 # Check for GNU $ac_path_SED
6241case `"$ac_path_SED" --version 2>&1` in
6242*GNU*)
6243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6244*)
6245 ac_count=0
6246 $as_echo_n 0123456789 >"conftest.in"
6247 while :
6248 do
6249 cat "conftest.in" "conftest.in" >"conftest.tmp"
6250 mv "conftest.tmp" "conftest.in"
6251 cp "conftest.in" "conftest.nl"
6252 $as_echo '' >> "conftest.nl"
6253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6255 as_fn_arith $ac_count + 1 && ac_count=$as_val
6256 if test $ac_count -gt ${ac_path_SED_max-0}; then
6257 # Best one so far, save it but keep looking for a better one
6258 ac_cv_path_SED="$ac_path_SED"
6259 ac_path_SED_max=$ac_count
6260 fi
6261 # 10*(2^10) chars as input seems more than enough
6262 test $ac_count -gt 10 && break
6263 done
6264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6265esac
6266
6267 $ac_path_SED_found && break 3
7357c5b6
AM
6268 done
6269 done
81ecdfbb 6270 done
7357c5b6 6271IFS=$as_save_IFS
81ecdfbb
RW
6272 if test -z "$ac_cv_path_SED"; then
6273 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6274 fi
81ecdfbb
RW
6275else
6276 ac_cv_path_SED=$SED
7357c5b6 6277fi
20e95c23 6278
81ecdfbb
RW
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6281$as_echo "$ac_cv_path_SED" >&6; }
6282 SED="$ac_cv_path_SED"
6283 rm -f conftest.sed
20e95c23 6284
7357c5b6
AM
6285test -z "$SED" && SED=sed
6286Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6287
6288
6289
6290
6291
6292
20e95c23 6293
20e95c23 6294
d7040cdb 6295
d7040cdb 6296
7357c5b6 6297
81ecdfbb
RW
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6299$as_echo_n "checking for fgrep... " >&6; }
6300if test "${ac_cv_path_FGREP+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
7357c5b6 6302else
81ecdfbb
RW
6303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6304 then ac_cv_path_FGREP="$GREP -F"
6305 else
6306 if test -z "$FGREP"; then
6307 ac_path_FGREP_found=false
6308 # Loop through the user's path and test for each of PROGNAME-LIST
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_prog in fgrep; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6317 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6318# Check for GNU ac_path_FGREP and select it if it is found.
6319 # Check for GNU $ac_path_FGREP
6320case `"$ac_path_FGREP" --version 2>&1` in
6321*GNU*)
6322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6323*)
6324 ac_count=0
6325 $as_echo_n 0123456789 >"conftest.in"
6326 while :
6327 do
6328 cat "conftest.in" "conftest.in" >"conftest.tmp"
6329 mv "conftest.tmp" "conftest.in"
6330 cp "conftest.in" "conftest.nl"
6331 $as_echo 'FGREP' >> "conftest.nl"
6332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6334 as_fn_arith $ac_count + 1 && ac_count=$as_val
6335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6336 # Best one so far, save it but keep looking for a better one
6337 ac_cv_path_FGREP="$ac_path_FGREP"
6338 ac_path_FGREP_max=$ac_count
7357c5b6 6339 fi
81ecdfbb
RW
6340 # 10*(2^10) chars as input seems more than enough
6341 test $ac_count -gt 10 && break
6342 done
6343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6344esac
6345
6346 $ac_path_FGREP_found && break 3
6347 done
6348 done
6349 done
6350IFS=$as_save_IFS
6351 if test -z "$ac_cv_path_FGREP"; then
6352 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6353 fi
6354else
6355 ac_cv_path_FGREP=$FGREP
6356fi
6357
6358 fi
20e95c23 6359fi
81ecdfbb
RW
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6361$as_echo "$ac_cv_path_FGREP" >&6; }
6362 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6363
6364
6365test -z "$GREP" && GREP=grep
6366
d7040cdb
SE
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
20e95c23 6378
ce2cded5 6379
d7040cdb 6380
7357c5b6
AM
6381
6382
6383
6384
81ecdfbb
RW
6385# Check whether --with-gnu-ld was given.
6386if test "${with_gnu_ld+set}" = set; then :
6387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6388else
6389 with_gnu_ld=no
81ecdfbb
RW
6390fi
6391
7357c5b6
AM
6392ac_prog=ld
6393if test "$GCC" = yes; then
6394 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6396$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6397 case $host in
6398 *-*-mingw*)
6399 # gcc leaves a trailing carriage return which upsets mingw
6400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6401 *)
6402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6403 esac
6404 case $ac_prog in
6405 # Accept absolute paths.
6406 [\\/]* | ?:[\\/]*)
6407 re_direlt='/[^/][^/]*/\.\./'
6408 # Canonicalize the pathname of ld
6409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6412 done
6413 test -z "$LD" && LD="$ac_prog"
6414 ;;
6415 "")
6416 # If it fails, then pretend we aren't using GCC.
6417 ac_prog=ld
6418 ;;
6419 *)
6420 # If it is relative, then search for the first ld in PATH.
6421 with_gnu_ld=unknown
6422 ;;
6423 esac
6424elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6426$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6427else
81ecdfbb
RW
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6429$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6430fi
81ecdfbb
RW
6431if test "${lt_cv_path_LD+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
ce2cded5 6433else
7357c5b6
AM
6434 if test -z "$LD"; then
6435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6436 for ac_dir in $PATH; do
6437 IFS="$lt_save_ifs"
6438 test -z "$ac_dir" && ac_dir=.
6439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6440 lt_cv_path_LD="$ac_dir/$ac_prog"
6441 # Check to see if the program is GNU ld. I'd rather use --version,
6442 # but apparently some variants of GNU ld only accept -v.
6443 # Break only if it was the GNU/non-GNU ld that we prefer.
6444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6445 *GNU* | *'with BFD'*)
6446 test "$with_gnu_ld" != no && break
6447 ;;
6448 *)
6449 test "$with_gnu_ld" != yes && break
6450 ;;
6451 esac
6452 fi
6453 done
6454 IFS="$lt_save_ifs"
ce2cded5 6455else
7357c5b6 6456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6457fi
6458fi
7357c5b6
AM
6459
6460LD="$lt_cv_path_LD"
6461if test -n "$LD"; then
81ecdfbb
RW
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6463$as_echo "$LD" >&6; }
ce2cded5 6464else
81ecdfbb
RW
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466$as_echo "no" >&6; }
ce2cded5 6467fi
81ecdfbb
RW
6468test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6470$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6471if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
ce2cded5 6473else
7357c5b6
AM
6474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6475case `$LD -v 2>&1 </dev/null` in
6476*GNU* | *'with BFD'*)
6477 lt_cv_prog_gnu_ld=yes
6478 ;;
6479*)
6480 lt_cv_prog_gnu_ld=no
6481 ;;
6482esac
ce2cded5 6483fi
81ecdfbb
RW
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6485$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6486with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6487
6488
6489
6490
6491
6492
6493
6494
6495
81ecdfbb
RW
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6497$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6498if test "${lt_cv_path_NM+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
ce2cded5 6500else
7357c5b6
AM
6501 if test -n "$NM"; then
6502 # Let the user override the test.
6503 lt_cv_path_NM="$NM"
ce2cded5 6504else
7357c5b6
AM
6505 lt_nm_to_check="${ac_tool_prefix}nm"
6506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6507 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6508 fi
7357c5b6
AM
6509 for lt_tmp_nm in $lt_nm_to_check; do
6510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6512 IFS="$lt_save_ifs"
6513 test -z "$ac_dir" && ac_dir=.
6514 tmp_nm="$ac_dir/$lt_tmp_nm"
6515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6516 # Check to see if the nm accepts a BSD-compat flag.
6517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6518 # nm: unknown option "B" ignored
6519 # Tru64's nm complains that /dev/null is an invalid object file
6520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6521 */dev/null* | *'Invalid file or object type'*)
6522 lt_cv_path_NM="$tmp_nm -B"
6523 break
6524 ;;
6525 *)
6526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6527 */dev/null*)
6528 lt_cv_path_NM="$tmp_nm -p"
6529 break
6530 ;;
6531 *)
6532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6533 continue # so that we can try to find one that supports BSD flags
6534 ;;
6535 esac
6536 ;;
6537 esac
6538 fi
6539 done
6540 IFS="$lt_save_ifs"
6541 done
6542 : ${lt_cv_path_NM=no}
ce2cded5
L
6543fi
6544fi
81ecdfbb
RW
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6546$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6547if test "$lt_cv_path_NM" != "no"; then
6548 NM="$lt_cv_path_NM"
ce2cded5 6549else
7357c5b6 6550 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6551 if test -n "$DUMPBIN"; then :
6552 # Let the user override the test.
6553 else
6554 if test -n "$ac_tool_prefix"; then
6555 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6556 do
6557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
20e95c23 6563else
7357c5b6
AM
6564 if test -n "$DUMPBIN"; then
6565 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6574 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6576 break 2
6577 fi
6578done
81ecdfbb
RW
6579 done
6580IFS=$as_save_IFS
d7040cdb 6581
20e95c23 6582fi
ce2cded5 6583fi
7357c5b6
AM
6584DUMPBIN=$ac_cv_prog_DUMPBIN
6585if test -n "$DUMPBIN"; then
81ecdfbb
RW
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6587$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6588else
81ecdfbb
RW
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
42ecbf5e
DJ
6591fi
6592
81ecdfbb 6593
7357c5b6
AM
6594 test -n "$DUMPBIN" && break
6595 done
ce2cded5 6596fi
7357c5b6
AM
6597if test -z "$DUMPBIN"; then
6598 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6599 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6600do
6601 # Extract the first word of "$ac_prog", so it can be a program name with args.
6602set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
42ecbf5e 6607else
7357c5b6
AM
6608 if test -n "$ac_ct_DUMPBIN"; then
6609 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6618 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6620 break 2
6621 fi
6622done
81ecdfbb
RW
6623 done
6624IFS=$as_save_IFS
d7040cdb 6625
ce2cded5
L
6626fi
6627fi
7357c5b6
AM
6628ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6629if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6631$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6632else
81ecdfbb
RW
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
ce2cded5 6635fi
d7040cdb 6636
81ecdfbb 6637
7357c5b6 6638 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6639done
d7040cdb 6640
81ecdfbb
RW
6641 if test "x$ac_ct_DUMPBIN" = x; then
6642 DUMPBIN=":"
6643 else
6644 case $cross_compiling:$ac_tool_warned in
6645yes:)
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648ac_tool_warned=yes ;;
6649esac
6650 DUMPBIN=$ac_ct_DUMPBIN
6651 fi
ce2cded5 6652fi
7357c5b6 6653
3725885a
RW
6654 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6655 *COFF*)
6656 DUMPBIN="$DUMPBIN -symbols"
6657 ;;
6658 *)
6659 DUMPBIN=:
6660 ;;
6661 esac
6662 fi
7357c5b6
AM
6663
6664 if test "$DUMPBIN" != ":"; then
6665 NM="$DUMPBIN"
6666 fi
ce2cded5 6667fi
7357c5b6
AM
6668test -z "$NM" && NM=nm
6669
6670
6671
6672
6673
6674
81ecdfbb
RW
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6676$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6677if test "${lt_cv_nm_interface+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
20e95c23 6679else
7357c5b6
AM
6680 lt_cv_nm_interface="BSD nm"
6681 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6682 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6683 (eval "$ac_compile" 2>conftest.err)
6684 cat conftest.err >&5
3725885a 6685 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6686 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6687 cat conftest.err >&5
3725885a 6688 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6689 cat conftest.out >&5
6690 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6691 lt_cv_nm_interface="MS dumpbin"
6692 fi
6693 rm -f conftest*
20e95c23 6694fi
81ecdfbb
RW
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6696$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6697
81ecdfbb
RW
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6699$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6700LN_S=$as_ln_s
6701if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6703$as_echo "yes" >&6; }
ce2cded5 6704else
81ecdfbb
RW
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6706$as_echo "no, using $LN_S" >&6; }
d7040cdb 6707fi
20e95c23 6708
7357c5b6 6709# find the maximum length of command line arguments
81ecdfbb
RW
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6711$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6712if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
7357c5b6
AM
6714else
6715 i=0
6716 teststring="ABCD"
20e95c23 6717
7357c5b6
AM
6718 case $build_os in
6719 msdosdjgpp*)
6720 # On DJGPP, this test can blow up pretty badly due to problems in libc
6721 # (any single argument exceeding 2000 bytes causes a buffer overrun
6722 # during glob expansion). Even if it were fixed, the result of this
6723 # check would be larger than it should be.
6724 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6725 ;;
20e95c23 6726
7357c5b6
AM
6727 gnu*)
6728 # Under GNU Hurd, this test is not required because there is
6729 # no limit to the length of command line arguments.
6730 # Libtool will interpret -1 as no limit whatsoever
6731 lt_cv_sys_max_cmd_len=-1;
6732 ;;
20e95c23 6733
b214d478 6734 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6735 # On Win9x/ME, this test blows up -- it succeeds, but takes
6736 # about 5 minutes as the teststring grows exponentially.
6737 # Worse, since 9x/ME are not pre-emptively multitasking,
6738 # you end up with a "frozen" computer, even though with patience
6739 # the test eventually succeeds (with a max line length of 256k).
6740 # Instead, let's just punt: use the minimum linelength reported by
6741 # all of the supported platforms: 8192 (on NT/2K/XP).
6742 lt_cv_sys_max_cmd_len=8192;
6743 ;;
20e95c23 6744
3725885a
RW
6745 mint*)
6746 # On MiNT this can take a long time and run out of memory.
6747 lt_cv_sys_max_cmd_len=8192;
6748 ;;
6749
7357c5b6
AM
6750 amigaos*)
6751 # On AmigaOS with pdksh, this test takes hours, literally.
6752 # So we just punt and use a minimum line length of 8192.
6753 lt_cv_sys_max_cmd_len=8192;
6754 ;;
20e95c23 6755
7357c5b6
AM
6756 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6757 # This has been around since 386BSD, at least. Likely further.
6758 if test -x /sbin/sysctl; then
6759 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6760 elif test -x /usr/sbin/sysctl; then
6761 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6762 else
6763 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6764 fi
6765 # And add a safety zone
6766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6768 ;;
d7040cdb 6769
7357c5b6
AM
6770 interix*)
6771 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6772 lt_cv_sys_max_cmd_len=196608
6773 ;;
d7040cdb 6774
7357c5b6
AM
6775 osf*)
6776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6778 # nice to cause kernel panics so lets avoid the loop below.
6779 # First set a reasonable default.
6780 lt_cv_sys_max_cmd_len=16384
6781 #
6782 if test -x /sbin/sysconfig; then
6783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6785 esac
6786 fi
6787 ;;
6788 sco3.2v5*)
6789 lt_cv_sys_max_cmd_len=102400
6790 ;;
6791 sysv5* | sco5v6* | sysv4.2uw2*)
6792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6793 if test -n "$kargmax"; then
6794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6795 else
6796 lt_cv_sys_max_cmd_len=32768
6797 fi
ce2cded5
L
6798 ;;
6799 *)
b214d478
SE
6800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6801 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6804 else
6805 # Make teststring a little bigger before we do anything with it.
6806 # a 1K string should be a reasonable start.
6807 for i in 1 2 3 4 5 6 7 8 ; do
6808 teststring=$teststring$teststring
6809 done
6810 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6811 # If test is not a shell built-in, we'll probably end up computing a
6812 # maximum length that is only half of the actual maximum length, but
6813 # we can't tell.
3725885a
RW
6814 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6815 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6816 test $i != 17 # 1/2 MB should be enough
6817 do
6818 i=`expr $i + 1`
6819 teststring=$teststring$teststring
6820 done
6821 # Only check the string length outside the loop.
6822 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6823 teststring=
6824 # Add a significant safety factor because C++ compilers can tack on
6825 # massive amounts of additional arguments before passing them to the
6826 # linker. It appears as though 1/2 is a usable value.
6827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6828 fi
ce2cded5
L
6829 ;;
6830 esac
d7040cdb 6831
7357c5b6 6832fi
d7040cdb 6833
7357c5b6 6834if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6836$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6837else
81ecdfbb
RW
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6839$as_echo "none" >&6; }
7357c5b6
AM
6840fi
6841max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6842
6843
6844
6845
6846
d7040cdb 6847
7357c5b6
AM
6848: ${CP="cp -f"}
6849: ${MV="mv -f"}
6850: ${RM="rm -f"}
d7040cdb 6851
81ecdfbb
RW
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6853$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6854# Try some XSI features
6855xsi_shell=no
6856( _lt_dummy="a/b/c"
6857 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6858 = c,a/b,, \
6859 && eval 'test $(( 1 + 1 )) -eq 2 \
6860 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6861 && xsi_shell=yes
81ecdfbb
RW
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6863$as_echo "$xsi_shell" >&6; }
d7040cdb 6864
d7040cdb 6865
81ecdfbb
RW
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6867$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6868lt_shell_append=no
6869( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6870 >/dev/null 2>&1 \
6871 && lt_shell_append=yes
81ecdfbb
RW
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6873$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6874
6875
7357c5b6
AM
6876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6877 lt_unset=unset
6878else
6879 lt_unset=false
6880fi
d7040cdb 6881
d7040cdb 6882
d7040cdb 6883
d7040cdb 6884
d7040cdb 6885
7357c5b6
AM
6886# test EBCDIC or ASCII
6887case `echo X|tr X '\101'` in
6888 A) # ASCII based system
6889 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6890 lt_SP2NL='tr \040 \012'
6891 lt_NL2SP='tr \015\012 \040\040'
6892 ;;
6893 *) # EBCDIC based system
6894 lt_SP2NL='tr \100 \n'
6895 lt_NL2SP='tr \r\n \100\100'
6896 ;;
6897esac
42ecbf5e 6898
d7040cdb
SE
6899
6900
6901
6902
6903
6904
d7040cdb 6905
d7040cdb 6906
81ecdfbb
RW
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6908$as_echo_n "checking for $LD option to reload object files... " >&6; }
6909if test "${lt_cv_ld_reload_flag+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
7357c5b6
AM
6911else
6912 lt_cv_ld_reload_flag='-r'
6913fi
81ecdfbb
RW
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6915$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6916reload_flag=$lt_cv_ld_reload_flag
6917case $reload_flag in
6918"" | " "*) ;;
6919*) reload_flag=" $reload_flag" ;;
6920esac
6921reload_cmds='$LD$reload_flag -o $output$reload_objs'
6922case $host_os in
6923 darwin*)
6924 if test "$GCC" = yes; then
6925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6926 else
6927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6928 fi
6929 ;;
6930esac
d7040cdb 6931
d7040cdb 6932
d7040cdb 6933
d7040cdb 6934
d7040cdb 6935
d7040cdb 6936
d7040cdb 6937
d7040cdb 6938
d7040cdb 6939
b214d478
SE
6940if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6942set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
6945if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
b214d478
SE
6947else
6948 if test -n "$OBJDUMP"; then
6949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6960 break 2
6961 fi
6962done
81ecdfbb
RW
6963 done
6964IFS=$as_save_IFS
b214d478
SE
6965
6966fi
6967fi
6968OBJDUMP=$ac_cv_prog_OBJDUMP
6969if test -n "$OBJDUMP"; then
81ecdfbb
RW
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6971$as_echo "$OBJDUMP" >&6; }
b214d478 6972else
81ecdfbb
RW
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
b214d478
SE
6975fi
6976
81ecdfbb 6977
b214d478
SE
6978fi
6979if test -z "$ac_cv_prog_OBJDUMP"; then
6980 ac_ct_OBJDUMP=$OBJDUMP
6981 # Extract the first word of "objdump", so it can be a program name with args.
6982set dummy objdump; ac_word=$2
81ecdfbb
RW
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984$as_echo_n "checking for $ac_word... " >&6; }
6985if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
b214d478
SE
6987else
6988 if test -n "$ac_ct_OBJDUMP"; then
6989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7000 break 2
7001 fi
7002done
81ecdfbb
RW
7003 done
7004IFS=$as_save_IFS
b214d478 7005
b214d478
SE
7006fi
7007fi
7008ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7009if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7011$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 7012else
81ecdfbb
RW
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014$as_echo "no" >&6; }
b214d478
SE
7015fi
7016
81ecdfbb
RW
7017 if test "x$ac_ct_OBJDUMP" = x; then
7018 OBJDUMP="false"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021yes:)
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024ac_tool_warned=yes ;;
7025esac
7026 OBJDUMP=$ac_ct_OBJDUMP
7027 fi
b214d478
SE
7028else
7029 OBJDUMP="$ac_cv_prog_OBJDUMP"
7030fi
7031
7032test -z "$OBJDUMP" && OBJDUMP=objdump
7033
7034
7035
7036
7037
7038
7039
7040
d7040cdb 7041
81ecdfbb
RW
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7043$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7044if test "${lt_cv_deplibs_check_method+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
ce2cded5 7046else
7357c5b6
AM
7047 lt_cv_file_magic_cmd='$MAGIC_CMD'
7048lt_cv_file_magic_test_file=
7049lt_cv_deplibs_check_method='unknown'
7050# Need to set the preceding variable on all platforms that support
7051# interlibrary dependencies.
7052# 'none' -- dependencies not supported.
7053# `unknown' -- same as none, but documents that we really don't know.
7054# 'pass_all' -- all dependencies passed with no checks.
7055# 'test_compile' -- check by making test program.
7056# 'file_magic [[regex]]' -- check by looking for files in library path
7057# which responds to the $file_magic_cmd with a given extended regex.
7058# If you have `file' or equivalent on your system and you're not sure
7059# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 7060
ce2cded5 7061case $host_os in
7357c5b6
AM
7062aix[4-9]*)
7063 lt_cv_deplibs_check_method=pass_all
ce2cded5 7064 ;;
7357c5b6
AM
7065
7066beos*)
7067 lt_cv_deplibs_check_method=pass_all
ce2cded5 7068 ;;
7357c5b6
AM
7069
7070bsdi[45]*)
7071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7072 lt_cv_file_magic_cmd='/usr/bin/file -L'
7073 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 7074 ;;
7357c5b6
AM
7075
7076cygwin*)
7077 # func_win32_libid is a shell function defined in ltmain.sh
7078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7079 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 7080 ;;
7357c5b6
AM
7081
7082mingw* | pw32*)
7083 # Base MSYS/MinGW do not provide the 'file' command needed by
7084 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7085 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
7086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
7088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7089 lt_cv_file_magic_cmd='func_win32_libid'
7090 else
7091 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7092 lt_cv_file_magic_cmd='$OBJDUMP -f'
7093 fi
ce2cded5 7094 ;;
7357c5b6 7095
3725885a 7096cegcc*)
b214d478
SE
7097 # use the weaker test based on 'objdump'. See mingw*.
7098 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7099 lt_cv_file_magic_cmd='$OBJDUMP -f'
7100 ;;
7101
7357c5b6
AM
7102darwin* | rhapsody*)
7103 lt_cv_deplibs_check_method=pass_all
ce2cded5 7104 ;;
7357c5b6
AM
7105
7106freebsd* | dragonfly*)
7107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7108 case $host_cpu in
7109 i*86 )
7110 # Not sure whether the presence of OpenBSD here was a mistake.
7111 # Let's accept both of them until this is cleared up.
7112 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7113 lt_cv_file_magic_cmd=/usr/bin/file
7114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7115 ;;
7116 esac
7117 else
7118 lt_cv_deplibs_check_method=pass_all
7119 fi
ce2cded5 7120 ;;
7357c5b6
AM
7121
7122gnu*)
7123 lt_cv_deplibs_check_method=pass_all
ce2cded5 7124 ;;
7357c5b6 7125
3725885a
RW
7126haiku*)
7127 lt_cv_deplibs_check_method=pass_all
7128 ;;
7129
7357c5b6
AM
7130hpux10.20* | hpux11*)
7131 lt_cv_file_magic_cmd=/usr/bin/file
7132 case $host_cpu in
7133 ia64*)
7134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7136 ;;
7137 hppa*64*)
3725885a 7138 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
7139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7140 ;;
7141 *)
3725885a 7142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
7143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7144 ;;
7145 esac
ce2cded5 7146 ;;
d7040cdb 7147
7357c5b6
AM
7148interix[3-9]*)
7149 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7151 ;;
d7040cdb 7152
7357c5b6
AM
7153irix5* | irix6* | nonstopux*)
7154 case $LD in
7155 *-32|*"-32 ") libmagic=32-bit;;
7156 *-n32|*"-n32 ") libmagic=N32;;
7157 *-64|*"-64 ") libmagic=64-bit;;
7158 *) libmagic=never-match;;
7159 esac
7160 lt_cv_deplibs_check_method=pass_all
7161 ;;
d7040cdb 7162
7357c5b6 7163# This must be Linux ELF.
58e24671 7164linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
d7040cdb 7167
7357c5b6
AM
7168netbsd*)
7169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7171 else
7172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7173 fi
ce2cded5 7174 ;;
d7040cdb 7175
7357c5b6
AM
7176newos6*)
7177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7178 lt_cv_file_magic_cmd=/usr/bin/file
7179 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7180 ;;
d7040cdb 7181
7357c5b6
AM
7182*nto* | *qnx*)
7183 lt_cv_deplibs_check_method=pass_all
7184 ;;
d7040cdb 7185
7357c5b6
AM
7186openbsd*)
7187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7189 else
7357c5b6 7190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7191 fi
7357c5b6 7192 ;;
d7040cdb 7193
7357c5b6
AM
7194osf3* | osf4* | osf5*)
7195 lt_cv_deplibs_check_method=pass_all
7196 ;;
d7040cdb 7197
7357c5b6
AM
7198rdos*)
7199 lt_cv_deplibs_check_method=pass_all
7200 ;;
d7040cdb 7201
7357c5b6
AM
7202solaris*)
7203 lt_cv_deplibs_check_method=pass_all
7204 ;;
d7040cdb 7205
7357c5b6
AM
7206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7207 lt_cv_deplibs_check_method=pass_all
7208 ;;
d7040cdb 7209
7357c5b6
AM
7210sysv4 | sysv4.3*)
7211 case $host_vendor in
7212 motorola)
7213 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]'
7214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7215 ;;
7216 ncr)
7217 lt_cv_deplibs_check_method=pass_all
7218 ;;
7219 sequent)
7220 lt_cv_file_magic_cmd='/bin/file'
7221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7222 ;;
7223 sni)
7224 lt_cv_file_magic_cmd='/bin/file'
7225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7226 lt_cv_file_magic_test_file=/lib/libc.so
7227 ;;
7228 siemens)
7229 lt_cv_deplibs_check_method=pass_all
7230 ;;
7231 pc)
7232 lt_cv_deplibs_check_method=pass_all
7233 ;;
7234 esac
7235 ;;
d7040cdb 7236
7357c5b6
AM
7237tpf*)
7238 lt_cv_deplibs_check_method=pass_all
7239 ;;
7240esac
d7040cdb 7241
7357c5b6 7242fi
81ecdfbb
RW
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7244$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7245file_magic_cmd=$lt_cv_file_magic_cmd
7246deplibs_check_method=$lt_cv_deplibs_check_method
7247test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7248
7249
7250
7357c5b6
AM
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if test "${ac_cv_prog_AR+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7357c5b6
AM
7267else
7268 if test -n "$AR"; then
7269 ac_cv_prog_AR="$AR" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7278 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7280 break 2
ce2cded5
L
7281 fi
7282done
81ecdfbb
RW
7283 done
7284IFS=$as_save_IFS
d7040cdb 7285
42ecbf5e 7286fi
ce2cded5 7287fi
7357c5b6
AM
7288AR=$ac_cv_prog_AR
7289if test -n "$AR"; then
81ecdfbb
RW
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7291$as_echo "$AR" >&6; }
42ecbf5e 7292else
81ecdfbb
RW
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
42ecbf5e
DJ
7295fi
7296
81ecdfbb 7297
7357c5b6
AM
7298fi
7299if test -z "$ac_cv_prog_AR"; then
7300 ac_ct_AR=$AR
7301 # Extract the first word of "ar", so it can be a program name with args.
7302set dummy ar; ac_word=$2
81ecdfbb
RW
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7357c5b6
AM
7307else
7308 if test -n "$ac_ct_AR"; then
7309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7318 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7320 break 2
7321 fi
7322done
81ecdfbb
RW
7323 done
7324IFS=$as_save_IFS
42ecbf5e 7325
7357c5b6
AM
7326fi
7327fi
7328ac_ct_AR=$ac_cv_prog_ac_ct_AR
7329if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7331$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7332else
81ecdfbb
RW
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7357c5b6 7335fi
d7040cdb 7336
81ecdfbb
RW
7337 if test "x$ac_ct_AR" = x; then
7338 AR="false"
7339 else
7340 case $cross_compiling:$ac_tool_warned in
7341yes:)
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344ac_tool_warned=yes ;;
7345esac
7346 AR=$ac_ct_AR
7347 fi
7357c5b6
AM
7348else
7349 AR="$ac_cv_prog_AR"
7350fi
d7040cdb 7351
7357c5b6
AM
7352test -z "$AR" && AR=ar
7353test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7354
7355
7356
20e95c23 7357
d7040cdb 7358
d7040cdb
SE
7359
7360
7361
7362
7363
7364
7357c5b6
AM
7365if test -n "$ac_tool_prefix"; then
7366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7367set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369$as_echo_n "checking for $ac_word... " >&6; }
7370if test "${ac_cv_prog_STRIP+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7357c5b6
AM
7372else
7373 if test -n "$STRIP"; then
7374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7375else
7376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377for as_dir in $PATH
7378do
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7385 break 2
ce2cded5 7386 fi
7357c5b6 7387done
81ecdfbb
RW
7388 done
7389IFS=$as_save_IFS
d7040cdb 7390
7357c5b6
AM
7391fi
7392fi
7393STRIP=$ac_cv_prog_STRIP
7394if test -n "$STRIP"; then
81ecdfbb
RW
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7396$as_echo "$STRIP" >&6; }
7357c5b6 7397else
81ecdfbb
RW
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399$as_echo "no" >&6; }
7357c5b6
AM
7400fi
7401
81ecdfbb 7402
7357c5b6
AM
7403fi
7404if test -z "$ac_cv_prog_STRIP"; then
7405 ac_ct_STRIP=$STRIP
7406 # Extract the first word of "strip", so it can be a program name with args.
7407set dummy strip; ac_word=$2
81ecdfbb
RW
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409$as_echo_n "checking for $ac_word... " >&6; }
7410if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7357c5b6
AM
7412else
7413 if test -n "$ac_ct_STRIP"; then
7414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7423 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7425 break 2
ce2cded5 7426 fi
7357c5b6 7427done
81ecdfbb
RW
7428 done
7429IFS=$as_save_IFS
d7040cdb 7430
7357c5b6
AM
7431fi
7432fi
7433ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7434if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7436$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7437else
81ecdfbb
RW
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439$as_echo "no" >&6; }
7357c5b6 7440fi
d7040cdb 7441
81ecdfbb
RW
7442 if test "x$ac_ct_STRIP" = x; then
7443 STRIP=":"
7444 else
7445 case $cross_compiling:$ac_tool_warned in
7446yes:)
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449ac_tool_warned=yes ;;
7450esac
7451 STRIP=$ac_ct_STRIP
7452 fi
7357c5b6
AM
7453else
7454 STRIP="$ac_cv_prog_STRIP"
7455fi
d7040cdb 7456
7357c5b6 7457test -z "$STRIP" && STRIP=:
d7040cdb 7458
d7040cdb
SE
7459
7460
7461
d7040cdb 7462
7357c5b6
AM
7463
7464if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
7469if test "${ac_cv_prog_RANLIB+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
ce2cded5 7471else
7357c5b6
AM
7472 if test -n "$RANLIB"; then
7473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
ce2cded5 7477do
7357c5b6
AM
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7482 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7484 break 2
ce2cded5 7485 fi
7357c5b6 7486done
81ecdfbb
RW
7487 done
7488IFS=$as_save_IFS
7357c5b6 7489
ce2cded5 7490fi
7357c5b6
AM
7491fi
7492RANLIB=$ac_cv_prog_RANLIB
7493if test -n "$RANLIB"; then
81ecdfbb
RW
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7495$as_echo "$RANLIB" >&6; }
ce2cded5 7496else
81ecdfbb
RW
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
ce2cded5 7499fi
d7040cdb 7500
81ecdfbb 7501
7357c5b6
AM
7502fi
7503if test -z "$ac_cv_prog_RANLIB"; then
7504 ac_ct_RANLIB=$RANLIB
7505 # Extract the first word of "ranlib", so it can be a program name with args.
7506set dummy ranlib; ac_word=$2
81ecdfbb
RW
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
ce2cded5 7511else
7357c5b6
AM
7512 if test -n "$ac_ct_RANLIB"; then
7513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7522 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7524 break 2
7525 fi
7526done
81ecdfbb
RW
7527 done
7528IFS=$as_save_IFS
7357c5b6 7529
ce2cded5 7530fi
7357c5b6
AM
7531fi
7532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7533if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7535$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7536else
81ecdfbb
RW
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
ce2cded5 7539fi
d7040cdb 7540
81ecdfbb
RW
7541 if test "x$ac_ct_RANLIB" = x; then
7542 RANLIB=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545yes:)
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548ac_tool_warned=yes ;;
7549esac
7550 RANLIB=$ac_ct_RANLIB
7551 fi
7357c5b6
AM
7552else
7553 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7554fi
d7040cdb 7555
7357c5b6 7556test -z "$RANLIB" && RANLIB=:
d7040cdb 7557
7357c5b6
AM
7558
7559
7560
7561
7562
7563# Determine commands to create old-style static archives.
b214d478 7564old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7565old_postinstall_cmds='chmod 644 $oldlib'
7566old_postuninstall_cmds=
7567
7568if test -n "$RANLIB"; then
7569 case $host_os in
7570 openbsd*)
7571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7572 ;;
7573 *)
7574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7575 ;;
7576 esac
7577 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7578fi
7357c5b6 7579
3725885a
RW
7580case $host_os in
7581 darwin*)
7582 lock_old_archive_extraction=yes ;;
7583 *)
7584 lock_old_archive_extraction=no ;;
7585esac
7586
7587
7588
7589
7590
7591
7357c5b6
AM
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625# If no C compiler was specified, use CC.
7626LTCC=${LTCC-"$CC"}
7627
7628# If no C compiler flags were specified, use CFLAGS.
7629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7630
7631# Allow CC to be a program name with arguments.
7632compiler=$CC
7633
7634
7635# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7637$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7638if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
ce2cded5 7640else
d7040cdb 7641
7357c5b6
AM
7642# These are sane defaults that work on at least a few old systems.
7643# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7644
7357c5b6
AM
7645# Character class describing NM global symbol codes.
7646symcode='[BCDEGRST]'
7647
7648# Regexp to match symbols that can be accessed directly from C.
7649sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7650
7651# Define system-specific variables.
7652case $host_os in
7653aix*)
7654 symcode='[BCDT]'
7655 ;;
b214d478 7656cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7657 symcode='[ABCDGISTW]'
7658 ;;
7659hpux*)
7660 if test "$host_cpu" = ia64; then
7661 symcode='[ABCDEGRST]'
ce2cded5 7662 fi
7357c5b6
AM
7663 ;;
7664irix* | nonstopux*)
7665 symcode='[BCDEGRST]'
7666 ;;
7667osf*)
7668 symcode='[BCDEGQRST]'
7669 ;;
7670solaris*)
7671 symcode='[BDRT]'
7672 ;;
7673sco3.2v5*)
7674 symcode='[DT]'
7675 ;;
7676sysv4.2uw2*)
7677 symcode='[DT]'
7678 ;;
7679sysv5* | sco5v6* | unixware* | OpenUNIX*)
7680 symcode='[ABDT]'
7681 ;;
7682sysv4)
7683 symcode='[DFNSTU]'
7684 ;;
7685esac
d7040cdb 7686
7357c5b6
AM
7687# If we're using GNU nm, then use its standard symbol codes.
7688case `$NM -V 2>&1` in
7689*GNU* | *'with BFD'*)
7690 symcode='[ABCDGIRSTW]' ;;
7691esac
d7040cdb 7692
7357c5b6
AM
7693# Transform an extracted symbol line into a proper C declaration.
7694# Some systems (esp. on ia64) link data and code symbols differently,
7695# so use this general approach.
7696lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7697
7698# Transform an extracted symbol line into symbol name and symbol address
7699lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7700lt_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
7701
7702# Handle CRLF in mingw tool chain
7703opt_cr=
7704case $build_os in
7705mingw*)
7706 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7707 ;;
7708esac
d7040cdb 7709
7357c5b6
AM
7710# Try without a prefix underscore, then with it.
7711for ac_symprfx in "" "_"; do
d7040cdb 7712
7357c5b6
AM
7713 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7714 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7715
7357c5b6
AM
7716 # Write the raw and C identifiers.
7717 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7718 # Fake it for dumpbin and say T for any non-static function
7719 # and D for any global variable.
7720 # Also find C++ and __fastcall symbols from MSVC++,
7721 # which start with @ or ?.
7722 lt_cv_sys_global_symbol_pipe="$AWK '"\
7723" {last_section=section; section=\$ 3};"\
7724" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7725" \$ 0!~/External *\|/{next};"\
7726" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7727" {if(hide[section]) next};"\
7728" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7729" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7730" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7731" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7732" ' prfx=^$ac_symprfx"
7733 else
7734 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7735 fi
d7040cdb 7736
7357c5b6
AM
7737 # Check to see that the pipe works correctly.
7738 pipe_works=no
d7040cdb 7739
7357c5b6
AM
7740 rm -f conftest*
7741 cat > conftest.$ac_ext <<_LT_EOF
7742#ifdef __cplusplus
7743extern "C" {
7744#endif
7745char nm_test_var;
7746void nm_test_func(void);
7747void nm_test_func(void){}
7748#ifdef __cplusplus
20e95c23 7749}
7357c5b6
AM
7750#endif
7751int main(){nm_test_var='a';nm_test_func();return(0);}
7752_LT_EOF
7753
81ecdfbb 7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7755 (eval $ac_compile) 2>&5
20e95c23 7756 ac_status=$?
81ecdfbb
RW
7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7357c5b6
AM
7759 # Now try to grab the symbols.
7760 nlist=conftest.nm
3725885a
RW
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7762 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7763 ac_status=$?
81ecdfbb
RW
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7766 # Try sorting and uniquifying the output.
7767 if sort "$nlist" | uniq > "$nlist"T; then
7768 mv -f "$nlist"T "$nlist"
7769 else
7770 rm -f "$nlist"T
7771 fi
d7040cdb 7772
7357c5b6
AM
7773 # Make sure that we snagged all the symbols we need.
7774 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7775 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7776 cat <<_LT_EOF > conftest.$ac_ext
7777#ifdef __cplusplus
7778extern "C" {
7779#endif
ce2cded5 7780
7357c5b6
AM
7781_LT_EOF
7782 # Now generate the symbol file.
7783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7784
7357c5b6 7785 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7786
7357c5b6
AM
7787/* The mapping between symbol names and symbols. */
7788const struct {
7789 const char *name;
7790 void *address;
7791}
7792lt__PROGRAM__LTX_preloaded_symbols[] =
7793{
7794 { "@PROGRAM@", (void *) 0 },
7795_LT_EOF
7796 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7797 cat <<\_LT_EOF >> conftest.$ac_ext
7798 {0, (void *) 0}
7799};
d7040cdb 7800
7357c5b6
AM
7801/* This works around a problem in FreeBSD linker */
7802#ifdef FREEBSD_WORKAROUND
7803static const void *lt_preloaded_setup() {
7804 return lt__PROGRAM__LTX_preloaded_symbols;
7805}
ce2cded5 7806#endif
42ecbf5e 7807
7357c5b6 7808#ifdef __cplusplus
ce2cded5 7809}
7357c5b6
AM
7810#endif
7811_LT_EOF
7812 # Now try linking the two files.
7813 mv conftest.$ac_objext conftstm.$ac_objext
7814 lt_save_LIBS="$LIBS"
7815 lt_save_CFLAGS="$CFLAGS"
7816 LIBS="conftstm.$ac_objext"
7817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7819 (eval $ac_link) 2>&5
7820 ac_status=$?
81ecdfbb
RW
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7823 pipe_works=yes
7824 fi
7825 LIBS="$lt_save_LIBS"
7826 CFLAGS="$lt_save_CFLAGS"
7827 else
7828 echo "cannot find nm_test_func in $nlist" >&5
7829 fi
7830 else
7831 echo "cannot find nm_test_var in $nlist" >&5
7832 fi
7833 else
7834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7835 fi
7836 else
7837 echo "$progname: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 fi
b214d478 7840 rm -rf conftest* conftst*
7357c5b6
AM
7841
7842 # Do not use the global_symbol_pipe unless it works.
7843 if test "$pipe_works" = yes; then
7844 break
7845 else
7846 lt_cv_sys_global_symbol_pipe=
7847 fi
7848done
42ecbf5e 7849
ce2cded5 7850fi
7357c5b6
AM
7851
7852if test -z "$lt_cv_sys_global_symbol_pipe"; then
7853 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7854fi
7357c5b6 7855if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7857$as_echo "failed" >&6; }
7357c5b6 7858else
81ecdfbb
RW
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7860$as_echo "ok" >&6; }
ce2cded5 7861fi
e5a52504 7862
d7040cdb 7863
e5a52504 7864
d7040cdb 7865
d7040cdb 7866
d7040cdb 7867
d7040cdb 7868
d7040cdb 7869
d7040cdb 7870
d7040cdb 7871
d7040cdb 7872
d7040cdb 7873
7357c5b6
AM
7874
7875
7876
b214d478
SE
7877
7878
7879
7880
7881
7357c5b6
AM
7882
7883
81ecdfbb
RW
7884# Check whether --enable-libtool-lock was given.
7885if test "${enable_libtool_lock+set}" = set; then :
7886 enableval=$enable_libtool_lock;
7887fi
7357c5b6 7888
7357c5b6
AM
7889test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7890
7891# Some flags need to be propagated to the compiler or linker for good
7892# libtool support.
7893case $host in
7894ia64-*-hpux*)
7895 # Find out which ABI we are using.
7896 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7898 (eval $ac_compile) 2>&5
7899 ac_status=$?
81ecdfbb
RW
7900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901 test $ac_status = 0; }; then
7357c5b6
AM
7902 case `/usr/bin/file conftest.$ac_objext` in
7903 *ELF-32*)
7904 HPUX_IA64_MODE="32"
7905 ;;
7906 *ELF-64*)
7907 HPUX_IA64_MODE="64"
7908 ;;
7909 esac
7910 fi
7911 rm -rf conftest*
7912 ;;
7913*-*-irix6*)
7914 # Find out which ABI we are using.
3725885a 7915 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7917 (eval $ac_compile) 2>&5
7918 ac_status=$?
81ecdfbb
RW
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; then
7357c5b6
AM
7921 if test "$lt_cv_prog_gnu_ld" = yes; then
7922 case `/usr/bin/file conftest.$ac_objext` in
7923 *32-bit*)
7924 LD="${LD-ld} -melf32bsmip"
7925 ;;
7926 *N32*)
7927 LD="${LD-ld} -melf32bmipn32"
7928 ;;
7929 *64-bit*)
7930 LD="${LD-ld} -melf64bmip"
7931 ;;
7932 esac
7933 else
7934 case `/usr/bin/file conftest.$ac_objext` in
7935 *32-bit*)
7936 LD="${LD-ld} -32"
7937 ;;
7938 *N32*)
7939 LD="${LD-ld} -n32"
7940 ;;
7941 *64-bit*)
7942 LD="${LD-ld} -64"
7943 ;;
7944 esac
7945 fi
7946 fi
7947 rm -rf conftest*
7948 ;;
7949
cc9afea3 7950x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7951s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7952 # Find out which ABI we are using.
7953 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
81ecdfbb
RW
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }; then
7357c5b6
AM
7959 case `/usr/bin/file conftest.o` in
7960 *32-bit*)
7961 case $host in
7962 x86_64-*kfreebsd*-gnu)
7963 LD="${LD-ld} -m elf_i386_fbsd"
7964 ;;
7965 x86_64-*linux*)
6d2920c8
L
7966 case `/usr/bin/file conftest.o` in
7967 *x86-64*)
7968 LD="${LD-ld} -m elf32_x86_64"
7969 ;;
7970 *)
7971 LD="${LD-ld} -m elf_i386"
7972 ;;
7973 esac
7357c5b6 7974 ;;
cc9afea3
AM
7975 powerpc64le-*linux*)
7976 LD="${LD-ld} -m elf32lppclinux"
7977 ;;
7978 powerpc64-*linux*)
7357c5b6
AM
7979 LD="${LD-ld} -m elf32ppclinux"
7980 ;;
7981 s390x-*linux*)
7982 LD="${LD-ld} -m elf_s390"
7983 ;;
7984 sparc64-*linux*)
7985 LD="${LD-ld} -m elf32_sparc"
7986 ;;
7987 esac
7988 ;;
7989 *64-bit*)
7990 case $host in
7991 x86_64-*kfreebsd*-gnu)
7992 LD="${LD-ld} -m elf_x86_64_fbsd"
7993 ;;
7994 x86_64-*linux*)
7995 LD="${LD-ld} -m elf_x86_64"
7996 ;;
cc9afea3
AM
7997 powerpcle-*linux*)
7998 LD="${LD-ld} -m elf64lppc"
7999 ;;
8000 powerpc-*linux*)
7357c5b6
AM
8001 LD="${LD-ld} -m elf64ppc"
8002 ;;
8003 s390*-*linux*|s390*-*tpf*)
8004 LD="${LD-ld} -m elf64_s390"
8005 ;;
8006 sparc*-*linux*)
8007 LD="${LD-ld} -m elf64_sparc"
8008 ;;
8009 esac
8010 ;;
8011 esac
8012 fi
8013 rm -rf conftest*
8014 ;;
8015
8016*-*-sco3.2v5*)
8017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8018 SAVE_CFLAGS="$CFLAGS"
8019 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8021$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8022if test "${lt_cv_cc_needs_belf+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
ce2cded5 8024else
7357c5b6
AM
8025 ac_ext=c
8026ac_cpp='$CPP $CPPFLAGS'
8027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
81ecdfbb 8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 8032/* end confdefs.h. */
d7040cdb 8033
7357c5b6
AM
8034int
8035main ()
8036{
8037
8038 ;
8039 return 0;
8040}
ce2cded5 8041_ACEOF
81ecdfbb 8042if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 8043 lt_cv_cc_needs_belf=yes
ce2cded5 8044else
81ecdfbb 8045 lt_cv_cc_needs_belf=no
ce2cded5 8046fi
81ecdfbb
RW
8047rm -f core conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
8049 ac_ext=c
8050ac_cpp='$CPP $CPPFLAGS'
8051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8053ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8054
b214d478 8055fi
81ecdfbb
RW
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8057$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
8058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8060 CFLAGS="$SAVE_CFLAGS"
8061 fi
8062 ;;
8063sparc*-*solaris*)
8064 # Find out which ABI we are using.
8065 echo 'int i;' > conftest.$ac_ext
81ecdfbb 8066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
8067 (eval $ac_compile) 2>&5
8068 ac_status=$?
81ecdfbb
RW
8069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070 test $ac_status = 0; }; then
b214d478
SE
8071 case `/usr/bin/file conftest.o` in
8072 *64-bit*)
8073 case $lt_cv_prog_gnu_ld in
8074 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8075 *)
8076 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8077 LD="${LD-ld} -64"
8078 fi
8079 ;;
8080 esac
8081 ;;
8082 esac
8083 fi
8084 rm -rf conftest*
8085 ;;
8086esac
8087
8088need_locks="$enable_libtool_lock"
8089
8090
8091 case $host_os in
8092 rhapsody* | darwin*)
8093 if test -n "$ac_tool_prefix"; then
8094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8095set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097$as_echo_n "checking for $ac_word... " >&6; }
8098if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
b214d478
SE
8100else
8101 if test -n "$DSYMUTIL"; then
8102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8103else
8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8113 break 2
8114 fi
8115done
81ecdfbb
RW
8116 done
8117IFS=$as_save_IFS
b214d478
SE
8118
8119fi
8120fi
8121DSYMUTIL=$ac_cv_prog_DSYMUTIL
8122if test -n "$DSYMUTIL"; then
81ecdfbb
RW
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8124$as_echo "$DSYMUTIL" >&6; }
b214d478 8125else
81ecdfbb
RW
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
b214d478
SE
8128fi
8129
81ecdfbb 8130
b214d478
SE
8131fi
8132if test -z "$ac_cv_prog_DSYMUTIL"; then
8133 ac_ct_DSYMUTIL=$DSYMUTIL
8134 # Extract the first word of "dsymutil", so it can be a program name with args.
8135set dummy dsymutil; ac_word=$2
81ecdfbb
RW
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137$as_echo_n "checking for $ac_word... " >&6; }
8138if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
b214d478
SE
8140else
8141 if test -n "$ac_ct_DSYMUTIL"; then
8142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8143else
8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8153 break 2
8154 fi
8155done
81ecdfbb
RW
8156 done
8157IFS=$as_save_IFS
b214d478 8158
b214d478
SE
8159fi
8160fi
8161ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8162if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8164$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8165else
81ecdfbb
RW
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167$as_echo "no" >&6; }
b214d478
SE
8168fi
8169
81ecdfbb
RW
8170 if test "x$ac_ct_DSYMUTIL" = x; then
8171 DSYMUTIL=":"
8172 else
8173 case $cross_compiling:$ac_tool_warned in
8174yes:)
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177ac_tool_warned=yes ;;
8178esac
8179 DSYMUTIL=$ac_ct_DSYMUTIL
8180 fi
b214d478
SE
8181else
8182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8183fi
8184
8185 if test -n "$ac_tool_prefix"; then
8186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8187set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
b214d478
SE
8192else
8193 if test -n "$NMEDIT"; then
8194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8195else
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8205 break 2
8206 fi
8207done
81ecdfbb
RW
8208 done
8209IFS=$as_save_IFS
b214d478
SE
8210
8211fi
8212fi
8213NMEDIT=$ac_cv_prog_NMEDIT
8214if test -n "$NMEDIT"; then
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8216$as_echo "$NMEDIT" >&6; }
b214d478 8217else
81ecdfbb
RW
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
b214d478
SE
8220fi
8221
81ecdfbb 8222
b214d478
SE
8223fi
8224if test -z "$ac_cv_prog_NMEDIT"; then
8225 ac_ct_NMEDIT=$NMEDIT
8226 # Extract the first word of "nmedit", so it can be a program name with args.
8227set dummy nmedit; ac_word=$2
81ecdfbb
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
b214d478
SE
8232else
8233 if test -n "$ac_ct_NMEDIT"; then
8234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8235else
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8245 break 2
8246 fi
8247done
81ecdfbb
RW
8248 done
8249IFS=$as_save_IFS
b214d478 8250
b214d478
SE
8251fi
8252fi
8253ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8254if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8256$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8257else
81ecdfbb
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
b214d478
SE
8260fi
8261
81ecdfbb
RW
8262 if test "x$ac_ct_NMEDIT" = x; then
8263 NMEDIT=":"
8264 else
8265 case $cross_compiling:$ac_tool_warned in
8266yes:)
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8269ac_tool_warned=yes ;;
8270esac
8271 NMEDIT=$ac_ct_NMEDIT
8272 fi
b214d478
SE
8273else
8274 NMEDIT="$ac_cv_prog_NMEDIT"
8275fi
8276
8277 if test -n "$ac_tool_prefix"; then
8278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8279set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281$as_echo_n "checking for $ac_word... " >&6; }
8282if test "${ac_cv_prog_LIPO+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
b214d478
SE
8284else
8285 if test -n "$LIPO"; then
8286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8287else
8288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289for as_dir in $PATH
8290do
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8297 break 2
8298 fi
8299done
81ecdfbb
RW
8300 done
8301IFS=$as_save_IFS
b214d478
SE
8302
8303fi
8304fi
8305LIPO=$ac_cv_prog_LIPO
8306if test -n "$LIPO"; then
81ecdfbb
RW
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8308$as_echo "$LIPO" >&6; }
b214d478 8309else
81ecdfbb
RW
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311$as_echo "no" >&6; }
b214d478
SE
8312fi
8313
81ecdfbb 8314
b214d478
SE
8315fi
8316if test -z "$ac_cv_prog_LIPO"; then
8317 ac_ct_LIPO=$LIPO
8318 # Extract the first word of "lipo", so it can be a program name with args.
8319set dummy lipo; ac_word=$2
81ecdfbb
RW
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321$as_echo_n "checking for $ac_word... " >&6; }
8322if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
b214d478
SE
8324else
8325 if test -n "$ac_ct_LIPO"; then
8326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8327else
8328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8335 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8337 break 2
8338 fi
8339done
81ecdfbb
RW
8340 done
8341IFS=$as_save_IFS
b214d478 8342
b214d478
SE
8343fi
8344fi
8345ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8346if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8348$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8349else
81ecdfbb
RW
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351$as_echo "no" >&6; }
b214d478
SE
8352fi
8353
81ecdfbb
RW
8354 if test "x$ac_ct_LIPO" = x; then
8355 LIPO=":"
8356 else
8357 case $cross_compiling:$ac_tool_warned in
8358yes:)
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8361ac_tool_warned=yes ;;
8362esac
8363 LIPO=$ac_ct_LIPO
8364 fi
b214d478
SE
8365else
8366 LIPO="$ac_cv_prog_LIPO"
8367fi
8368
8369 if test -n "$ac_tool_prefix"; then
8370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8371set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373$as_echo_n "checking for $ac_word... " >&6; }
8374if test "${ac_cv_prog_OTOOL+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
b214d478
SE
8376else
8377 if test -n "$OTOOL"; then
8378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8379else
8380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381for as_dir in $PATH
8382do
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8389 break 2
8390 fi
8391done
81ecdfbb
RW
8392 done
8393IFS=$as_save_IFS
b214d478
SE
8394
8395fi
8396fi
8397OTOOL=$ac_cv_prog_OTOOL
8398if test -n "$OTOOL"; then
81ecdfbb
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8400$as_echo "$OTOOL" >&6; }
b214d478 8401else
81ecdfbb
RW
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403$as_echo "no" >&6; }
b214d478
SE
8404fi
8405
81ecdfbb 8406
b214d478
SE
8407fi
8408if test -z "$ac_cv_prog_OTOOL"; then
8409 ac_ct_OTOOL=$OTOOL
8410 # Extract the first word of "otool", so it can be a program name with args.
8411set dummy otool; ac_word=$2
81ecdfbb
RW
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413$as_echo_n "checking for $ac_word... " >&6; }
8414if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
b214d478
SE
8416else
8417 if test -n "$ac_ct_OTOOL"; then
8418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8427 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8429 break 2
8430 fi
8431done
81ecdfbb
RW
8432 done
8433IFS=$as_save_IFS
b214d478 8434
b214d478
SE
8435fi
8436fi
8437ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8438if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8440$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8441else
81ecdfbb
RW
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
b214d478
SE
8444fi
8445
81ecdfbb
RW
8446 if test "x$ac_ct_OTOOL" = x; then
8447 OTOOL=":"
8448 else
8449 case $cross_compiling:$ac_tool_warned in
8450yes:)
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8453ac_tool_warned=yes ;;
8454esac
8455 OTOOL=$ac_ct_OTOOL
8456 fi
b214d478
SE
8457else
8458 OTOOL="$ac_cv_prog_OTOOL"
8459fi
8460
8461 if test -n "$ac_tool_prefix"; then
8462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8463set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465$as_echo_n "checking for $ac_word... " >&6; }
8466if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
b214d478
SE
8468else
8469 if test -n "$OTOOL64"; then
8470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8471else
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8481 break 2
8482 fi
8483done
81ecdfbb
RW
8484 done
8485IFS=$as_save_IFS
b214d478
SE
8486
8487fi
8488fi
8489OTOOL64=$ac_cv_prog_OTOOL64
8490if test -n "$OTOOL64"; then
81ecdfbb
RW
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8492$as_echo "$OTOOL64" >&6; }
b214d478 8493else
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
b214d478
SE
8496fi
8497
81ecdfbb 8498
b214d478
SE
8499fi
8500if test -z "$ac_cv_prog_OTOOL64"; then
8501 ac_ct_OTOOL64=$OTOOL64
8502 # Extract the first word of "otool64", so it can be a program name with args.
8503set dummy otool64; ac_word=$2
81ecdfbb
RW
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
b214d478
SE
8508else
8509 if test -n "$ac_ct_OTOOL64"; then
8510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8511else
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8519 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8521 break 2
8522 fi
8523done
81ecdfbb
RW
8524 done
8525IFS=$as_save_IFS
b214d478 8526
b214d478
SE
8527fi
8528fi
8529ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8530if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8532$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8533else
81ecdfbb
RW
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
b214d478
SE
8536fi
8537
81ecdfbb
RW
8538 if test "x$ac_ct_OTOOL64" = x; then
8539 OTOOL64=":"
8540 else
8541 case $cross_compiling:$ac_tool_warned in
8542yes:)
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8545ac_tool_warned=yes ;;
8546esac
8547 OTOOL64=$ac_ct_OTOOL64
8548 fi
b214d478
SE
8549else
8550 OTOOL64="$ac_cv_prog_OTOOL64"
8551fi
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
81ecdfbb
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8580$as_echo_n "checking for -single_module linker flag... " >&6; }
8581if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
b214d478
SE
8583else
8584 lt_cv_apple_cc_single_mod=no
8585 if test -z "${LT_MULTI_MODULE}"; then
8586 # By default we will add the -single_module flag. You can override
8587 # by either setting the environment variable LT_MULTI_MODULE
8588 # non-empty at configure time, or by adding -multi_module to the
8589 # link flags.
8590 rm -rf libconftest.dylib*
8591 echo "int foo(void){return 1;}" > conftest.c
8592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8593-dynamiclib -Wl,-single_module conftest.c" >&5
8594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8596 _lt_result=$?
8597 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8598 lt_cv_apple_cc_single_mod=yes
8599 else
8600 cat conftest.err >&5
8601 fi
8602 rm -rf libconftest.dylib*
8603 rm -f conftest.*
8604 fi
8605fi
81ecdfbb
RW
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8607$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8609$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8610if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
b214d478
SE
8612else
8613 lt_cv_ld_exported_symbols_list=no
8614 save_LDFLAGS=$LDFLAGS
8615 echo "_main" > conftest.sym
8616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8618/* end confdefs.h. */
8619
8620int
8621main ()
8622{
8623
8624 ;
8625 return 0;
8626}
8627_ACEOF
81ecdfbb 8628if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8629 lt_cv_ld_exported_symbols_list=yes
8630else
81ecdfbb 8631 lt_cv_ld_exported_symbols_list=no
b214d478 8632fi
81ecdfbb
RW
8633rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8635 LDFLAGS="$save_LDFLAGS"
8636
8637fi
81ecdfbb
RW
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8639$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8641$as_echo_n "checking for -force_load linker flag... " >&6; }
8642if test "${lt_cv_ld_force_load+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8644else
8645 lt_cv_ld_force_load=no
8646 cat > conftest.c << _LT_EOF
8647int forced_loaded() { return 2;}
8648_LT_EOF
8649 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8650 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8651 echo "$AR cru libconftest.a conftest.o" >&5
8652 $AR cru libconftest.a conftest.o 2>&5
8653 cat > conftest.c << _LT_EOF
8654int main() { return 0;}
8655_LT_EOF
8656 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8657 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8658 _lt_result=$?
8659 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8660 lt_cv_ld_force_load=yes
8661 else
8662 cat conftest.err >&5
8663 fi
8664 rm -f conftest.err libconftest.a conftest conftest.c
8665 rm -rf conftest.dSYM
8666
8667fi
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8669$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8670 case $host_os in
8671 rhapsody* | darwin1.[012])
8672 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8673 darwin1.*)
8674 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8675 darwin*) # darwin 5.x on
8676 # if running on 10.5 or later, the deployment target defaults
8677 # to the OS version, if on x86, and 10.4, the deployment
8678 # target defaults to 10.4. Don't you love it?
8679 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8680 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8681 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8682 10.[012]*)
8683 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8684 10.*)
8685 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8686 esac
8687 ;;
8688 esac
8689 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8690 _lt_dar_single_mod='$single_module'
8691 fi
8692 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8693 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8694 else
8695 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8696 fi
3725885a 8697 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8698 _lt_dsymutil='~$DSYMUTIL $lib || :'
8699 else
8700 _lt_dsymutil=
8701 fi
8702 ;;
8703 esac
8704
b214d478 8705for ac_header in dlfcn.h
81ecdfbb
RW
8706do :
8707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8708"
8709if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8710 cat >>confdefs.h <<_ACEOF
81ecdfbb 8711#define HAVE_DLFCN_H 1
b214d478
SE
8712_ACEOF
8713
8714fi
8715
8716done
8717
8718
8719
3725885a
RW
8720
8721
3cb62297 8722
b214d478
SE
8723# Set options
8724
8725
8726
8727 enable_dlopen=no
8728
8729
8730 enable_win32_dll=no
8731
8732
81ecdfbb
RW
8733 # Check whether --enable-shared was given.
8734if test "${enable_shared+set}" = set; then :
8735 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8736 case $enableval in
8737 yes) enable_shared=yes ;;
8738 no) enable_shared=no ;;
8739 *)
8740 enable_shared=no
8741 # Look at the argument we got. We use all the common list separators.
8742 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8743 for pkg in $enableval; do
8744 IFS="$lt_save_ifs"
8745 if test "X$pkg" = "X$p"; then
8746 enable_shared=yes
8747 fi
8748 done
8749 IFS="$lt_save_ifs"
8750 ;;
8751 esac
8752else
8753 enable_shared=yes
81ecdfbb 8754fi
b214d478
SE
8755
8756
8757
8758
8759
8760
8761
8762
81ecdfbb
RW
8763
8764 # Check whether --enable-static was given.
8765if test "${enable_static+set}" = set; then :
8766 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8767 case $enableval in
8768 yes) enable_static=yes ;;
8769 no) enable_static=no ;;
8770 *)
8771 enable_static=no
8772 # Look at the argument we got. We use all the common list separators.
8773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8774 for pkg in $enableval; do
8775 IFS="$lt_save_ifs"
8776 if test "X$pkg" = "X$p"; then
8777 enable_static=yes
8778 fi
8779 done
8780 IFS="$lt_save_ifs"
8781 ;;
8782 esac
8783else
8784 enable_static=yes
81ecdfbb 8785fi
b214d478
SE
8786
8787
8788
8789
8790
8791
8792
8793
8794
81ecdfbb
RW
8795
8796# Check whether --with-pic was given.
8797if test "${with_pic+set}" = set; then :
8798 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8799else
8800 pic_mode=default
81ecdfbb
RW
8801fi
8802
b214d478
SE
8803
8804test -z "$pic_mode" && pic_mode=default
8805
8806
8807
8808
8809
8810
8811
81ecdfbb
RW
8812 # Check whether --enable-fast-install was given.
8813if test "${enable_fast_install+set}" = set; then :
8814 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8815 case $enableval in
8816 yes) enable_fast_install=yes ;;
8817 no) enable_fast_install=no ;;
8818 *)
8819 enable_fast_install=no
8820 # Look at the argument we got. We use all the common list separators.
8821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8822 for pkg in $enableval; do
8823 IFS="$lt_save_ifs"
8824 if test "X$pkg" = "X$p"; then
8825 enable_fast_install=yes
8826 fi
8827 done
8828 IFS="$lt_save_ifs"
7357c5b6
AM
8829 ;;
8830 esac
b214d478
SE
8831else
8832 enable_fast_install=yes
81ecdfbb
RW
8833fi
8834
ce2cded5 8835
ce2cded5
L
8836
8837
ce2cded5 8838
42ecbf5e 8839
d7040cdb 8840
d7040cdb 8841
d7040cdb 8842
d7040cdb 8843
d7040cdb 8844
ce2cded5
L
8845# This can be used to rebuild libtool when needed
8846LIBTOOL_DEPS="$ltmain"
d7040cdb 8847
ce2cded5
L
8848# Always use our own libtool.
8849LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8850
d7040cdb 8851
d7040cdb 8852
d7040cdb 8853
d7040cdb 8854
d7040cdb 8855
d7040cdb 8856
d7040cdb 8857
d7040cdb 8858
d7040cdb 8859
d7040cdb 8860
d7040cdb 8861
d7040cdb 8862
d7040cdb 8863
d7040cdb 8864
d7040cdb 8865
d7040cdb
SE
8866
8867
8868
8869
8870
8871
8872
3725885a 8873
d7040cdb
SE
8874
8875
ce2cded5 8876test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8877
8878
8879
8880
8881
8882
d7040cdb
SE
8883
8884
8885
8886
8887
8888
8889
8890
ce2cded5
L
8891if test -n "${ZSH_VERSION+set}" ; then
8892 setopt NO_GLOB_SUBST
8893fi
d7040cdb 8894
81ecdfbb
RW
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8896$as_echo_n "checking for objdir... " >&6; }
8897if test "${lt_cv_objdir+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
ce2cded5
L
8899else
8900 rm -f .libs 2>/dev/null
8901mkdir .libs 2>/dev/null
8902if test -d .libs; then
8903 lt_cv_objdir=.libs
8904else
8905 # MS-DOS does not allow filenames that begin with a dot.
8906 lt_cv_objdir=_libs
8907fi
8908rmdir .libs 2>/dev/null
8909fi
81ecdfbb
RW
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8911$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8912objdir=$lt_cv_objdir
d7040cdb
SE
8913
8914
8915
8916
8917
ce2cded5
L
8918cat >>confdefs.h <<_ACEOF
8919#define LT_OBJDIR "$lt_cv_objdir/"
8920_ACEOF
d7040cdb
SE
8921
8922
8923
8924
ce2cded5
L
8925case $host_os in
8926aix3*)
8927 # AIX sometimes has problems with the GCC collect2 program. For some
8928 # reason, if we set the COLLECT_NAMES environment variable, the problems
8929 # vanish in a puff of smoke.
8930 if test "X${COLLECT_NAMES+set}" != Xset; then
8931 COLLECT_NAMES=
8932 export COLLECT_NAMES
8933 fi
8934 ;;
8935esac
d7040cdb 8936
ce2cded5
L
8937# Global variables:
8938ofile=libtool
8939can_build_shared=yes
d7040cdb 8940
ce2cded5
L
8941# All known linkers require a `.a' archive for static linking (except MSVC,
8942# which needs '.lib').
8943libext=a
d7040cdb 8944
ce2cded5 8945with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8946
ce2cded5
L
8947old_CC="$CC"
8948old_CFLAGS="$CFLAGS"
d7040cdb 8949
ce2cded5
L
8950# Set sane defaults for various variables
8951test -z "$CC" && CC=cc
8952test -z "$LTCC" && LTCC=$CC
8953test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8954test -z "$LD" && LD=ld
8955test -z "$ac_objext" && ac_objext=o
d7040cdb 8956
ce2cded5
L
8957for cc_temp in $compiler""; do
8958 case $cc_temp in
8959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8961 \-*) ;;
8962 *) break;;
8963 esac
8964done
3725885a 8965cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8966
8967
ce2cded5
L
8968# Only perform the check for file, if the check method requires it
8969test -z "$MAGIC_CMD" && MAGIC_CMD=file
8970case $deplibs_check_method in
8971file_magic*)
8972 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8974$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8975if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
ce2cded5
L
8977else
8978 case $MAGIC_CMD in
8979[\\/*] | ?:[\\/]*)
8980 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8981 ;;
8982*)
8983 lt_save_MAGIC_CMD="$MAGIC_CMD"
8984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8986 for ac_dir in $ac_dummy; do
8987 IFS="$lt_save_ifs"
8988 test -z "$ac_dir" && ac_dir=.
8989 if test -f $ac_dir/${ac_tool_prefix}file; then
8990 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8991 if test -n "$file_magic_test_file"; then
8992 case $deplibs_check_method in
8993 "file_magic "*)
8994 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8997 $EGREP "$file_magic_regex" > /dev/null; then
8998 :
8999 else
9000 cat <<_LT_EOF 1>&2
d7040cdb 9001
ce2cded5
L
9002*** Warning: the command libtool uses to detect shared libraries,
9003*** $file_magic_cmd, produces output that libtool cannot recognize.
9004*** The result is that libtool may fail to recognize shared libraries
9005*** as such. This will affect the creation of libtool libraries that
9006*** depend on shared libraries, but programs linked with such libtool
9007*** libraries will work regardless of this problem. Nevertheless, you
9008*** may want to report the problem to your system manager and/or to
9009*** bug-libtool@gnu.org
d7040cdb 9010
ce2cded5
L
9011_LT_EOF
9012 fi ;;
9013 esac
9014 fi
9015 break
9016 fi
9017 done
9018 IFS="$lt_save_ifs"
9019 MAGIC_CMD="$lt_save_MAGIC_CMD"
9020 ;;
9021esac
9022fi
d7040cdb 9023
ce2cded5
L
9024MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9025if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9027$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9028else
81ecdfbb
RW
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
ce2cded5 9031fi
d7040cdb
SE
9032
9033
9034
9035
9036
ce2cded5
L
9037if test -z "$lt_cv_path_MAGIC_CMD"; then
9038 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9040$as_echo_n "checking for file... " >&6; }
9041if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
ce2cded5
L
9043else
9044 case $MAGIC_CMD in
9045[\\/*] | ?:[\\/]*)
9046 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9047 ;;
9048*)
9049 lt_save_MAGIC_CMD="$MAGIC_CMD"
9050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9051 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9052 for ac_dir in $ac_dummy; do
9053 IFS="$lt_save_ifs"
9054 test -z "$ac_dir" && ac_dir=.
9055 if test -f $ac_dir/file; then
9056 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9057 if test -n "$file_magic_test_file"; then
9058 case $deplibs_check_method in
9059 "file_magic "*)
9060 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9062 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9063 $EGREP "$file_magic_regex" > /dev/null; then
9064 :
9065 else
9066 cat <<_LT_EOF 1>&2
d7040cdb 9067
ce2cded5
L
9068*** Warning: the command libtool uses to detect shared libraries,
9069*** $file_magic_cmd, produces output that libtool cannot recognize.
9070*** The result is that libtool may fail to recognize shared libraries
9071*** as such. This will affect the creation of libtool libraries that
9072*** depend on shared libraries, but programs linked with such libtool
9073*** libraries will work regardless of this problem. Nevertheless, you
9074*** may want to report the problem to your system manager and/or to
9075*** bug-libtool@gnu.org
d7040cdb 9076
ce2cded5
L
9077_LT_EOF
9078 fi ;;
9079 esac
9080 fi
9081 break
9082 fi
9083 done
9084 IFS="$lt_save_ifs"
9085 MAGIC_CMD="$lt_save_MAGIC_CMD"
9086 ;;
9087esac
9088fi
d7040cdb 9089
ce2cded5
L
9090MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9091if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9093$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 9094else
81ecdfbb
RW
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096$as_echo "no" >&6; }
ce2cded5 9097fi
d7040cdb
SE
9098
9099
ce2cded5
L
9100 else
9101 MAGIC_CMD=:
9102 fi
9103fi
d7040cdb 9104
ce2cded5
L
9105 fi
9106 ;;
9107esac
d7040cdb 9108
ce2cded5 9109# Use C for the default configuration in the libtool script
d7040cdb 9110
ce2cded5
L
9111lt_save_CC="$CC"
9112ac_ext=c
9113ac_cpp='$CPP $CPPFLAGS'
9114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9116ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
9117
9118
ce2cded5
L
9119# Source file extension for C test sources.
9120ac_ext=c
d7040cdb 9121
ce2cded5
L
9122# Object file extension for compiled C test sources.
9123objext=o
9124objext=$objext
d7040cdb 9125
ce2cded5
L
9126# Code to be used in simple compile tests
9127lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 9128
ce2cded5
L
9129# Code to be used in simple link tests
9130lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
9131
9132
9133
9134
9135
9136
9137
ce2cded5
L
9138# If no C compiler was specified, use CC.
9139LTCC=${LTCC-"$CC"}
d7040cdb 9140
ce2cded5
L
9141# If no C compiler flags were specified, use CFLAGS.
9142LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 9143
ce2cded5
L
9144# Allow CC to be a program name with arguments.
9145compiler=$CC
d7040cdb 9146
ce2cded5
L
9147# Save the default compiler, since it gets overwritten when the other
9148# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9149compiler_DEFAULT=$CC
d7040cdb 9150
ce2cded5
L
9151# save warnings/boilerplate of simple test code
9152ac_outfile=conftest.$ac_objext
9153echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9154eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9155_lt_compiler_boilerplate=`cat conftest.err`
9156$RM conftest*
d7040cdb 9157
ce2cded5
L
9158ac_outfile=conftest.$ac_objext
9159echo "$lt_simple_link_test_code" >conftest.$ac_ext
9160eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9161_lt_linker_boilerplate=`cat conftest.err`
b214d478 9162$RM -r conftest*
d7040cdb
SE
9163
9164
ce2cded5
L
9165## CAVEAT EMPTOR:
9166## There is no encapsulation within the following macros, do not change
9167## the running order or otherwise move them around unless you know exactly
9168## what you are doing...
9169if test -n "$compiler"; then
d7040cdb 9170
ce2cded5 9171lt_prog_compiler_no_builtin_flag=
d7040cdb 9172
ce2cded5 9173if test "$GCC" = yes; then
3725885a
RW
9174 case $cc_basename in
9175 nvcc*)
9176 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9177 *)
9178 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9179 esac
d7040cdb 9180
81ecdfbb
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9182$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9183if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
ce2cded5
L
9185else
9186 lt_cv_prog_compiler_rtti_exceptions=no
9187 ac_outfile=conftest.$ac_objext
9188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189 lt_compiler_flag="-fno-rtti -fno-exceptions"
9190 # Insert the option either (1) after the last *FLAGS variable, or
9191 # (2) before a word containing "conftest.", or (3) at the end.
9192 # Note that $ac_compile itself does not contain backslashes and begins
9193 # with a dollar sign (not a hyphen), so the echo should work correctly.
9194 # The option is referenced via a variable to avoid confusing sed.
9195 lt_compile=`echo "$ac_compile" | $SED \
9196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9198 -e 's:$: $lt_compiler_flag:'`
3725885a 9199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9200 (eval "$lt_compile" 2>conftest.err)
9201 ac_status=$?
9202 cat conftest.err >&5
3725885a 9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9204 if (exit $ac_status) && test -s "$ac_outfile"; then
9205 # The compiler can only warn and ignore the option if not recognized
9206 # So say no if there are warnings other than the usual output.
3725885a 9207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9210 lt_cv_prog_compiler_rtti_exceptions=yes
9211 fi
9212 fi
9213 $RM conftest*
d7040cdb 9214
ce2cded5 9215fi
81ecdfbb
RW
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9217$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9218
ce2cded5
L
9219if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9220 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9221else
9222 :
9223fi
d7040cdb 9224
ce2cded5 9225fi
d7040cdb
SE
9226
9227
9228
9229
9230
9231
ce2cded5
L
9232 lt_prog_compiler_wl=
9233lt_prog_compiler_pic=
9234lt_prog_compiler_static=
d7040cdb 9235
81ecdfbb
RW
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9237$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9238
ce2cded5
L
9239 if test "$GCC" = yes; then
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_static='-static'
d7040cdb 9242
ce2cded5
L
9243 case $host_os in
9244 aix*)
9245 # All AIX code is PIC.
9246 if test "$host_cpu" = ia64; then
9247 # AIX 5 now supports IA64 processor
9248 lt_prog_compiler_static='-Bstatic'
9249 fi
52204357 9250 lt_prog_compiler_pic='-fPIC'
ce2cded5 9251 ;;
d7040cdb 9252
ce2cded5 9253 amigaos*)
b214d478
SE
9254 case $host_cpu in
9255 powerpc)
9256 # see comment about AmigaOS4 .so support
9257 lt_prog_compiler_pic='-fPIC'
9258 ;;
9259 m68k)
9260 # FIXME: we need at least 68020 code to build shared libraries, but
9261 # adding the `-m68020' flag to GCC prevents building anything better,
9262 # like `-m68040'.
9263 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9264 ;;
9265 esac
ce2cded5 9266 ;;
d7040cdb 9267
ce2cded5
L
9268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9269 # PIC is the default for these OSes.
9270 ;;
d7040cdb 9271
b214d478 9272 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9273 # This hack is so that the source file can tell whether it is being
9274 # built for inclusion in a dll (and should export symbols for example).
9275 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9276 # (--disable-auto-import) libraries
9277 lt_prog_compiler_pic='-DDLL_EXPORT'
9278 ;;
d7040cdb 9279
ce2cded5
L
9280 darwin* | rhapsody*)
9281 # PIC is the default on this platform
9282 # Common symbols not allowed in MH_DYLIB files
9283 lt_prog_compiler_pic='-fno-common'
9284 ;;
d7040cdb 9285
3725885a
RW
9286 haiku*)
9287 # PIC is the default for Haiku.
9288 # The "-static" flag exists, but is broken.
9289 lt_prog_compiler_static=
9290 ;;
9291
ce2cded5 9292 hpux*)
b214d478
SE
9293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9295 # sets the default TLS model and affects inlining.
ce2cded5 9296 case $host_cpu in
b214d478 9297 hppa*64*)
ce2cded5
L
9298 # +Z the default
9299 ;;
9300 *)
9301 lt_prog_compiler_pic='-fPIC'
9302 ;;
9303 esac
9304 ;;
d7040cdb 9305
ce2cded5
L
9306 interix[3-9]*)
9307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9308 # Instead, we relocate shared libraries at runtime.
9309 ;;
d7040cdb 9310
ce2cded5
L
9311 msdosdjgpp*)
9312 # Just because we use GCC doesn't mean we suddenly get shared libraries
9313 # on systems that don't support them.
9314 lt_prog_compiler_can_build_shared=no
9315 enable_shared=no
9316 ;;
d7040cdb 9317
ce2cded5
L
9318 *nto* | *qnx*)
9319 # QNX uses GNU C++, but need to define -shared option too, otherwise
9320 # it will coredump.
9321 lt_prog_compiler_pic='-fPIC -shared'
9322 ;;
d7040cdb 9323
ce2cded5
L
9324 sysv4*MP*)
9325 if test -d /usr/nec; then
9326 lt_prog_compiler_pic=-Kconform_pic
9327 fi
9328 ;;
d7040cdb 9329
ce2cded5
L
9330 *)
9331 lt_prog_compiler_pic='-fPIC'
9332 ;;
9333 esac
3725885a
RW
9334
9335 case $cc_basename in
9336 nvcc*) # Cuda Compiler Driver 2.2
9337 lt_prog_compiler_wl='-Xlinker '
9338 lt_prog_compiler_pic='-Xcompiler -fPIC'
9339 ;;
9340 esac
ce2cded5
L
9341 else
9342 # PORTME Check for flag to pass linker flags through the system compiler.
9343 case $host_os in
9344 aix*)
9345 lt_prog_compiler_wl='-Wl,'
9346 if test "$host_cpu" = ia64; then
9347 # AIX 5 now supports IA64 processor
9348 lt_prog_compiler_static='-Bstatic'
9349 else
9350 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9351 fi
9352 ;;
d7040cdb 9353
b214d478 9354 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9355 # This hack is so that the source file can tell whether it is being
9356 # built for inclusion in a dll (and should export symbols for example).
9357 lt_prog_compiler_pic='-DDLL_EXPORT'
9358 ;;
d7040cdb 9359
ce2cded5
L
9360 hpux9* | hpux10* | hpux11*)
9361 lt_prog_compiler_wl='-Wl,'
9362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9363 # not for PA HP-UX.
9364 case $host_cpu in
9365 hppa*64*|ia64*)
9366 # +Z the default
9367 ;;
9368 *)
9369 lt_prog_compiler_pic='+Z'
9370 ;;
9371 esac
9372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9373 lt_prog_compiler_static='${wl}-a ${wl}archive'
9374 ;;
d7040cdb 9375
ce2cded5
L
9376 irix5* | irix6* | nonstopux*)
9377 lt_prog_compiler_wl='-Wl,'
9378 # PIC (with -KPIC) is the default.
9379 lt_prog_compiler_static='-non_shared'
9380 ;;
d7040cdb 9381
58e24671 9382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9383 case $cc_basename in
b214d478
SE
9384 # old Intel for x86_64 which still supported -KPIC.
9385 ecc*)
ce2cded5
L
9386 lt_prog_compiler_wl='-Wl,'
9387 lt_prog_compiler_pic='-KPIC'
9388 lt_prog_compiler_static='-static'
9389 ;;
b214d478
SE
9390 # icc used to be incompatible with GCC.
9391 # ICC 10 doesn't accept -KPIC any more.
9392 icc* | ifort*)
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_pic='-fPIC'
9395 lt_prog_compiler_static='-static'
9396 ;;
9397 # Lahey Fortran 8.1.
9398 lf95*)
9399 lt_prog_compiler_wl='-Wl,'
9400 lt_prog_compiler_pic='--shared'
9401 lt_prog_compiler_static='--static'
9402 ;;
3725885a 9403 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9404 # Portland Group compilers (*not* the Pentium gcc compiler,
9405 # which looks to be a dead project)
9406 lt_prog_compiler_wl='-Wl,'
9407 lt_prog_compiler_pic='-fpic'
9408 lt_prog_compiler_static='-Bstatic'
9409 ;;
9410 ccc*)
9411 lt_prog_compiler_wl='-Wl,'
9412 # All Alpha code is PIC.
9413 lt_prog_compiler_static='-non_shared'
9414 ;;
3725885a
RW
9415 xl* | bgxl* | bgf* | mpixl*)
9416 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_pic='-qpic'
9419 lt_prog_compiler_static='-qstaticlink'
9420 ;;
ce2cded5
L
9421 *)
9422 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9423 *Sun\ F* | *Sun*Fortran*)
9424 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9425 lt_prog_compiler_pic='-KPIC'
9426 lt_prog_compiler_static='-Bstatic'
3725885a 9427 lt_prog_compiler_wl=''
ce2cded5 9428 ;;
3725885a
RW
9429 *Sun\ C*)
9430 # Sun C 5.9
ce2cded5
L
9431 lt_prog_compiler_pic='-KPIC'
9432 lt_prog_compiler_static='-Bstatic'
3725885a 9433 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9434 ;;
9435 esac
9436 ;;
9437 esac
9438 ;;
d7040cdb 9439
ce2cded5
L
9440 newsos6)
9441 lt_prog_compiler_pic='-KPIC'
9442 lt_prog_compiler_static='-Bstatic'
9443 ;;
d7040cdb 9444
ce2cded5
L
9445 *nto* | *qnx*)
9446 # QNX uses GNU C++, but need to define -shared option too, otherwise
9447 # it will coredump.
9448 lt_prog_compiler_pic='-fPIC -shared'
9449 ;;
d7040cdb 9450
ce2cded5
L
9451 osf3* | osf4* | osf5*)
9452 lt_prog_compiler_wl='-Wl,'
9453 # All OSF/1 code is PIC.
9454 lt_prog_compiler_static='-non_shared'
9455 ;;
d7040cdb 9456
ce2cded5
L
9457 rdos*)
9458 lt_prog_compiler_static='-non_shared'
9459 ;;
d7040cdb 9460
ce2cded5
L
9461 solaris*)
9462 lt_prog_compiler_pic='-KPIC'
9463 lt_prog_compiler_static='-Bstatic'
9464 case $cc_basename in
9465 f77* | f90* | f95*)
9466 lt_prog_compiler_wl='-Qoption ld ';;
9467 *)
9468 lt_prog_compiler_wl='-Wl,';;
9469 esac
9470 ;;
d7040cdb 9471
ce2cded5
L
9472 sunos4*)
9473 lt_prog_compiler_wl='-Qoption ld '
9474 lt_prog_compiler_pic='-PIC'
9475 lt_prog_compiler_static='-Bstatic'
9476 ;;
d7040cdb 9477
ce2cded5
L
9478 sysv4 | sysv4.2uw2* | sysv4.3*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-KPIC'
9481 lt_prog_compiler_static='-Bstatic'
9482 ;;
d7040cdb 9483
ce2cded5
L
9484 sysv4*MP*)
9485 if test -d /usr/nec ;then
9486 lt_prog_compiler_pic='-Kconform_pic'
9487 lt_prog_compiler_static='-Bstatic'
9488 fi
9489 ;;
d7040cdb 9490
ce2cded5
L
9491 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9492 lt_prog_compiler_wl='-Wl,'
9493 lt_prog_compiler_pic='-KPIC'
9494 lt_prog_compiler_static='-Bstatic'
9495 ;;
d7040cdb 9496
ce2cded5
L
9497 unicos*)
9498 lt_prog_compiler_wl='-Wl,'
9499 lt_prog_compiler_can_build_shared=no
9500 ;;
d7040cdb 9501
ce2cded5
L
9502 uts4*)
9503 lt_prog_compiler_pic='-pic'
9504 lt_prog_compiler_static='-Bstatic'
9505 ;;
d7040cdb 9506
ce2cded5
L
9507 *)
9508 lt_prog_compiler_can_build_shared=no
9509 ;;
9510 esac
9511 fi
d7040cdb 9512
ce2cded5
L
9513case $host_os in
9514 # For platforms which do not support PIC, -DPIC is meaningless:
9515 *djgpp*)
9516 lt_prog_compiler_pic=
9517 ;;
9518 *)
9519 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9520 ;;
9521esac
81ecdfbb
RW
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9523$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9524
9525
9526
9527
9528
9529
ce2cded5
L
9530#
9531# Check to make sure the PIC flag actually works.
9532#
9533if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9535$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9536if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
ce2cded5 9538else
b214d478 9539 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9540 ac_outfile=conftest.$ac_objext
9541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9542 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9543 # Insert the option either (1) after the last *FLAGS variable, or
9544 # (2) before a word containing "conftest.", or (3) at the end.
9545 # Note that $ac_compile itself does not contain backslashes and begins
9546 # with a dollar sign (not a hyphen), so the echo should work correctly.
9547 # The option is referenced via a variable to avoid confusing sed.
9548 lt_compile=`echo "$ac_compile" | $SED \
9549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9551 -e 's:$: $lt_compiler_flag:'`
3725885a 9552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9553 (eval "$lt_compile" 2>conftest.err)
9554 ac_status=$?
9555 cat conftest.err >&5
3725885a 9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9557 if (exit $ac_status) && test -s "$ac_outfile"; then
9558 # The compiler can only warn and ignore the option if not recognized
9559 # So say no if there are warnings other than the usual output.
3725885a 9560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9563 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9564 fi
9565 fi
9566 $RM conftest*
d7040cdb 9567
ce2cded5 9568fi
81ecdfbb
RW
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9570$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9571
b214d478 9572if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9573 case $lt_prog_compiler_pic in
9574 "" | " "*) ;;
9575 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9576 esac
9577else
9578 lt_prog_compiler_pic=
9579 lt_prog_compiler_can_build_shared=no
9580fi
9581
9582fi
d7040cdb
SE
9583
9584
9585
9586
9587
9588
ce2cded5
L
9589#
9590# Check to make sure the static flag actually works.
9591#
9592wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9594$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9595if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
ce2cded5 9597else
b214d478 9598 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9599 save_LDFLAGS="$LDFLAGS"
9600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9601 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9603 # The linker can only warn and ignore the option if not recognized
9604 # So say no if there are warnings
9605 if test -s conftest.err; then
9606 # Append any errors to the config.log.
9607 cat conftest.err 1>&5
3725885a 9608 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9610 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9611 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9612 fi
9613 else
b214d478 9614 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9615 fi
9616 fi
b214d478 9617 $RM -r conftest*
ce2cded5 9618 LDFLAGS="$save_LDFLAGS"
d7040cdb 9619
ce2cded5 9620fi
81ecdfbb
RW
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9622$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9623
b214d478 9624if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9625 :
9626else
9627 lt_prog_compiler_static=
9628fi
d7040cdb
SE
9629
9630
9631
9632
9633
9634
9635
81ecdfbb
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9637$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9638if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
ce2cded5
L
9640else
9641 lt_cv_prog_compiler_c_o=no
9642 $RM -r conftest 2>/dev/null
9643 mkdir conftest
9644 cd conftest
9645 mkdir out
9646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9647
ce2cded5
L
9648 lt_compiler_flag="-o out/conftest2.$ac_objext"
9649 # Insert the option either (1) after the last *FLAGS variable, or
9650 # (2) before a word containing "conftest.", or (3) at the end.
9651 # Note that $ac_compile itself does not contain backslashes and begins
9652 # with a dollar sign (not a hyphen), so the echo should work correctly.
9653 lt_compile=`echo "$ac_compile" | $SED \
9654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9656 -e 's:$: $lt_compiler_flag:'`
3725885a 9657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9658 (eval "$lt_compile" 2>out/conftest.err)
9659 ac_status=$?
9660 cat out/conftest.err >&5
3725885a 9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9663 then
9664 # The compiler can only warn and ignore the option if not recognized
9665 # So say no if there are warnings
3725885a 9666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9669 lt_cv_prog_compiler_c_o=yes
9670 fi
9671 fi
9672 chmod u+w . 2>&5
9673 $RM conftest*
9674 # SGI C++ compiler will create directory out/ii_files/ for
9675 # template instantiation
9676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9677 $RM out/* && rmdir out
9678 cd ..
9679 $RM -r conftest
9680 $RM conftest*
d7040cdb 9681
ce2cded5 9682fi
81ecdfbb
RW
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9684$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9685
9686
9687
9688
9689
9690
81ecdfbb
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9692$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9693if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
ce2cded5
L
9695else
9696 lt_cv_prog_compiler_c_o=no
9697 $RM -r conftest 2>/dev/null
9698 mkdir conftest
9699 cd conftest
9700 mkdir out
9701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9702
ce2cded5
L
9703 lt_compiler_flag="-o out/conftest2.$ac_objext"
9704 # Insert the option either (1) after the last *FLAGS variable, or
9705 # (2) before a word containing "conftest.", or (3) at the end.
9706 # Note that $ac_compile itself does not contain backslashes and begins
9707 # with a dollar sign (not a hyphen), so the echo should work correctly.
9708 lt_compile=`echo "$ac_compile" | $SED \
9709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9711 -e 's:$: $lt_compiler_flag:'`
3725885a 9712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9713 (eval "$lt_compile" 2>out/conftest.err)
9714 ac_status=$?
9715 cat out/conftest.err >&5
3725885a 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9718 then
9719 # The compiler can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
3725885a 9721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9724 lt_cv_prog_compiler_c_o=yes
9725 fi
9726 fi
9727 chmod u+w . 2>&5
9728 $RM conftest*
9729 # SGI C++ compiler will create directory out/ii_files/ for
9730 # template instantiation
9731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9732 $RM out/* && rmdir out
9733 cd ..
9734 $RM -r conftest
9735 $RM conftest*
9736
9737fi
81ecdfbb
RW
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9739$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9740
9741
9742
9743
9744hard_links="nottested"
9745if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9746 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9748$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9749 hard_links=yes
9750 $RM conftest*
9751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9752 touch conftest.a
9753 ln conftest.a conftest.b 2>&5 || hard_links=no
9754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9756$as_echo "$hard_links" >&6; }
ce2cded5 9757 if test "$hard_links" = no; then
81ecdfbb
RW
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9759$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9760 need_locks=warn
d7040cdb 9761 fi
d7040cdb 9762else
ce2cded5 9763 need_locks=no
d7040cdb 9764fi
d7040cdb 9765
d7040cdb 9766
d7040cdb 9767
d7040cdb 9768
d7040cdb 9769
d7040cdb 9770
81ecdfbb
RW
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9772$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9773
ce2cded5
L
9774 runpath_var=
9775 allow_undefined_flag=
9776 always_export_symbols=no
9777 archive_cmds=
9778 archive_expsym_cmds=
9779 compiler_needs_object=no
9780 enable_shared_with_static_runtimes=no
9781 export_dynamic_flag_spec=
9782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9783 hardcode_automatic=no
9784 hardcode_direct=no
9785 hardcode_direct_absolute=no
9786 hardcode_libdir_flag_spec=
9787 hardcode_libdir_flag_spec_ld=
9788 hardcode_libdir_separator=
9789 hardcode_minus_L=no
9790 hardcode_shlibpath_var=unsupported
9791 inherit_rpath=no
9792 link_all_deplibs=unknown
9793 module_cmds=
9794 module_expsym_cmds=
9795 old_archive_from_new_cmds=
9796 old_archive_from_expsyms_cmds=
9797 thread_safe_flag_spec=
9798 whole_archive_flag_spec=
9799 # include_expsyms should be a list of space-separated symbols to be *always*
9800 # included in the symbol list
9801 include_expsyms=
9802 # exclude_expsyms can be an extended regexp of symbols to exclude
9803 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9804 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9805 # as well as any symbol that contains `d'.
b214d478 9806 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9807 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9808 # platforms (ab)use it in PIC code, but their linkers get confused if
9809 # the symbol is explicitly referenced. Since portable code cannot
9810 # rely on this symbol name, it's probably fine to never include it in
9811 # preloaded symbol tables.
b214d478 9812 # Exclude shared library initialization/finalization symbols.
ce2cded5 9813 extract_expsyms_cmds=
d7040cdb 9814
ce2cded5 9815 case $host_os in
b214d478 9816 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9817 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9818 # When not using gcc, we currently assume that we are using
9819 # Microsoft Visual C++.
9820 if test "$GCC" != yes; then
9821 with_gnu_ld=no
9822 fi
d7040cdb 9823 ;;
ce2cded5
L
9824 interix*)
9825 # we just hope/assume this is gcc and not c89 (= MSVC++)
9826 with_gnu_ld=yes
9827 ;;
9828 openbsd*)
9829 with_gnu_ld=no
d7040cdb
SE
9830 ;;
9831 esac
d7040cdb 9832
ce2cded5 9833 ld_shlibs=yes
3725885a
RW
9834
9835 # On some targets, GNU ld is compatible enough with the native linker
9836 # that we're better off using the native interface for both.
9837 lt_use_gnu_ld_interface=no
ce2cded5 9838 if test "$with_gnu_ld" = yes; then
3725885a
RW
9839 case $host_os in
9840 aix*)
9841 # The AIX port of GNU ld has always aspired to compatibility
9842 # with the native linker. However, as the warning in the GNU ld
9843 # block says, versions before 2.19.5* couldn't really create working
9844 # shared libraries, regardless of the interface used.
9845 case `$LD -v 2>&1` in
9846 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9847 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9848 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9849 *)
9850 lt_use_gnu_ld_interface=yes
9851 ;;
9852 esac
9853 ;;
9854 *)
9855 lt_use_gnu_ld_interface=yes
9856 ;;
9857 esac
9858 fi
9859
9860 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9861 # If archive_cmds runs LD, not CC, wlarc should be empty
9862 wlarc='${wl}'
d7040cdb 9863
ce2cded5
L
9864 # Set some defaults for GNU ld with shared library support. These
9865 # are reset later if shared libraries are not supported. Putting them
9866 # here allows them to be overridden if necessary.
9867 runpath_var=LD_RUN_PATH
9868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9869 export_dynamic_flag_spec='${wl}--export-dynamic'
9870 # ancient GNU ld didn't support --whole-archive et. al.
9871 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9872 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9873 else
9874 whole_archive_flag_spec=
9875 fi
9876 supports_anon_versioning=no
9877 case `$LD -v 2>&1` in
3725885a 9878 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9879 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9880 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9881 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9882 *\ 2.11.*) ;; # other 2.11 versions
9883 *) supports_anon_versioning=yes ;;
9884 esac
d7040cdb 9885
ce2cded5
L
9886 # See if GNU ld supports shared libraries.
9887 case $host_os in
50e7d84b 9888 aix[3-9]*)
ce2cded5
L
9889 # On AIX/PPC, the GNU linker is very broken
9890 if test "$host_cpu" != ia64; then
9891 ld_shlibs=no
9892 cat <<_LT_EOF 1>&2
d7040cdb 9893
3725885a 9894*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9895*** to be unable to reliably create shared libraries on AIX.
9896*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9897*** really care for shared libraries, you may want to install binutils
9898*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9899*** You will then need to restart the configuration process.
d7040cdb 9900
ce2cded5
L
9901_LT_EOF
9902 fi
d7040cdb 9903 ;;
d7040cdb 9904
ce2cded5 9905 amigaos*)
b214d478
SE
9906 case $host_cpu in
9907 powerpc)
9908 # see comment about AmigaOS4 .so support
9909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910 archive_expsym_cmds=''
9911 ;;
9912 m68k)
9913 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)'
9914 hardcode_libdir_flag_spec='-L$libdir'
9915 hardcode_minus_L=yes
9916 ;;
9917 esac
ce2cded5 9918 ;;
d7040cdb 9919
ce2cded5
L
9920 beos*)
9921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922 allow_undefined_flag=unsupported
9923 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9924 # support --undefined. This deserves some investigation. FIXME
9925 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 else
9927 ld_shlibs=no
9928 fi
9929 ;;
d7040cdb 9930
b214d478 9931 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9932 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9933 # as there is no search path for DLLs.
9934 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9935 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9936 allow_undefined_flag=unsupported
9937 always_export_symbols=no
9938 enable_shared_with_static_runtimes=yes
9939 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9940
9941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9943 # If the export-symbols file already is a .def file (1st line
9944 # is EXPORTS), use it as is; otherwise, prepend...
9945 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9946 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9947 else
ce2cded5
L
9948 echo EXPORTS > $output_objdir/$soname.def;
9949 cat $export_symbols >> $output_objdir/$soname.def;
9950 fi~
9951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
d7040cdb 9956
3725885a
RW
9957 haiku*)
9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 link_all_deplibs=yes
9960 ;;
9961
ce2cded5
L
9962 interix[3-9]*)
9963 hardcode_direct=no
9964 hardcode_shlibpath_var=no
9965 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9966 export_dynamic_flag_spec='${wl}-E'
9967 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9968 # Instead, shared libraries are loaded at an image base (0x10000000 by
9969 # default) and relocated if they conflict, which is a slow very memory
9970 # consuming and fragmenting process. To avoid this, we pick a random,
9971 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9972 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9974 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'
9975 ;;
d7040cdb 9976
58e24671 9977 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9978 tmp_diet=no
9979 if test "$host_os" = linux-dietlibc; then
9980 case $cc_basename in
9981 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9982 esac
9983 fi
9984 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9985 && test "$tmp_diet" = no
9986 then
9987 tmp_addflag=
b214d478 9988 tmp_sharedflag='-shared'
ce2cded5
L
9989 case $cc_basename,$host_cpu in
9990 pgcc*) # Portland Group C compiler
3725885a 9991 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
9992 tmp_addflag=' $pic_flag'
9993 ;;
3725885a
RW
9994 pgf77* | pgf90* | pgf95* | pgfortran*)
9995 # Portland Group f77 and f90 compilers
9996 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
9997 tmp_addflag=' $pic_flag -Mnomain' ;;
9998 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9999 tmp_addflag=' -i_dynamic' ;;
10000 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10001 tmp_addflag=' -i_dynamic -nofor_main' ;;
10002 ifc* | ifort*) # Intel Fortran compiler
10003 tmp_addflag=' -nofor_main' ;;
b214d478
SE
10004 lf95*) # Lahey Fortran 8.1
10005 whole_archive_flag_spec=
10006 tmp_sharedflag='--shared' ;;
3725885a 10007 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
10008 tmp_sharedflag='-qmkshrobj'
10009 tmp_addflag= ;;
3725885a
RW
10010 nvcc*) # Cuda Compiler Driver 2.2
10011 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'
10012 compiler_needs_object=yes
10013 ;;
ce2cded5
L
10014 esac
10015 case `$CC -V 2>&1 | sed 5q` in
10016 *Sun\ C*) # Sun C 5.9
3725885a 10017 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
10018 compiler_needs_object=yes
10019 tmp_sharedflag='-G' ;;
10020 *Sun\ F*) # Sun Fortran 8.3
10021 tmp_sharedflag='-G' ;;
ce2cded5
L
10022 esac
10023 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 10024
ce2cded5
L
10025 if test "x$supports_anon_versioning" = xyes; then
10026 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10028 echo "local: *; };" >> $output_objdir/$libname.ver~
10029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10030 fi
b214d478
SE
10031
10032 case $cc_basename in
3725885a 10033 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
10034 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10035 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10036 hardcode_libdir_flag_spec=
10037 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10038 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10039 if test "x$supports_anon_versioning" = xyes; then
10040 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10042 echo "local: *; };" >> $output_objdir/$libname.ver~
10043 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10044 fi
10045 ;;
10046 esac
ce2cded5
L
10047 else
10048 ld_shlibs=no
10049 fi
10050 ;;
d7040cdb 10051
ce2cded5
L
10052 netbsd*)
10053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10054 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10055 wlarc=
10056 else
10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10059 fi
10060 ;;
10061
10062 solaris*)
10063 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10064 ld_shlibs=no
10065 cat <<_LT_EOF 1>&2
10066
10067*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10068*** create shared libraries on Solaris systems. Therefore, libtool
10069*** is disabling shared libraries support. We urge you to upgrade GNU
10070*** binutils to release 2.9.1 or newer. Another option is to modify
10071*** your PATH or compiler configuration so that the native linker is
10072*** used, and then restart.
10073
10074_LT_EOF
10075 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10078 else
10079 ld_shlibs=no
10080 fi
10081 ;;
10082
10083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10084 case `$LD -v 2>&1` in
10085 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10086 ld_shlibs=no
10087 cat <<_LT_EOF 1>&2
10088
10089*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10090*** reliably create shared libraries on SCO systems. Therefore, libtool
10091*** is disabling shared libraries support. We urge you to upgrade GNU
10092*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10093*** your PATH or compiler configuration so that the native linker is
10094*** used, and then restart.
10095
10096_LT_EOF
10097 ;;
10098 *)
10099 # For security reasons, it is highly recommended that you always
10100 # use absolute paths for naming shared libraries, and exclude the
10101 # DT_RUNPATH tag from executables and libraries. But doing so
10102 # requires that you compile everything twice, which is a pain.
10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10107 else
10108 ld_shlibs=no
10109 fi
10110 ;;
10111 esac
10112 ;;
10113
10114 sunos4*)
10115 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10116 wlarc=
10117 hardcode_direct=yes
10118 hardcode_shlibpath_var=no
10119 ;;
10120
10121 *)
10122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10125 else
10126 ld_shlibs=no
10127 fi
10128 ;;
10129 esac
10130
10131 if test "$ld_shlibs" = no; then
10132 runpath_var=
10133 hardcode_libdir_flag_spec=
10134 export_dynamic_flag_spec=
10135 whole_archive_flag_spec=
10136 fi
10137 else
10138 # PORTME fill in a description of your system's linker (not GNU ld)
10139 case $host_os in
10140 aix3*)
10141 allow_undefined_flag=unsupported
10142 always_export_symbols=yes
10143 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'
10144 # Note: this linker hardcodes the directories in LIBPATH if there
10145 # are no directories specified by -L.
10146 hardcode_minus_L=yes
10147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10148 # Neither direct hardcoding nor static linking is supported with a
10149 # broken collect2.
10150 hardcode_direct=unsupported
10151 fi
10152 ;;
10153
50e7d84b 10154 aix[4-9]*)
ce2cded5
L
10155 if test "$host_cpu" = ia64; then
10156 # On IA64, the linker does run time linking by default, so we don't
10157 # have to do anything special.
10158 aix_use_runtimelinking=no
10159 exp_sym_flag='-Bexport'
10160 no_entry_flag=""
10161 else
10162 # If we're using GNU nm, then we don't want the "-C" option.
10163 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10164 # Also, AIX nm treats weak defined symbols like other global
10165 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10166 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10167 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
10168 else
10169 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'
10170 fi
10171 aix_use_runtimelinking=no
10172
10173 # Test if we are trying to use run time linking or normal
10174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10175 # need to do runtime linking.
50e7d84b 10176 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10177 for ld_flag in $LDFLAGS; do
10178 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10179 aix_use_runtimelinking=yes
10180 break
10181 fi
10182 done
10183 ;;
10184 esac
10185
10186 exp_sym_flag='-bexport'
10187 no_entry_flag='-bnoentry'
10188 fi
10189
10190 # When large executables or shared objects are built, AIX ld can
10191 # have problems creating the table of contents. If linking a library
10192 # or program results in "error TOC overflow" add -mminimal-toc to
10193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10195
10196 archive_cmds=''
10197 hardcode_direct=yes
10198 hardcode_direct_absolute=yes
10199 hardcode_libdir_separator=':'
10200 link_all_deplibs=yes
10201 file_list_spec='${wl}-f,'
10202
10203 if test "$GCC" = yes; then
10204 case $host_os in aix4.[012]|aix4.[012].*)
10205 # We only want to do this on AIX 4.2 and lower, the check
10206 # below for broken collect2 doesn't work under 4.3+
10207 collect2name=`${CC} -print-prog-name=collect2`
10208 if test -f "$collect2name" &&
10209 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10210 then
10211 # We have reworked collect2
10212 :
10213 else
10214 # We have old collect2
10215 hardcode_direct=unsupported
10216 # It fails to find uninstalled libraries when the uninstalled
10217 # path is not listed in the libpath. Setting hardcode_minus_L
10218 # to unsupported forces relinking
10219 hardcode_minus_L=yes
10220 hardcode_libdir_flag_spec='-L$libdir'
10221 hardcode_libdir_separator=
10222 fi
10223 ;;
10224 esac
10225 shared_flag='-shared'
10226 if test "$aix_use_runtimelinking" = yes; then
10227 shared_flag="$shared_flag "'${wl}-G'
10228 fi
10229 else
10230 # not using gcc
10231 if test "$host_cpu" = ia64; then
10232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10233 # chokes on -Wl,-G. The following line is correct:
10234 shared_flag='-G'
10235 else
10236 if test "$aix_use_runtimelinking" = yes; then
10237 shared_flag='${wl}-G'
10238 else
10239 shared_flag='${wl}-bM:SRE'
10240 fi
10241 fi
10242 fi
10243
b214d478 10244 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10245 # It seems that -bexpall does not export symbols beginning with
10246 # underscore (_), so it is better to generate a list of symbols to export.
10247 always_export_symbols=yes
10248 if test "$aix_use_runtimelinking" = yes; then
10249 # Warning - without using the other runtime loading flags (-brtl),
10250 # -berok will link without error, but may produce a broken library.
10251 allow_undefined_flag='-berok'
10252 # Determine the default libpath from the value encoded in an
10253 # empty executable.
81ecdfbb 10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10255/* end confdefs.h. */
10256
10257int
10258main ()
10259{
10260
10261 ;
10262 return 0;
10263}
10264_ACEOF
81ecdfbb 10265if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10266
ce2cded5
L
10267lt_aix_libpath_sed='
10268 /Import File Strings/,/^$/ {
10269 /^0/ {
10270 s/^0 *\(.*\)$/\1/
10271 p
10272 }
10273 }'
10274aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10275# Check for a 64-bit object if we didn't find anything.
10276if test -z "$aix_libpath"; then
10277 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10278fi
d7040cdb 10279fi
81ecdfbb
RW
10280rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10282if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10283
ce2cded5 10284 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10285 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
10286 else
10287 if test "$host_cpu" = ia64; then
10288 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10289 allow_undefined_flag="-z nodefs"
10290 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"
10291 else
10292 # Determine the default libpath from the value encoded in an
10293 # empty executable.
81ecdfbb 10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10295/* end confdefs.h. */
d7040cdb 10296
ce2cded5
L
10297int
10298main ()
10299{
d7040cdb 10300
ce2cded5
L
10301 ;
10302 return 0;
10303}
10304_ACEOF
81ecdfbb 10305if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10306
ce2cded5
L
10307lt_aix_libpath_sed='
10308 /Import File Strings/,/^$/ {
10309 /^0/ {
10310 s/^0 *\(.*\)$/\1/
10311 p
10312 }
10313 }'
10314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10315# Check for a 64-bit object if we didn't find anything.
10316if test -z "$aix_libpath"; then
10317 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10318fi
ce2cded5 10319fi
81ecdfbb
RW
10320rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10323
ce2cded5
L
10324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10325 # Warning - without using the other run time loading flags,
10326 # -berok will link without error, but may produce a broken library.
10327 no_undefined_flag=' ${wl}-bernotok'
10328 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10329 if test "$with_gnu_ld" = yes; then
10330 # We only use this code for GNU lds that support --whole-archive.
10331 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10332 else
10333 # Exported symbols can be pulled into shared objects from archives
10334 whole_archive_flag_spec='$convenience'
10335 fi
ce2cded5
L
10336 archive_cmds_need_lc=yes
10337 # This is similar to how AIX traditionally builds its shared libraries.
10338 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'
10339 fi
10340 fi
10341 ;;
d7040cdb 10342
ce2cded5 10343 amigaos*)
b214d478
SE
10344 case $host_cpu in
10345 powerpc)
10346 # see comment about AmigaOS4 .so support
10347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10348 archive_expsym_cmds=''
10349 ;;
10350 m68k)
10351 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)'
10352 hardcode_libdir_flag_spec='-L$libdir'
10353 hardcode_minus_L=yes
10354 ;;
10355 esac
ce2cded5
L
10356 ;;
10357
10358 bsdi[45]*)
10359 export_dynamic_flag_spec=-rdynamic
10360 ;;
10361
b214d478 10362 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10363 # When not using gcc, we currently assume that we are using
10364 # Microsoft Visual C++.
10365 # hardcode_libdir_flag_spec is actually meaningless, as there is
10366 # no search path for DLLs.
10367 hardcode_libdir_flag_spec=' '
10368 allow_undefined_flag=unsupported
10369 # Tell ltmain to make .lib files, not .a files.
10370 libext=lib
10371 # Tell ltmain to make .dll files, not .so files.
10372 shrext_cmds=".dll"
10373 # FIXME: Setting linknames here is a bad hack.
3725885a 10374 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10375 # The linker will automatically build a .lib file if we build a DLL.
10376 old_archive_from_new_cmds='true'
10377 # FIXME: Should let the user specify the lib program.
10378 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10379 fix_srcfile_path='`cygpath -w "$srcfile"`'
10380 enable_shared_with_static_runtimes=yes
10381 ;;
10382
10383 darwin* | rhapsody*)
d7040cdb 10384
b214d478
SE
10385
10386 archive_cmds_need_lc=no
10387 hardcode_direct=no
10388 hardcode_automatic=yes
10389 hardcode_shlibpath_var=unsupported
3725885a
RW
10390 if test "$lt_cv_ld_force_load" = "yes"; then
10391 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\"`'
10392 else
10393 whole_archive_flag_spec=''
10394 fi
b214d478
SE
10395 link_all_deplibs=yes
10396 allow_undefined_flag="$_lt_dar_allow_undefined"
10397 case $cc_basename in
10398 ifort*) _lt_dar_can_shared=yes ;;
10399 *) _lt_dar_can_shared=$GCC ;;
10400 esac
10401 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10402 output_verbose_link_cmd=func_echo_all
b214d478
SE
10403 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10404 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10405 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}"
10406 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}"
10407
10408 else
10409 ld_shlibs=no
10410 fi
10411
ce2cded5 10412 ;;
d7040cdb 10413
ce2cded5
L
10414 dgux*)
10415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_shlibpath_var=no
10418 ;;
d7040cdb 10419
ce2cded5
L
10420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10421 # support. Future versions do this automatically, but an explicit c++rt0.o
10422 # does not break anything, and helps significantly (at the cost of a little
10423 # extra space).
10424 freebsd2.2*)
10425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10426 hardcode_libdir_flag_spec='-R$libdir'
10427 hardcode_direct=yes
10428 hardcode_shlibpath_var=no
d7040cdb 10429 ;;
d7040cdb 10430
ce2cded5 10431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 10432 freebsd2.*)
ce2cded5
L
10433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_direct=yes
10435 hardcode_minus_L=yes
10436 hardcode_shlibpath_var=no
10437 ;;
d7040cdb 10438
ce2cded5
L
10439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10440 freebsd* | dragonfly*)
10441 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10442 hardcode_libdir_flag_spec='-R$libdir'
10443 hardcode_direct=yes
10444 hardcode_shlibpath_var=no
10445 ;;
d7040cdb 10446
ce2cded5
L
10447 hpux9*)
10448 if test "$GCC" = yes; then
10449 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'
10450 else
10451 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'
10452 fi
10453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10454 hardcode_libdir_separator=:
10455 hardcode_direct=yes
d7040cdb 10456
ce2cded5
L
10457 # hardcode_minus_L: Not really in the search PATH,
10458 # but as the default location of the library.
10459 hardcode_minus_L=yes
10460 export_dynamic_flag_spec='${wl}-E'
10461 ;;
d7040cdb 10462
ce2cded5 10463 hpux10*)
3725885a 10464 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10465 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10466 else
10467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10468 fi
10469 if test "$with_gnu_ld" = no; then
10470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10471 hardcode_libdir_flag_spec_ld='+b $libdir'
10472 hardcode_libdir_separator=:
10473 hardcode_direct=yes
10474 hardcode_direct_absolute=yes
10475 export_dynamic_flag_spec='${wl}-E'
10476 # hardcode_minus_L: Not really in the search PATH,
10477 # but as the default location of the library.
10478 hardcode_minus_L=yes
10479 fi
10480 ;;
d7040cdb 10481
ce2cded5 10482 hpux11*)
3725885a 10483 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10484 case $host_cpu in
10485 hppa*64*)
10486 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10487 ;;
10488 ia64*)
b214d478 10489 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10490 ;;
10491 *)
10492 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10493 ;;
10494 esac
10495 else
10496 case $host_cpu in
10497 hppa*64*)
10498 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10499 ;;
10500 ia64*)
10501 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10502 ;;
10503 *)
3725885a
RW
10504
10505 # Older versions of the 11.00 compiler do not understand -b yet
10506 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10508$as_echo_n "checking if $CC understands -b... " >&6; }
10509if test "${lt_cv_prog_compiler__b+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10511else
10512 lt_cv_prog_compiler__b=no
10513 save_LDFLAGS="$LDFLAGS"
10514 LDFLAGS="$LDFLAGS -b"
10515 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10517 # The linker can only warn and ignore the option if not recognized
10518 # So say no if there are warnings
10519 if test -s conftest.err; then
10520 # Append any errors to the config.log.
10521 cat conftest.err 1>&5
10522 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10524 if diff conftest.exp conftest.er2 >/dev/null; then
10525 lt_cv_prog_compiler__b=yes
10526 fi
10527 else
10528 lt_cv_prog_compiler__b=yes
10529 fi
10530 fi
10531 $RM -r conftest*
10532 LDFLAGS="$save_LDFLAGS"
10533
10534fi
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10536$as_echo "$lt_cv_prog_compiler__b" >&6; }
10537
10538if test x"$lt_cv_prog_compiler__b" = xyes; then
10539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10540else
10541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10542fi
10543
ce2cded5
L
10544 ;;
10545 esac
10546 fi
10547 if test "$with_gnu_ld" = no; then
10548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10549 hardcode_libdir_separator=:
d7040cdb 10550
ce2cded5
L
10551 case $host_cpu in
10552 hppa*64*|ia64*)
10553 hardcode_direct=no
10554 hardcode_shlibpath_var=no
10555 ;;
10556 *)
10557 hardcode_direct=yes
10558 hardcode_direct_absolute=yes
10559 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10560
ce2cded5
L
10561 # hardcode_minus_L: Not really in the search PATH,
10562 # but as the default location of the library.
10563 hardcode_minus_L=yes
10564 ;;
10565 esac
10566 fi
10567 ;;
d7040cdb 10568
ce2cded5
L
10569 irix5* | irix6* | nonstopux*)
10570 if test "$GCC" = yes; then
3725885a 10571 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
10572 # Try to use the -exported_symbol ld option, if it does not
10573 # work, assume that -exports_file does not work either and
10574 # implicitly export all symbols.
10575 save_LDFLAGS="$LDFLAGS"
10576 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578/* end confdefs.h. */
ce2cded5
L
10579int foo(void) {}
10580_ACEOF
81ecdfbb 10581if ac_fn_c_try_link "$LINENO"; then :
3725885a 10582 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 10583
ce2cded5 10584fi
81ecdfbb
RW
10585rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10587 LDFLAGS="$save_LDFLAGS"
10588 else
3725885a
RW
10589 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'
10590 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
10591 fi
10592 archive_cmds_need_lc='no'
10593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10594 hardcode_libdir_separator=:
10595 inherit_rpath=yes
10596 link_all_deplibs=yes
10597 ;;
d7040cdb 10598
ce2cded5
L
10599 netbsd*)
10600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10602 else
10603 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10604 fi
10605 hardcode_libdir_flag_spec='-R$libdir'
10606 hardcode_direct=yes
10607 hardcode_shlibpath_var=no
10608 ;;
d7040cdb 10609
ce2cded5
L
10610 newsos6)
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_direct=yes
10613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614 hardcode_libdir_separator=:
10615 hardcode_shlibpath_var=no
10616 ;;
d7040cdb 10617
ce2cded5
L
10618 *nto* | *qnx*)
10619 ;;
d7040cdb 10620
ce2cded5 10621 openbsd*)
b214d478
SE
10622 if test -f /usr/libexec/ld.so; then
10623 hardcode_direct=yes
10624 hardcode_shlibpath_var=no
10625 hardcode_direct_absolute=yes
10626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10628 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10630 export_dynamic_flag_spec='${wl}-E'
10631 else
10632 case $host_os in
10633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10635 hardcode_libdir_flag_spec='-R$libdir'
10636 ;;
10637 *)
10638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10640 ;;
10641 esac
10642 fi
10643 else
10644 ld_shlibs=no
ce2cded5
L
10645 fi
10646 ;;
d7040cdb 10647
ce2cded5
L
10648 os2*)
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 hardcode_minus_L=yes
10651 allow_undefined_flag=unsupported
3725885a 10652 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
10653 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10654 ;;
d7040cdb 10655
ce2cded5
L
10656 osf3*)
10657 if test "$GCC" = yes; then
10658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10659 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
10660 else
10661 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10662 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
10663 fi
10664 archive_cmds_need_lc='no'
10665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10666 hardcode_libdir_separator=:
10667 ;;
d7040cdb 10668
ce2cded5
L
10669 osf4* | osf5*) # as osf3* with the addition of -msym flag
10670 if test "$GCC" = yes; then
10671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10672 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
10673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674 else
10675 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10676 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 10677 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 10678 $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 10679
ce2cded5
L
10680 # Both c and cxx compiler support -rpath directly
10681 hardcode_libdir_flag_spec='-rpath $libdir'
10682 fi
10683 archive_cmds_need_lc='no'
10684 hardcode_libdir_separator=:
10685 ;;
d7040cdb 10686
ce2cded5
L
10687 solaris*)
10688 no_undefined_flag=' -z defs'
10689 if test "$GCC" = yes; then
10690 wlarc='${wl}'
10691 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10693 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10694 else
10695 case `$CC -V 2>&1` in
10696 *"Compilers 5.0"*)
10697 wlarc=''
10698 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10701 ;;
10702 *)
10703 wlarc='${wl}'
10704 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10706 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10707 ;;
10708 esac
10709 fi
10710 hardcode_libdir_flag_spec='-R$libdir'
10711 hardcode_shlibpath_var=no
10712 case $host_os in
10713 solaris2.[0-5] | solaris2.[0-5].*) ;;
10714 *)
10715 # The compiler driver will combine and reorder linker options,
10716 # but understands `-z linker_flag'. GCC discards it without `$wl',
10717 # but is careful enough not to reorder.
10718 # Supported since Solaris 2.6 (maybe 2.5.1?)
10719 if test "$GCC" = yes; then
10720 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10721 else
10722 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10723 fi
10724 ;;
10725 esac
10726 link_all_deplibs=yes
10727 ;;
d7040cdb 10728
ce2cded5
L
10729 sunos4*)
10730 if test "x$host_vendor" = xsequent; then
10731 # Use $CC to link under sequent, because it throws in some extra .o
10732 # files that make .init and .fini sections work.
10733 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10736 fi
10737 hardcode_libdir_flag_spec='-L$libdir'
10738 hardcode_direct=yes
10739 hardcode_minus_L=yes
10740 hardcode_shlibpath_var=no
10741 ;;
d7040cdb 10742
ce2cded5
L
10743 sysv4)
10744 case $host_vendor in
10745 sni)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct=yes # is this really true???
10748 ;;
10749 siemens)
10750 ## LD is ld it makes a PLAMLIB
10751 ## CC just makes a GrossModule.
10752 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10753 reload_cmds='$CC -r -o $output$reload_objs'
10754 hardcode_direct=no
10755 ;;
10756 motorola)
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10759 ;;
10760 esac
10761 runpath_var='LD_RUN_PATH'
10762 hardcode_shlibpath_var=no
10763 ;;
d7040cdb 10764
ce2cded5
L
10765 sysv4.3*)
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_shlibpath_var=no
10768 export_dynamic_flag_spec='-Bexport'
10769 ;;
d7040cdb 10770
ce2cded5
L
10771 sysv4*MP*)
10772 if test -d /usr/nec; then
10773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10774 hardcode_shlibpath_var=no
10775 runpath_var=LD_RUN_PATH
10776 hardcode_runpath_var=yes
10777 ld_shlibs=yes
10778 fi
10779 ;;
d7040cdb 10780
ce2cded5
L
10781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10782 no_undefined_flag='${wl}-z,text'
10783 archive_cmds_need_lc=no
10784 hardcode_shlibpath_var=no
10785 runpath_var='LD_RUN_PATH'
d7040cdb 10786
ce2cded5
L
10787 if test "$GCC" = yes; then
10788 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 else
10791 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793 fi
10794 ;;
d7040cdb 10795
ce2cded5
L
10796 sysv5* | sco3.2v5* | sco5v6*)
10797 # Note: We can NOT use -z defs as we might desire, because we do not
10798 # link with -lc, and that would cause any symbols used from libc to
10799 # always be unresolved, which means just about no library would
10800 # ever link correctly. If we're not using GNU ld we use -z text
10801 # though, which does catch some bad symbols but isn't as heavy-handed
10802 # as -z defs.
10803 no_undefined_flag='${wl}-z,text'
10804 allow_undefined_flag='${wl}-z,nodefs'
10805 archive_cmds_need_lc=no
10806 hardcode_shlibpath_var=no
10807 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10808 hardcode_libdir_separator=':'
10809 link_all_deplibs=yes
10810 export_dynamic_flag_spec='${wl}-Bexport'
10811 runpath_var='LD_RUN_PATH'
d7040cdb 10812
ce2cded5
L
10813 if test "$GCC" = yes; then
10814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 else
10817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819 fi
10820 ;;
d7040cdb 10821
ce2cded5
L
10822 uts4*)
10823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_shlibpath_var=no
10826 ;;
d7040cdb 10827
ce2cded5
L
10828 *)
10829 ld_shlibs=no
10830 ;;
10831 esac
d7040cdb 10832
ce2cded5
L
10833 if test x$host_vendor = xsni; then
10834 case $host in
10835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10836 export_dynamic_flag_spec='${wl}-Blargedynsym'
10837 ;;
10838 esac
10839 fi
10840 fi
d7040cdb 10841
81ecdfbb
RW
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10843$as_echo "$ld_shlibs" >&6; }
ce2cded5 10844test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10845
ce2cded5 10846with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
ce2cded5
L
10862#
10863# Do we need to explicitly link libc?
10864#
10865case "x$archive_cmds_need_lc" in
10866x|xyes)
10867 # Assume -lc should be added
10868 archive_cmds_need_lc=yes
d7040cdb 10869
ce2cded5
L
10870 if test "$enable_shared" = yes && test "$GCC" = yes; then
10871 case $archive_cmds in
10872 *'~'*)
10873 # FIXME: we may have to deal with multi-command sequences.
10874 ;;
10875 '$CC '*)
10876 # Test whether the compiler implicitly links with -lc since on some
10877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10878 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10880$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10881if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
39144654
RW
10883else
10884 $RM conftest*
10885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10886
81ecdfbb 10887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10888 (eval $ac_compile) 2>&5
10889 ac_status=$?
81ecdfbb
RW
10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10891 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10892 soname=conftest
10893 lib=conftest
10894 libobjs=conftest.$ac_objext
10895 deplibs=
10896 wl=$lt_prog_compiler_wl
10897 pic_flag=$lt_prog_compiler_pic
10898 compiler_flags=-v
10899 linker_flags=-v
10900 verstring=
10901 output_objdir=.
10902 libname=conftest
10903 lt_save_allow_undefined_flag=$allow_undefined_flag
10904 allow_undefined_flag=
81ecdfbb 10905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10906 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10907 ac_status=$?
81ecdfbb
RW
10908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10909 test $ac_status = 0; }
39144654
RW
10910 then
10911 lt_cv_archive_cmds_need_lc=no
10912 else
10913 lt_cv_archive_cmds_need_lc=yes
10914 fi
10915 allow_undefined_flag=$lt_save_allow_undefined_flag
10916 else
10917 cat conftest.err 1>&5
10918 fi
10919 $RM conftest*
10920
10921fi
81ecdfbb
RW
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10923$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10924 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10925 ;;
10926 esac
10927 fi
10928 ;;
10929esac
d7040cdb
SE
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
d7040cdb 10957
d7040cdb 10958
d7040cdb
SE
10959
10960
10961
10962
10963
10964
d7040cdb 10965
d7040cdb 10966
d7040cdb 10967
d7040cdb 10968
d7040cdb 10969
d7040cdb 10970
d7040cdb 10971
d7040cdb 10972
d7040cdb 10973
d7040cdb 10974
d7040cdb 10975
d7040cdb 10976
d7040cdb 10977
d7040cdb 10978
d7040cdb 10979
d7040cdb 10980
d7040cdb 10981
d7040cdb 10982
d7040cdb 10983
d7040cdb 10984
d7040cdb 10985
d7040cdb 10986
d7040cdb 10987
d7040cdb 10988
d7040cdb 10989
d7040cdb 10990
d7040cdb 10991
d7040cdb 10992
ce2cded5
L
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
81ecdfbb
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11088$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
11089
11090if test "$GCC" = yes; then
ce2cded5
L
11091 case $host_os in
11092 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11093 *) lt_awk_arg="/^libraries:/" ;;
11094 esac
3725885a
RW
11095 case $host_os in
11096 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11097 *) lt_sed_strip_eq="s,=/,/,g" ;;
11098 esac
11099 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11100 case $lt_search_path_spec in
11101 *\;*)
ce2cded5
L
11102 # if the path contains ";" then we assume it to be the separator
11103 # otherwise default to the standard path separator (i.e. ":") - it is
11104 # assumed that no part of a normal pathname contains ";" but that should
11105 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
11106 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11107 ;;
11108 *)
11109 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11110 ;;
11111 esac
ce2cded5
L
11112 # Ok, now we have the path, separated by spaces, we can step through it
11113 # and add multilib dir if necessary.
11114 lt_tmp_lt_search_path_spec=
11115 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11116 for lt_sys_path in $lt_search_path_spec; do
11117 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11118 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11119 else
11120 test -d "$lt_sys_path" && \
11121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11122 fi
11123 done
3725885a 11124 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
11125BEGIN {RS=" "; FS="/|\n";} {
11126 lt_foo="";
11127 lt_count=0;
11128 for (lt_i = NF; lt_i > 0; lt_i--) {
11129 if ($lt_i != "" && $lt_i != ".") {
11130 if ($lt_i == "..") {
11131 lt_count++;
11132 } else {
11133 if (lt_count == 0) {
11134 lt_foo="/" $lt_i lt_foo;
11135 } else {
11136 lt_count--;
11137 }
11138 }
11139 }
11140 }
11141 if (lt_foo != "") { lt_freq[lt_foo]++; }
11142 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11143}'`
3725885a
RW
11144 # AWK program above erroneously prepends '/' to C:/dos/paths
11145 # for these hosts.
11146 case $host_os in
11147 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11148 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11149 esac
11150 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 11151else
ce2cded5
L
11152 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11153fi
11154library_names_spec=
11155libname_spec='lib$name'
11156soname_spec=
11157shrext_cmds=".so"
11158postinstall_cmds=
11159postuninstall_cmds=
11160finish_cmds=
11161finish_eval=
11162shlibpath_var=
11163shlibpath_overrides_runpath=unknown
11164version_type=none
11165dynamic_linker="$host_os ld.so"
11166sys_lib_dlsearch_path_spec="/lib /usr/lib"
11167need_lib_prefix=unknown
11168hardcode_into_libs=no
11169
11170# when you set need_version to no, make sure it does not cause -set_version
11171# flags to be left without arguments
11172need_version=unknown
11173
11174case $host_os in
11175aix3*)
11176 version_type=linux
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11178 shlibpath_var=LIBPATH
11179
11180 # AIX 3 has no versioning support, so we append a major version to the name.
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 ;;
11183
50e7d84b 11184aix[4-9]*)
ce2cded5
L
11185 version_type=linux
11186 need_lib_prefix=no
11187 need_version=no
11188 hardcode_into_libs=yes
11189 if test "$host_cpu" = ia64; then
11190 # AIX 5 supports IA64
11191 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 else
11194 # With GCC up to 2.95.x, collect2 would create an import file
11195 # for dependence libraries. The import file would start with
11196 # the line `#! .'. This would cause the generated library to
11197 # depend on `.', always an invalid library. This was fixed in
11198 # development snapshots of GCC prior to 3.0.
11199 case $host_os in
11200 aix4 | aix4.[01] | aix4.[01].*)
11201 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11202 echo ' yes '
11203 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11204 :
11205 else
11206 can_build_shared=no
11207 fi
11208 ;;
11209 esac
11210 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11211 # soname into executable. Probably we can add versioning support to
11212 # collect2, so additional links can be useful in future.
11213 if test "$aix_use_runtimelinking" = yes; then
11214 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11215 # instead of lib<name>.a to let people know that these are not
11216 # typical AIX shared libraries.
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 else
11219 # We preserve .a as extension for shared libraries through AIX4.2
11220 # and later when we are not doing run time linking.
11221 library_names_spec='${libname}${release}.a $libname.a'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 fi
11224 shlibpath_var=LIBPATH
11225 fi
11226 ;;
11227
11228amigaos*)
b214d478
SE
11229 case $host_cpu in
11230 powerpc)
11231 # Since July 2007 AmigaOS4 officially supports .so libraries.
11232 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 ;;
11235 m68k)
ce2cded5
L
11236 library_names_spec='$libname.ixlibrary $libname.a'
11237 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11238 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
11239 ;;
11240 esac
ce2cded5
L
11241 ;;
11242
11243beos*)
11244 library_names_spec='${libname}${shared_ext}'
11245 dynamic_linker="$host_os ld.so"
11246 shlibpath_var=LIBRARY_PATH
11247 ;;
11248
11249bsdi[45]*)
11250 version_type=linux
11251 need_version=no
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11258 # the default ld.so.conf also contains /usr/contrib/lib and
11259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11260 # libtool to hard-code these into programs
11261 ;;
11262
b214d478 11263cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11264 version_type=windows
11265 shrext_cmds=".dll"
11266 need_version=no
11267 need_lib_prefix=no
11268
b214d478
SE
11269 case $GCC,$host_os in
11270 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11271 library_names_spec='$libname.dll.a'
11272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11273 postinstall_cmds='base_file=`basename \${file}`~
11274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11275 dldir=$destdir/`dirname \$dlpath`~
11276 test -d \$dldir || mkdir -p \$dldir~
11277 $install_prog $dir/$dlname \$dldir/$dlname~
11278 chmod a+x \$dldir/$dlname~
11279 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11280 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11281 fi'
11282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11283 dlpath=$dir/\$dldll~
11284 $RM \$dlpath'
11285 shlibpath_overrides_runpath=yes
11286
11287 case $host_os in
11288 cygwin*)
11289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11290 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11291
11292 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11293 ;;
b214d478 11294 mingw* | cegcc*)
ce2cded5
L
11295 # MinGW DLLs use traditional 'lib' prefix
11296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11297 ;;
11298 pw32*)
11299 # pw32 DLLs use 'pw' prefix rather than 'lib'
11300 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11301 ;;
11302 esac
11303 ;;
11304
11305 *)
11306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11307 ;;
11308 esac
11309 dynamic_linker='Win32 ld.exe'
11310 # FIXME: first we should search . and the directory the executable is in
11311 shlibpath_var=PATH
11312 ;;
11313
11314darwin* | rhapsody*)
11315 dynamic_linker="$host_os dyld"
11316 version_type=darwin
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11320 soname_spec='${libname}${release}${major}$shared_ext'
11321 shlibpath_overrides_runpath=yes
11322 shlibpath_var=DYLD_LIBRARY_PATH
11323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11324
11325 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11326 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11327 ;;
11328
11329dgux*)
11330 version_type=linux
11331 need_lib_prefix=no
11332 need_version=no
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 ;;
11337
ce2cded5
L
11338freebsd* | dragonfly*)
11339 # DragonFly does not have aout. When/if they implement a new
11340 # versioning mechanism, adjust this.
11341 if test -x /usr/bin/objformat; then
11342 objformat=`/usr/bin/objformat`
11343 else
11344 case $host_os in
6d2920c8 11345 freebsd[23].*) objformat=aout ;;
ce2cded5
L
11346 *) objformat=elf ;;
11347 esac
11348 fi
11349 version_type=freebsd-$objformat
11350 case $version_type in
11351 freebsd-elf*)
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11353 need_version=no
11354 need_lib_prefix=no
11355 ;;
11356 freebsd-*)
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11358 need_version=yes
11359 ;;
11360 esac
11361 shlibpath_var=LD_LIBRARY_PATH
11362 case $host_os in
6d2920c8 11363 freebsd2.*)
ce2cded5
L
11364 shlibpath_overrides_runpath=yes
11365 ;;
11366 freebsd3.[01]* | freebsdelf3.[01]*)
11367 shlibpath_overrides_runpath=yes
11368 hardcode_into_libs=yes
11369 ;;
11370 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11371 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11372 shlibpath_overrides_runpath=no
11373 hardcode_into_libs=yes
11374 ;;
11375 *) # from 4.6 on, and DragonFly
11376 shlibpath_overrides_runpath=yes
11377 hardcode_into_libs=yes
11378 ;;
11379 esac
11380 ;;
11381
11382gnu*)
11383 version_type=linux
11384 need_lib_prefix=no
11385 need_version=no
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 hardcode_into_libs=yes
11390 ;;
11391
3725885a
RW
11392haiku*)
11393 version_type=linux
11394 need_lib_prefix=no
11395 need_version=no
11396 dynamic_linker="$host_os runtime_loader"
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11398 soname_spec='${libname}${release}${shared_ext}$major'
11399 shlibpath_var=LIBRARY_PATH
11400 shlibpath_overrides_runpath=yes
11401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11402 hardcode_into_libs=yes
11403 ;;
11404
ce2cded5
L
11405hpux9* | hpux10* | hpux11*)
11406 # Give a soname corresponding to the major version so that dld.sl refuses to
11407 # link against other versions.
11408 version_type=sunos
11409 need_lib_prefix=no
11410 need_version=no
11411 case $host_cpu in
11412 ia64*)
11413 shrext_cmds='.so'
11414 hardcode_into_libs=yes
11415 dynamic_linker="$host_os dld.so"
11416 shlibpath_var=LD_LIBRARY_PATH
11417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 soname_spec='${libname}${release}${shared_ext}$major'
11420 if test "X$HPUX_IA64_MODE" = X32; then
11421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11422 else
11423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11424 fi
11425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11426 ;;
11427 hppa*64*)
11428 shrext_cmds='.sl'
11429 hardcode_into_libs=yes
11430 dynamic_linker="$host_os dld.sl"
11431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11437 ;;
11438 *)
11439 shrext_cmds='.sl'
11440 dynamic_linker="$host_os dld.sl"
11441 shlibpath_var=SHLIB_PATH
11442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 ;;
11446 esac
3725885a 11447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11448 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11449 # or fails outright, so override atomically:
11450 install_override_mode=555
ce2cded5
L
11451 ;;
11452
11453interix[3-9]*)
11454 version_type=linux
11455 need_lib_prefix=no
11456 need_version=no
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=no
11462 hardcode_into_libs=yes
11463 ;;
11464
11465irix5* | irix6* | nonstopux*)
11466 case $host_os in
11467 nonstopux*) version_type=nonstopux ;;
11468 *)
11469 if test "$lt_cv_prog_gnu_ld" = yes; then
11470 version_type=linux
11471 else
11472 version_type=irix
11473 fi ;;
11474 esac
11475 need_lib_prefix=no
11476 need_version=no
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11479 case $host_os in
11480 irix5* | nonstopux*)
11481 libsuff= shlibsuff=
11482 ;;
11483 *)
11484 case $LD in # libtool.m4 will add one of these switches to LD
11485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11486 libsuff= shlibsuff= libmagic=32-bit;;
11487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11488 libsuff=32 shlibsuff=N32 libmagic=N32;;
11489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11491 *) libsuff= shlibsuff= libmagic=never-match;;
11492 esac
11493 ;;
11494 esac
11495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11496 shlibpath_overrides_runpath=no
11497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11499 hardcode_into_libs=yes
11500 ;;
11501
11502# No shared lib support for Linux oldld, aout, or coff.
11503linux*oldld* | linux*aout* | linux*coff*)
11504 dynamic_linker=no
11505 ;;
11506
11507# This must be Linux ELF.
58e24671 11508linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11509 version_type=linux
11510 need_lib_prefix=no
11511 need_version=no
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=no
39144654 11517
ce2cded5 11518 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11519 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
39144654
RW
11521else
11522 lt_cv_shlibpath_overrides_runpath=no
11523 save_LDFLAGS=$LDFLAGS
11524 save_libdir=$libdir
11525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11528/* end confdefs.h. */
11529
d7040cdb
SE
11530int
11531main ()
11532{
ce2cded5 11533
d7040cdb
SE
11534 ;
11535 return 0;
11536}
11537_ACEOF
81ecdfbb
RW
11538if ac_fn_c_try_link "$LINENO"; then :
11539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11540 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11541fi
d7040cdb 11542fi
81ecdfbb
RW
11543rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11545 LDFLAGS=$save_LDFLAGS
11546 libdir=$save_libdir
11547
11548fi
11549
11550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11551
ce2cded5
L
11552 # This implies no fast_install, which is unacceptable.
11553 # Some rework will be needed to allow for fast_install
11554 # before this can be enabled.
11555 hardcode_into_libs=yes
d7040cdb 11556
ce2cded5
L
11557 # Append ld.so.conf contents to the search path
11558 if test -f /etc/ld.so.conf; then
3725885a 11559 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
11560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11561 fi
d7040cdb 11562
ce2cded5
L
11563 # We used to test for /lib/ld.so.1 and disable shared libraries on
11564 # powerpc, because MkLinux only supported shared libraries with the
11565 # GNU dynamic linker. Since this was broken with cross compilers,
11566 # most powerpc-linux boxes support dynamic linking these days and
11567 # people can always --disable-shared, the test was removed, and we
11568 # assume the GNU/Linux dynamic linker is in use.
11569 dynamic_linker='GNU/Linux ld.so'
11570 ;;
d7040cdb 11571
ce2cded5
L
11572netbsd*)
11573 version_type=sunos
11574 need_lib_prefix=no
11575 need_version=no
11576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11579 dynamic_linker='NetBSD (a.out) ld.so'
11580 else
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 dynamic_linker='NetBSD ld.elf_so'
11584 fi
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11588 ;;
d7040cdb 11589
ce2cded5
L
11590newsos6)
11591 version_type=linux
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11595 ;;
d7040cdb 11596
ce2cded5
L
11597*nto* | *qnx*)
11598 version_type=qnx
11599 need_lib_prefix=no
11600 need_version=no
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=no
11605 hardcode_into_libs=yes
11606 dynamic_linker='ldqnx.so'
11607 ;;
d7040cdb 11608
ce2cded5
L
11609openbsd*)
11610 version_type=sunos
11611 sys_lib_dlsearch_path_spec="/usr/lib"
11612 need_lib_prefix=no
11613 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11614 case $host_os in
11615 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11616 *) need_version=no ;;
11617 esac
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11622 case $host_os in
11623 openbsd2.[89] | openbsd2.[89].*)
11624 shlibpath_overrides_runpath=no
11625 ;;
11626 *)
11627 shlibpath_overrides_runpath=yes
11628 ;;
11629 esac
11630 else
11631 shlibpath_overrides_runpath=yes
11632 fi
11633 ;;
d7040cdb 11634
ce2cded5
L
11635os2*)
11636 libname_spec='$name'
11637 shrext_cmds=".dll"
11638 need_lib_prefix=no
11639 library_names_spec='$libname${shared_ext} $libname.a'
11640 dynamic_linker='OS/2 ld.exe'
11641 shlibpath_var=LIBPATH
11642 ;;
d7040cdb 11643
ce2cded5
L
11644osf3* | osf4* | osf5*)
11645 version_type=osf
11646 need_lib_prefix=no
11647 need_version=no
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11653 ;;
d7040cdb 11654
ce2cded5
L
11655rdos*)
11656 dynamic_linker=no
11657 ;;
d7040cdb 11658
ce2cded5
L
11659solaris*)
11660 version_type=linux
11661 need_lib_prefix=no
11662 need_version=no
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11667 hardcode_into_libs=yes
11668 # ldd complains unless libraries are executable
11669 postinstall_cmds='chmod +x $lib'
11670 ;;
d7040cdb 11671
ce2cded5
L
11672sunos4*)
11673 version_type=sunos
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 shlibpath_overrides_runpath=yes
11678 if test "$with_gnu_ld" = yes; then
11679 need_lib_prefix=no
11680 fi
11681 need_version=yes
11682 ;;
d7040cdb 11683
ce2cded5
L
11684sysv4 | sysv4.3*)
11685 version_type=linux
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 case $host_vendor in
11690 sni)
11691 shlibpath_overrides_runpath=no
11692 need_lib_prefix=no
11693 runpath_var=LD_RUN_PATH
11694 ;;
11695 siemens)
11696 need_lib_prefix=no
11697 ;;
11698 motorola)
11699 need_lib_prefix=no
11700 need_version=no
11701 shlibpath_overrides_runpath=no
11702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11703 ;;
11704 esac
11705 ;;
d7040cdb 11706
ce2cded5
L
11707sysv4*MP*)
11708 if test -d /usr/nec ;then
11709 version_type=linux
11710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11711 soname_spec='$libname${shared_ext}.$major'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 fi
11714 ;;
d7040cdb 11715
ce2cded5
L
11716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11717 version_type=freebsd-elf
11718 need_lib_prefix=no
11719 need_version=no
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11725 if test "$with_gnu_ld" = yes; then
11726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11727 else
11728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11729 case $host_os in
11730 sco3.2v5*)
11731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11732 ;;
11733 esac
11734 fi
11735 sys_lib_dlsearch_path_spec='/usr/lib'
11736 ;;
d7040cdb 11737
ce2cded5
L
11738tpf*)
11739 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11740 version_type=linux
11741 need_lib_prefix=no
11742 need_version=no
b214d478 11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=no
11746 hardcode_into_libs=yes
11747 ;;
d7040cdb 11748
ce2cded5
L
11749uts4*)
11750 version_type=linux
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 soname_spec='${libname}${release}${shared_ext}$major'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 ;;
d7040cdb 11755
ce2cded5
L
11756*)
11757 dynamic_linker=no
11758 ;;
11759esac
81ecdfbb
RW
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11761$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11762test "$dynamic_linker" = no && can_build_shared=no
11763
11764variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11765if test "$GCC" = yes; then
11766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11767fi
11768
b214d478
SE
11769if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11770 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11771fi
11772if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11774fi
11775
d7040cdb
SE
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
d7040cdb 11787
d7040cdb 11788
d7040cdb 11789
d7040cdb 11790
d7040cdb
SE
11791
11792
11793
11794
d7040cdb 11795
d7040cdb
SE
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
d7040cdb
SE
11809
11810
11811
11812
d7040cdb
SE
11813
11814
11815
11816
d7040cdb 11817
d7040cdb 11818
d7040cdb 11819
d7040cdb 11820
d7040cdb 11821
d7040cdb 11822
d7040cdb 11823
d7040cdb
SE
11824
11825
11826
11827
11828
d7040cdb 11829
d7040cdb 11830
d7040cdb 11831
d7040cdb 11832
d7040cdb 11833
d7040cdb 11834
d7040cdb
SE
11835
11836
11837
11838
11839
d7040cdb
SE
11840
11841
d7040cdb 11842
d7040cdb 11843
d7040cdb 11844
d7040cdb 11845
ce2cded5
L
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
3725885a
RW
11856
11857
11858
11859
11860
ce2cded5
L
11861
11862
11863
11864
11865
11866
81ecdfbb
RW
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11868$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11869hardcode_action=
11870if test -n "$hardcode_libdir_flag_spec" ||
11871 test -n "$runpath_var" ||
11872 test "X$hardcode_automatic" = "Xyes" ; then
11873
11874 # We can hardcode non-existent directories.
11875 if test "$hardcode_direct" != no &&
11876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11877 # have to relink, otherwise we might link with an installed library
11878 # when we should be linking with a yet-to-be-installed one
11879 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11880 test "$hardcode_minus_L" != no; then
11881 # Linking always hardcodes the temporary library directory.
11882 hardcode_action=relink
11883 else
11884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11885 hardcode_action=immediate
d7040cdb 11886 fi
d7040cdb 11887else
ce2cded5
L
11888 # We cannot hardcode anything, or else we can only hardcode existing
11889 # directories.
11890 hardcode_action=unsupported
d7040cdb 11891fi
81ecdfbb
RW
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11893$as_echo "$hardcode_action" >&6; }
d7040cdb 11894
ce2cded5
L
11895if test "$hardcode_action" = relink ||
11896 test "$inherit_rpath" = yes; then
11897 # Fast installation is not supported
11898 enable_fast_install=no
11899elif test "$shlibpath_overrides_runpath" = yes ||
11900 test "$enable_shared" = no; then
11901 # Fast installation is not necessary
11902 enable_fast_install=needless
d7040cdb
SE
11903fi
11904
d7040cdb 11905
d7040cdb 11906
d7040cdb 11907
d7040cdb 11908
d7040cdb 11909
ce2cded5
L
11910 if test "x$enable_dlopen" != xyes; then
11911 enable_dlopen=unknown
11912 enable_dlopen_self=unknown
11913 enable_dlopen_self_static=unknown
d7040cdb 11914else
ce2cded5
L
11915 lt_cv_dlopen=no
11916 lt_cv_dlopen_libs=
d7040cdb 11917
ce2cded5
L
11918 case $host_os in
11919 beos*)
11920 lt_cv_dlopen="load_add_on"
11921 lt_cv_dlopen_libs=
11922 lt_cv_dlopen_self=yes
11923 ;;
d7040cdb 11924
b214d478 11925 mingw* | pw32* | cegcc*)
ce2cded5
L
11926 lt_cv_dlopen="LoadLibrary"
11927 lt_cv_dlopen_libs=
11928 ;;
11929
11930 cygwin*)
11931 lt_cv_dlopen="dlopen"
11932 lt_cv_dlopen_libs=
11933 ;;
11934
11935 darwin*)
11936 # if libdl is installed we need to link against it
81ecdfbb
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11938$as_echo_n "checking for dlopen in -ldl... " >&6; }
11939if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
d7040cdb 11941else
ce2cded5
L
11942 ac_check_lib_save_LIBS=$LIBS
11943LIBS="-ldl $LIBS"
81ecdfbb 11944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11945/* end confdefs.h. */
11946
81ecdfbb
RW
11947/* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
ce2cded5
L
11950#ifdef __cplusplus
11951extern "C"
11952#endif
ce2cded5
L
11953char dlopen ();
11954int
11955main ()
11956{
81ecdfbb 11957return dlopen ();
ce2cded5
L
11958 ;
11959 return 0;
11960}
11961_ACEOF
81ecdfbb 11962if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11963 ac_cv_lib_dl_dlopen=yes
11964else
81ecdfbb 11965 ac_cv_lib_dl_dlopen=no
d7040cdb 11966fi
81ecdfbb
RW
11967rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11969LIBS=$ac_check_lib_save_LIBS
d7040cdb 11970fi
81ecdfbb
RW
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11972$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11973if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11975else
d7040cdb 11976
ce2cded5
L
11977 lt_cv_dlopen="dyld"
11978 lt_cv_dlopen_libs=
11979 lt_cv_dlopen_self=yes
11980
d7040cdb 11981fi
ce2cded5
L
11982
11983 ;;
11984
11985 *)
81ecdfbb
RW
11986 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11987if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11988 lt_cv_dlopen="shl_load"
11989else
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11991$as_echo_n "checking for shl_load in -ldld... " >&6; }
11992if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
ce2cded5
L
11994else
11995 ac_check_lib_save_LIBS=$LIBS
11996LIBS="-ldld $LIBS"
81ecdfbb 11997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11998/* end confdefs.h. */
d7040cdb 11999
81ecdfbb
RW
12000/* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
ce2cded5
L
12003#ifdef __cplusplus
12004extern "C"
12005#endif
ce2cded5
L
12006char shl_load ();
12007int
12008main ()
12009{
81ecdfbb 12010return shl_load ();
ce2cded5
L
12011 ;
12012 return 0;
12013}
12014_ACEOF
81ecdfbb 12015if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
12016 ac_cv_lib_dld_shl_load=yes
12017else
81ecdfbb 12018 ac_cv_lib_dld_shl_load=no
ce2cded5 12019fi
81ecdfbb
RW
12020rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12022LIBS=$ac_check_lib_save_LIBS
12023fi
81ecdfbb
RW
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12025$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12026if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 12027 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 12028else
81ecdfbb
RW
12029 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12030if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
12031 lt_cv_dlopen="dlopen"
12032else
81ecdfbb
RW
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12034$as_echo_n "checking for dlopen in -ldl... " >&6; }
12035if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
d7040cdb 12037else
ce2cded5
L
12038 ac_check_lib_save_LIBS=$LIBS
12039LIBS="-ldl $LIBS"
81ecdfbb 12040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
12041/* end confdefs.h. */
12042
81ecdfbb
RW
12043/* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
ce2cded5
L
12046#ifdef __cplusplus
12047extern "C"
12048#endif
ce2cded5 12049char dlopen ();
d7040cdb
SE
12050int
12051main ()
12052{
81ecdfbb 12053return dlopen ();
d7040cdb
SE
12054 ;
12055 return 0;
12056}
12057_ACEOF
81ecdfbb 12058if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12059 ac_cv_lib_dl_dlopen=yes
d7040cdb 12060else
81ecdfbb 12061 ac_cv_lib_dl_dlopen=no
d7040cdb 12062fi
81ecdfbb
RW
12063rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12065LIBS=$ac_check_lib_save_LIBS
d7040cdb 12066fi
81ecdfbb
RW
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12069if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 12070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 12071else
81ecdfbb
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12073$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12074if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
d7040cdb 12076else
ce2cded5
L
12077 ac_check_lib_save_LIBS=$LIBS
12078LIBS="-lsvld $LIBS"
81ecdfbb 12079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 12080/* end confdefs.h. */
d7040cdb 12081
81ecdfbb
RW
12082/* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
ce2cded5
L
12085#ifdef __cplusplus
12086extern "C"
12087#endif
ce2cded5 12088char dlopen ();
d7040cdb
SE
12089int
12090main ()
12091{
81ecdfbb 12092return dlopen ();
d7040cdb
SE
12093 ;
12094 return 0;
12095}
12096_ACEOF
81ecdfbb 12097if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12098 ac_cv_lib_svld_dlopen=yes
d7040cdb 12099else
81ecdfbb 12100 ac_cv_lib_svld_dlopen=no
d7040cdb 12101fi
81ecdfbb
RW
12102rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
ce2cded5 12104LIBS=$ac_check_lib_save_LIBS
d7040cdb 12105fi
81ecdfbb
RW
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12107$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12108if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
12109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12110else
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12112$as_echo_n "checking for dld_link in -ldld... " >&6; }
12113if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
ce2cded5
L
12115else
12116 ac_check_lib_save_LIBS=$LIBS
12117LIBS="-ldld $LIBS"
81ecdfbb 12118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12119/* end confdefs.h. */
12120
81ecdfbb
RW
12121/* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
ce2cded5
L
12124#ifdef __cplusplus
12125extern "C"
12126#endif
ce2cded5 12127char dld_link ();
d7040cdb
SE
12128int
12129main ()
12130{
81ecdfbb 12131return dld_link ();
d7040cdb
SE
12132 ;
12133 return 0;
12134}
12135_ACEOF
81ecdfbb 12136if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12137 ac_cv_lib_dld_dld_link=yes
d7040cdb 12138else
81ecdfbb 12139 ac_cv_lib_dld_dld_link=no
d7040cdb 12140fi
81ecdfbb
RW
12141rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12143LIBS=$ac_check_lib_save_LIBS
12144fi
81ecdfbb
RW
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12146$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12147if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 12148 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
12149fi
12150
12151
12152fi
12153
12154
12155fi
12156
12157
12158fi
12159
12160
12161fi
12162
12163
12164fi
12165
12166 ;;
12167 esac
12168
12169 if test "x$lt_cv_dlopen" != xno; then
12170 enable_dlopen=yes
12171 else
12172 enable_dlopen=no
12173 fi
12174
12175 case $lt_cv_dlopen in
12176 dlopen)
12177 save_CPPFLAGS="$CPPFLAGS"
12178 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12179
12180 save_LDFLAGS="$LDFLAGS"
12181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12182
12183 save_LIBS="$LIBS"
12184 LIBS="$lt_cv_dlopen_libs $LIBS"
12185
81ecdfbb
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12187$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12188if test "${lt_cv_dlopen_self+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
ce2cded5
L
12190else
12191 if test "$cross_compiling" = yes; then :
12192 lt_cv_dlopen_self=cross
12193else
12194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195 lt_status=$lt_dlunknown
12196 cat > conftest.$ac_ext <<_LT_EOF
5063daf7 12197#line 12197 "configure"
ce2cded5
L
12198#include "confdefs.h"
12199
12200#if HAVE_DLFCN_H
12201#include <dlfcn.h>
12202#endif
12203
12204#include <stdio.h>
12205
12206#ifdef RTLD_GLOBAL
12207# define LT_DLGLOBAL RTLD_GLOBAL
12208#else
12209# ifdef DL_GLOBAL
12210# define LT_DLGLOBAL DL_GLOBAL
12211# else
12212# define LT_DLGLOBAL 0
12213# endif
12214#endif
12215
12216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12217 find out it does not work in some platform. */
12218#ifndef LT_DLLAZY_OR_NOW
12219# ifdef RTLD_LAZY
12220# define LT_DLLAZY_OR_NOW RTLD_LAZY
12221# else
12222# ifdef DL_LAZY
12223# define LT_DLLAZY_OR_NOW DL_LAZY
12224# else
12225# ifdef RTLD_NOW
12226# define LT_DLLAZY_OR_NOW RTLD_NOW
12227# else
12228# ifdef DL_NOW
12229# define LT_DLLAZY_OR_NOW DL_NOW
12230# else
12231# define LT_DLLAZY_OR_NOW 0
12232# endif
12233# endif
12234# endif
12235# endif
12236#endif
12237
3725885a
RW
12238/* When -fvisbility=hidden is used, assume the code has been annotated
12239 correspondingly for the symbols needed. */
12240#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12241void fnord () __attribute__((visibility("default")));
12242#endif
12243
12244void fnord () { int i=42; }
ce2cded5 12245int main ()
d7040cdb 12246{
ce2cded5
L
12247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12248 int status = $lt_dlunknown;
12249
12250 if (self)
12251 {
12252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12253 else
12254 {
12255 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12256 else puts (dlerror ());
12257 }
ce2cded5
L
12258 /* dlclose (self); */
12259 }
12260 else
12261 puts (dlerror ());
12262
b214d478 12263 return status;
d7040cdb 12264}
ce2cded5 12265_LT_EOF
81ecdfbb 12266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12267 (eval $ac_link) 2>&5
d7040cdb 12268 ac_status=$?
81ecdfbb
RW
12269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12270 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12271 (./conftest; exit; ) >&5 2>/dev/null
12272 lt_status=$?
12273 case x$lt_status in
12274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12277 esac
12278 else :
12279 # compilation failed
12280 lt_cv_dlopen_self=no
12281 fi
12282fi
12283rm -fr conftest*
12284
12285
12286fi
81ecdfbb
RW
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12288$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12289
12290 if test "x$lt_cv_dlopen_self" = xyes; then
12291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12293$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12294if test "${lt_cv_dlopen_self_static+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
ce2cded5
L
12296else
12297 if test "$cross_compiling" = yes; then :
12298 lt_cv_dlopen_self_static=cross
12299else
12300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12301 lt_status=$lt_dlunknown
12302 cat > conftest.$ac_ext <<_LT_EOF
5063daf7 12303#line 12303 "configure"
ce2cded5
L
12304#include "confdefs.h"
12305
12306#if HAVE_DLFCN_H
12307#include <dlfcn.h>
12308#endif
12309
12310#include <stdio.h>
12311
12312#ifdef RTLD_GLOBAL
12313# define LT_DLGLOBAL RTLD_GLOBAL
12314#else
12315# ifdef DL_GLOBAL
12316# define LT_DLGLOBAL DL_GLOBAL
12317# else
12318# define LT_DLGLOBAL 0
12319# endif
12320#endif
12321
12322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12323 find out it does not work in some platform. */
12324#ifndef LT_DLLAZY_OR_NOW
12325# ifdef RTLD_LAZY
12326# define LT_DLLAZY_OR_NOW RTLD_LAZY
12327# else
12328# ifdef DL_LAZY
12329# define LT_DLLAZY_OR_NOW DL_LAZY
12330# else
12331# ifdef RTLD_NOW
12332# define LT_DLLAZY_OR_NOW RTLD_NOW
12333# else
12334# ifdef DL_NOW
12335# define LT_DLLAZY_OR_NOW DL_NOW
12336# else
12337# define LT_DLLAZY_OR_NOW 0
12338# endif
12339# endif
12340# endif
12341# endif
12342#endif
12343
3cb62297
L
12344/* When -fvisbility=hidden is used, assume the code has been annotated
12345 correspondingly for the symbols needed. */
12346#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12347void fnord () __attribute__((visibility("default")));
12348#endif
12349
12350void fnord () { int i=42; }
12351int main ()
12352{
12353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12354 int status = $lt_dlunknown;
12355
12356 if (self)
12357 {
12358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12359 else
12360 {
12361 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12362 else puts (dlerror ());
12363 }
12364 /* dlclose (self); */
12365 }
12366 else
12367 puts (dlerror ());
12368
12369 return status;
12370}
12371_LT_EOF
12372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12373 (eval $ac_link) 2>&5
12374 ac_status=$?
12375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12376 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12377 (./conftest; exit; ) >&5 2>/dev/null
12378 lt_status=$?
12379 case x$lt_status in
12380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12382 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12383 esac
12384 else :
12385 # compilation failed
12386 lt_cv_dlopen_self_static=no
12387 fi
12388fi
12389rm -fr conftest*
12390
12391
12392fi
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12394$as_echo "$lt_cv_dlopen_self_static" >&6; }
12395 fi
12396
12397 CPPFLAGS="$save_CPPFLAGS"
12398 LDFLAGS="$save_LDFLAGS"
12399 LIBS="$save_LIBS"
12400 ;;
12401 esac
12402
12403 case $lt_cv_dlopen_self in
12404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12405 *) enable_dlopen_self=unknown ;;
12406 esac
12407
12408 case $lt_cv_dlopen_self_static in
12409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12410 *) enable_dlopen_self_static=unknown ;;
12411 esac
12412fi
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430striplib=
12431old_striplib=
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12433$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12434if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12435 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12436 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12438$as_echo "yes" >&6; }
12439else
12440# FIXME - insert some real tests, host_os isn't really good enough
12441 case $host_os in
12442 darwin*)
12443 if test -n "$STRIP" ; then
12444 striplib="$STRIP -x"
12445 old_striplib="$STRIP -S"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447$as_echo "yes" >&6; }
12448 else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450$as_echo "no" >&6; }
12451 fi
12452 ;;
12453 *)
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
12456 ;;
12457 esac
12458fi
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471 # Report which library types will actually be built
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12473$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12475$as_echo "$can_build_shared" >&6; }
12476
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12478$as_echo_n "checking whether to build shared libraries... " >&6; }
12479 test "$can_build_shared" = "no" && enable_shared=no
12480
12481 # On AIX, shared libraries and static libraries use the same namespace, and
12482 # are all built from PIC.
12483 case $host_os in
12484 aix3*)
12485 test "$enable_shared" = yes && enable_static=no
12486 if test -n "$RANLIB"; then
12487 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12488 postinstall_cmds='$RANLIB $lib'
12489 fi
12490 ;;
12491
12492 aix[4-9]*)
12493 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12494 test "$enable_shared" = yes && enable_static=no
12495 fi
12496 ;;
12497 esac
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12499$as_echo "$enable_shared" >&6; }
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12502$as_echo_n "checking whether to build static libraries... " >&6; }
12503 # Make sure either enable_shared or enable_static is yes.
12504 test "$enable_shared" = yes || enable_static=yes
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12506$as_echo "$enable_static" >&6; }
12507
12508
12509
12510
12511fi
12512ac_ext=c
12513ac_cpp='$CPP $CPPFLAGS'
12514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518CC="$lt_save_CC"
12519
12520 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12521 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12522 (test "X$CXX" != "Xg++"))) ; then
12523 ac_ext=cpp
12524ac_cpp='$CXXCPP $CPPFLAGS'
12525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12529$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12530if test -z "$CXXCPP"; then
12531 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12533else
12534 # Double quotes because CXXCPP needs to be expanded
12535 for CXXCPP in "$CXX -E" "/lib/cpp"
12536 do
12537 ac_preproc_ok=false
12538for ac_cxx_preproc_warn_flag in '' yes
12539do
12540 # Use a header file that comes with gcc, so configuring glibc
12541 # with a fresh cross-compiler works.
12542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12543 # <limits.h> exists even on freestanding compilers.
12544 # On the NeXT, cc -E runs the code through the compiler's parser,
12545 # not just through cpp. "Syntax error" is here to catch this case.
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547/* end confdefs.h. */
12548#ifdef __STDC__
12549# include <limits.h>
12550#else
12551# include <assert.h>
12552#endif
12553 Syntax error
12554_ACEOF
12555if ac_fn_cxx_try_cpp "$LINENO"; then :
12556
12557else
12558 # Broken: fails on valid input.
12559continue
12560fi
12561rm -f conftest.err conftest.$ac_ext
12562
12563 # OK, works on sane cases. Now check whether nonexistent headers
12564 # can be detected and how.
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h. */
12567#include <ac_nonexistent.h>
12568_ACEOF
12569if ac_fn_cxx_try_cpp "$LINENO"; then :
12570 # Broken: success on invalid input.
12571continue
12572else
12573 # Passes both tests.
12574ac_preproc_ok=:
12575break
12576fi
12577rm -f conftest.err conftest.$ac_ext
12578
12579done
12580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12581rm -f conftest.err conftest.$ac_ext
12582if $ac_preproc_ok; then :
12583 break
12584fi
12585
12586 done
12587 ac_cv_prog_CXXCPP=$CXXCPP
12588
12589fi
12590 CXXCPP=$ac_cv_prog_CXXCPP
12591else
12592 ac_cv_prog_CXXCPP=$CXXCPP
12593fi
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12595$as_echo "$CXXCPP" >&6; }
12596ac_preproc_ok=false
12597for ac_cxx_preproc_warn_flag in '' yes
12598do
12599 # Use a header file that comes with gcc, so configuring glibc
12600 # with a fresh cross-compiler works.
12601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12602 # <limits.h> exists even on freestanding compilers.
12603 # On the NeXT, cc -E runs the code through the compiler's parser,
12604 # not just through cpp. "Syntax error" is here to catch this case.
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h. */
12607#ifdef __STDC__
12608# include <limits.h>
12609#else
12610# include <assert.h>
12611#endif
12612 Syntax error
12613_ACEOF
12614if ac_fn_cxx_try_cpp "$LINENO"; then :
12615
12616else
12617 # Broken: fails on valid input.
12618continue
12619fi
12620rm -f conftest.err conftest.$ac_ext
12621
12622 # OK, works on sane cases. Now check whether nonexistent headers
12623 # can be detected and how.
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h. */
12626#include <ac_nonexistent.h>
12627_ACEOF
12628if ac_fn_cxx_try_cpp "$LINENO"; then :
12629 # Broken: success on invalid input.
12630continue
12631else
12632 # Passes both tests.
12633ac_preproc_ok=:
12634break
12635fi
12636rm -f conftest.err conftest.$ac_ext
12637
12638done
12639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12640rm -f conftest.err conftest.$ac_ext
12641if $ac_preproc_ok; then :
12642
12643else
12644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12646as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12647See \`config.log' for more details." "$LINENO" 5; }
12648fi
12649
12650ac_ext=c
12651ac_cpp='$CPP $CPPFLAGS'
12652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655
12656else
12657 _lt_caught_CXX_error=yes
12658fi
12659
12660ac_ext=cpp
12661ac_cpp='$CXXCPP $CPPFLAGS'
12662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12665
12666archive_cmds_need_lc_CXX=no
12667allow_undefined_flag_CXX=
12668always_export_symbols_CXX=no
12669archive_expsym_cmds_CXX=
12670compiler_needs_object_CXX=no
12671export_dynamic_flag_spec_CXX=
12672hardcode_direct_CXX=no
12673hardcode_direct_absolute_CXX=no
12674hardcode_libdir_flag_spec_CXX=
12675hardcode_libdir_flag_spec_ld_CXX=
12676hardcode_libdir_separator_CXX=
12677hardcode_minus_L_CXX=no
12678hardcode_shlibpath_var_CXX=unsupported
12679hardcode_automatic_CXX=no
12680inherit_rpath_CXX=no
12681module_cmds_CXX=
12682module_expsym_cmds_CXX=
12683link_all_deplibs_CXX=unknown
12684old_archive_cmds_CXX=$old_archive_cmds
12685reload_flag_CXX=$reload_flag
12686reload_cmds_CXX=$reload_cmds
12687no_undefined_flag_CXX=
12688whole_archive_flag_spec_CXX=
12689enable_shared_with_static_runtimes_CXX=no
12690
12691# Source file extension for C++ test sources.
12692ac_ext=cpp
12693
12694# Object file extension for compiled C++ test sources.
12695objext=o
12696objext_CXX=$objext
12697
12698# No sense in running all these tests if we already determined that
12699# the CXX compiler isn't working. Some variables (like enable_shared)
12700# are currently assumed to apply to all compilers on this platform,
12701# and will be corrupted by setting them based on a non-working compiler.
12702if test "$_lt_caught_CXX_error" != yes; then
12703 # Code to be used in simple compile tests
12704 lt_simple_compile_test_code="int some_variable = 0;"
12705
12706 # Code to be used in simple link tests
12707 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12708
12709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12710
12711
12712
12713
12714
12715
12716# If no C compiler was specified, use CC.
12717LTCC=${LTCC-"$CC"}
12718
12719# If no C compiler flags were specified, use CFLAGS.
12720LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12721
12722# Allow CC to be a program name with arguments.
12723compiler=$CC
12724
12725
12726 # save warnings/boilerplate of simple test code
12727 ac_outfile=conftest.$ac_objext
12728echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12730_lt_compiler_boilerplate=`cat conftest.err`
12731$RM conftest*
12732
12733 ac_outfile=conftest.$ac_objext
12734echo "$lt_simple_link_test_code" >conftest.$ac_ext
12735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12736_lt_linker_boilerplate=`cat conftest.err`
12737$RM -r conftest*
12738
12739
12740 # Allow CC to be a program name with arguments.
12741 lt_save_CC=$CC
12742 lt_save_LD=$LD
12743 lt_save_GCC=$GCC
12744 GCC=$GXX
12745 lt_save_with_gnu_ld=$with_gnu_ld
12746 lt_save_path_LD=$lt_cv_path_LD
12747 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12748 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12749 else
12750 $as_unset lt_cv_prog_gnu_ld
12751 fi
12752 if test -n "${lt_cv_path_LDCXX+set}"; then
12753 lt_cv_path_LD=$lt_cv_path_LDCXX
12754 else
12755 $as_unset lt_cv_path_LD
12756 fi
12757 test -z "${LDCXX+set}" || LD=$LDCXX
12758 CC=${CXX-"c++"}
12759 compiler=$CC
12760 compiler_CXX=$CC
12761 for cc_temp in $compiler""; do
12762 case $cc_temp in
12763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12765 \-*) ;;
12766 *) break;;
12767 esac
12768done
12769cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12770
12771
12772 if test -n "$compiler"; then
12773 # We don't want -fno-exception when compiling C++ code, so set the
12774 # no_builtin_flag separately
12775 if test "$GXX" = yes; then
12776 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12777 else
12778 lt_prog_compiler_no_builtin_flag_CXX=
12779 fi
12780
12781 if test "$GXX" = yes; then
12782 # Set up default GNU C++ configuration
12783
12784
12785
12786# Check whether --with-gnu-ld was given.
12787if test "${with_gnu_ld+set}" = set; then :
12788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12789else
12790 with_gnu_ld=no
12791fi
12792
12793ac_prog=ld
12794if test "$GCC" = yes; then
12795 # Check if gcc -print-prog-name=ld gives a path.
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12797$as_echo_n "checking for ld used by $CC... " >&6; }
12798 case $host in
12799 *-*-mingw*)
12800 # gcc leaves a trailing carriage return which upsets mingw
12801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12802 *)
12803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12804 esac
12805 case $ac_prog in
12806 # Accept absolute paths.
12807 [\\/]* | ?:[\\/]*)
12808 re_direlt='/[^/][^/]*/\.\./'
12809 # Canonicalize the pathname of ld
12810 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12811 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12812 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12813 done
12814 test -z "$LD" && LD="$ac_prog"
12815 ;;
12816 "")
12817 # If it fails, then pretend we aren't using GCC.
12818 ac_prog=ld
12819 ;;
12820 *)
12821 # If it is relative, then search for the first ld in PATH.
12822 with_gnu_ld=unknown
12823 ;;
12824 esac
12825elif test "$with_gnu_ld" = yes; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12827$as_echo_n "checking for GNU ld... " >&6; }
12828else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12830$as_echo_n "checking for non-GNU ld... " >&6; }
12831fi
12832if test "${lt_cv_path_LD+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834else
12835 if test -z "$LD"; then
12836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837 for ac_dir in $PATH; do
12838 IFS="$lt_save_ifs"
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12841 lt_cv_path_LD="$ac_dir/$ac_prog"
12842 # Check to see if the program is GNU ld. I'd rather use --version,
12843 # but apparently some variants of GNU ld only accept -v.
12844 # Break only if it was the GNU/non-GNU ld that we prefer.
12845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12846 *GNU* | *'with BFD'*)
12847 test "$with_gnu_ld" != no && break
12848 ;;
12849 *)
12850 test "$with_gnu_ld" != yes && break
12851 ;;
12852 esac
12853 fi
12854 done
12855 IFS="$lt_save_ifs"
12856else
12857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12858fi
12859fi
12860
12861LD="$lt_cv_path_LD"
12862if test -n "$LD"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12864$as_echo "$LD" >&6; }
12865else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
12868fi
12869test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12871$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12872if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874else
12875 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12876case `$LD -v 2>&1 </dev/null` in
12877*GNU* | *'with BFD'*)
12878 lt_cv_prog_gnu_ld=yes
12879 ;;
12880*)
12881 lt_cv_prog_gnu_ld=no
12882 ;;
12883esac
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12886$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12887with_gnu_ld=$lt_cv_prog_gnu_ld
12888
12889
12890
12891
12892
12893
12894
12895 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12896 # archiving commands below assume that GNU ld is being used.
12897 if test "$with_gnu_ld" = yes; then
12898 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12899 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12900
12901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12903
12904 # If archive_cmds runs LD, not CC, wlarc should be empty
12905 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12906 # investigate it a little bit more. (MM)
12907 wlarc='${wl}'
12908
12909 # ancient GNU ld didn't support --whole-archive et. al.
12910 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12911 $GREP 'no-whole-archive' > /dev/null; then
12912 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12913 else
12914 whole_archive_flag_spec_CXX=
12915 fi
12916 else
12917 with_gnu_ld=no
12918 wlarc=
12919
12920 # A generic and very simple default shared library creation
12921 # command for GNU C++ for the case where it uses the native
12922 # linker, instead of GNU ld. If possible, this setting should
12923 # overridden to take advantage of the native linker features on
12924 # the platform it is being used on.
12925 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12926 fi
12927
12928 # Commands to make compiler produce verbose output that lists
12929 # what "hidden" libraries, object files and flags are used when
12930 # linking a shared library.
12931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12932
12933 else
12934 GXX=no
12935 with_gnu_ld=no
12936 wlarc=
12937 fi
12938
12939 # PORTME: fill in a description of your system's C++ link characteristics
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12941$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12942 ld_shlibs_CXX=yes
12943 case $host_os in
12944 aix3*)
12945 # FIXME: insert proper C++ library support
12946 ld_shlibs_CXX=no
12947 ;;
12948 aix[4-9]*)
12949 if test "$host_cpu" = ia64; then
12950 # On IA64, the linker does run time linking by default, so we don't
12951 # have to do anything special.
12952 aix_use_runtimelinking=no
12953 exp_sym_flag='-Bexport'
12954 no_entry_flag=""
12955 else
12956 aix_use_runtimelinking=no
12957
12958 # Test if we are trying to use run time linking or normal
12959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12960 # need to do runtime linking.
12961 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12962 for ld_flag in $LDFLAGS; do
12963 case $ld_flag in
12964 *-brtl*)
12965 aix_use_runtimelinking=yes
12966 break
12967 ;;
12968 esac
12969 done
12970 ;;
12971 esac
12972
12973 exp_sym_flag='-bexport'
12974 no_entry_flag='-bnoentry'
12975 fi
12976
12977 # When large executables or shared objects are built, AIX ld can
12978 # have problems creating the table of contents. If linking a library
12979 # or program results in "error TOC overflow" add -mminimal-toc to
12980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12982
12983 archive_cmds_CXX=''
12984 hardcode_direct_CXX=yes
12985 hardcode_direct_absolute_CXX=yes
12986 hardcode_libdir_separator_CXX=':'
12987 link_all_deplibs_CXX=yes
12988 file_list_spec_CXX='${wl}-f,'
12989
12990 if test "$GXX" = yes; then
12991 case $host_os in aix4.[012]|aix4.[012].*)
12992 # We only want to do this on AIX 4.2 and lower, the check
12993 # below for broken collect2 doesn't work under 4.3+
12994 collect2name=`${CC} -print-prog-name=collect2`
12995 if test -f "$collect2name" &&
12996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12997 then
12998 # We have reworked collect2
12999 :
13000 else
13001 # We have old collect2
13002 hardcode_direct_CXX=unsupported
13003 # It fails to find uninstalled libraries when the uninstalled
13004 # path is not listed in the libpath. Setting hardcode_minus_L
13005 # to unsupported forces relinking
13006 hardcode_minus_L_CXX=yes
13007 hardcode_libdir_flag_spec_CXX='-L$libdir'
13008 hardcode_libdir_separator_CXX=
13009 fi
13010 esac
13011 shared_flag='-shared'
13012 if test "$aix_use_runtimelinking" = yes; then
13013 shared_flag="$shared_flag "'${wl}-G'
13014 fi
13015 else
13016 # not using gcc
13017 if test "$host_cpu" = ia64; then
13018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13019 # chokes on -Wl,-G. The following line is correct:
13020 shared_flag='-G'
13021 else
13022 if test "$aix_use_runtimelinking" = yes; then
13023 shared_flag='${wl}-G'
13024 else
13025 shared_flag='${wl}-bM:SRE'
13026 fi
13027 fi
13028 fi
13029
13030 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13031 # It seems that -bexpall does not export symbols beginning with
13032 # underscore (_), so it is better to generate a list of symbols to
13033 # export.
13034 always_export_symbols_CXX=yes
13035 if test "$aix_use_runtimelinking" = yes; then
13036 # Warning - without using the other runtime loading flags (-brtl),
13037 # -berok will link without error, but may produce a broken library.
13038 allow_undefined_flag_CXX='-berok'
13039 # Determine the default libpath from the value encoded in an empty
13040 # executable.
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042/* end confdefs.h. */
13043
13044int
13045main ()
13046{
13047
13048 ;
13049 return 0;
13050}
13051_ACEOF
13052if ac_fn_cxx_try_link "$LINENO"; then :
13053
13054lt_aix_libpath_sed='
13055 /Import File Strings/,/^$/ {
13056 /^0/ {
13057 s/^0 *\(.*\)$/\1/
13058 p
13059 }
13060 }'
13061aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13062# Check for a 64-bit object if we didn't find anything.
13063if test -z "$aix_libpath"; then
13064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13065fi
13066fi
13067rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13069if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13070
13071 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13072
13073 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"
13074 else
13075 if test "$host_cpu" = ia64; then
13076 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13077 allow_undefined_flag_CXX="-z nodefs"
13078 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"
13079 else
13080 # Determine the default libpath from the value encoded in an
13081 # empty executable.
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084
13085int
13086main ()
13087{
13088
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093if ac_fn_cxx_try_link "$LINENO"; then :
13094
13095lt_aix_libpath_sed='
13096 /Import File Strings/,/^$/ {
13097 /^0/ {
13098 s/^0 *\(.*\)$/\1/
13099 p
13100 }
13101 }'
13102aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103# Check for a 64-bit object if we didn't find anything.
13104if test -z "$aix_libpath"; then
13105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13106fi
13107fi
13108rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13111
13112 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13113 # Warning - without using the other run time loading flags,
13114 # -berok will link without error, but may produce a broken library.
13115 no_undefined_flag_CXX=' ${wl}-bernotok'
13116 allow_undefined_flag_CXX=' ${wl}-berok'
13117 if test "$with_gnu_ld" = yes; then
13118 # We only use this code for GNU lds that support --whole-archive.
13119 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13120 else
13121 # Exported symbols can be pulled into shared objects from archives
13122 whole_archive_flag_spec_CXX='$convenience'
13123 fi
13124 archive_cmds_need_lc_CXX=yes
13125 # This is similar to how AIX traditionally builds its shared
13126 # libraries.
13127 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'
13128 fi
13129 fi
13130 ;;
13131
13132 beos*)
13133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13134 allow_undefined_flag_CXX=unsupported
13135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13136 # support --undefined. This deserves some investigation. FIXME
13137 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138 else
13139 ld_shlibs_CXX=no
13140 fi
13141 ;;
13142
13143 chorus*)
13144 case $cc_basename in
13145 *)
13146 # FIXME: insert proper C++ library support
13147 ld_shlibs_CXX=no
13148 ;;
13149 esac
13150 ;;
13151
13152 cygwin* | mingw* | pw32* | cegcc*)
13153 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13154 # as there is no search path for DLLs.
13155 hardcode_libdir_flag_spec_CXX='-L$libdir'
13156 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13157 allow_undefined_flag_CXX=unsupported
13158 always_export_symbols_CXX=no
13159 enable_shared_with_static_runtimes_CXX=yes
13160
13161 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13162 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'
13163 # If the export-symbols file already is a .def file (1st line
13164 # is EXPORTS), use it as is; otherwise, prepend...
13165 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13166 cp $export_symbols $output_objdir/$soname.def;
13167 else
13168 echo EXPORTS > $output_objdir/$soname.def;
13169 cat $export_symbols >> $output_objdir/$soname.def;
13170 fi~
13171 $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'
13172 else
13173 ld_shlibs_CXX=no
13174 fi
13175 ;;
13176 darwin* | rhapsody*)
13177
13178
13179 archive_cmds_need_lc_CXX=no
13180 hardcode_direct_CXX=no
13181 hardcode_automatic_CXX=yes
13182 hardcode_shlibpath_var_CXX=unsupported
13183 if test "$lt_cv_ld_force_load" = "yes"; then
13184 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\"`'
13185 else
13186 whole_archive_flag_spec_CXX=''
13187 fi
13188 link_all_deplibs_CXX=yes
13189 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13190 case $cc_basename in
13191 ifort*) _lt_dar_can_shared=yes ;;
13192 *) _lt_dar_can_shared=$GCC ;;
13193 esac
13194 if test "$_lt_dar_can_shared" = "yes"; then
13195 output_verbose_link_cmd=func_echo_all
13196 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}"
13197 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13198 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}"
13199 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}"
13200 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13201 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}"
13202 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}"
13203 fi
13204
13205 else
13206 ld_shlibs_CXX=no
13207 fi
13208
13209 ;;
13210
13211 dgux*)
13212 case $cc_basename in
13213 ec++*)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 ghcx*)
13218 # Green Hills C++ Compiler
13219 # FIXME: insert proper C++ library support
13220 ld_shlibs_CXX=no
13221 ;;
13222 *)
13223 # FIXME: insert proper C++ library support
13224 ld_shlibs_CXX=no
13225 ;;
13226 esac
13227 ;;
13228
6d2920c8 13229 freebsd2.*)
3cb62297
L
13230 # C++ shared libraries reported to be fairly broken before
13231 # switch to ELF
13232 ld_shlibs_CXX=no
13233 ;;
13234
13235 freebsd-elf*)
13236 archive_cmds_need_lc_CXX=no
13237 ;;
13238
13239 freebsd* | dragonfly*)
13240 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13241 # conventions
13242 ld_shlibs_CXX=yes
13243 ;;
13244
13245 gnu*)
13246 ;;
13247
13248 haiku*)
13249 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250 link_all_deplibs_CXX=yes
13251 ;;
13252
13253 hpux9*)
13254 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13255 hardcode_libdir_separator_CXX=:
13256 export_dynamic_flag_spec_CXX='${wl}-E'
13257 hardcode_direct_CXX=yes
13258 hardcode_minus_L_CXX=yes # Not in the search PATH,
13259 # but as the default
13260 # location of the library.
13261
13262 case $cc_basename in
13263 CC*)
13264 # FIXME: insert proper C++ library support
13265 ld_shlibs_CXX=no
13266 ;;
13267 aCC*)
13268 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'
13269 # Commands to make compiler produce verbose output that lists
13270 # what "hidden" libraries, object files and flags are used when
13271 # linking a shared library.
13272 #
13273 # There doesn't appear to be a way to prevent this compiler from
13274 # explicitly linking system object files so we need to strip them
13275 # from the output so that they don't get included in the library
13276 # dependencies.
13277 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"'
13278 ;;
13279 *)
13280 if test "$GXX" = yes; then
13281 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'
13282 else
13283 # FIXME: insert proper C++ library support
13284 ld_shlibs_CXX=no
13285 fi
13286 ;;
13287 esac
13288 ;;
13289
13290 hpux10*|hpux11*)
13291 if test $with_gnu_ld = no; then
13292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13293 hardcode_libdir_separator_CXX=:
13294
13295 case $host_cpu in
13296 hppa*64*|ia64*)
13297 ;;
13298 *)
13299 export_dynamic_flag_spec_CXX='${wl}-E'
13300 ;;
13301 esac
13302 fi
13303 case $host_cpu in
13304 hppa*64*|ia64*)
13305 hardcode_direct_CXX=no
13306 hardcode_shlibpath_var_CXX=no
13307 ;;
13308 *)
13309 hardcode_direct_CXX=yes
13310 hardcode_direct_absolute_CXX=yes
13311 hardcode_minus_L_CXX=yes # Not in the search PATH,
13312 # but as the default
13313 # location of the library.
13314 ;;
13315 esac
13316
13317 case $cc_basename in
13318 CC*)
13319 # FIXME: insert proper C++ library support
13320 ld_shlibs_CXX=no
13321 ;;
13322 aCC*)
13323 case $host_cpu in
13324 hppa*64*)
13325 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13326 ;;
13327 ia64*)
13328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13329 ;;
13330 *)
13331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13332 ;;
13333 esac
13334 # Commands to make compiler produce verbose output that lists
13335 # what "hidden" libraries, object files and flags are used when
13336 # linking a shared library.
13337 #
13338 # There doesn't appear to be a way to prevent this compiler from
13339 # explicitly linking system object files so we need to strip them
13340 # from the output so that they don't get included in the library
13341 # dependencies.
13342 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"'
13343 ;;
13344 *)
13345 if test "$GXX" = yes; then
13346 if test $with_gnu_ld = no; then
13347 case $host_cpu in
13348 hppa*64*)
13349 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13350 ;;
13351 ia64*)
13352 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353 ;;
13354 *)
13355 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'
13356 ;;
13357 esac
13358 fi
13359 else
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 fi
13363 ;;
13364 esac
13365 ;;
13366
13367 interix[3-9]*)
13368 hardcode_direct_CXX=no
13369 hardcode_shlibpath_var_CXX=no
13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13371 export_dynamic_flag_spec_CXX='${wl}-E'
13372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13373 # Instead, shared libraries are loaded at an image base (0x10000000 by
13374 # default) and relocated if they conflict, which is a slow very memory
13375 # consuming and fragmenting process. To avoid this, we pick a random,
13376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13378 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'
13379 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'
13380 ;;
13381 irix5* | irix6*)
13382 case $cc_basename in
13383 CC*)
13384 # SGI C++
13385 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'
13386
13387 # Archives containing C++ object files must be created using
13388 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13389 # necessary to make sure instantiated templates are included
13390 # in the archive.
13391 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13392 ;;
13393 *)
13394 if test "$GXX" = yes; then
13395 if test "$with_gnu_ld" = no; then
13396 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'
13397 else
13398 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'
13399 fi
13400 fi
13401 link_all_deplibs_CXX=yes
13402 ;;
13403 esac
13404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13405 hardcode_libdir_separator_CXX=:
13406 inherit_rpath_CXX=yes
13407 ;;
13408
13409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13410 case $cc_basename in
13411 KCC*)
13412 # Kuck and Associates, Inc. (KAI) C++ Compiler
13413
13414 # KCC will only create a shared library if the output file
13415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13416 # to its proper name (with version) after linking.
13417 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'
13418 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'
13419 # Commands to make compiler produce verbose output that lists
13420 # what "hidden" libraries, object files and flags are used when
13421 # linking a shared library.
13422 #
13423 # There doesn't appear to be a way to prevent this compiler from
13424 # explicitly linking system object files so we need to strip them
13425 # from the output so that they don't get included in the library
13426 # dependencies.
13427 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"'
13428
13429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13431
13432 # Archives containing C++ object files must be created using
13433 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13434 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13435 ;;
13436 icpc* | ecpc* )
13437 # Intel C++
13438 with_gnu_ld=yes
13439 # version 8.0 and above of icpc choke on multiply defined symbols
13440 # if we add $predep_objects and $postdep_objects, however 7.1 and
13441 # earlier do not add the objects themselves.
13442 case `$CC -V 2>&1` in
13443 *"Version 7."*)
13444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445 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'
13446 ;;
13447 *) # Version 8.0 or newer
13448 tmp_idyn=
13449 case $host_cpu in
13450 ia64*) tmp_idyn=' -i_dynamic';;
13451 esac
13452 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453 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'
13454 ;;
13455 esac
13456 archive_cmds_need_lc_CXX=no
13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13459 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13460 ;;
13461 pgCC* | pgcpp*)
13462 # Portland Group C++ compiler
13463 case `$CC -V` in
13464 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13465 prelink_cmds_CXX='tpldir=Template.dir~
13466 rm -rf $tpldir~
13467 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13468 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13469 old_archive_cmds_CXX='tpldir=Template.dir~
13470 rm -rf $tpldir~
13471 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13472 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13473 $RANLIB $oldlib'
13474 archive_cmds_CXX='tpldir=Template.dir~
13475 rm -rf $tpldir~
13476 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13477 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13478 archive_expsym_cmds_CXX='tpldir=Template.dir~
13479 rm -rf $tpldir~
13480 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13481 $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'
13482 ;;
13483 *) # Version 6 and above use weak symbols
13484 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13485 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'
13486 ;;
13487 esac
13488
13489 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13491 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'
13492 ;;
13493 cxx*)
13494 # Compaq C++
13495 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13496 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'
13497
13498 runpath_var=LD_RUN_PATH
13499 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13500 hardcode_libdir_separator_CXX=:
13501
13502 # Commands to make compiler produce verbose output that lists
13503 # what "hidden" libraries, object files and flags are used when
13504 # linking a shared library.
13505 #
13506 # There doesn't appear to be a way to prevent this compiler from
13507 # explicitly linking system object files so we need to strip them
13508 # from the output so that they don't get included in the library
13509 # dependencies.
13510 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'
13511 ;;
13512 xl* | mpixl* | bgxl*)
13513 # IBM XL 8.0 on PPC, with GNU ld
13514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13516 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13517 if test "x$supports_anon_versioning" = xyes; then
13518 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13520 echo "local: *; };" >> $output_objdir/$libname.ver~
13521 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13522 fi
13523 ;;
13524 *)
13525 case `$CC -V 2>&1 | sed 5q` in
13526 *Sun\ C*)
13527 # Sun C++ 5.9
13528 no_undefined_flag_CXX=' -zdefs'
13529 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13530 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'
13531 hardcode_libdir_flag_spec_CXX='-R$libdir'
13532 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'
13533 compiler_needs_object_CXX=yes
13534
13535 # Not sure whether something based on
13536 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13537 # would be better.
13538 output_verbose_link_cmd='func_echo_all'
13539
13540 # Archives containing C++ object files must be created using
13541 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13542 # necessary to make sure instantiated templates are included
13543 # in the archive.
13544 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13545 ;;
13546 esac
13547 ;;
13548 esac
13549 ;;
13550
13551 lynxos*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555
13556 m88k*)
13557 # FIXME: insert proper C++ library support
13558 ld_shlibs_CXX=no
13559 ;;
13560
13561 mvs*)
13562 case $cc_basename in
13563 cxx*)
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13566 ;;
13567 *)
13568 # FIXME: insert proper C++ library support
13569 ld_shlibs_CXX=no
13570 ;;
13571 esac
13572 ;;
13573
13574 netbsd*)
13575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13576 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13577 wlarc=
13578 hardcode_libdir_flag_spec_CXX='-R$libdir'
13579 hardcode_direct_CXX=yes
13580 hardcode_shlibpath_var_CXX=no
13581 fi
13582 # Workaround some broken pre-1.5 toolchains
13583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13584 ;;
13585
13586 *nto* | *qnx*)
13587 ld_shlibs_CXX=yes
13588 ;;
13589
13590 openbsd2*)
13591 # C++ shared libraries are fairly broken
13592 ld_shlibs_CXX=no
13593 ;;
13594
13595 openbsd*)
13596 if test -f /usr/libexec/ld.so; then
13597 hardcode_direct_CXX=yes
13598 hardcode_shlibpath_var_CXX=no
13599 hardcode_direct_absolute_CXX=yes
13600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13603 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13604 export_dynamic_flag_spec_CXX='${wl}-E'
13605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13606 fi
13607 output_verbose_link_cmd=func_echo_all
13608 else
13609 ld_shlibs_CXX=no
13610 fi
13611 ;;
13612
13613 osf3* | osf4* | osf5*)
13614 case $cc_basename in
13615 KCC*)
13616 # Kuck and Associates, Inc. (KAI) C++ Compiler
13617
13618 # KCC will only create a shared library if the output file
13619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13620 # to its proper name (with version) after linking.
13621 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'
13622
13623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13624 hardcode_libdir_separator_CXX=:
13625
13626 # Archives containing C++ object files must be created using
13627 # the KAI C++ compiler.
13628 case $host in
13629 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13630 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13631 esac
13632 ;;
13633 RCC*)
13634 # Rational C++ 2.4.1
13635 # FIXME: insert proper C++ library support
13636 ld_shlibs_CXX=no
13637 ;;
13638 cxx*)
13639 case $host in
13640 osf3*)
13641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13642 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'
13643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13644 ;;
13645 *)
13646 allow_undefined_flag_CXX=' -expect_unresolved \*'
13647 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'
13648 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13649 echo "-hidden">> $lib.exp~
13650 $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~
13651 $RM $lib.exp'
13652 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13653 ;;
13654 esac
13655
13656 hardcode_libdir_separator_CXX=:
13657
13658 # Commands to make compiler produce verbose output that lists
13659 # what "hidden" libraries, object files and flags are used when
13660 # linking a shared library.
13661 #
13662 # There doesn't appear to be a way to prevent this compiler from
13663 # explicitly linking system object files so we need to strip them
13664 # from the output so that they don't get included in the library
13665 # dependencies.
13666 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"'
13667 ;;
13668 *)
13669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13670 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13671 case $host in
13672 osf3*)
13673 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'
13674 ;;
13675 *)
13676 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'
13677 ;;
13678 esac
13679
13680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13681 hardcode_libdir_separator_CXX=:
13682
13683 # Commands to make compiler produce verbose output that lists
13684 # what "hidden" libraries, object files and flags are used when
13685 # linking a shared library.
13686 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13687
13688 else
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13691 fi
13692 ;;
13693 esac
13694 ;;
13695
13696 psos*)
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 ;;
13700
13701 sunos4*)
13702 case $cc_basename in
13703 CC*)
13704 # Sun C++ 4.x
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 lcc*)
13709 # Lucid
13710 # FIXME: insert proper C++ library support
13711 ld_shlibs_CXX=no
13712 ;;
13713 *)
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13716 ;;
13717 esac
13718 ;;
13719
13720 solaris*)
13721 case $cc_basename in
13722 CC*)
13723 # Sun C++ 4.2, 5.x and Centerline C++
13724 archive_cmds_need_lc_CXX=yes
13725 no_undefined_flag_CXX=' -zdefs'
13726 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13728 $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'
13729
13730 hardcode_libdir_flag_spec_CXX='-R$libdir'
13731 hardcode_shlibpath_var_CXX=no
13732 case $host_os in
13733 solaris2.[0-5] | solaris2.[0-5].*) ;;
13734 *)
13735 # The compiler driver will combine and reorder linker options,
13736 # but understands `-z linker_flag'.
13737 # Supported since Solaris 2.6 (maybe 2.5.1?)
13738 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13739 ;;
13740 esac
13741 link_all_deplibs_CXX=yes
13742
13743 output_verbose_link_cmd='func_echo_all'
13744
13745 # Archives containing C++ object files must be created using
13746 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13747 # necessary to make sure instantiated templates are included
13748 # in the archive.
13749 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13750 ;;
13751 gcx*)
13752 # Green Hills C++ Compiler
13753 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13754
13755 # The C++ compiler must be used to create the archive.
13756 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13757 ;;
13758 *)
13759 # GNU C++ compiler with Solaris linker
13760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13761 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13762 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13763 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13765 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13766
13767 # Commands to make compiler produce verbose output that lists
13768 # what "hidden" libraries, object files and flags are used when
13769 # linking a shared library.
13770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13771 else
13772 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13773 # platform.
13774 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13775 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13776 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13777
13778 # Commands to make compiler produce verbose output that lists
13779 # what "hidden" libraries, object files and flags are used when
13780 # linking a shared library.
13781 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13782 fi
13783
13784 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13785 case $host_os in
13786 solaris2.[0-5] | solaris2.[0-5].*) ;;
13787 *)
13788 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13789 ;;
13790 esac
13791 fi
13792 ;;
13793 esac
13794 ;;
13795
13796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13797 no_undefined_flag_CXX='${wl}-z,text'
13798 archive_cmds_need_lc_CXX=no
13799 hardcode_shlibpath_var_CXX=no
13800 runpath_var='LD_RUN_PATH'
13801
13802 case $cc_basename in
13803 CC*)
13804 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13806 ;;
13807 *)
13808 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 ;;
13811 esac
13812 ;;
13813
13814 sysv5* | sco3.2v5* | sco5v6*)
13815 # Note: We can NOT use -z defs as we might desire, because we do not
13816 # link with -lc, and that would cause any symbols used from libc to
13817 # always be unresolved, which means just about no library would
13818 # ever link correctly. If we're not using GNU ld we use -z text
13819 # though, which does catch some bad symbols but isn't as heavy-handed
13820 # as -z defs.
13821 no_undefined_flag_CXX='${wl}-z,text'
13822 allow_undefined_flag_CXX='${wl}-z,nodefs'
13823 archive_cmds_need_lc_CXX=no
13824 hardcode_shlibpath_var_CXX=no
13825 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13826 hardcode_libdir_separator_CXX=':'
13827 link_all_deplibs_CXX=yes
13828 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13829 runpath_var='LD_RUN_PATH'
13830
13831 case $cc_basename in
13832 CC*)
13833 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13836 '"$old_archive_cmds_CXX"
13837 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13838 '"$reload_cmds_CXX"
13839 ;;
13840 *)
13841 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 ;;
13844 esac
13845 ;;
13846
13847 tandem*)
13848 case $cc_basename in
13849 NCC*)
13850 # NonStop-UX NCC 3.20
13851 # FIXME: insert proper C++ library support
13852 ld_shlibs_CXX=no
13853 ;;
13854 *)
13855 # FIXME: insert proper C++ library support
13856 ld_shlibs_CXX=no
13857 ;;
13858 esac
13859 ;;
13860
13861 vxworks*)
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13864 ;;
13865
13866 *)
13867 # FIXME: insert proper C++ library support
13868 ld_shlibs_CXX=no
13869 ;;
13870 esac
13871
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13873$as_echo "$ld_shlibs_CXX" >&6; }
13874 test "$ld_shlibs_CXX" = no && can_build_shared=no
13875
13876 GCC_CXX="$GXX"
13877 LD_CXX="$LD"
13878
13879 ## CAVEAT EMPTOR:
13880 ## There is no encapsulation within the following macros, do not change
13881 ## the running order or otherwise move them around unless you know exactly
13882 ## what you are doing...
13883 # Dependencies to place before and after the object being linked:
13884predep_objects_CXX=
13885postdep_objects_CXX=
13886predeps_CXX=
13887postdeps_CXX=
13888compiler_lib_search_path_CXX=
13889
13890cat > conftest.$ac_ext <<_LT_EOF
13891class Foo
13892{
13893public:
13894 Foo (void) { a = 0; }
13895private:
13896 int a;
13897};
13898_LT_EOF
13899
13900if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13901 (eval $ac_compile) 2>&5
13902 ac_status=$?
13903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904 test $ac_status = 0; }; then
13905 # Parse the compiler output and extract the necessary
13906 # objects, libraries and library flags.
13907
13908 # Sentinel used to keep track of whether or not we are before
13909 # the conftest object file.
13910 pre_test_object_deps_done=no
13911
13912 for p in `eval "$output_verbose_link_cmd"`; do
13913 case $p in
13914
13915 -L* | -R* | -l*)
13916 # Some compilers place space between "-{L,R}" and the path.
13917 # Remove the space.
13918 if test $p = "-L" ||
13919 test $p = "-R"; then
13920 prev=$p
13921 continue
13922 else
13923 prev=
13924 fi
13925
13926 if test "$pre_test_object_deps_done" = no; then
13927 case $p in
13928 -L* | -R*)
13929 # Internal compiler library paths should come after those
13930 # provided the user. The postdeps already come after the
13931 # user supplied libs so there is no need to process them.
13932 if test -z "$compiler_lib_search_path_CXX"; then
13933 compiler_lib_search_path_CXX="${prev}${p}"
13934 else
13935 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13936 fi
13937 ;;
13938 # The "-l" case would never come before the object being
13939 # linked, so don't bother handling this case.
13940 esac
13941 else
13942 if test -z "$postdeps_CXX"; then
13943 postdeps_CXX="${prev}${p}"
13944 else
13945 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13946 fi
13947 fi
13948 ;;
13949
13950 *.$objext)
13951 # This assumes that the test object file only shows up
13952 # once in the compiler output.
13953 if test "$p" = "conftest.$objext"; then
13954 pre_test_object_deps_done=yes
13955 continue
13956 fi
13957
13958 if test "$pre_test_object_deps_done" = no; then
13959 if test -z "$predep_objects_CXX"; then
13960 predep_objects_CXX="$p"
13961 else
13962 predep_objects_CXX="$predep_objects_CXX $p"
13963 fi
13964 else
13965 if test -z "$postdep_objects_CXX"; then
13966 postdep_objects_CXX="$p"
13967 else
13968 postdep_objects_CXX="$postdep_objects_CXX $p"
13969 fi
13970 fi
13971 ;;
13972
13973 *) ;; # Ignore the rest.
13974
13975 esac
13976 done
13977
13978 # Clean up.
13979 rm -f a.out a.exe
13980else
13981 echo "libtool.m4: error: problem compiling CXX test program"
13982fi
13983
13984$RM -f confest.$objext
13985
13986# PORTME: override above test on systems where it is broken
13987case $host_os in
13988interix[3-9]*)
13989 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13990 # hack all around it, let's just trust "g++" to DTRT.
13991 predep_objects_CXX=
13992 postdep_objects_CXX=
13993 postdeps_CXX=
13994 ;;
13995
13996linux*)
13997 case `$CC -V 2>&1 | sed 5q` in
13998 *Sun\ C*)
13999 # Sun C++ 5.9
14000
14001 # The more standards-conforming stlport4 library is
14002 # incompatible with the Cstd library. Avoid specifying
14003 # it if it's in CXXFLAGS. Ignore libCrun as
14004 # -library=stlport4 depends on it.
14005 case " $CXX $CXXFLAGS " in
14006 *" -library=stlport4 "*)
14007 solaris_use_stlport4=yes
14008 ;;
14009 esac
14010
14011 if test "$solaris_use_stlport4" != yes; then
14012 postdeps_CXX='-library=Cstd -library=Crun'
14013 fi
14014 ;;
14015 esac
14016 ;;
14017
14018solaris*)
14019 case $cc_basename in
14020 CC*)
14021 # The more standards-conforming stlport4 library is
14022 # incompatible with the Cstd library. Avoid specifying
14023 # it if it's in CXXFLAGS. Ignore libCrun as
14024 # -library=stlport4 depends on it.
14025 case " $CXX $CXXFLAGS " in
14026 *" -library=stlport4 "*)
14027 solaris_use_stlport4=yes
14028 ;;
14029 esac
14030
14031 # Adding this requires a known-good setup of shared libraries for
14032 # Sun compiler versions before 5.6, else PIC objects from an old
14033 # archive will be linked into the output, leading to subtle bugs.
14034 if test "$solaris_use_stlport4" != yes; then
14035 postdeps_CXX='-library=Cstd -library=Crun'
14036 fi
14037 ;;
14038 esac
14039 ;;
14040esac
14041
14042
14043case " $postdeps_CXX " in
14044*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14045esac
14046 compiler_lib_search_dirs_CXX=
14047if test -n "${compiler_lib_search_path_CXX}"; then
14048 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14049fi
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081 lt_prog_compiler_wl_CXX=
14082lt_prog_compiler_pic_CXX=
14083lt_prog_compiler_static_CXX=
14084
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14086$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14087
14088 # C++ specific cases for pic, static, wl, etc.
14089 if test "$GXX" = yes; then
14090 lt_prog_compiler_wl_CXX='-Wl,'
14091 lt_prog_compiler_static_CXX='-static'
14092
14093 case $host_os in
14094 aix*)
14095 # All AIX code is PIC.
14096 if test "$host_cpu" = ia64; then
14097 # AIX 5 now supports IA64 processor
14098 lt_prog_compiler_static_CXX='-Bstatic'
14099 fi
52204357 14100 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
14101 ;;
14102
14103 amigaos*)
14104 case $host_cpu in
14105 powerpc)
14106 # see comment about AmigaOS4 .so support
14107 lt_prog_compiler_pic_CXX='-fPIC'
14108 ;;
14109 m68k)
14110 # FIXME: we need at least 68020 code to build shared libraries, but
14111 # adding the `-m68020' flag to GCC prevents building anything better,
14112 # like `-m68040'.
14113 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14114 ;;
14115 esac
14116 ;;
14117
14118 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14119 # PIC is the default for these OSes.
14120 ;;
14121 mingw* | cygwin* | os2* | pw32* | cegcc*)
14122 # This hack is so that the source file can tell whether it is being
14123 # built for inclusion in a dll (and should export symbols for example).
14124 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14125 # (--disable-auto-import) libraries
14126 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14127 ;;
14128 darwin* | rhapsody*)
14129 # PIC is the default on this platform
14130 # Common symbols not allowed in MH_DYLIB files
14131 lt_prog_compiler_pic_CXX='-fno-common'
14132 ;;
14133 *djgpp*)
14134 # DJGPP does not support shared libraries at all
14135 lt_prog_compiler_pic_CXX=
14136 ;;
14137 haiku*)
14138 # PIC is the default for Haiku.
14139 # The "-static" flag exists, but is broken.
14140 lt_prog_compiler_static_CXX=
14141 ;;
14142 interix[3-9]*)
14143 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14144 # Instead, we relocate shared libraries at runtime.
14145 ;;
14146 sysv4*MP*)
14147 if test -d /usr/nec; then
14148 lt_prog_compiler_pic_CXX=-Kconform_pic
14149 fi
14150 ;;
14151 hpux*)
14152 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14153 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14154 # sets the default TLS model and affects inlining.
14155 case $host_cpu in
14156 hppa*64*)
14157 ;;
14158 *)
14159 lt_prog_compiler_pic_CXX='-fPIC'
14160 ;;
14161 esac
14162 ;;
14163 *qnx* | *nto*)
14164 # QNX uses GNU C++, but need to define -shared option too, otherwise
14165 # it will coredump.
14166 lt_prog_compiler_pic_CXX='-fPIC -shared'
14167 ;;
14168 *)
14169 lt_prog_compiler_pic_CXX='-fPIC'
14170 ;;
14171 esac
14172 else
14173 case $host_os in
14174 aix[4-9]*)
14175 # All AIX code is PIC.
14176 if test "$host_cpu" = ia64; then
14177 # AIX 5 now supports IA64 processor
14178 lt_prog_compiler_static_CXX='-Bstatic'
14179 else
14180 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14181 fi
14182 ;;
14183 chorus*)
14184 case $cc_basename in
14185 cxch68*)
14186 # Green Hills C++ Compiler
14187 # _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"
14188 ;;
14189 esac
14190 ;;
14191 dgux*)
14192 case $cc_basename in
14193 ec++*)
14194 lt_prog_compiler_pic_CXX='-KPIC'
14195 ;;
14196 ghcx*)
14197 # Green Hills C++ Compiler
14198 lt_prog_compiler_pic_CXX='-pic'
14199 ;;
14200 *)
14201 ;;
14202 esac
14203 ;;
14204 freebsd* | dragonfly*)
14205 # FreeBSD uses GNU C++
14206 ;;
14207 hpux9* | hpux10* | hpux11*)
14208 case $cc_basename in
14209 CC*)
14210 lt_prog_compiler_wl_CXX='-Wl,'
14211 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14212 if test "$host_cpu" != ia64; then
14213 lt_prog_compiler_pic_CXX='+Z'
14214 fi
14215 ;;
14216 aCC*)
14217 lt_prog_compiler_wl_CXX='-Wl,'
14218 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14219 case $host_cpu in
14220 hppa*64*|ia64*)
14221 # +Z the default
14222 ;;
14223 *)
14224 lt_prog_compiler_pic_CXX='+Z'
14225 ;;
14226 esac
14227 ;;
14228 *)
14229 ;;
14230 esac
14231 ;;
14232 interix*)
14233 # This is c89, which is MS Visual C++ (no shared libs)
14234 # Anyone wants to do a port?
14235 ;;
14236 irix5* | irix6* | nonstopux*)
14237 case $cc_basename in
14238 CC*)
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_static_CXX='-non_shared'
14241 # CC pic flag -KPIC is the default.
14242 ;;
14243 *)
14244 ;;
14245 esac
14246 ;;
14247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14248 case $cc_basename in
14249 KCC*)
14250 # KAI C++ Compiler
14251 lt_prog_compiler_wl_CXX='--backend -Wl,'
14252 lt_prog_compiler_pic_CXX='-fPIC'
14253 ;;
14254 ecpc* )
14255 # old Intel C++ for x86_64 which still supported -KPIC.
14256 lt_prog_compiler_wl_CXX='-Wl,'
14257 lt_prog_compiler_pic_CXX='-KPIC'
14258 lt_prog_compiler_static_CXX='-static'
14259 ;;
14260 icpc* )
14261 # Intel C++, used to be incompatible with GCC.
14262 # ICC 10 doesn't accept -KPIC any more.
14263 lt_prog_compiler_wl_CXX='-Wl,'
14264 lt_prog_compiler_pic_CXX='-fPIC'
14265 lt_prog_compiler_static_CXX='-static'
14266 ;;
14267 pgCC* | pgcpp*)
14268 # Portland Group C++ compiler
14269 lt_prog_compiler_wl_CXX='-Wl,'
14270 lt_prog_compiler_pic_CXX='-fpic'
14271 lt_prog_compiler_static_CXX='-Bstatic'
14272 ;;
14273 cxx*)
14274 # Compaq C++
14275 # Make sure the PIC flag is empty. It appears that all Alpha
14276 # Linux and Compaq Tru64 Unix objects are PIC.
14277 lt_prog_compiler_pic_CXX=
14278 lt_prog_compiler_static_CXX='-non_shared'
14279 ;;
14280 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14281 # IBM XL 8.0, 9.0 on PPC and BlueGene
14282 lt_prog_compiler_wl_CXX='-Wl,'
14283 lt_prog_compiler_pic_CXX='-qpic'
14284 lt_prog_compiler_static_CXX='-qstaticlink'
14285 ;;
14286 *)
14287 case `$CC -V 2>&1 | sed 5q` in
14288 *Sun\ C*)
14289 # Sun C++ 5.9
14290 lt_prog_compiler_pic_CXX='-KPIC'
14291 lt_prog_compiler_static_CXX='-Bstatic'
14292 lt_prog_compiler_wl_CXX='-Qoption ld '
14293 ;;
14294 esac
14295 ;;
14296 esac
14297 ;;
14298 lynxos*)
14299 ;;
14300 m88k*)
14301 ;;
14302 mvs*)
14303 case $cc_basename in
14304 cxx*)
14305 lt_prog_compiler_pic_CXX='-W c,exportall'
14306 ;;
14307 *)
14308 ;;
14309 esac
14310 ;;
14311 netbsd*)
14312 ;;
14313 *qnx* | *nto*)
14314 # QNX uses GNU C++, but need to define -shared option too, otherwise
14315 # it will coredump.
14316 lt_prog_compiler_pic_CXX='-fPIC -shared'
14317 ;;
14318 osf3* | osf4* | osf5*)
14319 case $cc_basename in
14320 KCC*)
14321 lt_prog_compiler_wl_CXX='--backend -Wl,'
14322 ;;
14323 RCC*)
14324 # Rational C++ 2.4.1
14325 lt_prog_compiler_pic_CXX='-pic'
14326 ;;
14327 cxx*)
14328 # Digital/Compaq C++
14329 lt_prog_compiler_wl_CXX='-Wl,'
14330 # Make sure the PIC flag is empty. It appears that all Alpha
14331 # Linux and Compaq Tru64 Unix objects are PIC.
14332 lt_prog_compiler_pic_CXX=
14333 lt_prog_compiler_static_CXX='-non_shared'
14334 ;;
14335 *)
14336 ;;
14337 esac
14338 ;;
14339 psos*)
14340 ;;
14341 solaris*)
14342 case $cc_basename in
14343 CC*)
14344 # Sun C++ 4.2, 5.x and Centerline C++
14345 lt_prog_compiler_pic_CXX='-KPIC'
14346 lt_prog_compiler_static_CXX='-Bstatic'
14347 lt_prog_compiler_wl_CXX='-Qoption ld '
14348 ;;
14349 gcx*)
14350 # Green Hills C++ Compiler
14351 lt_prog_compiler_pic_CXX='-PIC'
14352 ;;
14353 *)
14354 ;;
14355 esac
14356 ;;
14357 sunos4*)
14358 case $cc_basename in
14359 CC*)
14360 # Sun C++ 4.x
14361 lt_prog_compiler_pic_CXX='-pic'
14362 lt_prog_compiler_static_CXX='-Bstatic'
14363 ;;
14364 lcc*)
14365 # Lucid
14366 lt_prog_compiler_pic_CXX='-pic'
14367 ;;
14368 *)
14369 ;;
14370 esac
14371 ;;
14372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14373 case $cc_basename in
14374 CC*)
14375 lt_prog_compiler_wl_CXX='-Wl,'
14376 lt_prog_compiler_pic_CXX='-KPIC'
14377 lt_prog_compiler_static_CXX='-Bstatic'
14378 ;;
14379 esac
14380 ;;
14381 tandem*)
14382 case $cc_basename in
14383 NCC*)
14384 # NonStop-UX NCC 3.20
14385 lt_prog_compiler_pic_CXX='-KPIC'
14386 ;;
14387 *)
14388 ;;
14389 esac
14390 ;;
14391 vxworks*)
14392 ;;
14393 *)
14394 lt_prog_compiler_can_build_shared_CXX=no
14395 ;;
14396 esac
14397 fi
14398
14399case $host_os in
14400 # For platforms which do not support PIC, -DPIC is meaningless:
14401 *djgpp*)
14402 lt_prog_compiler_pic_CXX=
14403 ;;
14404 *)
14405 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14406 ;;
14407esac
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14409$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14410
14411
14412
14413#
14414# Check to make sure the PIC flag actually works.
14415#
14416if test -n "$lt_prog_compiler_pic_CXX"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14418$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14419if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14420 $as_echo_n "(cached) " >&6
14421else
14422 lt_cv_prog_compiler_pic_works_CXX=no
14423 ac_outfile=conftest.$ac_objext
14424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14425 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14426 # Insert the option either (1) after the last *FLAGS variable, or
14427 # (2) before a word containing "conftest.", or (3) at the end.
14428 # Note that $ac_compile itself does not contain backslashes and begins
14429 # with a dollar sign (not a hyphen), so the echo should work correctly.
14430 # The option is referenced via a variable to avoid confusing sed.
14431 lt_compile=`echo "$ac_compile" | $SED \
14432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14434 -e 's:$: $lt_compiler_flag:'`
14435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14436 (eval "$lt_compile" 2>conftest.err)
14437 ac_status=$?
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 if (exit $ac_status) && test -s "$ac_outfile"; then
14441 # The compiler can only warn and ignore the option if not recognized
14442 # So say no if there are warnings other than the usual output.
14443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14446 lt_cv_prog_compiler_pic_works_CXX=yes
14447 fi
14448 fi
14449 $RM conftest*
14450
14451fi
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14453$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14454
14455if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14456 case $lt_prog_compiler_pic_CXX in
14457 "" | " "*) ;;
14458 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14459 esac
14460else
14461 lt_prog_compiler_pic_CXX=
14462 lt_prog_compiler_can_build_shared_CXX=no
14463fi
14464
14465fi
14466
14467
14468
14469#
14470# Check to make sure the static flag actually works.
14471#
14472wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14474$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14475if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477else
14478 lt_cv_prog_compiler_static_works_CXX=no
14479 save_LDFLAGS="$LDFLAGS"
14480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14483 # The linker can only warn and ignore the option if not recognized
14484 # So say no if there are warnings
14485 if test -s conftest.err; then
14486 # Append any errors to the config.log.
14487 cat conftest.err 1>&5
14488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490 if diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_static_works_CXX=yes
14492 fi
14493 else
14494 lt_cv_prog_compiler_static_works_CXX=yes
14495 fi
14496 fi
14497 $RM -r conftest*
14498 LDFLAGS="$save_LDFLAGS"
14499
14500fi
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14502$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14503
14504if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14505 :
14506else
14507 lt_prog_compiler_static_CXX=
14508fi
14509
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14514$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14515if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14517else
14518 lt_cv_prog_compiler_c_o_CXX=no
14519 $RM -r conftest 2>/dev/null
14520 mkdir conftest
14521 cd conftest
14522 mkdir out
14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524
14525 lt_compiler_flag="-o out/conftest2.$ac_objext"
14526 # Insert the option either (1) after the last *FLAGS variable, or
14527 # (2) before a word containing "conftest.", or (3) at the end.
14528 # Note that $ac_compile itself does not contain backslashes and begins
14529 # with a dollar sign (not a hyphen), so the echo should work correctly.
14530 lt_compile=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
14534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14535 (eval "$lt_compile" 2>out/conftest.err)
14536 ac_status=$?
14537 cat out/conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540 then
14541 # The compiler can only warn and ignore the option if not recognized
14542 # So say no if there are warnings
14543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14546 lt_cv_prog_compiler_c_o_CXX=yes
14547 fi
14548 fi
14549 chmod u+w . 2>&5
14550 $RM conftest*
14551 # SGI C++ compiler will create directory out/ii_files/ for
14552 # template instantiation
14553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14554 $RM out/* && rmdir out
14555 cd ..
14556 $RM -r conftest
14557 $RM conftest*
14558
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14561$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14562
14563
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14566$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14567if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569else
14570 lt_cv_prog_compiler_c_o_CXX=no
14571 $RM -r conftest 2>/dev/null
14572 mkdir conftest
14573 cd conftest
14574 mkdir out
14575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576
14577 lt_compiler_flag="-o out/conftest2.$ac_objext"
14578 # Insert the option either (1) after the last *FLAGS variable, or
14579 # (2) before a word containing "conftest.", or (3) at the end.
14580 # Note that $ac_compile itself does not contain backslashes and begins
14581 # with a dollar sign (not a hyphen), so the echo should work correctly.
14582 lt_compile=`echo "$ac_compile" | $SED \
14583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14585 -e 's:$: $lt_compiler_flag:'`
14586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14587 (eval "$lt_compile" 2>out/conftest.err)
14588 ac_status=$?
14589 cat out/conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14592 then
14593 # The compiler can only warn and ignore the option if not recognized
14594 # So say no if there are warnings
14595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14598 lt_cv_prog_compiler_c_o_CXX=yes
14599 fi
14600 fi
14601 chmod u+w . 2>&5
14602 $RM conftest*
14603 # SGI C++ compiler will create directory out/ii_files/ for
14604 # template instantiation
14605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14606 $RM out/* && rmdir out
14607 cd ..
14608 $RM -r conftest
14609 $RM conftest*
14610
14611fi
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14613$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14614
14615
14616
14617
14618hard_links="nottested"
14619if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14620 # do not overwrite the value of need_locks provided by the user
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14622$as_echo_n "checking if we can lock with hard links... " >&6; }
14623 hard_links=yes
14624 $RM conftest*
14625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14626 touch conftest.a
14627 ln conftest.a conftest.b 2>&5 || hard_links=no
14628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14630$as_echo "$hard_links" >&6; }
14631 if test "$hard_links" = no; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14633$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14634 need_locks=warn
14635 fi
14636else
14637 need_locks=no
14638fi
14639
14640
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14643$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14644
14645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14646 case $host_os in
14647 aix[4-9]*)
14648 # If we're using GNU nm, then we don't want the "-C" option.
14649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14650 # Also, AIX nm treats weak defined symbols like other global defined
14651 # symbols, whereas GNU nm marks them as "W".
14652 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14653 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'
14654 else
14655 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'
14656 fi
14657 ;;
14658 pw32*)
14659 export_symbols_cmds_CXX="$ltdll_cmds"
14660 ;;
14661 cygwin* | mingw* | cegcc*)
14662 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'
14663 ;;
14664 *)
14665 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14666 ;;
14667 esac
14668 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14669
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14671$as_echo "$ld_shlibs_CXX" >&6; }
14672test "$ld_shlibs_CXX" = no && can_build_shared=no
14673
14674with_gnu_ld_CXX=$with_gnu_ld
14675
14676
14677
14678
14679
14680
14681#
14682# Do we need to explicitly link libc?
14683#
14684case "x$archive_cmds_need_lc_CXX" in
14685x|xyes)
14686 # Assume -lc should be added
14687 archive_cmds_need_lc_CXX=yes
14688
14689 if test "$enable_shared" = yes && test "$GCC" = yes; then
14690 case $archive_cmds_CXX in
14691 *'~'*)
14692 # FIXME: we may have to deal with multi-command sequences.
14693 ;;
14694 '$CC '*)
14695 # Test whether the compiler implicitly links with -lc since on some
14696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14697 # to ld, don't add -lc before -lgcc.
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14699$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14700if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14701 $as_echo_n "(cached) " >&6
14702else
14703 $RM conftest*
14704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14705
14706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14707 (eval $ac_compile) 2>&5
14708 ac_status=$?
14709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14710 test $ac_status = 0; } 2>conftest.err; then
14711 soname=conftest
14712 lib=conftest
14713 libobjs=conftest.$ac_objext
14714 deplibs=
14715 wl=$lt_prog_compiler_wl_CXX
14716 pic_flag=$lt_prog_compiler_pic_CXX
14717 compiler_flags=-v
14718 linker_flags=-v
14719 verstring=
14720 output_objdir=.
14721 libname=conftest
14722 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14723 allow_undefined_flag_CXX=
14724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14725 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14726 ac_status=$?
14727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14728 test $ac_status = 0; }
14729 then
14730 lt_cv_archive_cmds_need_lc_CXX=no
14731 else
14732 lt_cv_archive_cmds_need_lc_CXX=yes
14733 fi
14734 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14735 else
14736 cat conftest.err 1>&5
14737 fi
14738 $RM conftest*
14739
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14742$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14743 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14744 ;;
14745 esac
14746 fi
14747 ;;
14748esac
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14814$as_echo_n "checking dynamic linker characteristics... " >&6; }
14815
14816library_names_spec=
14817libname_spec='lib$name'
14818soname_spec=
14819shrext_cmds=".so"
14820postinstall_cmds=
14821postuninstall_cmds=
14822finish_cmds=
14823finish_eval=
14824shlibpath_var=
14825shlibpath_overrides_runpath=unknown
14826version_type=none
14827dynamic_linker="$host_os ld.so"
14828sys_lib_dlsearch_path_spec="/lib /usr/lib"
14829need_lib_prefix=unknown
14830hardcode_into_libs=no
14831
14832# when you set need_version to no, make sure it does not cause -set_version
14833# flags to be left without arguments
14834need_version=unknown
14835
14836case $host_os in
14837aix3*)
14838 version_type=linux
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14840 shlibpath_var=LIBPATH
14841
14842 # AIX 3 has no versioning support, so we append a major version to the name.
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 ;;
14845
14846aix[4-9]*)
14847 version_type=linux
14848 need_lib_prefix=no
14849 need_version=no
14850 hardcode_into_libs=yes
14851 if test "$host_cpu" = ia64; then
14852 # AIX 5 supports IA64
14853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 else
14856 # With GCC up to 2.95.x, collect2 would create an import file
14857 # for dependence libraries. The import file would start with
14858 # the line `#! .'. This would cause the generated library to
14859 # depend on `.', always an invalid library. This was fixed in
14860 # development snapshots of GCC prior to 3.0.
14861 case $host_os in
14862 aix4 | aix4.[01] | aix4.[01].*)
14863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14864 echo ' yes '
14865 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14866 :
14867 else
14868 can_build_shared=no
14869 fi
14870 ;;
14871 esac
14872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14873 # soname into executable. Probably we can add versioning support to
14874 # collect2, so additional links can be useful in future.
14875 if test "$aix_use_runtimelinking" = yes; then
14876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14877 # instead of lib<name>.a to let people know that these are not
14878 # typical AIX shared libraries.
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 else
14881 # We preserve .a as extension for shared libraries through AIX4.2
14882 # and later when we are not doing run time linking.
14883 library_names_spec='${libname}${release}.a $libname.a'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 fi
14886 shlibpath_var=LIBPATH
14887 fi
14888 ;;
14889
14890amigaos*)
14891 case $host_cpu in
14892 powerpc)
14893 # Since July 2007 AmigaOS4 officially supports .so libraries.
14894 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 ;;
14897 m68k)
14898 library_names_spec='$libname.ixlibrary $libname.a'
14899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14900 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'
14901 ;;
14902 esac
14903 ;;
14904
14905beos*)
14906 library_names_spec='${libname}${shared_ext}'
14907 dynamic_linker="$host_os ld.so"
14908 shlibpath_var=LIBRARY_PATH
14909 ;;
14910
14911bsdi[45]*)
14912 version_type=linux
14913 need_version=no
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14920 # the default ld.so.conf also contains /usr/contrib/lib and
14921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14922 # libtool to hard-code these into programs
14923 ;;
14924
14925cygwin* | mingw* | pw32* | cegcc*)
14926 version_type=windows
14927 shrext_cmds=".dll"
14928 need_version=no
14929 need_lib_prefix=no
14930
14931 case $GCC,$host_os in
14932 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14933 library_names_spec='$libname.dll.a'
14934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14935 postinstall_cmds='base_file=`basename \${file}`~
14936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14937 dldir=$destdir/`dirname \$dlpath`~
14938 test -d \$dldir || mkdir -p \$dldir~
14939 $install_prog $dir/$dlname \$dldir/$dlname~
14940 chmod a+x \$dldir/$dlname~
14941 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14942 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14943 fi'
14944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14945 dlpath=$dir/\$dldll~
14946 $RM \$dlpath'
14947 shlibpath_overrides_runpath=yes
14948
14949 case $host_os in
14950 cygwin*)
14951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14953
14954 ;;
14955 mingw* | cegcc*)
14956 # MinGW DLLs use traditional 'lib' prefix
14957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958 ;;
14959 pw32*)
14960 # pw32 DLLs use 'pw' prefix rather than 'lib'
14961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14962 ;;
14963 esac
14964 ;;
14965
14966 *)
14967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14968 ;;
14969 esac
14970 dynamic_linker='Win32 ld.exe'
14971 # FIXME: first we should search . and the directory the executable is in
14972 shlibpath_var=PATH
14973 ;;
14974
14975darwin* | rhapsody*)
14976 dynamic_linker="$host_os dyld"
14977 version_type=darwin
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14981 soname_spec='${libname}${release}${major}$shared_ext'
14982 shlibpath_overrides_runpath=yes
14983 shlibpath_var=DYLD_LIBRARY_PATH
14984 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14985
14986 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14987 ;;
14988
14989dgux*)
14990 version_type=linux
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 ;;
14997
3cb62297
L
14998freebsd* | dragonfly*)
14999 # DragonFly does not have aout. When/if they implement a new
15000 # versioning mechanism, adjust this.
15001 if test -x /usr/bin/objformat; then
15002 objformat=`/usr/bin/objformat`
15003 else
15004 case $host_os in
6d2920c8 15005 freebsd[23].*) objformat=aout ;;
3cb62297
L
15006 *) objformat=elf ;;
15007 esac
15008 fi
15009 version_type=freebsd-$objformat
15010 case $version_type in
15011 freebsd-elf*)
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15013 need_version=no
15014 need_lib_prefix=no
15015 ;;
15016 freebsd-*)
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15018 need_version=yes
15019 ;;
15020 esac
15021 shlibpath_var=LD_LIBRARY_PATH
15022 case $host_os in
6d2920c8 15023 freebsd2.*)
3cb62297
L
15024 shlibpath_overrides_runpath=yes
15025 ;;
15026 freebsd3.[01]* | freebsdelf3.[01]*)
15027 shlibpath_overrides_runpath=yes
15028 hardcode_into_libs=yes
15029 ;;
15030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15032 shlibpath_overrides_runpath=no
15033 hardcode_into_libs=yes
15034 ;;
15035 *) # from 4.6 on, and DragonFly
15036 shlibpath_overrides_runpath=yes
15037 hardcode_into_libs=yes
15038 ;;
15039 esac
15040 ;;
15041
15042gnu*)
15043 version_type=linux
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 hardcode_into_libs=yes
15050 ;;
15051
15052haiku*)
15053 version_type=linux
15054 need_lib_prefix=no
15055 need_version=no
15056 dynamic_linker="$host_os runtime_loader"
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15059 shlibpath_var=LIBRARY_PATH
15060 shlibpath_overrides_runpath=yes
15061 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15062 hardcode_into_libs=yes
15063 ;;
15064
15065hpux9* | hpux10* | hpux11*)
15066 # Give a soname corresponding to the major version so that dld.sl refuses to
15067 # link against other versions.
15068 version_type=sunos
15069 need_lib_prefix=no
15070 need_version=no
15071 case $host_cpu in
15072 ia64*)
15073 shrext_cmds='.so'
15074 hardcode_into_libs=yes
15075 dynamic_linker="$host_os dld.so"
15076 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15080 if test "X$HPUX_IA64_MODE" = X32; then
15081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15082 else
15083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15084 fi
15085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15086 ;;
15087 hppa*64*)
15088 shrext_cmds='.sl'
15089 hardcode_into_libs=yes
15090 dynamic_linker="$host_os dld.sl"
15091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15097 ;;
15098 *)
15099 shrext_cmds='.sl'
15100 dynamic_linker="$host_os dld.sl"
15101 shlibpath_var=SHLIB_PATH
15102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 ;;
15106 esac
15107 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15108 postinstall_cmds='chmod 555 $lib'
15109 # or fails outright, so override atomically:
15110 install_override_mode=555
15111 ;;
15112
15113interix[3-9]*)
15114 version_type=linux
15115 need_lib_prefix=no
15116 need_version=no
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=no
15122 hardcode_into_libs=yes
15123 ;;
15124
15125irix5* | irix6* | nonstopux*)
15126 case $host_os in
15127 nonstopux*) version_type=nonstopux ;;
15128 *)
15129 if test "$lt_cv_prog_gnu_ld" = yes; then
15130 version_type=linux
15131 else
15132 version_type=irix
15133 fi ;;
15134 esac
15135 need_lib_prefix=no
15136 need_version=no
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15139 case $host_os in
15140 irix5* | nonstopux*)
15141 libsuff= shlibsuff=
15142 ;;
15143 *)
15144 case $LD in # libtool.m4 will add one of these switches to LD
15145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15146 libsuff= shlibsuff= libmagic=32-bit;;
15147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15148 libsuff=32 shlibsuff=N32 libmagic=N32;;
15149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15151 *) libsuff= shlibsuff= libmagic=never-match;;
15152 esac
15153 ;;
15154 esac
15155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15156 shlibpath_overrides_runpath=no
15157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15159 hardcode_into_libs=yes
15160 ;;
15161
15162# No shared lib support for Linux oldld, aout, or coff.
15163linux*oldld* | linux*aout* | linux*coff*)
15164 dynamic_linker=no
15165 ;;
15166
15167# This must be Linux ELF.
15168linux* | k*bsd*-gnu | kopensolaris*-gnu)
15169 version_type=linux
15170 need_lib_prefix=no
15171 need_version=no
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 shlibpath_overrides_runpath=no
15177
15178 # Some binutils ld are patched to set DT_RUNPATH
15179 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15181else
15182 lt_cv_shlibpath_overrides_runpath=no
15183 save_LDFLAGS=$LDFLAGS
15184 save_libdir=$libdir
15185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h. */
15189
15190int
15191main ()
15192{
15193
15194 ;
15195 return 0;
15196}
15197_ACEOF
15198if ac_fn_cxx_try_link "$LINENO"; then :
15199 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15200 lt_cv_shlibpath_overrides_runpath=yes
15201fi
15202fi
15203rm -f core conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LDFLAGS=$save_LDFLAGS
15206 libdir=$save_libdir
15207
15208fi
15209
15210 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15211
15212 # This implies no fast_install, which is unacceptable.
15213 # Some rework will be needed to allow for fast_install
15214 # before this can be enabled.
15215 hardcode_into_libs=yes
15216
15217 # Append ld.so.conf contents to the search path
15218 if test -f /etc/ld.so.conf; then
15219 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' ' '`
15220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15221 fi
15222
15223 # We used to test for /lib/ld.so.1 and disable shared libraries on
15224 # powerpc, because MkLinux only supported shared libraries with the
15225 # GNU dynamic linker. Since this was broken with cross compilers,
15226 # most powerpc-linux boxes support dynamic linking these days and
15227 # people can always --disable-shared, the test was removed, and we
15228 # assume the GNU/Linux dynamic linker is in use.
15229 dynamic_linker='GNU/Linux ld.so'
15230 ;;
15231
15232netbsd*)
15233 version_type=sunos
15234 need_lib_prefix=no
15235 need_version=no
15236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15239 dynamic_linker='NetBSD (a.out) ld.so'
15240 else
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 dynamic_linker='NetBSD ld.elf_so'
15244 fi
15245 shlibpath_var=LD_LIBRARY_PATH
15246 shlibpath_overrides_runpath=yes
15247 hardcode_into_libs=yes
15248 ;;
15249
15250newsos6)
15251 version_type=linux
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 shlibpath_var=LD_LIBRARY_PATH
15254 shlibpath_overrides_runpath=yes
15255 ;;
15256
15257*nto* | *qnx*)
15258 version_type=qnx
15259 need_lib_prefix=no
15260 need_version=no
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=no
15265 hardcode_into_libs=yes
15266 dynamic_linker='ldqnx.so'
15267 ;;
15268
15269openbsd*)
15270 version_type=sunos
15271 sys_lib_dlsearch_path_spec="/usr/lib"
15272 need_lib_prefix=no
15273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15274 case $host_os in
15275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15276 *) need_version=no ;;
15277 esac
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15282 case $host_os in
15283 openbsd2.[89] | openbsd2.[89].*)
15284 shlibpath_overrides_runpath=no
15285 ;;
15286 *)
15287 shlibpath_overrides_runpath=yes
15288 ;;
15289 esac
15290 else
15291 shlibpath_overrides_runpath=yes
15292 fi
15293 ;;
15294
15295os2*)
15296 libname_spec='$name'
15297 shrext_cmds=".dll"
15298 need_lib_prefix=no
15299 library_names_spec='$libname${shared_ext} $libname.a'
15300 dynamic_linker='OS/2 ld.exe'
15301 shlibpath_var=LIBPATH
15302 ;;
15303
15304osf3* | osf4* | osf5*)
15305 version_type=osf
15306 need_lib_prefix=no
15307 need_version=no
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15313 ;;
15314
15315rdos*)
15316 dynamic_linker=no
15317 ;;
15318
15319solaris*)
15320 version_type=linux
15321 need_lib_prefix=no
15322 need_version=no
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 hardcode_into_libs=yes
15328 # ldd complains unless libraries are executable
15329 postinstall_cmds='chmod +x $lib'
15330 ;;
15331
15332sunos4*)
15333 version_type=sunos
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15338 if test "$with_gnu_ld" = yes; then
15339 need_lib_prefix=no
15340 fi
15341 need_version=yes
15342 ;;
15343
15344sysv4 | sysv4.3*)
15345 version_type=linux
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 case $host_vendor in
15350 sni)
15351 shlibpath_overrides_runpath=no
15352 need_lib_prefix=no
15353 runpath_var=LD_RUN_PATH
15354 ;;
15355 siemens)
15356 need_lib_prefix=no
15357 ;;
15358 motorola)
15359 need_lib_prefix=no
15360 need_version=no
15361 shlibpath_overrides_runpath=no
15362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15363 ;;
15364 esac
15365 ;;
15366
15367sysv4*MP*)
15368 if test -d /usr/nec ;then
15369 version_type=linux
15370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15371 soname_spec='$libname${shared_ext}.$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 fi
15374 ;;
15375
15376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15377 version_type=freebsd-elf
15378 need_lib_prefix=no
15379 need_version=no
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 shlibpath_overrides_runpath=yes
15384 hardcode_into_libs=yes
15385 if test "$with_gnu_ld" = yes; then
15386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15387 else
15388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15389 case $host_os in
15390 sco3.2v5*)
15391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15392 ;;
15393 esac
15394 fi
15395 sys_lib_dlsearch_path_spec='/usr/lib'
15396 ;;
15397
15398tpf*)
15399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15400 version_type=linux
15401 need_lib_prefix=no
15402 need_version=no
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15407 ;;
15408
15409uts4*)
15410 version_type=linux
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 ;;
15415
15416*)
15417 dynamic_linker=no
15418 ;;
15419esac
15420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15421$as_echo "$dynamic_linker" >&6; }
15422test "$dynamic_linker" = no && can_build_shared=no
15423
15424variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15425if test "$GCC" = yes; then
15426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15427fi
15428
15429if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15431fi
15432if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15433 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15434fi
15435
3725885a 15436
ce2cded5 15437
ce2cded5 15438
ce2cded5 15439
d7040cdb 15440
ce2cded5 15441
ce2cded5 15442
ce2cded5 15443
d7040cdb 15444
ce2cded5
L
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
ce2cded5
L
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
3cb62297
L
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15474$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15475hardcode_action_CXX=
15476if test -n "$hardcode_libdir_flag_spec_CXX" ||
15477 test -n "$runpath_var_CXX" ||
15478 test "X$hardcode_automatic_CXX" = "Xyes" ; then
ce2cded5 15479
3cb62297
L
15480 # We can hardcode non-existent directories.
15481 if test "$hardcode_direct_CXX" != no &&
15482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15483 # have to relink, otherwise we might link with an installed library
15484 # when we should be linking with a yet-to-be-installed one
15485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15486 test "$hardcode_minus_L_CXX" != no; then
15487 # Linking always hardcodes the temporary library directory.
15488 hardcode_action_CXX=relink
15489 else
15490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15491 hardcode_action_CXX=immediate
15492 fi
15493else
15494 # We cannot hardcode anything, or else we can only hardcode existing
15495 # directories.
15496 hardcode_action_CXX=unsupported
15497fi
15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15499$as_echo "$hardcode_action_CXX" >&6; }
ce2cded5 15500
3cb62297
L
15501if test "$hardcode_action_CXX" = relink ||
15502 test "$inherit_rpath_CXX" = yes; then
15503 # Fast installation is not supported
15504 enable_fast_install=no
15505elif test "$shlibpath_overrides_runpath" = yes ||
15506 test "$enable_shared" = no; then
15507 # Fast installation is not necessary
15508 enable_fast_install=needless
15509fi
ce2cded5 15510
ce2cded5 15511
ce2cded5
L
15512
15513
15514
d7040cdb 15515
3cb62297
L
15516
15517 fi # test -n "$compiler"
15518
15519 CC=$lt_save_CC
15520 LDCXX=$LD
15521 LD=$lt_save_LD
15522 GCC=$lt_save_GCC
15523 with_gnu_ld=$lt_save_with_gnu_ld
15524 lt_cv_path_LDCXX=$lt_cv_path_LD
15525 lt_cv_path_LD=$lt_save_path_LD
15526 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15527 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15528fi # test "$_lt_caught_CXX_error" != yes
15529
d7040cdb
SE
15530ac_ext=c
15531ac_cpp='$CPP $CPPFLAGS'
15532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15534ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535
67310ccd
AM
15536
15537
d7040cdb
SE
15538
15539
d7040cdb 15540
d7040cdb 15541
d7040cdb 15542
ce2cded5
L
15543
15544
15545
15546
15547
81ecdfbb 15548 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
15549
15550
15551
15552
15553# Only expand once:
15554
d7040cdb
SE
15555
15556
3e4fe8ac 15557ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15558# If we haven't got the data from the intl directory,
15559# assume NLS is disabled.
15560USE_NLS=no
15561LIBINTL=
15562LIBINTL_DEP=
15563INCINTL=
15564XGETTEXT=
15565GMSGFMT=
15566POSUB=
15567
15568if test -f ../intl/config.intl; then
15569 . ../intl/config.intl
15570fi
81ecdfbb
RW
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15572$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15573if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15575$as_echo "no" >&6; }
d7040cdb 15576else
81ecdfbb
RW
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15578$as_echo "yes" >&6; }
d7040cdb 15579
81ecdfbb 15580$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15581
15582
81ecdfbb
RW
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15584$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15585 # Look for .po and .gmo files in the source directory.
15586 CATALOGS=
15587 XLINGUAS=
15588 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15589 # If there aren't any .gmo files the shell will give us the
15590 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15591 # weeded out.
15592 case "$cat" in *\**)
15593 continue;;
15594 esac
15595 # The quadruple backslash is collapsed to a double backslash
15596 # by the backticks, then collapsed again by the double quotes,
15597 # leaving us with one backslash in the sed expression (right
15598 # before the dot that mustn't act as a wildcard).
15599 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15600 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15601 # The user is allowed to set LINGUAS to a list of languages to
15602 # install catalogs for. If it's empty that means "all of them."
15603 if test "x$LINGUAS" = x; then
15604 CATALOGS="$CATALOGS $cat"
15605 XLINGUAS="$XLINGUAS $lang"
15606 else
15607 case "$LINGUAS" in *$lang*)
15608 CATALOGS="$CATALOGS $cat"
15609 XLINGUAS="$XLINGUAS $lang"
15610 ;;
15611 esac
15612 fi
15613 done
15614 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15616$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15617
15618
15619 DATADIRNAME=share
15620
15621 INSTOBJEXT=.mo
15622
15623 GENCAT=gencat
15624
15625 CATOBJEXT=.gmo
15626
15627fi
15628
15629 MKINSTALLDIRS=
15630 if test -n "$ac_aux_dir"; then
15631 case "$ac_aux_dir" in
15632 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15633 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15634 esac
15635 fi
15636 if test -z "$MKINSTALLDIRS"; then
15637 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15638 fi
15639
15640
15641
81ecdfbb
RW
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15643$as_echo_n "checking whether NLS is requested... " >&6; }
15644 # Check whether --enable-nls was given.
15645if test "${enable_nls+set}" = set; then :
15646 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15647else
15648 USE_NLS=yes
81ecdfbb
RW
15649fi
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15652$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15653
15654
15655
15656
15657
15658
15659# Prepare PATH_SEPARATOR.
15660# The user is always right.
15661if test "${PATH_SEPARATOR+set}" != set; then
15662 echo "#! /bin/sh" >conf$$.sh
15663 echo "exit 0" >>conf$$.sh
15664 chmod +x conf$$.sh
15665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15666 PATH_SEPARATOR=';'
15667 else
15668 PATH_SEPARATOR=:
15669 fi
15670 rm -f conf$$.sh
15671fi
15672
15673# Find out how to test for executable files. Don't use a zero-byte file,
15674# as systems may use methods other than mode bits to determine executability.
15675cat >conf$$.file <<_ASEOF
15676#! /bin/sh
15677exit 0
15678_ASEOF
15679chmod +x conf$$.file
15680if test -x conf$$.file >/dev/null 2>&1; then
15681 ac_executable_p="test -x"
15682else
15683 ac_executable_p="test -f"
15684fi
15685rm -f conf$$.file
15686
15687# Extract the first word of "msgfmt", so it can be a program name with args.
15688set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15690$as_echo_n "checking for $ac_word... " >&6; }
15691if test "${ac_cv_path_MSGFMT+set}" = set; then :
15692 $as_echo_n "(cached) " >&6
d7040cdb
SE
15693else
15694 case "$MSGFMT" in
15695 [\\/]* | ?:[\\/]*)
15696 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15697 ;;
15698 *)
15699 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15700 for ac_dir in $PATH; do
15701 IFS="$ac_save_IFS"
15702 test -z "$ac_dir" && ac_dir=.
15703 for ac_exec_ext in '' $ac_executable_extensions; do
15704 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15705 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15706 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15707 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15708 break 2
15709 fi
15710 fi
15711 done
15712 done
15713 IFS="$ac_save_IFS"
15714 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15715 ;;
15716esac
15717fi
15718MSGFMT="$ac_cv_path_MSGFMT"
15719if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15721$as_echo "$MSGFMT" >&6; }
d7040cdb 15722else
81ecdfbb
RW
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724$as_echo "no" >&6; }
d7040cdb
SE
15725fi
15726
15727 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15728set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15730$as_echo_n "checking for $ac_word... " >&6; }
15731if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15732 $as_echo_n "(cached) " >&6
d7040cdb
SE
15733else
15734 case $GMSGFMT in
15735 [\\/]* | ?:[\\/]*)
15736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15737 ;;
15738 *)
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740for as_dir in $PATH
15741do
15742 IFS=$as_save_IFS
15743 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15744 for ac_exec_ext in '' $ac_executable_extensions; do
15745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15746 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15748 break 2
15749 fi
15750done
81ecdfbb
RW
15751 done
15752IFS=$as_save_IFS
d7040cdb
SE
15753
15754 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15755 ;;
15756esac
15757fi
15758GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15759if test -n "$GMSGFMT"; then
81ecdfbb
RW
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15761$as_echo "$GMSGFMT" >&6; }
d7040cdb 15762else
81ecdfbb
RW
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764$as_echo "no" >&6; }
20e95c23 15765fi
42ecbf5e 15766
20e95c23 15767
252b5132 15768
81ecdfbb 15769
d7040cdb
SE
15770# Prepare PATH_SEPARATOR.
15771# The user is always right.
15772if test "${PATH_SEPARATOR+set}" != set; then
15773 echo "#! /bin/sh" >conf$$.sh
15774 echo "exit 0" >>conf$$.sh
15775 chmod +x conf$$.sh
15776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15777 PATH_SEPARATOR=';'
15778 else
15779 PATH_SEPARATOR=:
15780 fi
15781 rm -f conf$$.sh
20e95c23 15782fi
252b5132 15783
d7040cdb
SE
15784# Find out how to test for executable files. Don't use a zero-byte file,
15785# as systems may use methods other than mode bits to determine executability.
15786cat >conf$$.file <<_ASEOF
15787#! /bin/sh
15788exit 0
15789_ASEOF
15790chmod +x conf$$.file
15791if test -x conf$$.file >/dev/null 2>&1; then
15792 ac_executable_p="test -x"
20e95c23 15793else
d7040cdb
SE
15794 ac_executable_p="test -f"
15795fi
15796rm -f conf$$.file
20e95c23 15797
d7040cdb
SE
15798# Extract the first word of "xgettext", so it can be a program name with args.
15799set dummy xgettext; ac_word=$2
81ecdfbb
RW
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15801$as_echo_n "checking for $ac_word... " >&6; }
15802if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15803 $as_echo_n "(cached) " >&6
252b5132 15804else
d7040cdb
SE
15805 case "$XGETTEXT" in
15806 [\\/]* | ?:[\\/]*)
15807 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15808 ;;
15809 *)
15810 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15811 for ac_dir in $PATH; do
15812 IFS="$ac_save_IFS"
15813 test -z "$ac_dir" && ac_dir=.
15814 for ac_exec_ext in '' $ac_executable_extensions; do
15815 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15816 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15817 (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
15818 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15819 break 2
15820 fi
15821 fi
15822 done
15823 done
15824 IFS="$ac_save_IFS"
15825 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15826 ;;
15827esac
252b5132 15828fi
d7040cdb
SE
15829XGETTEXT="$ac_cv_path_XGETTEXT"
15830if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15832$as_echo "$XGETTEXT" >&6; }
d5fbea21 15833else
81ecdfbb
RW
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835$as_echo "no" >&6; }
d5fbea21
DJ
15836fi
15837
d7040cdb 15838 rm -f messages.po
d5fbea21 15839
20e95c23 15840
d7040cdb
SE
15841# Prepare PATH_SEPARATOR.
15842# The user is always right.
15843if test "${PATH_SEPARATOR+set}" != set; then
15844 echo "#! /bin/sh" >conf$$.sh
15845 echo "exit 0" >>conf$$.sh
15846 chmod +x conf$$.sh
15847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15848 PATH_SEPARATOR=';'
15849 else
15850 PATH_SEPARATOR=:
15851 fi
15852 rm -f conf$$.sh
15853fi
20e95c23 15854
d7040cdb
SE
15855# Find out how to test for executable files. Don't use a zero-byte file,
15856# as systems may use methods other than mode bits to determine executability.
15857cat >conf$$.file <<_ASEOF
15858#! /bin/sh
15859exit 0
15860_ASEOF
15861chmod +x conf$$.file
15862if test -x conf$$.file >/dev/null 2>&1; then
15863 ac_executable_p="test -x"
15864else
15865 ac_executable_p="test -f"
15866fi
15867rm -f conf$$.file
20e95c23 15868
d7040cdb
SE
15869# Extract the first word of "msgmerge", so it can be a program name with args.
15870set dummy msgmerge; ac_word=$2
81ecdfbb
RW
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15872$as_echo_n "checking for $ac_word... " >&6; }
15873if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
d7040cdb
SE
15875else
15876 case "$MSGMERGE" in
15877 [\\/]* | ?:[\\/]*)
15878 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15879 ;;
15880 *)
15881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15882 for ac_dir in $PATH; do
15883 IFS="$ac_save_IFS"
15884 test -z "$ac_dir" && ac_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15887 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15888 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15889 break 2
15890 fi
15891 fi
15892 done
15893 done
15894 IFS="$ac_save_IFS"
15895 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15896 ;;
15897esac
15898fi
15899MSGMERGE="$ac_cv_path_MSGMERGE"
15900if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15902$as_echo "$MSGMERGE" >&6; }
d7040cdb 15903else
81ecdfbb
RW
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15905$as_echo "no" >&6; }
d7040cdb 15906fi
20e95c23
DJ
15907
15908
d7040cdb
SE
15909 if test "$GMSGFMT" != ":"; then
15910 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15911 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15912 : ;
15913 else
15914 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15916$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
15917 GMSGFMT=":"
15918 fi
15919 fi
20e95c23 15920
d7040cdb
SE
15921 if test "$XGETTEXT" != ":"; then
15922 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15923 (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
15924 : ;
15925 else
81ecdfbb
RW
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15927$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
15928 XGETTEXT=":"
15929 fi
15930 rm -f messages.po
20e95c23 15931 fi
42ecbf5e 15932
81ecdfbb 15933 ac_config_commands="$ac_config_commands default-1"
252b5132 15934
42ecbf5e 15935
252b5132 15936
42ecbf5e
DJ
15937
15938
d7040cdb 15939for ac_prog in 'bison -y' byacc
20e95c23 15940do
d7040cdb
SE
15941 # Extract the first word of "$ac_prog", so it can be a program name with args.
15942set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15944$as_echo_n "checking for $ac_word... " >&6; }
15945if test "${ac_cv_prog_YACC+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
20e95c23 15947else
d7040cdb
SE
15948 if test -n "$YACC"; then
15949 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 15950else
d7040cdb
SE
15951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952for as_dir in $PATH
15953do
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15958 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15960 break 2
15961 fi
15962done
81ecdfbb
RW
15963 done
15964IFS=$as_save_IFS
42ecbf5e 15965
42ecbf5e 15966fi
e5a52504 15967fi
d7040cdb
SE
15968YACC=$ac_cv_prog_YACC
15969if test -n "$YACC"; then
81ecdfbb
RW
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15971$as_echo "$YACC" >&6; }
42ecbf5e 15972else
81ecdfbb
RW
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974$as_echo "no" >&6; }
42ecbf5e 15975fi
252b5132 15976
81ecdfbb 15977
d7040cdb 15978 test -n "$YACC" && break
42ecbf5e 15979done
d7040cdb 15980test -n "$YACC" || YACC="yacc"
d15b04bd 15981
d7040cdb
SE
15982for ac_prog in flex lex
15983do
15984 # Extract the first word of "$ac_prog", so it can be a program name with args.
15985set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987$as_echo_n "checking for $ac_word... " >&6; }
15988if test "${ac_cv_prog_LEX+set}" = set; then :
15989 $as_echo_n "(cached) " >&6
d15b04bd 15990else
d7040cdb
SE
15991 if test -n "$LEX"; then
15992 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15993else
15994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995for as_dir in $PATH
15996do
15997 IFS=$as_save_IFS
15998 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15999 for ac_exec_ext in '' $ac_executable_extensions; do
16000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16001 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16003 break 2
16004 fi
16005done
81ecdfbb
RW
16006 done
16007IFS=$as_save_IFS
d7040cdb
SE
16008
16009fi
16010fi
16011LEX=$ac_cv_prog_LEX
16012if test -n "$LEX"; then
81ecdfbb
RW
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16014$as_echo "$LEX" >&6; }
d7040cdb 16015else
81ecdfbb
RW
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017$as_echo "no" >&6; }
d15b04bd 16018fi
e5a52504 16019
81ecdfbb 16020
d7040cdb
SE
16021 test -n "$LEX" && break
16022done
16023test -n "$LEX" || LEX=":"
42ecbf5e 16024
81ecdfbb
RW
16025if test "x$LEX" != "x:"; then
16026 cat >conftest.l <<_ACEOF
16027%%
16028a { ECHO; }
16029b { REJECT; }
16030c { yymore (); }
16031d { yyless (1); }
16032e { yyless (input () != 0); }
16033f { unput (yytext[0]); }
16034. { BEGIN INITIAL; }
16035%%
16036#ifdef YYTEXT_POINTER
16037extern char *yytext;
d7040cdb 16038#endif
42ecbf5e 16039int
81ecdfbb 16040main (void)
42ecbf5e 16041{
81ecdfbb 16042 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16043}
16044_ACEOF
81ecdfbb
RW
16045{ { ac_try="$LEX conftest.l"
16046case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16049esac
16050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16051$as_echo "$ac_try_echo"; } >&5
16052 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16053 ac_status=$?
81ecdfbb
RW
16054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16055 test $ac_status = 0; }
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16057$as_echo_n "checking lex output file root... " >&6; }
16058if test "${ac_cv_prog_lex_root+set}" = set; then :
16059 $as_echo_n "(cached) " >&6
42ecbf5e 16060else
42ecbf5e 16061
81ecdfbb
RW
16062if test -f lex.yy.c; then
16063 ac_cv_prog_lex_root=lex.yy
16064elif test -f lexyy.c; then
16065 ac_cv_prog_lex_root=lexyy
16066else
16067 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16068fi
42ecbf5e 16069fi
81ecdfbb
RW
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16071$as_echo "$ac_cv_prog_lex_root" >&6; }
16072LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16073
81ecdfbb
RW
16074if test -z "${LEXLIB+set}"; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16076$as_echo_n "checking lex library... " >&6; }
16077if test "${ac_cv_lib_lex+set}" = set; then :
16078 $as_echo_n "(cached) " >&6
252b5132 16079else
20e95c23 16080
81ecdfbb
RW
16081 ac_save_LIBS=$LIBS
16082 ac_cv_lib_lex='none needed'
16083 for ac_lib in '' -lfl -ll; do
16084 LIBS="$ac_lib $ac_save_LIBS"
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086/* end confdefs.h. */
16087`cat $LEX_OUTPUT_ROOT.c`
16088_ACEOF
16089if ac_fn_c_try_link "$LINENO"; then :
16090 ac_cv_lib_lex=$ac_lib
20e95c23 16091fi
81ecdfbb
RW
16092rm -f core conftest.err conftest.$ac_objext \
16093 conftest$ac_exeext conftest.$ac_ext
16094 test "$ac_cv_lib_lex" != 'none needed' && break
16095 done
16096 LIBS=$ac_save_LIBS
20e95c23
DJ
16097
16098fi
81ecdfbb
RW
16099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16100$as_echo "$ac_cv_lib_lex" >&6; }
16101 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16102fi
20e95c23 16103
20e95c23 16104
81ecdfbb
RW
16105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16106$as_echo_n "checking whether yytext is a pointer... " >&6; }
16107if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16108 $as_echo_n "(cached) " >&6
d7040cdb
SE
16109else
16110 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16111# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16112# not all implementations provide the %pointer and %array declarations.
16113ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16114ac_save_LIBS=$LIBS
81ecdfbb
RW
16115LIBS="$LEXLIB $ac_save_LIBS"
16116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117/* end confdefs.h. */
16118#define YYTEXT_POINTER 1
d7040cdb 16119`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16120_ACEOF
81ecdfbb 16121if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16122 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16123fi
81ecdfbb
RW
16124rm -f core conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16126LIBS=$ac_save_LIBS
d7040cdb
SE
16127
16128fi
81ecdfbb
RW
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16130$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16131if test $ac_cv_prog_lex_yytext_pointer = yes; then
16132
81ecdfbb 16133$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16134
16135fi
81ecdfbb 16136rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
16137
16138fi
16139if test "$LEX" = :; then
16140 LEX=${am_missing_run}flex
16141fi
16142
81ecdfbb
RW
16143
16144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16145$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16146 # Check whether --enable-maintainer-mode was given.
16147if test "${enable_maintainer_mode+set}" = set; then :
16148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16149else
d7040cdb 16150 USE_MAINTAINER_MODE=no
81ecdfbb 16151fi
d7040cdb 16152
81ecdfbb
RW
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16154$as_echo "$USE_MAINTAINER_MODE" >&6; }
16155 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16156 MAINTAINER_MODE_TRUE=
16157 MAINTAINER_MODE_FALSE='#'
16158else
16159 MAINTAINER_MODE_TRUE='#'
16160 MAINTAINER_MODE_FALSE=
252b5132 16161fi
252b5132 16162
d7040cdb
SE
16163 MAINT=$MAINTAINER_MODE_TRUE
16164
16165
81ecdfbb 16166 if false; then
d7040cdb
SE
16167 GENINSRC_NEVER_TRUE=
16168 GENINSRC_NEVER_FALSE='#'
16169else
16170 GENINSRC_NEVER_TRUE='#'
16171 GENINSRC_NEVER_FALSE=
252b5132
RH
16172fi
16173
81ecdfbb
RW
16174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16175$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16176if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16177 $as_echo_n "(cached) " >&6
eccbf555
AM
16178else
16179 echo abfoo >t1
16180 echo cdfoo >t2
16181 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16182 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16183 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16184 :
16185 else
16186 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16187 fi
16188 fi
16189 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16190 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16191 :
16192 else
16193 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16194 fi
16195 fi
16196 rm t1 t2
16197
16198fi
81ecdfbb
RW
16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16200$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16201do_compare="$gcc_cv_prog_cmp_skip"
16202
16203
d7040cdb
SE
16204
16205. ${srcdir}/configure.host
16206
16207
16208
16209
252b5132
RH
16210
16211
6738cadc 16212
b27caf75 16213
58797674 16214for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16215do :
16216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16217ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16218eval as_val=\$$as_ac_Header
16219 if test "x$as_val" = x""yes; then :
42ecbf5e 16220 cat >>confdefs.h <<_ACEOF
81ecdfbb 16221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16222_ACEOF
16223
16224fi
16225
252b5132
RH
16226done
16227
5d3236ee
DK
16228for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16229do :
16230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16232eval as_val=\$$as_ac_Header
16233 if test "x$as_val" = x""yes; then :
16234 cat >>confdefs.h <<_ACEOF
16235#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16236_ACEOF
16237
16238fi
16239
16240done
16241
208a4923
NC
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16243$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16244if test "${gcc_cv_header_string+set}" = set; then :
16245 $as_echo_n "(cached) " >&6
16246else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h. */
16249#include <string.h>
16250#include <strings.h>
16251int
16252main ()
16253{
16254
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259if ac_fn_c_try_compile "$LINENO"; then :
16260 gcc_cv_header_string=yes
16261else
16262 gcc_cv_header_string=no
16263fi
16264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265fi
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16267$as_echo "$gcc_cv_header_string" >&6; }
16268if test $gcc_cv_header_string = yes; then
16269
16270$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16271
16272fi
16273
44350750 16274for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16275do :
16276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16277ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16278eval as_val=\$$as_ac_var
16279 if test "x$as_val" = x""yes; then :
42ecbf5e 16280 cat >>confdefs.h <<_ACEOF
81ecdfbb 16281#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16282_ACEOF
252b5132 16283
252b5132
RH
16284fi
16285done
16286
5d3236ee
DK
16287for ac_func in open lseek close
16288do :
16289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16290ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16291eval as_val=\$$as_ac_var
16292 if test "x$as_val" = x""yes; then :
16293 cat >>confdefs.h <<_ACEOF
16294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16295_ACEOF
16296
16297fi
16298done
16299
252b5132 16300ac_header_dirent=no
42ecbf5e 16301for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16302 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16304$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16306 $as_echo_n "(cached) " >&6
16307else
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16309/* end confdefs.h. */
252b5132
RH
16310#include <sys/types.h>
16311#include <$ac_hdr>
42ecbf5e
DJ
16312
16313int
16314main ()
16315{
16316if ((DIR *) 0)
16317return 0;
16318 ;
16319 return 0;
16320}
16321_ACEOF
81ecdfbb 16322if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16323 eval "$as_ac_Header=yes"
16324else
81ecdfbb 16325 eval "$as_ac_Header=no"
42ecbf5e 16326fi
81ecdfbb 16327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16328fi
81ecdfbb
RW
16329eval ac_res=\$$as_ac_Header
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16331$as_echo "$ac_res" >&6; }
16332eval as_val=\$$as_ac_Header
16333 if test "x$as_val" = x""yes; then :
42ecbf5e 16334 cat >>confdefs.h <<_ACEOF
81ecdfbb 16335#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16336_ACEOF
16337
16338ac_header_dirent=$ac_hdr; break
d15b04bd 16339fi
42ecbf5e 16340
d15b04bd
L
16341done
16342# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16343if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16345$as_echo_n "checking for library containing opendir... " >&6; }
16346if test "${ac_cv_search_opendir+set}" = set; then :
16347 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16348else
16349 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16351/* end confdefs.h. */
16352
81ecdfbb
RW
16353/* Override any GCC internal prototype to avoid an error.
16354 Use char because int might match the return type of a GCC
16355 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16356#ifdef __cplusplus
16357extern "C"
16358#endif
42ecbf5e
DJ
16359char opendir ();
16360int
16361main ()
16362{
81ecdfbb 16363return opendir ();
42ecbf5e
DJ
16364 ;
16365 return 0;
16366}
16367_ACEOF
81ecdfbb
RW
16368for ac_lib in '' dir; do
16369 if test -z "$ac_lib"; then
16370 ac_res="none required"
16371 else
16372 ac_res=-l$ac_lib
42ecbf5e 16373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16374 fi
16375 if ac_fn_c_try_link "$LINENO"; then :
16376 ac_cv_search_opendir=$ac_res
16377fi
16378rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext
16380 if test "${ac_cv_search_opendir+set}" = set; then :
16381 break
16382fi
16383done
16384if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16385
42ecbf5e 16386else
81ecdfbb 16387 ac_cv_search_opendir=no
252b5132 16388fi
81ecdfbb 16389rm conftest.$ac_ext
42ecbf5e
DJ
16390LIBS=$ac_func_search_save_LIBS
16391fi
81ecdfbb
RW
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16393$as_echo "$ac_cv_search_opendir" >&6; }
16394ac_res=$ac_cv_search_opendir
16395if test "$ac_res" != no; then :
16396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16397
d15b04bd 16398fi
252b5132
RH
16399
16400else
81ecdfbb
RW
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16402$as_echo_n "checking for library containing opendir... " >&6; }
16403if test "${ac_cv_search_opendir+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
252b5132 16405else
42ecbf5e 16406 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16408/* end confdefs.h. */
16409
81ecdfbb
RW
16410/* Override any GCC internal prototype to avoid an error.
16411 Use char because int might match the return type of a GCC
16412 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16413#ifdef __cplusplus
16414extern "C"
16415#endif
42ecbf5e
DJ
16416char opendir ();
16417int
16418main ()
16419{
81ecdfbb 16420return opendir ();
42ecbf5e
DJ
16421 ;
16422 return 0;
16423}
16424_ACEOF
81ecdfbb
RW
16425for ac_lib in '' x; do
16426 if test -z "$ac_lib"; then
16427 ac_res="none required"
16428 else
16429 ac_res=-l$ac_lib
42ecbf5e 16430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16431 fi
16432 if ac_fn_c_try_link "$LINENO"; then :
16433 ac_cv_search_opendir=$ac_res
16434fi
16435rm -f core conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext
16437 if test "${ac_cv_search_opendir+set}" = set; then :
16438 break
16439fi
16440done
16441if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16442
42ecbf5e 16443else
81ecdfbb 16444 ac_cv_search_opendir=no
252b5132 16445fi
81ecdfbb 16446rm conftest.$ac_ext
42ecbf5e 16447LIBS=$ac_func_search_save_LIBS
252b5132 16448fi
81ecdfbb
RW
16449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16450$as_echo "$ac_cv_search_opendir" >&6; }
16451ac_res=$ac_cv_search_opendir
16452if test "$ac_res" != no; then :
16453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16454
d15b04bd 16455fi
252b5132
RH
16456
16457fi
16458
16459
5d3236ee
DK
16460# Check for dlopen support and enable plugins if possible.
16461enable_plugins=yes
16462ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16463"
16464if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16465
16466else
16467 enable_plugins=no
16468fi
16469
16470
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16472$as_echo_n "checking for library containing dlopen... " >&6; }
16473if test "${ac_cv_search_dlopen+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16475else
16476 ac_func_search_save_LIBS=$LIBS
16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h. */
16479
16480/* Override any GCC internal prototype to avoid an error.
16481 Use char because int might match the return type of a GCC
16482 builtin and then its argument prototype would still apply. */
16483#ifdef __cplusplus
16484extern "C"
16485#endif
16486char dlopen ();
16487int
16488main ()
16489{
16490return dlopen ();
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495for ac_lib in '' dl; do
16496 if test -z "$ac_lib"; then
16497 ac_res="none required"
16498 else
16499 ac_res=-l$ac_lib
16500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16501 fi
16502 if ac_fn_c_try_link "$LINENO"; then :
16503 ac_cv_search_dlopen=$ac_res
16504fi
16505rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext
16507 if test "${ac_cv_search_dlopen+set}" = set; then :
16508 break
16509fi
16510done
16511if test "${ac_cv_search_dlopen+set}" = set; then :
16512
16513else
16514 ac_cv_search_dlopen=no
16515fi
16516rm conftest.$ac_ext
16517LIBS=$ac_func_search_save_LIBS
16518fi
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16520$as_echo "$ac_cv_search_dlopen" >&6; }
16521ac_res=$ac_cv_search_dlopen
16522if test "$ac_res" != no; then :
16523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16524
16525else
16526 enable_plugins=no
16527fi
16528
16529for ac_func in dlopen dlsym dlclose
16530do :
16531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16533eval as_val=\$$as_ac_var
16534 if test "x$as_val" = x""yes; then :
16535 cat >>confdefs.h <<_ACEOF
16536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16537_ACEOF
16538
16539else
16540 enable_plugins=no
16541fi
16542done
16543
3917d5d5
DK
16544# We also support plugins on Windows (MinGW).
16545if test x$enable_plugins = xno ; then
f31d24a0 16546 for ac_header in windows.h
3917d5d5 16547do :
f31d24a0 16548 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
3917d5d5 16549"
f31d24a0 16550if test "x$ac_cv_header_windows_h" = x""yes; then :
3917d5d5
DK
16551 cat >>confdefs.h <<_ACEOF
16552#define HAVE_WINDOWS_H 1
16553_ACEOF
16554 enable_plugins=yes
16555fi
16556
16557done
16558
16559fi
5d3236ee
DK
16560 if test x$enable_plugins = xyes; then
16561 ENABLE_PLUGINS_TRUE=
16562 ENABLE_PLUGINS_FALSE='#'
16563else
16564 ENABLE_PLUGINS_TRUE='#'
16565 ENABLE_PLUGINS_FALSE=
16566fi
16567
16568
02ecc8e9
L
16569# Check whether --enable-initfini-array was given.
16570if test "${enable_initfini_array+set}" = set; then :
16571 enableval=$enable_initfini_array;
16572else
16573
16574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16575$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16576if test "${gcc_cv_initfini_array+set}" = set; then :
16577 $as_echo_n "(cached) " >&6
16578else
16579 if test "x${build}" = "x${target}" ; then
16580 if test "$cross_compiling" = yes; then :
16581 gcc_cv_initfini_array=no
16582else
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h. */
16585
16586static int x = -1;
16587int main (void) { return x; }
16588int foo (void) { x = 0; }
16589int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16590_ACEOF
16591if ac_fn_c_try_run "$LINENO"; then :
16592 gcc_cv_initfini_array=yes
16593else
16594 gcc_cv_initfini_array=no
16595fi
16596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16597 conftest.$ac_objext conftest.beam conftest.$ac_ext
16598fi
16599
16600 else
16601 gcc_cv_initfini_array=no
16602 fi
16603fi
16604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16605$as_echo "$gcc_cv_initfini_array" >&6; }
16606 enable_initfini_array=$gcc_cv_initfini_array
16607
16608fi
16609
16610
16611if test $enable_initfini_array = yes; then
16612
16613$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16614
16615fi
16616
81ecdfbb
RW
16617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16618$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16619if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16620 $as_echo_n "(cached) " >&6
34875e64 16621else
81ecdfbb 16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16623/* end confdefs.h. */
34875e64 16624#include <unistd.h>
42ecbf5e
DJ
16625int
16626main ()
16627{
34875e64 16628extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16629 ;
16630 return 0;
16631}
16632_ACEOF
81ecdfbb 16633if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16634 ld_cv_decl_getopt_unistd_h=yes
16635else
81ecdfbb 16636 ld_cv_decl_getopt_unistd_h=no
34875e64 16637fi
81ecdfbb 16638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16639fi
16640
81ecdfbb
RW
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16642$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16643if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16644
81ecdfbb 16645$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16646
16647fi
42ecbf5e 16648
252b5132
RH
16649
16650case "${host}" in
a8100d5b 16651*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16652
81ecdfbb 16653$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16654 ;;
16655esac
16656
81ecdfbb
RW
16657ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16658if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16659 ac_have_decl=1
252b5132 16660else
81ecdfbb
RW
16661 ac_have_decl=0
16662fi
502bdb00 16663
81ecdfbb
RW
16664cat >>confdefs.h <<_ACEOF
16665#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16666_ACEOF
81ecdfbb
RW
16667ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16668if test "x$ac_cv_have_decl_free" = x""yes; then :
16669 ac_have_decl=1
252b5132 16670else
81ecdfbb 16671 ac_have_decl=0
252b5132
RH
16672fi
16673
502bdb00 16674cat >>confdefs.h <<_ACEOF
81ecdfbb 16675#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16676_ACEOF
81ecdfbb
RW
16677ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16678if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16679 ac_have_decl=1
16680else
16681 ac_have_decl=0
16682fi
42ecbf5e 16683
81ecdfbb
RW
16684cat >>confdefs.h <<_ACEOF
16685#define HAVE_DECL_SBRK $ac_have_decl
16686_ACEOF
16687ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16688if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16689 ac_have_decl=1
16690else
16691 ac_have_decl=0
16692fi
502bdb00 16693
81ecdfbb
RW
16694cat >>confdefs.h <<_ACEOF
16695#define HAVE_DECL_GETENV $ac_have_decl
16696_ACEOF
16697ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16698if test "x$ac_cv_have_decl_environ" = x""yes; then :
16699 ac_have_decl=1
502bdb00 16700else
81ecdfbb
RW
16701 ac_have_decl=0
16702fi
16703
16704cat >>confdefs.h <<_ACEOF
16705#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16706_ACEOF
252b5132 16707
252b5132 16708
81ecdfbb
RW
16709# Link in zlib if we can. This is needed only for the bootstrap tests
16710# right now, since those tests use libbfd, which depends on zlib.
52546677
RM
16711
16712 # See if the user specified whether he wants zlib support or not.
16713
16714# Check whether --with-zlib was given.
16715if test "${with_zlib+set}" = set; then :
16716 withval=$with_zlib;
16717else
16718 with_zlib=auto
16719fi
16720
16721
16722 if test "$with_zlib" != "no"; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
16724$as_echo_n "checking for library containing zlibVersion... " >&6; }
16725if test "${ac_cv_search_zlibVersion+set}" = set; then :
16726 $as_echo_n "(cached) " >&6
252b5132 16727else
81ecdfbb
RW
16728 ac_func_search_save_LIBS=$LIBS
16729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16730/* end confdefs.h. */
502bdb00 16731
81ecdfbb
RW
16732/* Override any GCC internal prototype to avoid an error.
16733 Use char because int might match the return type of a GCC
4474d12b 16734 builtin and then its argument prototype would still apply. */
4474d12b
CS
16735#ifdef __cplusplus
16736extern "C"
16737#endif
4474d12b
CS
16738char zlibVersion ();
16739int
16740main ()
16741{
81ecdfbb 16742return zlibVersion ();
4474d12b
CS
16743 ;
16744 return 0;
16745}
16746_ACEOF
81ecdfbb
RW
16747for ac_lib in '' z; do
16748 if test -z "$ac_lib"; then
16749 ac_res="none required"
4474d12b 16750 else
81ecdfbb
RW
16751 ac_res=-l$ac_lib
16752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 16753 fi
81ecdfbb
RW
16754 if ac_fn_c_try_link "$LINENO"; then :
16755 ac_cv_search_zlibVersion=$ac_res
4474d12b 16756fi
81ecdfbb
RW
16757rm -f core conftest.err conftest.$ac_objext \
16758 conftest$ac_exeext
16759 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16760 break
4474d12b 16761fi
81ecdfbb
RW
16762done
16763if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 16764
4474d12b 16765else
81ecdfbb 16766 ac_cv_search_zlibVersion=no
4474d12b 16767fi
81ecdfbb
RW
16768rm conftest.$ac_ext
16769LIBS=$ac_func_search_save_LIBS
4474d12b 16770fi
81ecdfbb
RW
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16772$as_echo "$ac_cv_search_zlibVersion" >&6; }
16773ac_res=$ac_cv_search_zlibVersion
16774if test "$ac_res" != no; then :
16775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16776 for ac_header in zlib.h
16777do :
16778 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16779if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 16780 cat >>confdefs.h <<_ACEOF
81ecdfbb 16781#define HAVE_ZLIB_H 1
4474d12b
CS
16782_ACEOF
16783
16784fi
16785
16786done
16787
16788fi
16789
52546677
RM
16790 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16791 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16792 fi
16793 fi
16794
4474d12b 16795
597e2591
ILT
16796# When converting linker scripts into strings for use in emulation
16797# files, use astring.sed if the compiler supports ANSI string
16798# concatenation, or ostring.sed otherwise. This is to support the
16799# broken Microsoft MSVC compiler, which limits the length of string
16800# constants, while still supporting pre-ANSI compilers which do not
16801# support string concatenation.
81ecdfbb
RW
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16803$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16804if test "${ld_cv_string_concatenation+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
42ecbf5e 16806else
81ecdfbb 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16808/* end confdefs.h. */
81ecdfbb 16809
314e9a4e
L
16810int
16811main ()
16812{
81ecdfbb 16813char *a = "a" "a";
314e9a4e
L
16814 ;
16815 return 0;
16816}
16817_ACEOF
81ecdfbb
RW
16818if ac_fn_c_try_compile "$LINENO"; then :
16819 ld_cv_string_concatenation=yes
314e9a4e 16820else
81ecdfbb 16821 ld_cv_string_concatenation=no
314e9a4e 16822fi
81ecdfbb 16823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16824fi
81ecdfbb
RW
16825
16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16827$as_echo "$ld_cv_string_concatenation" >&6; }
16828if test "$ld_cv_string_concatenation" = "yes"; then
16829 STRINGIFY=astring.sed
16830else
16831 STRINGIFY=ostring.sed
314e9a4e 16832fi
81ecdfbb
RW
16833
16834
16835# target-specific stuff:
16836
16837all_targets=
16838EMUL=
16839all_emuls=
16840all_emul_extras=
5063daf7 16841all_emul_extra_binaries=
81ecdfbb
RW
16842all_libpath=
16843
16844rm -f tdirs
16845
bf9ef603
RM
16846# If the host is 64-bit, then we enable 64-bit targets by default.
16847# This is consistent with what ../bfd/configure.in does.
16848if test x${want64} = xfalse; then
16849 # The cast to long int works around a bug in the HP C Compiler
16850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16852# This bug is HP SR number 8606223364.
16853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16854$as_echo_n "checking size of void *... " >&6; }
16855if test "${ac_cv_sizeof_void_p+set}" = set; then :
16856 $as_echo_n "(cached) " >&6
16857else
16858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16859
16860else
16861 if test "$ac_cv_type_void_p" = yes; then
16862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16864{ as_fn_set_status 77
16865as_fn_error "cannot compute sizeof (void *)
16866See \`config.log' for more details." "$LINENO" 5; }; }
16867 else
16868 ac_cv_sizeof_void_p=0
16869 fi
16870fi
16871
16872fi
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16874$as_echo "$ac_cv_sizeof_void_p" >&6; }
16875
16876
16877
16878cat >>confdefs.h <<_ACEOF
16879#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16880_ACEOF
16881
16882
16883 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16884 want64=true
16885 fi
16886fi
16887
81ecdfbb
RW
16888for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16889do
16890 if test "$targ_alias" = "all"; then
16891 all_targets=true
16892 else
16893 # Canonicalize the secondary target names.
16894 result=`$ac_config_sub $targ_alias 2>/dev/null`
16895 if test -n "$result"; then
16896 targ=$result
16897 else
16898 targ=$targ_alias
16899 fi
16900
16901 . ${srcdir}/configure.tgt
16902
16903 if test "$targ" = "$target"; then
16904 EMUL=$targ_emul
16905 fi
16906
16907 if test x${want64} = xfalse; then
16908 . ${srcdir}/../bfd/config.bfd
16909 fi
16910
16911 if test x${want64} = xtrue; then
16912 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16913 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16914 fi
16915
16916 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16917 case " $all_emuls " in
16918 *" e${i}.o "*) ;;
16919 *)
16920 all_emuls="$all_emuls e${i}.o"
16921 eval result=\$tdir_$i
16922 test -z "$result" && result=$targ_alias
16923 echo tdir_$i=$result >> tdirs
16924 ;;
16925 esac
16926 done
16927
16928 for i in $targ_emul $targ_extra_libpath; do
16929 case " $all_libpath " in
16930 *" ${i} "*) ;;
16931 *)
16932 if test -z "$all_libpath"; then
16933 all_libpath=${i}
16934 else
16935 all_libpath="$all_libpath ${i}"
16936 fi
16937 ;;
16938 esac
16939 done
16940
16941 for i in $targ_extra_ofiles; do
16942 case " $all_emul_extras " in
16943 *" ${i} "*) ;;
16944 *)
16945 all_emul_extras="$all_emul_extras ${i}"
16946 ;;
16947 esac
16948 done
5063daf7
NC
16949
16950 for i in $targ_extra_binaries; do
16951 case " $all_emul_extra_binaries " in
16952 *" ${i} "*) ;;
16953 *)
16954 all_emul_extra_binaries="$all_emul_extra_binaries ${i}"
16955 ;;
16956 esac
16957 done
81ecdfbb
RW
16958 fi
16959done
16960
16961
16962
16963TDIRS=tdirs
16964
16965
16966if test x${all_targets} = xtrue; then
42ecbf5e
DJ
16967 if test x${want64} = xtrue; then
16968 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16969 else
16970 EMULATION_OFILES='$(ALL_EMULATIONS)'
16971 fi
16972 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
5063daf7 16973 EMUL_EXTRA_BINARIES='$(ALL_EMUL_EXTRA_BINARIES)'
42ecbf5e
DJ
16974else
16975 EMULATION_OFILES=$all_emuls
16976 EMUL_EXTRA_OFILES=$all_emul_extras
5063daf7 16977 EMUL_EXTRA_BINARIES=$all_emul_extra_binaries
42ecbf5e
DJ
16978fi
16979
16980
16981
16982
5063daf7 16983
42ecbf5e
DJ
16984EMULATION_LIBPATH=$all_libpath
16985
16986
16987if test x${enable_static} = xno; then
16988 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16989else
16990 TESTBFDLIB="../bfd/.libs/libbfd.a"
16991fi
16992
16993
16994target_vendor=${target_vendor=$host_vendor}
16995case "$target_vendor" in
16996 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16997 *) EXTRA_SHLIB_EXTENSION= ;;
16998esac
16999
17000case "$target_os" in
17001 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17002esac
17003
17004if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17005
17006cat >>confdefs.h <<_ACEOF
17007#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17008_ACEOF
17009
17010fi
17011
108a6f8e
CD
17012
17013
17014
17015
31dd3154 17016
81ecdfbb 17017ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17018
42ecbf5e
DJ
17019cat >confcache <<\_ACEOF
17020# This file is a shell script that caches the results of configure
17021# tests run on this system so they can be shared between configure
17022# scripts and configure runs, see configure's option --config-cache.
17023# It is not useful on other systems. If it contains results you don't
17024# want to keep, you may remove or edit it.
17025#
17026# config.status only pays attention to the cache file if you give it
17027# the --recheck option to rerun configure.
17028#
17029# `ac_cv_env_foo' variables (set or unset) will be overridden when
17030# loading this file, other *unset* `ac_cv_foo' will be assigned the
17031# following values.
17032
17033_ACEOF
17034
17035# The following way of writing the cache mishandles newlines in values,
17036# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17037# So, we kill variables containing newlines.
42ecbf5e
DJ
17038# Ultrix sh set writes to stderr and can't be redirected directly,
17039# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17040(
17041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17042 eval ac_val=\$$ac_var
17043 case $ac_val in #(
17044 *${as_nl}*)
17045 case $ac_var in #(
17046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17048 esac
17049 case $ac_var in #(
17050 _ | IFS | as_nl) ;; #(
17051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17052 *) { eval $ac_var=; unset $ac_var;} ;;
17053 esac ;;
17054 esac
17055 done
17056
42ecbf5e 17057 (set) 2>&1 |
81ecdfbb
RW
17058 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17059 *${as_nl}ac_space=\ *)
17060 # `set' does not quote correctly, so add quotes: double-quote
17061 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17062 sed -n \
17063 "s/'/'\\\\''/g;
17064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17065 ;; #(
42ecbf5e
DJ
17066 *)
17067 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17069 ;;
81ecdfbb
RW
17070 esac |
17071 sort
17072) |
42ecbf5e 17073 sed '
81ecdfbb 17074 /^ac_cv_env_/b end
42ecbf5e 17075 t clear
81ecdfbb 17076 :clear
42ecbf5e
DJ
17077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17078 t end
81ecdfbb
RW
17079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17080 :end' >>confcache
17081if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17082 if test -w "$cache_file"; then
17083 test "x$cache_file" != "x/dev/null" &&
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17085$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17086 cat confcache >$cache_file
17087 else
81ecdfbb
RW
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17089$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17090 fi
17091fi
17092rm -f confcache
17093
17094test "x$prefix" = xNONE && prefix=$ac_default_prefix
17095# Let make expand exec_prefix.
17096test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17097
42ecbf5e
DJ
17098DEFS=-DHAVE_CONFIG_H
17099
17100ac_libobjs=
17101ac_ltlibobjs=
17102for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17103 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17104 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17105 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17107 # will be set to the directory where LIBOBJS objects are built.
17108 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17109 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17110done
17111LIBOBJS=$ac_libobjs
17112
17113LTLIBOBJS=$ac_ltlibobjs
17114
17115
17116if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17117 as_fn_error "conditional \"AMDEP\" was never defined.
17118Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17119fi
17120if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17121 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17122Usually this means the macro was only invoked conditionally." "$LINENO" 5
17123fi
17124 if test -n "$EXEEXT"; then
17125 am__EXEEXT_TRUE=
17126 am__EXEEXT_FALSE='#'
17127else
17128 am__EXEEXT_TRUE='#'
17129 am__EXEEXT_FALSE=
42ecbf5e 17130fi
81ecdfbb 17131
64ac50ac
RW
17132if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17133 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17134Usually this means the macro was only invoked conditionally." "$LINENO" 5
17135fi
3cb62297
L
17136if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17137 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17138Usually this means the macro was only invoked conditionally." "$LINENO" 5
17139fi
42ecbf5e 17140if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17141 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17142Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17143fi
d5fbea21 17144if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17145 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17146Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17147fi
5d3236ee
DK
17148if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17149 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17150Usually this means the macro was only invoked conditionally." "$LINENO" 5
17151fi
42ecbf5e
DJ
17152
17153: ${CONFIG_STATUS=./config.status}
81ecdfbb 17154ac_write_fail=0
42ecbf5e
DJ
17155ac_clean_files_save=$ac_clean_files
17156ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17157{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17158$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17159as_write_fail=0
17160cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17161#! $SHELL
17162# Generated by $as_me.
17163# Run this file to recreate the current configuration.
17164# Compiler output produced by configure, useful for debugging
17165# configure, is in config.log if it exists.
17166
17167debug=false
17168ac_cs_recheck=false
17169ac_cs_silent=false
42ecbf5e 17170
81ecdfbb
RW
17171SHELL=\${CONFIG_SHELL-$SHELL}
17172export SHELL
17173_ASEOF
17174cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17175## -------------------- ##
17176## M4sh Initialization. ##
17177## -------------------- ##
42ecbf5e 17178
81ecdfbb
RW
17179# Be more Bourne compatible
17180DUALCASE=1; export DUALCASE # for MKS sh
17181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17182 emulate sh
17183 NULLCMD=:
81ecdfbb 17184 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17185 # is contrary to our usage. Disable this feature.
17186 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17187 setopt NO_GLOB_SUBST
17188else
17189 case `(set -o) 2>/dev/null` in #(
17190 *posix*) :
17191 set -o posix ;; #(
17192 *) :
17193 ;;
17194esac
42ecbf5e 17195fi
42ecbf5e 17196
81ecdfbb
RW
17197
17198as_nl='
17199'
17200export as_nl
17201# Printing a long string crashes Solaris 7 /usr/bin/printf.
17202as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17203as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17204as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17205# Prefer a ksh shell builtin over an external printf program on Solaris,
17206# but without wasting forks for bash or zsh.
17207if test -z "$BASH_VERSION$ZSH_VERSION" \
17208 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17209 as_echo='print -r --'
17210 as_echo_n='print -rn --'
17211elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17212 as_echo='printf %s\n'
17213 as_echo_n='printf %s'
17214else
17215 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17216 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17217 as_echo_n='/usr/ucb/echo -n'
17218 else
17219 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17220 as_echo_n_body='eval
17221 arg=$1;
17222 case $arg in #(
17223 *"$as_nl"*)
17224 expr "X$arg" : "X\\(.*\\)$as_nl";
17225 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17226 esac;
17227 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17228 '
17229 export as_echo_n_body
17230 as_echo_n='sh -c $as_echo_n_body as_echo'
17231 fi
17232 export as_echo_body
17233 as_echo='sh -c $as_echo_body as_echo'
17234fi
17235
17236# The user is always right.
17237if test "${PATH_SEPARATOR+set}" != set; then
17238 PATH_SEPARATOR=:
17239 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17240 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17241 PATH_SEPARATOR=';'
17242 }
42ecbf5e
DJ
17243fi
17244
17245
81ecdfbb
RW
17246# IFS
17247# We need space, tab and new line, in precisely that order. Quoting is
17248# there to prevent editors from complaining about space-tab.
17249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17250# splitting by setting IFS to empty value.)
17251IFS=" "" $as_nl"
17252
17253# Find who we are. Look in the path if we contain no directory separator.
17254case $0 in #((
17255 *[\\/]* ) as_myself=$0 ;;
17256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257for as_dir in $PATH
17258do
17259 IFS=$as_save_IFS
17260 test -z "$as_dir" && as_dir=.
17261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17262 done
17263IFS=$as_save_IFS
17264
17265 ;;
17266esac
17267# We did not find ourselves, most probably we were run as `sh COMMAND'
17268# in which case we are not to be found in the path.
17269if test "x$as_myself" = x; then
17270 as_myself=$0
17271fi
17272if test ! -f "$as_myself"; then
17273 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17274 exit 1
17275fi
17276
17277# Unset variables that we do not need and which cause bugs (e.g. in
17278# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17279# suppresses any "Segmentation fault" message there. '((' could
17280# trigger a bug in pdksh 5.2.14.
17281for as_var in BASH_ENV ENV MAIL MAILPATH
17282do eval test x\${$as_var+set} = xset \
17283 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17284done
42ecbf5e
DJ
17285PS1='$ '
17286PS2='> '
17287PS4='+ '
17288
17289# NLS nuisances.
81ecdfbb
RW
17290LC_ALL=C
17291export LC_ALL
17292LANGUAGE=C
17293export LANGUAGE
17294
17295# CDPATH.
17296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17297
17298
17299# as_fn_error ERROR [LINENO LOG_FD]
17300# ---------------------------------
17301# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17302# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17303# script with status $?, using 1 if that was 0.
17304as_fn_error ()
17305{
17306 as_status=$?; test $as_status -eq 0 && as_status=1
17307 if test "$3"; then
17308 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17309 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17310 fi
81ecdfbb
RW
17311 $as_echo "$as_me: error: $1" >&2
17312 as_fn_exit $as_status
17313} # as_fn_error
17314
17315
17316# as_fn_set_status STATUS
17317# -----------------------
17318# Set $? to STATUS, without forking.
17319as_fn_set_status ()
17320{
17321 return $1
17322} # as_fn_set_status
17323
17324# as_fn_exit STATUS
17325# -----------------
17326# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17327as_fn_exit ()
17328{
17329 set +e
17330 as_fn_set_status $1
17331 exit $1
17332} # as_fn_exit
17333
17334# as_fn_unset VAR
17335# ---------------
17336# Portably unset VAR.
17337as_fn_unset ()
17338{
17339 { eval $1=; unset $1;}
17340}
17341as_unset=as_fn_unset
17342# as_fn_append VAR VALUE
17343# ----------------------
17344# Append the text in VALUE to the end of the definition contained in VAR. Take
17345# advantage of any shell optimizations that allow amortized linear growth over
17346# repeated appends, instead of the typical quadratic growth present in naive
17347# implementations.
17348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17349 eval 'as_fn_append ()
17350 {
17351 eval $1+=\$2
17352 }'
17353else
17354 as_fn_append ()
17355 {
17356 eval $1=\$$1\$2
17357 }
17358fi # as_fn_append
17359
17360# as_fn_arith ARG...
17361# ------------------
17362# Perform arithmetic evaluation on the ARGs, and store the result in the
17363# global $as_val. Take advantage of shells that can avoid forks. The arguments
17364# must be portable across $(()) and expr.
17365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17366 eval 'as_fn_arith ()
17367 {
17368 as_val=$(( $* ))
17369 }'
17370else
17371 as_fn_arith ()
17372 {
17373 as_val=`expr "$@" || test $? -eq 1`
17374 }
17375fi # as_fn_arith
17376
42ecbf5e 17377
81ecdfbb
RW
17378if expr a : '\(a\)' >/dev/null 2>&1 &&
17379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17380 as_expr=expr
17381else
17382 as_expr=false
17383fi
17384
81ecdfbb 17385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17386 as_basename=basename
17387else
17388 as_basename=false
17389fi
17390
81ecdfbb
RW
17391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17392 as_dirname=dirname
17393else
17394 as_dirname=false
17395fi
42ecbf5e 17396
81ecdfbb 17397as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17399 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17401$as_echo X/"$0" |
17402 sed '/^.*\/\([^/][^/]*\)\/*$/{
17403 s//\1/
17404 q
17405 }
17406 /^X\/\(\/\/\)$/{
17407 s//\1/
17408 q
17409 }
17410 /^X\/\(\/\).*/{
17411 s//\1/
17412 q
17413 }
17414 s/.*/./; q'`
42ecbf5e 17415
42ecbf5e
DJ
17416# Avoid depending upon Character Ranges.
17417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17420as_cr_digits='0123456789'
17421as_cr_alnum=$as_cr_Letters$as_cr_digits
17422
81ecdfbb
RW
17423ECHO_C= ECHO_N= ECHO_T=
17424case `echo -n x` in #(((((
17425-n*)
17426 case `echo 'xy\c'` in
17427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17428 xy) ECHO_C='\c';;
17429 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17430 ECHO_T=' ';;
17431 esac;;
17432*)
17433 ECHO_N='-n';;
42ecbf5e 17434esac
252b5132 17435
81ecdfbb
RW
17436rm -f conf$$ conf$$.exe conf$$.file
17437if test -d conf$$.dir; then
17438 rm -f conf$$.dir/conf$$.file
42ecbf5e 17439else
81ecdfbb
RW
17440 rm -f conf$$.dir
17441 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17442fi
81ecdfbb
RW
17443if (echo >conf$$.file) 2>/dev/null; then
17444 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17445 as_ln_s='ln -s'
81ecdfbb
RW
17446 # ... but there are two gotchas:
17447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17449 # In both cases, we have to default to `cp -p'.
17450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17451 as_ln_s='cp -p'
17452 elif ln conf$$.file conf$$ 2>/dev/null; then
17453 as_ln_s=ln
17454 else
17455 as_ln_s='cp -p'
252b5132 17456 fi
e5a52504 17457else
42ecbf5e 17458 as_ln_s='cp -p'
e5a52504 17459fi
81ecdfbb
RW
17460rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17461rmdir conf$$.dir 2>/dev/null
17462
17463
17464# as_fn_mkdir_p
17465# -------------
17466# Create "$as_dir" as a directory, including parents if necessary.
17467as_fn_mkdir_p ()
17468{
17469
17470 case $as_dir in #(
17471 -*) as_dir=./$as_dir;;
17472 esac
17473 test -d "$as_dir" || eval $as_mkdir_p || {
17474 as_dirs=
17475 while :; do
17476 case $as_dir in #(
17477 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17478 *) as_qdir=$as_dir;;
17479 esac
17480 as_dirs="'$as_qdir' $as_dirs"
17481 as_dir=`$as_dirname -- "$as_dir" ||
17482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17483 X"$as_dir" : 'X\(//\)[^/]' \| \
17484 X"$as_dir" : 'X\(//\)$' \| \
17485 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17486$as_echo X"$as_dir" |
17487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17488 s//\1/
17489 q
17490 }
17491 /^X\(\/\/\)[^/].*/{
17492 s//\1/
17493 q
17494 }
17495 /^X\(\/\/\)$/{
17496 s//\1/
17497 q
17498 }
17499 /^X\(\/\).*/{
17500 s//\1/
17501 q
17502 }
17503 s/.*/./; q'`
17504 test -d "$as_dir" && break
17505 done
17506 test -z "$as_dirs" || eval "mkdir $as_dirs"
17507 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17508
252b5132 17509
81ecdfbb 17510} # as_fn_mkdir_p
42ecbf5e 17511if mkdir -p . 2>/dev/null; then
81ecdfbb 17512 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17513else
17514 test -d ./-p && rmdir ./-p
17515 as_mkdir_p=false
17516fi
252b5132 17517
81ecdfbb
RW
17518if test -x / >/dev/null 2>&1; then
17519 as_test_x='test -x'
17520else
17521 if ls -dL / >/dev/null 2>&1; then
17522 as_ls_L_option=L
17523 else
17524 as_ls_L_option=
17525 fi
17526 as_test_x='
17527 eval sh -c '\''
17528 if test -d "$1"; then
17529 test -d "$1/.";
17530 else
17531 case $1 in #(
17532 -*)set "./$1";;
17533 esac;
17534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17535 ???[sx]*):;;*)false;;esac;fi
17536 '\'' sh
17537 '
17538fi
17539as_executable_p=$as_test_x
252b5132 17540
42ecbf5e
DJ
17541# Sed expression to map a string onto a valid CPP name.
17542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17543
42ecbf5e
DJ
17544# Sed expression to map a string onto a valid variable name.
17545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17546
e5a52504 17547
42ecbf5e 17548exec 6>&1
81ecdfbb
RW
17549## ----------------------------------- ##
17550## Main body of $CONFIG_STATUS script. ##
17551## ----------------------------------- ##
17552_ASEOF
17553test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17554
81ecdfbb
RW
17555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17556# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17557# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17558# values after options handling.
17559ac_log="
42ecbf5e 17560This file was extended by $as_me, which was
81ecdfbb 17561generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17562
17563 CONFIG_FILES = $CONFIG_FILES
17564 CONFIG_HEADERS = $CONFIG_HEADERS
17565 CONFIG_LINKS = $CONFIG_LINKS
17566 CONFIG_COMMANDS = $CONFIG_COMMANDS
17567 $ $0 $@
e5a52504 17568
81ecdfbb
RW
17569on `(hostname || uname -n) 2>/dev/null | sed 1q`
17570"
17571
42ecbf5e
DJ
17572_ACEOF
17573
81ecdfbb
RW
17574case $ac_config_files in *"
17575"*) set x $ac_config_files; shift; ac_config_files=$*;;
17576esac
e5a52504 17577
81ecdfbb
RW
17578case $ac_config_headers in *"
17579"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17580esac
42ecbf5e 17581
42ecbf5e 17582
81ecdfbb
RW
17583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17584# Files that config.status was made for.
17585config_files="$ac_config_files"
17586config_headers="$ac_config_headers"
17587config_commands="$ac_config_commands"
42ecbf5e 17588
81ecdfbb 17589_ACEOF
42ecbf5e 17590
81ecdfbb 17591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17592ac_cs_usage="\
81ecdfbb
RW
17593\`$as_me' instantiates files and other configuration actions
17594from templates according to the current configuration. Unless the files
17595and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17596
81ecdfbb 17597Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17598
17599 -h, --help print this help, then exit
81ecdfbb
RW
17600 -V, --version print version number and configuration settings, then exit
17601 -q, --quiet, --silent
17602 do not print progress messages
42ecbf5e
DJ
17603 -d, --debug don't remove temporary files
17604 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17605 --file=FILE[:TEMPLATE]
17606 instantiate the configuration file FILE
17607 --header=FILE[:TEMPLATE]
17608 instantiate the configuration header FILE
42ecbf5e
DJ
17609
17610Configuration files:
17611$config_files
17612
17613Configuration headers:
17614$config_headers
17615
17616Configuration commands:
17617$config_commands
17618
81ecdfbb 17619Report bugs to the package provider."
42ecbf5e 17620
81ecdfbb
RW
17621_ACEOF
17622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
17623ac_cs_version="\\
17624config.status
81ecdfbb
RW
17625configured by $0, generated by GNU Autoconf 2.64,
17626 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17627
81ecdfbb 17628Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17629This config.status script is free software; the Free Software Foundation
17630gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17631
17632ac_pwd='$ac_pwd'
17633srcdir='$srcdir'
17634INSTALL='$INSTALL'
17635MKDIR_P='$MKDIR_P'
17636AWK='$AWK'
17637test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17638_ACEOF
17639
81ecdfbb
RW
17640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17641# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17642ac_need_defaults=:
17643while test $# != 0
17644do
17645 case $1 in
17646 --*=*)
81ecdfbb
RW
17647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17649 ac_shift=:
252b5132 17650 ;;
81ecdfbb 17651 *)
42ecbf5e
DJ
17652 ac_option=$1
17653 ac_optarg=$2
17654 ac_shift=shift
252b5132 17655 ;;
42ecbf5e 17656 esac
252b5132 17657
42ecbf5e
DJ
17658 case $ac_option in
17659 # Handling of the options.
42ecbf5e
DJ
17660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17661 ac_cs_recheck=: ;;
81ecdfbb
RW
17662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17663 $as_echo "$ac_cs_version"; exit ;;
17664 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17665 debug=: ;;
17666 --file | --fil | --fi | --f )
17667 $ac_shift
81ecdfbb
RW
17668 case $ac_optarg in
17669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17670 esac
17671 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17672 ac_need_defaults=false;;
17673 --header | --heade | --head | --hea )
17674 $ac_shift
81ecdfbb
RW
17675 case $ac_optarg in
17676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17677 esac
17678 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17679 ac_need_defaults=false;;
81ecdfbb
RW
17680 --he | --h)
17681 # Conflict between --help and --header
17682 as_fn_error "ambiguous option: \`$1'
17683Try \`$0 --help' for more information.";;
17684 --help | --hel | -h )
17685 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17688 ac_cs_silent=: ;;
252b5132 17689
42ecbf5e 17690 # This is an error.
81ecdfbb
RW
17691 -*) as_fn_error "unrecognized option: \`$1'
17692Try \`$0 --help' for more information." ;;
252b5132 17693
81ecdfbb
RW
17694 *) as_fn_append ac_config_targets " $1"
17695 ac_need_defaults=false ;;
252b5132 17696
42ecbf5e
DJ
17697 esac
17698 shift
17699done
d15b04bd 17700
42ecbf5e 17701ac_configure_extra_args=
e5a52504 17702
42ecbf5e
DJ
17703if $ac_cs_silent; then
17704 exec 6>/dev/null
17705 ac_configure_extra_args="$ac_configure_extra_args --silent"
17706fi
e5a52504 17707
42ecbf5e 17708_ACEOF
81ecdfbb 17709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17710if \$ac_cs_recheck; then
81ecdfbb
RW
17711 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17712 shift
17713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17714 CONFIG_SHELL='$SHELL'
17715 export CONFIG_SHELL
17716 exec "\$@"
42ecbf5e
DJ
17717fi
17718
17719_ACEOF
81ecdfbb
RW
17720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17721exec 5>>config.log
17722{
17723 echo
17724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17725## Running $as_me. ##
17726_ASBOX
17727 $as_echo "$ac_log"
17728} >&5
42ecbf5e 17729
81ecdfbb
RW
17730_ACEOF
17731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17732#
81ecdfbb 17733# INIT-COMMANDS
252b5132 17734#
42ecbf5e 17735AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17736
17737
17738# The HP-UX ksh and POSIX shell print the target directory to stdout
17739# if CDPATH is set.
17740(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17741
17742sed_quote_subst='$sed_quote_subst'
17743double_quote_subst='$double_quote_subst'
17744delay_variable_subst='$delay_variable_subst'
3725885a
RW
17745macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17746macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17747enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17748enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17749pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17750enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17751SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17752ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17753host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17754host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17755host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17756build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17757build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17758build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17759SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17760Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17761GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17762EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17763FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17764LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17765NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17766LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17767max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17768ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17769exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17770lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17771lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17772lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17773reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17774reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17775OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17776deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17777file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17778AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17779AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17780STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17781RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17782old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17783old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17784old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17785lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17786CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17787CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17788compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17789GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17790lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17791lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17792lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17793lt_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"`'
17794objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17795MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17796lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17797lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17798lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17799lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17800lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17801need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17802DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17803NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17804LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17805OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17806OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17807libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17808shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17809extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17810archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17811enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17812export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17813whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17814compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17815old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17816old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17817archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17818archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17819module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17820module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17821with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17822allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17823no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17824hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17825hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17826hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17827hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17828hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17829hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17830hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17831hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17832inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17833link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17834fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17835always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17836export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17837exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17838include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17839prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17840file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17841variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17842need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17843need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17844version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17845runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17846shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17847shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17848libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17849library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17850soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17851install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17852postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17853postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17854finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17855finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17856hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17857sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17858sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17859hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17860enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17861enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17862enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17863old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17864striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
17865compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17866predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17867postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17868predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17869postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17870compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17871LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17872reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17873reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17874old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17875compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17876GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17877lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17878lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17879lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17880lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17881lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17882archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17883enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17884export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17885whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17886compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17887old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17888old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17889archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17890archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17891module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17892module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17893with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17894allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17895no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17896hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17897hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17898hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17899hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17900hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17901hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17902hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17903hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17904inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17905link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17906fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17907always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17908export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17910include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17911prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17912file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17913hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17914compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17915predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17916postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17917predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17918postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17919compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
17920
17921LTCC='$LTCC'
17922LTCFLAGS='$LTCFLAGS'
17923compiler='$compiler_DEFAULT'
17924
3725885a
RW
17925# A function that is used when there is no print builtin or printf.
17926func_fallback_echo ()
17927{
17928 eval 'cat <<_LTECHO_EOF
17929\$1
17930_LTECHO_EOF'
17931}
17932
d7040cdb 17933# Quote evaled strings.
3725885a
RW
17934for var in SHELL \
17935ECHO \
17936SED \
d7040cdb
SE
17937GREP \
17938EGREP \
17939FGREP \
17940LD \
17941NM \
17942LN_S \
17943lt_SP2NL \
17944lt_NL2SP \
17945reload_flag \
b214d478 17946OBJDUMP \
d7040cdb
SE
17947deplibs_check_method \
17948file_magic_cmd \
17949AR \
17950AR_FLAGS \
17951STRIP \
17952RANLIB \
17953CC \
17954CFLAGS \
17955compiler \
17956lt_cv_sys_global_symbol_pipe \
17957lt_cv_sys_global_symbol_to_cdecl \
17958lt_cv_sys_global_symbol_to_c_name_address \
b214d478 17959lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17960lt_prog_compiler_no_builtin_flag \
17961lt_prog_compiler_wl \
17962lt_prog_compiler_pic \
17963lt_prog_compiler_static \
17964lt_cv_prog_compiler_c_o \
17965need_locks \
b214d478
SE
17966DSYMUTIL \
17967NMEDIT \
17968LIPO \
17969OTOOL \
17970OTOOL64 \
d7040cdb
SE
17971shrext_cmds \
17972export_dynamic_flag_spec \
17973whole_archive_flag_spec \
17974compiler_needs_object \
17975with_gnu_ld \
17976allow_undefined_flag \
17977no_undefined_flag \
17978hardcode_libdir_flag_spec \
17979hardcode_libdir_flag_spec_ld \
17980hardcode_libdir_separator \
17981fix_srcfile_path \
17982exclude_expsyms \
17983include_expsyms \
17984file_list_spec \
17985variables_saved_for_relink \
17986libname_spec \
17987library_names_spec \
17988soname_spec \
3725885a 17989install_override_mode \
d7040cdb
SE
17990finish_eval \
17991old_striplib \
3cb62297
L
17992striplib \
17993compiler_lib_search_dirs \
17994predep_objects \
17995postdep_objects \
17996predeps \
17997postdeps \
17998compiler_lib_search_path \
17999LD_CXX \
18000reload_flag_CXX \
18001compiler_CXX \
18002lt_prog_compiler_no_builtin_flag_CXX \
18003lt_prog_compiler_wl_CXX \
18004lt_prog_compiler_pic_CXX \
18005lt_prog_compiler_static_CXX \
18006lt_cv_prog_compiler_c_o_CXX \
18007export_dynamic_flag_spec_CXX \
18008whole_archive_flag_spec_CXX \
18009compiler_needs_object_CXX \
18010with_gnu_ld_CXX \
18011allow_undefined_flag_CXX \
18012no_undefined_flag_CXX \
18013hardcode_libdir_flag_spec_CXX \
18014hardcode_libdir_flag_spec_ld_CXX \
18015hardcode_libdir_separator_CXX \
18016fix_srcfile_path_CXX \
18017exclude_expsyms_CXX \
18018include_expsyms_CXX \
18019file_list_spec_CXX \
18020compiler_lib_search_dirs_CXX \
18021predep_objects_CXX \
18022postdep_objects_CXX \
18023predeps_CXX \
18024postdeps_CXX \
18025compiler_lib_search_path_CXX; do
3725885a 18026 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18027 *[\\\\\\\`\\"\\\$]*)
3725885a 18028 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18029 ;;
18030 *)
18031 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18032 ;;
18033 esac
18034done
18035
18036# Double-quote double-evaled strings.
18037for var in reload_cmds \
18038old_postinstall_cmds \
18039old_postuninstall_cmds \
18040old_archive_cmds \
18041extract_expsyms_cmds \
18042old_archive_from_new_cmds \
18043old_archive_from_expsyms_cmds \
18044archive_cmds \
18045archive_expsym_cmds \
18046module_cmds \
18047module_expsym_cmds \
18048export_symbols_cmds \
18049prelink_cmds \
18050postinstall_cmds \
18051postuninstall_cmds \
18052finish_cmds \
18053sys_lib_search_path_spec \
3cb62297
L
18054sys_lib_dlsearch_path_spec \
18055reload_cmds_CXX \
18056old_archive_cmds_CXX \
18057old_archive_from_new_cmds_CXX \
18058old_archive_from_expsyms_cmds_CXX \
18059archive_cmds_CXX \
18060archive_expsym_cmds_CXX \
18061module_cmds_CXX \
18062module_expsym_cmds_CXX \
18063export_symbols_cmds_CXX \
18064prelink_cmds_CXX; do
3725885a 18065 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18066 *[\\\\\\\`\\"\\\$]*)
3725885a 18067 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18068 ;;
18069 *)
18070 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18071 ;;
18072 esac
18073done
18074
d7040cdb
SE
18075ac_aux_dir='$ac_aux_dir'
18076xsi_shell='$xsi_shell'
18077lt_shell_append='$lt_shell_append'
18078
18079# See if we are running on zsh, and set the options which allow our
18080# commands through without removal of \ escapes INIT.
18081if test -n "\${ZSH_VERSION+set}" ; then
18082 setopt NO_GLOB_SUBST
18083fi
18084
18085
18086 PACKAGE='$PACKAGE'
18087 VERSION='$VERSION'
18088 TIMESTAMP='$TIMESTAMP'
18089 RM='$RM'
18090 ofile='$ofile'
18091
18092
18093
3cb62297
L
18094
18095
20e95c23
DJ
18096# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18097 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18098 # from automake.
18099 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18100 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18101 LINGUAS="${LINGUAS-%UNSET%}"
18102
42ecbf5e
DJ
18103
18104_ACEOF
18105
81ecdfbb 18106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18107
81ecdfbb 18108# Handling of arguments.
42ecbf5e 18109for ac_config_target in $ac_config_targets
252b5132 18110do
81ecdfbb
RW
18111 case $ac_config_target in
18112 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18113 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18114 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18115 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18117 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18118
18119 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18120 esac
18121done
18122
81ecdfbb 18123
42ecbf5e
DJ
18124# If the user did not use the arguments to specify the items to instantiate,
18125# then the envvar interface is used. Set only those that are not.
18126# We use the long form for the default assignment because of an extremely
18127# bizarre bug on SunOS 4.1.3.
18128if $ac_need_defaults; then
18129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18132fi
18133
18134# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18135# simply because there is no reason against having it here, and in addition,
42ecbf5e 18136# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18137# Hook for its removal unless debugging.
18138# Note that there is a small window in which the directory will not be cleaned:
18139# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18140$debug ||
18141{
81ecdfbb
RW
18142 tmp=
18143 trap 'exit_status=$?
18144 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18145' 0
18146 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18147}
42ecbf5e 18148# Create a (secure) tmp directory for tmp files.
e5a52504 18149
42ecbf5e 18150{
81ecdfbb 18151 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18152 test -n "$tmp" && test -d "$tmp"
18153} ||
18154{
81ecdfbb
RW
18155 tmp=./conf$$-$RANDOM
18156 (umask 077 && mkdir "$tmp")
18157} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18158
18159# Set up the scripts for CONFIG_FILES section.
18160# No need to generate them if there are no CONFIG_FILES.
18161# This happens for instance with `./config.status config.h'.
18162if test -n "$CONFIG_FILES"; then
18163
18164if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18165 ac_cs_awk_getline=:
18166 ac_cs_awk_pipe_init=
18167 ac_cs_awk_read_file='
18168 while ((getline aline < (F[key])) > 0)
18169 print(aline)
18170 close(F[key])'
18171 ac_cs_awk_pipe_fini=
18172else
18173 ac_cs_awk_getline=false
18174 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18175 ac_cs_awk_read_file='
18176 print "|#_!!_#|"
18177 print "cat " F[key] " &&"
18178 '$ac_cs_awk_pipe_init
18179 # The final `:' finishes the AND list.
18180 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18181fi
18182ac_cr=`echo X | tr X '\015'`
18183# On cygwin, bash can eat \r inside `` if the user requested igncr.
18184# But we know of no other shell where ac_cr would be empty at this
18185# point, so we can use a bashism as a fallback.
18186if test "x$ac_cr" = x; then
18187 eval ac_cr=\$\'\\r\'
18188fi
18189ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18190if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18191 ac_cs_awk_cr='\r'
18192else
18193 ac_cs_awk_cr=$ac_cr
18194fi
18195
18196echo 'BEGIN {' >"$tmp/subs1.awk" &&
18197_ACEOF
18198
18199# Create commands to substitute file output variables.
42ecbf5e 18200{
81ecdfbb
RW
18201 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18202 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18203 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18204 echo "_ACAWK" &&
18205 echo "_ACEOF"
18206} >conf$$files.sh &&
18207. ./conf$$files.sh ||
18208 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18209rm -f conf$$files.sh
e5a52504 18210
81ecdfbb
RW
18211{
18212 echo "cat >conf$$subs.awk <<_ACEOF" &&
18213 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18214 echo "_ACEOF"
18215} >conf$$subs.sh ||
18216 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18217ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18218ac_delim='%!_!# '
18219for ac_last_try in false false false false false :; do
18220 . ./conf$$subs.sh ||
18221 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18222
18223 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18224 if test $ac_delim_n = $ac_delim_num; then
18225 break
18226 elif $ac_last_try; then
18227 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18228 else
18229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18230 fi
18231done
18232rm -f conf$$subs.sh
18233
18234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18235cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18236_ACEOF
18237sed -n '
18238h
18239s/^/S["/; s/!.*/"]=/
18240p
18241g
18242s/^[^!]*!//
18243:repl
18244t repl
18245s/'"$ac_delim"'$//
18246t delim
18247:nl
18248h
18249s/\(.\{148\}\).*/\1/
18250t more1
18251s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18252p
18253n
18254b repl
18255:more1
18256s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18257p
18258g
18259s/.\{148\}//
18260t nl
18261:delim
18262h
18263s/\(.\{148\}\).*/\1/
18264t more2
18265s/["\\]/\\&/g; s/^/"/; s/$/"/
18266p
18267b
18268:more2
18269s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18270p
18271g
18272s/.\{148\}//
18273t delim
18274' <conf$$subs.awk | sed '
18275/^[^""]/{
18276 N
18277 s/\n//
18278}
18279' >>$CONFIG_STATUS || ac_write_fail=1
18280rm -f conf$$subs.awk
18281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18282_ACAWK
18283cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18284 for (key in S) S_is_set[key] = 1
18285 FS = "\a"
18286 \$ac_cs_awk_pipe_init
18287}
18288{
18289 line = $ 0
18290 nfields = split(line, field, "@")
18291 substed = 0
18292 len = length(field[1])
18293 for (i = 2; i < nfields; i++) {
18294 key = field[i]
18295 keylen = length(key)
18296 if (S_is_set[key]) {
18297 value = S[key]
18298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18299 len += length(value) + length(field[++i])
18300 substed = 1
18301 } else
18302 len += 1 + keylen
18303 }
18304 if (nfields == 3 && !substed) {
18305 key = field[2]
18306 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18307 \$ac_cs_awk_read_file
18308 next
18309 }
18310 }
18311 print line
18312}
18313\$ac_cs_awk_pipe_fini
18314_ACAWK
18315_ACEOF
18316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18318 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18319else
18320 cat
18321fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18322 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18323_ACEOF
d15b04bd 18324
81ecdfbb
RW
18325# VPATH may cause trouble with some makes, so we remove $(srcdir),
18326# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18327# trailing colons and then remove the whole line if VPATH becomes empty
18328# (actually we leave an empty line to preserve line numbers).
18329if test "x$srcdir" = x.; then
18330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18331s/:*\$(srcdir):*/:/
18332s/:*\${srcdir}:*/:/
18333s/:*@srcdir@:*/:/
18334s/^\([^=]*=[ ]*\):*/\1/
18335s/:*$//
18336s/^[^=]*=[ ]*$//
18337}'
18338fi
18339
18340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18341fi # test -n "$CONFIG_FILES"
42ecbf5e 18342
81ecdfbb
RW
18343# Set up the scripts for CONFIG_HEADERS section.
18344# No need to generate them if there are no CONFIG_HEADERS.
18345# This happens for instance with `./config.status Makefile'.
18346if test -n "$CONFIG_HEADERS"; then
18347cat >"$tmp/defines.awk" <<\_ACAWK ||
18348BEGIN {
18349_ACEOF
42ecbf5e 18350
81ecdfbb
RW
18351# Transform confdefs.h into an awk script `defines.awk', embedded as
18352# here-document in config.status, that substitutes the proper values into
18353# config.h.in to produce config.h.
252b5132 18354
81ecdfbb
RW
18355# Create a delimiter string that does not exist in confdefs.h, to ease
18356# handling of long lines.
18357ac_delim='%!_!# '
18358for ac_last_try in false false :; do
18359 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18360 if test -z "$ac_t"; then
18361 break
18362 elif $ac_last_try; then
18363 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18364 else
18365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18366 fi
18367done
18368
18369# For the awk script, D is an array of macro values keyed by name,
18370# likewise P contains macro parameters if any. Preserve backslash
18371# newline sequences.
18372
18373ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18374sed -n '
18375s/.\{148\}/&'"$ac_delim"'/g
18376t rset
18377:rset
18378s/^[ ]*#[ ]*define[ ][ ]*/ /
18379t def
18380d
18381:def
18382s/\\$//
18383t bsnl
18384s/["\\]/\\&/g
18385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18386D["\1"]=" \3"/p
18387s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18388d
18389:bsnl
18390s/["\\]/\\&/g
18391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18392D["\1"]=" \3\\\\\\n"\\/p
18393t cont
18394s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18395t cont
18396d
18397:cont
18398n
18399s/.\{148\}/&'"$ac_delim"'/g
18400t clear
18401:clear
18402s/\\$//
18403t bsnlc
18404s/["\\]/\\&/g; s/^/"/; s/$/"/p
18405d
18406:bsnlc
18407s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18408b cont
18409' <confdefs.h | sed '
18410s/'"$ac_delim"'/"\\\
18411"/g' >>$CONFIG_STATUS || ac_write_fail=1
18412
18413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414 for (key in D) D_is_set[key] = 1
18415 FS = "\a"
18416}
18417/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18418 line = \$ 0
18419 split(line, arg, " ")
18420 if (arg[1] == "#") {
18421 defundef = arg[2]
18422 mac1 = arg[3]
18423 } else {
18424 defundef = substr(arg[1], 2)
18425 mac1 = arg[2]
18426 }
18427 split(mac1, mac2, "(") #)
18428 macro = mac2[1]
18429 prefix = substr(line, 1, index(line, defundef) - 1)
18430 if (D_is_set[macro]) {
18431 # Preserve the white space surrounding the "#".
18432 print prefix "define", macro P[macro] D[macro]
18433 next
18434 } else {
18435 # Replace #undef with comments. This is necessary, for example,
18436 # in the case of _POSIX_SOURCE, which is predefined and required
18437 # on some systems where configure will not decide to define it.
18438 if (defundef == "undef") {
18439 print "/*", prefix defundef, macro, "*/"
18440 next
18441 }
18442 }
18443}
18444{ print }
18445_ACAWK
42ecbf5e 18446_ACEOF
81ecdfbb
RW
18447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18448 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18449fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18450
81ecdfbb
RW
18451
18452eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18453shift
18454for ac_tag
18455do
18456 case $ac_tag in
18457 :[FHLC]) ac_mode=$ac_tag; continue;;
18458 esac
18459 case $ac_mode$ac_tag in
18460 :[FHL]*:*);;
18461 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18462 :[FH]-) ac_tag=-:-;;
18463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18464 esac
18465 ac_save_IFS=$IFS
18466 IFS=:
18467 set x $ac_tag
18468 IFS=$ac_save_IFS
18469 shift
18470 ac_file=$1
18471 shift
18472
18473 case $ac_mode in
18474 :L) ac_source=$1;;
18475 :[FH])
18476 ac_file_inputs=
18477 for ac_f
18478 do
18479 case $ac_f in
18480 -) ac_f="$tmp/stdin";;
18481 *) # Look for the file first in the build tree, then in the source tree
18482 # (if the path is not absolute). The absolute path cannot be DOS-style,
18483 # because $ac_f cannot contain `:'.
18484 test -f "$ac_f" ||
18485 case $ac_f in
18486 [\\/$]*) false;;
18487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18488 esac ||
18489 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18490 esac
18491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18492 as_fn_append ac_file_inputs " '$ac_f'"
18493 done
18494
18495 # Let's still pretend it is `configure' which instantiates (i.e., don't
18496 # use $as_me), people would be surprised to read:
18497 # /* config.h. Generated by config.status. */
18498 configure_input='Generated from '`
18499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18500 `' by configure.'
18501 if test x"$ac_file" != x-; then
18502 configure_input="$ac_file. $configure_input"
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18504$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18505 fi
81ecdfbb
RW
18506 # Neutralize special characters interpreted by sed in replacement strings.
18507 case $configure_input in #(
18508 *\&* | *\|* | *\\* )
18509 ac_sed_conf_input=`$as_echo "$configure_input" |
18510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18511 *) ac_sed_conf_input=$configure_input;;
18512 esac
252b5132 18513
81ecdfbb
RW
18514 case $ac_tag in
18515 *:-:* | *:-) cat >"$tmp/stdin" \
18516 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18517 esac
18518 ;;
252b5132
RH
18519 esac
18520
81ecdfbb 18521 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18523 X"$ac_file" : 'X\(//\)[^/]' \| \
18524 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18526$as_echo X"$ac_file" |
18527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18528 s//\1/
18529 q
18530 }
18531 /^X\(\/\/\)[^/].*/{
18532 s//\1/
18533 q
18534 }
18535 /^X\(\/\/\)$/{
18536 s//\1/
18537 q
18538 }
18539 /^X\(\/\).*/{
18540 s//\1/
18541 q
18542 }
18543 s/.*/./; q'`
18544 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18545 ac_builddir=.
18546
81ecdfbb
RW
18547case "$ac_dir" in
18548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18549*)
18550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18551 # A ".." for each directory in $ac_dir_suffix.
18552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18553 case $ac_top_builddir_sub in
18554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18556 esac ;;
18557esac
18558ac_abs_top_builddir=$ac_pwd
18559ac_abs_builddir=$ac_pwd$ac_dir_suffix
18560# for backward compatibility:
18561ac_top_builddir=$ac_top_build_prefix
252b5132 18562
42ecbf5e 18563case $srcdir in
81ecdfbb 18564 .) # We are building in place.
42ecbf5e 18565 ac_srcdir=.
81ecdfbb
RW
18566 ac_top_srcdir=$ac_top_builddir_sub
18567 ac_abs_top_srcdir=$ac_pwd ;;
18568 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18569 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18570 ac_top_srcdir=$srcdir
18571 ac_abs_top_srcdir=$srcdir ;;
18572 *) # Relative name.
18573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18574 ac_top_srcdir=$ac_top_build_prefix$srcdir
18575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18576esac
81ecdfbb 18577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18578
252b5132 18579
81ecdfbb
RW
18580 case $ac_mode in
18581 :F)
18582 #
18583 # CONFIG_FILE
18584 #
e5a52504 18585
42ecbf5e
DJ
18586 case $INSTALL in
18587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18589 esac
18590 ac_MKDIR_P=$MKDIR_P
18591 case $MKDIR_P in
18592 [\\/$]* | ?:[\\/]* ) ;;
18593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18594 esac
81ecdfbb 18595_ACEOF
e5a52504 18596
81ecdfbb
RW
18597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18598# If the template does not know about datarootdir, expand it.
18599# FIXME: This hack should be removed a few years after 2.60.
18600ac_datarootdir_hack=; ac_datarootdir_seen=
18601ac_sed_dataroot='
18602/datarootdir/ {
18603 p
18604 q
18605}
18606/@datadir@/p
18607/@docdir@/p
18608/@infodir@/p
18609/@localedir@/p
18610/@mandir@/p'
18611case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18612*datarootdir*) ac_datarootdir_seen=yes;;
18613*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18615$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18616_ACEOF
18617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18618 ac_datarootdir_hack='
18619 s&@datadir@&$datadir&g
18620 s&@docdir@&$docdir&g
18621 s&@infodir@&$infodir&g
18622 s&@localedir@&$localedir&g
18623 s&@mandir@&$mandir&g
18624 s&\\\${datarootdir}&$datarootdir&g' ;;
18625esac
42ecbf5e 18626_ACEOF
81ecdfbb
RW
18627
18628# Neutralize VPATH when `$srcdir' = `.'.
18629# Shell code in configure.ac might set extrasub.
18630# FIXME: do we really want to maintain this feature?
18631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18632ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18633$extrasub
18634_ACEOF
81ecdfbb 18635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18636:t
18637/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18638s|@configure_input@|$ac_sed_conf_input|;t t
18639s&@top_builddir@&$ac_top_builddir_sub&;t t
18640s&@top_build_prefix@&$ac_top_build_prefix&;t t
18641s&@srcdir@&$ac_srcdir&;t t
18642s&@abs_srcdir@&$ac_abs_srcdir&;t t
18643s&@top_srcdir@&$ac_top_srcdir&;t t
18644s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18645s&@builddir@&$ac_builddir&;t t
18646s&@abs_builddir@&$ac_abs_builddir&;t t
18647s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18648s&@INSTALL@&$ac_INSTALL&;t t
18649s&@MKDIR_P@&$ac_MKDIR_P&;t t
18650$ac_datarootdir_hack
18651"
18652eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18653if $ac_cs_awk_getline; then
18654 $AWK -f "$tmp/subs.awk"
18655else
18656 $AWK -f "$tmp/subs.awk" | $SHELL
18657fi >$tmp/out \
18658 || as_fn_error "could not create $ac_file" "$LINENO" 5
18659
18660test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18661 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18662 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18664which seems to be undefined. Please make sure it is defined." >&5
18665$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18666which seems to be undefined. Please make sure it is defined." >&2;}
18667
18668 rm -f "$tmp/stdin"
42ecbf5e 18669 case $ac_file in
81ecdfbb
RW
18670 -) cat "$tmp/out" && rm -f "$tmp/out";;
18671 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18672 esac \
18673 || as_fn_error "could not create $ac_file" "$LINENO" 5
18674 ;;
18675 :H)
18676 #
18677 # CONFIG_HEADER
18678 #
42ecbf5e 18679 if test x"$ac_file" != x-; then
81ecdfbb
RW
18680 {
18681 $as_echo "/* $configure_input */" \
18682 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18683 } >"$tmp/config.h" \
18684 || as_fn_error "could not create $ac_file" "$LINENO" 5
18685 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18687$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18688 else
81ecdfbb
RW
18689 rm -f "$ac_file"
18690 mv "$tmp/config.h" "$ac_file" \
18691 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18692 fi
42ecbf5e 18693 else
81ecdfbb
RW
18694 $as_echo "/* $configure_input */" \
18695 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18696 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18697 fi
81ecdfbb
RW
18698# Compute "$ac_file"'s index in $config_headers.
18699_am_arg="$ac_file"
42ecbf5e
DJ
18700_am_stamp_count=1
18701for _am_header in $config_headers :; do
18702 case $_am_header in
81ecdfbb 18703 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18704 break ;;
18705 * )
18706 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18707 esac
18708done
81ecdfbb
RW
18709echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18710$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18711 X"$_am_arg" : 'X\(//\)[^/]' \| \
18712 X"$_am_arg" : 'X\(//\)$' \| \
18713 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18714$as_echo X"$_am_arg" |
18715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18716 s//\1/
18717 q
18718 }
18719 /^X\(\/\/\)[^/].*/{
18720 s//\1/
18721 q
18722 }
18723 /^X\(\/\/\)$/{
18724 s//\1/
18725 q
18726 }
18727 /^X\(\/\).*/{
18728 s//\1/
18729 q
18730 }
18731 s/.*/./; q'`/stamp-h$_am_stamp_count
18732 ;;
42ecbf5e 18733
81ecdfbb
RW
18734 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18735$as_echo "$as_me: executing $ac_file commands" >&6;}
18736 ;;
18737 esac
42ecbf5e
DJ
18738
18739
81ecdfbb
RW
18740 case $ac_file$ac_mode in
18741 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18742 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18743 # are listed without --file. Let's play safe and only enable the eval
18744 # if we detect the quoting.
18745 case $CONFIG_FILES in
18746 *\'*) eval set x "$CONFIG_FILES" ;;
18747 *) set x $CONFIG_FILES ;;
18748 esac
18749 shift
18750 for mf
18751 do
18752 # Strip MF so we end up with the name of the file.
18753 mf=`echo "$mf" | sed -e 's/:.*$//'`
18754 # Check whether this is an Automake generated Makefile or not.
18755 # We used to match only the files named `Makefile.in', but
18756 # some people rename them; so instead we look at the file content.
18757 # Grep'ing the first line is not enough: some people post-process
18758 # each Makefile.in and add a new line on top of each file to say so.
18759 # Grep'ing the whole file is not good either: AIX grep has a line
18760 # limit of 2048, but all sed's we know have understand at least 4000.
18761 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18762 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18763$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18764 X"$mf" : 'X\(//\)[^/]' \| \
18765 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18766 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18767$as_echo X"$mf" |
18768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18769 s//\1/
18770 q
18771 }
18772 /^X\(\/\/\)[^/].*/{
18773 s//\1/
18774 q
18775 }
18776 /^X\(\/\/\)$/{
18777 s//\1/
18778 q
18779 }
18780 /^X\(\/\).*/{
18781 s//\1/
18782 q
18783 }
18784 s/.*/./; q'`
18785 else
18786 continue
18787 fi
18788 # Extract the definition of DEPDIR, am__include, and am__quote
18789 # from the Makefile without running `make'.
18790 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18791 test -z "$DEPDIR" && continue
18792 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18793 test -z "am__include" && continue
18794 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18795 # When using ansi2knr, U may be empty or an underscore; expand it
18796 U=`sed -n 's/^U = //p' < "$mf"`
18797 # Find all dependency output files, they are included files with
18798 # $(DEPDIR) in their names. We invoke sed twice because it is the
18799 # simplest approach to changing $(DEPDIR) to its actual value in the
18800 # expansion.
18801 for file in `sed -n "
18802 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18803 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18804 # Make sure the directory exists.
18805 test -f "$dirpart/$file" && continue
18806 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18807$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18808 X"$file" : 'X\(//\)[^/]' \| \
18809 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18810 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18811$as_echo X"$file" |
18812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18813 s//\1/
18814 q
18815 }
18816 /^X\(\/\/\)[^/].*/{
18817 s//\1/
18818 q
18819 }
18820 /^X\(\/\/\)$/{
18821 s//\1/
18822 q
18823 }
18824 /^X\(\/\).*/{
18825 s//\1/
18826 q
18827 }
18828 s/.*/./; q'`
18829 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18830 # echo "creating $dirpart/$file"
18831 echo '# dummy' > "$dirpart/$file"
42ecbf5e 18832 done
42ecbf5e 18833 done
81ecdfbb 18834}
d7040cdb 18835 ;;
81ecdfbb 18836 "libtool":C)
d7040cdb
SE
18837
18838 # See if we are running on zsh, and set the options which allow our
18839 # commands through without removal of \ escapes.
18840 if test -n "${ZSH_VERSION+set}" ; then
18841 setopt NO_GLOB_SUBST
18842 fi
18843
18844 cfgfile="${ofile}T"
18845 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18846 $RM "$cfgfile"
18847
18848 cat <<_LT_EOF >> "$cfgfile"
18849#! $SHELL
18850
18851# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 18852# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18853# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18854# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18855#
b214d478 18856# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 18857# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 18858# Written by Gordon Matzigkeit, 1996
d7040cdb 18859#
b214d478 18860# This file is part of GNU Libtool.
d7040cdb 18861#
b214d478
SE
18862# GNU Libtool is free software; you can redistribute it and/or
18863# modify it under the terms of the GNU General Public License as
18864# published by the Free Software Foundation; either version 2 of
18865# the License, or (at your option) any later version.
d7040cdb 18866#
b214d478
SE
18867# As a special exception to the GNU General Public License,
18868# if you distribute this file as part of a program or library that
18869# is built using GNU Libtool, you may include this file under the
18870# same distribution terms that you use for the rest of that program.
d7040cdb 18871#
b214d478
SE
18872# GNU Libtool is distributed in the hope that it will be useful,
18873# but WITHOUT ANY WARRANTY; without even the implied warranty of
18874# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18875# GNU General Public License for more details.
d7040cdb 18876#
b214d478
SE
18877# You should have received a copy of the GNU General Public License
18878# along with GNU Libtool; see the file COPYING. If not, a copy
18879# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18880# obtained by writing to the Free Software Foundation, Inc.,
18881# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18882
18883
18884# The names of the tagged configurations supported by this script.
3cb62297 18885available_tags="CXX "
d7040cdb
SE
18886
18887# ### BEGIN LIBTOOL CONFIG
18888
18889# Which release of libtool.m4 was used?
18890macro_version=$macro_version
18891macro_revision=$macro_revision
18892
18893# Whether or not to build shared libraries.
18894build_libtool_libs=$enable_shared
18895
18896# Whether or not to build static libraries.
18897build_old_libs=$enable_static
18898
18899# What type of objects to build.
18900pic_mode=$pic_mode
18901
18902# Whether or not to optimize for fast installation.
18903fast_install=$enable_fast_install
18904
3725885a
RW
18905# Shell to use when invoking shell scripts.
18906SHELL=$lt_SHELL
18907
18908# An echo program that protects backslashes.
18909ECHO=$lt_ECHO
18910
d7040cdb
SE
18911# The host system.
18912host_alias=$host_alias
18913host=$host
18914host_os=$host_os
18915
18916# The build system.
18917build_alias=$build_alias
18918build=$build
18919build_os=$build_os
18920
18921# A sed program that does not truncate output.
18922SED=$lt_SED
18923
18924# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18925Xsed="\$SED -e 1s/^X//"
18926
18927# A grep program that handles long lines.
18928GREP=$lt_GREP
18929
18930# An ERE matcher.
18931EGREP=$lt_EGREP
18932
18933# A literal string matcher.
18934FGREP=$lt_FGREP
18935
18936# A BSD- or MS-compatible name lister.
18937NM=$lt_NM
18938
18939# Whether we need soft or hard links.
18940LN_S=$lt_LN_S
18941
18942# What is the maximum length of a command?
18943max_cmd_len=$max_cmd_len
18944
18945# Object file suffix (normally "o").
18946objext=$ac_objext
18947
18948# Executable file suffix (normally "").
18949exeext=$exeext
18950
18951# whether the shell understands "unset".
18952lt_unset=$lt_unset
18953
18954# turn spaces into newlines.
18955SP2NL=$lt_lt_SP2NL
18956
18957# turn newlines into spaces.
18958NL2SP=$lt_lt_NL2SP
18959
b214d478
SE
18960# An object symbol dumper.
18961OBJDUMP=$lt_OBJDUMP
18962
d7040cdb
SE
18963# Method to check whether dependent libraries are shared objects.
18964deplibs_check_method=$lt_deplibs_check_method
18965
18966# Command to use when deplibs_check_method == "file_magic".
18967file_magic_cmd=$lt_file_magic_cmd
18968
18969# The archiver.
18970AR=$lt_AR
18971AR_FLAGS=$lt_AR_FLAGS
18972
18973# A symbol stripping program.
18974STRIP=$lt_STRIP
18975
18976# Commands used to install an old-style archive.
18977RANLIB=$lt_RANLIB
18978old_postinstall_cmds=$lt_old_postinstall_cmds
18979old_postuninstall_cmds=$lt_old_postuninstall_cmds
18980
3725885a
RW
18981# Whether to use a lock for old archive extraction.
18982lock_old_archive_extraction=$lock_old_archive_extraction
18983
d7040cdb
SE
18984# A C compiler.
18985LTCC=$lt_CC
18986
18987# LTCC compiler flags.
18988LTCFLAGS=$lt_CFLAGS
18989
18990# Take the output of nm and produce a listing of raw symbols and C names.
18991global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18992
18993# Transform the output of nm in a proper C declaration.
18994global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18995
18996# Transform the output of nm in a C name address pair.
18997global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18998
b214d478
SE
18999# Transform the output of nm in a C name address pair when lib prefix is needed.
19000global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19001
d7040cdb
SE
19002# The name of the directory that contains temporary libtool files.
19003objdir=$objdir
19004
d7040cdb
SE
19005# Used to examine libraries when file_magic_cmd begins with "file".
19006MAGIC_CMD=$MAGIC_CMD
19007
19008# Must we lock files when doing compilation?
19009need_locks=$lt_need_locks
19010
b214d478
SE
19011# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19012DSYMUTIL=$lt_DSYMUTIL
19013
19014# Tool to change global to local symbols on Mac OS X.
19015NMEDIT=$lt_NMEDIT
19016
19017# Tool to manipulate fat objects and archives on Mac OS X.
19018LIPO=$lt_LIPO
19019
19020# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19021OTOOL=$lt_OTOOL
19022
19023# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19024OTOOL64=$lt_OTOOL64
19025
d7040cdb
SE
19026# Old archive suffix (normally "a").
19027libext=$libext
19028
19029# Shared library suffix (normally ".so").
19030shrext_cmds=$lt_shrext_cmds
19031
19032# The commands to extract the exported symbol list from a shared archive.
19033extract_expsyms_cmds=$lt_extract_expsyms_cmds
19034
19035# Variables whose values should be saved in libtool wrapper scripts and
19036# restored at link time.
19037variables_saved_for_relink=$lt_variables_saved_for_relink
19038
19039# Do we need the "lib" prefix for modules?
19040need_lib_prefix=$need_lib_prefix
19041
19042# Do we need a version for libraries?
19043need_version=$need_version
19044
19045# Library versioning type.
19046version_type=$version_type
19047
19048# Shared library runtime path variable.
19049runpath_var=$runpath_var
19050
19051# Shared library path variable.
19052shlibpath_var=$shlibpath_var
19053
19054# Is shlibpath searched before the hard-coded library search path?
19055shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19056
19057# Format of library name prefix.
19058libname_spec=$lt_libname_spec
19059
19060# List of archive names. First name is the real one, the rest are links.
19061# The last name is the one that the linker finds with -lNAME
19062library_names_spec=$lt_library_names_spec
19063
19064# The coded name of the library, if different from the real name.
19065soname_spec=$lt_soname_spec
19066
3725885a
RW
19067# Permission mode override for installation of shared libraries.
19068install_override_mode=$lt_install_override_mode
19069
d7040cdb
SE
19070# Command to use after installation of a shared archive.
19071postinstall_cmds=$lt_postinstall_cmds
19072
19073# Command to use after uninstallation of a shared archive.
19074postuninstall_cmds=$lt_postuninstall_cmds
19075
19076# Commands used to finish a libtool library installation in a directory.
19077finish_cmds=$lt_finish_cmds
19078
19079# As "finish_cmds", except a single script fragment to be evaled but
19080# not shown.
19081finish_eval=$lt_finish_eval
19082
19083# Whether we should hardcode library paths into libraries.
19084hardcode_into_libs=$hardcode_into_libs
19085
19086# Compile-time system search path for libraries.
19087sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19088
19089# Run-time system search path for libraries.
19090sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19091
19092# Whether dlopen is supported.
19093dlopen_support=$enable_dlopen
19094
19095# Whether dlopen of programs is supported.
19096dlopen_self=$enable_dlopen_self
19097
19098# Whether dlopen of statically linked programs is supported.
19099dlopen_self_static=$enable_dlopen_self_static
19100
19101# Commands to strip libraries.
19102old_striplib=$lt_old_striplib
19103striplib=$lt_striplib
19104
19105
19106# The linker used to build libraries.
19107LD=$lt_LD
19108
3725885a
RW
19109# How to create reloadable object files.
19110reload_flag=$lt_reload_flag
19111reload_cmds=$lt_reload_cmds
19112
d7040cdb
SE
19113# Commands used to build an old-style archive.
19114old_archive_cmds=$lt_old_archive_cmds
19115
19116# A language specific compiler.
19117CC=$lt_compiler
19118
19119# Is the compiler the GNU compiler?
19120with_gcc=$GCC
19121
19122# Compiler flag to turn off builtin functions.
19123no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19124
19125# How to pass a linker flag through the compiler.
19126wl=$lt_lt_prog_compiler_wl
19127
19128# Additional compiler flags for building library objects.
19129pic_flag=$lt_lt_prog_compiler_pic
19130
19131# Compiler flag to prevent dynamic linking.
19132link_static_flag=$lt_lt_prog_compiler_static
19133
19134# Does compiler simultaneously support -c and -o options?
19135compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19136
19137# Whether or not to add -lc for building shared libraries.
19138build_libtool_need_lc=$archive_cmds_need_lc
19139
19140# Whether or not to disallow shared libs when runtime libs are static.
19141allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19142
19143# Compiler flag to allow reflexive dlopens.
19144export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19145
19146# Compiler flag to generate shared objects directly from archives.
19147whole_archive_flag_spec=$lt_whole_archive_flag_spec
19148
19149# Whether the compiler copes with passing no objects directly.
19150compiler_needs_object=$lt_compiler_needs_object
19151
19152# Create an old-style archive from a shared archive.
19153old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19154
19155# Create a temporary old-style archive to link instead of a shared archive.
19156old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19157
19158# Commands used to build a shared archive.
19159archive_cmds=$lt_archive_cmds
19160archive_expsym_cmds=$lt_archive_expsym_cmds
19161
19162# Commands used to build a loadable module if different from building
19163# a shared archive.
19164module_cmds=$lt_module_cmds
19165module_expsym_cmds=$lt_module_expsym_cmds
19166
19167# Whether we are building with GNU ld or not.
19168with_gnu_ld=$lt_with_gnu_ld
19169
19170# Flag that allows shared libraries with undefined symbols to be built.
19171allow_undefined_flag=$lt_allow_undefined_flag
19172
19173# Flag that enforces no undefined symbols.
19174no_undefined_flag=$lt_no_undefined_flag
19175
19176# Flag to hardcode \$libdir into a binary during linking.
19177# This must work even if \$libdir does not exist
19178hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19179
19180# If ld is used when linking, flag to hardcode \$libdir into a binary
19181# during linking. This must work even if \$libdir does not exist.
19182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19183
19184# Whether we need a single "-rpath" flag with a separated argument.
19185hardcode_libdir_separator=$lt_hardcode_libdir_separator
19186
19187# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19188# DIR into the resulting binary.
19189hardcode_direct=$hardcode_direct
19190
19191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19192# DIR into the resulting binary and the resulting library dependency is
19193# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19194# library is relocated.
19195hardcode_direct_absolute=$hardcode_direct_absolute
19196
19197# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19198# into the resulting binary.
19199hardcode_minus_L=$hardcode_minus_L
19200
19201# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19202# into the resulting binary.
19203hardcode_shlibpath_var=$hardcode_shlibpath_var
19204
19205# Set to "yes" if building a shared library automatically hardcodes DIR
19206# into the library and all subsequent libraries and executables linked
19207# against it.
19208hardcode_automatic=$hardcode_automatic
19209
19210# Set to yes if linker adds runtime paths of dependent libraries
19211# to runtime path list.
19212inherit_rpath=$inherit_rpath
19213
19214# Whether libtool must link a program against all its dependency libraries.
19215link_all_deplibs=$link_all_deplibs
19216
19217# Fix the shell variable \$srcfile for the compiler.
19218fix_srcfile_path=$lt_fix_srcfile_path
19219
19220# Set to "yes" if exported symbols are required.
19221always_export_symbols=$always_export_symbols
19222
19223# The commands to list exported symbols.
19224export_symbols_cmds=$lt_export_symbols_cmds
19225
19226# Symbols that should not be listed in the preloaded symbols.
19227exclude_expsyms=$lt_exclude_expsyms
19228
19229# Symbols that must always be exported.
19230include_expsyms=$lt_include_expsyms
19231
19232# Commands necessary for linking programs (against libraries) with templates.
19233prelink_cmds=$lt_prelink_cmds
19234
19235# Specify filename containing input files.
19236file_list_spec=$lt_file_list_spec
19237
19238# How to hardcode a shared library path into an executable.
19239hardcode_action=$hardcode_action
19240
3cb62297
L
19241# The directories searched by this compiler when creating a shared library.
19242compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19243
19244# Dependencies to place before and after the objects being linked to
19245# create a shared library.
19246predep_objects=$lt_predep_objects
19247postdep_objects=$lt_postdep_objects
19248predeps=$lt_predeps
19249postdeps=$lt_postdeps
19250
19251# The library search path used internally by the compiler when linking
19252# a shared library.
19253compiler_lib_search_path=$lt_compiler_lib_search_path
19254
d7040cdb
SE
19255# ### END LIBTOOL CONFIG
19256
19257_LT_EOF
19258
19259 case $host_os in
19260 aix3*)
19261 cat <<\_LT_EOF >> "$cfgfile"
19262# AIX sometimes has problems with the GCC collect2 program. For some
19263# reason, if we set the COLLECT_NAMES environment variable, the problems
19264# vanish in a puff of smoke.
19265if test "X${COLLECT_NAMES+set}" != Xset; then
19266 COLLECT_NAMES=
19267 export COLLECT_NAMES
19268fi
19269_LT_EOF
19270 ;;
19271 esac
19272
19273
19274ltmain="$ac_aux_dir/ltmain.sh"
19275
19276
19277 # We use sed instead of cat because bash on DJGPP gets confused if
19278 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19279 # text mode, it properly converts lines to CR/LF. This bash problem
19280 # is reportedly fixed, but why not run on old versions too?
19281 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19282 || (rm -f "$cfgfile"; exit 1)
19283
19284 case $xsi_shell in
19285 yes)
19286 cat << \_LT_EOF >> "$cfgfile"
b214d478 19287
d7040cdb
SE
19288# func_dirname file append nondir_replacement
19289# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19290# otherwise set result to NONDIR_REPLACEMENT.
19291func_dirname ()
19292{
19293 case ${1} in
19294 */*) func_dirname_result="${1%/*}${2}" ;;
19295 * ) func_dirname_result="${3}" ;;
19296 esac
19297}
19298
19299# func_basename file
19300func_basename ()
19301{
19302 func_basename_result="${1##*/}"
19303}
19304
b214d478
SE
19305# func_dirname_and_basename file append nondir_replacement
19306# perform func_basename and func_dirname in a single function
19307# call:
19308# dirname: Compute the dirname of FILE. If nonempty,
19309# add APPEND to the result, otherwise set result
19310# to NONDIR_REPLACEMENT.
19311# value returned in "$func_dirname_result"
19312# basename: Compute filename of FILE.
19313# value retuned in "$func_basename_result"
19314# Implementation must be kept synchronized with func_dirname
19315# and func_basename. For efficiency, we do not delegate to
19316# those functions but instead duplicate the functionality here.
19317func_dirname_and_basename ()
19318{
19319 case ${1} in
19320 */*) func_dirname_result="${1%/*}${2}" ;;
19321 * ) func_dirname_result="${3}" ;;
19322 esac
19323 func_basename_result="${1##*/}"
19324}
19325
d7040cdb
SE
19326# func_stripname prefix suffix name
19327# strip PREFIX and SUFFIX off of NAME.
19328# PREFIX and SUFFIX must not contain globbing or regex special
19329# characters, hashes, percent signs, but SUFFIX may contain a leading
19330# dot (in which case that matches only a dot).
19331func_stripname ()
19332{
19333 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19334 # positional parameters, so assign one to ordinary parameter first.
19335 func_stripname_result=${3}
19336 func_stripname_result=${func_stripname_result#"${1}"}
19337 func_stripname_result=${func_stripname_result%"${2}"}
19338}
19339
19340# func_opt_split
19341func_opt_split ()
19342{
19343 func_opt_split_opt=${1%%=*}
19344 func_opt_split_arg=${1#*=}
19345}
19346
19347# func_lo2o object
19348func_lo2o ()
19349{
19350 case ${1} in
19351 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19352 *) func_lo2o_result=${1} ;;
19353 esac
19354}
b214d478
SE
19355
19356# func_xform libobj-or-source
19357func_xform ()
19358{
19359 func_xform_result=${1%.*}.lo
19360}
19361
19362# func_arith arithmetic-term...
19363func_arith ()
19364{
19365 func_arith_result=$(( $* ))
19366}
19367
19368# func_len string
19369# STRING may not start with a hyphen.
19370func_len ()
19371{
19372 func_len_result=${#1}
19373}
19374
d7040cdb
SE
19375_LT_EOF
19376 ;;
19377 *) # Bourne compatible functions.
19378 cat << \_LT_EOF >> "$cfgfile"
b214d478 19379
d7040cdb
SE
19380# func_dirname file append nondir_replacement
19381# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19382# otherwise set result to NONDIR_REPLACEMENT.
19383func_dirname ()
19384{
19385 # Extract subdirectory from the argument.
3725885a 19386 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19387 if test "X$func_dirname_result" = "X${1}"; then
19388 func_dirname_result="${3}"
19389 else
19390 func_dirname_result="$func_dirname_result${2}"
19391 fi
19392}
19393
19394# func_basename file
19395func_basename ()
19396{
3725885a 19397 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19398}
19399
b214d478 19400
d7040cdb
SE
19401# func_stripname prefix suffix name
19402# strip PREFIX and SUFFIX off of NAME.
19403# PREFIX and SUFFIX must not contain globbing or regex special
19404# characters, hashes, percent signs, but SUFFIX may contain a leading
19405# dot (in which case that matches only a dot).
19406# func_strip_suffix prefix name
19407func_stripname ()
19408{
19409 case ${2} in
3725885a
RW
19410 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19411 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19412 esac
19413}
19414
19415# sed scripts:
19416my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19417my_sed_long_arg='1s/^-[^=]*=//'
19418
19419# func_opt_split
19420func_opt_split ()
19421{
3725885a
RW
19422 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19423 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19424}
19425
19426# func_lo2o object
19427func_lo2o ()
19428{
3725885a 19429 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19430}
b214d478
SE
19431
19432# func_xform libobj-or-source
19433func_xform ()
19434{
3725885a 19435 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19436}
19437
19438# func_arith arithmetic-term...
19439func_arith ()
19440{
19441 func_arith_result=`expr "$@"`
19442}
19443
19444# func_len string
19445# STRING may not start with a hyphen.
19446func_len ()
19447{
19448 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19449}
19450
d7040cdb
SE
19451_LT_EOF
19452esac
19453
19454case $lt_shell_append in
19455 yes)
19456 cat << \_LT_EOF >> "$cfgfile"
19457
19458# func_append var value
19459# Append VALUE to the end of shell variable VAR.
19460func_append ()
19461{
19462 eval "$1+=\$2"
19463}
19464_LT_EOF
19465 ;;
19466 *)
19467 cat << \_LT_EOF >> "$cfgfile"
19468
19469# func_append var value
19470# Append VALUE to the end of shell variable VAR.
19471func_append ()
19472{
19473 eval "$1=\$$1\$2"
19474}
b214d478 19475
d7040cdb
SE
19476_LT_EOF
19477 ;;
19478 esac
19479
19480
19481 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19482 || (rm -f "$cfgfile"; exit 1)
19483
19484 mv -f "$cfgfile" "$ofile" ||
19485 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19486 chmod +x "$ofile"
19487
3cb62297
L
19488
19489 cat <<_LT_EOF >> "$ofile"
19490
19491# ### BEGIN LIBTOOL TAG CONFIG: CXX
19492
19493# The linker used to build libraries.
19494LD=$lt_LD_CXX
19495
19496# How to create reloadable object files.
19497reload_flag=$lt_reload_flag_CXX
19498reload_cmds=$lt_reload_cmds_CXX
19499
19500# Commands used to build an old-style archive.
19501old_archive_cmds=$lt_old_archive_cmds_CXX
19502
19503# A language specific compiler.
19504CC=$lt_compiler_CXX
19505
19506# Is the compiler the GNU compiler?
19507with_gcc=$GCC_CXX
19508
19509# Compiler flag to turn off builtin functions.
19510no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19511
19512# How to pass a linker flag through the compiler.
19513wl=$lt_lt_prog_compiler_wl_CXX
19514
19515# Additional compiler flags for building library objects.
19516pic_flag=$lt_lt_prog_compiler_pic_CXX
19517
19518# Compiler flag to prevent dynamic linking.
19519link_static_flag=$lt_lt_prog_compiler_static_CXX
19520
19521# Does compiler simultaneously support -c and -o options?
19522compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19523
19524# Whether or not to add -lc for building shared libraries.
19525build_libtool_need_lc=$archive_cmds_need_lc_CXX
19526
19527# Whether or not to disallow shared libs when runtime libs are static.
19528allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19529
19530# Compiler flag to allow reflexive dlopens.
19531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19532
19533# Compiler flag to generate shared objects directly from archives.
19534whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19535
19536# Whether the compiler copes with passing no objects directly.
19537compiler_needs_object=$lt_compiler_needs_object_CXX
19538
19539# Create an old-style archive from a shared archive.
19540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19541
19542# Create a temporary old-style archive to link instead of a shared archive.
19543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19544
19545# Commands used to build a shared archive.
19546archive_cmds=$lt_archive_cmds_CXX
19547archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19548
19549# Commands used to build a loadable module if different from building
19550# a shared archive.
19551module_cmds=$lt_module_cmds_CXX
19552module_expsym_cmds=$lt_module_expsym_cmds_CXX
19553
19554# Whether we are building with GNU ld or not.
19555with_gnu_ld=$lt_with_gnu_ld_CXX
19556
19557# Flag that allows shared libraries with undefined symbols to be built.
19558allow_undefined_flag=$lt_allow_undefined_flag_CXX
19559
19560# Flag that enforces no undefined symbols.
19561no_undefined_flag=$lt_no_undefined_flag_CXX
19562
19563# Flag to hardcode \$libdir into a binary during linking.
19564# This must work even if \$libdir does not exist
19565hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19566
19567# If ld is used when linking, flag to hardcode \$libdir into a binary
19568# during linking. This must work even if \$libdir does not exist.
19569hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19570
19571# Whether we need a single "-rpath" flag with a separated argument.
19572hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19573
19574# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19575# DIR into the resulting binary.
19576hardcode_direct=$hardcode_direct_CXX
19577
19578# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19579# DIR into the resulting binary and the resulting library dependency is
19580# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19581# library is relocated.
19582hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19583
19584# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19585# into the resulting binary.
19586hardcode_minus_L=$hardcode_minus_L_CXX
19587
19588# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19589# into the resulting binary.
19590hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19591
19592# Set to "yes" if building a shared library automatically hardcodes DIR
19593# into the library and all subsequent libraries and executables linked
19594# against it.
19595hardcode_automatic=$hardcode_automatic_CXX
19596
19597# Set to yes if linker adds runtime paths of dependent libraries
19598# to runtime path list.
19599inherit_rpath=$inherit_rpath_CXX
19600
19601# Whether libtool must link a program against all its dependency libraries.
19602link_all_deplibs=$link_all_deplibs_CXX
19603
19604# Fix the shell variable \$srcfile for the compiler.
19605fix_srcfile_path=$lt_fix_srcfile_path_CXX
19606
19607# Set to "yes" if exported symbols are required.
19608always_export_symbols=$always_export_symbols_CXX
19609
19610# The commands to list exported symbols.
19611export_symbols_cmds=$lt_export_symbols_cmds_CXX
19612
19613# Symbols that should not be listed in the preloaded symbols.
19614exclude_expsyms=$lt_exclude_expsyms_CXX
19615
19616# Symbols that must always be exported.
19617include_expsyms=$lt_include_expsyms_CXX
19618
19619# Commands necessary for linking programs (against libraries) with templates.
19620prelink_cmds=$lt_prelink_cmds_CXX
19621
19622# Specify filename containing input files.
19623file_list_spec=$lt_file_list_spec_CXX
19624
19625# How to hardcode a shared library path into an executable.
19626hardcode_action=$hardcode_action_CXX
19627
19628# The directories searched by this compiler when creating a shared library.
19629compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19630
19631# Dependencies to place before and after the objects being linked to
19632# create a shared library.
19633predep_objects=$lt_predep_objects_CXX
19634postdep_objects=$lt_postdep_objects_CXX
19635predeps=$lt_predeps_CXX
19636postdeps=$lt_postdeps_CXX
19637
19638# The library search path used internally by the compiler when linking
19639# a shared library.
19640compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19641
19642# ### END LIBTOOL TAG CONFIG: CXX
19643_LT_EOF
19644
42ecbf5e 19645 ;;
81ecdfbb 19646 "default-1":C)
20e95c23
DJ
19647 for ac_file in $CONFIG_FILES; do
19648 # Support "outfile[:infile[:infile...]]"
19649 case "$ac_file" in
19650 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19651 esac
19652 # PO directories have a Makefile.in generated from Makefile.in.in.
19653 case "$ac_file" in */Makefile.in)
19654 # Adjust a relative srcdir.
19655 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19656 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19657 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19658 # In autoconf-2.13 it is called $ac_given_srcdir.
19659 # In autoconf-2.50 it is called $srcdir.
19660 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19661 case "$ac_given_srcdir" in
19662 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19663 /*) top_srcdir="$ac_given_srcdir" ;;
19664 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19665 esac
19666 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19667 rm -f "$ac_dir/POTFILES"
19668 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19669 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19670 POMAKEFILEDEPS="POTFILES.in"
19671 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19672 # on $ac_dir but don't depend on user-specified configuration
19673 # parameters.
19674 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19675 # The LINGUAS file contains the set of available languages.
19676 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19677 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19678 fi
19679 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19680 # Hide the ALL_LINGUAS assigment from automake.
19681 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19682 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19683 else
19684 # The set of available languages was given in configure.in.
19685 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19686 fi
19687 case "$ac_given_srcdir" in
19688 .) srcdirpre= ;;
19689 *) srcdirpre='$(srcdir)/' ;;
19690 esac
19691 POFILES=
19692 GMOFILES=
19693 UPDATEPOFILES=
19694 DUMMYPOFILES=
19695 for lang in $ALL_LINGUAS; do
19696 POFILES="$POFILES $srcdirpre$lang.po"
19697 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19698 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19699 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19700 done
19701 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19702 # environment variable.
19703 INST_LINGUAS=
19704 if test -n "$ALL_LINGUAS"; then
19705 for presentlang in $ALL_LINGUAS; do
19706 useit=no
19707 if test "%UNSET%" != "$LINGUAS"; then
19708 desiredlanguages="$LINGUAS"
19709 else
19710 desiredlanguages="$ALL_LINGUAS"
19711 fi
19712 for desiredlang in $desiredlanguages; do
19713 # Use the presentlang catalog if desiredlang is
19714 # a. equal to presentlang, or
19715 # b. a variant of presentlang (because in this case,
19716 # presentlang can be used as a fallback for messages
19717 # which are not translated in the desiredlang catalog).
19718 case "$desiredlang" in
19719 "$presentlang"*) useit=yes;;
19720 esac
19721 done
19722 if test $useit = yes; then
19723 INST_LINGUAS="$INST_LINGUAS $presentlang"
19724 fi
19725 done
19726 fi
19727 CATALOGS=
19728 if test -n "$INST_LINGUAS"; then
19729 for lang in $INST_LINGUAS; do
19730 CATALOGS="$CATALOGS $lang.gmo"
19731 done
19732 fi
19733 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19734 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"
19735 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19736 if test -f "$f"; then
19737 case "$f" in
19738 *.orig | *.bak | *~) ;;
19739 *) cat "$f" >> "$ac_dir/Makefile" ;;
19740 esac
19741 fi
19742 done
19743 fi
19744 ;;
19745 esac
19746 done ;;
81ecdfbb 19747
42ecbf5e 19748 esac
81ecdfbb 19749done # for ac_tag
42ecbf5e 19750
42ecbf5e 19751
81ecdfbb 19752as_fn_exit 0
42ecbf5e 19753_ACEOF
42ecbf5e
DJ
19754ac_clean_files=$ac_clean_files_save
19755
81ecdfbb
RW
19756test $ac_write_fail = 0 ||
19757 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19758
42ecbf5e
DJ
19759
19760# configure is writing to config.log, and then calls config.status.
19761# config.status does its own redirection, appending to config.log.
19762# Unfortunately, on DOS this fails, as config.log is still kept open
19763# by configure, so config.status won't be able to write to it; its
19764# output is simply discarded. So we exec the FD to /dev/null,
19765# effectively closing config.log, so it can be properly (re)opened and
19766# appended to by config.status. When coming back to configure, we
19767# need to make the FD available again.
19768if test "$no_create" != yes; then
19769 ac_cs_success=:
19770 ac_config_status_args=
19771 test "$silent" = yes &&
19772 ac_config_status_args="$ac_config_status_args --quiet"
19773 exec 5>/dev/null
19774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19775 exec 5>>config.log
19776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19777 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19778 $ac_cs_success || as_fn_exit $?
19779fi
19780if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19782$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19783fi
252b5132 19784
This page took 1.760004 seconds and 4 git commands to generate.