]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
99b5dbf2 3# Generated by GNU Autoconf 2.64 for ld 2.28.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
42ecbf5e 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
42ecbf5e 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
42ecbf5e 418
42ecbf5e
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
42ecbf5e 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
42ecbf5e
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
42ecbf5e
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
42ecbf5e 491 fi
42ecbf5e
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
42ecbf5e
DJ
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='ld'
558PACKAGE_TARNAME='ld'
99b5dbf2
TG
559PACKAGE_VERSION='2.28.51'
560PACKAGE_STRING='ld 2.28.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
42ecbf5e
DJ
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
c58212ea
L
611elf_plt_unwind_list_options
612elf_shlib_list_options
613elf_list_options
81ecdfbb 614STRINGIFY
02ecc8e9 615enable_initfini_array
5d3236ee
DK
616ENABLE_PLUGINS_FALSE
617ENABLE_PLUGINS_TRUE
81ecdfbb 618NATIVE_LIB_DIRS
81ecdfbb
RW
619HDEFINES
620do_compare
621GENINSRC_NEVER_FALSE
622GENINSRC_NEVER_TRUE
81ecdfbb
RW
623LEXLIB
624LEX_OUTPUT_ROOT
625LEX
626YFLAGS
627YACC
628MSGMERGE
629MSGFMT
630MKINSTALLDIRS
631CATOBJEXT
632GENCAT
633INSTOBJEXT
634DATADIRNAME
635CATALOGS
636POSUB
637GMSGFMT
638XGETTEXT
639INCINTL
640LIBINTL_DEP
641LIBINTL
642USE_NLS
6757cf57 643WARN_WRITE_STRINGS
b879806f 644NO_WERROR
c5da1932 645WARN_CFLAGS_FOR_BUILD
b879806f
AM
646WARN_CFLAGS
647installed_linker
648install_as_default
649TARGET_SYSTEM_ROOT_DEFINE
650TARGET_SYSTEM_ROOT
651use_sysroot
3cb62297 652CXXCPP
81ecdfbb
RW
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
81ecdfbb
RW
658RANLIB
659AR
660OBJDUMP
661LN_S
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LD
666FGREP
667SED
668LIBTOOL
b879806f 669EGREP
b879806f 670CPP
68880f31 671GREP
3cb62297
L
672am__fastdepCXX_FALSE
673am__fastdepCXX_TRUE
674CXXDEPMODE
675ac_ct_CXX
676CXXFLAGS
677CXX
64ac50ac
RW
678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
81ecdfbb
RW
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
6eb7d830 684am__nodep
81ecdfbb
RW
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__quote
689am__include
690DEPDIR
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721target_os
722target_vendor
723target_cpu
724target
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL'
42ecbf5e 771ac_subst_files='TDIRS'
81ecdfbb
RW
772ac_user_opts='
773enable_option_checking
774enable_dependency_tracking
64ac50ac 775enable_maintainer_mode
b879806f
AM
776enable_shared
777enable_static
778with_pic
779enable_fast_install
780with_gnu_ld
781enable_libtool_lock
782enable_plugins
783enable_largefile
81ecdfbb
RW
784with_lib_path
785enable_targets
786enable_64_bit_bfd
787with_sysroot
4fda8867 788enable_gold
81ecdfbb 789enable_got
6c3bc0f8 790enable_compressed_debug_sections
647e4d46 791enable_relro
81ecdfbb
RW
792enable_werror
793enable_build_warnings
81ecdfbb 794enable_nls
02ecc8e9 795enable_initfini_array
81ecdfbb
RW
796'
797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
3cb62297
L
805CXX
806CXXFLAGS
807CCC
b879806f 808CPP
3cb62297 809CXXCPP
81ecdfbb
RW
810YACC
811YFLAGS'
812
252b5132
RH
813
814# Initialize some variables set by options.
42ecbf5e
DJ
815ac_init_help=
816ac_init_version=false
81ecdfbb
RW
817ac_unrecognized_opts=
818ac_unrecognized_sep=
252b5132
RH
819# The variables have the same names as the options, with
820# dashes changed to underlines.
42ecbf5e 821cache_file=/dev/null
252b5132 822exec_prefix=NONE
252b5132 823no_create=
252b5132
RH
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
252b5132
RH
832verbose=
833x_includes=NONE
834x_libraries=NONE
42ecbf5e
DJ
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 841# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
252b5132
RH
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
252b5132
RH
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
2e98a7bd 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
252b5132 861
252b5132 862ac_prev=
81ecdfbb 863ac_dashdash=
252b5132
RH
864for ac_option
865do
252b5132
RH
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
81ecdfbb 868 eval $ac_prev=\$ac_option
252b5132
RH
869 ac_prev=
870 continue
871 fi
872
81ecdfbb
RW
873 case $ac_option in
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *) ac_optarg=yes ;;
876 esac
252b5132
RH
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
81ecdfbb
RW
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
252b5132
RH
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 887 bindir=$ac_optarg ;;
252b5132
RH
888
889 -build | --build | --buil | --bui | --bu)
42ecbf5e 890 ac_prev=build_alias ;;
252b5132 891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 892 build_alias=$ac_optarg ;;
252b5132
RH
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
252b5132 903
81ecdfbb 904 -datadir | --datadir | --datadi | --datad)
252b5132 905 ac_prev=datadir ;;
81ecdfbb 906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 907 datadir=$ac_optarg ;;
252b5132 908
81ecdfbb
RW
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
252b5132 916 -disable-* | --disable-*)
81ecdfbb 917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 918 # Reject names that are not valid shell variable names.
81ecdfbb
RW
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925"enable_$ac_useropt"
926"*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
252b5132
RH
941
942 -enable-* | --enable-*)
81ecdfbb 943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 944 # Reject names that are not valid shell variable names.
81ecdfbb
RW
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
252b5132 955 esac
81ecdfbb 956 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
42ecbf5e 965 exec_prefix=$ac_optarg ;;
252b5132
RH
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
42ecbf5e
DJ
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
252b5132
RH
977
978 -host | --host | --hos | --ho)
42ecbf5e 979 ac_prev=host_alias ;;
252b5132 980 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 981 host_alias=$ac_optarg ;;
252b5132 982
81ecdfbb
RW
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
252b5132
RH
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 994 includedir=$ac_optarg ;;
252b5132
RH
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 999 infodir=$ac_optarg ;;
252b5132
RH
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1004 libdir=$ac_optarg ;;
252b5132
RH
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1011 libexecdir=$ac_optarg ;;
252b5132 1012
81ecdfbb
RW
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
252b5132 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1019 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1023 localstatedir=$ac_optarg ;;
252b5132
RH
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1028 mandir=$ac_optarg ;;
252b5132
RH
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1035 | --no-cr | --no-c | -n)
252b5132
RH
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1049 oldincludedir=$ac_optarg ;;
252b5132
RH
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1054 prefix=$ac_optarg ;;
252b5132
RH
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1061 program_prefix=$ac_optarg ;;
252b5132
RH
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1068 program_suffix=$ac_optarg ;;
252b5132
RH
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1085 program_transform_name=$ac_optarg ;;
252b5132 1086
81ecdfbb
RW
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
252b5132
RH
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
42ecbf5e 1105 sbindir=$ac_optarg ;;
252b5132
RH
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
42ecbf5e 1116 sharedstatedir=$ac_optarg ;;
252b5132
RH
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
42ecbf5e 1121 site=$ac_optarg ;;
85fbca6a 1122
252b5132
RH
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1126 srcdir=$ac_optarg ;;
252b5132
RH
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1133 sysconfdir=$ac_optarg ;;
252b5132
RH
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1136 ac_prev=target_alias ;;
252b5132 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1138 target_alias=$ac_optarg ;;
252b5132
RH
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
42ecbf5e
DJ
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
252b5132
RH
1145
1146 -with-* | --with-*)
81ecdfbb 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1148 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155"with_$ac_useropt"
1156"*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
252b5132 1159 esac
81ecdfbb 1160 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1161
1162 -without-* | --without-*)
81ecdfbb 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
252b5132
RH
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1187 x_includes=$ac_optarg ;;
252b5132
RH
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1194 x_libraries=$ac_optarg ;;
252b5132 1195
81ecdfbb
RW
1196 -*) as_fn_error "unrecognized option: \`$ac_option'
1197Try \`$0 --help' for more information."
252b5132
RH
1198 ;;
1199
42ecbf5e
DJ
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1208 export $ac_envvar ;;
1209
252b5132 1210 *)
42ecbf5e 1211 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1215 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1216 ;;
1217
1218 esac
1219done
1220
1221if test -n "$ac_prev"; then
42ecbf5e 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1223 as_fn_error "missing argument to $ac_option"
252b5132 1224fi
252b5132 1225
81ecdfbb
RW
1226if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1231 esac
81ecdfbb 1232fi
252b5132 1233
81ecdfbb
RW
1234# Check all directory arguments for consistency.
1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
252b5132 1239do
81ecdfbb
RW
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
42ecbf5e 1248 case $ac_val in
81ecdfbb
RW
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1251 esac
81ecdfbb 1252 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1253done
1254
42ecbf5e
DJ
1255# There might be people who depend on the old broken behavior: `$host'
1256# used to hold the argument of --host etc.
1257# FIXME: To remove some day.
1258build=$build_alias
1259host=$host_alias
1260target=$target_alias
1261
1262# FIXME: To remove some day.
1263if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
81ecdfbb 1266 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271fi
e5a52504 1272
42ecbf5e
DJ
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
252b5132 1277
252b5132 1278
81ecdfbb
RW
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error "pwd does not report name of working directory"
1285
1286
252b5132
RH
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
81ecdfbb
RW
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
252b5132 1314 srcdir=$ac_confdir
81ecdfbb 1315 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1316 srcdir=..
1317 fi
1318else
1319 ac_srcdir_defaulted=no
1320fi
81ecdfbb
RW
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1328 pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
252b5132 1345
42ecbf5e
DJ
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
99b5dbf2 1353\`configure' configures ld 2.28.51 to adapt to many kinds of systems.
252b5132 1354
42ecbf5e 1355Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1356
42ecbf5e
DJ
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1359
42ecbf5e 1360Defaults for the options are specified in brackets.
ac48eca1 1361
42ecbf5e
DJ
1362Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
42ecbf5e
DJ
1373Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1375 [$ac_default_prefix]
42ecbf5e 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1377 [PREFIX]
ac48eca1 1378
42ecbf5e
DJ
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
ac48eca1 1383
42ecbf5e 1384For better control, use the options below.
ac48eca1 1385
42ecbf5e 1386Fine tuning of the installation directories:
81ecdfbb
RW
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1406_ACEOF
ac48eca1 1407
42ecbf5e 1408 cat <<\_ACEOF
252b5132 1409
42ecbf5e
DJ
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1414
42ecbf5e
DJ
1415System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1419_ACEOF
252b5132 1420fi
252b5132 1421
42ecbf5e 1422if test -n "$ac_init_help"; then
2e98a7bd 1423 case $ac_init_help in
99b5dbf2 1424 short | recursive ) echo "Configuration of ld 2.28.51:";;
2e98a7bd 1425 esac
42ecbf5e 1426 cat <<\_ACEOF
e5a52504 1427
42ecbf5e 1428Optional Features:
81ecdfbb 1429 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --disable-dependency-tracking speeds up one-time build
1433 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1434 --enable-maintainer-mode enable make rules and dependencies not useful
1435 (and sometimes confusing) to the casual installer
b879806f
AM
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --enable-plugins Enable support for plugins
1442 --disable-largefile omit support for large files
ce2cded5
L
1443 --enable-targets alternative target configurations
1444 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1445 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1446 --enable-got=<type> GOT handling scheme (target, single, negative,
1447 multigot)
4894d80b
L
1448 --enable-compressed-debug-sections={all,ld,none}
1449 compress debug sections by default]
647e4d46 1450 --enable-relro enable -z relro in ELF linker by default
ce2cded5
L
1451 --enable-werror treat compile warnings as errors
1452 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1453 --disable-nls do not use Native Language Support
26e3a0c9 1454 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1455
1456Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1462 --with-lib-path=dir1:dir2... set default LIB_PATH
1463 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1464
1465Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
81ecdfbb
RW
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
3cb62297
L
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
b879806f 1475 CPP C preprocessor
3cb62297 1476 CXXCPP C++ preprocessor
81ecdfbb
RW
1477 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1478 the first program found out of: `bison -y', `byacc', `yacc'.
1479 YFLAGS The list of arguments that will be passed by default to $YACC.
1480 This script will default YFLAGS to the empty string to avoid a
1481 default value of `-d' given by some make applications.
42ecbf5e
DJ
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
81ecdfbb 1486Report bugs to the package provider.
42ecbf5e 1487_ACEOF
81ecdfbb 1488ac_status=$?
42ecbf5e
DJ
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
42ecbf5e 1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
42ecbf5e
DJ
1497 ac_builddir=.
1498
81ecdfbb
RW
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1514
1515case $srcdir in
81ecdfbb 1516 .) # We are building in place.
42ecbf5e 1517 ac_srcdir=.
81ecdfbb
RW
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1521 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1528esac
81ecdfbb
RW
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1539 else
81ecdfbb
RW
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1543 done
a2d91340
AC
1544fi
1545
81ecdfbb 1546test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1547if $ac_init_version; then
1548 cat <<\_ACEOF
99b5dbf2 1549ld configure 2.28.51
81ecdfbb 1550generated by GNU Autoconf 2.64
a2d91340 1551
81ecdfbb 1552Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
81ecdfbb 1556 exit
42ecbf5e 1557fi
a2d91340 1558
81ecdfbb
RW
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
a2d91340 1562
81ecdfbb
RW
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1593
81ecdfbb
RW
1594 ac_retval=1
1595fi
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_link LINENO
1602# -----------------------
1603# Try to link conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_link ()
42ecbf5e 1605{
81ecdfbb
RW
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631else
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1634
81ecdfbb
RW
1635 ac_retval=1
1636fi
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
42ecbf5e 1644
81ecdfbb 1645} # ac_fn_c_try_link
42ecbf5e 1646
b879806f
AM
1647# ac_fn_cxx_try_compile LINENO
1648# ----------------------------
1649# Try to compile conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_cxx_try_compile ()
81ecdfbb
RW
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
81ecdfbb
RW
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
b879806f 1661 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1671 test ! -s conftest.err
b879806f 1672 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
b879806f 1678 ac_retval=1
81ecdfbb
RW
1679fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
b879806f 1683} # ac_fn_cxx_try_compile
81ecdfbb 1684
b879806f
AM
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
3cb62297
L
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1692case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
b879806f 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1708 test ! -s conftest.err
b879806f 1709 }; then :
3cb62297
L
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
b879806f 1715 ac_retval=1
3cb62297
L
1716fi
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1719
b879806f 1720} # ac_fn_c_try_cpp
3cb62297 1721
81ecdfbb
RW
1722# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725# the include files in INCLUDES and setting the cache variable VAR
1726# accordingly.
1727ac_fn_c_check_header_mongrel ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739else
1740 # Is the header compilable?
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742$as_echo_n "checking $2 usability... " >&6; }
1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750else
1751 ac_header_compiler=no
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755$as_echo "$ac_header_compiler" >&6; }
1756
1757# Is the header present?
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759$as_echo_n "checking $2 presence... " >&6; }
1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766else
1767 ac_header_preproc=no
1768fi
1769rm -f conftest.err conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771$as_echo "$ac_header_preproc" >&6; }
1772
1773# So? What about this header?
1774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798else
1799 eval "$3=\$ac_header_compiler"
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_mongrel
1808
1809# ac_fn_c_try_run LINENO
1810# ----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812# that executables *can* be run.
1813ac_fn_c_try_run ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849} # ac_fn_c_try_run
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880} # ac_fn_c_check_header_compile
1881
1882# ac_fn_c_check_func LINENO FUNC VAR
1883# ----------------------------------
1884# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885ac_fn_c_check_func ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897#define $2 innocuous_$2
1898
1899/* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904#ifdef __STDC__
1905# include <limits.h>
1906#else
1907# include <assert.h>
1908#endif
1909
1910#undef $2
1911
1912/* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915#ifdef __cplusplus
1916extern "C"
1917#endif
1918char $2 ();
1919/* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922#if defined __stub_$2 || defined __stub___$2
1923choke me
1924#endif
1925
1926int
1927main ()
1928{
1929return $2 ();
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941fi
1942eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947} # ac_fn_c_check_func
1948
3cb62297
L
1949# ac_fn_cxx_try_cpp LINENO
1950# ------------------------
1951# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952ac_fn_cxx_try_cpp ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } >/dev/null && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975else
1976 $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980fi
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 return $ac_retval
1983
1984} # ac_fn_cxx_try_cpp
1985
1986# ac_fn_cxx_try_link LINENO
1987# -------------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_link ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016else
2017 $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 return $ac_retval
2029
2030} # ac_fn_cxx_try_link
2031
81ecdfbb
RW
2032# ac_fn_c_check_decl LINENO SYMBOL VAR
2033# ------------------------------------
2034# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2035ac_fn_c_check_decl ()
2036{
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2042if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2044else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h. */
2047$4
2048int
2049main ()
2050{
360cfc9c
AM
2051#ifndef $as_decl_name
2052#ifdef __cplusplus
2053 (void) $as_decl_use;
2054#else
2055 (void) $as_decl_name;
2056#endif
81ecdfbb
RW
2057#endif
2058
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065else
2066 eval "$3=no"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075} # ac_fn_c_check_decl
2076
2077# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2078# --------------------------------------------
2079# Tries to find the compile-time value of EXPR in a program that includes
2080# INCLUDES, setting VAR accordingly. Returns whether the value could be
2081# computed
2082ac_fn_c_compute_int ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090int
2091main ()
2092{
2093static int test_array [1 - 2 * !(($2) >= 0)];
2094test_array [0] = 0
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106int
2107main ()
2108{
2109static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110test_array [0] = 0
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid; break
2118else
2119 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120 if test $ac_lo -le $ac_mid; then
2121 ac_lo= ac_hi=
2122 break
2123 fi
2124 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) < 0)];
2136test_array [0] = 0
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=-1 ac_mid=-1
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147$4
2148int
2149main ()
2150{
2151static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152test_array [0] = 0
2153
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_lo=$ac_mid; break
2160else
2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2162 if test $ac_mid -le $ac_hi; then
2163 ac_lo= ac_hi=
2164 break
2165 fi
2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170else
2171 ac_lo= ac_hi=
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176# Binary search between lo and hi bounds.
2177while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186test_array [0] = 0
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198done
2199case $ac_lo in #((
2200?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201'') ac_retval=1 ;;
2202esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207static long int longval () { return $2; }
2208static unsigned long int ulongval () { return $2; }
2209#include <stdio.h>
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2219 {
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2224 }
2225 else
2226 {
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2231 }
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242else
2243 ac_retval=1
2244fi
2245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247rm -f conftest.val
2248
2249 fi
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 return $ac_retval
2252
2253} # ac_fn_c_compute_int
2254cat >config.log <<_ACEOF
2255This file contains any messages produced by compilers while
2256running configure, to aid debugging if configure makes a mistake.
2257
99b5dbf2 2258It was created by ld $as_me 2.28.51, which was
81ecdfbb
RW
2259generated by GNU Autoconf 2.64. Invocation command line was
2260
2261 $ $0 $@
2262
2263_ACEOF
2264exec 5>>config.log
2265{
2266cat <<_ASUNAME
2267## --------- ##
2268## Platform. ##
2269## --------- ##
2270
2271hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276
2277/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2279
2280/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2284/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2287
2288_ASUNAME
2289
2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2295 $as_echo "PATH: $as_dir"
2296 done
2297IFS=$as_save_IFS
252b5132 2298
42ecbf5e 2299} >&5
5d64ca4e 2300
42ecbf5e 2301cat >&5 <<_ACEOF
5d64ca4e 2302
5d64ca4e 2303
42ecbf5e
DJ
2304## ----------- ##
2305## Core tests. ##
2306## ----------- ##
5d64ca4e 2307
42ecbf5e 2308_ACEOF
2469cfa2 2309
42ecbf5e
DJ
2310
2311# Keep a trace of the command line.
2312# Strip out --no-create and --no-recursion so they do not pile up.
2313# Strip out --silent because we don't want to record it for future runs.
2314# Also quote any args containing shell meta-characters.
2315# Make two passes to allow for proper duplicate-argument suppression.
2316ac_configure_args=
2317ac_configure_args0=
2318ac_configure_args1=
42ecbf5e
DJ
2319ac_must_keep_next=false
2320for ac_pass in 1 2
2321do
2322 for ac_arg
2323 do
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
81ecdfbb
RW
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2331 esac
2332 case $ac_pass in
81ecdfbb 2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2334 2)
81ecdfbb 2335 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2347 ;;
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2350 fi
81ecdfbb 2351 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2352 ;;
2353 esac
2354 done
2355done
81ecdfbb
RW
2356{ ac_configure_args0=; unset ac_configure_args0;}
2357{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2358
2359# When interrupted or exit'd, cleanup temporary files, and complete
2360# config.log. We remove comments because anyway the quotes in there
2361# would cause problems or look ugly.
81ecdfbb
RW
2362# WARNING: Use '\'' to represent an apostrophe within the trap.
2363# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2364trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2366 {
2367 echo
2368
2369 cat <<\_ASBOX
2370## ---------------- ##
2371## Cache variables. ##
2372## ---------------- ##
2373_ASBOX
2374 echo
2375 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2376(
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in #(
2380 *${as_nl}*)
2381 case $ac_var in #(
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 esac
2385 case $ac_var in #(
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2389 esac ;;
2390 esac
2391 done
42ecbf5e 2392 (set) 2>&1 |
81ecdfbb
RW
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
42ecbf5e 2395 sed -n \
81ecdfbb
RW
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 ;; #(
42ecbf5e 2399 *)
81ecdfbb 2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2401 ;;
81ecdfbb
RW
2402 esac |
2403 sort
2404)
42ecbf5e
DJ
2405 echo
2406
2407 cat <<\_ASBOX
2408## ----------------- ##
2409## Output variables. ##
2410## ----------------- ##
2411_ASBOX
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
81ecdfbb
RW
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 cat <<\_ASBOX
81ecdfbb
RW
2425## ------------------- ##
2426## File substitutions. ##
2427## ------------------- ##
42ecbf5e
DJ
2428_ASBOX
2429 echo
2430 for ac_var in $ac_subst_files
2431 do
81ecdfbb
RW
2432 eval ac_val=\$$ac_var
2433 case $ac_val in
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 esac
2436 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2437 done | sort
2438 echo
2439 fi
2440
2441 if test -s confdefs.h; then
2442 cat <<\_ASBOX
2443## ----------- ##
2444## confdefs.h. ##
2445## ----------- ##
2446_ASBOX
2447 echo
81ecdfbb 2448 cat confdefs.h
42ecbf5e
DJ
2449 echo
2450 fi
2451 test "$ac_signal" != 0 &&
81ecdfbb
RW
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2454 } >&5
81ecdfbb
RW
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2457 exit $exit_status
81ecdfbb 2458' 0
42ecbf5e 2459for ac_signal in 1 2 13 15; do
81ecdfbb 2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2461done
2462ac_signal=0
2463
2464# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2465rm -f -r conftest* confdefs.h
2466
2467$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2468
2469# Predefined preprocessor variables.
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_NAME "$PACKAGE_NAME"
2473_ACEOF
2474
42ecbf5e
DJ
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477_ACEOF
2478
42ecbf5e
DJ
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_VERSION "$PACKAGE_VERSION"
2481_ACEOF
2482
42ecbf5e
DJ
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_STRING "$PACKAGE_STRING"
2485_ACEOF
2486
42ecbf5e
DJ
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489_ACEOF
2490
81ecdfbb
RW
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_URL "$PACKAGE_URL"
2493_ACEOF
2494
42ecbf5e
DJ
2495
2496# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2497# Prefer an explicitly selected file to automatically selected ones.
2498ac_site_file1=NONE
2499ac_site_file2=NONE
2500if test -n "$CONFIG_SITE"; then
2501 ac_site_file1=$CONFIG_SITE
2502elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508fi
2509for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510do
2511 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2512 if test -r "$ac_site_file"; then
81ecdfbb
RW
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file"
2517 fi
2518done
2519
2520if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
81ecdfbb
RW
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2526 case $cache_file in
81ecdfbb
RW
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
42ecbf5e
DJ
2529 esac
2530 fi
2531else
81ecdfbb
RW
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2534 >$cache_file
2535fi
2536
2537# Check that the precious variables saved in the cache have kept the same
2538# value.
2539ac_cache_corrupted=false
81ecdfbb 2540for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2545 case $ac_old_set,$ac_new_set in
2546 set,)
81ecdfbb
RW
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2549 ac_cache_corrupted=: ;;
2550 ,set)
81ecdfbb
RW
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2553 ac_cache_corrupted=: ;;
2554 ,);;
2555 *)
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
81ecdfbb 2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2584 esac
2585 fi
2586done
2587if $ac_cache_corrupted; then
81ecdfbb
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2593fi
81ecdfbb
RW
2594## -------------------- ##
2595## Main body of script. ##
2596## -------------------- ##
42ecbf5e
DJ
2597
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
42ecbf5e 2606
da594c4a 2607
42ecbf5e
DJ
2608
2609
2610ac_aux_dir=
81ecdfbb
RW
2611for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 for ac_t in install-sh install.sh shtool; do
2613 if test -f "$ac_dir/$ac_t"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/$ac_t -c"
2616 break 2
2617 fi
2618 done
42ecbf5e
DJ
2619done
2620if test -z "$ac_aux_dir"; then
81ecdfbb 2621 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2622fi
81ecdfbb
RW
2623
2624# These three variables are undocumented and unsupported,
2625# and are intended to be withdrawn in a future Autoconf release.
2626# They can cause serious problems if a builder's source tree is in a directory
2627# whose full name contains unusual characters.
2628ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2631
42ecbf5e
DJ
2632
2633# Make sure we can run config.sub.
81ecdfbb
RW
2634$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2638$as_echo_n "checking build system type... " >&6; }
2639if test "${ac_cv_build+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2641else
2642 ac_build_alias=$build_alias
2643test "x$ac_build_alias" = x &&
2644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2645test "x$ac_build_alias" = x &&
2646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2647ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2649
2650fi
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2652$as_echo "$ac_cv_build" >&6; }
2653case $ac_cv_build in
2654*-*-*) ;;
2655*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2656esac
42ecbf5e 2657build=$ac_cv_build
81ecdfbb
RW
2658ac_save_IFS=$IFS; IFS='-'
2659set x $ac_cv_build
2660shift
2661build_cpu=$1
2662build_vendor=$2
2663shift; shift
2664# Remember, the first character of IFS is used to create $*,
2665# except with old shells:
2666build_os=$*
2667IFS=$ac_save_IFS
2668case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2669
2670
81ecdfbb
RW
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2672$as_echo_n "checking host system type... " >&6; }
2673if test "${ac_cv_host+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675else
2676 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build
42ecbf5e 2678else
81ecdfbb
RW
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681fi
42ecbf5e
DJ
2682
2683fi
81ecdfbb
RW
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2685$as_echo "$ac_cv_host" >&6; }
2686case $ac_cv_host in
2687*-*-*) ;;
2688*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2689esac
42ecbf5e 2690host=$ac_cv_host
81ecdfbb
RW
2691ac_save_IFS=$IFS; IFS='-'
2692set x $ac_cv_host
2693shift
2694host_cpu=$1
2695host_vendor=$2
2696shift; shift
2697# Remember, the first character of IFS is used to create $*,
2698# except with old shells:
2699host_os=$*
2700IFS=$ac_save_IFS
2701case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2702
2703
81ecdfbb
RW
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2705$as_echo_n "checking target system type... " >&6; }
2706if test "${ac_cv_target+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
42ecbf5e 2708else
81ecdfbb
RW
2709 if test "x$target_alias" = x; then
2710 ac_cv_target=$ac_cv_host
2711else
2712 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2714fi
42ecbf5e
DJ
2715
2716fi
81ecdfbb
RW
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2718$as_echo "$ac_cv_target" >&6; }
2719case $ac_cv_target in
2720*-*-*) ;;
2721*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2722esac
42ecbf5e 2723target=$ac_cv_target
81ecdfbb
RW
2724ac_save_IFS=$IFS; IFS='-'
2725set x $ac_cv_target
2726shift
2727target_cpu=$1
2728target_vendor=$2
2729shift; shift
2730# Remember, the first character of IFS is used to create $*,
2731# except with old shells:
2732target_os=$*
2733IFS=$ac_save_IFS
2734case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2735
2736
2737# The aliases save the names the user supplied, while $host etc.
2738# will get canonicalized.
2739test -n "$target_alias" &&
2740 test "$program_prefix$program_suffix$program_transform_name" = \
2741 NONENONEs,x,x, &&
2742 program_prefix=${target_alias}-
02ecc8e9 2743
42ecbf5e
DJ
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753$as_echo_n "checking for $ac_word... " >&6; }
2754if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2756else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2769 break 2
2770 fi
2771done
81ecdfbb
RW
2772 done
2773IFS=$as_save_IFS
42ecbf5e
DJ
2774
2775fi
2776fi
2777CC=$ac_cv_prog_CC
2778if test -n "$CC"; then
81ecdfbb
RW
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780$as_echo "$CC" >&6; }
42ecbf5e 2781else
81ecdfbb
RW
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783$as_echo "no" >&6; }
42ecbf5e
DJ
2784fi
2785
81ecdfbb 2786
42ecbf5e
DJ
2787fi
2788if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791set dummy gcc; ac_word=$2
81ecdfbb
RW
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2796else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2807 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2809 break 2
2810 fi
2811done
81ecdfbb
RW
2812 done
2813IFS=$as_save_IFS
42ecbf5e
DJ
2814
2815fi
2816fi
2817ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2821else
81ecdfbb
RW
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
42ecbf5e
DJ
2824fi
2825
81ecdfbb
RW
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830yes:)
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833ac_tool_warned=yes ;;
2834esac
2835 CC=$ac_ct_CC
2836 fi
42ecbf5e
DJ
2837else
2838 CC="$ac_cv_prog_CC"
2839fi
2840
2841if test -z "$CC"; then
81ecdfbb
RW
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2844set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
2847if test "${ac_cv_prog_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2849else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2862 break 2
2863 fi
2864done
81ecdfbb
RW
2865 done
2866IFS=$as_save_IFS
42ecbf5e
DJ
2867
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
81ecdfbb
RW
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
42ecbf5e 2874else
81ecdfbb
RW
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
42ecbf5e
DJ
2877fi
2878
42ecbf5e 2879
81ecdfbb 2880 fi
42ecbf5e
DJ
2881fi
2882if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884set dummy cc; ac_word=$2
81ecdfbb
RW
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886$as_echo_n "checking for $ac_word... " >&6; }
2887if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2889else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892else
2893 ac_prog_rejected=no
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
81ecdfbb 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2907 break 2
2908 fi
2909done
81ecdfbb
RW
2910 done
2911IFS=$as_save_IFS
42ecbf5e
DJ
2912
2913if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924fi
2925fi
2926fi
2927CC=$ac_cv_prog_CC
2928if test -n "$CC"; then
81ecdfbb
RW
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930$as_echo "$CC" >&6; }
42ecbf5e 2931else
81ecdfbb
RW
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933$as_echo "no" >&6; }
42ecbf5e
DJ
2934fi
2935
81ecdfbb 2936
42ecbf5e
DJ
2937fi
2938if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
81ecdfbb 2940 for ac_prog in cl.exe
42ecbf5e
DJ
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2948else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2961 break 2
2962 fi
2963done
81ecdfbb
RW
2964 done
2965IFS=$as_save_IFS
42ecbf5e
DJ
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
81ecdfbb
RW
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972$as_echo "$CC" >&6; }
42ecbf5e 2973else
81ecdfbb
RW
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
42ecbf5e
DJ
2976fi
2977
81ecdfbb 2978
42ecbf5e
DJ
2979 test -n "$CC" && break
2980 done
2981fi
2982if test -z "$CC"; then
2983 ac_ct_CC=$CC
81ecdfbb 2984 for ac_prog in cl.exe
42ecbf5e
DJ
2985do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2992else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3003 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3005 break 2
3006 fi
3007done
81ecdfbb
RW
3008 done
3009IFS=$as_save_IFS
42ecbf5e
DJ
3010
3011fi
3012fi
3013ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3017else
81ecdfbb
RW
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
42ecbf5e
DJ
3020fi
3021
81ecdfbb 3022
42ecbf5e
DJ
3023 test -n "$ac_ct_CC" && break
3024done
3025
81ecdfbb
RW
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030yes:)
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033ac_tool_warned=yes ;;
3034esac
3035 CC=$ac_ct_CC
3036 fi
42ecbf5e
DJ
3037fi
3038
3039fi
3040
3041
81ecdfbb
RW
3042test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error "no acceptable C compiler found in \$PATH
3045See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3046
3047# Provide some information about the compiler.
81ecdfbb
RW
3048$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049set X $ac_compile
3050ac_compiler=$2
3051for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3060 ac_status=$?
81ecdfbb
RW
3061 if test -s conftest.err; then
3062 sed '10a\
3063... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3066 rm -f conftest.er1 conftest.err
3067 fi
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070done
42ecbf5e 3071
81ecdfbb 3072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083ac_clean_files_save=$ac_clean_files
81ecdfbb 3084ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3085# Try to create an executable without -o first, disregard a.out.
3086# It will help us diagnose broken compilers, and finding out an intuition
3087# of exeext.
81ecdfbb
RW
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089$as_echo_n "checking for C compiler default output file name... " >&6; }
3090ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092# The possible output files:
3093ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095ac_rmfiles=
3096for ac_file in $ac_files
3097do
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102done
3103rm -f $ac_rmfiles
3104
3105if { { ac_try="$ac_link_default"
3106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118# in a Makefile. We should not override ac_cv_exeext if it was cached,
3119# so that the user can short-circuit this test for compilers unknown to
3120# Autoconf.
3121for ac_file in $ac_files ''
42ecbf5e
DJ
3122do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
81ecdfbb 3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3126 ;;
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
81ecdfbb
RW
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 fi
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
42ecbf5e
DJ
3141 break;;
3142 * )
3143 break;;
3144 esac
3145done
81ecdfbb
RW
3146test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
42ecbf5e 3148else
81ecdfbb
RW
3149 ac_file=''
3150fi
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152$as_echo "$ac_file" >&6; }
3153if test -z "$ac_file"; then :
3154 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
81ecdfbb
RW
3157{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159{ as_fn_set_status 77
3160as_fn_error "C compiler cannot create executables
3161See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3162fi
42ecbf5e 3163ac_exeext=$ac_cv_exeext
42ecbf5e 3164
81ecdfbb 3165# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3166# the compiler is broken, or we cross compile.
81ecdfbb
RW
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3169# If not cross compiling, check that we can run a simple program.
3170if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
81ecdfbb
RW
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
42ecbf5e 3179 ac_status=$?
81ecdfbb
RW
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
81ecdfbb
RW
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error "cannot run C compiled programs.
42ecbf5e 3190If you meant to cross compile, use \`--host'.
81ecdfbb 3191See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3192 fi
3193 fi
3194fi
81ecdfbb
RW
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196$as_echo "yes" >&6; }
42ecbf5e 3197
81ecdfbb 3198rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3199ac_clean_files=$ac_clean_files_save
81ecdfbb 3200# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3201# the compiler is broken, or we cross compile.
81ecdfbb
RW
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203$as_echo_n "checking whether we are cross compiling... " >&6; }
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205$as_echo "$cross_compiling" >&6; }
3206
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208$as_echo_n "checking for suffix of executables... " >&6; }
3209if { { ac_try="$ac_link"
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
42ecbf5e 3217 ac_status=$?
81ecdfbb
RW
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
42ecbf5e
DJ
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222# work properly (i.e., refer to `conftest.exe'), while it won't with
3223# `rm'.
3224for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
81ecdfbb 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3229 break;;
3230 * ) break;;
3231 esac
3232done
3233else
81ecdfbb
RW
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error "cannot compute suffix of executables: cannot compile and link
3237See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3238fi
42ecbf5e 3239rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
81ecdfbb
RW
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247$as_echo_n "checking for suffix of object files... " >&6; }
3248if test "${ac_cv_objext+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
42ecbf5e 3250else
81ecdfbb 3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.o conftest.obj
81ecdfbb
RW
3263if { { ac_try="$ac_compile"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compile") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
42ecbf5e 3276 case $ac_file in
81ecdfbb 3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281done
3282else
81ecdfbb 3283 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
81ecdfbb
RW
3286{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error "cannot compute suffix of object files: cannot compile
3289See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3290fi
42ecbf5e
DJ
3291rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292fi
81ecdfbb
RW
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3295OBJEXT=$ac_cv_objext
3296ac_objext=$OBJEXT
81ecdfbb
RW
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
42ecbf5e 3301else
81ecdfbb 3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308#ifndef __GNUC__
3309 choke me
3310#endif
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
81ecdfbb 3316if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3317 ac_compiler_gnu=yes
3318else
81ecdfbb 3319 ac_compiler_gnu=no
42ecbf5e 3320fi
81ecdfbb 3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3322ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323
3324fi
81ecdfbb
RW
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327if test $ac_compiler_gnu = yes; then
3328 GCC=yes
3329else
3330 GCC=
3331fi
42ecbf5e
DJ
3332ac_test_CFLAGS=${CFLAGS+set}
3333ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335$as_echo_n "checking whether $CC accepts -g... " >&6; }
3336if test "${ac_cv_prog_cc_g+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3338else
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3341 ac_cv_prog_cc_g=no
3342 CFLAGS="-g"
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3344/* end confdefs.h. */
3345
3346int
3347main ()
3348{
3349
3350 ;
3351 return 0;
3352}
3353_ACEOF
81ecdfbb 3354if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3355 ac_cv_prog_cc_g=yes
3356else
81ecdfbb
RW
3357 CFLAGS=""
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369if ac_fn_c_try_compile "$LINENO"; then :
3370
3371else
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3373 CFLAGS="-g"
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h. */
3376
3377int
3378main ()
3379{
42ecbf5e 3380
81ecdfbb
RW
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_g=yes
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3391fi
81ecdfbb
RW
3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3394fi
81ecdfbb
RW
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3397if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411fi
81ecdfbb
RW
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
42ecbf5e 3416else
81ecdfbb 3417 ac_cv_prog_cc_c89=no
42ecbf5e 3418ac_save_CC=$CC
81ecdfbb 3419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3420/* end confdefs.h. */
3421#include <stdarg.h>
3422#include <stdio.h>
3423#include <sys/types.h>
3424#include <sys/stat.h>
3425/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426struct buf { int x; };
3427FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428static char *e (p, i)
3429 char **p;
3430 int i;
3431{
3432 return p[i];
3433}
3434static char *f (char * (*g) (char **, int), char **p, ...)
3435{
3436 char *s;
3437 va_list v;
3438 va_start (v,p);
3439 s = g (p, va_arg (v,int));
3440 va_end (v);
3441 return s;
3442}
3443
3444/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3447 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3450 that's true only with -std. */
42ecbf5e
DJ
3451int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
81ecdfbb
RW
3453/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3455#define FOO(x) 'x'
3456int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
42ecbf5e
DJ
3458int test (int i, double x);
3459struct s1 {int (*f) (int a);};
3460struct s2 {int (*f) (double a);};
3461int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462int argc;
3463char **argv;
3464int
3465main ()
3466{
3467return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 ;
3469 return 0;
3470}
3471_ACEOF
81ecdfbb
RW
3472for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3474do
3475 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3478fi
81ecdfbb
RW
3479rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3481done
81ecdfbb 3482rm -f conftest.$ac_ext
42ecbf5e
DJ
3483CC=$ac_save_CC
3484
3485fi
81ecdfbb
RW
3486# AC_CACHE_VAL
3487case "x$ac_cv_prog_cc_c89" in
3488 x)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490$as_echo "none needed" >&6; } ;;
3491 xno)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493$as_echo "unsupported" >&6; } ;;
42ecbf5e 3494 *)
81ecdfbb
RW
3495 CC="$CC $ac_cv_prog_cc_c89"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3498esac
81ecdfbb 3499if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3500
42ecbf5e
DJ
3501fi
3502
42ecbf5e
DJ
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
81ecdfbb
RW
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3511$as_echo_n "checking for library containing strerror... " >&6; }
3512if test "${ac_cv_search_strerror+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3514else
3515 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3517/* end confdefs.h. */
3518
81ecdfbb
RW
3519/* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3522#ifdef __cplusplus
3523extern "C"
3524#endif
42ecbf5e
DJ
3525char strerror ();
3526int
3527main ()
3528{
81ecdfbb 3529return strerror ();
42ecbf5e
DJ
3530 ;
3531 return 0;
3532}
3533_ACEOF
81ecdfbb
RW
3534for ac_lib in '' cposix; do
3535 if test -z "$ac_lib"; then
3536 ac_res="none required"
3537 else
3538 ac_res=-l$ac_lib
42ecbf5e 3539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3540 fi
3541 if ac_fn_c_try_link "$LINENO"; then :
3542 ac_cv_search_strerror=$ac_res
3543fi
3544rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext
3546 if test "${ac_cv_search_strerror+set}" = set; then :
3547 break
3548fi
3549done
3550if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3551
42ecbf5e 3552else
81ecdfbb 3553 ac_cv_search_strerror=no
42ecbf5e 3554fi
81ecdfbb 3555rm conftest.$ac_ext
42ecbf5e
DJ
3556LIBS=$ac_func_search_save_LIBS
3557fi
81ecdfbb
RW
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3559$as_echo "$ac_cv_search_strerror" >&6; }
3560ac_res=$ac_cv_search_strerror
3561if test "$ac_res" != no; then :
3562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3563
3564fi
e5a52504
MM
3565
3566
81ecdfbb
RW
3567am__api_version='1.11'
3568
e5a52504
MM
3569# Find a good install program. We prefer a C program (faster),
3570# so one script is as good as another. But avoid the broken or
3571# incompatible versions:
3572# SysV /etc/install, /usr/sbin/install
3573# SunOS /usr/etc/install
3574# IRIX /sbin/install
3575# AIX /bin/install
42ecbf5e 3576# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3580# OS/2's system install, which has a completely different semantic
e5a52504 3581# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3582# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3584$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3585if test -z "$INSTALL"; then
81ecdfbb
RW
3586if test "${ac_cv_path_install+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
e5a52504 3588else
42ecbf5e
DJ
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3594 # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in #((
3596 ./ | .// | /[cC]/* | \
42ecbf5e 3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3599 /usr/ucb/* ) ;;
3600 *)
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3607 if test $ac_prog = install &&
42ecbf5e 3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3609 # AIX install. It has an incompatible calling convention.
3610 :
42ecbf5e
DJ
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3614 :
252b5132 3615 else
58c85be7
RW
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3619 mkdir conftest.dir
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3624 then
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626 break 3
3627 fi
252b5132
RH
3628 fi
3629 fi
3630 done
42ecbf5e
DJ
3631 done
3632 ;;
3633esac
81ecdfbb
RW
3634
3635 done
3636IFS=$as_save_IFS
42ecbf5e 3637
58c85be7 3638rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3639
3640fi
3641 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3642 INSTALL=$ac_cv_path_install
252b5132 3643 else
58c85be7
RW
3644 # As a last resort, use the slow shell script. Don't cache a
3645 # value for INSTALL within a source directory, because that will
252b5132 3646 # break other packages using the cache if that directory is
58c85be7 3647 # removed, or if the value is a relative name.
42ecbf5e 3648 INSTALL=$ac_install_sh
252b5132
RH
3649 fi
3650fi
81ecdfbb
RW
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3652$as_echo "$INSTALL" >&6; }
252b5132
RH
3653
3654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3655# It thinks the first close brace ends the variable substitution.
3656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3657
42ecbf5e 3658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3659
3660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661
81ecdfbb
RW
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3663$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3664# Just in case
3665sleep 1
42ecbf5e 3666echo timestamp > conftest.file
81ecdfbb
RW
3667# Reject unsafe characters in $srcdir or the absolute working directory
3668# name. Accept space and tab only in the latter.
3669am_lf='
3670'
3671case `pwd` in
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3674esac
3675case $srcdir in
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3678esac
3679
252b5132
RH
3680# Do `set' in a subshell so we don't clobber the current shell's
3681# arguments. Must try -L first in case configure is actually a
3682# symlink; some systems play weird games with the mod time of symlinks
3683# (eg FreeBSD returns the mod time of the symlink's containing
3684# directory).
3685if (
81ecdfbb 3686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3687 if test "$*" = "X"; then
3688 # -L didn't work.
81ecdfbb 3689 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3690 fi
42ecbf5e
DJ
3691 rm -f conftest.file
3692 if test "$*" != "X $srcdir/configure conftest.file" \
3693 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3694
3695 # If neither matched, then we have a broken ls. This can happen
3696 # if, for instance, CONFIG_SHELL is bash and it inherits a
3697 # broken ls alias from the environment. This has actually
3698 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3699 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3700alias in your environment" "$LINENO" 5
252b5132
RH
3701 fi
3702
42ecbf5e 3703 test "$2" = conftest.file
252b5132
RH
3704 )
3705then
3706 # Ok.
3707 :
3708else
81ecdfbb
RW
3709 as_fn_error "newly created file is older than distributed files!
3710Check your system clock" "$LINENO" 5
252b5132 3711fi
81ecdfbb
RW
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713$as_echo "yes" >&6; }
252b5132 3714test "$program_prefix" != NONE &&
81ecdfbb 3715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3716# Use a double $ so make ignores it.
3717test "$program_suffix" != NONE &&
81ecdfbb
RW
3718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3719# Double any \ or $.
42ecbf5e 3720# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3721ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3722program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3723
3724# expand $ac_aux_dir to an absolute path
3725am_aux_dir=`cd $ac_aux_dir && pwd`
3726
81ecdfbb
RW
3727if test x"${MISSING+set}" != xset; then
3728 case $am_aux_dir in
3729 *\ * | *\ *)
3730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3731 *)
3732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3733 esac
3734fi
42ecbf5e
DJ
3735# Use eval to expand $SHELL
3736if eval "$MISSING --run true"; then
3737 am_missing_run="$MISSING --run "
3738else
3739 am_missing_run=
81ecdfbb
RW
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3741$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3742fi
3743
3744if test x"${install_sh}" != xset; then
3745 case $am_aux_dir in
3746 *\ * | *\ *)
3747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3748 *)
3749 install_sh="\${SHELL} $am_aux_dir/install-sh"
3750 esac
3751fi
3752
3753# Installed binaries are usually stripped using `strip' when the user
3754# run `make install-strip'. However `strip' might not be the right
3755# tool to use in cross-compilation environments, therefore Automake
3756# will honor the `STRIP' environment variable to overrule this program.
3757if test "$cross_compiling" != no; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760set dummy ${ac_tool_prefix}strip; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if test "${ac_cv_prog_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 if test -n "$STRIP"; then
3767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780done
3781 done
3782IFS=$as_save_IFS
3783
3784fi
3785fi
3786STRIP=$ac_cv_prog_STRIP
3787if test -n "$STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3789$as_echo "$STRIP" >&6; }
3790else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793fi
3794
3795
3796fi
3797if test -z "$ac_cv_prog_STRIP"; then
3798 ac_ct_STRIP=$STRIP
3799 # Extract the first word of "strip", so it can be a program name with args.
3800set dummy strip; ac_word=$2
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802$as_echo_n "checking for $ac_word... " >&6; }
3803if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 if test -n "$ac_ct_STRIP"; then
3807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_STRIP="strip"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820done
3821 done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3827if test -n "$ac_ct_STRIP"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3829$as_echo "$ac_ct_STRIP" >&6; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833fi
3834
3835 if test "x$ac_ct_STRIP" = x; then
3836 STRIP=":"
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839yes:)
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842ac_tool_warned=yes ;;
3843esac
3844 STRIP=$ac_ct_STRIP
3845 fi
3846else
3847 STRIP="$ac_cv_prog_STRIP"
3848fi
3849
3850fi
3851INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3854$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3855if test -z "$MKDIR_P"; then
3856 if test "${ac_cv_path_mkdir+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in mkdir gmkdir; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868 'mkdir (GNU coreutils) '* | \
3869 'mkdir (coreutils) '* | \
3870 'mkdir (fileutils) '4.1*)
3871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3872 break 3;;
3873 esac
3874 done
3875 done
42ecbf5e 3876 done
81ecdfbb
RW
3877IFS=$as_save_IFS
3878
3879fi
3880
3881 if test "${ac_cv_path_mkdir+set}" = set; then
3882 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3883 else
81ecdfbb
RW
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for MKDIR_P within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 test -d ./--version && rmdir ./--version
3889 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3890 fi
3891fi
81ecdfbb
RW
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3893$as_echo "$MKDIR_P" >&6; }
3894
3895mkdir_p="$MKDIR_P"
3896case $mkdir_p in
3897 [\\/$]* | ?:[\\/]*) ;;
3898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3899esac
42ecbf5e
DJ
3900
3901for ac_prog in gawk mawk nawk awk
3902do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906$as_echo_n "checking for $ac_word... " >&6; }
3907if test "${ac_cv_prog_AWK+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3909else
3910 if test -n "$AWK"; then
3911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3920 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3922 break 2
3923 fi
3924done
81ecdfbb
RW
3925 done
3926IFS=$as_save_IFS
42ecbf5e
DJ
3927
3928fi
3929fi
3930AWK=$ac_cv_prog_AWK
3931if test -n "$AWK"; then
81ecdfbb
RW
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3933$as_echo "$AWK" >&6; }
42ecbf5e 3934else
81ecdfbb
RW
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936$as_echo "no" >&6; }
42ecbf5e 3937fi
252b5132 3938
81ecdfbb 3939
42ecbf5e
DJ
3940 test -n "$AWK" && break
3941done
252b5132 3942
81ecdfbb
RW
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3944$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3945set x ${MAKE-make}
3946ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3947if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3948 $as_echo_n "(cached) " >&6
252b5132 3949else
42ecbf5e 3950 cat >conftest.make <<\_ACEOF
81ecdfbb 3951SHELL = /bin/sh
252b5132 3952all:
81ecdfbb 3953 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3954_ACEOF
252b5132 3955# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3956case `${MAKE-make} -f conftest.make 2>/dev/null` in
3957 *@@@%%%=?*=@@@%%%*)
3958 eval ac_cv_prog_make_${ac_make}_set=yes;;
3959 *)
3960 eval ac_cv_prog_make_${ac_make}_set=no;;
3961esac
42ecbf5e 3962rm -f conftest.make
252b5132 3963fi
81ecdfbb
RW
3964if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966$as_echo "yes" >&6; }
252b5132
RH
3967 SET_MAKE=
3968else
81ecdfbb
RW
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
252b5132
RH
3971 SET_MAKE="MAKE=${MAKE-make}"
3972fi
3973
42ecbf5e
DJ
3974rm -rf .tst 2>/dev/null
3975mkdir .tst 2>/dev/null
3976if test -d .tst; then
3977 am__leading_dot=.
3978else
3979 am__leading_dot=_
3980fi
3981rmdir .tst 2>/dev/null
3982
3983DEPDIR="${am__leading_dot}deps"
3984
81ecdfbb 3985ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3986
3987
3988am_make=${MAKE-make}
3989cat > confinc << 'END'
3990am__doit:
81ecdfbb 3991 @echo this is the am__doit target
42ecbf5e
DJ
3992.PHONY: am__doit
3993END
3994# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3996$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3997am__include="#"
3998am__quote=
3999_am_result=none
4000# First try GNU make style include.
4001echo "include confinc" > confmf
81ecdfbb
RW
4002# Ignore all kinds of additional output from `make'.
4003case `$am_make -s -f confmf 2> /dev/null` in #(
4004*the\ am__doit\ target*)
4005 am__include=include
4006 am__quote=
4007 _am_result=GNU
4008 ;;
4009esac
42ecbf5e
DJ
4010# Now try BSD make style include.
4011if test "$am__include" = "#"; then
4012 echo '.include "confinc"' > confmf
81ecdfbb
RW
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=.include
4016 am__quote="\""
4017 _am_result=BSD
4018 ;;
4019 esac
42ecbf5e
DJ
4020fi
4021
4022
81ecdfbb
RW
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4024$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4025rm -f confinc confmf
4026
81ecdfbb
RW
4027# Check whether --enable-dependency-tracking was given.
4028if test "${enable_dependency_tracking+set}" = set; then :
4029 enableval=$enable_dependency_tracking;
4030fi
42ecbf5e 4031
42ecbf5e
DJ
4032if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4034 AMDEPBACKSLASH='\'
6eb7d830 4035 am__nodep='_no'
42ecbf5e 4036fi
81ecdfbb 4037 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4038 AMDEP_TRUE=
4039 AMDEP_FALSE='#'
4040else
4041 AMDEP_TRUE='#'
4042 AMDEP_FALSE=
4043fi
4044
e5a52504 4045
81ecdfbb
RW
4046if test "`cd $srcdir && pwd`" != "`pwd`"; then
4047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4048 # is not polluted with repeated "-I."
4049 am__isrc=' -I$(srcdir)'
4050 # test to see if srcdir already configured
4051 if test -f $srcdir/config.status; then
4052 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4053 fi
42ecbf5e 4054fi
252b5132 4055
42ecbf5e
DJ
4056# test whether we have cygpath
4057if test -z "$CYGPATH_W"; then
4058 if (cygpath --version) >/dev/null 2>/dev/null; then
4059 CYGPATH_W='cygpath -w'
4060 else
4061 CYGPATH_W=echo
4062 fi
252b5132 4063fi
42ecbf5e
DJ
4064
4065
4066# Define the identity of the package.
2e98a7bd 4067 PACKAGE='ld'
99b5dbf2 4068 VERSION='2.28.51'
42ecbf5e
DJ
4069
4070
4071cat >>confdefs.h <<_ACEOF
e5a52504 4072#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4073_ACEOF
4074
252b5132 4075
42ecbf5e 4076cat >>confdefs.h <<_ACEOF
e5a52504 4077#define VERSION "$VERSION"
42ecbf5e
DJ
4078_ACEOF
4079
4080# Some tools Automake needs.
4081
4082ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4083
4084
4085AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4086
4087
4088AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4089
4090
4091AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4092
e5a52504 4093
42ecbf5e 4094MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4095
42ecbf5e
DJ
4096# We need awk for the "check" target. The system "awk" is bad on
4097# some platforms.
6eb7d830
AM
4098# Always define AMTAR for backward compatibility. Yes, it's still used
4099# in the wild :-( We should find a proper way to deprecate it ...
4100AMTAR='$${TAR-tar}'
42ecbf5e 4101
6eb7d830 4102am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e
DJ
4103
4104
4105
4106
4107depcc="$CC" am_compiler_list=
4108
81ecdfbb
RW
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4110$as_echo_n "checking dependency style of $depcc... " >&6; }
4111if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4113else
4114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4115 # We make a subdir and do the tests there. Otherwise we can end up
4116 # making bogus files that we don't know about and never remove. For
4117 # instance it was reported that on HP-UX the gcc test will end up
4118 # making a dummy file named `D' -- because `-MD' means `put the output
4119 # in D'.
6eb7d830 4120 rm -rf conftest.dir
42ecbf5e
DJ
4121 mkdir conftest.dir
4122 # Copy depcomp to subdir because otherwise we won't find it if we're
4123 # using a relative directory.
4124 cp "$am_depcomp" conftest.dir
4125 cd conftest.dir
4126 # We will build objects and dependencies in a subdirectory because
4127 # it helps to detect inapplicable dependency modes. For instance
4128 # both Tru64's cc and ICC support -MD to output dependencies as a
4129 # side effect of compilation, but ICC will put the dependencies in
4130 # the current directory while Tru64 will put them in the object
4131 # directory.
4132 mkdir sub
4133
4134 am_cv_CC_dependencies_compiler_type=none
4135 if test "$am_compiler_list" = ""; then
4136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137 fi
81ecdfbb
RW
4138 am__universal=false
4139 case " $depcc " in #(
4140 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141 esac
4142
42ecbf5e
DJ
4143 for depmode in $am_compiler_list; do
4144 # Setup a source with many dependencies, because some compilers
4145 # like to wrap large dependency lists on column 80 (with \), and
4146 # we should not choose a depcomp mode which is confused by this.
4147 #
4148 # We need to recreate these files for each test, as the compiler may
4149 # overwrite some of them when testing with obscure command lines.
4150 # This happens at least with the AIX C compiler.
4151 : > sub/conftest.c
4152 for i in 1 2 3 4 5 6; do
4153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4155 # Solaris 8's {/usr,}/bin/sh.
4156 touch sub/conftst$i.h
4157 done
4158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4159
81ecdfbb
RW
4160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4161 # mode. It turns out that the SunPro C++ compiler does not properly
4162 # handle `-M -o', and we need to detect this. Also, some Intel
4163 # versions had trouble with output in subdirs
4164 am__obj=sub/conftest.${OBJEXT-o}
4165 am__minus_obj="-o $am__obj"
42ecbf5e 4166 case $depmode in
81ecdfbb
RW
4167 gcc)
4168 # This depmode causes a compiler race in universal mode.
4169 test "$am__universal" = false || continue
4170 ;;
42ecbf5e
DJ
4171 nosideeffect)
4172 # after this tag, mechanisms are not by side-effect, so they'll
4173 # only be used when explicitly requested
4174 if test "x$enable_dependency_tracking" = xyes; then
4175 continue
4176 else
4177 break
4178 fi
4179 ;;
6eb7d830 4180 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
4181 # This compiler won't grok `-c -o', but also, the minuso test has
4182 # not run yet. These depmodes are late enough in the game, and
4183 # so weak that their functioning should not be impacted.
4184 am__obj=conftest.${OBJEXT-o}
4185 am__minus_obj=
4186 ;;
42ecbf5e
DJ
4187 none) break ;;
4188 esac
42ecbf5e 4189 if depmode=$depmode \
81ecdfbb 4190 source=sub/conftest.c object=$am__obj \
42ecbf5e 4191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4193 >/dev/null 2>conftest.err &&
81ecdfbb 4194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4198 # icc doesn't choke on unknown options, it will just issue warnings
4199 # or remarks (even with -Werror). So we grep stderr for any message
4200 # that says an option was ignored or not supported.
4201 # When given -MP, icc 7.0 and 7.1 complain thusly:
4202 # icc: Command line warning: ignoring option '-M'; no argument required
4203 # The diagnosis changed in icc 8.0:
4204 # icc: Command line remark: option '-MP' not supported
4205 if (grep 'ignoring option' conftest.err ||
4206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4207 am_cv_CC_dependencies_compiler_type=$depmode
4208 break
4209 fi
4210 fi
4211 done
2469cfa2 4212
42ecbf5e
DJ
4213 cd ..
4214 rm -rf conftest.dir
2469cfa2 4215else
42ecbf5e
DJ
4216 am_cv_CC_dependencies_compiler_type=none
4217fi
4218
2469cfa2 4219fi
81ecdfbb
RW
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4221$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4223
81ecdfbb 4224 if
42ecbf5e
DJ
4225 test "x$enable_dependency_tracking" != xno \
4226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4227 am__fastdepCC_TRUE=
4228 am__fastdepCC_FALSE='#'
2469cfa2 4229else
42ecbf5e
DJ
4230 am__fastdepCC_TRUE='#'
4231 am__fastdepCC_FALSE=
2469cfa2 4232fi
2469cfa2 4233
2469cfa2 4234
e5a52504 4235
42ecbf5e 4236
64ac50ac
RW
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4238$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4239 # Check whether --enable-maintainer-mode was given.
4240if test "${enable_maintainer_mode+set}" = set; then :
4241 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4242else
4243 USE_MAINTAINER_MODE=no
4244fi
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4247$as_echo "$USE_MAINTAINER_MODE" >&6; }
4248 if test $USE_MAINTAINER_MODE = yes; then
4249 MAINTAINER_MODE_TRUE=
4250 MAINTAINER_MODE_FALSE='#'
4251else
4252 MAINTAINER_MODE_TRUE='#'
4253 MAINTAINER_MODE_FALSE=
4254fi
4255
4256 MAINT=$MAINTAINER_MODE_TRUE
4257
4258
4259
b879806f
AM
4260ac_ext=c
4261ac_cpp='$CPP $CPPFLAGS'
4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4267set dummy ${ac_tool_prefix}gcc; ac_word=$2
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269$as_echo_n "checking for $ac_word... " >&6; }
4270if test "${ac_cv_prog_CC+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288 done
4289IFS=$as_save_IFS
d7040cdb 4290
81ecdfbb 4291fi
81ecdfbb 4292fi
b879806f
AM
4293CC=$ac_cv_prog_CC
4294if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296$as_echo "$CC" >&6; }
2469cfa2 4297else
b879806f
AM
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299$as_echo "no" >&6; }
81ecdfbb 4300fi
d7040cdb
SE
4301
4302
b879806f
AM
4303fi
4304if test -z "$ac_cv_prog_CC"; then
4305 ac_ct_CC=$CC
4306 # Extract the first word of "gcc", so it can be a program name with args.
4307set dummy gcc; ac_word=$2
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309$as_echo_n "checking for $ac_word... " >&6; }
4310if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
e5a52504 4312else
b879806f
AM
4313 if test -n "$ac_ct_CC"; then
4314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315else
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_ac_ct_CC="gcc"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327done
4328 done
4329IFS=$as_save_IFS
d7040cdb 4330
81ecdfbb 4331fi
b879806f
AM
4332fi
4333ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334if test -n "$ac_ct_CC"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336$as_echo "$ac_ct_CC" >&6; }
4fda8867 4337else
b879806f
AM
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339$as_echo "no" >&6; }
4fda8867
NC
4340fi
4341
b879806f
AM
4342 if test "x$ac_ct_CC" = x; then
4343 CC=""
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346yes:)
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4349ac_tool_warned=yes ;;
7fb9f789 4350esac
b879806f
AM
4351 CC=$ac_ct_CC
4352 fi
7fb9f789 4353else
b879806f 4354 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4355fi
4356
b879806f
AM
4357if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4360set dummy ${ac_tool_prefix}cc; ac_word=$2
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4364 $as_echo_n "(cached) " >&6
4365else
b879806f
AM
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
397841b5 4371do
b879806f
AM
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_CC="${ac_tool_prefix}cc"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381 done
4382IFS=$as_save_IFS
d7040cdb 4383
ce2cded5 4384fi
ce2cded5 4385fi
b879806f
AM
4386CC=$ac_cv_prog_CC
4387if test -n "$CC"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389$as_echo "$CC" >&6; }
4390else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
81ecdfbb
RW
4393fi
4394
d7040cdb 4395
b879806f 4396 fi
ce2cded5 4397fi
b879806f
AM
4398if test -z "$CC"; then
4399 # Extract the first word of "cc", so it can be a program name with args.
4400set dummy cc; ac_word=$2
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402$as_echo_n "checking for $ac_word... " >&6; }
4403if test "${ac_cv_prog_CC+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
397841b5 4405else
b879806f
AM
4406 if test -n "$CC"; then
4407 ac_cv_prog_CC="$CC" # Let the user override the test.
4408else
4409 ac_prog_rejected=no
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
397841b5 4412do
b879806f
AM
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4418 ac_prog_rejected=yes
4419 continue
4420 fi
4421 ac_cv_prog_CC="cc"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426 done
4427IFS=$as_save_IFS
d7040cdb 4428
b879806f
AM
4429if test $ac_prog_rejected = yes; then
4430 # We found a bogon in the path, so make sure we never use it.
4431 set dummy $ac_cv_prog_CC
4432 shift
4433 if test $# != 0; then
4434 # We chose a different compiler from the bogus one.
4435 # However, it has the same basename, so the bogon will be chosen
4436 # first if we set CC to just the basename; use the full file name.
4437 shift
4438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4439 fi
397841b5 4440fi
397841b5 4441fi
b879806f
AM
4442fi
4443CC=$ac_cv_prog_CC
4444if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446$as_echo "$CC" >&6; }
397841b5 4447else
b879806f
AM
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
ce2cded5 4450fi
d7040cdb 4451
397841b5 4452
b879806f
AM
4453fi
4454if test -z "$CC"; then
4455 if test -n "$ac_tool_prefix"; then
4456 for ac_prog in cl.exe
4457 do
4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
4462if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4463 $as_echo_n "(cached) " >&6
d7040cdb 4464else
b879806f
AM
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
d7040cdb
SE
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
81ecdfbb 4473 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479done
397841b5
AM
4480 done
4481IFS=$as_save_IFS
d7040cdb 4482
252b5132 4483fi
b879806f
AM
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488$as_echo "$CC" >&6; }
4489else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
397841b5
AM
4493
4494
b879806f
AM
4495 test -n "$CC" && break
4496 done
4497fi
4498if test -z "$CC"; then
4499 ac_ct_CC=$CC
4500 for ac_prog in cl.exe
4501do
4502 # Extract the first word of "$ac_prog", so it can be a program name with args.
4503set dummy $ac_prog; ac_word=$2
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4507 $as_echo_n "(cached) " >&6
4508else
b879806f
AM
4509 if test -n "$ac_ct_CC"; then
4510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
397841b5
AM
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
397841b5 4517 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_CC="$ac_prog"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523done
397841b5
AM
4524 done
4525IFS=$as_save_IFS
397841b5 4526
397841b5 4527fi
397841b5 4528fi
b879806f
AM
4529ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530if test -n "$ac_ct_CC"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4532$as_echo "$ac_ct_CC" >&6; }
4533else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
397841b5
AM
4536fi
4537
397841b5 4538
b879806f
AM
4539 test -n "$ac_ct_CC" && break
4540done
397841b5 4541
b879806f
AM
4542 if test "x$ac_ct_CC" = x; then
4543 CC=""
4544 else
4545 case $cross_compiling:$ac_tool_warned in
4546yes:)
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549ac_tool_warned=yes ;;
397841b5 4550esac
b879806f
AM
4551 CC=$ac_ct_CC
4552 fi
397841b5
AM
4553fi
4554
397841b5
AM
4555fi
4556
4557
b879806f
AM
4558test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560as_fn_error "no acceptable C compiler found in \$PATH
4561See \`config.log' for more details." "$LINENO" 5; }
397841b5 4562
b879806f
AM
4563# Provide some information about the compiler.
4564$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4565set X $ac_compile
4566ac_compiler=$2
4567for ac_option in --version -v -V -qversion; do
4568 { { ac_try="$ac_compiler $ac_option >&5"
4569case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572esac
4573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4574$as_echo "$ac_try_echo"; } >&5
4575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4576 ac_status=$?
4577 if test -s conftest.err; then
4578 sed '10a\
4579... rest of stderr output deleted ...
4580 10q' conftest.err >conftest.er1
4581 cat conftest.er1 >&5
4582 rm -f conftest.er1 conftest.err
4583 fi
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586done
397841b5 4587
b879806f
AM
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4589$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4590if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4591 $as_echo_n "(cached) " >&6
4592else
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594/* end confdefs.h. */
b879806f 4595
44350750
NC
4596int
4597main ()
4598{
b879806f
AM
4599#ifndef __GNUC__
4600 choke me
4601#endif
4602
4603 ;
44350750
NC
4604 return 0;
4605}
4606_ACEOF
b879806f
AM
4607if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_compiler_gnu=yes
44350750 4609else
b879806f 4610 ac_compiler_gnu=no
44350750 4611fi
b879806f
AM
4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613ac_cv_c_compiler_gnu=$ac_compiler_gnu
4614
44350750 4615fi
b879806f
AM
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4617$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4618if test $ac_compiler_gnu = yes; then
4619 GCC=yes
4620else
4621 GCC=
4622fi
4623ac_test_CFLAGS=${CFLAGS+set}
4624ac_save_CFLAGS=$CFLAGS
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4626$as_echo_n "checking whether $CC accepts -g... " >&6; }
4627if test "${ac_cv_prog_cc_g+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629else
4630 ac_save_c_werror_flag=$ac_c_werror_flag
4631 ac_c_werror_flag=yes
4632 ac_cv_prog_cc_g=no
4633 CFLAGS="-g"
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h. */
44350750 4636
b879806f
AM
4637int
4638main ()
4639{
44350750 4640
b879806f
AM
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_prog_cc_g=yes
4647else
4648 CFLAGS=""
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h. */
4651
4652int
4653main ()
4654{
44350750 4655
b879806f
AM
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"; then :
44350750 4661
b879806f
AM
4662else
4663 ac_c_werror_flag=$ac_save_c_werror_flag
4664 CFLAGS="-g"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h. */
397841b5 4667
b879806f
AM
4668int
4669main ()
4670{
397841b5 4671
b879806f
AM
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_cv_prog_cc_g=yes
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680fi
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4687$as_echo "$ac_cv_prog_cc_g" >&6; }
4688if test "$ac_test_CFLAGS" = set; then
4689 CFLAGS=$ac_save_CFLAGS
4690elif test $ac_cv_prog_cc_g = yes; then
4691 if test "$GCC" = yes; then
4692 CFLAGS="-g -O2"
4693 else
4694 CFLAGS="-g"
4695 fi
4696else
4697 if test "$GCC" = yes; then
4698 CFLAGS="-O2"
4699 else
4700 CFLAGS=
4701 fi
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4704$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4705if test "${ac_cv_prog_cc_c89+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707else
4708 ac_cv_prog_cc_c89=no
4709ac_save_CC=$CC
4710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h. */
4712#include <stdarg.h>
4713#include <stdio.h>
4714#include <sys/types.h>
4715#include <sys/stat.h>
4716/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4717struct buf { int x; };
4718FILE * (*rcsopen) (struct buf *, struct stat *, int);
4719static char *e (p, i)
4720 char **p;
4721 int i;
4722{
4723 return p[i];
4724}
4725static char *f (char * (*g) (char **, int), char **p, ...)
4726{
4727 char *s;
4728 va_list v;
4729 va_start (v,p);
4730 s = g (p, va_arg (v,int));
4731 va_end (v);
4732 return s;
4733}
df7b86aa 4734
b879806f
AM
4735/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4736 function prototypes and stuff, but not '\xHH' hex character constants.
4737 These don't provoke an error unfortunately, instead are silently treated
4738 as 'x'. The following induces an error, until -std is added to get
4739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4740 array size at least. It's necessary to write '\x00'==0 to get something
4741 that's true only with -std. */
4742int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4743
b879806f
AM
4744/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4745 inside strings and character constants. */
4746#define FOO(x) 'x'
4747int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4748
4749int test (int i, double x);
4750struct s1 {int (*f) (int a);};
4751struct s2 {int (*f) (double a);};
4752int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4753int argc;
4754char **argv;
4755int
4756main ()
4757{
4758return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4759 ;
4760 return 0;
4761}
4762_ACEOF
4763for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4765do
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_c89=$ac_arg
397841b5 4769fi
b879806f
AM
4770rm -f core conftest.err conftest.$ac_objext
4771 test "x$ac_cv_prog_cc_c89" != "xno" && break
4772done
4773rm -f conftest.$ac_ext
4774CC=$ac_save_CC
4775
397841b5 4776fi
b879806f
AM
4777# AC_CACHE_VAL
4778case "x$ac_cv_prog_cc_c89" in
4779 x)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781$as_echo "none needed" >&6; } ;;
4782 xno)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784$as_echo "unsupported" >&6; } ;;
4785 *)
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4788$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4789esac
4790if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4791
b879806f 4792fi
397841b5
AM
4793
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4799
4800ac_ext=cpp
4801ac_cpp='$CXXCPP $CPPFLAGS'
4802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805if test -z "$CXX"; then
4806 if test -n "$CCC"; then
4807 CXX=$CCC
4808 else
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4811 do
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4816if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4817 $as_echo_n "(cached) " >&6
4818else
b879806f
AM
4819 if test -n "$CXX"; then
4820 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4829 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833done
4834 done
4835IFS=$as_save_IFS
4836
4837fi
4838fi
b879806f
AM
4839CXX=$ac_cv_prog_CXX
4840if test -n "$CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4842$as_echo "$CXX" >&6; }
397841b5
AM
4843else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
4846fi
4847
4848
b879806f
AM
4849 test -n "$CXX" && break
4850 done
397841b5 4851fi
b879806f
AM
4852if test -z "$CXX"; then
4853 ac_ct_CXX=$CXX
4854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4855do
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857set dummy $ac_prog; ac_word=$2
397841b5
AM
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4860if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4861 $as_echo_n "(cached) " >&6
252b5132 4862else
b879806f
AM
4863 if test -n "$ac_ct_CXX"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4865else
ce2cded5
L
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4873 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4875 break 2
4876 fi
4877done
81ecdfbb
RW
4878 done
4879IFS=$as_save_IFS
4880
252b5132
RH
4881fi
4882fi
b879806f
AM
4883ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4884if test -n "$ac_ct_CXX"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4886$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4887else
81ecdfbb
RW
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
d7040cdb
SE
4890fi
4891
81ecdfbb 4892
b879806f 4893 test -n "$ac_ct_CXX" && break
d7040cdb 4894done
d7040cdb 4895
b879806f
AM
4896 if test "x$ac_ct_CXX" = x; then
4897 CXX="g++"
81ecdfbb
RW
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900yes:)
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903ac_tool_warned=yes ;;
4904esac
b879806f 4905 CXX=$ac_ct_CXX
81ecdfbb 4906 fi
d7040cdb
SE
4907fi
4908
b879806f 4909 fi
d7040cdb 4910fi
ce2cded5 4911# Provide some information about the compiler.
b879806f 4912$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4913set X $ac_compile
4914ac_compiler=$2
4915for ac_option in --version -v -V -qversion; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4917case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920esac
4921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922$as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4924 ac_status=$?
81ecdfbb
RW
4925 if test -s conftest.err; then
4926 sed '10a\
4927... rest of stderr output deleted ...
4928 10q' conftest.err >conftest.er1
4929 cat conftest.er1 >&5
4930 rm -f conftest.er1 conftest.err
4931 fi
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4934done
d7040cdb 4935
b879806f
AM
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4937$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4938if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4939 $as_echo_n "(cached) " >&6
d7040cdb 4940else
81ecdfbb 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4942/* end confdefs.h. */
d7040cdb 4943
ce2cded5
L
4944int
4945main ()
4946{
4947#ifndef __GNUC__
4948 choke me
4949#endif
4950
4951 ;
4952 return 0;
4953}
4954_ACEOF
b879806f 4955if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4956 ac_compiler_gnu=yes
d7040cdb 4957else
81ecdfbb 4958 ac_compiler_gnu=no
d7040cdb 4959fi
81ecdfbb 4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4961ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4962
ce2cded5 4963fi
b879806f
AM
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4965$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4966if test $ac_compiler_gnu = yes; then
b879806f 4967 GXX=yes
81ecdfbb 4968else
b879806f 4969 GXX=
81ecdfbb 4970fi
b879806f
AM
4971ac_test_CXXFLAGS=${CXXFLAGS+set}
4972ac_save_CXXFLAGS=$CXXFLAGS
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4975if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4976 $as_echo_n "(cached) " >&6
4977else
b879806f
AM
4978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4979 ac_cxx_werror_flag=yes
4980 ac_cv_prog_cxx_g=no
4981 CXXFLAGS="-g"
81ecdfbb 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4983/* end confdefs.h. */
d7040cdb 4984
ce2cded5
L
4985int
4986main ()
4987{
d7040cdb 4988
ce2cded5
L
4989 ;
4990 return 0;
4991}
4992_ACEOF
b879806f
AM
4993if ac_fn_cxx_try_compile "$LINENO"; then :
4994 ac_cv_prog_cxx_g=yes
ce2cded5 4995else
b879806f 4996 CXXFLAGS=""
81ecdfbb
RW
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998/* end confdefs.h. */
4999
5000int
5001main ()
5002{
5003
5004 ;
5005 return 0;
5006}
5007_ACEOF
b879806f 5008if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5009
5010else
b879806f
AM
5011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5012 CXXFLAGS="-g"
81ecdfbb
RW
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h. */
5015
5016int
5017main ()
5018{
d7040cdb 5019
81ecdfbb
RW
5020 ;
5021 return 0;
5022}
5023_ACEOF
b879806f
AM
5024if ac_fn_cxx_try_compile "$LINENO"; then :
5025 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5030fi
81ecdfbb 5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5033fi
b879806f
AM
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5035$as_echo "$ac_cv_prog_cxx_g" >&6; }
5036if test "$ac_test_CXXFLAGS" = set; then
5037 CXXFLAGS=$ac_save_CXXFLAGS
5038elif test $ac_cv_prog_cxx_g = yes; then
5039 if test "$GXX" = yes; then
5040 CXXFLAGS="-g -O2"
ce2cded5 5041 else
b879806f 5042 CXXFLAGS="-g"
ce2cded5 5043 fi
d7040cdb 5044else
b879806f
AM
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-O2"
ce2cded5 5047 else
b879806f 5048 CXXFLAGS=
ce2cded5 5049 fi
d7040cdb 5050fi
b879806f
AM
5051ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057depcc="$CXX" am_compiler_list=
5058
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5060$as_echo_n "checking dependency style of $depcc... " >&6; }
5061if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5062 $as_echo_n "(cached) " >&6
d7040cdb 5063else
b879806f
AM
5064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5065 # We make a subdir and do the tests there. Otherwise we can end up
5066 # making bogus files that we don't know about and never remove. For
5067 # instance it was reported that on HP-UX the gcc test will end up
5068 # making a dummy file named `D' -- because `-MD' means `put the output
5069 # in D'.
6eb7d830 5070 rm -rf conftest.dir
b879806f
AM
5071 mkdir conftest.dir
5072 # Copy depcomp to subdir because otherwise we won't find it if we're
5073 # using a relative directory.
5074 cp "$am_depcomp" conftest.dir
5075 cd conftest.dir
5076 # We will build objects and dependencies in a subdirectory because
5077 # it helps to detect inapplicable dependency modes. For instance
5078 # both Tru64's cc and ICC support -MD to output dependencies as a
5079 # side effect of compilation, but ICC will put the dependencies in
5080 # the current directory while Tru64 will put them in the object
5081 # directory.
5082 mkdir sub
d7040cdb 5083
b879806f
AM
5084 am_cv_CXX_dependencies_compiler_type=none
5085 if test "$am_compiler_list" = ""; then
5086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5087 fi
5088 am__universal=false
5089 case " $depcc " in #(
5090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091 esac
d7040cdb 5092
b879806f
AM
5093 for depmode in $am_compiler_list; do
5094 # Setup a source with many dependencies, because some compilers
5095 # like to wrap large dependency lists on column 80 (with \), and
5096 # we should not choose a depcomp mode which is confused by this.
5097 #
5098 # We need to recreate these files for each test, as the compiler may
5099 # overwrite some of them when testing with obscure command lines.
5100 # This happens at least with the AIX C compiler.
5101 : > sub/conftest.c
5102 for i in 1 2 3 4 5 6; do
5103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5105 # Solaris 8's {/usr,}/bin/sh.
5106 touch sub/conftst$i.h
5107 done
5108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5109
b879806f
AM
5110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5111 # mode. It turns out that the SunPro C++ compiler does not properly
5112 # handle `-M -o', and we need to detect this. Also, some Intel
5113 # versions had trouble with output in subdirs
5114 am__obj=sub/conftest.${OBJEXT-o}
5115 am__minus_obj="-o $am__obj"
5116 case $depmode in
5117 gcc)
5118 # This depmode causes a compiler race in universal mode.
5119 test "$am__universal" = false || continue
5120 ;;
5121 nosideeffect)
5122 # after this tag, mechanisms are not by side-effect, so they'll
5123 # only be used when explicitly requested
5124 if test "x$enable_dependency_tracking" = xyes; then
5125 continue
5126 else
5127 break
5128 fi
5129 ;;
6eb7d830 5130 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
b879806f
AM
5131 # This compiler won't grok `-c -o', but also, the minuso test has
5132 # not run yet. These depmodes are late enough in the game, and
5133 # so weak that their functioning should not be impacted.
5134 am__obj=conftest.${OBJEXT-o}
5135 am__minus_obj=
5136 ;;
5137 none) break ;;
5138 esac
5139 if depmode=$depmode \
5140 source=sub/conftest.c object=$am__obj \
5141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5143 >/dev/null 2>conftest.err &&
5144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5148 # icc doesn't choke on unknown options, it will just issue warnings
5149 # or remarks (even with -Werror). So we grep stderr for any message
5150 # that says an option was ignored or not supported.
5151 # When given -MP, icc 7.0 and 7.1 complain thusly:
5152 # icc: Command line warning: ignoring option '-M'; no argument required
5153 # The diagnosis changed in icc 8.0:
5154 # icc: Command line remark: option '-MP' not supported
5155 if (grep 'ignoring option' conftest.err ||
5156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157 am_cv_CXX_dependencies_compiler_type=$depmode
5158 break
5159 fi
5160 fi
5161 done
5162
5163 cd ..
5164 rm -rf conftest.dir
5165else
5166 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5167fi
d7040cdb 5168
ce2cded5 5169fi
b879806f
AM
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5171$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5172CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5173
b879806f
AM
5174 if
5175 test "x$enable_dependency_tracking" != xno \
5176 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5177 am__fastdepCXX_TRUE=
5178 am__fastdepCXX_FALSE='#'
5179else
5180 am__fastdepCXX_TRUE='#'
5181 am__fastdepCXX_FALSE=
ce2cded5 5182fi
d7040cdb 5183
b879806f 5184
68880f31
CLT
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5186$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5187if test "${ac_cv_path_GREP+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189else
5190 if test -z "$GREP"; then
5191 ac_path_GREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_prog in grep ggrep; do
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5201 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5202# Check for GNU ac_path_GREP and select it if it is found.
5203 # Check for GNU $ac_path_GREP
5204case `"$ac_path_GREP" --version 2>&1` in
5205*GNU*)
5206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5207*)
5208 ac_count=0
5209 $as_echo_n 0123456789 >"conftest.in"
5210 while :
5211 do
5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
5213 mv "conftest.tmp" "conftest.in"
5214 cp "conftest.in" "conftest.nl"
5215 $as_echo 'GREP' >> "conftest.nl"
5216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
5219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5220 # Best one so far, save it but keep looking for a better one
5221 ac_cv_path_GREP="$ac_path_GREP"
5222 ac_path_GREP_max=$ac_count
5223 fi
5224 # 10*(2^10) chars as input seems more than enough
5225 test $ac_count -gt 10 && break
5226 done
5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228esac
5229
5230 $ac_path_GREP_found && break 3
5231 done
5232 done
5233 done
5234IFS=$as_save_IFS
5235 if test -z "$ac_cv_path_GREP"; then
5236 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5237 fi
5238else
5239 ac_cv_path_GREP=$GREP
5240fi
5241
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5244$as_echo "$ac_cv_path_GREP" >&6; }
5245 GREP="$ac_cv_path_GREP"
5246
5247
ce2cded5
L
5248ac_ext=c
5249ac_cpp='$CPP $CPPFLAGS'
5250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5254$as_echo_n "checking how to run the C preprocessor... " >&6; }
5255# On Suns, sometimes $CPP names a directory.
5256if test -n "$CPP" && test -d "$CPP"; then
5257 CPP=
7357c5b6 5258fi
b879806f
AM
5259if test -z "$CPP"; then
5260 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5261 $as_echo_n "(cached) " >&6
5262else
b879806f
AM
5263 # Double quotes because CPP needs to be expanded
5264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 do
5266 ac_preproc_ok=false
5267for ac_c_preproc_warn_flag in '' yes
3cb62297 5268do
b879806f
AM
5269 # Use a header file that comes with gcc, so configuring glibc
5270 # with a fresh cross-compiler works.
5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 # <limits.h> exists even on freestanding compilers.
5273 # On the NeXT, cc -E runs the code through the compiler's parser,
5274 # not just through cpp. "Syntax error" is here to catch this case.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h. */
5277#ifdef __STDC__
5278# include <limits.h>
5279#else
5280# include <assert.h>
5281#endif
5282 Syntax error
5283_ACEOF
5284if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5285
3cb62297 5286else
b879806f
AM
5287 # Broken: fails on valid input.
5288continue
7357c5b6 5289fi
b879806f 5290rm -f conftest.err conftest.$ac_ext
252b5132 5291
b879806f
AM
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h. */
5296#include <ac_nonexistent.h>
5297_ACEOF
5298if ac_fn_c_try_cpp "$LINENO"; then :
5299 # Broken: success on invalid input.
5300continue
5301else
5302 # Passes both tests.
5303ac_preproc_ok=:
5304break
5305fi
5306rm -f conftest.err conftest.$ac_ext
42ecbf5e 5307
3cb62297 5308done
b879806f
AM
5309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5310rm -f conftest.err conftest.$ac_ext
5311if $ac_preproc_ok; then :
5312 break
7357c5b6 5313fi
ac48eca1 5314
b879806f
AM
5315 done
5316 ac_cv_prog_CPP=$CPP
d7040cdb 5317
b879806f
AM
5318fi
5319 CPP=$ac_cv_prog_CPP
7357c5b6 5320else
b879806f
AM
5321 ac_cv_prog_CPP=$CPP
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5324$as_echo "$CPP" >&6; }
5325ac_preproc_ok=false
5326for ac_c_preproc_warn_flag in '' yes
5327do
5328 # Use a header file that comes with gcc, so configuring glibc
5329 # with a fresh cross-compiler works.
5330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5331 # <limits.h> exists even on freestanding compilers.
5332 # On the NeXT, cc -E runs the code through the compiler's parser,
5333 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5335/* end confdefs.h. */
b879806f
AM
5336#ifdef __STDC__
5337# include <limits.h>
5338#else
5339# include <assert.h>
3cb62297 5340#endif
b879806f 5341 Syntax error
7357c5b6 5342_ACEOF
b879806f
AM
5343if ac_fn_c_try_cpp "$LINENO"; then :
5344
81ecdfbb 5345else
b879806f
AM
5346 # Broken: fails on valid input.
5347continue
7357c5b6 5348fi
b879806f 5349rm -f conftest.err conftest.$ac_ext
81ecdfbb 5350
b879806f
AM
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h. */
5355#include <ac_nonexistent.h>
5356_ACEOF
5357if ac_fn_c_try_cpp "$LINENO"; then :
5358 # Broken: success on invalid input.
5359continue
3cb62297 5360else
b879806f
AM
5361 # Passes both tests.
5362ac_preproc_ok=:
5363break
7357c5b6 5364fi
b879806f 5365rm -f conftest.err conftest.$ac_ext
252b5132 5366
b879806f
AM
5367done
5368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369rm -f conftest.err conftest.$ac_ext
5370if $ac_preproc_ok; then :
252b5132 5371
3cb62297 5372else
b879806f
AM
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5375as_fn_error "C preprocessor \"$CPP\" fails sanity check
5376See \`config.log' for more details." "$LINENO" 5; }
5377fi
42ecbf5e 5378
b879806f
AM
5379ac_ext=c
5380ac_cpp='$CPP $CPPFLAGS'
5381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5384
5385
b879806f
AM
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5387$as_echo_n "checking for egrep... " >&6; }
5388if test "${ac_cv_path_EGREP+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390else
5391 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5392 then ac_cv_path_EGREP="$GREP -E"
5393 else
5394 if test -z "$EGREP"; then
5395 ac_path_EGREP_found=false
5396 # Loop through the user's path and test for each of PROGNAME-LIST
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_prog in egrep; do
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5405 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5406# Check for GNU ac_path_EGREP and select it if it is found.
5407 # Check for GNU $ac_path_EGREP
5408case `"$ac_path_EGREP" --version 2>&1` in
5409*GNU*)
5410 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5411*)
5412 ac_count=0
5413 $as_echo_n 0123456789 >"conftest.in"
5414 while :
5415 do
5416 cat "conftest.in" "conftest.in" >"conftest.tmp"
5417 mv "conftest.tmp" "conftest.in"
5418 cp "conftest.in" "conftest.nl"
5419 $as_echo 'EGREP' >> "conftest.nl"
5420 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5422 as_fn_arith $ac_count + 1 && ac_count=$as_val
5423 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5424 # Best one so far, save it but keep looking for a better one
5425 ac_cv_path_EGREP="$ac_path_EGREP"
5426 ac_path_EGREP_max=$ac_count
5427 fi
5428 # 10*(2^10) chars as input seems more than enough
5429 test $ac_count -gt 10 && break
5430 done
5431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432esac
5433
5434 $ac_path_EGREP_found && break 3
5435 done
5436 done
5437 done
5438IFS=$as_save_IFS
5439 if test -z "$ac_cv_path_EGREP"; then
5440 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5441 fi
5442else
5443 ac_cv_path_EGREP=$EGREP
5444fi
5445
5446 fi
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5449$as_echo "$ac_cv_path_EGREP" >&6; }
5450 EGREP="$ac_cv_path_EGREP"
5451
5452
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5454$as_echo_n "checking for ANSI C header files... " >&6; }
5455if test "${ac_cv_header_stdc+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5459/* end confdefs.h. */
b879806f
AM
5460#include <stdlib.h>
5461#include <stdarg.h>
5462#include <string.h>
5463#include <float.h>
42ecbf5e 5464
3cb62297
L
5465int
5466main ()
5467{
42ecbf5e 5468
3cb62297
L
5469 ;
5470 return 0;
5471}
5472_ACEOF
b879806f
AM
5473if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_header_stdc=yes
5475else
5476 ac_cv_header_stdc=no
3cb62297
L
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5479
5480if test $ac_cv_header_stdc = yes; then
5481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h. */
5484#include <string.h>
5485
5486_ACEOF
5487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488 $EGREP "memchr" >/dev/null 2>&1; then :
5489
5490else
5491 ac_cv_header_stdc=no
3cb62297 5492fi
b879806f
AM
5493rm -f conftest*
5494
3cb62297 5495fi
b879806f
AM
5496
5497if test $ac_cv_header_stdc = yes; then
5498 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500/* end confdefs.h. */
5501#include <stdlib.h>
5502
5503_ACEOF
5504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505 $EGREP "free" >/dev/null 2>&1; then :
5506
ce2cded5 5507else
b879806f 5508 ac_cv_header_stdc=no
ce2cded5 5509fi
b879806f 5510rm -f conftest*
42ecbf5e 5511
b879806f 5512fi
e5a52504 5513
b879806f
AM
5514if test $ac_cv_header_stdc = yes; then
5515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5516 if test "$cross_compiling" = yes; then :
5517 :
3cb62297 5518else
b879806f
AM
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
5521#include <ctype.h>
5522#include <stdlib.h>
5523#if ((' ' & 0x0FF) == 0x020)
5524# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5525# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5526#else
5527# define ISLOWER(c) \
5528 (('a' <= (c) && (c) <= 'i') \
5529 || ('j' <= (c) && (c) <= 'r') \
5530 || ('s' <= (c) && (c) <= 'z'))
5531# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5532#endif
3cb62297
L
5533
5534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5535int
5536main ()
5537{
5538 int i;
5539 for (i = 0; i < 256; i++)
5540 if (XOR (islower (i), ISLOWER (i))
5541 || toupper (i) != TOUPPER (i))
5542 return 2;
5543 return 0;
5544}
5545_ACEOF
5546if ac_fn_c_try_run "$LINENO"; then :
5547
5548else
5549 ac_cv_header_stdc=no
5550fi
5551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5552 conftest.$ac_objext conftest.beam conftest.$ac_ext
5553fi
5554
5555fi
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5558$as_echo "$ac_cv_header_stdc" >&6; }
5559if test $ac_cv_header_stdc = yes; then
5560
5561$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5562
5563fi
5564
5565# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5566for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5567 inttypes.h stdint.h unistd.h
5568do :
5569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5571"
5572eval as_val=\$$as_ac_Header
5573 if test "x$as_val" = x""yes; then :
5574 cat >>confdefs.h <<_ACEOF
5575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576_ACEOF
5577
5578fi
5579
5580done
5581
5582
5583
5584 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5585if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5586 MINIX=yes
5587else
5588 MINIX=
5589fi
5590
5591
5592 if test "$MINIX" = yes; then
5593
5594$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5595
5596
5597$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5598
5599
5600$as_echo "#define _MINIX 1" >>confdefs.h
5601
5602 fi
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5606$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5607if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609else
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h. */
5612
5613# define __EXTENSIONS__ 1
5614 $ac_includes_default
5615int
5616main ()
5617{
5618
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_compile "$LINENO"; then :
5624 ac_cv_safe_to_define___extensions__=yes
5625else
5626 ac_cv_safe_to_define___extensions__=no
5627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5631$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5632 test $ac_cv_safe_to_define___extensions__ = yes &&
5633 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5634
5635 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5636
5637 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5638
5639 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5640
5641 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5642
5643
5644
5645
5646
3cb62297 5647
b879806f
AM
5648case `pwd` in
5649 *\ * | *\ *)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5651$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5652esac
3cb62297
L
5653
5654
da2f07f1 5655
b879806f
AM
5656macro_version='2.2.7a'
5657macro_revision='1.3134'
d7040cdb 5658
d7040cdb
SE
5659
5660
d7040cdb 5661
d7040cdb 5662
42ecbf5e 5663
d7040cdb 5664
252b5132 5665
252b5132 5666
252b5132 5667
252b5132
RH
5668
5669
ce2cded5 5670
b214d478 5671ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5672
3725885a
RW
5673# Backslashify metacharacters that are still active within
5674# double-quoted strings.
5675sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5676
5677# Same as above, but do not quote variable references.
5678double_quote_subst='s/\(["`\\]\)/\\\1/g'
5679
5680# Sed substitution to delay expansion of an escaped shell variable in a
5681# double_quote_subst'ed string.
5682delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5683
5684# Sed substitution to delay expansion of an escaped single quote.
5685delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5686
5687# Sed substitution to avoid accidental globbing in evaled expressions
5688no_glob_subst='s/\*/\\\*/g'
5689
5690ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5691ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5695$as_echo_n "checking how to print strings... " >&6; }
5696# Test print first, because it will be a builtin if present.
5697if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5698 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5699 ECHO='print -r --'
5700elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5701 ECHO='printf %s\n'
5702else
5703 # Use this function as a fallback that always works.
5704 func_fallback_echo ()
5705 {
5706 eval 'cat <<_LTECHO_EOF
5707$1
5708_LTECHO_EOF'
5709 }
5710 ECHO='func_fallback_echo'
5711fi
5712
5713# func_echo_all arg...
5714# Invoke $ECHO with all args, space-separated.
5715func_echo_all ()
5716{
5717 $ECHO ""
5718}
5719
5720case "$ECHO" in
5721 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5722$as_echo "printf" >&6; } ;;
5723 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5724$as_echo "print -r" >&6; } ;;
5725 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5726$as_echo "cat" >&6; } ;;
5727esac
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
81ecdfbb
RW
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5743$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5744if test "${ac_cv_path_SED+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746else
5747 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5748 for ac_i in 1 2 3 4 5 6 7; do
5749 ac_script="$ac_script$as_nl$ac_script"
5750 done
5751 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5752 { ac_script=; unset ac_script;}
5753 if test -z "$SED"; then
5754 ac_path_SED_found=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5757for as_dir in $PATH
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
81ecdfbb 5761 for ac_prog in sed gsed; do
7357c5b6 5762 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5763 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5765# Check for GNU ac_path_SED and select it if it is found.
5766 # Check for GNU $ac_path_SED
5767case `"$ac_path_SED" --version 2>&1` in
5768*GNU*)
5769 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5770*)
5771 ac_count=0
5772 $as_echo_n 0123456789 >"conftest.in"
5773 while :
5774 do
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo '' >> "conftest.nl"
5779 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_SED_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_SED="$ac_path_SED"
5785 ac_path_SED_max=$ac_count
5786 fi
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791esac
5792
5793 $ac_path_SED_found && break 3
7357c5b6
AM
5794 done
5795 done
81ecdfbb 5796 done
7357c5b6 5797IFS=$as_save_IFS
81ecdfbb
RW
5798 if test -z "$ac_cv_path_SED"; then
5799 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5800 fi
81ecdfbb
RW
5801else
5802 ac_cv_path_SED=$SED
7357c5b6 5803fi
20e95c23 5804
81ecdfbb
RW
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5807$as_echo "$ac_cv_path_SED" >&6; }
5808 SED="$ac_cv_path_SED"
5809 rm -f conftest.sed
20e95c23 5810
7357c5b6
AM
5811test -z "$SED" && SED=sed
5812Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5813
5814
5815
5816
5817
5818
20e95c23 5819
20e95c23 5820
d7040cdb 5821
d7040cdb 5822
7357c5b6 5823
81ecdfbb
RW
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5825$as_echo_n "checking for fgrep... " >&6; }
5826if test "${ac_cv_path_FGREP+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
7357c5b6 5828else
81ecdfbb
RW
5829 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5830 then ac_cv_path_FGREP="$GREP -F"
5831 else
5832 if test -z "$FGREP"; then
5833 ac_path_FGREP_found=false
5834 # Loop through the user's path and test for each of PROGNAME-LIST
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_prog in fgrep; do
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5843 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5844# Check for GNU ac_path_FGREP and select it if it is found.
5845 # Check for GNU $ac_path_FGREP
5846case `"$ac_path_FGREP" --version 2>&1` in
5847*GNU*)
5848 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5849*)
5850 ac_count=0
5851 $as_echo_n 0123456789 >"conftest.in"
5852 while :
5853 do
5854 cat "conftest.in" "conftest.in" >"conftest.tmp"
5855 mv "conftest.tmp" "conftest.in"
5856 cp "conftest.in" "conftest.nl"
5857 $as_echo 'FGREP' >> "conftest.nl"
5858 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5860 as_fn_arith $ac_count + 1 && ac_count=$as_val
5861 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5862 # Best one so far, save it but keep looking for a better one
5863 ac_cv_path_FGREP="$ac_path_FGREP"
5864 ac_path_FGREP_max=$ac_count
7357c5b6 5865 fi
81ecdfbb
RW
5866 # 10*(2^10) chars as input seems more than enough
5867 test $ac_count -gt 10 && break
5868 done
5869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5870esac
5871
5872 $ac_path_FGREP_found && break 3
5873 done
5874 done
5875 done
5876IFS=$as_save_IFS
5877 if test -z "$ac_cv_path_FGREP"; then
5878 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5879 fi
5880else
5881 ac_cv_path_FGREP=$FGREP
5882fi
5883
5884 fi
20e95c23 5885fi
81ecdfbb
RW
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5887$as_echo "$ac_cv_path_FGREP" >&6; }
5888 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5889
5890
5891test -z "$GREP" && GREP=grep
5892
d7040cdb
SE
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
20e95c23 5904
ce2cded5 5905
d7040cdb 5906
7357c5b6
AM
5907
5908
5909
5910
81ecdfbb
RW
5911# Check whether --with-gnu-ld was given.
5912if test "${with_gnu_ld+set}" = set; then :
5913 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5914else
5915 with_gnu_ld=no
81ecdfbb
RW
5916fi
5917
7357c5b6
AM
5918ac_prog=ld
5919if test "$GCC" = yes; then
5920 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5922$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5923 case $host in
5924 *-*-mingw*)
5925 # gcc leaves a trailing carriage return which upsets mingw
5926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5927 *)
5928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5929 esac
5930 case $ac_prog in
5931 # Accept absolute paths.
5932 [\\/]* | ?:[\\/]*)
5933 re_direlt='/[^/][^/]*/\.\./'
5934 # Canonicalize the pathname of ld
5935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5938 done
5939 test -z "$LD" && LD="$ac_prog"
5940 ;;
5941 "")
5942 # If it fails, then pretend we aren't using GCC.
5943 ac_prog=ld
5944 ;;
5945 *)
5946 # If it is relative, then search for the first ld in PATH.
5947 with_gnu_ld=unknown
5948 ;;
5949 esac
5950elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5952$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5953else
81ecdfbb
RW
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5955$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5956fi
81ecdfbb
RW
5957if test "${lt_cv_path_LD+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
ce2cded5 5959else
7357c5b6
AM
5960 if test -z "$LD"; then
5961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5962 for ac_dir in $PATH; do
5963 IFS="$lt_save_ifs"
5964 test -z "$ac_dir" && ac_dir=.
5965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5966 lt_cv_path_LD="$ac_dir/$ac_prog"
5967 # Check to see if the program is GNU ld. I'd rather use --version,
5968 # but apparently some variants of GNU ld only accept -v.
5969 # Break only if it was the GNU/non-GNU ld that we prefer.
5970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5971 *GNU* | *'with BFD'*)
5972 test "$with_gnu_ld" != no && break
5973 ;;
5974 *)
5975 test "$with_gnu_ld" != yes && break
5976 ;;
5977 esac
5978 fi
5979 done
5980 IFS="$lt_save_ifs"
ce2cded5 5981else
7357c5b6 5982 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5983fi
5984fi
7357c5b6
AM
5985
5986LD="$lt_cv_path_LD"
5987if test -n "$LD"; then
81ecdfbb
RW
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5989$as_echo "$LD" >&6; }
ce2cded5 5990else
81ecdfbb
RW
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
ce2cded5 5993fi
81ecdfbb
RW
5994test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5997if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
ce2cded5 5999else
7357c5b6
AM
6000 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6001case `$LD -v 2>&1 </dev/null` in
6002*GNU* | *'with BFD'*)
6003 lt_cv_prog_gnu_ld=yes
6004 ;;
6005*)
6006 lt_cv_prog_gnu_ld=no
6007 ;;
6008esac
ce2cded5 6009fi
81ecdfbb
RW
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6011$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6012with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6013
6014
6015
6016
6017
6018
6019
6020
6021
81ecdfbb
RW
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6023$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6024if test "${lt_cv_path_NM+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
ce2cded5 6026else
7357c5b6
AM
6027 if test -n "$NM"; then
6028 # Let the user override the test.
6029 lt_cv_path_NM="$NM"
ce2cded5 6030else
7357c5b6
AM
6031 lt_nm_to_check="${ac_tool_prefix}nm"
6032 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6033 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6034 fi
7357c5b6
AM
6035 for lt_tmp_nm in $lt_nm_to_check; do
6036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6038 IFS="$lt_save_ifs"
6039 test -z "$ac_dir" && ac_dir=.
6040 tmp_nm="$ac_dir/$lt_tmp_nm"
6041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6042 # Check to see if the nm accepts a BSD-compat flag.
6043 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6044 # nm: unknown option "B" ignored
6045 # Tru64's nm complains that /dev/null is an invalid object file
6046 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6047 */dev/null* | *'Invalid file or object type'*)
6048 lt_cv_path_NM="$tmp_nm -B"
6049 break
6050 ;;
6051 *)
6052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6053 */dev/null*)
6054 lt_cv_path_NM="$tmp_nm -p"
6055 break
6056 ;;
6057 *)
6058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6059 continue # so that we can try to find one that supports BSD flags
6060 ;;
6061 esac
6062 ;;
6063 esac
6064 fi
6065 done
6066 IFS="$lt_save_ifs"
6067 done
6068 : ${lt_cv_path_NM=no}
ce2cded5
L
6069fi
6070fi
81ecdfbb
RW
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6072$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6073if test "$lt_cv_path_NM" != "no"; then
6074 NM="$lt_cv_path_NM"
ce2cded5 6075else
7357c5b6 6076 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6077 if test -n "$DUMPBIN"; then :
6078 # Let the user override the test.
6079 else
6080 if test -n "$ac_tool_prefix"; then
6081 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6082 do
6083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086$as_echo_n "checking for $ac_word... " >&6; }
6087if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
20e95c23 6089else
7357c5b6
AM
6090 if test -n "$DUMPBIN"; then
6091 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6100 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6102 break 2
6103 fi
6104done
81ecdfbb
RW
6105 done
6106IFS=$as_save_IFS
d7040cdb 6107
20e95c23 6108fi
ce2cded5 6109fi
7357c5b6
AM
6110DUMPBIN=$ac_cv_prog_DUMPBIN
6111if test -n "$DUMPBIN"; then
81ecdfbb
RW
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6113$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6114else
81ecdfbb
RW
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
42ecbf5e
DJ
6117fi
6118
81ecdfbb 6119
7357c5b6
AM
6120 test -n "$DUMPBIN" && break
6121 done
ce2cded5 6122fi
7357c5b6
AM
6123if test -z "$DUMPBIN"; then
6124 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6125 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6126do
6127 # Extract the first word of "$ac_prog", so it can be a program name with args.
6128set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
6131if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
42ecbf5e 6133else
7357c5b6
AM
6134 if test -n "$ac_ct_DUMPBIN"; then
6135 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6144 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6146 break 2
6147 fi
6148done
81ecdfbb
RW
6149 done
6150IFS=$as_save_IFS
d7040cdb 6151
ce2cded5
L
6152fi
6153fi
7357c5b6
AM
6154ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6155if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6157$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6158else
81ecdfbb
RW
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
ce2cded5 6161fi
d7040cdb 6162
81ecdfbb 6163
7357c5b6 6164 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6165done
d7040cdb 6166
81ecdfbb
RW
6167 if test "x$ac_ct_DUMPBIN" = x; then
6168 DUMPBIN=":"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171yes:)
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174ac_tool_warned=yes ;;
6175esac
6176 DUMPBIN=$ac_ct_DUMPBIN
6177 fi
ce2cded5 6178fi
7357c5b6 6179
3725885a
RW
6180 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6181 *COFF*)
6182 DUMPBIN="$DUMPBIN -symbols"
6183 ;;
6184 *)
6185 DUMPBIN=:
6186 ;;
6187 esac
6188 fi
7357c5b6
AM
6189
6190 if test "$DUMPBIN" != ":"; then
6191 NM="$DUMPBIN"
6192 fi
ce2cded5 6193fi
7357c5b6
AM
6194test -z "$NM" && NM=nm
6195
6196
6197
6198
6199
6200
81ecdfbb
RW
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6202$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6203if test "${lt_cv_nm_interface+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
20e95c23 6205else
7357c5b6
AM
6206 lt_cv_nm_interface="BSD nm"
6207 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6208 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6209 (eval "$ac_compile" 2>conftest.err)
6210 cat conftest.err >&5
3725885a 6211 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6212 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6213 cat conftest.err >&5
3725885a 6214 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6215 cat conftest.out >&5
6216 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6217 lt_cv_nm_interface="MS dumpbin"
6218 fi
6219 rm -f conftest*
20e95c23 6220fi
81ecdfbb
RW
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6222$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6223
81ecdfbb
RW
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6225$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6226LN_S=$as_ln_s
6227if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6229$as_echo "yes" >&6; }
ce2cded5 6230else
81ecdfbb
RW
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6232$as_echo "no, using $LN_S" >&6; }
d7040cdb 6233fi
20e95c23 6234
7357c5b6 6235# find the maximum length of command line arguments
81ecdfbb
RW
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6237$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6238if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
7357c5b6
AM
6240else
6241 i=0
6242 teststring="ABCD"
20e95c23 6243
7357c5b6
AM
6244 case $build_os in
6245 msdosdjgpp*)
6246 # On DJGPP, this test can blow up pretty badly due to problems in libc
6247 # (any single argument exceeding 2000 bytes causes a buffer overrun
6248 # during glob expansion). Even if it were fixed, the result of this
6249 # check would be larger than it should be.
6250 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6251 ;;
20e95c23 6252
7357c5b6
AM
6253 gnu*)
6254 # Under GNU Hurd, this test is not required because there is
6255 # no limit to the length of command line arguments.
6256 # Libtool will interpret -1 as no limit whatsoever
6257 lt_cv_sys_max_cmd_len=-1;
6258 ;;
20e95c23 6259
b214d478 6260 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6261 # On Win9x/ME, this test blows up -- it succeeds, but takes
6262 # about 5 minutes as the teststring grows exponentially.
6263 # Worse, since 9x/ME are not pre-emptively multitasking,
6264 # you end up with a "frozen" computer, even though with patience
6265 # the test eventually succeeds (with a max line length of 256k).
6266 # Instead, let's just punt: use the minimum linelength reported by
6267 # all of the supported platforms: 8192 (on NT/2K/XP).
6268 lt_cv_sys_max_cmd_len=8192;
6269 ;;
20e95c23 6270
3725885a
RW
6271 mint*)
6272 # On MiNT this can take a long time and run out of memory.
6273 lt_cv_sys_max_cmd_len=8192;
6274 ;;
6275
7357c5b6
AM
6276 amigaos*)
6277 # On AmigaOS with pdksh, this test takes hours, literally.
6278 # So we just punt and use a minimum line length of 8192.
6279 lt_cv_sys_max_cmd_len=8192;
6280 ;;
20e95c23 6281
7357c5b6
AM
6282 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6283 # This has been around since 386BSD, at least. Likely further.
6284 if test -x /sbin/sysctl; then
6285 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6286 elif test -x /usr/sbin/sysctl; then
6287 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6288 else
6289 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6290 fi
6291 # And add a safety zone
6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6294 ;;
d7040cdb 6295
7357c5b6
AM
6296 interix*)
6297 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6298 lt_cv_sys_max_cmd_len=196608
6299 ;;
d7040cdb 6300
7357c5b6
AM
6301 osf*)
6302 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6303 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6304 # nice to cause kernel panics so lets avoid the loop below.
6305 # First set a reasonable default.
6306 lt_cv_sys_max_cmd_len=16384
6307 #
6308 if test -x /sbin/sysconfig; then
6309 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6310 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6311 esac
6312 fi
6313 ;;
6314 sco3.2v5*)
6315 lt_cv_sys_max_cmd_len=102400
6316 ;;
6317 sysv5* | sco5v6* | sysv4.2uw2*)
6318 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6319 if test -n "$kargmax"; then
6320 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6321 else
6322 lt_cv_sys_max_cmd_len=32768
6323 fi
ce2cded5
L
6324 ;;
6325 *)
b214d478
SE
6326 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6327 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330 else
6331 # Make teststring a little bigger before we do anything with it.
6332 # a 1K string should be a reasonable start.
6333 for i in 1 2 3 4 5 6 7 8 ; do
6334 teststring=$teststring$teststring
6335 done
6336 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6337 # If test is not a shell built-in, we'll probably end up computing a
6338 # maximum length that is only half of the actual maximum length, but
6339 # we can't tell.
3725885a
RW
6340 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6341 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6342 test $i != 17 # 1/2 MB should be enough
6343 do
6344 i=`expr $i + 1`
6345 teststring=$teststring$teststring
6346 done
6347 # Only check the string length outside the loop.
6348 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6349 teststring=
6350 # Add a significant safety factor because C++ compilers can tack on
6351 # massive amounts of additional arguments before passing them to the
6352 # linker. It appears as though 1/2 is a usable value.
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6354 fi
ce2cded5
L
6355 ;;
6356 esac
d7040cdb 6357
7357c5b6 6358fi
d7040cdb 6359
7357c5b6 6360if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6362$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6363else
81ecdfbb
RW
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6365$as_echo "none" >&6; }
7357c5b6
AM
6366fi
6367max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6368
6369
6370
6371
6372
d7040cdb 6373
7357c5b6
AM
6374: ${CP="cp -f"}
6375: ${MV="mv -f"}
6376: ${RM="rm -f"}
d7040cdb 6377
81ecdfbb
RW
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6379$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6380# Try some XSI features
6381xsi_shell=no
6382( _lt_dummy="a/b/c"
6383 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6384 = c,a/b,, \
6385 && eval 'test $(( 1 + 1 )) -eq 2 \
6386 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6387 && xsi_shell=yes
81ecdfbb
RW
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6389$as_echo "$xsi_shell" >&6; }
d7040cdb 6390
d7040cdb 6391
81ecdfbb
RW
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6393$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6394lt_shell_append=no
6395( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6396 >/dev/null 2>&1 \
6397 && lt_shell_append=yes
81ecdfbb
RW
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6399$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6400
6401
7357c5b6
AM
6402if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6403 lt_unset=unset
6404else
6405 lt_unset=false
6406fi
d7040cdb 6407
d7040cdb 6408
d7040cdb 6409
d7040cdb 6410
d7040cdb 6411
7357c5b6
AM
6412# test EBCDIC or ASCII
6413case `echo X|tr X '\101'` in
6414 A) # ASCII based system
6415 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6416 lt_SP2NL='tr \040 \012'
6417 lt_NL2SP='tr \015\012 \040\040'
6418 ;;
6419 *) # EBCDIC based system
6420 lt_SP2NL='tr \100 \n'
6421 lt_NL2SP='tr \r\n \100\100'
6422 ;;
6423esac
42ecbf5e 6424
d7040cdb
SE
6425
6426
6427
6428
6429
6430
d7040cdb 6431
d7040cdb 6432
81ecdfbb
RW
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6434$as_echo_n "checking for $LD option to reload object files... " >&6; }
6435if test "${lt_cv_ld_reload_flag+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
7357c5b6
AM
6437else
6438 lt_cv_ld_reload_flag='-r'
6439fi
81ecdfbb
RW
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6441$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6442reload_flag=$lt_cv_ld_reload_flag
6443case $reload_flag in
6444"" | " "*) ;;
6445*) reload_flag=" $reload_flag" ;;
6446esac
6447reload_cmds='$LD$reload_flag -o $output$reload_objs'
6448case $host_os in
6449 darwin*)
6450 if test "$GCC" = yes; then
6451 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6452 else
6453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6454 fi
6455 ;;
6456esac
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
d7040cdb 6461
d7040cdb 6462
d7040cdb 6463
d7040cdb 6464
d7040cdb 6465
b214d478
SE
6466if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
b214d478
SE
6473else
6474 if test -n "$OBJDUMP"; then
6475 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6484 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6486 break 2
6487 fi
6488done
81ecdfbb
RW
6489 done
6490IFS=$as_save_IFS
b214d478
SE
6491
6492fi
6493fi
6494OBJDUMP=$ac_cv_prog_OBJDUMP
6495if test -n "$OBJDUMP"; then
81ecdfbb
RW
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6497$as_echo "$OBJDUMP" >&6; }
b214d478 6498else
81ecdfbb
RW
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
b214d478
SE
6501fi
6502
81ecdfbb 6503
b214d478
SE
6504fi
6505if test -z "$ac_cv_prog_OBJDUMP"; then
6506 ac_ct_OBJDUMP=$OBJDUMP
6507 # Extract the first word of "objdump", so it can be a program name with args.
6508set dummy objdump; ac_word=$2
81ecdfbb
RW
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
b214d478
SE
6513else
6514 if test -n "$ac_ct_OBJDUMP"; then
6515 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6524 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6526 break 2
6527 fi
6528done
81ecdfbb
RW
6529 done
6530IFS=$as_save_IFS
b214d478 6531
b214d478
SE
6532fi
6533fi
6534ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6535if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6537$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6538else
81ecdfbb
RW
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
b214d478
SE
6541fi
6542
81ecdfbb
RW
6543 if test "x$ac_ct_OBJDUMP" = x; then
6544 OBJDUMP="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552 OBJDUMP=$ac_ct_OBJDUMP
6553 fi
b214d478
SE
6554else
6555 OBJDUMP="$ac_cv_prog_OBJDUMP"
6556fi
6557
6558test -z "$OBJDUMP" && OBJDUMP=objdump
6559
6560
6561
6562
6563
6564
6565
6566
d7040cdb 6567
81ecdfbb
RW
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6569$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6570if test "${lt_cv_deplibs_check_method+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
ce2cded5 6572else
7357c5b6
AM
6573 lt_cv_file_magic_cmd='$MAGIC_CMD'
6574lt_cv_file_magic_test_file=
6575lt_cv_deplibs_check_method='unknown'
6576# Need to set the preceding variable on all platforms that support
6577# interlibrary dependencies.
6578# 'none' -- dependencies not supported.
6579# `unknown' -- same as none, but documents that we really don't know.
6580# 'pass_all' -- all dependencies passed with no checks.
6581# 'test_compile' -- check by making test program.
6582# 'file_magic [[regex]]' -- check by looking for files in library path
6583# which responds to the $file_magic_cmd with a given extended regex.
6584# If you have `file' or equivalent on your system and you're not sure
6585# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6586
ce2cded5 6587case $host_os in
7357c5b6
AM
6588aix[4-9]*)
6589 lt_cv_deplibs_check_method=pass_all
ce2cded5 6590 ;;
7357c5b6
AM
6591
6592beos*)
6593 lt_cv_deplibs_check_method=pass_all
ce2cded5 6594 ;;
7357c5b6
AM
6595
6596bsdi[45]*)
6597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6598 lt_cv_file_magic_cmd='/usr/bin/file -L'
6599 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6600 ;;
7357c5b6
AM
6601
6602cygwin*)
6603 # func_win32_libid is a shell function defined in ltmain.sh
6604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6605 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6606 ;;
7357c5b6
AM
6607
6608mingw* | pw32*)
6609 # Base MSYS/MinGW do not provide the 'file' command needed by
6610 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6611 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6612 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6613 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6615 lt_cv_file_magic_cmd='func_win32_libid'
6616 else
6617 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6618 lt_cv_file_magic_cmd='$OBJDUMP -f'
6619 fi
ce2cded5 6620 ;;
7357c5b6 6621
3725885a 6622cegcc*)
b214d478
SE
6623 # use the weaker test based on 'objdump'. See mingw*.
6624 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6625 lt_cv_file_magic_cmd='$OBJDUMP -f'
6626 ;;
6627
7357c5b6
AM
6628darwin* | rhapsody*)
6629 lt_cv_deplibs_check_method=pass_all
ce2cded5 6630 ;;
7357c5b6
AM
6631
6632freebsd* | dragonfly*)
6633 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6634 case $host_cpu in
6635 i*86 )
6636 # Not sure whether the presence of OpenBSD here was a mistake.
6637 # Let's accept both of them until this is cleared up.
6638 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6639 lt_cv_file_magic_cmd=/usr/bin/file
6640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6641 ;;
6642 esac
6643 else
6644 lt_cv_deplibs_check_method=pass_all
6645 fi
ce2cded5 6646 ;;
7357c5b6
AM
6647
6648gnu*)
6649 lt_cv_deplibs_check_method=pass_all
ce2cded5 6650 ;;
7357c5b6 6651
3725885a
RW
6652haiku*)
6653 lt_cv_deplibs_check_method=pass_all
6654 ;;
6655
7357c5b6
AM
6656hpux10.20* | hpux11*)
6657 lt_cv_file_magic_cmd=/usr/bin/file
6658 case $host_cpu in
6659 ia64*)
6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6662 ;;
6663 hppa*64*)
3725885a 6664 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
6665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6666 ;;
6667 *)
3725885a 6668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6670 ;;
6671 esac
ce2cded5 6672 ;;
d7040cdb 6673
7357c5b6
AM
6674interix[3-9]*)
6675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6677 ;;
d7040cdb 6678
7357c5b6
AM
6679irix5* | irix6* | nonstopux*)
6680 case $LD in
6681 *-32|*"-32 ") libmagic=32-bit;;
6682 *-n32|*"-n32 ") libmagic=N32;;
6683 *-64|*"-64 ") libmagic=64-bit;;
6684 *) libmagic=never-match;;
6685 esac
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
d7040cdb 6688
7357c5b6 6689# This must be Linux ELF.
58e24671 6690linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
d7040cdb 6693
7357c5b6
AM
6694netbsd*)
6695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6697 else
6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6699 fi
ce2cded5 6700 ;;
d7040cdb 6701
7357c5b6
AM
6702newos6*)
6703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6706 ;;
d7040cdb 6707
7357c5b6
AM
6708*nto* | *qnx*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
d7040cdb 6711
7357c5b6
AM
6712openbsd*)
6713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6715 else
7357c5b6 6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6717 fi
7357c5b6 6718 ;;
d7040cdb 6719
7357c5b6
AM
6720osf3* | osf4* | osf5*)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
d7040cdb 6723
7357c5b6
AM
6724rdos*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
d7040cdb 6727
7357c5b6
AM
6728solaris*)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
d7040cdb 6731
7357c5b6
AM
6732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
d7040cdb 6735
7357c5b6
AM
6736sysv4 | sysv4.3*)
6737 case $host_vendor in
6738 motorola)
6739 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]'
6740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6741 ;;
6742 ncr)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745 sequent)
6746 lt_cv_file_magic_cmd='/bin/file'
6747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6748 ;;
6749 sni)
6750 lt_cv_file_magic_cmd='/bin/file'
6751 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6752 lt_cv_file_magic_test_file=/lib/libc.so
6753 ;;
6754 siemens)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757 pc)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 esac
6761 ;;
d7040cdb 6762
7357c5b6
AM
6763tpf*)
6764 lt_cv_deplibs_check_method=pass_all
6765 ;;
6766esac
d7040cdb 6767
7357c5b6 6768fi
81ecdfbb
RW
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6770$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6771file_magic_cmd=$lt_cv_file_magic_cmd
6772deplibs_check_method=$lt_cv_deplibs_check_method
6773test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6774
6775
6776
7357c5b6
AM
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if test "${ac_cv_prog_AR+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
7357c5b6
AM
6793else
6794 if test -n "$AR"; then
6795 ac_cv_prog_AR="$AR" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6804 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6806 break 2
ce2cded5
L
6807 fi
6808done
81ecdfbb
RW
6809 done
6810IFS=$as_save_IFS
d7040cdb 6811
42ecbf5e 6812fi
ce2cded5 6813fi
7357c5b6
AM
6814AR=$ac_cv_prog_AR
6815if test -n "$AR"; then
81ecdfbb
RW
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6817$as_echo "$AR" >&6; }
42ecbf5e 6818else
81ecdfbb
RW
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
42ecbf5e
DJ
6821fi
6822
81ecdfbb 6823
7357c5b6
AM
6824fi
6825if test -z "$ac_cv_prog_AR"; then
6826 ac_ct_AR=$AR
6827 # Extract the first word of "ar", so it can be a program name with args.
6828set dummy ar; ac_word=$2
81ecdfbb
RW
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
7357c5b6
AM
6833else
6834 if test -n "$ac_ct_AR"; then
6835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6844 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6846 break 2
6847 fi
6848done
81ecdfbb
RW
6849 done
6850IFS=$as_save_IFS
42ecbf5e 6851
7357c5b6
AM
6852fi
6853fi
6854ac_ct_AR=$ac_cv_prog_ac_ct_AR
6855if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6857$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6858else
81ecdfbb
RW
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
7357c5b6 6861fi
d7040cdb 6862
81ecdfbb
RW
6863 if test "x$ac_ct_AR" = x; then
6864 AR="false"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870ac_tool_warned=yes ;;
6871esac
6872 AR=$ac_ct_AR
6873 fi
7357c5b6
AM
6874else
6875 AR="$ac_cv_prog_AR"
6876fi
d7040cdb 6877
7357c5b6
AM
6878test -z "$AR" && AR=ar
6879test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6880
6881
6882
20e95c23 6883
d7040cdb 6884
d7040cdb
SE
6885
6886
6887
6888
6889
6890
7357c5b6
AM
6891if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6893set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
6896if test "${ac_cv_prog_STRIP+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
7357c5b6
AM
6898else
6899 if test -n "$STRIP"; then
6900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6911 break 2
ce2cded5 6912 fi
7357c5b6 6913done
81ecdfbb
RW
6914 done
6915IFS=$as_save_IFS
d7040cdb 6916
7357c5b6
AM
6917fi
6918fi
6919STRIP=$ac_cv_prog_STRIP
6920if test -n "$STRIP"; then
81ecdfbb
RW
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6922$as_echo "$STRIP" >&6; }
7357c5b6 6923else
81ecdfbb
RW
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925$as_echo "no" >&6; }
7357c5b6
AM
6926fi
6927
81ecdfbb 6928
7357c5b6
AM
6929fi
6930if test -z "$ac_cv_prog_STRIP"; then
6931 ac_ct_STRIP=$STRIP
6932 # Extract the first word of "strip", so it can be a program name with args.
6933set dummy strip; ac_word=$2
81ecdfbb
RW
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
7357c5b6
AM
6938else
6939 if test -n "$ac_ct_STRIP"; then
6940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6949 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6951 break 2
ce2cded5 6952 fi
7357c5b6 6953done
81ecdfbb
RW
6954 done
6955IFS=$as_save_IFS
d7040cdb 6956
7357c5b6
AM
6957fi
6958fi
6959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6960if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6962$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6963else
81ecdfbb
RW
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
7357c5b6 6966fi
d7040cdb 6967
81ecdfbb
RW
6968 if test "x$ac_ct_STRIP" = x; then
6969 STRIP=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972yes:)
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975ac_tool_warned=yes ;;
6976esac
6977 STRIP=$ac_ct_STRIP
6978 fi
7357c5b6
AM
6979else
6980 STRIP="$ac_cv_prog_STRIP"
6981fi
d7040cdb 6982
7357c5b6 6983test -z "$STRIP" && STRIP=:
d7040cdb 6984
d7040cdb
SE
6985
6986
6987
d7040cdb 6988
7357c5b6
AM
6989
6990if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6992set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994$as_echo_n "checking for $ac_word... " >&6; }
6995if test "${ac_cv_prog_RANLIB+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
ce2cded5 6997else
7357c5b6
AM
6998 if test -n "$RANLIB"; then
6999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
ce2cded5 7003do
7357c5b6
AM
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7008 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7010 break 2
ce2cded5 7011 fi
7357c5b6 7012done
81ecdfbb
RW
7013 done
7014IFS=$as_save_IFS
7357c5b6 7015
ce2cded5 7016fi
7357c5b6
AM
7017fi
7018RANLIB=$ac_cv_prog_RANLIB
7019if test -n "$RANLIB"; then
81ecdfbb
RW
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7021$as_echo "$RANLIB" >&6; }
ce2cded5 7022else
81ecdfbb
RW
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
ce2cded5 7025fi
d7040cdb 7026
81ecdfbb 7027
7357c5b6
AM
7028fi
7029if test -z "$ac_cv_prog_RANLIB"; then
7030 ac_ct_RANLIB=$RANLIB
7031 # Extract the first word of "ranlib", so it can be a program name with args.
7032set dummy ranlib; ac_word=$2
81ecdfbb
RW
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034$as_echo_n "checking for $ac_word... " >&6; }
7035if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
ce2cded5 7037else
7357c5b6
AM
7038 if test -n "$ac_ct_RANLIB"; then
7039 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7048 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7050 break 2
7051 fi
7052done
81ecdfbb
RW
7053 done
7054IFS=$as_save_IFS
7357c5b6 7055
ce2cded5 7056fi
7357c5b6
AM
7057fi
7058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7059if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7061$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7062else
81ecdfbb
RW
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064$as_echo "no" >&6; }
ce2cded5 7065fi
d7040cdb 7066
81ecdfbb
RW
7067 if test "x$ac_ct_RANLIB" = x; then
7068 RANLIB=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071yes:)
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074ac_tool_warned=yes ;;
7075esac
7076 RANLIB=$ac_ct_RANLIB
7077 fi
7357c5b6
AM
7078else
7079 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7080fi
d7040cdb 7081
7357c5b6 7082test -z "$RANLIB" && RANLIB=:
d7040cdb 7083
7357c5b6
AM
7084
7085
7086
7087
7088
7089# Determine commands to create old-style static archives.
b214d478 7090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7091old_postinstall_cmds='chmod 644 $oldlib'
7092old_postuninstall_cmds=
7093
7094if test -n "$RANLIB"; then
7095 case $host_os in
7096 openbsd*)
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7098 ;;
7099 *)
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7101 ;;
7102 esac
7103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7104fi
7357c5b6 7105
3725885a
RW
7106case $host_os in
7107 darwin*)
7108 lock_old_archive_extraction=yes ;;
7109 *)
7110 lock_old_archive_extraction=no ;;
7111esac
7112
7113
7114
7115
7116
7117
7357c5b6
AM
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151# If no C compiler was specified, use CC.
7152LTCC=${LTCC-"$CC"}
7153
7154# If no C compiler flags were specified, use CFLAGS.
7155LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7156
7157# Allow CC to be a program name with arguments.
7158compiler=$CC
7159
7160
7161# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7163$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7164if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
ce2cded5 7166else
d7040cdb 7167
7357c5b6
AM
7168# These are sane defaults that work on at least a few old systems.
7169# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7170
7357c5b6
AM
7171# Character class describing NM global symbol codes.
7172symcode='[BCDEGRST]'
7173
7174# Regexp to match symbols that can be accessed directly from C.
7175sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7176
7177# Define system-specific variables.
7178case $host_os in
7179aix*)
7180 symcode='[BCDT]'
7181 ;;
b214d478 7182cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7183 symcode='[ABCDGISTW]'
7184 ;;
7185hpux*)
7186 if test "$host_cpu" = ia64; then
7187 symcode='[ABCDEGRST]'
ce2cded5 7188 fi
7357c5b6
AM
7189 ;;
7190irix* | nonstopux*)
7191 symcode='[BCDEGRST]'
7192 ;;
7193osf*)
7194 symcode='[BCDEGQRST]'
7195 ;;
7196solaris*)
7197 symcode='[BDRT]'
7198 ;;
7199sco3.2v5*)
7200 symcode='[DT]'
7201 ;;
7202sysv4.2uw2*)
7203 symcode='[DT]'
7204 ;;
7205sysv5* | sco5v6* | unixware* | OpenUNIX*)
7206 symcode='[ABDT]'
7207 ;;
7208sysv4)
7209 symcode='[DFNSTU]'
7210 ;;
7211esac
d7040cdb 7212
7357c5b6
AM
7213# If we're using GNU nm, then use its standard symbol codes.
7214case `$NM -V 2>&1` in
7215*GNU* | *'with BFD'*)
7216 symcode='[ABCDGIRSTW]' ;;
7217esac
d7040cdb 7218
7357c5b6
AM
7219# Transform an extracted symbol line into a proper C declaration.
7220# Some systems (esp. on ia64) link data and code symbols differently,
7221# so use this general approach.
7222lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7223
7224# Transform an extracted symbol line into symbol name and symbol address
7225lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7226lt_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
7227
7228# Handle CRLF in mingw tool chain
7229opt_cr=
7230case $build_os in
7231mingw*)
7232 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7233 ;;
7234esac
d7040cdb 7235
7357c5b6
AM
7236# Try without a prefix underscore, then with it.
7237for ac_symprfx in "" "_"; do
d7040cdb 7238
7357c5b6
AM
7239 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7240 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7241
7357c5b6
AM
7242 # Write the raw and C identifiers.
7243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7244 # Fake it for dumpbin and say T for any non-static function
7245 # and D for any global variable.
7246 # Also find C++ and __fastcall symbols from MSVC++,
7247 # which start with @ or ?.
7248 lt_cv_sys_global_symbol_pipe="$AWK '"\
7249" {last_section=section; section=\$ 3};"\
7250" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7251" \$ 0!~/External *\|/{next};"\
7252" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7253" {if(hide[section]) next};"\
7254" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7255" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7256" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7257" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7258" ' prfx=^$ac_symprfx"
7259 else
7260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7261 fi
d7040cdb 7262
7357c5b6
AM
7263 # Check to see that the pipe works correctly.
7264 pipe_works=no
d7040cdb 7265
7357c5b6
AM
7266 rm -f conftest*
7267 cat > conftest.$ac_ext <<_LT_EOF
7268#ifdef __cplusplus
7269extern "C" {
7270#endif
7271char nm_test_var;
7272void nm_test_func(void);
7273void nm_test_func(void){}
7274#ifdef __cplusplus
20e95c23 7275}
7357c5b6
AM
7276#endif
7277int main(){nm_test_var='a';nm_test_func();return(0);}
7278_LT_EOF
7279
81ecdfbb 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7281 (eval $ac_compile) 2>&5
20e95c23 7282 ac_status=$?
81ecdfbb
RW
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }; then
7357c5b6
AM
7285 # Now try to grab the symbols.
7286 nlist=conftest.nm
3725885a
RW
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7288 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7289 ac_status=$?
81ecdfbb
RW
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7292 # Try sorting and uniquifying the output.
7293 if sort "$nlist" | uniq > "$nlist"T; then
7294 mv -f "$nlist"T "$nlist"
7295 else
7296 rm -f "$nlist"T
7297 fi
d7040cdb 7298
7357c5b6
AM
7299 # Make sure that we snagged all the symbols we need.
7300 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7301 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7302 cat <<_LT_EOF > conftest.$ac_ext
7303#ifdef __cplusplus
7304extern "C" {
7305#endif
ce2cded5 7306
7357c5b6
AM
7307_LT_EOF
7308 # Now generate the symbol file.
7309 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7310
7357c5b6 7311 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7312
7357c5b6
AM
7313/* The mapping between symbol names and symbols. */
7314const struct {
7315 const char *name;
7316 void *address;
7317}
7318lt__PROGRAM__LTX_preloaded_symbols[] =
7319{
7320 { "@PROGRAM@", (void *) 0 },
7321_LT_EOF
7322 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7323 cat <<\_LT_EOF >> conftest.$ac_ext
7324 {0, (void *) 0}
7325};
d7040cdb 7326
7357c5b6
AM
7327/* This works around a problem in FreeBSD linker */
7328#ifdef FREEBSD_WORKAROUND
7329static const void *lt_preloaded_setup() {
7330 return lt__PROGRAM__LTX_preloaded_symbols;
7331}
ce2cded5 7332#endif
42ecbf5e 7333
7357c5b6 7334#ifdef __cplusplus
ce2cded5 7335}
7357c5b6
AM
7336#endif
7337_LT_EOF
7338 # Now try linking the two files.
7339 mv conftest.$ac_objext conftstm.$ac_objext
7340 lt_save_LIBS="$LIBS"
7341 lt_save_CFLAGS="$CFLAGS"
7342 LIBS="conftstm.$ac_objext"
7343 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
81ecdfbb
RW
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7349 pipe_works=yes
7350 fi
7351 LIBS="$lt_save_LIBS"
7352 CFLAGS="$lt_save_CFLAGS"
7353 else
7354 echo "cannot find nm_test_func in $nlist" >&5
7355 fi
7356 else
7357 echo "cannot find nm_test_var in $nlist" >&5
7358 fi
7359 else
7360 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7361 fi
7362 else
7363 echo "$progname: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7365 fi
b214d478 7366 rm -rf conftest* conftst*
7357c5b6
AM
7367
7368 # Do not use the global_symbol_pipe unless it works.
7369 if test "$pipe_works" = yes; then
7370 break
7371 else
7372 lt_cv_sys_global_symbol_pipe=
7373 fi
7374done
42ecbf5e 7375
ce2cded5 7376fi
7357c5b6
AM
7377
7378if test -z "$lt_cv_sys_global_symbol_pipe"; then
7379 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7380fi
7357c5b6 7381if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7383$as_echo "failed" >&6; }
7357c5b6 7384else
81ecdfbb
RW
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7386$as_echo "ok" >&6; }
ce2cded5 7387fi
e5a52504 7388
d7040cdb 7389
e5a52504 7390
d7040cdb 7391
d7040cdb 7392
d7040cdb 7393
d7040cdb 7394
d7040cdb 7395
d7040cdb 7396
d7040cdb 7397
d7040cdb 7398
d7040cdb 7399
7357c5b6
AM
7400
7401
7402
b214d478
SE
7403
7404
7405
7406
7407
7357c5b6
AM
7408
7409
81ecdfbb
RW
7410# Check whether --enable-libtool-lock was given.
7411if test "${enable_libtool_lock+set}" = set; then :
7412 enableval=$enable_libtool_lock;
7413fi
7357c5b6 7414
7357c5b6
AM
7415test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7416
7417# Some flags need to be propagated to the compiler or linker for good
7418# libtool support.
7419case $host in
7420ia64-*-hpux*)
7421 # Find out which ABI we are using.
7422 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
81ecdfbb
RW
7426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7427 test $ac_status = 0; }; then
7357c5b6
AM
7428 case `/usr/bin/file conftest.$ac_objext` in
7429 *ELF-32*)
7430 HPUX_IA64_MODE="32"
7431 ;;
7432 *ELF-64*)
7433 HPUX_IA64_MODE="64"
7434 ;;
7435 esac
7436 fi
7437 rm -rf conftest*
7438 ;;
7439*-*-irix6*)
7440 # Find out which ABI we are using.
3725885a 7441 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
81ecdfbb
RW
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7357c5b6
AM
7447 if test "$lt_cv_prog_gnu_ld" = yes; then
7448 case `/usr/bin/file conftest.$ac_objext` in
7449 *32-bit*)
7450 LD="${LD-ld} -melf32bsmip"
7451 ;;
7452 *N32*)
7453 LD="${LD-ld} -melf32bmipn32"
7454 ;;
7455 *64-bit*)
7456 LD="${LD-ld} -melf64bmip"
7457 ;;
7458 esac
7459 else
7460 case `/usr/bin/file conftest.$ac_objext` in
7461 *32-bit*)
7462 LD="${LD-ld} -32"
7463 ;;
7464 *N32*)
7465 LD="${LD-ld} -n32"
7466 ;;
7467 *64-bit*)
7468 LD="${LD-ld} -64"
7469 ;;
7470 esac
7471 fi
7472 fi
7473 rm -rf conftest*
7474 ;;
7475
cc9afea3 7476x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7477s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7478 # Find out which ABI we are using.
7479 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7481 (eval $ac_compile) 2>&5
7482 ac_status=$?
81ecdfbb
RW
7483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7484 test $ac_status = 0; }; then
7357c5b6
AM
7485 case `/usr/bin/file conftest.o` in
7486 *32-bit*)
7487 case $host in
7488 x86_64-*kfreebsd*-gnu)
7489 LD="${LD-ld} -m elf_i386_fbsd"
7490 ;;
7491 x86_64-*linux*)
6d2920c8
L
7492 case `/usr/bin/file conftest.o` in
7493 *x86-64*)
7494 LD="${LD-ld} -m elf32_x86_64"
7495 ;;
7496 *)
7497 LD="${LD-ld} -m elf_i386"
7498 ;;
7499 esac
7357c5b6 7500 ;;
cc9afea3
AM
7501 powerpc64le-*linux*)
7502 LD="${LD-ld} -m elf32lppclinux"
7503 ;;
7504 powerpc64-*linux*)
7357c5b6
AM
7505 LD="${LD-ld} -m elf32ppclinux"
7506 ;;
7507 s390x-*linux*)
7508 LD="${LD-ld} -m elf_s390"
7509 ;;
7510 sparc64-*linux*)
7511 LD="${LD-ld} -m elf32_sparc"
7512 ;;
7513 esac
7514 ;;
7515 *64-bit*)
7516 case $host in
7517 x86_64-*kfreebsd*-gnu)
7518 LD="${LD-ld} -m elf_x86_64_fbsd"
7519 ;;
7520 x86_64-*linux*)
7521 LD="${LD-ld} -m elf_x86_64"
7522 ;;
cc9afea3
AM
7523 powerpcle-*linux*)
7524 LD="${LD-ld} -m elf64lppc"
7525 ;;
7526 powerpc-*linux*)
7357c5b6
AM
7527 LD="${LD-ld} -m elf64ppc"
7528 ;;
7529 s390*-*linux*|s390*-*tpf*)
7530 LD="${LD-ld} -m elf64_s390"
7531 ;;
7532 sparc*-*linux*)
7533 LD="${LD-ld} -m elf64_sparc"
7534 ;;
7535 esac
7536 ;;
7537 esac
7538 fi
7539 rm -rf conftest*
7540 ;;
7541
7542*-*-sco3.2v5*)
7543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7544 SAVE_CFLAGS="$CFLAGS"
7545 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7547$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7548if test "${lt_cv_cc_needs_belf+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
ce2cded5 7550else
7357c5b6
AM
7551 ac_ext=c
7552ac_cpp='$CPP $CPPFLAGS'
7553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
81ecdfbb 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7558/* end confdefs.h. */
d7040cdb 7559
7357c5b6
AM
7560int
7561main ()
7562{
7563
7564 ;
7565 return 0;
7566}
ce2cded5 7567_ACEOF
81ecdfbb 7568if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7569 lt_cv_cc_needs_belf=yes
ce2cded5 7570else
81ecdfbb 7571 lt_cv_cc_needs_belf=no
ce2cded5 7572fi
81ecdfbb
RW
7573rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7575 ac_ext=c
7576ac_cpp='$CPP $CPPFLAGS'
7577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7580
b214d478 7581fi
81ecdfbb
RW
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7583$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7586 CFLAGS="$SAVE_CFLAGS"
7587 fi
7588 ;;
7589sparc*-*solaris*)
7590 # Find out which ABI we are using.
7591 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7593 (eval $ac_compile) 2>&5
7594 ac_status=$?
81ecdfbb
RW
7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; then
b214d478
SE
7597 case `/usr/bin/file conftest.o` in
7598 *64-bit*)
7599 case $lt_cv_prog_gnu_ld in
7600 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7601 *)
7602 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7603 LD="${LD-ld} -64"
7604 fi
7605 ;;
7606 esac
7607 ;;
7608 esac
7609 fi
7610 rm -rf conftest*
7611 ;;
7612esac
7613
7614need_locks="$enable_libtool_lock"
7615
7616
7617 case $host_os in
7618 rhapsody* | darwin*)
7619 if test -n "$ac_tool_prefix"; then
7620 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7621set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
7624if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
b214d478
SE
7626else
7627 if test -n "$DSYMUTIL"; then
7628 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7629else
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7637 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7639 break 2
7640 fi
7641done
81ecdfbb
RW
7642 done
7643IFS=$as_save_IFS
b214d478
SE
7644
7645fi
7646fi
7647DSYMUTIL=$ac_cv_prog_DSYMUTIL
7648if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7650$as_echo "$DSYMUTIL" >&6; }
b214d478 7651else
81ecdfbb
RW
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
b214d478
SE
7654fi
7655
81ecdfbb 7656
b214d478
SE
7657fi
7658if test -z "$ac_cv_prog_DSYMUTIL"; then
7659 ac_ct_DSYMUTIL=$DSYMUTIL
7660 # Extract the first word of "dsymutil", so it can be a program name with args.
7661set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663$as_echo_n "checking for $ac_word... " >&6; }
7664if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
b214d478
SE
7666else
7667 if test -n "$ac_ct_DSYMUTIL"; then
7668 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7669else
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7677 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7679 break 2
7680 fi
7681done
81ecdfbb
RW
7682 done
7683IFS=$as_save_IFS
b214d478 7684
b214d478
SE
7685fi
7686fi
7687ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7688if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7690$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7691else
81ecdfbb
RW
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693$as_echo "no" >&6; }
b214d478
SE
7694fi
7695
81ecdfbb
RW
7696 if test "x$ac_ct_DSYMUTIL" = x; then
7697 DSYMUTIL=":"
7698 else
7699 case $cross_compiling:$ac_tool_warned in
7700yes:)
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7703ac_tool_warned=yes ;;
7704esac
7705 DSYMUTIL=$ac_ct_DSYMUTIL
7706 fi
b214d478
SE
7707else
7708 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7709fi
7710
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7713set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
7716if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
b214d478
SE
7718else
7719 if test -n "$NMEDIT"; then
7720 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7729 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7731 break 2
7732 fi
7733done
81ecdfbb
RW
7734 done
7735IFS=$as_save_IFS
b214d478
SE
7736
7737fi
7738fi
7739NMEDIT=$ac_cv_prog_NMEDIT
7740if test -n "$NMEDIT"; then
81ecdfbb
RW
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7742$as_echo "$NMEDIT" >&6; }
b214d478 7743else
81ecdfbb
RW
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
b214d478
SE
7746fi
7747
81ecdfbb 7748
b214d478
SE
7749fi
7750if test -z "$ac_cv_prog_NMEDIT"; then
7751 ac_ct_NMEDIT=$NMEDIT
7752 # Extract the first word of "nmedit", so it can be a program name with args.
7753set dummy nmedit; ac_word=$2
81ecdfbb
RW
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755$as_echo_n "checking for $ac_word... " >&6; }
7756if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
b214d478
SE
7758else
7759 if test -n "$ac_ct_NMEDIT"; then
7760 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7769 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7771 break 2
7772 fi
7773done
81ecdfbb
RW
7774 done
7775IFS=$as_save_IFS
b214d478 7776
b214d478
SE
7777fi
7778fi
7779ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7780if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7782$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7783else
81ecdfbb
RW
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785$as_echo "no" >&6; }
b214d478
SE
7786fi
7787
81ecdfbb
RW
7788 if test "x$ac_ct_NMEDIT" = x; then
7789 NMEDIT=":"
7790 else
7791 case $cross_compiling:$ac_tool_warned in
7792yes:)
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795ac_tool_warned=yes ;;
7796esac
7797 NMEDIT=$ac_ct_NMEDIT
7798 fi
b214d478
SE
7799else
7800 NMEDIT="$ac_cv_prog_NMEDIT"
7801fi
7802
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7805set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if test "${ac_cv_prog_LIPO+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
b214d478
SE
7810else
7811 if test -n "$LIPO"; then
7812 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7821 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7823 break 2
7824 fi
7825done
81ecdfbb
RW
7826 done
7827IFS=$as_save_IFS
b214d478
SE
7828
7829fi
7830fi
7831LIPO=$ac_cv_prog_LIPO
7832if test -n "$LIPO"; then
81ecdfbb
RW
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7834$as_echo "$LIPO" >&6; }
b214d478 7835else
81ecdfbb
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
b214d478
SE
7838fi
7839
81ecdfbb 7840
b214d478
SE
7841fi
7842if test -z "$ac_cv_prog_LIPO"; then
7843 ac_ct_LIPO=$LIPO
7844 # Extract the first word of "lipo", so it can be a program name with args.
7845set dummy lipo; ac_word=$2
81ecdfbb
RW
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847$as_echo_n "checking for $ac_word... " >&6; }
7848if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
b214d478
SE
7850else
7851 if test -n "$ac_ct_LIPO"; then
7852 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7861 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7863 break 2
7864 fi
7865done
81ecdfbb
RW
7866 done
7867IFS=$as_save_IFS
b214d478 7868
b214d478
SE
7869fi
7870fi
7871ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7872if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7874$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7875else
81ecdfbb
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
b214d478
SE
7878fi
7879
81ecdfbb
RW
7880 if test "x$ac_ct_LIPO" = x; then
7881 LIPO=":"
7882 else
7883 case $cross_compiling:$ac_tool_warned in
7884yes:)
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887ac_tool_warned=yes ;;
7888esac
7889 LIPO=$ac_ct_LIPO
7890 fi
b214d478
SE
7891else
7892 LIPO="$ac_cv_prog_LIPO"
7893fi
7894
7895 if test -n "$ac_tool_prefix"; then
7896 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7897set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
7900if test "${ac_cv_prog_OTOOL+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
b214d478
SE
7902else
7903 if test -n "$OTOOL"; then
7904 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7913 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7915 break 2
7916 fi
7917done
81ecdfbb
RW
7918 done
7919IFS=$as_save_IFS
b214d478
SE
7920
7921fi
7922fi
7923OTOOL=$ac_cv_prog_OTOOL
7924if test -n "$OTOOL"; then
81ecdfbb
RW
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7926$as_echo "$OTOOL" >&6; }
b214d478 7927else
81ecdfbb
RW
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
b214d478
SE
7930fi
7931
81ecdfbb 7932
b214d478
SE
7933fi
7934if test -z "$ac_cv_prog_OTOOL"; then
7935 ac_ct_OTOOL=$OTOOL
7936 # Extract the first word of "otool", so it can be a program name with args.
7937set dummy otool; ac_word=$2
81ecdfbb
RW
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
b214d478
SE
7942else
7943 if test -n "$ac_ct_OTOOL"; then
7944 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7953 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7955 break 2
7956 fi
7957done
81ecdfbb
RW
7958 done
7959IFS=$as_save_IFS
b214d478 7960
b214d478
SE
7961fi
7962fi
7963ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7964if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7966$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7967else
81ecdfbb
RW
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
b214d478
SE
7970fi
7971
81ecdfbb
RW
7972 if test "x$ac_ct_OTOOL" = x; then
7973 OTOOL=":"
7974 else
7975 case $cross_compiling:$ac_tool_warned in
7976yes:)
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979ac_tool_warned=yes ;;
7980esac
7981 OTOOL=$ac_ct_OTOOL
7982 fi
b214d478
SE
7983else
7984 OTOOL="$ac_cv_prog_OTOOL"
7985fi
7986
7987 if test -n "$ac_tool_prefix"; then
7988 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7989set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
b214d478
SE
7994else
7995 if test -n "$OTOOL64"; then
7996 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8005 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8007 break 2
8008 fi
8009done
81ecdfbb
RW
8010 done
8011IFS=$as_save_IFS
b214d478
SE
8012
8013fi
8014fi
8015OTOOL64=$ac_cv_prog_OTOOL64
8016if test -n "$OTOOL64"; then
81ecdfbb
RW
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8018$as_echo "$OTOOL64" >&6; }
b214d478 8019else
81ecdfbb
RW
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
b214d478
SE
8022fi
8023
81ecdfbb 8024
b214d478
SE
8025fi
8026if test -z "$ac_cv_prog_OTOOL64"; then
8027 ac_ct_OTOOL64=$OTOOL64
8028 # Extract the first word of "otool64", so it can be a program name with args.
8029set dummy otool64; ac_word=$2
81ecdfbb
RW
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
b214d478
SE
8034else
8035 if test -n "$ac_ct_OTOOL64"; then
8036 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8045 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8047 break 2
8048 fi
8049done
81ecdfbb
RW
8050 done
8051IFS=$as_save_IFS
b214d478 8052
b214d478
SE
8053fi
8054fi
8055ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8056if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8058$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8059else
81ecdfbb
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
b214d478
SE
8062fi
8063
81ecdfbb
RW
8064 if test "x$ac_ct_OTOOL64" = x; then
8065 OTOOL64=":"
8066 else
8067 case $cross_compiling:$ac_tool_warned in
8068yes:)
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071ac_tool_warned=yes ;;
8072esac
8073 OTOOL64=$ac_ct_OTOOL64
8074 fi
b214d478
SE
8075else
8076 OTOOL64="$ac_cv_prog_OTOOL64"
8077fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
81ecdfbb
RW
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8106$as_echo_n "checking for -single_module linker flag... " >&6; }
8107if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
b214d478
SE
8109else
8110 lt_cv_apple_cc_single_mod=no
8111 if test -z "${LT_MULTI_MODULE}"; then
8112 # By default we will add the -single_module flag. You can override
8113 # by either setting the environment variable LT_MULTI_MODULE
8114 # non-empty at configure time, or by adding -multi_module to the
8115 # link flags.
8116 rm -rf libconftest.dylib*
8117 echo "int foo(void){return 1;}" > conftest.c
8118 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8119-dynamiclib -Wl,-single_module conftest.c" >&5
8120 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8121 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8122 _lt_result=$?
8123 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8124 lt_cv_apple_cc_single_mod=yes
8125 else
8126 cat conftest.err >&5
8127 fi
8128 rm -rf libconftest.dylib*
8129 rm -f conftest.*
8130 fi
8131fi
81ecdfbb
RW
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8133$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8135$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8136if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
b214d478
SE
8138else
8139 lt_cv_ld_exported_symbols_list=no
8140 save_LDFLAGS=$LDFLAGS
8141 echo "_main" > conftest.sym
8142 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8144/* end confdefs.h. */
8145
8146int
8147main ()
8148{
8149
8150 ;
8151 return 0;
8152}
8153_ACEOF
81ecdfbb 8154if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8155 lt_cv_ld_exported_symbols_list=yes
8156else
81ecdfbb 8157 lt_cv_ld_exported_symbols_list=no
b214d478 8158fi
81ecdfbb
RW
8159rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8161 LDFLAGS="$save_LDFLAGS"
8162
8163fi
81ecdfbb
RW
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8165$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8167$as_echo_n "checking for -force_load linker flag... " >&6; }
8168if test "${lt_cv_ld_force_load+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8170else
8171 lt_cv_ld_force_load=no
8172 cat > conftest.c << _LT_EOF
8173int forced_loaded() { return 2;}
8174_LT_EOF
8175 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8176 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8177 echo "$AR cru libconftest.a conftest.o" >&5
8178 $AR cru libconftest.a conftest.o 2>&5
8179 cat > conftest.c << _LT_EOF
8180int main() { return 0;}
8181_LT_EOF
8182 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8183 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8184 _lt_result=$?
8185 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8186 lt_cv_ld_force_load=yes
8187 else
8188 cat conftest.err >&5
8189 fi
8190 rm -f conftest.err libconftest.a conftest conftest.c
8191 rm -rf conftest.dSYM
8192
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8195$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8196 case $host_os in
8197 rhapsody* | darwin1.[012])
8198 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8199 darwin1.*)
8200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8201 darwin*) # darwin 5.x on
8202 # if running on 10.5 or later, the deployment target defaults
8203 # to the OS version, if on x86, and 10.4, the deployment
8204 # target defaults to 10.4. Don't you love it?
8205 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8206 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8208 10.[012][,.]*)
b214d478
SE
8209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8210 10.*)
8211 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8212 esac
8213 ;;
8214 esac
8215 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8216 _lt_dar_single_mod='$single_module'
8217 fi
8218 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8219 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8220 else
8221 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8222 fi
3725885a 8223 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8224 _lt_dsymutil='~$DSYMUTIL $lib || :'
8225 else
8226 _lt_dsymutil=
8227 fi
8228 ;;
8229 esac
8230
b214d478 8231for ac_header in dlfcn.h
81ecdfbb
RW
8232do :
8233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8234"
8235if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8236 cat >>confdefs.h <<_ACEOF
81ecdfbb 8237#define HAVE_DLFCN_H 1
b214d478
SE
8238_ACEOF
8239
8240fi
8241
8242done
8243
8244
8245
3725885a
RW
8246
8247
3cb62297 8248
b214d478
SE
8249# Set options
8250
8251
8252
8253 enable_dlopen=no
8254
8255
8256 enable_win32_dll=no
8257
8258
81ecdfbb
RW
8259 # Check whether --enable-shared was given.
8260if test "${enable_shared+set}" = set; then :
8261 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8262 case $enableval in
8263 yes) enable_shared=yes ;;
8264 no) enable_shared=no ;;
8265 *)
8266 enable_shared=no
8267 # Look at the argument we got. We use all the common list separators.
8268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8269 for pkg in $enableval; do
8270 IFS="$lt_save_ifs"
8271 if test "X$pkg" = "X$p"; then
8272 enable_shared=yes
8273 fi
8274 done
8275 IFS="$lt_save_ifs"
8276 ;;
8277 esac
8278else
8279 enable_shared=yes
81ecdfbb 8280fi
b214d478
SE
8281
8282
8283
8284
8285
8286
8287
8288
81ecdfbb
RW
8289
8290 # Check whether --enable-static was given.
8291if test "${enable_static+set}" = set; then :
8292 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8293 case $enableval in
8294 yes) enable_static=yes ;;
8295 no) enable_static=no ;;
8296 *)
8297 enable_static=no
8298 # Look at the argument we got. We use all the common list separators.
8299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 for pkg in $enableval; do
8301 IFS="$lt_save_ifs"
8302 if test "X$pkg" = "X$p"; then
8303 enable_static=yes
8304 fi
8305 done
8306 IFS="$lt_save_ifs"
8307 ;;
8308 esac
8309else
8310 enable_static=yes
81ecdfbb 8311fi
b214d478
SE
8312
8313
8314
8315
8316
8317
8318
8319
8320
81ecdfbb
RW
8321
8322# Check whether --with-pic was given.
8323if test "${with_pic+set}" = set; then :
8324 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8325else
8326 pic_mode=default
81ecdfbb
RW
8327fi
8328
b214d478
SE
8329
8330test -z "$pic_mode" && pic_mode=default
8331
8332
8333
8334
8335
8336
8337
81ecdfbb
RW
8338 # Check whether --enable-fast-install was given.
8339if test "${enable_fast_install+set}" = set; then :
8340 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8341 case $enableval in
8342 yes) enable_fast_install=yes ;;
8343 no) enable_fast_install=no ;;
8344 *)
8345 enable_fast_install=no
8346 # Look at the argument we got. We use all the common list separators.
8347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8348 for pkg in $enableval; do
8349 IFS="$lt_save_ifs"
8350 if test "X$pkg" = "X$p"; then
8351 enable_fast_install=yes
8352 fi
8353 done
8354 IFS="$lt_save_ifs"
7357c5b6
AM
8355 ;;
8356 esac
b214d478
SE
8357else
8358 enable_fast_install=yes
81ecdfbb
RW
8359fi
8360
ce2cded5 8361
ce2cded5
L
8362
8363
ce2cded5 8364
42ecbf5e 8365
d7040cdb 8366
d7040cdb 8367
d7040cdb 8368
d7040cdb 8369
d7040cdb 8370
ce2cded5
L
8371# This can be used to rebuild libtool when needed
8372LIBTOOL_DEPS="$ltmain"
d7040cdb 8373
ce2cded5
L
8374# Always use our own libtool.
8375LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8376
d7040cdb 8377
d7040cdb 8378
d7040cdb 8379
d7040cdb 8380
d7040cdb 8381
d7040cdb 8382
d7040cdb 8383
d7040cdb 8384
d7040cdb 8385
d7040cdb 8386
d7040cdb 8387
d7040cdb 8388
d7040cdb 8389
d7040cdb 8390
d7040cdb 8391
d7040cdb
SE
8392
8393
8394
8395
8396
8397
8398
3725885a 8399
d7040cdb
SE
8400
8401
ce2cded5 8402test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8403
8404
8405
8406
8407
8408
d7040cdb
SE
8409
8410
8411
8412
8413
8414
8415
8416
ce2cded5
L
8417if test -n "${ZSH_VERSION+set}" ; then
8418 setopt NO_GLOB_SUBST
8419fi
d7040cdb 8420
81ecdfbb
RW
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8422$as_echo_n "checking for objdir... " >&6; }
8423if test "${lt_cv_objdir+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
ce2cded5
L
8425else
8426 rm -f .libs 2>/dev/null
8427mkdir .libs 2>/dev/null
8428if test -d .libs; then
8429 lt_cv_objdir=.libs
8430else
8431 # MS-DOS does not allow filenames that begin with a dot.
8432 lt_cv_objdir=_libs
8433fi
8434rmdir .libs 2>/dev/null
8435fi
81ecdfbb
RW
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8437$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8438objdir=$lt_cv_objdir
d7040cdb
SE
8439
8440
8441
8442
8443
ce2cded5
L
8444cat >>confdefs.h <<_ACEOF
8445#define LT_OBJDIR "$lt_cv_objdir/"
8446_ACEOF
d7040cdb
SE
8447
8448
8449
8450
ce2cded5
L
8451case $host_os in
8452aix3*)
8453 # AIX sometimes has problems with the GCC collect2 program. For some
8454 # reason, if we set the COLLECT_NAMES environment variable, the problems
8455 # vanish in a puff of smoke.
8456 if test "X${COLLECT_NAMES+set}" != Xset; then
8457 COLLECT_NAMES=
8458 export COLLECT_NAMES
8459 fi
8460 ;;
8461esac
d7040cdb 8462
ce2cded5
L
8463# Global variables:
8464ofile=libtool
8465can_build_shared=yes
d7040cdb 8466
ce2cded5
L
8467# All known linkers require a `.a' archive for static linking (except MSVC,
8468# which needs '.lib').
8469libext=a
d7040cdb 8470
ce2cded5 8471with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8472
ce2cded5
L
8473old_CC="$CC"
8474old_CFLAGS="$CFLAGS"
d7040cdb 8475
ce2cded5
L
8476# Set sane defaults for various variables
8477test -z "$CC" && CC=cc
8478test -z "$LTCC" && LTCC=$CC
8479test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8480test -z "$LD" && LD=ld
8481test -z "$ac_objext" && ac_objext=o
d7040cdb 8482
ce2cded5
L
8483for cc_temp in $compiler""; do
8484 case $cc_temp in
8485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8487 \-*) ;;
8488 *) break;;
8489 esac
8490done
3725885a 8491cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8492
8493
ce2cded5
L
8494# Only perform the check for file, if the check method requires it
8495test -z "$MAGIC_CMD" && MAGIC_CMD=file
8496case $deplibs_check_method in
8497file_magic*)
8498 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8500$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8501if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
ce2cded5
L
8503else
8504 case $MAGIC_CMD in
8505[\\/*] | ?:[\\/]*)
8506 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8507 ;;
8508*)
8509 lt_save_MAGIC_CMD="$MAGIC_CMD"
8510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8511 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8512 for ac_dir in $ac_dummy; do
8513 IFS="$lt_save_ifs"
8514 test -z "$ac_dir" && ac_dir=.
8515 if test -f $ac_dir/${ac_tool_prefix}file; then
8516 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8517 if test -n "$file_magic_test_file"; then
8518 case $deplibs_check_method in
8519 "file_magic "*)
8520 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8522 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8523 $EGREP "$file_magic_regex" > /dev/null; then
8524 :
8525 else
8526 cat <<_LT_EOF 1>&2
d7040cdb 8527
ce2cded5
L
8528*** Warning: the command libtool uses to detect shared libraries,
8529*** $file_magic_cmd, produces output that libtool cannot recognize.
8530*** The result is that libtool may fail to recognize shared libraries
8531*** as such. This will affect the creation of libtool libraries that
8532*** depend on shared libraries, but programs linked with such libtool
8533*** libraries will work regardless of this problem. Nevertheless, you
8534*** may want to report the problem to your system manager and/or to
8535*** bug-libtool@gnu.org
d7040cdb 8536
ce2cded5
L
8537_LT_EOF
8538 fi ;;
8539 esac
8540 fi
8541 break
8542 fi
8543 done
8544 IFS="$lt_save_ifs"
8545 MAGIC_CMD="$lt_save_MAGIC_CMD"
8546 ;;
8547esac
8548fi
d7040cdb 8549
ce2cded5
L
8550MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8553$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8554else
81ecdfbb
RW
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556$as_echo "no" >&6; }
ce2cded5 8557fi
d7040cdb
SE
8558
8559
8560
8561
8562
ce2cded5
L
8563if test -z "$lt_cv_path_MAGIC_CMD"; then
8564 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8566$as_echo_n "checking for file... " >&6; }
8567if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
ce2cded5
L
8569else
8570 case $MAGIC_CMD in
8571[\\/*] | ?:[\\/]*)
8572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8573 ;;
8574*)
8575 lt_save_MAGIC_CMD="$MAGIC_CMD"
8576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8578 for ac_dir in $ac_dummy; do
8579 IFS="$lt_save_ifs"
8580 test -z "$ac_dir" && ac_dir=.
8581 if test -f $ac_dir/file; then
8582 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8583 if test -n "$file_magic_test_file"; then
8584 case $deplibs_check_method in
8585 "file_magic "*)
8586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8589 $EGREP "$file_magic_regex" > /dev/null; then
8590 :
8591 else
8592 cat <<_LT_EOF 1>&2
d7040cdb 8593
ce2cded5
L
8594*** Warning: the command libtool uses to detect shared libraries,
8595*** $file_magic_cmd, produces output that libtool cannot recognize.
8596*** The result is that libtool may fail to recognize shared libraries
8597*** as such. This will affect the creation of libtool libraries that
8598*** depend on shared libraries, but programs linked with such libtool
8599*** libraries will work regardless of this problem. Nevertheless, you
8600*** may want to report the problem to your system manager and/or to
8601*** bug-libtool@gnu.org
d7040cdb 8602
ce2cded5
L
8603_LT_EOF
8604 fi ;;
8605 esac
8606 fi
8607 break
8608 fi
8609 done
8610 IFS="$lt_save_ifs"
8611 MAGIC_CMD="$lt_save_MAGIC_CMD"
8612 ;;
8613esac
8614fi
d7040cdb 8615
ce2cded5
L
8616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8617if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8619$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8620else
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
ce2cded5 8623fi
d7040cdb
SE
8624
8625
ce2cded5
L
8626 else
8627 MAGIC_CMD=:
8628 fi
8629fi
d7040cdb 8630
ce2cded5
L
8631 fi
8632 ;;
8633esac
d7040cdb 8634
ce2cded5 8635# Use C for the default configuration in the libtool script
d7040cdb 8636
ce2cded5
L
8637lt_save_CC="$CC"
8638ac_ext=c
8639ac_cpp='$CPP $CPPFLAGS'
8640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8642ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8643
8644
ce2cded5
L
8645# Source file extension for C test sources.
8646ac_ext=c
d7040cdb 8647
ce2cded5
L
8648# Object file extension for compiled C test sources.
8649objext=o
8650objext=$objext
d7040cdb 8651
ce2cded5
L
8652# Code to be used in simple compile tests
8653lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8654
ce2cded5
L
8655# Code to be used in simple link tests
8656lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8657
8658
8659
8660
8661
8662
8663
ce2cded5
L
8664# If no C compiler was specified, use CC.
8665LTCC=${LTCC-"$CC"}
d7040cdb 8666
ce2cded5
L
8667# If no C compiler flags were specified, use CFLAGS.
8668LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8669
ce2cded5
L
8670# Allow CC to be a program name with arguments.
8671compiler=$CC
d7040cdb 8672
ce2cded5
L
8673# Save the default compiler, since it gets overwritten when the other
8674# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8675compiler_DEFAULT=$CC
d7040cdb 8676
ce2cded5
L
8677# save warnings/boilerplate of simple test code
8678ac_outfile=conftest.$ac_objext
8679echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8680eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681_lt_compiler_boilerplate=`cat conftest.err`
8682$RM conftest*
d7040cdb 8683
ce2cded5
L
8684ac_outfile=conftest.$ac_objext
8685echo "$lt_simple_link_test_code" >conftest.$ac_ext
8686eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8687_lt_linker_boilerplate=`cat conftest.err`
b214d478 8688$RM -r conftest*
d7040cdb
SE
8689
8690
ce2cded5
L
8691## CAVEAT EMPTOR:
8692## There is no encapsulation within the following macros, do not change
8693## the running order or otherwise move them around unless you know exactly
8694## what you are doing...
8695if test -n "$compiler"; then
d7040cdb 8696
ce2cded5 8697lt_prog_compiler_no_builtin_flag=
d7040cdb 8698
ce2cded5 8699if test "$GCC" = yes; then
3725885a
RW
8700 case $cc_basename in
8701 nvcc*)
8702 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8703 *)
8704 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8705 esac
d7040cdb 8706
81ecdfbb
RW
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8708$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8709if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
ce2cded5
L
8711else
8712 lt_cv_prog_compiler_rtti_exceptions=no
8713 ac_outfile=conftest.$ac_objext
8714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715 lt_compiler_flag="-fno-rtti -fno-exceptions"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 # The option is referenced via a variable to avoid confusing sed.
8721 lt_compile=`echo "$ac_compile" | $SED \
8722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8724 -e 's:$: $lt_compiler_flag:'`
3725885a 8725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8726 (eval "$lt_compile" 2>conftest.err)
8727 ac_status=$?
8728 cat conftest.err >&5
3725885a 8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8730 if (exit $ac_status) && test -s "$ac_outfile"; then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings other than the usual output.
3725885a 8733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_rtti_exceptions=yes
8737 fi
8738 fi
8739 $RM conftest*
d7040cdb 8740
ce2cded5 8741fi
81ecdfbb
RW
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8743$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8744
ce2cded5
L
8745if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8747else
8748 :
8749fi
d7040cdb 8750
ce2cded5 8751fi
d7040cdb
SE
8752
8753
8754
8755
8756
8757
ce2cded5
L
8758 lt_prog_compiler_wl=
8759lt_prog_compiler_pic=
8760lt_prog_compiler_static=
d7040cdb 8761
81ecdfbb
RW
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8763$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8764
ce2cded5
L
8765 if test "$GCC" = yes; then
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_static='-static'
d7040cdb 8768
ce2cded5
L
8769 case $host_os in
8770 aix*)
8771 # All AIX code is PIC.
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 fi
52204357 8776 lt_prog_compiler_pic='-fPIC'
ce2cded5 8777 ;;
d7040cdb 8778
ce2cded5 8779 amigaos*)
b214d478
SE
8780 case $host_cpu in
8781 powerpc)
8782 # see comment about AmigaOS4 .so support
8783 lt_prog_compiler_pic='-fPIC'
8784 ;;
8785 m68k)
8786 # FIXME: we need at least 68020 code to build shared libraries, but
8787 # adding the `-m68020' flag to GCC prevents building anything better,
8788 # like `-m68040'.
8789 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8790 ;;
8791 esac
ce2cded5 8792 ;;
d7040cdb 8793
ce2cded5
L
8794 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8795 # PIC is the default for these OSes.
8796 ;;
d7040cdb 8797
b214d478 8798 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8799 # This hack is so that the source file can tell whether it is being
8800 # built for inclusion in a dll (and should export symbols for example).
8801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8802 # (--disable-auto-import) libraries
8803 lt_prog_compiler_pic='-DDLL_EXPORT'
8804 ;;
d7040cdb 8805
ce2cded5
L
8806 darwin* | rhapsody*)
8807 # PIC is the default on this platform
8808 # Common symbols not allowed in MH_DYLIB files
8809 lt_prog_compiler_pic='-fno-common'
8810 ;;
d7040cdb 8811
3725885a
RW
8812 haiku*)
8813 # PIC is the default for Haiku.
8814 # The "-static" flag exists, but is broken.
8815 lt_prog_compiler_static=
8816 ;;
8817
ce2cded5 8818 hpux*)
b214d478
SE
8819 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8820 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8821 # sets the default TLS model and affects inlining.
ce2cded5 8822 case $host_cpu in
b214d478 8823 hppa*64*)
ce2cded5
L
8824 # +Z the default
8825 ;;
8826 *)
8827 lt_prog_compiler_pic='-fPIC'
8828 ;;
8829 esac
8830 ;;
d7040cdb 8831
ce2cded5
L
8832 interix[3-9]*)
8833 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8834 # Instead, we relocate shared libraries at runtime.
8835 ;;
d7040cdb 8836
ce2cded5
L
8837 msdosdjgpp*)
8838 # Just because we use GCC doesn't mean we suddenly get shared libraries
8839 # on systems that don't support them.
8840 lt_prog_compiler_can_build_shared=no
8841 enable_shared=no
8842 ;;
d7040cdb 8843
ce2cded5
L
8844 *nto* | *qnx*)
8845 # QNX uses GNU C++, but need to define -shared option too, otherwise
8846 # it will coredump.
8847 lt_prog_compiler_pic='-fPIC -shared'
8848 ;;
d7040cdb 8849
ce2cded5
L
8850 sysv4*MP*)
8851 if test -d /usr/nec; then
8852 lt_prog_compiler_pic=-Kconform_pic
8853 fi
8854 ;;
d7040cdb 8855
ce2cded5
L
8856 *)
8857 lt_prog_compiler_pic='-fPIC'
8858 ;;
8859 esac
3725885a
RW
8860
8861 case $cc_basename in
8862 nvcc*) # Cuda Compiler Driver 2.2
8863 lt_prog_compiler_wl='-Xlinker '
8864 lt_prog_compiler_pic='-Xcompiler -fPIC'
8865 ;;
8866 esac
ce2cded5
L
8867 else
8868 # PORTME Check for flag to pass linker flags through the system compiler.
8869 case $host_os in
8870 aix*)
8871 lt_prog_compiler_wl='-Wl,'
8872 if test "$host_cpu" = ia64; then
8873 # AIX 5 now supports IA64 processor
8874 lt_prog_compiler_static='-Bstatic'
8875 else
8876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8877 fi
8878 ;;
d7040cdb 8879
b214d478 8880 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8881 # This hack is so that the source file can tell whether it is being
8882 # built for inclusion in a dll (and should export symbols for example).
8883 lt_prog_compiler_pic='-DDLL_EXPORT'
8884 ;;
d7040cdb 8885
ce2cded5
L
8886 hpux9* | hpux10* | hpux11*)
8887 lt_prog_compiler_wl='-Wl,'
8888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8889 # not for PA HP-UX.
8890 case $host_cpu in
8891 hppa*64*|ia64*)
8892 # +Z the default
8893 ;;
8894 *)
8895 lt_prog_compiler_pic='+Z'
8896 ;;
8897 esac
8898 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8899 lt_prog_compiler_static='${wl}-a ${wl}archive'
8900 ;;
d7040cdb 8901
ce2cded5
L
8902 irix5* | irix6* | nonstopux*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # PIC (with -KPIC) is the default.
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
d7040cdb 8907
58e24671 8908 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8909 case $cc_basename in
b214d478
SE
8910 # old Intel for x86_64 which still supported -KPIC.
8911 ecc*)
ce2cded5
L
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-static'
8915 ;;
b214d478
SE
8916 # icc used to be incompatible with GCC.
8917 # ICC 10 doesn't accept -KPIC any more.
8918 icc* | ifort*)
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_pic='-fPIC'
8921 lt_prog_compiler_static='-static'
8922 ;;
8923 # Lahey Fortran 8.1.
8924 lf95*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='--shared'
8927 lt_prog_compiler_static='--static'
8928 ;;
3725885a 8929 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8930 # Portland Group compilers (*not* the Pentium gcc compiler,
8931 # which looks to be a dead project)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fpic'
8934 lt_prog_compiler_static='-Bstatic'
8935 ;;
8936 ccc*)
8937 lt_prog_compiler_wl='-Wl,'
8938 # All Alpha code is PIC.
8939 lt_prog_compiler_static='-non_shared'
8940 ;;
3725885a
RW
8941 xl* | bgxl* | bgf* | mpixl*)
8942 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-qpic'
8945 lt_prog_compiler_static='-qstaticlink'
8946 ;;
ce2cded5
L
8947 *)
8948 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8949 *Sun\ F* | *Sun*Fortran*)
8950 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8951 lt_prog_compiler_pic='-KPIC'
8952 lt_prog_compiler_static='-Bstatic'
3725885a 8953 lt_prog_compiler_wl=''
ce2cded5 8954 ;;
3725885a
RW
8955 *Sun\ C*)
8956 # Sun C 5.9
ce2cded5
L
8957 lt_prog_compiler_pic='-KPIC'
8958 lt_prog_compiler_static='-Bstatic'
3725885a 8959 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8960 ;;
8961 esac
8962 ;;
8963 esac
8964 ;;
d7040cdb 8965
ce2cded5
L
8966 newsos6)
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8969 ;;
d7040cdb 8970
ce2cded5
L
8971 *nto* | *qnx*)
8972 # QNX uses GNU C++, but need to define -shared option too, otherwise
8973 # it will coredump.
8974 lt_prog_compiler_pic='-fPIC -shared'
8975 ;;
d7040cdb 8976
ce2cded5
L
8977 osf3* | osf4* | osf5*)
8978 lt_prog_compiler_wl='-Wl,'
8979 # All OSF/1 code is PIC.
8980 lt_prog_compiler_static='-non_shared'
8981 ;;
d7040cdb 8982
ce2cded5
L
8983 rdos*)
8984 lt_prog_compiler_static='-non_shared'
8985 ;;
d7040cdb 8986
ce2cded5
L
8987 solaris*)
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 case $cc_basename in
8991 f77* | f90* | f95*)
8992 lt_prog_compiler_wl='-Qoption ld ';;
8993 *)
8994 lt_prog_compiler_wl='-Wl,';;
8995 esac
8996 ;;
d7040cdb 8997
ce2cded5
L
8998 sunos4*)
8999 lt_prog_compiler_wl='-Qoption ld '
9000 lt_prog_compiler_pic='-PIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 ;;
d7040cdb 9003
ce2cded5
L
9004 sysv4 | sysv4.2uw2* | sysv4.3*)
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-KPIC'
9007 lt_prog_compiler_static='-Bstatic'
9008 ;;
d7040cdb 9009
ce2cded5
L
9010 sysv4*MP*)
9011 if test -d /usr/nec ;then
9012 lt_prog_compiler_pic='-Kconform_pic'
9013 lt_prog_compiler_static='-Bstatic'
9014 fi
9015 ;;
d7040cdb 9016
ce2cded5
L
9017 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
d7040cdb 9022
ce2cded5
L
9023 unicos*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_can_build_shared=no
9026 ;;
d7040cdb 9027
ce2cded5
L
9028 uts4*)
9029 lt_prog_compiler_pic='-pic'
9030 lt_prog_compiler_static='-Bstatic'
9031 ;;
d7040cdb 9032
ce2cded5
L
9033 *)
9034 lt_prog_compiler_can_build_shared=no
9035 ;;
9036 esac
9037 fi
d7040cdb 9038
ce2cded5
L
9039case $host_os in
9040 # For platforms which do not support PIC, -DPIC is meaningless:
9041 *djgpp*)
9042 lt_prog_compiler_pic=
9043 ;;
9044 *)
9045 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9046 ;;
9047esac
81ecdfbb
RW
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9049$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9050
9051
9052
9053
9054
9055
ce2cded5
L
9056#
9057# Check to make sure the PIC flag actually works.
9058#
9059if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9061$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9062if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
ce2cded5 9064else
b214d478 9065 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9066 ac_outfile=conftest.$ac_objext
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9069 # Insert the option either (1) after the last *FLAGS variable, or
9070 # (2) before a word containing "conftest.", or (3) at the end.
9071 # Note that $ac_compile itself does not contain backslashes and begins
9072 # with a dollar sign (not a hyphen), so the echo should work correctly.
9073 # The option is referenced via a variable to avoid confusing sed.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
3725885a 9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9079 (eval "$lt_compile" 2>conftest.err)
9080 ac_status=$?
9081 cat conftest.err >&5
3725885a 9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9083 if (exit $ac_status) && test -s "$ac_outfile"; then
9084 # The compiler can only warn and ignore the option if not recognized
9085 # So say no if there are warnings other than the usual output.
3725885a 9086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9089 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9090 fi
9091 fi
9092 $RM conftest*
d7040cdb 9093
ce2cded5 9094fi
81ecdfbb
RW
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9096$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9097
b214d478 9098if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9099 case $lt_prog_compiler_pic in
9100 "" | " "*) ;;
9101 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9102 esac
9103else
9104 lt_prog_compiler_pic=
9105 lt_prog_compiler_can_build_shared=no
9106fi
9107
9108fi
d7040cdb
SE
9109
9110
9111
9112
9113
9114
ce2cded5
L
9115#
9116# Check to make sure the static flag actually works.
9117#
9118wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9120$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9121if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
ce2cded5 9123else
b214d478 9124 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9125 save_LDFLAGS="$LDFLAGS"
9126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9129 # The linker can only warn and ignore the option if not recognized
9130 # So say no if there are warnings
9131 if test -s conftest.err; then
9132 # Append any errors to the config.log.
9133 cat conftest.err 1>&5
3725885a 9134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9137 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9138 fi
9139 else
b214d478 9140 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9141 fi
9142 fi
b214d478 9143 $RM -r conftest*
ce2cded5 9144 LDFLAGS="$save_LDFLAGS"
d7040cdb 9145
ce2cded5 9146fi
81ecdfbb
RW
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9148$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9149
b214d478 9150if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9151 :
9152else
9153 lt_prog_compiler_static=
9154fi
d7040cdb
SE
9155
9156
9157
9158
9159
9160
9161
81ecdfbb
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9163$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9164if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
ce2cded5
L
9166else
9167 lt_cv_prog_compiler_c_o=no
9168 $RM -r conftest 2>/dev/null
9169 mkdir conftest
9170 cd conftest
9171 mkdir out
9172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9173
ce2cded5
L
9174 lt_compiler_flag="-o out/conftest2.$ac_objext"
9175 # Insert the option either (1) after the last *FLAGS variable, or
9176 # (2) before a word containing "conftest.", or (3) at the end.
9177 # Note that $ac_compile itself does not contain backslashes and begins
9178 # with a dollar sign (not a hyphen), so the echo should work correctly.
9179 lt_compile=`echo "$ac_compile" | $SED \
9180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9182 -e 's:$: $lt_compiler_flag:'`
3725885a 9183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9184 (eval "$lt_compile" 2>out/conftest.err)
9185 ac_status=$?
9186 cat out/conftest.err >&5
3725885a 9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9189 then
9190 # The compiler can only warn and ignore the option if not recognized
9191 # So say no if there are warnings
3725885a 9192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9195 lt_cv_prog_compiler_c_o=yes
9196 fi
9197 fi
9198 chmod u+w . 2>&5
9199 $RM conftest*
9200 # SGI C++ compiler will create directory out/ii_files/ for
9201 # template instantiation
9202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9203 $RM out/* && rmdir out
9204 cd ..
9205 $RM -r conftest
9206 $RM conftest*
d7040cdb 9207
ce2cded5 9208fi
81ecdfbb
RW
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9210$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9211
9212
9213
9214
9215
9216
81ecdfbb
RW
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9218$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9219if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
ce2cded5
L
9221else
9222 lt_cv_prog_compiler_c_o=no
9223 $RM -r conftest 2>/dev/null
9224 mkdir conftest
9225 cd conftest
9226 mkdir out
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9228
ce2cded5
L
9229 lt_compiler_flag="-o out/conftest2.$ac_objext"
9230 # Insert the option either (1) after the last *FLAGS variable, or
9231 # (2) before a word containing "conftest.", or (3) at the end.
9232 # Note that $ac_compile itself does not contain backslashes and begins
9233 # with a dollar sign (not a hyphen), so the echo should work correctly.
9234 lt_compile=`echo "$ac_compile" | $SED \
9235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237 -e 's:$: $lt_compiler_flag:'`
3725885a 9238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9239 (eval "$lt_compile" 2>out/conftest.err)
9240 ac_status=$?
9241 cat out/conftest.err >&5
3725885a 9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9244 then
9245 # The compiler can only warn and ignore the option if not recognized
9246 # So say no if there are warnings
3725885a 9247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9250 lt_cv_prog_compiler_c_o=yes
9251 fi
9252 fi
9253 chmod u+w . 2>&5
9254 $RM conftest*
9255 # SGI C++ compiler will create directory out/ii_files/ for
9256 # template instantiation
9257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9258 $RM out/* && rmdir out
9259 cd ..
9260 $RM -r conftest
9261 $RM conftest*
9262
9263fi
81ecdfbb
RW
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9265$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9266
9267
9268
9269
9270hard_links="nottested"
9271if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9272 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9274$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9275 hard_links=yes
9276 $RM conftest*
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278 touch conftest.a
9279 ln conftest.a conftest.b 2>&5 || hard_links=no
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9282$as_echo "$hard_links" >&6; }
ce2cded5 9283 if test "$hard_links" = no; then
81ecdfbb
RW
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9285$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9286 need_locks=warn
d7040cdb 9287 fi
d7040cdb 9288else
ce2cded5 9289 need_locks=no
d7040cdb 9290fi
d7040cdb 9291
d7040cdb 9292
d7040cdb 9293
d7040cdb 9294
d7040cdb 9295
d7040cdb 9296
81ecdfbb
RW
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9298$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9299
ce2cded5
L
9300 runpath_var=
9301 allow_undefined_flag=
9302 always_export_symbols=no
9303 archive_cmds=
9304 archive_expsym_cmds=
9305 compiler_needs_object=no
9306 enable_shared_with_static_runtimes=no
9307 export_dynamic_flag_spec=
9308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9309 hardcode_automatic=no
9310 hardcode_direct=no
9311 hardcode_direct_absolute=no
9312 hardcode_libdir_flag_spec=
9313 hardcode_libdir_flag_spec_ld=
9314 hardcode_libdir_separator=
9315 hardcode_minus_L=no
9316 hardcode_shlibpath_var=unsupported
9317 inherit_rpath=no
9318 link_all_deplibs=unknown
9319 module_cmds=
9320 module_expsym_cmds=
9321 old_archive_from_new_cmds=
9322 old_archive_from_expsyms_cmds=
9323 thread_safe_flag_spec=
9324 whole_archive_flag_spec=
9325 # include_expsyms should be a list of space-separated symbols to be *always*
9326 # included in the symbol list
9327 include_expsyms=
9328 # exclude_expsyms can be an extended regexp of symbols to exclude
9329 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9330 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9331 # as well as any symbol that contains `d'.
b214d478 9332 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9334 # platforms (ab)use it in PIC code, but their linkers get confused if
9335 # the symbol is explicitly referenced. Since portable code cannot
9336 # rely on this symbol name, it's probably fine to never include it in
9337 # preloaded symbol tables.
b214d478 9338 # Exclude shared library initialization/finalization symbols.
ce2cded5 9339 extract_expsyms_cmds=
d7040cdb 9340
ce2cded5 9341 case $host_os in
b214d478 9342 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9343 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344 # When not using gcc, we currently assume that we are using
9345 # Microsoft Visual C++.
9346 if test "$GCC" != yes; then
9347 with_gnu_ld=no
9348 fi
d7040cdb 9349 ;;
ce2cded5
L
9350 interix*)
9351 # we just hope/assume this is gcc and not c89 (= MSVC++)
9352 with_gnu_ld=yes
9353 ;;
9354 openbsd*)
9355 with_gnu_ld=no
d7040cdb
SE
9356 ;;
9357 esac
d7040cdb 9358
ce2cded5 9359 ld_shlibs=yes
3725885a
RW
9360
9361 # On some targets, GNU ld is compatible enough with the native linker
9362 # that we're better off using the native interface for both.
9363 lt_use_gnu_ld_interface=no
ce2cded5 9364 if test "$with_gnu_ld" = yes; then
3725885a
RW
9365 case $host_os in
9366 aix*)
9367 # The AIX port of GNU ld has always aspired to compatibility
9368 # with the native linker. However, as the warning in the GNU ld
9369 # block says, versions before 2.19.5* couldn't really create working
9370 # shared libraries, regardless of the interface used.
9371 case `$LD -v 2>&1` in
9372 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9373 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9374 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9375 *)
9376 lt_use_gnu_ld_interface=yes
9377 ;;
9378 esac
9379 ;;
9380 *)
9381 lt_use_gnu_ld_interface=yes
9382 ;;
9383 esac
9384 fi
9385
9386 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9387 # If archive_cmds runs LD, not CC, wlarc should be empty
9388 wlarc='${wl}'
d7040cdb 9389
ce2cded5
L
9390 # Set some defaults for GNU ld with shared library support. These
9391 # are reset later if shared libraries are not supported. Putting them
9392 # here allows them to be overridden if necessary.
9393 runpath_var=LD_RUN_PATH
9394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395 export_dynamic_flag_spec='${wl}--export-dynamic'
9396 # ancient GNU ld didn't support --whole-archive et. al.
9397 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9398 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9399 else
9400 whole_archive_flag_spec=
9401 fi
9402 supports_anon_versioning=no
9403 case `$LD -v 2>&1` in
3725885a 9404 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9408 *\ 2.11.*) ;; # other 2.11 versions
9409 *) supports_anon_versioning=yes ;;
9410 esac
d7040cdb 9411
ce2cded5
L
9412 # See if GNU ld supports shared libraries.
9413 case $host_os in
50e7d84b 9414 aix[3-9]*)
ce2cded5
L
9415 # On AIX/PPC, the GNU linker is very broken
9416 if test "$host_cpu" != ia64; then
9417 ld_shlibs=no
9418 cat <<_LT_EOF 1>&2
d7040cdb 9419
3725885a 9420*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9421*** to be unable to reliably create shared libraries on AIX.
9422*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9423*** really care for shared libraries, you may want to install binutils
9424*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9425*** You will then need to restart the configuration process.
d7040cdb 9426
ce2cded5
L
9427_LT_EOF
9428 fi
d7040cdb 9429 ;;
d7040cdb 9430
ce2cded5 9431 amigaos*)
b214d478
SE
9432 case $host_cpu in
9433 powerpc)
9434 # see comment about AmigaOS4 .so support
9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436 archive_expsym_cmds=''
9437 ;;
9438 m68k)
9439 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)'
9440 hardcode_libdir_flag_spec='-L$libdir'
9441 hardcode_minus_L=yes
9442 ;;
9443 esac
ce2cded5 9444 ;;
d7040cdb 9445
ce2cded5
L
9446 beos*)
9447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448 allow_undefined_flag=unsupported
9449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9450 # support --undefined. This deserves some investigation. FIXME
9451 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 else
9453 ld_shlibs=no
9454 fi
9455 ;;
d7040cdb 9456
b214d478 9457 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9458 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9459 # as there is no search path for DLLs.
9460 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9461 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9462 allow_undefined_flag=unsupported
9463 always_export_symbols=no
9464 enable_shared_with_static_runtimes=yes
9465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9466
9467 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9469 # If the export-symbols file already is a .def file (1st line
9470 # is EXPORTS), use it as is; otherwise, prepend...
9471 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9473 else
ce2cded5
L
9474 echo EXPORTS > $output_objdir/$soname.def;
9475 cat $export_symbols >> $output_objdir/$soname.def;
9476 fi~
9477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478 else
9479 ld_shlibs=no
9480 fi
9481 ;;
d7040cdb 9482
3725885a
RW
9483 haiku*)
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 link_all_deplibs=yes
9486 ;;
9487
ce2cded5
L
9488 interix[3-9]*)
9489 hardcode_direct=no
9490 hardcode_shlibpath_var=no
9491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9492 export_dynamic_flag_spec='${wl}-E'
9493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9494 # Instead, shared libraries are loaded at an image base (0x10000000 by
9495 # default) and relocated if they conflict, which is a slow very memory
9496 # consuming and fragmenting process. To avoid this, we pick a random,
9497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9500 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'
9501 ;;
d7040cdb 9502
58e24671 9503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9504 tmp_diet=no
9505 if test "$host_os" = linux-dietlibc; then
9506 case $cc_basename in
9507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9508 esac
9509 fi
9510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9511 && test "$tmp_diet" = no
9512 then
6e733cce 9513 tmp_addflag=' $pic_flag'
b214d478 9514 tmp_sharedflag='-shared'
ce2cded5
L
9515 case $cc_basename,$host_cpu in
9516 pgcc*) # Portland Group C compiler
3725885a 9517 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9518 tmp_addflag=' $pic_flag'
9519 ;;
3725885a
RW
9520 pgf77* | pgf90* | pgf95* | pgfortran*)
9521 # Portland Group f77 and f90 compilers
9522 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
9523 tmp_addflag=' $pic_flag -Mnomain' ;;
9524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9525 tmp_addflag=' -i_dynamic' ;;
9526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9527 tmp_addflag=' -i_dynamic -nofor_main' ;;
9528 ifc* | ifort*) # Intel Fortran compiler
9529 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9530 lf95*) # Lahey Fortran 8.1
9531 whole_archive_flag_spec=
9532 tmp_sharedflag='--shared' ;;
3725885a 9533 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9534 tmp_sharedflag='-qmkshrobj'
9535 tmp_addflag= ;;
3725885a
RW
9536 nvcc*) # Cuda Compiler Driver 2.2
9537 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'
9538 compiler_needs_object=yes
9539 ;;
ce2cded5
L
9540 esac
9541 case `$CC -V 2>&1 | sed 5q` in
9542 *Sun\ C*) # Sun C 5.9
3725885a 9543 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
9544 compiler_needs_object=yes
9545 tmp_sharedflag='-G' ;;
9546 *Sun\ F*) # Sun Fortran 8.3
9547 tmp_sharedflag='-G' ;;
ce2cded5
L
9548 esac
9549 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9550
ce2cded5
L
9551 if test "x$supports_anon_versioning" = xyes; then
9552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554 echo "local: *; };" >> $output_objdir/$libname.ver~
9555 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9556 fi
b214d478
SE
9557
9558 case $cc_basename in
3725885a 9559 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9561 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9562 hardcode_libdir_flag_spec=
9563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9564 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9565 if test "x$supports_anon_versioning" = xyes; then
9566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9568 echo "local: *; };" >> $output_objdir/$libname.ver~
9569 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9570 fi
9571 ;;
9572 esac
ce2cded5
L
9573 else
9574 ld_shlibs=no
9575 fi
9576 ;;
d7040cdb 9577
ce2cded5
L
9578 netbsd*)
9579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9580 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9581 wlarc=
9582 else
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 fi
9586 ;;
9587
9588 solaris*)
9589 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9590 ld_shlibs=no
9591 cat <<_LT_EOF 1>&2
9592
9593*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9594*** create shared libraries on Solaris systems. Therefore, libtool
9595*** is disabling shared libraries support. We urge you to upgrade GNU
9596*** binutils to release 2.9.1 or newer. Another option is to modify
9597*** your PATH or compiler configuration so that the native linker is
9598*** used, and then restart.
9599
9600_LT_EOF
9601 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604 else
9605 ld_shlibs=no
9606 fi
9607 ;;
9608
9609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9610 case `$LD -v 2>&1` in
9611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9612 ld_shlibs=no
9613 cat <<_LT_EOF 1>&2
9614
9615*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9616*** reliably create shared libraries on SCO systems. Therefore, libtool
9617*** is disabling shared libraries support. We urge you to upgrade GNU
9618*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9619*** your PATH or compiler configuration so that the native linker is
9620*** used, and then restart.
9621
9622_LT_EOF
9623 ;;
9624 *)
9625 # For security reasons, it is highly recommended that you always
9626 # use absolute paths for naming shared libraries, and exclude the
9627 # DT_RUNPATH tag from executables and libraries. But doing so
9628 # requires that you compile everything twice, which is a pain.
9629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 else
9634 ld_shlibs=no
9635 fi
9636 ;;
9637 esac
9638 ;;
9639
9640 sunos4*)
9641 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 wlarc=
9643 hardcode_direct=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 *)
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 else
9652 ld_shlibs=no
9653 fi
9654 ;;
9655 esac
9656
9657 if test "$ld_shlibs" = no; then
9658 runpath_var=
9659 hardcode_libdir_flag_spec=
9660 export_dynamic_flag_spec=
9661 whole_archive_flag_spec=
9662 fi
9663 else
9664 # PORTME fill in a description of your system's linker (not GNU ld)
9665 case $host_os in
9666 aix3*)
9667 allow_undefined_flag=unsupported
9668 always_export_symbols=yes
9669 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'
9670 # Note: this linker hardcodes the directories in LIBPATH if there
9671 # are no directories specified by -L.
9672 hardcode_minus_L=yes
9673 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9674 # Neither direct hardcoding nor static linking is supported with a
9675 # broken collect2.
9676 hardcode_direct=unsupported
9677 fi
9678 ;;
9679
50e7d84b 9680 aix[4-9]*)
ce2cded5
L
9681 if test "$host_cpu" = ia64; then
9682 # On IA64, the linker does run time linking by default, so we don't
9683 # have to do anything special.
9684 aix_use_runtimelinking=no
9685 exp_sym_flag='-Bexport'
9686 no_entry_flag=""
9687 else
9688 # If we're using GNU nm, then we don't want the "-C" option.
9689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9690 # Also, AIX nm treats weak defined symbols like other global
9691 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9693 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 9694 else
5c14705f 9695 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9696 fi
9697 aix_use_runtimelinking=no
9698
9699 # Test if we are trying to use run time linking or normal
9700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9701 # need to do runtime linking.
50e7d84b 9702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9703 for ld_flag in $LDFLAGS; do
9704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9705 aix_use_runtimelinking=yes
9706 break
9707 fi
9708 done
9709 ;;
9710 esac
9711
9712 exp_sym_flag='-bexport'
9713 no_entry_flag='-bnoentry'
9714 fi
9715
9716 # When large executables or shared objects are built, AIX ld can
9717 # have problems creating the table of contents. If linking a library
9718 # or program results in "error TOC overflow" add -mminimal-toc to
9719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9721
9722 archive_cmds=''
9723 hardcode_direct=yes
9724 hardcode_direct_absolute=yes
9725 hardcode_libdir_separator=':'
9726 link_all_deplibs=yes
9727 file_list_spec='${wl}-f,'
9728
9729 if test "$GCC" = yes; then
9730 case $host_os in aix4.[012]|aix4.[012].*)
9731 # We only want to do this on AIX 4.2 and lower, the check
9732 # below for broken collect2 doesn't work under 4.3+
9733 collect2name=`${CC} -print-prog-name=collect2`
9734 if test -f "$collect2name" &&
9735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9736 then
9737 # We have reworked collect2
9738 :
9739 else
9740 # We have old collect2
9741 hardcode_direct=unsupported
9742 # It fails to find uninstalled libraries when the uninstalled
9743 # path is not listed in the libpath. Setting hardcode_minus_L
9744 # to unsupported forces relinking
9745 hardcode_minus_L=yes
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_libdir_separator=
9748 fi
9749 ;;
9750 esac
9751 shared_flag='-shared'
9752 if test "$aix_use_runtimelinking" = yes; then
9753 shared_flag="$shared_flag "'${wl}-G'
9754 fi
9755 else
9756 # not using gcc
9757 if test "$host_cpu" = ia64; then
9758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9759 # chokes on -Wl,-G. The following line is correct:
9760 shared_flag='-G'
9761 else
9762 if test "$aix_use_runtimelinking" = yes; then
9763 shared_flag='${wl}-G'
9764 else
9765 shared_flag='${wl}-bM:SRE'
9766 fi
9767 fi
9768 fi
9769
b214d478 9770 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9771 # It seems that -bexpall does not export symbols beginning with
9772 # underscore (_), so it is better to generate a list of symbols to export.
9773 always_export_symbols=yes
9774 if test "$aix_use_runtimelinking" = yes; then
9775 # Warning - without using the other runtime loading flags (-brtl),
9776 # -berok will link without error, but may produce a broken library.
9777 allow_undefined_flag='-berok'
9778 # Determine the default libpath from the value encoded in an
9779 # empty executable.
81ecdfbb 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9781/* end confdefs.h. */
9782
9783int
9784main ()
9785{
9786
9787 ;
9788 return 0;
9789}
9790_ACEOF
81ecdfbb 9791if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9792
ce2cded5
L
9793lt_aix_libpath_sed='
9794 /Import File Strings/,/^$/ {
9795 /^0/ {
9796 s/^0 *\(.*\)$/\1/
9797 p
9798 }
9799 }'
9800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801# Check for a 64-bit object if we didn't find anything.
9802if test -z "$aix_libpath"; then
9803 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804fi
d7040cdb 9805fi
81ecdfbb
RW
9806rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9808if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9809
ce2cded5 9810 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9811 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
9812 else
9813 if test "$host_cpu" = ia64; then
9814 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9815 allow_undefined_flag="-z nodefs"
9816 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"
9817 else
9818 # Determine the default libpath from the value encoded in an
9819 # empty executable.
81ecdfbb 9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9821/* end confdefs.h. */
d7040cdb 9822
ce2cded5
L
9823int
9824main ()
9825{
d7040cdb 9826
ce2cded5
L
9827 ;
9828 return 0;
9829}
9830_ACEOF
81ecdfbb 9831if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9832
ce2cded5
L
9833lt_aix_libpath_sed='
9834 /Import File Strings/,/^$/ {
9835 /^0/ {
9836 s/^0 *\(.*\)$/\1/
9837 p
9838 }
9839 }'
9840aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841# Check for a 64-bit object if we didn't find anything.
9842if test -z "$aix_libpath"; then
9843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844fi
ce2cded5 9845fi
81ecdfbb
RW
9846rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9849
ce2cded5
L
9850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9851 # Warning - without using the other run time loading flags,
9852 # -berok will link without error, but may produce a broken library.
9853 no_undefined_flag=' ${wl}-bernotok'
9854 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9855 if test "$with_gnu_ld" = yes; then
9856 # We only use this code for GNU lds that support --whole-archive.
9857 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9858 else
9859 # Exported symbols can be pulled into shared objects from archives
9860 whole_archive_flag_spec='$convenience'
9861 fi
ce2cded5
L
9862 archive_cmds_need_lc=yes
9863 # This is similar to how AIX traditionally builds its shared libraries.
9864 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'
9865 fi
9866 fi
9867 ;;
d7040cdb 9868
ce2cded5 9869 amigaos*)
b214d478
SE
9870 case $host_cpu in
9871 powerpc)
9872 # see comment about AmigaOS4 .so support
9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874 archive_expsym_cmds=''
9875 ;;
9876 m68k)
9877 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)'
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_minus_L=yes
9880 ;;
9881 esac
ce2cded5
L
9882 ;;
9883
9884 bsdi[45]*)
9885 export_dynamic_flag_spec=-rdynamic
9886 ;;
9887
b214d478 9888 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9889 # When not using gcc, we currently assume that we are using
9890 # Microsoft Visual C++.
9891 # hardcode_libdir_flag_spec is actually meaningless, as there is
9892 # no search path for DLLs.
9893 hardcode_libdir_flag_spec=' '
9894 allow_undefined_flag=unsupported
9895 # Tell ltmain to make .lib files, not .a files.
9896 libext=lib
9897 # Tell ltmain to make .dll files, not .so files.
9898 shrext_cmds=".dll"
9899 # FIXME: Setting linknames here is a bad hack.
3725885a 9900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9901 # The linker will automatically build a .lib file if we build a DLL.
9902 old_archive_from_new_cmds='true'
9903 # FIXME: Should let the user specify the lib program.
9904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9905 fix_srcfile_path='`cygpath -w "$srcfile"`'
9906 enable_shared_with_static_runtimes=yes
9907 ;;
9908
9909 darwin* | rhapsody*)
d7040cdb 9910
b214d478
SE
9911
9912 archive_cmds_need_lc=no
9913 hardcode_direct=no
9914 hardcode_automatic=yes
9915 hardcode_shlibpath_var=unsupported
3725885a
RW
9916 if test "$lt_cv_ld_force_load" = "yes"; then
9917 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\"`'
9918 else
9919 whole_archive_flag_spec=''
9920 fi
b214d478
SE
9921 link_all_deplibs=yes
9922 allow_undefined_flag="$_lt_dar_allow_undefined"
9923 case $cc_basename in
9924 ifort*) _lt_dar_can_shared=yes ;;
9925 *) _lt_dar_can_shared=$GCC ;;
9926 esac
9927 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9928 output_verbose_link_cmd=func_echo_all
b214d478
SE
9929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9931 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}"
9932 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}"
9933
9934 else
9935 ld_shlibs=no
9936 fi
9937
ce2cded5 9938 ;;
d7040cdb 9939
ce2cded5
L
9940 dgux*)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_shlibpath_var=no
9944 ;;
d7040cdb 9945
ce2cded5
L
9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9947 # support. Future versions do this automatically, but an explicit c++rt0.o
9948 # does not break anything, and helps significantly (at the cost of a little
9949 # extra space).
9950 freebsd2.2*)
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_direct=yes
9954 hardcode_shlibpath_var=no
d7040cdb 9955 ;;
d7040cdb 9956
ce2cded5 9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9958 freebsd2.*)
ce2cded5
L
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_direct=yes
9961 hardcode_minus_L=yes
9962 hardcode_shlibpath_var=no
9963 ;;
d7040cdb 9964
ce2cded5
L
9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9966 freebsd* | dragonfly*)
9967 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9968 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9971 ;;
d7040cdb 9972
ce2cded5
L
9973 hpux9*)
9974 if test "$GCC" = yes; then
9975 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'
9976 else
9977 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'
9978 fi
9979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9980 hardcode_libdir_separator=:
9981 hardcode_direct=yes
d7040cdb 9982
ce2cded5
L
9983 # hardcode_minus_L: Not really in the search PATH,
9984 # but as the default location of the library.
9985 hardcode_minus_L=yes
9986 export_dynamic_flag_spec='${wl}-E'
9987 ;;
d7040cdb 9988
ce2cded5 9989 hpux10*)
3725885a 9990 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9992 else
9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9994 fi
9995 if test "$with_gnu_ld" = no; then
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_flag_spec_ld='+b $libdir'
9998 hardcode_libdir_separator=:
9999 hardcode_direct=yes
10000 hardcode_direct_absolute=yes
10001 export_dynamic_flag_spec='${wl}-E'
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10005 fi
10006 ;;
d7040cdb 10007
ce2cded5 10008 hpux11*)
3725885a 10009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10010 case $host_cpu in
10011 hppa*64*)
10012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 ;;
10014 ia64*)
b214d478 10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10016 ;;
10017 *)
10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019 ;;
10020 esac
10021 else
10022 case $host_cpu in
10023 hppa*64*)
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 ia64*)
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10028 ;;
10029 *)
3725885a
RW
10030
10031 # Older versions of the 11.00 compiler do not understand -b yet
10032 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10034$as_echo_n "checking if $CC understands -b... " >&6; }
10035if test "${lt_cv_prog_compiler__b+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037else
10038 lt_cv_prog_compiler__b=no
10039 save_LDFLAGS="$LDFLAGS"
10040 LDFLAGS="$LDFLAGS -b"
10041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10043 # The linker can only warn and ignore the option if not recognized
10044 # So say no if there are warnings
10045 if test -s conftest.err; then
10046 # Append any errors to the config.log.
10047 cat conftest.err 1>&5
10048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10050 if diff conftest.exp conftest.er2 >/dev/null; then
10051 lt_cv_prog_compiler__b=yes
10052 fi
10053 else
10054 lt_cv_prog_compiler__b=yes
10055 fi
10056 fi
10057 $RM -r conftest*
10058 LDFLAGS="$save_LDFLAGS"
10059
10060fi
10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10062$as_echo "$lt_cv_prog_compiler__b" >&6; }
10063
10064if test x"$lt_cv_prog_compiler__b" = xyes; then
10065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066else
10067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068fi
10069
ce2cded5
L
10070 ;;
10071 esac
10072 fi
10073 if test "$with_gnu_ld" = no; then
10074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075 hardcode_libdir_separator=:
d7040cdb 10076
ce2cded5
L
10077 case $host_cpu in
10078 hppa*64*|ia64*)
10079 hardcode_direct=no
10080 hardcode_shlibpath_var=no
10081 ;;
10082 *)
10083 hardcode_direct=yes
10084 hardcode_direct_absolute=yes
10085 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10086
ce2cded5
L
10087 # hardcode_minus_L: Not really in the search PATH,
10088 # but as the default location of the library.
10089 hardcode_minus_L=yes
10090 ;;
10091 esac
10092 fi
10093 ;;
d7040cdb 10094
ce2cded5
L
10095 irix5* | irix6* | nonstopux*)
10096 if test "$GCC" = yes; then
3725885a 10097 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
10098 # Try to use the -exported_symbol ld option, if it does not
10099 # work, assume that -exports_file does not work either and
10100 # implicitly export all symbols.
10101 save_LDFLAGS="$LDFLAGS"
10102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h. */
ce2cded5
L
10105int foo(void) {}
10106_ACEOF
81ecdfbb 10107if ac_fn_c_try_link "$LINENO"; then :
3725885a 10108 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 10109
ce2cded5 10110fi
81ecdfbb
RW
10111rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10113 LDFLAGS="$save_LDFLAGS"
10114 else
3725885a
RW
10115 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'
10116 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
10117 fi
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 inherit_rpath=yes
10122 link_all_deplibs=yes
10123 ;;
d7040cdb 10124
ce2cded5
L
10125 netbsd*)
10126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10128 else
10129 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10130 fi
10131 hardcode_libdir_flag_spec='-R$libdir'
10132 hardcode_direct=yes
10133 hardcode_shlibpath_var=no
10134 ;;
d7040cdb 10135
ce2cded5
L
10136 newsos6)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_direct=yes
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141 hardcode_shlibpath_var=no
10142 ;;
d7040cdb 10143
ce2cded5
L
10144 *nto* | *qnx*)
10145 ;;
d7040cdb 10146
ce2cded5 10147 openbsd*)
b214d478
SE
10148 if test -f /usr/libexec/ld.so; then
10149 hardcode_direct=yes
10150 hardcode_shlibpath_var=no
10151 hardcode_direct_absolute=yes
10152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10154 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10156 export_dynamic_flag_spec='${wl}-E'
10157 else
10158 case $host_os in
10159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_libdir_flag_spec='-R$libdir'
10162 ;;
10163 *)
10164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 ;;
10167 esac
10168 fi
10169 else
10170 ld_shlibs=no
ce2cded5
L
10171 fi
10172 ;;
d7040cdb 10173
ce2cded5
L
10174 os2*)
10175 hardcode_libdir_flag_spec='-L$libdir'
10176 hardcode_minus_L=yes
10177 allow_undefined_flag=unsupported
3725885a 10178 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
10179 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10180 ;;
d7040cdb 10181
ce2cded5
L
10182 osf3*)
10183 if test "$GCC" = yes; then
10184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10185 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
10186 else
10187 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10188 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
10189 fi
10190 archive_cmds_need_lc='no'
10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192 hardcode_libdir_separator=:
10193 ;;
d7040cdb 10194
ce2cded5
L
10195 osf4* | osf5*) # as osf3* with the addition of -msym flag
10196 if test "$GCC" = yes; then
10197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10198 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
10199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200 else
10201 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10202 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 10203 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 10204 $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 10205
ce2cded5
L
10206 # Both c and cxx compiler support -rpath directly
10207 hardcode_libdir_flag_spec='-rpath $libdir'
10208 fi
10209 archive_cmds_need_lc='no'
10210 hardcode_libdir_separator=:
10211 ;;
d7040cdb 10212
ce2cded5
L
10213 solaris*)
10214 no_undefined_flag=' -z defs'
10215 if test "$GCC" = yes; then
10216 wlarc='${wl}'
10217 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10219 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10220 else
10221 case `$CC -V 2>&1` in
10222 *"Compilers 5.0"*)
10223 wlarc=''
10224 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10227 ;;
10228 *)
10229 wlarc='${wl}'
10230 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233 ;;
10234 esac
10235 fi
10236 hardcode_libdir_flag_spec='-R$libdir'
10237 hardcode_shlibpath_var=no
10238 case $host_os in
10239 solaris2.[0-5] | solaris2.[0-5].*) ;;
10240 *)
10241 # The compiler driver will combine and reorder linker options,
10242 # but understands `-z linker_flag'. GCC discards it without `$wl',
10243 # but is careful enough not to reorder.
10244 # Supported since Solaris 2.6 (maybe 2.5.1?)
10245 if test "$GCC" = yes; then
10246 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10247 else
10248 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10249 fi
10250 ;;
10251 esac
10252 link_all_deplibs=yes
10253 ;;
d7040cdb 10254
ce2cded5
L
10255 sunos4*)
10256 if test "x$host_vendor" = xsequent; then
10257 # Use $CC to link under sequent, because it throws in some extra .o
10258 # files that make .init and .fini sections work.
10259 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10260 else
10261 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10262 fi
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_direct=yes
10265 hardcode_minus_L=yes
10266 hardcode_shlibpath_var=no
10267 ;;
d7040cdb 10268
ce2cded5
L
10269 sysv4)
10270 case $host_vendor in
10271 sni)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_direct=yes # is this really true???
10274 ;;
10275 siemens)
10276 ## LD is ld it makes a PLAMLIB
10277 ## CC just makes a GrossModule.
10278 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10279 reload_cmds='$CC -r -o $output$reload_objs'
10280 hardcode_direct=no
10281 ;;
10282 motorola)
10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10285 ;;
10286 esac
10287 runpath_var='LD_RUN_PATH'
10288 hardcode_shlibpath_var=no
10289 ;;
d7040cdb 10290
ce2cded5
L
10291 sysv4.3*)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_shlibpath_var=no
10294 export_dynamic_flag_spec='-Bexport'
10295 ;;
d7040cdb 10296
ce2cded5
L
10297 sysv4*MP*)
10298 if test -d /usr/nec; then
10299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_shlibpath_var=no
10301 runpath_var=LD_RUN_PATH
10302 hardcode_runpath_var=yes
10303 ld_shlibs=yes
10304 fi
10305 ;;
d7040cdb 10306
ce2cded5
L
10307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10308 no_undefined_flag='${wl}-z,text'
10309 archive_cmds_need_lc=no
10310 hardcode_shlibpath_var=no
10311 runpath_var='LD_RUN_PATH'
d7040cdb 10312
ce2cded5
L
10313 if test "$GCC" = yes; then
10314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 else
10317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 fi
10320 ;;
d7040cdb 10321
ce2cded5
L
10322 sysv5* | sco3.2v5* | sco5v6*)
10323 # Note: We can NOT use -z defs as we might desire, because we do not
10324 # link with -lc, and that would cause any symbols used from libc to
10325 # always be unresolved, which means just about no library would
10326 # ever link correctly. If we're not using GNU ld we use -z text
10327 # though, which does catch some bad symbols but isn't as heavy-handed
10328 # as -z defs.
10329 no_undefined_flag='${wl}-z,text'
10330 allow_undefined_flag='${wl}-z,nodefs'
10331 archive_cmds_need_lc=no
10332 hardcode_shlibpath_var=no
10333 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10334 hardcode_libdir_separator=':'
10335 link_all_deplibs=yes
10336 export_dynamic_flag_spec='${wl}-Bexport'
10337 runpath_var='LD_RUN_PATH'
d7040cdb 10338
ce2cded5
L
10339 if test "$GCC" = yes; then
10340 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 fi
10346 ;;
d7040cdb 10347
ce2cded5
L
10348 uts4*)
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_shlibpath_var=no
10352 ;;
d7040cdb 10353
ce2cded5
L
10354 *)
10355 ld_shlibs=no
10356 ;;
10357 esac
d7040cdb 10358
ce2cded5
L
10359 if test x$host_vendor = xsni; then
10360 case $host in
10361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10362 export_dynamic_flag_spec='${wl}-Blargedynsym'
10363 ;;
10364 esac
10365 fi
10366 fi
d7040cdb 10367
81ecdfbb
RW
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10369$as_echo "$ld_shlibs" >&6; }
ce2cded5 10370test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10371
ce2cded5 10372with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
ce2cded5
L
10388#
10389# Do we need to explicitly link libc?
10390#
10391case "x$archive_cmds_need_lc" in
10392x|xyes)
10393 # Assume -lc should be added
10394 archive_cmds_need_lc=yes
d7040cdb 10395
ce2cded5
L
10396 if test "$enable_shared" = yes && test "$GCC" = yes; then
10397 case $archive_cmds in
10398 *'~'*)
10399 # FIXME: we may have to deal with multi-command sequences.
10400 ;;
10401 '$CC '*)
10402 # Test whether the compiler implicitly links with -lc since on some
10403 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10404 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10406$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10407if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
39144654
RW
10409else
10410 $RM conftest*
10411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10412
81ecdfbb 10413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10414 (eval $ac_compile) 2>&5
10415 ac_status=$?
81ecdfbb
RW
10416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10417 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10418 soname=conftest
10419 lib=conftest
10420 libobjs=conftest.$ac_objext
10421 deplibs=
10422 wl=$lt_prog_compiler_wl
10423 pic_flag=$lt_prog_compiler_pic
10424 compiler_flags=-v
10425 linker_flags=-v
10426 verstring=
10427 output_objdir=.
10428 libname=conftest
10429 lt_save_allow_undefined_flag=$allow_undefined_flag
10430 allow_undefined_flag=
81ecdfbb 10431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10432 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10433 ac_status=$?
81ecdfbb
RW
10434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435 test $ac_status = 0; }
39144654
RW
10436 then
10437 lt_cv_archive_cmds_need_lc=no
10438 else
10439 lt_cv_archive_cmds_need_lc=yes
10440 fi
10441 allow_undefined_flag=$lt_save_allow_undefined_flag
10442 else
10443 cat conftest.err 1>&5
10444 fi
10445 $RM conftest*
10446
10447fi
81ecdfbb
RW
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10449$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10450 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10451 ;;
10452 esac
10453 fi
10454 ;;
10455esac
d7040cdb
SE
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
d7040cdb 10483
d7040cdb 10484
d7040cdb
SE
10485
10486
10487
10488
10489
10490
d7040cdb 10491
d7040cdb 10492
d7040cdb 10493
d7040cdb 10494
d7040cdb 10495
d7040cdb 10496
d7040cdb 10497
d7040cdb 10498
d7040cdb 10499
d7040cdb 10500
d7040cdb 10501
d7040cdb 10502
d7040cdb 10503
d7040cdb 10504
d7040cdb 10505
d7040cdb 10506
d7040cdb 10507
d7040cdb 10508
d7040cdb 10509
d7040cdb 10510
d7040cdb 10511
d7040cdb 10512
d7040cdb 10513
d7040cdb 10514
d7040cdb 10515
d7040cdb 10516
d7040cdb 10517
d7040cdb 10518
ce2cded5
L
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
81ecdfbb
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10614$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10615
10616if test "$GCC" = yes; then
ce2cded5
L
10617 case $host_os in
10618 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10619 *) lt_awk_arg="/^libraries:/" ;;
10620 esac
3725885a
RW
10621 case $host_os in
10622 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10623 *) lt_sed_strip_eq="s,=/,/,g" ;;
10624 esac
10625 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10626 case $lt_search_path_spec in
10627 *\;*)
ce2cded5
L
10628 # if the path contains ";" then we assume it to be the separator
10629 # otherwise default to the standard path separator (i.e. ":") - it is
10630 # assumed that no part of a normal pathname contains ";" but that should
10631 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10633 ;;
10634 *)
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10636 ;;
10637 esac
ce2cded5
L
10638 # Ok, now we have the path, separated by spaces, we can step through it
10639 # and add multilib dir if necessary.
10640 lt_tmp_lt_search_path_spec=
10641 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10642 for lt_sys_path in $lt_search_path_spec; do
10643 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10645 else
10646 test -d "$lt_sys_path" && \
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10648 fi
10649 done
3725885a 10650 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10651BEGIN {RS=" "; FS="/|\n";} {
10652 lt_foo="";
10653 lt_count=0;
10654 for (lt_i = NF; lt_i > 0; lt_i--) {
10655 if ($lt_i != "" && $lt_i != ".") {
10656 if ($lt_i == "..") {
10657 lt_count++;
10658 } else {
10659 if (lt_count == 0) {
10660 lt_foo="/" $lt_i lt_foo;
10661 } else {
10662 lt_count--;
10663 }
10664 }
10665 }
10666 }
10667 if (lt_foo != "") { lt_freq[lt_foo]++; }
10668 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10669}'`
3725885a
RW
10670 # AWK program above erroneously prepends '/' to C:/dos/paths
10671 # for these hosts.
10672 case $host_os in
10673 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10674 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10675 esac
10676 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10677else
ce2cded5
L
10678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10679fi
10680library_names_spec=
10681libname_spec='lib$name'
10682soname_spec=
10683shrext_cmds=".so"
10684postinstall_cmds=
10685postuninstall_cmds=
10686finish_cmds=
10687finish_eval=
10688shlibpath_var=
10689shlibpath_overrides_runpath=unknown
10690version_type=none
10691dynamic_linker="$host_os ld.so"
10692sys_lib_dlsearch_path_spec="/lib /usr/lib"
10693need_lib_prefix=unknown
10694hardcode_into_libs=no
10695
10696# when you set need_version to no, make sure it does not cause -set_version
10697# flags to be left without arguments
10698need_version=unknown
10699
10700case $host_os in
10701aix3*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10704 shlibpath_var=LIBPATH
10705
10706 # AIX 3 has no versioning support, so we append a major version to the name.
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 ;;
10709
50e7d84b 10710aix[4-9]*)
ce2cded5
L
10711 version_type=linux
10712 need_lib_prefix=no
10713 need_version=no
10714 hardcode_into_libs=yes
10715 if test "$host_cpu" = ia64; then
10716 # AIX 5 supports IA64
10717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 else
10720 # With GCC up to 2.95.x, collect2 would create an import file
10721 # for dependence libraries. The import file would start with
10722 # the line `#! .'. This would cause the generated library to
10723 # depend on `.', always an invalid library. This was fixed in
10724 # development snapshots of GCC prior to 3.0.
10725 case $host_os in
10726 aix4 | aix4.[01] | aix4.[01].*)
10727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10728 echo ' yes '
10729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10730 :
10731 else
10732 can_build_shared=no
10733 fi
10734 ;;
10735 esac
10736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10737 # soname into executable. Probably we can add versioning support to
10738 # collect2, so additional links can be useful in future.
10739 if test "$aix_use_runtimelinking" = yes; then
10740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10741 # instead of lib<name>.a to let people know that these are not
10742 # typical AIX shared libraries.
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 else
10745 # We preserve .a as extension for shared libraries through AIX4.2
10746 # and later when we are not doing run time linking.
10747 library_names_spec='${libname}${release}.a $libname.a'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 fi
10750 shlibpath_var=LIBPATH
10751 fi
10752 ;;
10753
10754amigaos*)
b214d478
SE
10755 case $host_cpu in
10756 powerpc)
10757 # Since July 2007 AmigaOS4 officially supports .so libraries.
10758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 ;;
10761 m68k)
ce2cded5
L
10762 library_names_spec='$libname.ixlibrary $libname.a'
10763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10764 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
10765 ;;
10766 esac
ce2cded5
L
10767 ;;
10768
10769beos*)
10770 library_names_spec='${libname}${shared_ext}'
10771 dynamic_linker="$host_os ld.so"
10772 shlibpath_var=LIBRARY_PATH
10773 ;;
10774
10775bsdi[45]*)
10776 version_type=linux
10777 need_version=no
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10784 # the default ld.so.conf also contains /usr/contrib/lib and
10785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10786 # libtool to hard-code these into programs
10787 ;;
10788
b214d478 10789cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10790 version_type=windows
10791 shrext_cmds=".dll"
10792 need_version=no
10793 need_lib_prefix=no
10794
b214d478
SE
10795 case $GCC,$host_os in
10796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10797 library_names_spec='$libname.dll.a'
10798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10799 postinstall_cmds='base_file=`basename \${file}`~
10800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10801 dldir=$destdir/`dirname \$dlpath`~
10802 test -d \$dldir || mkdir -p \$dldir~
10803 $install_prog $dir/$dlname \$dldir/$dlname~
10804 chmod a+x \$dldir/$dlname~
10805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10807 fi'
10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809 dlpath=$dir/\$dldll~
10810 $RM \$dlpath'
10811 shlibpath_overrides_runpath=yes
10812
10813 case $host_os in
10814 cygwin*)
10815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10817
10818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10819 ;;
b214d478 10820 mingw* | cegcc*)
ce2cded5
L
10821 # MinGW DLLs use traditional 'lib' prefix
10822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10823 ;;
10824 pw32*)
10825 # pw32 DLLs use 'pw' prefix rather than 'lib'
10826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827 ;;
10828 esac
10829 ;;
10830
10831 *)
10832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10833 ;;
10834 esac
10835 dynamic_linker='Win32 ld.exe'
10836 # FIXME: first we should search . and the directory the executable is in
10837 shlibpath_var=PATH
10838 ;;
10839
10840darwin* | rhapsody*)
10841 dynamic_linker="$host_os dyld"
10842 version_type=darwin
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846 soname_spec='${libname}${release}${major}$shared_ext'
10847 shlibpath_overrides_runpath=yes
10848 shlibpath_var=DYLD_LIBRARY_PATH
10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853 ;;
10854
10855dgux*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 ;;
10863
ce2cded5
L
10864freebsd* | dragonfly*)
10865 # DragonFly does not have aout. When/if they implement a new
10866 # versioning mechanism, adjust this.
10867 if test -x /usr/bin/objformat; then
10868 objformat=`/usr/bin/objformat`
10869 else
10870 case $host_os in
6d2920c8 10871 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10872 *) objformat=elf ;;
10873 esac
10874 fi
10875 version_type=freebsd-$objformat
10876 case $version_type in
10877 freebsd-elf*)
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 need_version=no
10880 need_lib_prefix=no
10881 ;;
10882 freebsd-*)
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884 need_version=yes
10885 ;;
10886 esac
10887 shlibpath_var=LD_LIBRARY_PATH
10888 case $host_os in
6d2920c8 10889 freebsd2.*)
ce2cded5
L
10890 shlibpath_overrides_runpath=yes
10891 ;;
10892 freebsd3.[01]* | freebsdelf3.[01]*)
10893 shlibpath_overrides_runpath=yes
10894 hardcode_into_libs=yes
10895 ;;
10896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10900 ;;
10901 *) # from 4.6 on, and DragonFly
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 ;;
10905 esac
10906 ;;
10907
10908gnu*)
10909 version_type=linux
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 hardcode_into_libs=yes
10916 ;;
10917
3725885a
RW
10918haiku*)
10919 version_type=linux
10920 need_lib_prefix=no
10921 need_version=no
10922 dynamic_linker="$host_os runtime_loader"
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes
10927 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10928 hardcode_into_libs=yes
10929 ;;
10930
ce2cded5
L
10931hpux9* | hpux10* | hpux11*)
10932 # Give a soname corresponding to the major version so that dld.sl refuses to
10933 # link against other versions.
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 case $host_cpu in
10938 ia64*)
10939 shrext_cmds='.so'
10940 hardcode_into_libs=yes
10941 dynamic_linker="$host_os dld.so"
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 if test "X$HPUX_IA64_MODE" = X32; then
10947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948 else
10949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10950 fi
10951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10952 ;;
10953 hppa*64*)
10954 shrext_cmds='.sl'
10955 hardcode_into_libs=yes
10956 dynamic_linker="$host_os dld.sl"
10957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963 ;;
10964 *)
10965 shrext_cmds='.sl'
10966 dynamic_linker="$host_os dld.sl"
10967 shlibpath_var=SHLIB_PATH
10968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 ;;
10972 esac
3725885a 10973 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10974 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10975 # or fails outright, so override atomically:
10976 install_override_mode=555
ce2cded5
L
10977 ;;
10978
10979interix[3-9]*)
10980 version_type=linux
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10989 ;;
10990
10991irix5* | irix6* | nonstopux*)
10992 case $host_os in
10993 nonstopux*) version_type=nonstopux ;;
10994 *)
10995 if test "$lt_cv_prog_gnu_ld" = yes; then
10996 version_type=linux
10997 else
10998 version_type=irix
10999 fi ;;
11000 esac
11001 need_lib_prefix=no
11002 need_version=no
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11005 case $host_os in
11006 irix5* | nonstopux*)
11007 libsuff= shlibsuff=
11008 ;;
11009 *)
11010 case $LD in # libtool.m4 will add one of these switches to LD
11011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012 libsuff= shlibsuff= libmagic=32-bit;;
11013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014 libsuff=32 shlibsuff=N32 libmagic=N32;;
11015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017 *) libsuff= shlibsuff= libmagic=never-match;;
11018 esac
11019 ;;
11020 esac
11021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022 shlibpath_overrides_runpath=no
11023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025 hardcode_into_libs=yes
11026 ;;
11027
11028# No shared lib support for Linux oldld, aout, or coff.
11029linux*oldld* | linux*aout* | linux*coff*)
11030 dynamic_linker=no
11031 ;;
11032
11033# This must be Linux ELF.
58e24671 11034linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11035 version_type=linux
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
39144654 11043
ce2cded5 11044 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11045 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
39144654
RW
11047else
11048 lt_cv_shlibpath_overrides_runpath=no
11049 save_LDFLAGS=$LDFLAGS
11050 save_libdir=$libdir
11051 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11052 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11054/* end confdefs.h. */
11055
d7040cdb
SE
11056int
11057main ()
11058{
ce2cded5 11059
d7040cdb
SE
11060 ;
11061 return 0;
11062}
11063_ACEOF
81ecdfbb
RW
11064if ac_fn_c_try_link "$LINENO"; then :
11065 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11066 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11067fi
d7040cdb 11068fi
81ecdfbb
RW
11069rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11071 LDFLAGS=$save_LDFLAGS
11072 libdir=$save_libdir
11073
11074fi
11075
11076 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11077
ce2cded5
L
11078 # This implies no fast_install, which is unacceptable.
11079 # Some rework will be needed to allow for fast_install
11080 # before this can be enabled.
11081 hardcode_into_libs=yes
d7040cdb 11082
ce2cded5
L
11083 # Append ld.so.conf contents to the search path
11084 if test -f /etc/ld.so.conf; then
3725885a 11085 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
11086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11087 fi
d7040cdb 11088
ce2cded5
L
11089 # We used to test for /lib/ld.so.1 and disable shared libraries on
11090 # powerpc, because MkLinux only supported shared libraries with the
11091 # GNU dynamic linker. Since this was broken with cross compilers,
11092 # most powerpc-linux boxes support dynamic linking these days and
11093 # people can always --disable-shared, the test was removed, and we
11094 # assume the GNU/Linux dynamic linker is in use.
11095 dynamic_linker='GNU/Linux ld.so'
11096 ;;
d7040cdb 11097
ce2cded5
L
11098netbsd*)
11099 version_type=sunos
11100 need_lib_prefix=no
11101 need_version=no
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105 dynamic_linker='NetBSD (a.out) ld.so'
11106 else
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 dynamic_linker='NetBSD ld.elf_so'
11110 fi
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11113 hardcode_into_libs=yes
11114 ;;
d7040cdb 11115
ce2cded5
L
11116newsos6)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11121 ;;
d7040cdb 11122
ce2cded5
L
11123*nto* | *qnx*)
11124 version_type=qnx
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 dynamic_linker='ldqnx.so'
11133 ;;
d7040cdb 11134
ce2cded5
L
11135openbsd*)
11136 version_type=sunos
11137 sys_lib_dlsearch_path_spec="/usr/lib"
11138 need_lib_prefix=no
11139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11140 case $host_os in
11141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11142 *) need_version=no ;;
11143 esac
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 case $host_os in
11149 openbsd2.[89] | openbsd2.[89].*)
11150 shlibpath_overrides_runpath=no
11151 ;;
11152 *)
11153 shlibpath_overrides_runpath=yes
11154 ;;
11155 esac
11156 else
11157 shlibpath_overrides_runpath=yes
11158 fi
11159 ;;
d7040cdb 11160
ce2cded5
L
11161os2*)
11162 libname_spec='$name'
11163 shrext_cmds=".dll"
11164 need_lib_prefix=no
11165 library_names_spec='$libname${shared_ext} $libname.a'
11166 dynamic_linker='OS/2 ld.exe'
11167 shlibpath_var=LIBPATH
11168 ;;
d7040cdb 11169
ce2cded5
L
11170osf3* | osf4* | osf5*)
11171 version_type=osf
11172 need_lib_prefix=no
11173 need_version=no
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11179 ;;
d7040cdb 11180
ce2cded5
L
11181rdos*)
11182 dynamic_linker=no
11183 ;;
d7040cdb 11184
ce2cded5
L
11185solaris*)
11186 version_type=linux
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11194 # ldd complains unless libraries are executable
11195 postinstall_cmds='chmod +x $lib'
11196 ;;
d7040cdb 11197
ce2cded5
L
11198sunos4*)
11199 version_type=sunos
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=yes
11204 if test "$with_gnu_ld" = yes; then
11205 need_lib_prefix=no
11206 fi
11207 need_version=yes
11208 ;;
d7040cdb 11209
ce2cded5
L
11210sysv4 | sysv4.3*)
11211 version_type=linux
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 case $host_vendor in
11216 sni)
11217 shlibpath_overrides_runpath=no
11218 need_lib_prefix=no
11219 runpath_var=LD_RUN_PATH
11220 ;;
11221 siemens)
11222 need_lib_prefix=no
11223 ;;
11224 motorola)
11225 need_lib_prefix=no
11226 need_version=no
11227 shlibpath_overrides_runpath=no
11228 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11229 ;;
11230 esac
11231 ;;
d7040cdb 11232
ce2cded5
L
11233sysv4*MP*)
11234 if test -d /usr/nec ;then
11235 version_type=linux
11236 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11237 soname_spec='$libname${shared_ext}.$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 fi
11240 ;;
d7040cdb 11241
ce2cded5
L
11242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11243 version_type=freebsd-elf
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11251 if test "$with_gnu_ld" = yes; then
11252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11253 else
11254 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11255 case $host_os in
11256 sco3.2v5*)
11257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11258 ;;
11259 esac
11260 fi
11261 sys_lib_dlsearch_path_spec='/usr/lib'
11262 ;;
d7040cdb 11263
ce2cded5
L
11264tpf*)
11265 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11266 version_type=linux
11267 need_lib_prefix=no
11268 need_version=no
b214d478 11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=no
11272 hardcode_into_libs=yes
11273 ;;
d7040cdb 11274
ce2cded5
L
11275uts4*)
11276 version_type=linux
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 ;;
d7040cdb 11281
ce2cded5
L
11282*)
11283 dynamic_linker=no
11284 ;;
11285esac
81ecdfbb
RW
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11287$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11288test "$dynamic_linker" = no && can_build_shared=no
11289
11290variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11291if test "$GCC" = yes; then
11292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11293fi
11294
b214d478
SE
11295if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11296 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11297fi
11298if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11299 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11300fi
11301
d7040cdb
SE
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
d7040cdb 11313
d7040cdb 11314
d7040cdb 11315
d7040cdb 11316
d7040cdb
SE
11317
11318
11319
11320
d7040cdb 11321
d7040cdb
SE
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
d7040cdb
SE
11335
11336
11337
11338
d7040cdb
SE
11339
11340
11341
11342
d7040cdb 11343
d7040cdb 11344
d7040cdb 11345
d7040cdb 11346
d7040cdb 11347
d7040cdb 11348
d7040cdb 11349
d7040cdb
SE
11350
11351
11352
11353
11354
d7040cdb 11355
d7040cdb 11356
d7040cdb 11357
d7040cdb 11358
d7040cdb 11359
d7040cdb 11360
d7040cdb
SE
11361
11362
11363
11364
11365
d7040cdb
SE
11366
11367
d7040cdb 11368
d7040cdb 11369
d7040cdb 11370
d7040cdb 11371
ce2cded5
L
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
3725885a
RW
11382
11383
11384
11385
11386
ce2cded5
L
11387
11388
11389
11390
11391
11392
81ecdfbb
RW
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11394$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11395hardcode_action=
11396if test -n "$hardcode_libdir_flag_spec" ||
11397 test -n "$runpath_var" ||
11398 test "X$hardcode_automatic" = "Xyes" ; then
11399
11400 # We can hardcode non-existent directories.
11401 if test "$hardcode_direct" != no &&
11402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11403 # have to relink, otherwise we might link with an installed library
11404 # when we should be linking with a yet-to-be-installed one
11405 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11406 test "$hardcode_minus_L" != no; then
11407 # Linking always hardcodes the temporary library directory.
11408 hardcode_action=relink
11409 else
11410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11411 hardcode_action=immediate
d7040cdb 11412 fi
d7040cdb 11413else
ce2cded5
L
11414 # We cannot hardcode anything, or else we can only hardcode existing
11415 # directories.
11416 hardcode_action=unsupported
d7040cdb 11417fi
81ecdfbb
RW
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11419$as_echo "$hardcode_action" >&6; }
d7040cdb 11420
ce2cded5
L
11421if test "$hardcode_action" = relink ||
11422 test "$inherit_rpath" = yes; then
11423 # Fast installation is not supported
11424 enable_fast_install=no
11425elif test "$shlibpath_overrides_runpath" = yes ||
11426 test "$enable_shared" = no; then
11427 # Fast installation is not necessary
11428 enable_fast_install=needless
d7040cdb
SE
11429fi
11430
d7040cdb 11431
d7040cdb 11432
d7040cdb 11433
d7040cdb 11434
d7040cdb 11435
ce2cded5
L
11436 if test "x$enable_dlopen" != xyes; then
11437 enable_dlopen=unknown
11438 enable_dlopen_self=unknown
11439 enable_dlopen_self_static=unknown
d7040cdb 11440else
ce2cded5
L
11441 lt_cv_dlopen=no
11442 lt_cv_dlopen_libs=
d7040cdb 11443
ce2cded5
L
11444 case $host_os in
11445 beos*)
11446 lt_cv_dlopen="load_add_on"
11447 lt_cv_dlopen_libs=
11448 lt_cv_dlopen_self=yes
11449 ;;
d7040cdb 11450
b214d478 11451 mingw* | pw32* | cegcc*)
ce2cded5
L
11452 lt_cv_dlopen="LoadLibrary"
11453 lt_cv_dlopen_libs=
11454 ;;
11455
11456 cygwin*)
11457 lt_cv_dlopen="dlopen"
11458 lt_cv_dlopen_libs=
11459 ;;
11460
11461 darwin*)
11462 # if libdl is installed we need to link against it
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11464$as_echo_n "checking for dlopen in -ldl... " >&6; }
11465if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
d7040cdb 11467else
ce2cded5
L
11468 ac_check_lib_save_LIBS=$LIBS
11469LIBS="-ldl $LIBS"
81ecdfbb 11470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11471/* end confdefs.h. */
11472
81ecdfbb
RW
11473/* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
ce2cded5
L
11476#ifdef __cplusplus
11477extern "C"
11478#endif
ce2cded5
L
11479char dlopen ();
11480int
11481main ()
11482{
81ecdfbb 11483return dlopen ();
ce2cded5
L
11484 ;
11485 return 0;
11486}
11487_ACEOF
81ecdfbb 11488if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11489 ac_cv_lib_dl_dlopen=yes
11490else
81ecdfbb 11491 ac_cv_lib_dl_dlopen=no
d7040cdb 11492fi
81ecdfbb
RW
11493rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11495LIBS=$ac_check_lib_save_LIBS
d7040cdb 11496fi
81ecdfbb
RW
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11498$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11499if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11501else
d7040cdb 11502
ce2cded5
L
11503 lt_cv_dlopen="dyld"
11504 lt_cv_dlopen_libs=
11505 lt_cv_dlopen_self=yes
11506
d7040cdb 11507fi
ce2cded5
L
11508
11509 ;;
11510
11511 *)
81ecdfbb
RW
11512 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11513if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11514 lt_cv_dlopen="shl_load"
11515else
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11517$as_echo_n "checking for shl_load in -ldld... " >&6; }
11518if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
ce2cded5
L
11520else
11521 ac_check_lib_save_LIBS=$LIBS
11522LIBS="-ldld $LIBS"
81ecdfbb 11523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11524/* end confdefs.h. */
d7040cdb 11525
81ecdfbb
RW
11526/* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
ce2cded5
L
11529#ifdef __cplusplus
11530extern "C"
11531#endif
ce2cded5
L
11532char shl_load ();
11533int
11534main ()
11535{
81ecdfbb 11536return shl_load ();
ce2cded5
L
11537 ;
11538 return 0;
11539}
11540_ACEOF
81ecdfbb 11541if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11542 ac_cv_lib_dld_shl_load=yes
11543else
81ecdfbb 11544 ac_cv_lib_dld_shl_load=no
ce2cded5 11545fi
81ecdfbb
RW
11546rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11548LIBS=$ac_check_lib_save_LIBS
11549fi
81ecdfbb
RW
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11551$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11552if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11554else
81ecdfbb
RW
11555 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11556if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11557 lt_cv_dlopen="dlopen"
11558else
81ecdfbb
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11560$as_echo_n "checking for dlopen in -ldl... " >&6; }
11561if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
d7040cdb 11563else
ce2cded5
L
11564 ac_check_lib_save_LIBS=$LIBS
11565LIBS="-ldl $LIBS"
81ecdfbb 11566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11567/* end confdefs.h. */
11568
81ecdfbb
RW
11569/* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
ce2cded5
L
11572#ifdef __cplusplus
11573extern "C"
11574#endif
ce2cded5 11575char dlopen ();
d7040cdb
SE
11576int
11577main ()
11578{
81ecdfbb 11579return dlopen ();
d7040cdb
SE
11580 ;
11581 return 0;
11582}
11583_ACEOF
81ecdfbb 11584if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11585 ac_cv_lib_dl_dlopen=yes
d7040cdb 11586else
81ecdfbb 11587 ac_cv_lib_dl_dlopen=no
d7040cdb 11588fi
81ecdfbb
RW
11589rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11591LIBS=$ac_check_lib_save_LIBS
d7040cdb 11592fi
81ecdfbb
RW
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11594$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11595if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11597else
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11599$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11600if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
d7040cdb 11602else
ce2cded5
L
11603 ac_check_lib_save_LIBS=$LIBS
11604LIBS="-lsvld $LIBS"
81ecdfbb 11605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11606/* end confdefs.h. */
d7040cdb 11607
81ecdfbb
RW
11608/* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
ce2cded5
L
11611#ifdef __cplusplus
11612extern "C"
11613#endif
ce2cded5 11614char dlopen ();
d7040cdb
SE
11615int
11616main ()
11617{
81ecdfbb 11618return dlopen ();
d7040cdb
SE
11619 ;
11620 return 0;
11621}
11622_ACEOF
81ecdfbb 11623if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11624 ac_cv_lib_svld_dlopen=yes
d7040cdb 11625else
81ecdfbb 11626 ac_cv_lib_svld_dlopen=no
d7040cdb 11627fi
81ecdfbb
RW
11628rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11630LIBS=$ac_check_lib_save_LIBS
d7040cdb 11631fi
81ecdfbb
RW
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11633$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11634if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636else
81ecdfbb
RW
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11638$as_echo_n "checking for dld_link in -ldld... " >&6; }
11639if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
ce2cded5
L
11641else
11642 ac_check_lib_save_LIBS=$LIBS
11643LIBS="-ldld $LIBS"
81ecdfbb 11644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11645/* end confdefs.h. */
11646
81ecdfbb
RW
11647/* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
ce2cded5
L
11650#ifdef __cplusplus
11651extern "C"
11652#endif
ce2cded5 11653char dld_link ();
d7040cdb
SE
11654int
11655main ()
11656{
81ecdfbb 11657return dld_link ();
d7040cdb
SE
11658 ;
11659 return 0;
11660}
11661_ACEOF
81ecdfbb 11662if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11663 ac_cv_lib_dld_dld_link=yes
d7040cdb 11664else
81ecdfbb 11665 ac_cv_lib_dld_dld_link=no
d7040cdb 11666fi
81ecdfbb
RW
11667rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11669LIBS=$ac_check_lib_save_LIBS
11670fi
81ecdfbb
RW
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11672$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11673if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11675fi
11676
11677
11678fi
11679
11680
11681fi
11682
11683
11684fi
11685
11686
11687fi
11688
11689
11690fi
11691
11692 ;;
11693 esac
11694
11695 if test "x$lt_cv_dlopen" != xno; then
11696 enable_dlopen=yes
11697 else
11698 enable_dlopen=no
11699 fi
11700
11701 case $lt_cv_dlopen in
11702 dlopen)
11703 save_CPPFLAGS="$CPPFLAGS"
11704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11705
11706 save_LDFLAGS="$LDFLAGS"
11707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11708
11709 save_LIBS="$LIBS"
11710 LIBS="$lt_cv_dlopen_libs $LIBS"
11711
81ecdfbb
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11713$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11714if test "${lt_cv_dlopen_self+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
ce2cded5
L
11716else
11717 if test "$cross_compiling" = yes; then :
11718 lt_cv_dlopen_self=cross
11719else
11720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11721 lt_status=$lt_dlunknown
11722 cat > conftest.$ac_ext <<_LT_EOF
d9816402 11723#line 11723 "configure"
ce2cded5
L
11724#include "confdefs.h"
11725
11726#if HAVE_DLFCN_H
11727#include <dlfcn.h>
11728#endif
11729
11730#include <stdio.h>
11731
11732#ifdef RTLD_GLOBAL
11733# define LT_DLGLOBAL RTLD_GLOBAL
11734#else
11735# ifdef DL_GLOBAL
11736# define LT_DLGLOBAL DL_GLOBAL
11737# else
11738# define LT_DLGLOBAL 0
11739# endif
11740#endif
11741
11742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11743 find out it does not work in some platform. */
11744#ifndef LT_DLLAZY_OR_NOW
11745# ifdef RTLD_LAZY
11746# define LT_DLLAZY_OR_NOW RTLD_LAZY
11747# else
11748# ifdef DL_LAZY
11749# define LT_DLLAZY_OR_NOW DL_LAZY
11750# else
11751# ifdef RTLD_NOW
11752# define LT_DLLAZY_OR_NOW RTLD_NOW
11753# else
11754# ifdef DL_NOW
11755# define LT_DLLAZY_OR_NOW DL_NOW
11756# else
11757# define LT_DLLAZY_OR_NOW 0
11758# endif
11759# endif
11760# endif
11761# endif
11762#endif
11763
3725885a
RW
11764/* When -fvisbility=hidden is used, assume the code has been annotated
11765 correspondingly for the symbols needed. */
11766#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11767void fnord () __attribute__((visibility("default")));
11768#endif
11769
11770void fnord () { int i=42; }
ce2cded5 11771int main ()
d7040cdb 11772{
ce2cded5
L
11773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11774 int status = $lt_dlunknown;
11775
11776 if (self)
11777 {
11778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11779 else
11780 {
11781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11782 else puts (dlerror ());
11783 }
ce2cded5
L
11784 /* dlclose (self); */
11785 }
11786 else
11787 puts (dlerror ());
11788
b214d478 11789 return status;
d7040cdb 11790}
ce2cded5 11791_LT_EOF
81ecdfbb 11792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11793 (eval $ac_link) 2>&5
d7040cdb 11794 ac_status=$?
81ecdfbb
RW
11795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11797 (./conftest; exit; ) >&5 2>/dev/null
11798 lt_status=$?
11799 case x$lt_status in
11800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11803 esac
11804 else :
11805 # compilation failed
11806 lt_cv_dlopen_self=no
11807 fi
11808fi
11809rm -fr conftest*
11810
11811
11812fi
81ecdfbb
RW
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11814$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11815
11816 if test "x$lt_cv_dlopen_self" = xyes; then
11817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11819$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11820if test "${lt_cv_dlopen_self_static+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
ce2cded5
L
11822else
11823 if test "$cross_compiling" = yes; then :
11824 lt_cv_dlopen_self_static=cross
11825else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<_LT_EOF
d9816402 11829#line 11829 "configure"
ce2cded5
L
11830#include "confdefs.h"
11831
11832#if HAVE_DLFCN_H
11833#include <dlfcn.h>
11834#endif
11835
11836#include <stdio.h>
11837
11838#ifdef RTLD_GLOBAL
11839# define LT_DLGLOBAL RTLD_GLOBAL
11840#else
11841# ifdef DL_GLOBAL
11842# define LT_DLGLOBAL DL_GLOBAL
11843# else
11844# define LT_DLGLOBAL 0
11845# endif
11846#endif
11847
11848/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850#ifndef LT_DLLAZY_OR_NOW
11851# ifdef RTLD_LAZY
11852# define LT_DLLAZY_OR_NOW RTLD_LAZY
11853# else
11854# ifdef DL_LAZY
11855# define LT_DLLAZY_OR_NOW DL_LAZY
11856# else
11857# ifdef RTLD_NOW
11858# define LT_DLLAZY_OR_NOW RTLD_NOW
11859# else
11860# ifdef DL_NOW
11861# define LT_DLLAZY_OR_NOW DL_NOW
11862# else
11863# define LT_DLLAZY_OR_NOW 0
11864# endif
11865# endif
11866# endif
11867# endif
11868#endif
11869
3cb62297
L
11870/* When -fvisbility=hidden is used, assume the code has been annotated
11871 correspondingly for the symbols needed. */
11872#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873void fnord () __attribute__((visibility("default")));
11874#endif
11875
11876void fnord () { int i=42; }
11877int main ()
11878{
11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880 int status = $lt_dlunknown;
11881
11882 if (self)
11883 {
11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11885 else
11886 {
11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 else puts (dlerror ());
11889 }
11890 /* dlclose (self); */
11891 }
11892 else
11893 puts (dlerror ());
11894
11895 return status;
11896}
11897_LT_EOF
11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11903 (./conftest; exit; ) >&5 2>/dev/null
11904 lt_status=$?
11905 case x$lt_status in
11906 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11907 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11909 esac
11910 else :
11911 # compilation failed
11912 lt_cv_dlopen_self_static=no
11913 fi
11914fi
11915rm -fr conftest*
11916
11917
11918fi
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11920$as_echo "$lt_cv_dlopen_self_static" >&6; }
11921 fi
11922
11923 CPPFLAGS="$save_CPPFLAGS"
11924 LDFLAGS="$save_LDFLAGS"
11925 LIBS="$save_LIBS"
11926 ;;
11927 esac
11928
11929 case $lt_cv_dlopen_self in
11930 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11931 *) enable_dlopen_self=unknown ;;
11932 esac
11933
11934 case $lt_cv_dlopen_self_static in
11935 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11936 *) enable_dlopen_self_static=unknown ;;
11937 esac
11938fi
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956striplib=
11957old_striplib=
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11959$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11960if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11961 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11962 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964$as_echo "yes" >&6; }
11965else
11966# FIXME - insert some real tests, host_os isn't really good enough
11967 case $host_os in
11968 darwin*)
11969 if test -n "$STRIP" ; then
11970 striplib="$STRIP -x"
11971 old_striplib="$STRIP -S"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973$as_echo "yes" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
11977 fi
11978 ;;
11979 *)
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982 ;;
11983 esac
11984fi
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997 # Report which library types will actually be built
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11999$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12001$as_echo "$can_build_shared" >&6; }
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12004$as_echo_n "checking whether to build shared libraries... " >&6; }
12005 test "$can_build_shared" = "no" && enable_shared=no
12006
12007 # On AIX, shared libraries and static libraries use the same namespace, and
12008 # are all built from PIC.
12009 case $host_os in
12010 aix3*)
12011 test "$enable_shared" = yes && enable_static=no
12012 if test -n "$RANLIB"; then
12013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12014 postinstall_cmds='$RANLIB $lib'
12015 fi
12016 ;;
12017
12018 aix[4-9]*)
12019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12020 test "$enable_shared" = yes && enable_static=no
12021 fi
12022 ;;
12023 esac
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12025$as_echo "$enable_shared" >&6; }
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12028$as_echo_n "checking whether to build static libraries... " >&6; }
12029 # Make sure either enable_shared or enable_static is yes.
12030 test "$enable_shared" = yes || enable_static=yes
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12032$as_echo "$enable_static" >&6; }
12033
12034
12035
12036
12037fi
12038ac_ext=c
12039ac_cpp='$CPP $CPPFLAGS'
12040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043
12044CC="$lt_save_CC"
12045
12046 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12047 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12048 (test "X$CXX" != "Xg++"))) ; then
12049 ac_ext=cpp
12050ac_cpp='$CXXCPP $CPPFLAGS'
12051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12055$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12056if test -z "$CXXCPP"; then
12057 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059else
12060 # Double quotes because CXXCPP needs to be expanded
12061 for CXXCPP in "$CXX -E" "/lib/cpp"
12062 do
12063 ac_preproc_ok=false
12064for ac_cxx_preproc_warn_flag in '' yes
12065do
12066 # Use a header file that comes with gcc, so configuring glibc
12067 # with a fresh cross-compiler works.
12068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12069 # <limits.h> exists even on freestanding compilers.
12070 # On the NeXT, cc -E runs the code through the compiler's parser,
12071 # not just through cpp. "Syntax error" is here to catch this case.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073/* end confdefs.h. */
12074#ifdef __STDC__
12075# include <limits.h>
12076#else
12077# include <assert.h>
12078#endif
12079 Syntax error
12080_ACEOF
12081if ac_fn_cxx_try_cpp "$LINENO"; then :
12082
12083else
12084 # Broken: fails on valid input.
12085continue
12086fi
12087rm -f conftest.err conftest.$ac_ext
12088
12089 # OK, works on sane cases. Now check whether nonexistent headers
12090 # can be detected and how.
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092/* end confdefs.h. */
12093#include <ac_nonexistent.h>
12094_ACEOF
12095if ac_fn_cxx_try_cpp "$LINENO"; then :
12096 # Broken: success on invalid input.
12097continue
12098else
12099 # Passes both tests.
12100ac_preproc_ok=:
12101break
12102fi
12103rm -f conftest.err conftest.$ac_ext
12104
12105done
12106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107rm -f conftest.err conftest.$ac_ext
12108if $ac_preproc_ok; then :
12109 break
12110fi
12111
12112 done
12113 ac_cv_prog_CXXCPP=$CXXCPP
12114
12115fi
12116 CXXCPP=$ac_cv_prog_CXXCPP
12117else
12118 ac_cv_prog_CXXCPP=$CXXCPP
12119fi
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12121$as_echo "$CXXCPP" >&6; }
12122ac_preproc_ok=false
12123for ac_cxx_preproc_warn_flag in '' yes
12124do
12125 # Use a header file that comes with gcc, so configuring glibc
12126 # with a fresh cross-compiler works.
12127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 # <limits.h> exists even on freestanding compilers.
12129 # On the NeXT, cc -E runs the code through the compiler's parser,
12130 # not just through cpp. "Syntax error" is here to catch this case.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132/* end confdefs.h. */
12133#ifdef __STDC__
12134# include <limits.h>
12135#else
12136# include <assert.h>
12137#endif
12138 Syntax error
12139_ACEOF
12140if ac_fn_cxx_try_cpp "$LINENO"; then :
12141
12142else
12143 # Broken: fails on valid input.
12144continue
12145fi
12146rm -f conftest.err conftest.$ac_ext
12147
12148 # OK, works on sane cases. Now check whether nonexistent headers
12149 # can be detected and how.
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151/* end confdefs.h. */
12152#include <ac_nonexistent.h>
12153_ACEOF
12154if ac_fn_cxx_try_cpp "$LINENO"; then :
12155 # Broken: success on invalid input.
12156continue
12157else
12158 # Passes both tests.
12159ac_preproc_ok=:
12160break
12161fi
12162rm -f conftest.err conftest.$ac_ext
12163
12164done
12165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12166rm -f conftest.err conftest.$ac_ext
12167if $ac_preproc_ok; then :
12168
12169else
12170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12172as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12173See \`config.log' for more details." "$LINENO" 5; }
12174fi
12175
12176ac_ext=c
12177ac_cpp='$CPP $CPPFLAGS'
12178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181
12182else
12183 _lt_caught_CXX_error=yes
12184fi
12185
12186ac_ext=cpp
12187ac_cpp='$CXXCPP $CPPFLAGS'
12188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12191
12192archive_cmds_need_lc_CXX=no
12193allow_undefined_flag_CXX=
12194always_export_symbols_CXX=no
12195archive_expsym_cmds_CXX=
12196compiler_needs_object_CXX=no
12197export_dynamic_flag_spec_CXX=
12198hardcode_direct_CXX=no
12199hardcode_direct_absolute_CXX=no
12200hardcode_libdir_flag_spec_CXX=
12201hardcode_libdir_flag_spec_ld_CXX=
12202hardcode_libdir_separator_CXX=
12203hardcode_minus_L_CXX=no
12204hardcode_shlibpath_var_CXX=unsupported
12205hardcode_automatic_CXX=no
12206inherit_rpath_CXX=no
12207module_cmds_CXX=
12208module_expsym_cmds_CXX=
12209link_all_deplibs_CXX=unknown
12210old_archive_cmds_CXX=$old_archive_cmds
12211reload_flag_CXX=$reload_flag
12212reload_cmds_CXX=$reload_cmds
12213no_undefined_flag_CXX=
12214whole_archive_flag_spec_CXX=
12215enable_shared_with_static_runtimes_CXX=no
12216
12217# Source file extension for C++ test sources.
12218ac_ext=cpp
12219
12220# Object file extension for compiled C++ test sources.
12221objext=o
12222objext_CXX=$objext
12223
12224# No sense in running all these tests if we already determined that
12225# the CXX compiler isn't working. Some variables (like enable_shared)
12226# are currently assumed to apply to all compilers on this platform,
12227# and will be corrupted by setting them based on a non-working compiler.
12228if test "$_lt_caught_CXX_error" != yes; then
12229 # Code to be used in simple compile tests
12230 lt_simple_compile_test_code="int some_variable = 0;"
12231
12232 # Code to be used in simple link tests
12233 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12234
12235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12236
12237
12238
12239
12240
12241
12242# If no C compiler was specified, use CC.
12243LTCC=${LTCC-"$CC"}
12244
12245# If no C compiler flags were specified, use CFLAGS.
12246LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12247
12248# Allow CC to be a program name with arguments.
12249compiler=$CC
12250
12251
12252 # save warnings/boilerplate of simple test code
12253 ac_outfile=conftest.$ac_objext
12254echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12255eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256_lt_compiler_boilerplate=`cat conftest.err`
12257$RM conftest*
12258
12259 ac_outfile=conftest.$ac_objext
12260echo "$lt_simple_link_test_code" >conftest.$ac_ext
12261eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12262_lt_linker_boilerplate=`cat conftest.err`
12263$RM -r conftest*
12264
12265
12266 # Allow CC to be a program name with arguments.
12267 lt_save_CC=$CC
12268 lt_save_LD=$LD
12269 lt_save_GCC=$GCC
12270 GCC=$GXX
12271 lt_save_with_gnu_ld=$with_gnu_ld
12272 lt_save_path_LD=$lt_cv_path_LD
12273 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12274 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12275 else
12276 $as_unset lt_cv_prog_gnu_ld
12277 fi
12278 if test -n "${lt_cv_path_LDCXX+set}"; then
12279 lt_cv_path_LD=$lt_cv_path_LDCXX
12280 else
12281 $as_unset lt_cv_path_LD
12282 fi
12283 test -z "${LDCXX+set}" || LD=$LDCXX
12284 CC=${CXX-"c++"}
12285 compiler=$CC
12286 compiler_CXX=$CC
12287 for cc_temp in $compiler""; do
12288 case $cc_temp in
12289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12291 \-*) ;;
12292 *) break;;
12293 esac
12294done
12295cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12296
12297
12298 if test -n "$compiler"; then
12299 # We don't want -fno-exception when compiling C++ code, so set the
12300 # no_builtin_flag separately
12301 if test "$GXX" = yes; then
12302 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12303 else
12304 lt_prog_compiler_no_builtin_flag_CXX=
12305 fi
12306
12307 if test "$GXX" = yes; then
12308 # Set up default GNU C++ configuration
12309
12310
12311
12312# Check whether --with-gnu-ld was given.
12313if test "${with_gnu_ld+set}" = set; then :
12314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12315else
12316 with_gnu_ld=no
12317fi
12318
12319ac_prog=ld
12320if test "$GCC" = yes; then
12321 # Check if gcc -print-prog-name=ld gives a path.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12323$as_echo_n "checking for ld used by $CC... " >&6; }
12324 case $host in
12325 *-*-mingw*)
12326 # gcc leaves a trailing carriage return which upsets mingw
12327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12328 *)
12329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12330 esac
12331 case $ac_prog in
12332 # Accept absolute paths.
12333 [\\/]* | ?:[\\/]*)
12334 re_direlt='/[^/][^/]*/\.\./'
12335 # Canonicalize the pathname of ld
12336 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12337 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12338 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12339 done
12340 test -z "$LD" && LD="$ac_prog"
12341 ;;
12342 "")
12343 # If it fails, then pretend we aren't using GCC.
12344 ac_prog=ld
12345 ;;
12346 *)
12347 # If it is relative, then search for the first ld in PATH.
12348 with_gnu_ld=unknown
12349 ;;
12350 esac
12351elif test "$with_gnu_ld" = yes; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12353$as_echo_n "checking for GNU ld... " >&6; }
12354else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12356$as_echo_n "checking for non-GNU ld... " >&6; }
12357fi
12358if test "${lt_cv_path_LD+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 if test -z "$LD"; then
12362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12363 for ac_dir in $PATH; do
12364 IFS="$lt_save_ifs"
12365 test -z "$ac_dir" && ac_dir=.
12366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12367 lt_cv_path_LD="$ac_dir/$ac_prog"
12368 # Check to see if the program is GNU ld. I'd rather use --version,
12369 # but apparently some variants of GNU ld only accept -v.
12370 # Break only if it was the GNU/non-GNU ld that we prefer.
12371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12372 *GNU* | *'with BFD'*)
12373 test "$with_gnu_ld" != no && break
12374 ;;
12375 *)
12376 test "$with_gnu_ld" != yes && break
12377 ;;
12378 esac
12379 fi
12380 done
12381 IFS="$lt_save_ifs"
12382else
12383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12384fi
12385fi
12386
12387LD="$lt_cv_path_LD"
12388if test -n "$LD"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12390$as_echo "$LD" >&6; }
12391else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
12394fi
12395test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12397$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12398if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400else
12401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12402case `$LD -v 2>&1 </dev/null` in
12403*GNU* | *'with BFD'*)
12404 lt_cv_prog_gnu_ld=yes
12405 ;;
12406*)
12407 lt_cv_prog_gnu_ld=no
12408 ;;
12409esac
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12412$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12413with_gnu_ld=$lt_cv_prog_gnu_ld
12414
12415
12416
12417
12418
12419
12420
12421 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12422 # archiving commands below assume that GNU ld is being used.
12423 if test "$with_gnu_ld" = yes; then
6e733cce
L
12424 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3cb62297
L
12426
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12429
12430 # If archive_cmds runs LD, not CC, wlarc should be empty
12431 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12432 # investigate it a little bit more. (MM)
12433 wlarc='${wl}'
12434
12435 # ancient GNU ld didn't support --whole-archive et. al.
12436 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12437 $GREP 'no-whole-archive' > /dev/null; then
12438 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12439 else
12440 whole_archive_flag_spec_CXX=
12441 fi
12442 else
12443 with_gnu_ld=no
12444 wlarc=
12445
12446 # A generic and very simple default shared library creation
12447 # command for GNU C++ for the case where it uses the native
12448 # linker, instead of GNU ld. If possible, this setting should
12449 # overridden to take advantage of the native linker features on
12450 # the platform it is being used on.
12451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12452 fi
12453
12454 # Commands to make compiler produce verbose output that lists
12455 # what "hidden" libraries, object files and flags are used when
12456 # linking a shared library.
12457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12458
12459 else
12460 GXX=no
12461 with_gnu_ld=no
12462 wlarc=
12463 fi
12464
12465 # PORTME: fill in a description of your system's C++ link characteristics
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12467$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12468 ld_shlibs_CXX=yes
12469 case $host_os in
12470 aix3*)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12473 ;;
12474 aix[4-9]*)
12475 if test "$host_cpu" = ia64; then
12476 # On IA64, the linker does run time linking by default, so we don't
12477 # have to do anything special.
12478 aix_use_runtimelinking=no
12479 exp_sym_flag='-Bexport'
12480 no_entry_flag=""
12481 else
12482 aix_use_runtimelinking=no
12483
12484 # Test if we are trying to use run time linking or normal
12485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12486 # need to do runtime linking.
12487 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12488 for ld_flag in $LDFLAGS; do
12489 case $ld_flag in
12490 *-brtl*)
12491 aix_use_runtimelinking=yes
12492 break
12493 ;;
12494 esac
12495 done
12496 ;;
12497 esac
12498
12499 exp_sym_flag='-bexport'
12500 no_entry_flag='-bnoentry'
12501 fi
12502
12503 # When large executables or shared objects are built, AIX ld can
12504 # have problems creating the table of contents. If linking a library
12505 # or program results in "error TOC overflow" add -mminimal-toc to
12506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12508
12509 archive_cmds_CXX=''
12510 hardcode_direct_CXX=yes
12511 hardcode_direct_absolute_CXX=yes
12512 hardcode_libdir_separator_CXX=':'
12513 link_all_deplibs_CXX=yes
12514 file_list_spec_CXX='${wl}-f,'
12515
12516 if test "$GXX" = yes; then
12517 case $host_os in aix4.[012]|aix4.[012].*)
12518 # We only want to do this on AIX 4.2 and lower, the check
12519 # below for broken collect2 doesn't work under 4.3+
12520 collect2name=`${CC} -print-prog-name=collect2`
12521 if test -f "$collect2name" &&
12522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12523 then
12524 # We have reworked collect2
12525 :
12526 else
12527 # We have old collect2
12528 hardcode_direct_CXX=unsupported
12529 # It fails to find uninstalled libraries when the uninstalled
12530 # path is not listed in the libpath. Setting hardcode_minus_L
12531 # to unsupported forces relinking
12532 hardcode_minus_L_CXX=yes
12533 hardcode_libdir_flag_spec_CXX='-L$libdir'
12534 hardcode_libdir_separator_CXX=
12535 fi
12536 esac
12537 shared_flag='-shared'
12538 if test "$aix_use_runtimelinking" = yes; then
12539 shared_flag="$shared_flag "'${wl}-G'
12540 fi
12541 else
12542 # not using gcc
12543 if test "$host_cpu" = ia64; then
12544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12545 # chokes on -Wl,-G. The following line is correct:
12546 shared_flag='-G'
12547 else
12548 if test "$aix_use_runtimelinking" = yes; then
12549 shared_flag='${wl}-G'
12550 else
12551 shared_flag='${wl}-bM:SRE'
12552 fi
12553 fi
12554 fi
12555
12556 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12557 # It seems that -bexpall does not export symbols beginning with
12558 # underscore (_), so it is better to generate a list of symbols to
12559 # export.
12560 always_export_symbols_CXX=yes
12561 if test "$aix_use_runtimelinking" = yes; then
12562 # Warning - without using the other runtime loading flags (-brtl),
12563 # -berok will link without error, but may produce a broken library.
12564 allow_undefined_flag_CXX='-berok'
12565 # Determine the default libpath from the value encoded in an empty
12566 # executable.
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568/* end confdefs.h. */
12569
12570int
12571main ()
12572{
12573
12574 ;
12575 return 0;
12576}
12577_ACEOF
12578if ac_fn_cxx_try_link "$LINENO"; then :
12579
12580lt_aix_libpath_sed='
12581 /Import File Strings/,/^$/ {
12582 /^0/ {
12583 s/^0 *\(.*\)$/\1/
12584 p
12585 }
12586 }'
12587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588# Check for a 64-bit object if we didn't find anything.
12589if test -z "$aix_libpath"; then
12590 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591fi
12592fi
12593rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12596
12597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12598
12599 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"
12600 else
12601 if test "$host_cpu" = ia64; then
12602 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12603 allow_undefined_flag_CXX="-z nodefs"
12604 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"
12605 else
12606 # Determine the default libpath from the value encoded in an
12607 # empty executable.
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h. */
12610
12611int
12612main ()
12613{
12614
12615 ;
12616 return 0;
12617}
12618_ACEOF
12619if ac_fn_cxx_try_link "$LINENO"; then :
12620
12621lt_aix_libpath_sed='
12622 /Import File Strings/,/^$/ {
12623 /^0/ {
12624 s/^0 *\(.*\)$/\1/
12625 p
12626 }
12627 }'
12628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629# Check for a 64-bit object if we didn't find anything.
12630if test -z "$aix_libpath"; then
12631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632fi
12633fi
12634rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637
12638 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12639 # Warning - without using the other run time loading flags,
12640 # -berok will link without error, but may produce a broken library.
12641 no_undefined_flag_CXX=' ${wl}-bernotok'
12642 allow_undefined_flag_CXX=' ${wl}-berok'
12643 if test "$with_gnu_ld" = yes; then
12644 # We only use this code for GNU lds that support --whole-archive.
12645 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12646 else
12647 # Exported symbols can be pulled into shared objects from archives
12648 whole_archive_flag_spec_CXX='$convenience'
12649 fi
12650 archive_cmds_need_lc_CXX=yes
12651 # This is similar to how AIX traditionally builds its shared
12652 # libraries.
12653 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'
12654 fi
12655 fi
12656 ;;
12657
12658 beos*)
12659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660 allow_undefined_flag_CXX=unsupported
12661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662 # support --undefined. This deserves some investigation. FIXME
12663 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 else
12665 ld_shlibs_CXX=no
12666 fi
12667 ;;
12668
12669 chorus*)
12670 case $cc_basename in
12671 *)
12672 # FIXME: insert proper C++ library support
12673 ld_shlibs_CXX=no
12674 ;;
12675 esac
12676 ;;
12677
12678 cygwin* | mingw* | pw32* | cegcc*)
12679 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12680 # as there is no search path for DLLs.
12681 hardcode_libdir_flag_spec_CXX='-L$libdir'
12682 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12683 allow_undefined_flag_CXX=unsupported
12684 always_export_symbols_CXX=no
12685 enable_shared_with_static_runtimes_CXX=yes
12686
12687 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12688 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'
12689 # If the export-symbols file already is a .def file (1st line
12690 # is EXPORTS), use it as is; otherwise, prepend...
12691 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12692 cp $export_symbols $output_objdir/$soname.def;
12693 else
12694 echo EXPORTS > $output_objdir/$soname.def;
12695 cat $export_symbols >> $output_objdir/$soname.def;
12696 fi~
12697 $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'
12698 else
12699 ld_shlibs_CXX=no
12700 fi
12701 ;;
12702 darwin* | rhapsody*)
12703
12704
12705 archive_cmds_need_lc_CXX=no
12706 hardcode_direct_CXX=no
12707 hardcode_automatic_CXX=yes
12708 hardcode_shlibpath_var_CXX=unsupported
12709 if test "$lt_cv_ld_force_load" = "yes"; then
12710 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\"`'
12711 else
12712 whole_archive_flag_spec_CXX=''
12713 fi
12714 link_all_deplibs_CXX=yes
12715 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12716 case $cc_basename in
12717 ifort*) _lt_dar_can_shared=yes ;;
12718 *) _lt_dar_can_shared=$GCC ;;
12719 esac
12720 if test "$_lt_dar_can_shared" = "yes"; then
12721 output_verbose_link_cmd=func_echo_all
12722 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}"
12723 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12724 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}"
12725 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}"
12726 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12727 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}"
12728 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}"
12729 fi
12730
12731 else
12732 ld_shlibs_CXX=no
12733 fi
12734
12735 ;;
12736
12737 dgux*)
12738 case $cc_basename in
12739 ec++*)
12740 # FIXME: insert proper C++ library support
12741 ld_shlibs_CXX=no
12742 ;;
12743 ghcx*)
12744 # Green Hills C++ Compiler
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748 *)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12751 ;;
12752 esac
12753 ;;
12754
6d2920c8 12755 freebsd2.*)
3cb62297
L
12756 # C++ shared libraries reported to be fairly broken before
12757 # switch to ELF
12758 ld_shlibs_CXX=no
12759 ;;
12760
12761 freebsd-elf*)
12762 archive_cmds_need_lc_CXX=no
12763 ;;
12764
12765 freebsd* | dragonfly*)
12766 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12767 # conventions
12768 ld_shlibs_CXX=yes
12769 ;;
12770
12771 gnu*)
12772 ;;
12773
12774 haiku*)
12775 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12776 link_all_deplibs_CXX=yes
12777 ;;
12778
12779 hpux9*)
12780 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_separator_CXX=:
12782 export_dynamic_flag_spec_CXX='${wl}-E'
12783 hardcode_direct_CXX=yes
12784 hardcode_minus_L_CXX=yes # Not in the search PATH,
12785 # but as the default
12786 # location of the library.
12787
12788 case $cc_basename in
12789 CC*)
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12792 ;;
12793 aCC*)
12794 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'
12795 # Commands to make compiler produce verbose output that lists
12796 # what "hidden" libraries, object files and flags are used when
12797 # linking a shared library.
12798 #
12799 # There doesn't appear to be a way to prevent this compiler from
12800 # explicitly linking system object files so we need to strip them
12801 # from the output so that they don't get included in the library
12802 # dependencies.
12803 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"'
12804 ;;
12805 *)
12806 if test "$GXX" = yes; then
12807 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'
12808 else
12809 # FIXME: insert proper C++ library support
12810 ld_shlibs_CXX=no
12811 fi
12812 ;;
12813 esac
12814 ;;
12815
12816 hpux10*|hpux11*)
12817 if test $with_gnu_ld = no; then
12818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12819 hardcode_libdir_separator_CXX=:
12820
12821 case $host_cpu in
12822 hppa*64*|ia64*)
12823 ;;
12824 *)
12825 export_dynamic_flag_spec_CXX='${wl}-E'
12826 ;;
12827 esac
12828 fi
12829 case $host_cpu in
12830 hppa*64*|ia64*)
12831 hardcode_direct_CXX=no
12832 hardcode_shlibpath_var_CXX=no
12833 ;;
12834 *)
12835 hardcode_direct_CXX=yes
12836 hardcode_direct_absolute_CXX=yes
12837 hardcode_minus_L_CXX=yes # Not in the search PATH,
12838 # but as the default
12839 # location of the library.
12840 ;;
12841 esac
12842
12843 case $cc_basename in
12844 CC*)
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12847 ;;
12848 aCC*)
12849 case $host_cpu in
12850 hppa*64*)
12851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 ;;
12853 ia64*)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855 ;;
12856 *)
12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858 ;;
12859 esac
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 #
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12867 # dependencies.
12868 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"'
12869 ;;
12870 *)
12871 if test "$GXX" = yes; then
12872 if test $with_gnu_ld = no; then
12873 case $host_cpu in
12874 hppa*64*)
12875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 ia64*)
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 ;;
12880 *)
12881 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'
12882 ;;
12883 esac
12884 fi
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 fi
12889 ;;
12890 esac
12891 ;;
12892
12893 interix[3-9]*)
12894 hardcode_direct_CXX=no
12895 hardcode_shlibpath_var_CXX=no
12896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12897 export_dynamic_flag_spec_CXX='${wl}-E'
12898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12899 # Instead, shared libraries are loaded at an image base (0x10000000 by
12900 # default) and relocated if they conflict, which is a slow very memory
12901 # consuming and fragmenting process. To avoid this, we pick a random,
12902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12904 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'
12905 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'
12906 ;;
12907 irix5* | irix6*)
12908 case $cc_basename in
12909 CC*)
12910 # SGI C++
12911 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'
12912
12913 # Archives containing C++ object files must be created using
12914 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12915 # necessary to make sure instantiated templates are included
12916 # in the archive.
12917 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12918 ;;
12919 *)
12920 if test "$GXX" = yes; then
12921 if test "$with_gnu_ld" = no; then
12922 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'
12923 else
12924 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'
12925 fi
12926 fi
12927 link_all_deplibs_CXX=yes
12928 ;;
12929 esac
12930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931 hardcode_libdir_separator_CXX=:
12932 inherit_rpath_CXX=yes
12933 ;;
12934
12935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12936 case $cc_basename in
12937 KCC*)
12938 # Kuck and Associates, Inc. (KAI) C++ Compiler
12939
12940 # KCC will only create a shared library if the output file
12941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12942 # to its proper name (with version) after linking.
12943 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'
12944 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'
12945 # Commands to make compiler produce verbose output that lists
12946 # what "hidden" libraries, object files and flags are used when
12947 # linking a shared library.
12948 #
12949 # There doesn't appear to be a way to prevent this compiler from
12950 # explicitly linking system object files so we need to strip them
12951 # from the output so that they don't get included in the library
12952 # dependencies.
12953 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"'
12954
12955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12956 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12957
12958 # Archives containing C++ object files must be created using
12959 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12960 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12961 ;;
12962 icpc* | ecpc* )
12963 # Intel C++
12964 with_gnu_ld=yes
12965 # version 8.0 and above of icpc choke on multiply defined symbols
12966 # if we add $predep_objects and $postdep_objects, however 7.1 and
12967 # earlier do not add the objects themselves.
12968 case `$CC -V 2>&1` in
12969 *"Version 7."*)
12970 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 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'
12972 ;;
12973 *) # Version 8.0 or newer
12974 tmp_idyn=
12975 case $host_cpu in
12976 ia64*) tmp_idyn=' -i_dynamic';;
12977 esac
12978 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12979 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'
12980 ;;
12981 esac
12982 archive_cmds_need_lc_CXX=no
12983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12985 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12986 ;;
12987 pgCC* | pgcpp*)
12988 # Portland Group C++ compiler
12989 case `$CC -V` in
12990 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12991 prelink_cmds_CXX='tpldir=Template.dir~
12992 rm -rf $tpldir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12994 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12995 old_archive_cmds_CXX='tpldir=Template.dir~
12996 rm -rf $tpldir~
12997 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12998 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12999 $RANLIB $oldlib'
13000 archive_cmds_CXX='tpldir=Template.dir~
13001 rm -rf $tpldir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13004 archive_expsym_cmds_CXX='tpldir=Template.dir~
13005 rm -rf $tpldir~
13006 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13007 $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'
13008 ;;
13009 *) # Version 6 and above use weak symbols
13010 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13011 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'
13012 ;;
13013 esac
13014
13015 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13017 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'
13018 ;;
13019 cxx*)
13020 # Compaq C++
13021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 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'
13023
13024 runpath_var=LD_RUN_PATH
13025 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13026 hardcode_libdir_separator_CXX=:
13027
13028 # Commands to make compiler produce verbose output that lists
13029 # what "hidden" libraries, object files and flags are used when
13030 # linking a shared library.
13031 #
13032 # There doesn't appear to be a way to prevent this compiler from
13033 # explicitly linking system object files so we need to strip them
13034 # from the output so that they don't get included in the library
13035 # dependencies.
13036 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'
13037 ;;
13038 xl* | mpixl* | bgxl*)
13039 # IBM XL 8.0 on PPC, with GNU ld
13040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 if test "x$supports_anon_versioning" = xyes; then
13044 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13046 echo "local: *; };" >> $output_objdir/$libname.ver~
13047 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13048 fi
13049 ;;
13050 *)
13051 case `$CC -V 2>&1 | sed 5q` in
13052 *Sun\ C*)
13053 # Sun C++ 5.9
13054 no_undefined_flag_CXX=' -zdefs'
13055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13056 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'
13057 hardcode_libdir_flag_spec_CXX='-R$libdir'
13058 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'
13059 compiler_needs_object_CXX=yes
13060
13061 # Not sure whether something based on
13062 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13063 # would be better.
13064 output_verbose_link_cmd='func_echo_all'
13065
13066 # Archives containing C++ object files must be created using
13067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13068 # necessary to make sure instantiated templates are included
13069 # in the archive.
13070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13071 ;;
13072 esac
13073 ;;
13074 esac
13075 ;;
13076
13077 lynxos*)
13078 # FIXME: insert proper C++ library support
13079 ld_shlibs_CXX=no
13080 ;;
13081
13082 m88k*)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086
13087 mvs*)
13088 case $cc_basename in
13089 cxx*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093 *)
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13096 ;;
13097 esac
13098 ;;
13099
13100 netbsd*)
13101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13102 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13103 wlarc=
13104 hardcode_libdir_flag_spec_CXX='-R$libdir'
13105 hardcode_direct_CXX=yes
13106 hardcode_shlibpath_var_CXX=no
13107 fi
13108 # Workaround some broken pre-1.5 toolchains
13109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13110 ;;
13111
13112 *nto* | *qnx*)
13113 ld_shlibs_CXX=yes
13114 ;;
13115
13116 openbsd2*)
13117 # C++ shared libraries are fairly broken
13118 ld_shlibs_CXX=no
13119 ;;
13120
13121 openbsd*)
13122 if test -f /usr/libexec/ld.so; then
13123 hardcode_direct_CXX=yes
13124 hardcode_shlibpath_var_CXX=no
13125 hardcode_direct_absolute_CXX=yes
13126 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13130 export_dynamic_flag_spec_CXX='${wl}-E'
13131 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132 fi
13133 output_verbose_link_cmd=func_echo_all
13134 else
13135 ld_shlibs_CXX=no
13136 fi
13137 ;;
13138
13139 osf3* | osf4* | osf5*)
13140 case $cc_basename in
13141 KCC*)
13142 # Kuck and Associates, Inc. (KAI) C++ Compiler
13143
13144 # KCC will only create a shared library if the output file
13145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13146 # to its proper name (with version) after linking.
13147 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'
13148
13149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13150 hardcode_libdir_separator_CXX=:
13151
13152 # Archives containing C++ object files must be created using
13153 # the KAI C++ compiler.
13154 case $host in
13155 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13156 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13157 esac
13158 ;;
13159 RCC*)
13160 # Rational C++ 2.4.1
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13163 ;;
13164 cxx*)
13165 case $host in
13166 osf3*)
13167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13168 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'
13169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170 ;;
13171 *)
13172 allow_undefined_flag_CXX=' -expect_unresolved \*'
13173 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'
13174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13175 echo "-hidden">> $lib.exp~
13176 $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~
13177 $RM $lib.exp'
13178 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13179 ;;
13180 esac
13181
13182 hardcode_libdir_separator_CXX=:
13183
13184 # Commands to make compiler produce verbose output that lists
13185 # what "hidden" libraries, object files and flags are used when
13186 # linking a shared library.
13187 #
13188 # There doesn't appear to be a way to prevent this compiler from
13189 # explicitly linking system object files so we need to strip them
13190 # from the output so that they don't get included in the library
13191 # dependencies.
13192 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"'
13193 ;;
13194 *)
13195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13197 case $host in
13198 osf3*)
13199 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'
13200 ;;
13201 *)
13202 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'
13203 ;;
13204 esac
13205
13206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13207 hardcode_libdir_separator_CXX=:
13208
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13213
13214 else
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13217 fi
13218 ;;
13219 esac
13220 ;;
13221
13222 psos*)
13223 # FIXME: insert proper C++ library support
13224 ld_shlibs_CXX=no
13225 ;;
13226
13227 sunos4*)
13228 case $cc_basename in
13229 CC*)
13230 # Sun C++ 4.x
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13233 ;;
13234 lcc*)
13235 # Lucid
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13238 ;;
13239 *)
13240 # FIXME: insert proper C++ library support
13241 ld_shlibs_CXX=no
13242 ;;
13243 esac
13244 ;;
13245
13246 solaris*)
13247 case $cc_basename in
13248 CC*)
13249 # Sun C++ 4.2, 5.x and Centerline C++
13250 archive_cmds_need_lc_CXX=yes
13251 no_undefined_flag_CXX=' -zdefs'
13252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254 $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'
13255
13256 hardcode_libdir_flag_spec_CXX='-R$libdir'
13257 hardcode_shlibpath_var_CXX=no
13258 case $host_os in
13259 solaris2.[0-5] | solaris2.[0-5].*) ;;
13260 *)
13261 # The compiler driver will combine and reorder linker options,
13262 # but understands `-z linker_flag'.
13263 # Supported since Solaris 2.6 (maybe 2.5.1?)
13264 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13265 ;;
13266 esac
13267 link_all_deplibs_CXX=yes
13268
13269 output_verbose_link_cmd='func_echo_all'
13270
13271 # Archives containing C++ object files must be created using
13272 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13273 # necessary to make sure instantiated templates are included
13274 # in the archive.
13275 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13276 ;;
13277 gcx*)
13278 # Green Hills C++ Compiler
13279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13280
13281 # The C++ compiler must be used to create the archive.
13282 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13283 ;;
13284 *)
13285 # GNU C++ compiler with Solaris linker
13286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13287 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13288 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13289 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13290 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13291 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13292
13293 # Commands to make compiler produce verbose output that lists
13294 # what "hidden" libraries, object files and flags are used when
13295 # linking a shared library.
13296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13297 else
13298 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13299 # platform.
13300 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13301 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13303
13304 # Commands to make compiler produce verbose output that lists
13305 # what "hidden" libraries, object files and flags are used when
13306 # linking a shared library.
13307 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13308 fi
13309
13310 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13311 case $host_os in
13312 solaris2.[0-5] | solaris2.[0-5].*) ;;
13313 *)
13314 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13315 ;;
13316 esac
13317 fi
13318 ;;
13319 esac
13320 ;;
13321
13322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13323 no_undefined_flag_CXX='${wl}-z,text'
13324 archive_cmds_need_lc_CXX=no
13325 hardcode_shlibpath_var_CXX=no
13326 runpath_var='LD_RUN_PATH'
13327
13328 case $cc_basename in
13329 CC*)
13330 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 *)
13334 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 ;;
13337 esac
13338 ;;
13339
13340 sysv5* | sco3.2v5* | sco5v6*)
13341 # Note: We can NOT use -z defs as we might desire, because we do not
13342 # link with -lc, and that would cause any symbols used from libc to
13343 # always be unresolved, which means just about no library would
13344 # ever link correctly. If we're not using GNU ld we use -z text
13345 # though, which does catch some bad symbols but isn't as heavy-handed
13346 # as -z defs.
13347 no_undefined_flag_CXX='${wl}-z,text'
13348 allow_undefined_flag_CXX='${wl}-z,nodefs'
13349 archive_cmds_need_lc_CXX=no
13350 hardcode_shlibpath_var_CXX=no
13351 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13352 hardcode_libdir_separator_CXX=':'
13353 link_all_deplibs_CXX=yes
13354 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13355 runpath_var='LD_RUN_PATH'
13356
13357 case $cc_basename in
13358 CC*)
13359 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13362 '"$old_archive_cmds_CXX"
13363 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13364 '"$reload_cmds_CXX"
13365 ;;
13366 *)
13367 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13369 ;;
13370 esac
13371 ;;
13372
13373 tandem*)
13374 case $cc_basename in
13375 NCC*)
13376 # NonStop-UX NCC 3.20
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13379 ;;
13380 *)
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 ;;
13384 esac
13385 ;;
13386
13387 vxworks*)
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13390 ;;
13391
13392 *)
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13395 ;;
13396 esac
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13399$as_echo "$ld_shlibs_CXX" >&6; }
13400 test "$ld_shlibs_CXX" = no && can_build_shared=no
13401
13402 GCC_CXX="$GXX"
13403 LD_CXX="$LD"
13404
13405 ## CAVEAT EMPTOR:
13406 ## There is no encapsulation within the following macros, do not change
13407 ## the running order or otherwise move them around unless you know exactly
13408 ## what you are doing...
13409 # Dependencies to place before and after the object being linked:
13410predep_objects_CXX=
13411postdep_objects_CXX=
13412predeps_CXX=
13413postdeps_CXX=
13414compiler_lib_search_path_CXX=
13415
13416cat > conftest.$ac_ext <<_LT_EOF
13417class Foo
13418{
13419public:
13420 Foo (void) { a = 0; }
13421private:
13422 int a;
13423};
13424_LT_EOF
13425
13426if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13427 (eval $ac_compile) 2>&5
13428 ac_status=$?
13429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13430 test $ac_status = 0; }; then
13431 # Parse the compiler output and extract the necessary
13432 # objects, libraries and library flags.
13433
13434 # Sentinel used to keep track of whether or not we are before
13435 # the conftest object file.
13436 pre_test_object_deps_done=no
13437
13438 for p in `eval "$output_verbose_link_cmd"`; do
13439 case $p in
13440
13441 -L* | -R* | -l*)
13442 # Some compilers place space between "-{L,R}" and the path.
13443 # Remove the space.
13444 if test $p = "-L" ||
13445 test $p = "-R"; then
13446 prev=$p
13447 continue
13448 else
13449 prev=
13450 fi
13451
13452 if test "$pre_test_object_deps_done" = no; then
13453 case $p in
13454 -L* | -R*)
13455 # Internal compiler library paths should come after those
13456 # provided the user. The postdeps already come after the
13457 # user supplied libs so there is no need to process them.
13458 if test -z "$compiler_lib_search_path_CXX"; then
13459 compiler_lib_search_path_CXX="${prev}${p}"
13460 else
13461 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13462 fi
13463 ;;
13464 # The "-l" case would never come before the object being
13465 # linked, so don't bother handling this case.
13466 esac
13467 else
13468 if test -z "$postdeps_CXX"; then
13469 postdeps_CXX="${prev}${p}"
13470 else
13471 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13472 fi
13473 fi
13474 ;;
13475
13476 *.$objext)
13477 # This assumes that the test object file only shows up
13478 # once in the compiler output.
13479 if test "$p" = "conftest.$objext"; then
13480 pre_test_object_deps_done=yes
13481 continue
13482 fi
13483
13484 if test "$pre_test_object_deps_done" = no; then
13485 if test -z "$predep_objects_CXX"; then
13486 predep_objects_CXX="$p"
13487 else
13488 predep_objects_CXX="$predep_objects_CXX $p"
13489 fi
13490 else
13491 if test -z "$postdep_objects_CXX"; then
13492 postdep_objects_CXX="$p"
13493 else
13494 postdep_objects_CXX="$postdep_objects_CXX $p"
13495 fi
13496 fi
13497 ;;
13498
13499 *) ;; # Ignore the rest.
13500
13501 esac
13502 done
13503
13504 # Clean up.
13505 rm -f a.out a.exe
13506else
13507 echo "libtool.m4: error: problem compiling CXX test program"
13508fi
13509
13510$RM -f confest.$objext
13511
13512# PORTME: override above test on systems where it is broken
13513case $host_os in
13514interix[3-9]*)
13515 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13516 # hack all around it, let's just trust "g++" to DTRT.
13517 predep_objects_CXX=
13518 postdep_objects_CXX=
13519 postdeps_CXX=
13520 ;;
13521
13522linux*)
13523 case `$CC -V 2>&1 | sed 5q` in
13524 *Sun\ C*)
13525 # Sun C++ 5.9
13526
13527 # The more standards-conforming stlport4 library is
13528 # incompatible with the Cstd library. Avoid specifying
13529 # it if it's in CXXFLAGS. Ignore libCrun as
13530 # -library=stlport4 depends on it.
13531 case " $CXX $CXXFLAGS " in
13532 *" -library=stlport4 "*)
13533 solaris_use_stlport4=yes
13534 ;;
13535 esac
13536
13537 if test "$solaris_use_stlport4" != yes; then
13538 postdeps_CXX='-library=Cstd -library=Crun'
13539 fi
13540 ;;
13541 esac
13542 ;;
13543
13544solaris*)
13545 case $cc_basename in
13546 CC*)
13547 # The more standards-conforming stlport4 library is
13548 # incompatible with the Cstd library. Avoid specifying
13549 # it if it's in CXXFLAGS. Ignore libCrun as
13550 # -library=stlport4 depends on it.
13551 case " $CXX $CXXFLAGS " in
13552 *" -library=stlport4 "*)
13553 solaris_use_stlport4=yes
13554 ;;
13555 esac
13556
13557 # Adding this requires a known-good setup of shared libraries for
13558 # Sun compiler versions before 5.6, else PIC objects from an old
13559 # archive will be linked into the output, leading to subtle bugs.
13560 if test "$solaris_use_stlport4" != yes; then
13561 postdeps_CXX='-library=Cstd -library=Crun'
13562 fi
13563 ;;
13564 esac
13565 ;;
13566esac
13567
13568
13569case " $postdeps_CXX " in
13570*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13571esac
13572 compiler_lib_search_dirs_CXX=
13573if test -n "${compiler_lib_search_path_CXX}"; then
13574 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13575fi
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 lt_prog_compiler_wl_CXX=
13608lt_prog_compiler_pic_CXX=
13609lt_prog_compiler_static_CXX=
13610
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13612$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13613
13614 # C++ specific cases for pic, static, wl, etc.
13615 if test "$GXX" = yes; then
13616 lt_prog_compiler_wl_CXX='-Wl,'
13617 lt_prog_compiler_static_CXX='-static'
13618
13619 case $host_os in
13620 aix*)
13621 # All AIX code is PIC.
13622 if test "$host_cpu" = ia64; then
13623 # AIX 5 now supports IA64 processor
13624 lt_prog_compiler_static_CXX='-Bstatic'
13625 fi
52204357 13626 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13627 ;;
13628
13629 amigaos*)
13630 case $host_cpu in
13631 powerpc)
13632 # see comment about AmigaOS4 .so support
13633 lt_prog_compiler_pic_CXX='-fPIC'
13634 ;;
13635 m68k)
13636 # FIXME: we need at least 68020 code to build shared libraries, but
13637 # adding the `-m68020' flag to GCC prevents building anything better,
13638 # like `-m68040'.
13639 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13640 ;;
13641 esac
13642 ;;
13643
13644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13645 # PIC is the default for these OSes.
13646 ;;
13647 mingw* | cygwin* | os2* | pw32* | cegcc*)
13648 # This hack is so that the source file can tell whether it is being
13649 # built for inclusion in a dll (and should export symbols for example).
13650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13651 # (--disable-auto-import) libraries
13652 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13653 ;;
13654 darwin* | rhapsody*)
13655 # PIC is the default on this platform
13656 # Common symbols not allowed in MH_DYLIB files
13657 lt_prog_compiler_pic_CXX='-fno-common'
13658 ;;
13659 *djgpp*)
13660 # DJGPP does not support shared libraries at all
13661 lt_prog_compiler_pic_CXX=
13662 ;;
13663 haiku*)
13664 # PIC is the default for Haiku.
13665 # The "-static" flag exists, but is broken.
13666 lt_prog_compiler_static_CXX=
13667 ;;
13668 interix[3-9]*)
13669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13670 # Instead, we relocate shared libraries at runtime.
13671 ;;
13672 sysv4*MP*)
13673 if test -d /usr/nec; then
13674 lt_prog_compiler_pic_CXX=-Kconform_pic
13675 fi
13676 ;;
13677 hpux*)
13678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13680 # sets the default TLS model and affects inlining.
13681 case $host_cpu in
13682 hppa*64*)
13683 ;;
13684 *)
13685 lt_prog_compiler_pic_CXX='-fPIC'
13686 ;;
13687 esac
13688 ;;
13689 *qnx* | *nto*)
13690 # QNX uses GNU C++, but need to define -shared option too, otherwise
13691 # it will coredump.
13692 lt_prog_compiler_pic_CXX='-fPIC -shared'
13693 ;;
13694 *)
13695 lt_prog_compiler_pic_CXX='-fPIC'
13696 ;;
13697 esac
13698 else
13699 case $host_os in
13700 aix[4-9]*)
13701 # All AIX code is PIC.
13702 if test "$host_cpu" = ia64; then
13703 # AIX 5 now supports IA64 processor
13704 lt_prog_compiler_static_CXX='-Bstatic'
13705 else
13706 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13707 fi
13708 ;;
13709 chorus*)
13710 case $cc_basename in
13711 cxch68*)
13712 # Green Hills C++ Compiler
13713 # _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"
13714 ;;
13715 esac
13716 ;;
13717 dgux*)
13718 case $cc_basename in
13719 ec++*)
13720 lt_prog_compiler_pic_CXX='-KPIC'
13721 ;;
13722 ghcx*)
13723 # Green Hills C++ Compiler
13724 lt_prog_compiler_pic_CXX='-pic'
13725 ;;
13726 *)
13727 ;;
13728 esac
13729 ;;
13730 freebsd* | dragonfly*)
13731 # FreeBSD uses GNU C++
13732 ;;
13733 hpux9* | hpux10* | hpux11*)
13734 case $cc_basename in
13735 CC*)
13736 lt_prog_compiler_wl_CXX='-Wl,'
13737 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13738 if test "$host_cpu" != ia64; then
13739 lt_prog_compiler_pic_CXX='+Z'
13740 fi
13741 ;;
13742 aCC*)
13743 lt_prog_compiler_wl_CXX='-Wl,'
13744 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13745 case $host_cpu in
13746 hppa*64*|ia64*)
13747 # +Z the default
13748 ;;
13749 *)
13750 lt_prog_compiler_pic_CXX='+Z'
13751 ;;
13752 esac
13753 ;;
13754 *)
13755 ;;
13756 esac
13757 ;;
13758 interix*)
13759 # This is c89, which is MS Visual C++ (no shared libs)
13760 # Anyone wants to do a port?
13761 ;;
13762 irix5* | irix6* | nonstopux*)
13763 case $cc_basename in
13764 CC*)
13765 lt_prog_compiler_wl_CXX='-Wl,'
13766 lt_prog_compiler_static_CXX='-non_shared'
13767 # CC pic flag -KPIC is the default.
13768 ;;
13769 *)
13770 ;;
13771 esac
13772 ;;
13773 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13774 case $cc_basename in
13775 KCC*)
13776 # KAI C++ Compiler
13777 lt_prog_compiler_wl_CXX='--backend -Wl,'
13778 lt_prog_compiler_pic_CXX='-fPIC'
13779 ;;
13780 ecpc* )
13781 # old Intel C++ for x86_64 which still supported -KPIC.
13782 lt_prog_compiler_wl_CXX='-Wl,'
13783 lt_prog_compiler_pic_CXX='-KPIC'
13784 lt_prog_compiler_static_CXX='-static'
13785 ;;
13786 icpc* )
13787 # Intel C++, used to be incompatible with GCC.
13788 # ICC 10 doesn't accept -KPIC any more.
13789 lt_prog_compiler_wl_CXX='-Wl,'
13790 lt_prog_compiler_pic_CXX='-fPIC'
13791 lt_prog_compiler_static_CXX='-static'
13792 ;;
13793 pgCC* | pgcpp*)
13794 # Portland Group C++ compiler
13795 lt_prog_compiler_wl_CXX='-Wl,'
13796 lt_prog_compiler_pic_CXX='-fpic'
13797 lt_prog_compiler_static_CXX='-Bstatic'
13798 ;;
13799 cxx*)
13800 # Compaq C++
13801 # Make sure the PIC flag is empty. It appears that all Alpha
13802 # Linux and Compaq Tru64 Unix objects are PIC.
13803 lt_prog_compiler_pic_CXX=
13804 lt_prog_compiler_static_CXX='-non_shared'
13805 ;;
13806 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13807 # IBM XL 8.0, 9.0 on PPC and BlueGene
13808 lt_prog_compiler_wl_CXX='-Wl,'
13809 lt_prog_compiler_pic_CXX='-qpic'
13810 lt_prog_compiler_static_CXX='-qstaticlink'
13811 ;;
13812 *)
13813 case `$CC -V 2>&1 | sed 5q` in
13814 *Sun\ C*)
13815 # Sun C++ 5.9
13816 lt_prog_compiler_pic_CXX='-KPIC'
13817 lt_prog_compiler_static_CXX='-Bstatic'
13818 lt_prog_compiler_wl_CXX='-Qoption ld '
13819 ;;
13820 esac
13821 ;;
13822 esac
13823 ;;
13824 lynxos*)
13825 ;;
13826 m88k*)
13827 ;;
13828 mvs*)
13829 case $cc_basename in
13830 cxx*)
13831 lt_prog_compiler_pic_CXX='-W c,exportall'
13832 ;;
13833 *)
13834 ;;
13835 esac
13836 ;;
13837 netbsd*)
13838 ;;
13839 *qnx* | *nto*)
13840 # QNX uses GNU C++, but need to define -shared option too, otherwise
13841 # it will coredump.
13842 lt_prog_compiler_pic_CXX='-fPIC -shared'
13843 ;;
13844 osf3* | osf4* | osf5*)
13845 case $cc_basename in
13846 KCC*)
13847 lt_prog_compiler_wl_CXX='--backend -Wl,'
13848 ;;
13849 RCC*)
13850 # Rational C++ 2.4.1
13851 lt_prog_compiler_pic_CXX='-pic'
13852 ;;
13853 cxx*)
13854 # Digital/Compaq C++
13855 lt_prog_compiler_wl_CXX='-Wl,'
13856 # Make sure the PIC flag is empty. It appears that all Alpha
13857 # Linux and Compaq Tru64 Unix objects are PIC.
13858 lt_prog_compiler_pic_CXX=
13859 lt_prog_compiler_static_CXX='-non_shared'
13860 ;;
13861 *)
13862 ;;
13863 esac
13864 ;;
13865 psos*)
13866 ;;
13867 solaris*)
13868 case $cc_basename in
13869 CC*)
13870 # Sun C++ 4.2, 5.x and Centerline C++
13871 lt_prog_compiler_pic_CXX='-KPIC'
13872 lt_prog_compiler_static_CXX='-Bstatic'
13873 lt_prog_compiler_wl_CXX='-Qoption ld '
13874 ;;
13875 gcx*)
13876 # Green Hills C++ Compiler
13877 lt_prog_compiler_pic_CXX='-PIC'
13878 ;;
13879 *)
13880 ;;
13881 esac
13882 ;;
13883 sunos4*)
13884 case $cc_basename in
13885 CC*)
13886 # Sun C++ 4.x
13887 lt_prog_compiler_pic_CXX='-pic'
13888 lt_prog_compiler_static_CXX='-Bstatic'
13889 ;;
13890 lcc*)
13891 # Lucid
13892 lt_prog_compiler_pic_CXX='-pic'
13893 ;;
13894 *)
13895 ;;
13896 esac
13897 ;;
13898 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13899 case $cc_basename in
13900 CC*)
13901 lt_prog_compiler_wl_CXX='-Wl,'
13902 lt_prog_compiler_pic_CXX='-KPIC'
13903 lt_prog_compiler_static_CXX='-Bstatic'
13904 ;;
13905 esac
13906 ;;
13907 tandem*)
13908 case $cc_basename in
13909 NCC*)
13910 # NonStop-UX NCC 3.20
13911 lt_prog_compiler_pic_CXX='-KPIC'
13912 ;;
13913 *)
13914 ;;
13915 esac
13916 ;;
13917 vxworks*)
13918 ;;
13919 *)
13920 lt_prog_compiler_can_build_shared_CXX=no
13921 ;;
13922 esac
13923 fi
13924
13925case $host_os in
13926 # For platforms which do not support PIC, -DPIC is meaningless:
13927 *djgpp*)
13928 lt_prog_compiler_pic_CXX=
13929 ;;
13930 *)
13931 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13932 ;;
13933esac
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13935$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13936
13937
13938
13939#
13940# Check to make sure the PIC flag actually works.
13941#
13942if test -n "$lt_prog_compiler_pic_CXX"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13944$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13945if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13947else
13948 lt_cv_prog_compiler_pic_works_CXX=no
13949 ac_outfile=conftest.$ac_objext
13950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13951 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13952 # Insert the option either (1) after the last *FLAGS variable, or
13953 # (2) before a word containing "conftest.", or (3) at the end.
13954 # Note that $ac_compile itself does not contain backslashes and begins
13955 # with a dollar sign (not a hyphen), so the echo should work correctly.
13956 # The option is referenced via a variable to avoid confusing sed.
13957 lt_compile=`echo "$ac_compile" | $SED \
13958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13960 -e 's:$: $lt_compiler_flag:'`
13961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13962 (eval "$lt_compile" 2>conftest.err)
13963 ac_status=$?
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 if (exit $ac_status) && test -s "$ac_outfile"; then
13967 # The compiler can only warn and ignore the option if not recognized
13968 # So say no if there are warnings other than the usual output.
13969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13972 lt_cv_prog_compiler_pic_works_CXX=yes
13973 fi
13974 fi
13975 $RM conftest*
13976
13977fi
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13979$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13980
13981if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13982 case $lt_prog_compiler_pic_CXX in
13983 "" | " "*) ;;
13984 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13985 esac
13986else
13987 lt_prog_compiler_pic_CXX=
13988 lt_prog_compiler_can_build_shared_CXX=no
13989fi
13990
13991fi
13992
13993
13994
13995#
13996# Check to make sure the static flag actually works.
13997#
13998wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14000$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14001if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003else
14004 lt_cv_prog_compiler_static_works_CXX=no
14005 save_LDFLAGS="$LDFLAGS"
14006 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14007 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14009 # The linker can only warn and ignore the option if not recognized
14010 # So say no if there are warnings
14011 if test -s conftest.err; then
14012 # Append any errors to the config.log.
14013 cat conftest.err 1>&5
14014 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14016 if diff conftest.exp conftest.er2 >/dev/null; then
14017 lt_cv_prog_compiler_static_works_CXX=yes
14018 fi
14019 else
14020 lt_cv_prog_compiler_static_works_CXX=yes
14021 fi
14022 fi
14023 $RM -r conftest*
14024 LDFLAGS="$save_LDFLAGS"
14025
14026fi
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14028$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14029
14030if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14031 :
14032else
14033 lt_prog_compiler_static_CXX=
14034fi
14035
14036
14037
14038
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14040$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14041if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14043else
14044 lt_cv_prog_compiler_c_o_CXX=no
14045 $RM -r conftest 2>/dev/null
14046 mkdir conftest
14047 cd conftest
14048 mkdir out
14049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14050
14051 lt_compiler_flag="-o out/conftest2.$ac_objext"
14052 # Insert the option either (1) after the last *FLAGS variable, or
14053 # (2) before a word containing "conftest.", or (3) at the end.
14054 # Note that $ac_compile itself does not contain backslashes and begins
14055 # with a dollar sign (not a hyphen), so the echo should work correctly.
14056 lt_compile=`echo "$ac_compile" | $SED \
14057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14059 -e 's:$: $lt_compiler_flag:'`
14060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14061 (eval "$lt_compile" 2>out/conftest.err)
14062 ac_status=$?
14063 cat out/conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14066 then
14067 # The compiler can only warn and ignore the option if not recognized
14068 # So say no if there are warnings
14069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14072 lt_cv_prog_compiler_c_o_CXX=yes
14073 fi
14074 fi
14075 chmod u+w . 2>&5
14076 $RM conftest*
14077 # SGI C++ compiler will create directory out/ii_files/ for
14078 # template instantiation
14079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14080 $RM out/* && rmdir out
14081 cd ..
14082 $RM -r conftest
14083 $RM conftest*
14084
14085fi
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14087$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14088
14089
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14092$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14093if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095else
14096 lt_cv_prog_compiler_c_o_CXX=no
14097 $RM -r conftest 2>/dev/null
14098 mkdir conftest
14099 cd conftest
14100 mkdir out
14101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14102
14103 lt_compiler_flag="-o out/conftest2.$ac_objext"
14104 # Insert the option either (1) after the last *FLAGS variable, or
14105 # (2) before a word containing "conftest.", or (3) at the end.
14106 # Note that $ac_compile itself does not contain backslashes and begins
14107 # with a dollar sign (not a hyphen), so the echo should work correctly.
14108 lt_compile=`echo "$ac_compile" | $SED \
14109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14111 -e 's:$: $lt_compiler_flag:'`
14112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14113 (eval "$lt_compile" 2>out/conftest.err)
14114 ac_status=$?
14115 cat out/conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14118 then
14119 # The compiler can only warn and ignore the option if not recognized
14120 # So say no if there are warnings
14121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14124 lt_cv_prog_compiler_c_o_CXX=yes
14125 fi
14126 fi
14127 chmod u+w . 2>&5
14128 $RM conftest*
14129 # SGI C++ compiler will create directory out/ii_files/ for
14130 # template instantiation
14131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14132 $RM out/* && rmdir out
14133 cd ..
14134 $RM -r conftest
14135 $RM conftest*
14136
14137fi
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14139$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14140
14141
14142
14143
14144hard_links="nottested"
14145if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14146 # do not overwrite the value of need_locks provided by the user
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14148$as_echo_n "checking if we can lock with hard links... " >&6; }
14149 hard_links=yes
14150 $RM conftest*
14151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14152 touch conftest.a
14153 ln conftest.a conftest.b 2>&5 || hard_links=no
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14156$as_echo "$hard_links" >&6; }
14157 if test "$hard_links" = no; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14159$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14160 need_locks=warn
14161 fi
14162else
14163 need_locks=no
14164fi
14165
14166
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14170
14171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14172 case $host_os in
14173 aix[4-9]*)
14174 # If we're using GNU nm, then we don't want the "-C" option.
14175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14176 # Also, AIX nm treats weak defined symbols like other global defined
14177 # symbols, whereas GNU nm marks them as "W".
14178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14179 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'
14180 else
5c14705f 14181 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
3cb62297
L
14182 fi
14183 ;;
14184 pw32*)
14185 export_symbols_cmds_CXX="$ltdll_cmds"
14186 ;;
14187 cygwin* | mingw* | cegcc*)
14188 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'
14189 ;;
14190 *)
14191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192 ;;
14193 esac
14194 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14195
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14197$as_echo "$ld_shlibs_CXX" >&6; }
14198test "$ld_shlibs_CXX" = no && can_build_shared=no
14199
14200with_gnu_ld_CXX=$with_gnu_ld
14201
14202
14203
14204
14205
14206
14207#
14208# Do we need to explicitly link libc?
14209#
14210case "x$archive_cmds_need_lc_CXX" in
14211x|xyes)
14212 # Assume -lc should be added
14213 archive_cmds_need_lc_CXX=yes
14214
14215 if test "$enable_shared" = yes && test "$GCC" = yes; then
14216 case $archive_cmds_CXX in
14217 *'~'*)
14218 # FIXME: we may have to deal with multi-command sequences.
14219 ;;
14220 '$CC '*)
14221 # Test whether the compiler implicitly links with -lc since on some
14222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223 # to ld, don't add -lc before -lgcc.
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14225$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14226if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14227 $as_echo_n "(cached) " >&6
14228else
14229 $RM conftest*
14230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14231
14232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; } 2>conftest.err; then
14237 soname=conftest
14238 lib=conftest
14239 libobjs=conftest.$ac_objext
14240 deplibs=
14241 wl=$lt_prog_compiler_wl_CXX
14242 pic_flag=$lt_prog_compiler_pic_CXX
14243 compiler_flags=-v
14244 linker_flags=-v
14245 verstring=
14246 output_objdir=.
14247 libname=conftest
14248 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14249 allow_undefined_flag_CXX=
14250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14251 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14252 ac_status=$?
14253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }
14255 then
14256 lt_cv_archive_cmds_need_lc_CXX=no
14257 else
14258 lt_cv_archive_cmds_need_lc_CXX=yes
14259 fi
14260 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14261 else
14262 cat conftest.err 1>&5
14263 fi
14264 $RM conftest*
14265
14266fi
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14268$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14269 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14270 ;;
14271 esac
14272 fi
14273 ;;
14274esac
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14340$as_echo_n "checking dynamic linker characteristics... " >&6; }
14341
14342library_names_spec=
14343libname_spec='lib$name'
14344soname_spec=
14345shrext_cmds=".so"
14346postinstall_cmds=
14347postuninstall_cmds=
14348finish_cmds=
14349finish_eval=
14350shlibpath_var=
14351shlibpath_overrides_runpath=unknown
14352version_type=none
14353dynamic_linker="$host_os ld.so"
14354sys_lib_dlsearch_path_spec="/lib /usr/lib"
14355need_lib_prefix=unknown
14356hardcode_into_libs=no
14357
14358# when you set need_version to no, make sure it does not cause -set_version
14359# flags to be left without arguments
14360need_version=unknown
14361
14362case $host_os in
14363aix3*)
14364 version_type=linux
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14366 shlibpath_var=LIBPATH
14367
14368 # AIX 3 has no versioning support, so we append a major version to the name.
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 ;;
14371
14372aix[4-9]*)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 hardcode_into_libs=yes
14377 if test "$host_cpu" = ia64; then
14378 # AIX 5 supports IA64
14379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 else
14382 # With GCC up to 2.95.x, collect2 would create an import file
14383 # for dependence libraries. The import file would start with
14384 # the line `#! .'. This would cause the generated library to
14385 # depend on `.', always an invalid library. This was fixed in
14386 # development snapshots of GCC prior to 3.0.
14387 case $host_os in
14388 aix4 | aix4.[01] | aix4.[01].*)
14389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14390 echo ' yes '
14391 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14392 :
14393 else
14394 can_build_shared=no
14395 fi
14396 ;;
14397 esac
14398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14399 # soname into executable. Probably we can add versioning support to
14400 # collect2, so additional links can be useful in future.
14401 if test "$aix_use_runtimelinking" = yes; then
14402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14403 # instead of lib<name>.a to let people know that these are not
14404 # typical AIX shared libraries.
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 else
14407 # We preserve .a as extension for shared libraries through AIX4.2
14408 # and later when we are not doing run time linking.
14409 library_names_spec='${libname}${release}.a $libname.a'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 fi
14412 shlibpath_var=LIBPATH
14413 fi
14414 ;;
14415
14416amigaos*)
14417 case $host_cpu in
14418 powerpc)
14419 # Since July 2007 AmigaOS4 officially supports .so libraries.
14420 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 ;;
14423 m68k)
14424 library_names_spec='$libname.ixlibrary $libname.a'
14425 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14426 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'
14427 ;;
14428 esac
14429 ;;
14430
14431beos*)
14432 library_names_spec='${libname}${shared_ext}'
14433 dynamic_linker="$host_os ld.so"
14434 shlibpath_var=LIBRARY_PATH
14435 ;;
14436
14437bsdi[45]*)
14438 version_type=linux
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14445 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14446 # the default ld.so.conf also contains /usr/contrib/lib and
14447 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14448 # libtool to hard-code these into programs
14449 ;;
14450
14451cygwin* | mingw* | pw32* | cegcc*)
14452 version_type=windows
14453 shrext_cmds=".dll"
14454 need_version=no
14455 need_lib_prefix=no
14456
14457 case $GCC,$host_os in
14458 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14459 library_names_spec='$libname.dll.a'
14460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14461 postinstall_cmds='base_file=`basename \${file}`~
14462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14463 dldir=$destdir/`dirname \$dlpath`~
14464 test -d \$dldir || mkdir -p \$dldir~
14465 $install_prog $dir/$dlname \$dldir/$dlname~
14466 chmod a+x \$dldir/$dlname~
14467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14469 fi'
14470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14471 dlpath=$dir/\$dldll~
14472 $RM \$dlpath'
14473 shlibpath_overrides_runpath=yes
14474
14475 case $host_os in
14476 cygwin*)
14477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479
14480 ;;
14481 mingw* | cegcc*)
14482 # MinGW DLLs use traditional 'lib' prefix
14483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484 ;;
14485 pw32*)
14486 # pw32 DLLs use 'pw' prefix rather than 'lib'
14487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488 ;;
14489 esac
14490 ;;
14491
14492 *)
14493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14494 ;;
14495 esac
14496 dynamic_linker='Win32 ld.exe'
14497 # FIXME: first we should search . and the directory the executable is in
14498 shlibpath_var=PATH
14499 ;;
14500
14501darwin* | rhapsody*)
14502 dynamic_linker="$host_os dyld"
14503 version_type=darwin
14504 need_lib_prefix=no
14505 need_version=no
14506 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14507 soname_spec='${libname}${release}${major}$shared_ext'
14508 shlibpath_overrides_runpath=yes
14509 shlibpath_var=DYLD_LIBRARY_PATH
14510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14511
14512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14513 ;;
14514
14515dgux*)
14516 version_type=linux
14517 need_lib_prefix=no
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 ;;
14523
3cb62297
L
14524freebsd* | dragonfly*)
14525 # DragonFly does not have aout. When/if they implement a new
14526 # versioning mechanism, adjust this.
14527 if test -x /usr/bin/objformat; then
14528 objformat=`/usr/bin/objformat`
14529 else
14530 case $host_os in
6d2920c8 14531 freebsd[23].*) objformat=aout ;;
3cb62297
L
14532 *) objformat=elf ;;
14533 esac
14534 fi
14535 version_type=freebsd-$objformat
14536 case $version_type in
14537 freebsd-elf*)
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14539 need_version=no
14540 need_lib_prefix=no
14541 ;;
14542 freebsd-*)
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14544 need_version=yes
14545 ;;
14546 esac
14547 shlibpath_var=LD_LIBRARY_PATH
14548 case $host_os in
6d2920c8 14549 freebsd2.*)
3cb62297
L
14550 shlibpath_overrides_runpath=yes
14551 ;;
14552 freebsd3.[01]* | freebsdelf3.[01]*)
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14555 ;;
14556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14560 ;;
14561 *) # from 4.6 on, and DragonFly
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14564 ;;
14565 esac
14566 ;;
14567
14568gnu*)
14569 version_type=linux
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 hardcode_into_libs=yes
14576 ;;
14577
14578haiku*)
14579 version_type=linux
14580 need_lib_prefix=no
14581 need_version=no
14582 dynamic_linker="$host_os runtime_loader"
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 shlibpath_var=LIBRARY_PATH
14586 shlibpath_overrides_runpath=yes
14587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14588 hardcode_into_libs=yes
14589 ;;
14590
14591hpux9* | hpux10* | hpux11*)
14592 # Give a soname corresponding to the major version so that dld.sl refuses to
14593 # link against other versions.
14594 version_type=sunos
14595 need_lib_prefix=no
14596 need_version=no
14597 case $host_cpu in
14598 ia64*)
14599 shrext_cmds='.so'
14600 hardcode_into_libs=yes
14601 dynamic_linker="$host_os dld.so"
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 if test "X$HPUX_IA64_MODE" = X32; then
14607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14608 else
14609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14610 fi
14611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14612 ;;
14613 hppa*64*)
14614 shrext_cmds='.sl'
14615 hardcode_into_libs=yes
14616 dynamic_linker="$host_os dld.sl"
14617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14623 ;;
14624 *)
14625 shrext_cmds='.sl'
14626 dynamic_linker="$host_os dld.sl"
14627 shlibpath_var=SHLIB_PATH
14628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 ;;
14632 esac
14633 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14634 postinstall_cmds='chmod 555 $lib'
14635 # or fails outright, so override atomically:
14636 install_override_mode=555
14637 ;;
14638
14639interix[3-9]*)
14640 version_type=linux
14641 need_lib_prefix=no
14642 need_version=no
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14646 shlibpath_var=LD_LIBRARY_PATH
14647 shlibpath_overrides_runpath=no
14648 hardcode_into_libs=yes
14649 ;;
14650
14651irix5* | irix6* | nonstopux*)
14652 case $host_os in
14653 nonstopux*) version_type=nonstopux ;;
14654 *)
14655 if test "$lt_cv_prog_gnu_ld" = yes; then
14656 version_type=linux
14657 else
14658 version_type=irix
14659 fi ;;
14660 esac
14661 need_lib_prefix=no
14662 need_version=no
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14665 case $host_os in
14666 irix5* | nonstopux*)
14667 libsuff= shlibsuff=
14668 ;;
14669 *)
14670 case $LD in # libtool.m4 will add one of these switches to LD
14671 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14672 libsuff= shlibsuff= libmagic=32-bit;;
14673 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14674 libsuff=32 shlibsuff=N32 libmagic=N32;;
14675 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14676 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14677 *) libsuff= shlibsuff= libmagic=never-match;;
14678 esac
14679 ;;
14680 esac
14681 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14682 shlibpath_overrides_runpath=no
14683 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14684 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14685 hardcode_into_libs=yes
14686 ;;
14687
14688# No shared lib support for Linux oldld, aout, or coff.
14689linux*oldld* | linux*aout* | linux*coff*)
14690 dynamic_linker=no
14691 ;;
14692
14693# This must be Linux ELF.
14694linux* | k*bsd*-gnu | kopensolaris*-gnu)
14695 version_type=linux
14696 need_lib_prefix=no
14697 need_version=no
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=no
14703
14704 # Some binutils ld are patched to set DT_RUNPATH
14705 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707else
14708 lt_cv_shlibpath_overrides_runpath=no
14709 save_LDFLAGS=$LDFLAGS
14710 save_libdir=$libdir
14711 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14712 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714/* end confdefs.h. */
14715
14716int
14717main ()
14718{
14719
14720 ;
14721 return 0;
14722}
14723_ACEOF
14724if ac_fn_cxx_try_link "$LINENO"; then :
14725 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14726 lt_cv_shlibpath_overrides_runpath=yes
14727fi
14728fi
14729rm -f core conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LDFLAGS=$save_LDFLAGS
14732 libdir=$save_libdir
14733
14734fi
14735
14736 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14737
14738 # This implies no fast_install, which is unacceptable.
14739 # Some rework will be needed to allow for fast_install
14740 # before this can be enabled.
14741 hardcode_into_libs=yes
14742
14743 # Append ld.so.conf contents to the search path
14744 if test -f /etc/ld.so.conf; then
14745 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' ' '`
14746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14747 fi
14748
14749 # We used to test for /lib/ld.so.1 and disable shared libraries on
14750 # powerpc, because MkLinux only supported shared libraries with the
14751 # GNU dynamic linker. Since this was broken with cross compilers,
14752 # most powerpc-linux boxes support dynamic linking these days and
14753 # people can always --disable-shared, the test was removed, and we
14754 # assume the GNU/Linux dynamic linker is in use.
14755 dynamic_linker='GNU/Linux ld.so'
14756 ;;
14757
14758netbsd*)
14759 version_type=sunos
14760 need_lib_prefix=no
14761 need_version=no
14762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14765 dynamic_linker='NetBSD (a.out) ld.so'
14766 else
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 dynamic_linker='NetBSD ld.elf_so'
14770 fi
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes
14773 hardcode_into_libs=yes
14774 ;;
14775
14776newsos6)
14777 version_type=linux
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=yes
14781 ;;
14782
14783*nto* | *qnx*)
14784 version_type=qnx
14785 need_lib_prefix=no
14786 need_version=no
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788 soname_spec='${libname}${release}${shared_ext}$major'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 shlibpath_overrides_runpath=no
14791 hardcode_into_libs=yes
14792 dynamic_linker='ldqnx.so'
14793 ;;
14794
14795openbsd*)
14796 version_type=sunos
14797 sys_lib_dlsearch_path_spec="/usr/lib"
14798 need_lib_prefix=no
14799 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14800 case $host_os in
14801 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14802 *) need_version=no ;;
14803 esac
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14808 case $host_os in
14809 openbsd2.[89] | openbsd2.[89].*)
14810 shlibpath_overrides_runpath=no
14811 ;;
14812 *)
14813 shlibpath_overrides_runpath=yes
14814 ;;
14815 esac
14816 else
14817 shlibpath_overrides_runpath=yes
14818 fi
14819 ;;
14820
14821os2*)
14822 libname_spec='$name'
14823 shrext_cmds=".dll"
14824 need_lib_prefix=no
14825 library_names_spec='$libname${shared_ext} $libname.a'
14826 dynamic_linker='OS/2 ld.exe'
14827 shlibpath_var=LIBPATH
14828 ;;
14829
14830osf3* | osf4* | osf5*)
14831 version_type=osf
14832 need_lib_prefix=no
14833 need_version=no
14834 soname_spec='${libname}${release}${shared_ext}$major'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14839 ;;
14840
14841rdos*)
14842 dynamic_linker=no
14843 ;;
14844
14845solaris*)
14846 version_type=linux
14847 need_lib_prefix=no
14848 need_version=no
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 shlibpath_overrides_runpath=yes
14853 hardcode_into_libs=yes
14854 # ldd complains unless libraries are executable
14855 postinstall_cmds='chmod +x $lib'
14856 ;;
14857
14858sunos4*)
14859 version_type=sunos
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=yes
14864 if test "$with_gnu_ld" = yes; then
14865 need_lib_prefix=no
14866 fi
14867 need_version=yes
14868 ;;
14869
14870sysv4 | sysv4.3*)
14871 version_type=linux
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 case $host_vendor in
14876 sni)
14877 shlibpath_overrides_runpath=no
14878 need_lib_prefix=no
14879 runpath_var=LD_RUN_PATH
14880 ;;
14881 siemens)
14882 need_lib_prefix=no
14883 ;;
14884 motorola)
14885 need_lib_prefix=no
14886 need_version=no
14887 shlibpath_overrides_runpath=no
14888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14889 ;;
14890 esac
14891 ;;
14892
14893sysv4*MP*)
14894 if test -d /usr/nec ;then
14895 version_type=linux
14896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14897 soname_spec='$libname${shared_ext}.$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 fi
14900 ;;
14901
14902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14903 version_type=freebsd-elf
14904 need_lib_prefix=no
14905 need_version=no
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 shlibpath_overrides_runpath=yes
14910 hardcode_into_libs=yes
14911 if test "$with_gnu_ld" = yes; then
14912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14913 else
14914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14915 case $host_os in
14916 sco3.2v5*)
14917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14918 ;;
14919 esac
14920 fi
14921 sys_lib_dlsearch_path_spec='/usr/lib'
14922 ;;
14923
14924tpf*)
14925 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14926 version_type=linux
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=no
14932 hardcode_into_libs=yes
14933 ;;
14934
14935uts4*)
14936 version_type=linux
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 ;;
14941
14942*)
14943 dynamic_linker=no
14944 ;;
14945esac
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14947$as_echo "$dynamic_linker" >&6; }
14948test "$dynamic_linker" = no && can_build_shared=no
14949
14950variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14951if test "$GCC" = yes; then
14952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14953fi
14954
14955if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14956 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14957fi
14958if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14959 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14960fi
14961
3725885a 14962
ce2cded5 14963
ce2cded5 14964
ce2cded5 14965
d7040cdb 14966
ce2cded5 14967
ce2cded5 14968
ce2cded5 14969
d7040cdb 14970
ce2cded5
L
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
ce2cded5
L
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
b879806f
AM
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15000$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15001hardcode_action_CXX=
15002if test -n "$hardcode_libdir_flag_spec_CXX" ||
15003 test -n "$runpath_var_CXX" ||
15004 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15005
15006 # We can hardcode non-existent directories.
15007 if test "$hardcode_direct_CXX" != no &&
15008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15009 # have to relink, otherwise we might link with an installed library
15010 # when we should be linking with a yet-to-be-installed one
15011 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15012 test "$hardcode_minus_L_CXX" != no; then
15013 # Linking always hardcodes the temporary library directory.
15014 hardcode_action_CXX=relink
15015 else
15016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15017 hardcode_action_CXX=immediate
15018 fi
15019else
15020 # We cannot hardcode anything, or else we can only hardcode existing
15021 # directories.
15022 hardcode_action_CXX=unsupported
15023fi
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15025$as_echo "$hardcode_action_CXX" >&6; }
15026
15027if test "$hardcode_action_CXX" = relink ||
15028 test "$inherit_rpath_CXX" = yes; then
15029 # Fast installation is not supported
15030 enable_fast_install=no
15031elif test "$shlibpath_overrides_runpath" = yes ||
15032 test "$enable_shared" = no; then
15033 # Fast installation is not necessary
15034 enable_fast_install=needless
15035fi
15036
15037
15038
15039
15040
15041
15042
15043 fi # test -n "$compiler"
15044
15045 CC=$lt_save_CC
15046 LDCXX=$LD
15047 LD=$lt_save_LD
15048 GCC=$lt_save_GCC
15049 with_gnu_ld=$lt_save_with_gnu_ld
15050 lt_cv_path_LDCXX=$lt_cv_path_LD
15051 lt_cv_path_LD=$lt_save_path_LD
15052 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15053 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15054fi # test "$_lt_caught_CXX_error" != yes
15055
15056ac_ext=c
15057ac_cpp='$CPP $CPPFLAGS'
15058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15060ac_compiler_gnu=$ac_cv_c_compiler_gnu
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074 ac_config_commands="$ac_config_commands libtool"
15075
15076
15077
15078
15079# Only expand once:
15080
15081
15082
15083# The tests for host and target for $enable_largefile require
15084# canonical names.
15085
15086
15087
15088# As the $enable_largefile decision depends on --enable-plugins we must set it
15089# even in directories otherwise not depending on the $plugins option.
15090
15091
15092 maybe_plugins=no
15093 for ac_header in dlfcn.h
15094do :
15095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15096"
15097if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15098 cat >>confdefs.h <<_ACEOF
15099#define HAVE_DLFCN_H 1
15100_ACEOF
15101 maybe_plugins=yes
15102fi
15103
15104done
15105
15106 for ac_header in windows.h
15107do :
15108 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15109"
15110if test "x$ac_cv_header_windows_h" = x""yes; then :
15111 cat >>confdefs.h <<_ACEOF
15112#define HAVE_WINDOWS_H 1
15113_ACEOF
15114 maybe_plugins=yes
15115fi
15116
15117done
15118
15119
15120 # Check whether --enable-plugins was given.
15121if test "${enable_plugins+set}" = set; then :
15122 enableval=$enable_plugins; case "${enableval}" in
15123 no) plugins=no ;;
15124 *) plugins=yes
15125 if test "$maybe_plugins" != "yes" ; then
15126 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15127 fi ;;
15128 esac
15129else
15130 plugins=$maybe_plugins
15131
15132fi
15133
2974be62
AM
15134 if test "$plugins" = "yes"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15136$as_echo_n "checking for library containing dlopen... " >&6; }
15137if test "${ac_cv_search_dlopen+set}" = set; then :
15138 $as_echo_n "(cached) " >&6
15139else
15140 ac_func_search_save_LIBS=$LIBS
15141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142/* end confdefs.h. */
15143
15144/* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147#ifdef __cplusplus
15148extern "C"
15149#endif
15150char dlopen ();
15151int
15152main ()
15153{
15154return dlopen ();
15155 ;
15156 return 0;
15157}
15158_ACEOF
15159for ac_lib in '' dl; do
15160 if test -z "$ac_lib"; then
15161 ac_res="none required"
15162 else
15163 ac_res=-l$ac_lib
15164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15165 fi
15166 if ac_fn_c_try_link "$LINENO"; then :
15167 ac_cv_search_dlopen=$ac_res
15168fi
15169rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext
15171 if test "${ac_cv_search_dlopen+set}" = set; then :
15172 break
15173fi
15174done
15175if test "${ac_cv_search_dlopen+set}" = set; then :
15176
15177else
15178 ac_cv_search_dlopen=no
15179fi
15180rm conftest.$ac_ext
15181LIBS=$ac_func_search_save_LIBS
15182fi
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15184$as_echo "$ac_cv_search_dlopen" >&6; }
15185ac_res=$ac_cv_search_dlopen
15186if test "$ac_res" != no; then :
15187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15188
15189fi
15190
15191 fi
b879806f
AM
15192
15193
15194case "${host}" in
15195 sparc-*-solaris*|i[3-7]86-*-solaris*)
15196 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15197 # are mutually exclusive; and without procfs support, the bfd/ elf module
15198 # cannot provide certain routines such as elfcore_write_prpsinfo
15199 # or elfcore_write_prstatus. So unless the user explicitly requested
15200 # large-file support through the --enable-largefile switch, disable
15201 # large-file support in favor of procfs support.
15202 test "${target}" = "${host}" -a "x$plugins" = xno \
15203 && : ${enable_largefile="no"}
15204 ;;
15205esac
15206
15207# Check whether --enable-largefile was given.
15208if test "${enable_largefile+set}" = set; then :
15209 enableval=$enable_largefile;
15210fi
15211
15212if test "$enable_largefile" != no; then
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15215$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15216if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15218else
15219 ac_cv_sys_largefile_CC=no
15220 if test "$GCC" != yes; then
15221 ac_save_CC=$CC
15222 while :; do
15223 # IRIX 6.2 and later do not support large files by default,
15224 # so use the C compiler's -n32 option if that helps.
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226/* end confdefs.h. */
15227#include <sys/types.h>
15228 /* Check that off_t can represent 2**63 - 1 correctly.
15229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15230 since some C++ compilers masquerading as C compilers
15231 incorrectly reject 9223372036854775807. */
15232#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15234 && LARGE_OFF_T % 2147483647 == 1)
15235 ? 1 : -1];
15236int
15237main ()
15238{
15239
15240 ;
15241 return 0;
15242}
15243_ACEOF
15244 if ac_fn_c_try_compile "$LINENO"; then :
15245 break
15246fi
15247rm -f core conftest.err conftest.$ac_objext
15248 CC="$CC -n32"
15249 if ac_fn_c_try_compile "$LINENO"; then :
15250 ac_cv_sys_largefile_CC=' -n32'; break
15251fi
15252rm -f core conftest.err conftest.$ac_objext
15253 break
15254 done
15255 CC=$ac_save_CC
15256 rm -f conftest.$ac_ext
15257 fi
15258fi
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15260$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15261 if test "$ac_cv_sys_largefile_CC" != no; then
15262 CC=$CC$ac_cv_sys_largefile_CC
15263 fi
15264
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15266$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15267if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15268 $as_echo_n "(cached) " >&6
15269else
15270 while :; do
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272/* end confdefs.h. */
15273#include <sys/types.h>
15274 /* Check that off_t can represent 2**63 - 1 correctly.
15275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15276 since some C++ compilers masquerading as C compilers
15277 incorrectly reject 9223372036854775807. */
15278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15280 && LARGE_OFF_T % 2147483647 == 1)
15281 ? 1 : -1];
15282int
15283main ()
15284{
15285
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290if ac_fn_c_try_compile "$LINENO"; then :
15291 ac_cv_sys_file_offset_bits=no; break
15292fi
15293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295/* end confdefs.h. */
15296#define _FILE_OFFSET_BITS 64
15297#include <sys/types.h>
15298 /* Check that off_t can represent 2**63 - 1 correctly.
15299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15300 since some C++ compilers masquerading as C compilers
15301 incorrectly reject 9223372036854775807. */
15302#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15304 && LARGE_OFF_T % 2147483647 == 1)
15305 ? 1 : -1];
15306int
15307main ()
15308{
15309
15310 ;
15311 return 0;
15312}
15313_ACEOF
15314if ac_fn_c_try_compile "$LINENO"; then :
15315 ac_cv_sys_file_offset_bits=64; break
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 ac_cv_sys_file_offset_bits=unknown
15319 break
15320done
15321fi
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15323$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15324case $ac_cv_sys_file_offset_bits in #(
15325 no | unknown) ;;
15326 *)
15327cat >>confdefs.h <<_ACEOF
15328#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15329_ACEOF
15330;;
15331esac
15332rm -rf conftest*
15333 if test $ac_cv_sys_file_offset_bits = unknown; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15335$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15336if test "${ac_cv_sys_large_files+set}" = set; then :
15337 $as_echo_n "(cached) " >&6
15338else
15339 while :; do
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341/* end confdefs.h. */
15342#include <sys/types.h>
15343 /* Check that off_t can represent 2**63 - 1 correctly.
15344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15345 since some C++ compilers masquerading as C compilers
15346 incorrectly reject 9223372036854775807. */
15347#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15349 && LARGE_OFF_T % 2147483647 == 1)
15350 ? 1 : -1];
15351int
15352main ()
15353{
15354
15355 ;
15356 return 0;
15357}
15358_ACEOF
15359if ac_fn_c_try_compile "$LINENO"; then :
15360 ac_cv_sys_large_files=no; break
15361fi
15362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364/* end confdefs.h. */
15365#define _LARGE_FILES 1
15366#include <sys/types.h>
15367 /* Check that off_t can represent 2**63 - 1 correctly.
15368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15369 since some C++ compilers masquerading as C compilers
15370 incorrectly reject 9223372036854775807. */
15371#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15373 && LARGE_OFF_T % 2147483647 == 1)
15374 ? 1 : -1];
15375int
15376main ()
15377{
15378
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383if ac_fn_c_try_compile "$LINENO"; then :
15384 ac_cv_sys_large_files=1; break
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 ac_cv_sys_large_files=unknown
15388 break
15389done
15390fi
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15392$as_echo "$ac_cv_sys_large_files" >&6; }
15393case $ac_cv_sys_large_files in #(
15394 no | unknown) ;;
15395 *)
15396cat >>confdefs.h <<_ACEOF
15397#define _LARGE_FILES $ac_cv_sys_large_files
15398_ACEOF
15399;;
15400esac
15401rm -rf conftest*
15402 fi
15403fi
15404
15405
15406
15407
15408# Check whether --with-lib-path was given.
15409if test "${with_lib_path+set}" = set; then :
15410 withval=$with_lib_path; LIB_PATH=$withval
15411fi
15412
15413# Check whether --enable-targets was given.
15414if test "${enable_targets+set}" = set; then :
15415 enableval=$enable_targets; case "${enableval}" in
15416 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15417 ;;
15418 no) enable_targets= ;;
15419 *) enable_targets=$enableval ;;
15420esac
15421fi
15422# Check whether --enable-64-bit-bfd was given.
15423if test "${enable_64_bit_bfd+set}" = set; then :
15424 enableval=$enable_64_bit_bfd; case "${enableval}" in
15425 yes) want64=true ;;
15426 no) want64=false ;;
15427 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15428esac
15429else
15430 want64=false
15431fi
15432
15433
15434# Check whether --with-sysroot was given.
15435if test "${with_sysroot+set}" = set; then :
15436 withval=$with_sysroot;
15437 case ${with_sysroot} in
15438 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15439 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15440 esac
15441
15442 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15443 use_sysroot=yes
15444
15445 if test "x$prefix" = xNONE; then
15446 test_prefix=/usr/local
15447 else
15448 test_prefix=$prefix
15449 fi
15450 if test "x$exec_prefix" = xNONE; then
15451 test_exec_prefix=$test_prefix
15452 else
15453 test_exec_prefix=$exec_prefix
15454 fi
15455 case ${TARGET_SYSTEM_ROOT} in
15456 "${test_prefix}"|"${test_prefix}/"*|\
15457 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15458 '${prefix}'|'${prefix}/'*|\
15459 '${exec_prefix}'|'${exec_prefix}/'*)
15460 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15461 TARGET_SYSTEM_ROOT_DEFINE="$t"
15462 ;;
15463 esac
15464
15465else
15466
15467 use_sysroot=no
15468 TARGET_SYSTEM_ROOT=
15469 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15470
15471fi
15472
15473
15474
15475
15476
15477# Check whether --enable-gold was given.
15478if test "${enable_gold+set}" = set; then :
15479 enableval=$enable_gold; case "${enableval}" in
15480 default)
15481 install_as_default=no
15482 installed_linker=ld.bfd
15483 ;;
15484 yes|no)
15485 install_as_default=yes
15486 installed_linker=ld.bfd
15487 ;;
15488 *)
15489 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15490 ;;
15491 esac
15492else
15493 install_as_default=yes
15494 installed_linker=ld.bfd
15495fi
15496
15497
15498
15499
15500# Check whether --enable-got was given.
15501if test "${enable_got+set}" = set; then :
15502 enableval=$enable_got; case "${enableval}" in
15503 target | single | negative | multigot) got_handling=$enableval ;;
15504 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15505esac
15506else
15507 got_handling=target
15508fi
15509
15510
15511case "${got_handling}" in
15512 target)
15513
15514$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15515 ;;
15516 single)
15517
15518$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15519 ;;
15520 negative)
15521
15522$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15523 ;;
15524 multigot)
15525
15526$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15527 ;;
15528 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15529esac
15530
6c3bc0f8
NC
15531# PR gas/19109
15532# Decide the default method for compressing debug sections.
15533ac_default_compressed_debug_sections=unset
15534# Provide a configure time option to override our default.
15535# Check whether --enable-compressed_debug_sections was given.
15536if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15537 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15538 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15539 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15540esac
15541fi
15542
647e4d46
L
15543# Decide if -z relro should be enabled in ELF linker by default.
15544ac_default_ld_z_relro=unset
15545# Provide a configure time option to override our default.
15546# Check whether --enable-relro was given.
15547if test "${enable_relro+set}" = set; then :
15548 enableval=$enable_relro; case "${enableval}" in
15549 yes) ac_default_ld_z_relro=1 ;;
15550 no) ac_default_ld_z_relro=0 ;;
15551esac
15552fi
15553
b879806f
AM
15554
15555# Set the 'development' global.
15556. $srcdir/../bfd/development.sh
15557
c5da1932
VZ
15558# Set acp_cpp_for_build variable
15559ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15560
9780e045 15561# Default set of GCC warnings to enable.
b879806f 15562GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15563GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15564
15565# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567/* end confdefs.h. */
15568__GNUC__
15569_ACEOF
15570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15571 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
ce2cded5 15572
3cb62297 15573else
b879806f 15574 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15575fi
b879806f 15576rm -f conftest*
ce2cded5 15577
ce2cded5 15578
9780e045
NC
15579# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581/* end confdefs.h. */
15582__GNUC__
15583_ACEOF
15584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15585 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15586
15587else
15588 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15589fi
15590rm -f conftest*
15591
15592
6757cf57
TS
15593# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15594WARN_WRITE_STRINGS=""
15595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596/* end confdefs.h. */
15597__GNUC__
15598_ACEOF
15599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15600 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15601
15602else
15603 WARN_WRITE_STRINGS="-Wwrite-strings"
15604fi
15605rm -f conftest*
15606
9780e045 15607
96fe4562 15608# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
15609
15610# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612/* end confdefs.h. */
15613__GNUC__
15614_ACEOF
15615if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15616 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15617
15618else
15619 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15620fi
15621rm -f conftest*
15622
15623
15624# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626/* end confdefs.h. */
15627__GNUC__
15628_ACEOF
15629if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15630 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15631
15632else
15633 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15634fi
15635rm -f conftest*
15636
15637
b879806f
AM
15638# Check whether --enable-werror was given.
15639if test "${enable_werror+set}" = set; then :
15640 enableval=$enable_werror; case "${enableval}" in
15641 yes | y) ERROR_ON_WARNING="yes" ;;
15642 no | n) ERROR_ON_WARNING="no" ;;
15643 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15644 esac
15645fi
ce2cded5
L
15646
15647
b879806f
AM
15648# Disable -Wformat by default when using gcc on mingw
15649case "${host}" in
15650 *-*-mingw32*)
15651 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15652 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 15653 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
15654 fi
15655 ;;
15656 *) ;;
15657esac
ce2cded5 15658
b879806f
AM
15659# Enable -Werror by default when using gcc. Turn it off for releases.
15660if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15661 ERROR_ON_WARNING=yes
15662fi
d7040cdb 15663
b879806f
AM
15664NO_WERROR=
15665if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 15666 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 15667 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
15668 NO_WERROR="-Wno-error"
15669fi
3cb62297 15670
b879806f
AM
15671if test "${GCC}" = yes ; then
15672 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 15673 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 15674fi
67310ccd 15675
b879806f
AM
15676# Check whether --enable-build-warnings was given.
15677if test "${enable_build_warnings+set}" = set; then :
15678 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
15679 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15680 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
15681 no) if test "${GCC}" = yes ; then
15682 WARN_CFLAGS="-w"
c5da1932 15683 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
15684 fi;;
15685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15686 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15687 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 15688 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15689 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15690 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15691 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15692 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
15693esac
15694fi
67310ccd 15695
d7040cdb 15696
b879806f
AM
15697if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15698 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15699fi
d7040cdb 15700
d7040cdb 15701
d7040cdb 15702
d7040cdb 15703
ce2cded5
L
15704
15705
6757cf57 15706
c5da1932 15707
b879806f
AM
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15709$as_echo_n "checking for LC_MESSAGES... " >&6; }
15710if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15712else
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714/* end confdefs.h. */
15715#include <locale.h>
15716int
15717main ()
15718{
15719return LC_MESSAGES
15720 ;
15721 return 0;
15722}
15723_ACEOF
15724if ac_fn_c_try_link "$LINENO"; then :
15725 am_cv_val_LC_MESSAGES=yes
15726else
15727 am_cv_val_LC_MESSAGES=no
15728fi
15729rm -f core conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15731fi
15732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15733$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15734 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 15735
b879806f 15736$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 15737
b879806f 15738 fi
ce2cded5 15739
ce2cded5 15740
b879806f 15741ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
15742
15743
b879806f 15744# PR 14072
ce2cded5 15745
ce2cded5 15746
b879806f
AM
15747if test -z "$target" ; then
15748 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15749fi
15750if test -z "$host" ; then
15751 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15752fi
d7040cdb 15753
b879806f 15754# host-specific stuff:
d7040cdb 15755
0348d4be 15756ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk sr"
d7040cdb
SE
15757# If we haven't got the data from the intl directory,
15758# assume NLS is disabled.
15759USE_NLS=no
15760LIBINTL=
15761LIBINTL_DEP=
15762INCINTL=
15763XGETTEXT=
15764GMSGFMT=
15765POSUB=
15766
15767if test -f ../intl/config.intl; then
15768 . ../intl/config.intl
15769fi
81ecdfbb
RW
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15771$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15772if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774$as_echo "no" >&6; }
d7040cdb 15775else
81ecdfbb
RW
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15777$as_echo "yes" >&6; }
d7040cdb 15778
81ecdfbb 15779$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15780
15781
81ecdfbb
RW
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15783$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15784 # Look for .po and .gmo files in the source directory.
15785 CATALOGS=
15786 XLINGUAS=
15787 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15788 # If there aren't any .gmo files the shell will give us the
15789 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15790 # weeded out.
15791 case "$cat" in *\**)
15792 continue;;
15793 esac
15794 # The quadruple backslash is collapsed to a double backslash
15795 # by the backticks, then collapsed again by the double quotes,
15796 # leaving us with one backslash in the sed expression (right
15797 # before the dot that mustn't act as a wildcard).
15798 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15799 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15800 # The user is allowed to set LINGUAS to a list of languages to
15801 # install catalogs for. If it's empty that means "all of them."
15802 if test "x$LINGUAS" = x; then
15803 CATALOGS="$CATALOGS $cat"
15804 XLINGUAS="$XLINGUAS $lang"
15805 else
15806 case "$LINGUAS" in *$lang*)
15807 CATALOGS="$CATALOGS $cat"
15808 XLINGUAS="$XLINGUAS $lang"
15809 ;;
15810 esac
15811 fi
15812 done
15813 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15815$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15816
15817
15818 DATADIRNAME=share
15819
15820 INSTOBJEXT=.mo
15821
15822 GENCAT=gencat
15823
15824 CATOBJEXT=.gmo
15825
15826fi
15827
15828 MKINSTALLDIRS=
15829 if test -n "$ac_aux_dir"; then
15830 case "$ac_aux_dir" in
15831 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15832 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15833 esac
15834 fi
15835 if test -z "$MKINSTALLDIRS"; then
15836 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15837 fi
15838
15839
15840
81ecdfbb
RW
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15842$as_echo_n "checking whether NLS is requested... " >&6; }
15843 # Check whether --enable-nls was given.
15844if test "${enable_nls+set}" = set; then :
15845 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15846else
15847 USE_NLS=yes
81ecdfbb
RW
15848fi
15849
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15851$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15852
15853
15854
15855
15856
15857
15858# Prepare PATH_SEPARATOR.
15859# The user is always right.
15860if test "${PATH_SEPARATOR+set}" != set; then
15861 echo "#! /bin/sh" >conf$$.sh
15862 echo "exit 0" >>conf$$.sh
15863 chmod +x conf$$.sh
15864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15865 PATH_SEPARATOR=';'
15866 else
15867 PATH_SEPARATOR=:
15868 fi
15869 rm -f conf$$.sh
15870fi
15871
15872# Find out how to test for executable files. Don't use a zero-byte file,
15873# as systems may use methods other than mode bits to determine executability.
15874cat >conf$$.file <<_ASEOF
15875#! /bin/sh
15876exit 0
15877_ASEOF
15878chmod +x conf$$.file
15879if test -x conf$$.file >/dev/null 2>&1; then
15880 ac_executable_p="test -x"
15881else
15882 ac_executable_p="test -f"
15883fi
15884rm -f conf$$.file
15885
15886# Extract the first word of "msgfmt", so it can be a program name with args.
15887set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889$as_echo_n "checking for $ac_word... " >&6; }
15890if test "${ac_cv_path_MSGFMT+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
d7040cdb
SE
15892else
15893 case "$MSGFMT" in
15894 [\\/]* | ?:[\\/]*)
15895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15896 ;;
15897 *)
15898 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15899 for ac_dir in $PATH; do
15900 IFS="$ac_save_IFS"
15901 test -z "$ac_dir" && ac_dir=.
15902 for ac_exec_ext in '' $ac_executable_extensions; do
15903 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15904 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15905 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15906 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15907 break 2
15908 fi
15909 fi
15910 done
15911 done
15912 IFS="$ac_save_IFS"
15913 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15914 ;;
15915esac
15916fi
15917MSGFMT="$ac_cv_path_MSGFMT"
15918if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15920$as_echo "$MSGFMT" >&6; }
d7040cdb 15921else
81ecdfbb
RW
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923$as_echo "no" >&6; }
d7040cdb
SE
15924fi
15925
15926 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15927set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15929$as_echo_n "checking for $ac_word... " >&6; }
15930if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
d7040cdb
SE
15932else
15933 case $GMSGFMT in
15934 [\\/]* | ?:[\\/]*)
15935 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15936 ;;
15937 *)
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939for as_dir in $PATH
15940do
15941 IFS=$as_save_IFS
15942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15945 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15947 break 2
15948 fi
15949done
81ecdfbb
RW
15950 done
15951IFS=$as_save_IFS
d7040cdb
SE
15952
15953 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15954 ;;
15955esac
15956fi
15957GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15958if test -n "$GMSGFMT"; then
81ecdfbb
RW
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15960$as_echo "$GMSGFMT" >&6; }
d7040cdb 15961else
81ecdfbb
RW
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963$as_echo "no" >&6; }
20e95c23 15964fi
42ecbf5e 15965
20e95c23 15966
252b5132 15967
81ecdfbb 15968
d7040cdb
SE
15969# Prepare PATH_SEPARATOR.
15970# The user is always right.
15971if test "${PATH_SEPARATOR+set}" != set; then
15972 echo "#! /bin/sh" >conf$$.sh
15973 echo "exit 0" >>conf$$.sh
15974 chmod +x conf$$.sh
15975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15976 PATH_SEPARATOR=';'
15977 else
15978 PATH_SEPARATOR=:
15979 fi
15980 rm -f conf$$.sh
20e95c23 15981fi
252b5132 15982
d7040cdb
SE
15983# Find out how to test for executable files. Don't use a zero-byte file,
15984# as systems may use methods other than mode bits to determine executability.
15985cat >conf$$.file <<_ASEOF
15986#! /bin/sh
15987exit 0
15988_ASEOF
15989chmod +x conf$$.file
15990if test -x conf$$.file >/dev/null 2>&1; then
15991 ac_executable_p="test -x"
20e95c23 15992else
d7040cdb
SE
15993 ac_executable_p="test -f"
15994fi
15995rm -f conf$$.file
20e95c23 15996
d7040cdb
SE
15997# Extract the first word of "xgettext", so it can be a program name with args.
15998set dummy xgettext; ac_word=$2
81ecdfbb
RW
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16000$as_echo_n "checking for $ac_word... " >&6; }
16001if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
252b5132 16003else
d7040cdb
SE
16004 case "$XGETTEXT" in
16005 [\\/]* | ?:[\\/]*)
16006 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16007 ;;
16008 *)
16009 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16010 for ac_dir in $PATH; do
16011 IFS="$ac_save_IFS"
16012 test -z "$ac_dir" && ac_dir=.
16013 for ac_exec_ext in '' $ac_executable_extensions; do
16014 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16015 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16016 (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
16017 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16018 break 2
16019 fi
16020 fi
16021 done
16022 done
16023 IFS="$ac_save_IFS"
16024 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16025 ;;
16026esac
252b5132 16027fi
d7040cdb
SE
16028XGETTEXT="$ac_cv_path_XGETTEXT"
16029if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16031$as_echo "$XGETTEXT" >&6; }
d5fbea21 16032else
81ecdfbb
RW
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034$as_echo "no" >&6; }
d5fbea21
DJ
16035fi
16036
d7040cdb 16037 rm -f messages.po
d5fbea21 16038
20e95c23 16039
d7040cdb
SE
16040# Prepare PATH_SEPARATOR.
16041# The user is always right.
16042if test "${PATH_SEPARATOR+set}" != set; then
16043 echo "#! /bin/sh" >conf$$.sh
16044 echo "exit 0" >>conf$$.sh
16045 chmod +x conf$$.sh
16046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16047 PATH_SEPARATOR=';'
16048 else
16049 PATH_SEPARATOR=:
16050 fi
16051 rm -f conf$$.sh
16052fi
20e95c23 16053
d7040cdb
SE
16054# Find out how to test for executable files. Don't use a zero-byte file,
16055# as systems may use methods other than mode bits to determine executability.
16056cat >conf$$.file <<_ASEOF
16057#! /bin/sh
16058exit 0
16059_ASEOF
16060chmod +x conf$$.file
16061if test -x conf$$.file >/dev/null 2>&1; then
16062 ac_executable_p="test -x"
16063else
16064 ac_executable_p="test -f"
16065fi
16066rm -f conf$$.file
20e95c23 16067
d7040cdb
SE
16068# Extract the first word of "msgmerge", so it can be a program name with args.
16069set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16071$as_echo_n "checking for $ac_word... " >&6; }
16072if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
d7040cdb
SE
16074else
16075 case "$MSGMERGE" in
16076 [\\/]* | ?:[\\/]*)
16077 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16078 ;;
16079 *)
16080 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16081 for ac_dir in $PATH; do
16082 IFS="$ac_save_IFS"
16083 test -z "$ac_dir" && ac_dir=.
16084 for ac_exec_ext in '' $ac_executable_extensions; do
16085 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16086 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16087 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16088 break 2
16089 fi
16090 fi
16091 done
16092 done
16093 IFS="$ac_save_IFS"
16094 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16095 ;;
16096esac
16097fi
16098MSGMERGE="$ac_cv_path_MSGMERGE"
16099if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16101$as_echo "$MSGMERGE" >&6; }
d7040cdb 16102else
81ecdfbb
RW
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104$as_echo "no" >&6; }
d7040cdb 16105fi
20e95c23
DJ
16106
16107
d7040cdb
SE
16108 if test "$GMSGFMT" != ":"; then
16109 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16110 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16111 : ;
16112 else
16113 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16115$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16116 GMSGFMT=":"
16117 fi
16118 fi
20e95c23 16119
d7040cdb
SE
16120 if test "$XGETTEXT" != ":"; then
16121 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16122 (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
16123 : ;
16124 else
81ecdfbb
RW
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16126$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16127 XGETTEXT=":"
16128 fi
16129 rm -f messages.po
20e95c23 16130 fi
42ecbf5e 16131
81ecdfbb 16132 ac_config_commands="$ac_config_commands default-1"
252b5132 16133
42ecbf5e 16134
252b5132 16135
42ecbf5e
DJ
16136
16137
d7040cdb 16138for ac_prog in 'bison -y' byacc
20e95c23 16139do
d7040cdb
SE
16140 # Extract the first word of "$ac_prog", so it can be a program name with args.
16141set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16143$as_echo_n "checking for $ac_word... " >&6; }
16144if test "${ac_cv_prog_YACC+set}" = set; then :
16145 $as_echo_n "(cached) " >&6
20e95c23 16146else
d7040cdb
SE
16147 if test -n "$YACC"; then
16148 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16149else
d7040cdb
SE
16150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151for as_dir in $PATH
16152do
16153 IFS=$as_save_IFS
16154 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16157 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16159 break 2
16160 fi
16161done
81ecdfbb
RW
16162 done
16163IFS=$as_save_IFS
42ecbf5e 16164
42ecbf5e 16165fi
e5a52504 16166fi
d7040cdb
SE
16167YACC=$ac_cv_prog_YACC
16168if test -n "$YACC"; then
81ecdfbb
RW
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16170$as_echo "$YACC" >&6; }
42ecbf5e 16171else
81ecdfbb
RW
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173$as_echo "no" >&6; }
42ecbf5e 16174fi
252b5132 16175
81ecdfbb 16176
d7040cdb 16177 test -n "$YACC" && break
42ecbf5e 16178done
d7040cdb 16179test -n "$YACC" || YACC="yacc"
d15b04bd 16180
d7040cdb
SE
16181for ac_prog in flex lex
16182do
16183 # Extract the first word of "$ac_prog", so it can be a program name with args.
16184set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186$as_echo_n "checking for $ac_word... " >&6; }
16187if test "${ac_cv_prog_LEX+set}" = set; then :
16188 $as_echo_n "(cached) " >&6
d15b04bd 16189else
d7040cdb
SE
16190 if test -n "$LEX"; then
16191 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16192else
16193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16194for as_dir in $PATH
16195do
16196 IFS=$as_save_IFS
16197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16198 for ac_exec_ext in '' $ac_executable_extensions; do
16199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16200 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16202 break 2
16203 fi
16204done
81ecdfbb
RW
16205 done
16206IFS=$as_save_IFS
d7040cdb
SE
16207
16208fi
16209fi
16210LEX=$ac_cv_prog_LEX
16211if test -n "$LEX"; then
81ecdfbb
RW
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16213$as_echo "$LEX" >&6; }
d7040cdb 16214else
81ecdfbb
RW
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216$as_echo "no" >&6; }
d15b04bd 16217fi
e5a52504 16218
81ecdfbb 16219
d7040cdb
SE
16220 test -n "$LEX" && break
16221done
16222test -n "$LEX" || LEX=":"
42ecbf5e 16223
3d961d0d
AM
16224case "$LEX" in
16225 :|*"missing "*) ;;
16226 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16227%%
16228a { ECHO; }
16229b { REJECT; }
16230c { yymore (); }
16231d { yyless (1); }
16232e { yyless (input () != 0); }
16233f { unput (yytext[0]); }
16234. { BEGIN INITIAL; }
16235%%
16236#ifdef YYTEXT_POINTER
16237extern char *yytext;
d7040cdb 16238#endif
42ecbf5e 16239int
81ecdfbb 16240main (void)
42ecbf5e 16241{
81ecdfbb 16242 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16243}
16244_ACEOF
81ecdfbb
RW
16245{ { ac_try="$LEX conftest.l"
16246case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249esac
16250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16251$as_echo "$ac_try_echo"; } >&5
16252 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16253 ac_status=$?
81ecdfbb
RW
16254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16255 test $ac_status = 0; }
16256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16257$as_echo_n "checking lex output file root... " >&6; }
16258if test "${ac_cv_prog_lex_root+set}" = set; then :
16259 $as_echo_n "(cached) " >&6
42ecbf5e 16260else
42ecbf5e 16261
81ecdfbb
RW
16262if test -f lex.yy.c; then
16263 ac_cv_prog_lex_root=lex.yy
16264elif test -f lexyy.c; then
16265 ac_cv_prog_lex_root=lexyy
16266else
16267 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16268fi
42ecbf5e 16269fi
81ecdfbb
RW
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16271$as_echo "$ac_cv_prog_lex_root" >&6; }
16272LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16273
81ecdfbb
RW
16274if test -z "${LEXLIB+set}"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16276$as_echo_n "checking lex library... " >&6; }
16277if test "${ac_cv_lib_lex+set}" = set; then :
16278 $as_echo_n "(cached) " >&6
252b5132 16279else
20e95c23 16280
81ecdfbb
RW
16281 ac_save_LIBS=$LIBS
16282 ac_cv_lib_lex='none needed'
16283 for ac_lib in '' -lfl -ll; do
16284 LIBS="$ac_lib $ac_save_LIBS"
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286/* end confdefs.h. */
16287`cat $LEX_OUTPUT_ROOT.c`
16288_ACEOF
16289if ac_fn_c_try_link "$LINENO"; then :
16290 ac_cv_lib_lex=$ac_lib
20e95c23 16291fi
81ecdfbb
RW
16292rm -f core conftest.err conftest.$ac_objext \
16293 conftest$ac_exeext conftest.$ac_ext
16294 test "$ac_cv_lib_lex" != 'none needed' && break
16295 done
16296 LIBS=$ac_save_LIBS
20e95c23
DJ
16297
16298fi
81ecdfbb
RW
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16300$as_echo "$ac_cv_lib_lex" >&6; }
16301 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16302fi
20e95c23 16303
20e95c23 16304
81ecdfbb
RW
16305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16306$as_echo_n "checking whether yytext is a pointer... " >&6; }
16307if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16308 $as_echo_n "(cached) " >&6
d7040cdb
SE
16309else
16310 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16311# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16312# not all implementations provide the %pointer and %array declarations.
16313ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16314ac_save_LIBS=$LIBS
81ecdfbb
RW
16315LIBS="$LEXLIB $ac_save_LIBS"
16316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317/* end confdefs.h. */
16318#define YYTEXT_POINTER 1
d7040cdb 16319`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16320_ACEOF
81ecdfbb 16321if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16322 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16323fi
81ecdfbb
RW
16324rm -f core conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16326LIBS=$ac_save_LIBS
d7040cdb
SE
16327
16328fi
81ecdfbb
RW
16329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16330$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16331if test $ac_cv_prog_lex_yytext_pointer = yes; then
16332
81ecdfbb 16333$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16334
16335fi
81ecdfbb 16336rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16337 ;;
16338esac
d7040cdb
SE
16339if test "$LEX" = :; then
16340 LEX=${am_missing_run}flex
16341fi
16342
81ecdfbb
RW
16343
16344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16345$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16346 # Check whether --enable-maintainer-mode was given.
16347if test "${enable_maintainer_mode+set}" = set; then :
16348 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16349else
d7040cdb 16350 USE_MAINTAINER_MODE=no
81ecdfbb 16351fi
d7040cdb 16352
81ecdfbb
RW
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16354$as_echo "$USE_MAINTAINER_MODE" >&6; }
16355 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16356 MAINTAINER_MODE_TRUE=
16357 MAINTAINER_MODE_FALSE='#'
16358else
16359 MAINTAINER_MODE_TRUE='#'
16360 MAINTAINER_MODE_FALSE=
252b5132 16361fi
252b5132 16362
d7040cdb
SE
16363 MAINT=$MAINTAINER_MODE_TRUE
16364
16365
81ecdfbb 16366 if false; then
d7040cdb
SE
16367 GENINSRC_NEVER_TRUE=
16368 GENINSRC_NEVER_FALSE='#'
16369else
16370 GENINSRC_NEVER_TRUE='#'
16371 GENINSRC_NEVER_FALSE=
252b5132
RH
16372fi
16373
81ecdfbb
RW
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16375$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16376if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
eccbf555
AM
16378else
16379 echo abfoo >t1
16380 echo cdfoo >t2
da17fe9d 16381 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16382 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16383 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16384 :
16385 else
16386 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16387 fi
16388 fi
16389 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16390 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16391 :
16392 else
16393 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16394 fi
16395 fi
16396 rm t1 t2
16397
16398fi
81ecdfbb
RW
16399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16400$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16401do_compare="$gcc_cv_prog_cmp_skip"
16402
16403
d7040cdb
SE
16404
16405. ${srcdir}/configure.host
16406
16407
16408
16409
58797674 16410for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16411do :
16412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16413ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16414eval as_val=\$$as_ac_Header
16415 if test "x$as_val" = x""yes; then :
42ecbf5e 16416 cat >>confdefs.h <<_ACEOF
81ecdfbb 16417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16418_ACEOF
16419
16420fi
16421
252b5132
RH
16422done
16423
5d3236ee
DK
16424for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16425do :
16426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16427ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16428eval as_val=\$$as_ac_Header
16429 if test "x$as_val" = x""yes; then :
16430 cat >>confdefs.h <<_ACEOF
16431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432_ACEOF
16433
16434fi
16435
16436done
16437
208a4923
NC
16438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16439$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16440if test "${gcc_cv_header_string+set}" = set; then :
16441 $as_echo_n "(cached) " >&6
16442else
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444/* end confdefs.h. */
16445#include <string.h>
16446#include <strings.h>
16447int
16448main ()
16449{
16450
16451 ;
16452 return 0;
16453}
16454_ACEOF
16455if ac_fn_c_try_compile "$LINENO"; then :
16456 gcc_cv_header_string=yes
16457else
16458 gcc_cv_header_string=no
16459fi
16460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461fi
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16463$as_echo "$gcc_cv_header_string" >&6; }
16464if test $gcc_cv_header_string = yes; then
16465
16466$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16467
16468fi
16469
44350750 16470for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16471do :
16472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16473ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16474eval as_val=\$$as_ac_var
16475 if test "x$as_val" = x""yes; then :
42ecbf5e 16476 cat >>confdefs.h <<_ACEOF
81ecdfbb 16477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16478_ACEOF
252b5132 16479
252b5132
RH
16480fi
16481done
16482
88ba72a2 16483for ac_func in open lseek close
5d3236ee
DK
16484do :
16485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16486ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16487eval as_val=\$$as_ac_var
16488 if test "x$as_val" = x""yes; then :
16489 cat >>confdefs.h <<_ACEOF
16490#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16491_ACEOF
16492
16493fi
16494done
16495
252b5132 16496ac_header_dirent=no
42ecbf5e 16497for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16498 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16500$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16502 $as_echo_n "(cached) " >&6
16503else
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16505/* end confdefs.h. */
252b5132
RH
16506#include <sys/types.h>
16507#include <$ac_hdr>
42ecbf5e
DJ
16508
16509int
16510main ()
16511{
16512if ((DIR *) 0)
16513return 0;
16514 ;
16515 return 0;
16516}
16517_ACEOF
81ecdfbb 16518if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16519 eval "$as_ac_Header=yes"
16520else
81ecdfbb 16521 eval "$as_ac_Header=no"
42ecbf5e 16522fi
81ecdfbb 16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16524fi
81ecdfbb
RW
16525eval ac_res=\$$as_ac_Header
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16527$as_echo "$ac_res" >&6; }
16528eval as_val=\$$as_ac_Header
16529 if test "x$as_val" = x""yes; then :
42ecbf5e 16530 cat >>confdefs.h <<_ACEOF
81ecdfbb 16531#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16532_ACEOF
16533
16534ac_header_dirent=$ac_hdr; break
d15b04bd 16535fi
42ecbf5e 16536
d15b04bd
L
16537done
16538# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16539if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16541$as_echo_n "checking for library containing opendir... " >&6; }
16542if test "${ac_cv_search_opendir+set}" = set; then :
16543 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16544else
16545 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16547/* end confdefs.h. */
16548
81ecdfbb
RW
16549/* Override any GCC internal prototype to avoid an error.
16550 Use char because int might match the return type of a GCC
16551 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16552#ifdef __cplusplus
16553extern "C"
16554#endif
42ecbf5e
DJ
16555char opendir ();
16556int
16557main ()
16558{
81ecdfbb 16559return opendir ();
42ecbf5e
DJ
16560 ;
16561 return 0;
16562}
16563_ACEOF
81ecdfbb
RW
16564for ac_lib in '' dir; do
16565 if test -z "$ac_lib"; then
16566 ac_res="none required"
16567 else
16568 ac_res=-l$ac_lib
42ecbf5e 16569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16570 fi
16571 if ac_fn_c_try_link "$LINENO"; then :
16572 ac_cv_search_opendir=$ac_res
16573fi
16574rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext
16576 if test "${ac_cv_search_opendir+set}" = set; then :
16577 break
16578fi
16579done
16580if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16581
42ecbf5e 16582else
81ecdfbb 16583 ac_cv_search_opendir=no
252b5132 16584fi
81ecdfbb 16585rm conftest.$ac_ext
42ecbf5e
DJ
16586LIBS=$ac_func_search_save_LIBS
16587fi
81ecdfbb
RW
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16589$as_echo "$ac_cv_search_opendir" >&6; }
16590ac_res=$ac_cv_search_opendir
16591if test "$ac_res" != no; then :
16592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16593
d15b04bd 16594fi
252b5132
RH
16595
16596else
81ecdfbb
RW
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16598$as_echo_n "checking for library containing opendir... " >&6; }
16599if test "${ac_cv_search_opendir+set}" = set; then :
16600 $as_echo_n "(cached) " >&6
252b5132 16601else
42ecbf5e 16602 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16604/* end confdefs.h. */
16605
81ecdfbb
RW
16606/* Override any GCC internal prototype to avoid an error.
16607 Use char because int might match the return type of a GCC
16608 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16609#ifdef __cplusplus
16610extern "C"
16611#endif
42ecbf5e
DJ
16612char opendir ();
16613int
16614main ()
16615{
81ecdfbb 16616return opendir ();
42ecbf5e
DJ
16617 ;
16618 return 0;
16619}
16620_ACEOF
81ecdfbb
RW
16621for ac_lib in '' x; do
16622 if test -z "$ac_lib"; then
16623 ac_res="none required"
16624 else
16625 ac_res=-l$ac_lib
42ecbf5e 16626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16627 fi
16628 if ac_fn_c_try_link "$LINENO"; then :
16629 ac_cv_search_opendir=$ac_res
16630fi
16631rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext
16633 if test "${ac_cv_search_opendir+set}" = set; then :
16634 break
16635fi
16636done
16637if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16638
42ecbf5e 16639else
81ecdfbb 16640 ac_cv_search_opendir=no
252b5132 16641fi
81ecdfbb 16642rm conftest.$ac_ext
42ecbf5e 16643LIBS=$ac_func_search_save_LIBS
252b5132 16644fi
81ecdfbb
RW
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16646$as_echo "$ac_cv_search_opendir" >&6; }
16647ac_res=$ac_cv_search_opendir
16648if test "$ac_res" != no; then :
16649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16650
d15b04bd 16651fi
252b5132
RH
16652
16653fi
16654
16655
2aec968d
L
16656for ac_header in stdlib.h unistd.h
16657do :
16658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16659ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16660eval as_val=\$$as_ac_Header
16661 if test "x$as_val" = x""yes; then :
16662 cat >>confdefs.h <<_ACEOF
16663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16664_ACEOF
16665
16666fi
16667
16668done
16669
16670for ac_func in getpagesize
16671do :
16672 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16673if test "x$ac_cv_func_getpagesize" = x""yes; then :
16674 cat >>confdefs.h <<_ACEOF
16675#define HAVE_GETPAGESIZE 1
16676_ACEOF
16677
16678fi
16679done
16680
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16682$as_echo_n "checking for working mmap... " >&6; }
16683if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16684 $as_echo_n "(cached) " >&6
16685else
16686 if test "$cross_compiling" = yes; then :
16687 ac_cv_func_mmap_fixed_mapped=no
16688else
16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h. */
16691$ac_includes_default
16692/* malloc might have been renamed as rpl_malloc. */
16693#undef malloc
16694
16695/* Thanks to Mike Haertel and Jim Avera for this test.
16696 Here is a matrix of mmap possibilities:
16697 mmap private not fixed
16698 mmap private fixed at somewhere currently unmapped
16699 mmap private fixed at somewhere already mapped
16700 mmap shared not fixed
16701 mmap shared fixed at somewhere currently unmapped
16702 mmap shared fixed at somewhere already mapped
16703 For private mappings, we should verify that changes cannot be read()
16704 back from the file, nor mmap's back from the file at a different
16705 address. (There have been systems where private was not correctly
16706 implemented like the infamous i386 svr4.0, and systems where the
16707 VM page cache was not coherent with the file system buffer cache
16708 like early versions of FreeBSD and possibly contemporary NetBSD.)
16709 For shared mappings, we should conversely verify that changes get
16710 propagated back to all the places they're supposed to be.
16711
16712 Grep wants private fixed already mapped.
16713 The main things grep needs to know about mmap are:
16714 * does it exist and is it safe to write into the mmap'd area
16715 * how to use it (BSD variants) */
16716
16717#include <fcntl.h>
16718#include <sys/mman.h>
16719
16720#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16721char *malloc ();
16722#endif
16723
16724/* This mess was copied from the GNU getpagesize.h. */
16725#ifndef HAVE_GETPAGESIZE
16726/* Assume that all systems that can run configure have sys/param.h. */
16727# ifndef HAVE_SYS_PARAM_H
16728# define HAVE_SYS_PARAM_H 1
16729# endif
16730
16731# ifdef _SC_PAGESIZE
16732# define getpagesize() sysconf(_SC_PAGESIZE)
16733# else /* no _SC_PAGESIZE */
16734# ifdef HAVE_SYS_PARAM_H
16735# include <sys/param.h>
16736# ifdef EXEC_PAGESIZE
16737# define getpagesize() EXEC_PAGESIZE
16738# else /* no EXEC_PAGESIZE */
16739# ifdef NBPG
16740# define getpagesize() NBPG * CLSIZE
16741# ifndef CLSIZE
16742# define CLSIZE 1
16743# endif /* no CLSIZE */
16744# else /* no NBPG */
16745# ifdef NBPC
16746# define getpagesize() NBPC
16747# else /* no NBPC */
16748# ifdef PAGESIZE
16749# define getpagesize() PAGESIZE
16750# endif /* PAGESIZE */
16751# endif /* no NBPC */
16752# endif /* no NBPG */
16753# endif /* no EXEC_PAGESIZE */
16754# else /* no HAVE_SYS_PARAM_H */
16755# define getpagesize() 8192 /* punt totally */
16756# endif /* no HAVE_SYS_PARAM_H */
16757# endif /* no _SC_PAGESIZE */
16758
16759#endif /* no HAVE_GETPAGESIZE */
16760
16761int
16762main ()
16763{
16764 char *data, *data2, *data3;
16765 int i, pagesize;
16766 int fd;
16767
16768 pagesize = getpagesize ();
16769
16770 /* First, make a file with some known garbage in it. */
16771 data = (char *) malloc (pagesize);
16772 if (!data)
16773 return 1;
16774 for (i = 0; i < pagesize; ++i)
16775 *(data + i) = rand ();
16776 umask (0);
16777 fd = creat ("conftest.mmap", 0600);
16778 if (fd < 0)
16779 return 1;
16780 if (write (fd, data, pagesize) != pagesize)
16781 return 1;
16782 close (fd);
16783
16784 /* Next, try to mmap the file at a fixed address which already has
16785 something else allocated at it. If we can, also make sure that
16786 we see the same garbage. */
16787 fd = open ("conftest.mmap", O_RDWR);
16788 if (fd < 0)
16789 return 1;
16790 data2 = (char *) malloc (2 * pagesize);
16791 if (!data2)
16792 return 1;
16793 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16794 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16795 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16796 return 1;
16797 for (i = 0; i < pagesize; ++i)
16798 if (*(data + i) != *(data2 + i))
16799 return 1;
16800
16801 /* Finally, make sure that changes to the mapped area do not
16802 percolate back to the file as seen by read(). (This is a bug on
16803 some variants of i386 svr4.0.) */
16804 for (i = 0; i < pagesize; ++i)
16805 *(data2 + i) = *(data2 + i) + 1;
16806 data3 = (char *) malloc (pagesize);
16807 if (!data3)
16808 return 1;
16809 if (read (fd, data3, pagesize) != pagesize)
16810 return 1;
16811 for (i = 0; i < pagesize; ++i)
16812 if (*(data + i) != *(data3 + i))
16813 return 1;
16814 close (fd);
16815 return 0;
16816}
16817_ACEOF
16818if ac_fn_c_try_run "$LINENO"; then :
16819 ac_cv_func_mmap_fixed_mapped=yes
16820else
16821 ac_cv_func_mmap_fixed_mapped=no
16822fi
16823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16824 conftest.$ac_objext conftest.beam conftest.$ac_ext
16825fi
16826
16827fi
16828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16829$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16830if test $ac_cv_func_mmap_fixed_mapped = yes; then
16831
16832$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16833
16834fi
16835rm -f conftest.mmap
16836
16837
5d3236ee
DK
16838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16839$as_echo_n "checking for library containing dlopen... " >&6; }
16840if test "${ac_cv_search_dlopen+set}" = set; then :
16841 $as_echo_n "(cached) " >&6
16842else
16843 ac_func_search_save_LIBS=$LIBS
16844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845/* end confdefs.h. */
16846
16847/* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16850#ifdef __cplusplus
16851extern "C"
16852#endif
16853char dlopen ();
16854int
16855main ()
16856{
16857return dlopen ();
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862for ac_lib in '' dl; do
16863 if test -z "$ac_lib"; then
16864 ac_res="none required"
16865 else
16866 ac_res=-l$ac_lib
16867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16868 fi
16869 if ac_fn_c_try_link "$LINENO"; then :
16870 ac_cv_search_dlopen=$ac_res
16871fi
16872rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext
16874 if test "${ac_cv_search_dlopen+set}" = set; then :
16875 break
16876fi
16877done
16878if test "${ac_cv_search_dlopen+set}" = set; then :
16879
16880else
16881 ac_cv_search_dlopen=no
16882fi
16883rm conftest.$ac_ext
16884LIBS=$ac_func_search_save_LIBS
16885fi
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16887$as_echo "$ac_cv_search_dlopen" >&6; }
16888ac_res=$ac_cv_search_dlopen
16889if test "$ac_res" != no; then :
16890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16891
3917d5d5
DK
16892fi
16893
b879806f 16894 if test x$plugins = xyes; then
5d3236ee
DK
16895 ENABLE_PLUGINS_TRUE=
16896 ENABLE_PLUGINS_FALSE='#'
16897else
16898 ENABLE_PLUGINS_TRUE='#'
16899 ENABLE_PLUGINS_FALSE=
16900fi
16901
16902
02ecc8e9
L
16903# Check whether --enable-initfini-array was given.
16904if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
16905 enableval=$enable_initfini_array; case "${enableval}" in
16906 yes|no) ;;
16907 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16908 esac
02ecc8e9 16909else
26e3a0c9 16910 enable_initfini_array=yes
02ecc8e9
L
16911fi
16912
16913
16914if test $enable_initfini_array = yes; then
16915
16916$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16917
16918fi
16919
81ecdfbb
RW
16920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16921$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16922if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16923 $as_echo_n "(cached) " >&6
34875e64 16924else
81ecdfbb 16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16926/* end confdefs.h. */
34875e64 16927#include <unistd.h>
42ecbf5e
DJ
16928int
16929main ()
16930{
34875e64 16931extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16932 ;
16933 return 0;
16934}
16935_ACEOF
81ecdfbb 16936if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16937 ld_cv_decl_getopt_unistd_h=yes
16938else
81ecdfbb 16939 ld_cv_decl_getopt_unistd_h=no
34875e64 16940fi
81ecdfbb 16941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16942fi
16943
81ecdfbb
RW
16944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16945$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16946if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16947
81ecdfbb 16948$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16949
16950fi
42ecbf5e 16951
252b5132
RH
16952
16953case "${host}" in
a8100d5b 16954*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16955
81ecdfbb 16956$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16957 ;;
16958esac
16959
81ecdfbb
RW
16960ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16961if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16962 ac_have_decl=1
252b5132 16963else
81ecdfbb
RW
16964 ac_have_decl=0
16965fi
502bdb00 16966
81ecdfbb
RW
16967cat >>confdefs.h <<_ACEOF
16968#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16969_ACEOF
81ecdfbb
RW
16970ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16971if test "x$ac_cv_have_decl_free" = x""yes; then :
16972 ac_have_decl=1
252b5132 16973else
81ecdfbb 16974 ac_have_decl=0
252b5132
RH
16975fi
16976
502bdb00 16977cat >>confdefs.h <<_ACEOF
81ecdfbb 16978#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16979_ACEOF
81ecdfbb
RW
16980ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16981if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16982 ac_have_decl=1
16983else
16984 ac_have_decl=0
16985fi
42ecbf5e 16986
81ecdfbb
RW
16987cat >>confdefs.h <<_ACEOF
16988#define HAVE_DECL_SBRK $ac_have_decl
16989_ACEOF
16990ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16991if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16992 ac_have_decl=1
16993else
16994 ac_have_decl=0
16995fi
502bdb00 16996
81ecdfbb
RW
16997cat >>confdefs.h <<_ACEOF
16998#define HAVE_DECL_GETENV $ac_have_decl
16999_ACEOF
17000ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
17001if test "x$ac_cv_have_decl_environ" = x""yes; then :
17002 ac_have_decl=1
502bdb00 17003else
81ecdfbb
RW
17004 ac_have_decl=0
17005fi
17006
17007cat >>confdefs.h <<_ACEOF
17008#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 17009_ACEOF
252b5132 17010
252b5132 17011
597e2591
ILT
17012# When converting linker scripts into strings for use in emulation
17013# files, use astring.sed if the compiler supports ANSI string
17014# concatenation, or ostring.sed otherwise. This is to support the
17015# broken Microsoft MSVC compiler, which limits the length of string
17016# constants, while still supporting pre-ANSI compilers which do not
17017# support string concatenation.
81ecdfbb
RW
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17019$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17020if test "${ld_cv_string_concatenation+set}" = set; then :
17021 $as_echo_n "(cached) " >&6
42ecbf5e 17022else
81ecdfbb 17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17024/* end confdefs.h. */
81ecdfbb 17025
314e9a4e
L
17026int
17027main ()
17028{
81ecdfbb 17029char *a = "a" "a";
314e9a4e
L
17030 ;
17031 return 0;
17032}
17033_ACEOF
81ecdfbb
RW
17034if ac_fn_c_try_compile "$LINENO"; then :
17035 ld_cv_string_concatenation=yes
314e9a4e 17036else
81ecdfbb 17037 ld_cv_string_concatenation=no
314e9a4e 17038fi
81ecdfbb 17039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17040fi
81ecdfbb
RW
17041
17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17043$as_echo "$ld_cv_string_concatenation" >&6; }
17044if test "$ld_cv_string_concatenation" = "yes"; then
17045 STRINGIFY=astring.sed
17046else
17047 STRINGIFY=ostring.sed
314e9a4e 17048fi
81ecdfbb
RW
17049
17050
17051# target-specific stuff:
17052
17053all_targets=
17054EMUL=
17055all_emuls=
17056all_emul_extras=
17057all_libpath=
17058
17059rm -f tdirs
17060
bf9ef603 17061# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17062# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17063if test x${want64} = xfalse; then
17064 # The cast to long int works around a bug in the HP C Compiler
17065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17067# This bug is HP SR number 8606223364.
17068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17069$as_echo_n "checking size of void *... " >&6; }
17070if test "${ac_cv_sizeof_void_p+set}" = set; then :
17071 $as_echo_n "(cached) " >&6
17072else
17073 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17074
17075else
17076 if test "$ac_cv_type_void_p" = yes; then
17077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17079{ as_fn_set_status 77
17080as_fn_error "cannot compute sizeof (void *)
17081See \`config.log' for more details." "$LINENO" 5; }; }
17082 else
17083 ac_cv_sizeof_void_p=0
17084 fi
17085fi
17086
17087fi
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17089$as_echo "$ac_cv_sizeof_void_p" >&6; }
17090
17091
17092
17093cat >>confdefs.h <<_ACEOF
17094#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17095_ACEOF
17096
17097
17098 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17099 want64=true
17100 fi
17101fi
17102
c58212ea
L
17103elf_list_options=FALSE
17104elf_shlib_list_options=FALSE
17105elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17106for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17107do
17108 if test "$targ_alias" = "all"; then
17109 all_targets=true
82d8e420
L
17110 elf_list_options=TRUE
17111 elf_shlib_list_options=TRUE
17112 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17113 else
17114 # Canonicalize the secondary target names.
17115 result=`$ac_config_sub $targ_alias 2>/dev/null`
17116 if test -n "$result"; then
17117 targ=$result
17118 else
17119 targ=$targ_alias
17120 fi
17121
17122 . ${srcdir}/configure.tgt
17123
17124 if test "$targ" = "$target"; then
17125 EMUL=$targ_emul
17126 fi
17127
17128 if test x${want64} = xfalse; then
17129 . ${srcdir}/../bfd/config.bfd
17130 fi
17131
17132 if test x${want64} = xtrue; then
17133 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17134 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17135 fi
17136
17137 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17138 case " $all_emuls " in
8c3fff59
AM
17139 *" e${i}.o "*) ;;
17140 *)
17141 all_emuls="$all_emuls e${i}.o"
17142 eval result=\$tdir_$i
17143 test -z "$result" && result=$targ_alias
17144 echo tdir_$i=$result >> tdirs
c58212ea
L
17145 case "${i}" in
17146 *elf*)
17147 elf_list_options=TRUE
68880f31
CLT
17148 ;;
17149 *)
17150 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17151 elf_list_options=TRUE
17152 fi
17153 ;;
17154 esac
17155 if test "$elf_list_options" = "TRUE"; then
c58212ea
L
17156 . ${srcdir}/emulparams/${i}.sh
17157 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17158 elf_shlib_list_options=TRUE
17159 fi
17160 if test x${PLT_UNWIND} = xyes; then
17161 elf_plt_unwind_list_options=TRUE
17162 fi
68880f31 17163 fi
c58212ea 17164 ;;
81ecdfbb
RW
17165 esac
17166 done
17167
17168 for i in $targ_emul $targ_extra_libpath; do
17169 case " $all_libpath " in
17170 *" ${i} "*) ;;
17171 *)
17172 if test -z "$all_libpath"; then
17173 all_libpath=${i}
17174 else
17175 all_libpath="$all_libpath ${i}"
17176 fi
17177 ;;
17178 esac
17179 done
17180
17181 for i in $targ_extra_ofiles; do
17182 case " $all_emul_extras " in
17183 *" ${i} "*) ;;
17184 *)
17185 all_emul_extras="$all_emul_extras ${i}"
17186 ;;
17187 esac
17188 done
5063daf7 17189
81ecdfbb
RW
17190 fi
17191done
17192
621ff761 17193if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17194
17195$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17196
17197fi
17198
647e4d46
L
17199if test "${ac_default_ld_z_relro}" = unset; then
17200 ac_default_ld_z_relro=0
17201fi
17202
17203cat >>confdefs.h <<_ACEOF
17204#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17205_ACEOF
17206
17207
81ecdfbb
RW
17208
17209
c58212ea
L
17210
17211
17212
81ecdfbb
RW
17213TDIRS=tdirs
17214
17215
17216if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17217 if test x${want64} = xtrue; then
17218 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17219 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17220 else
17221 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17222 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17223 fi
42ecbf5e
DJ
17224else
17225 EMULATION_OFILES=$all_emuls
17226 EMUL_EXTRA_OFILES=$all_emul_extras
17227fi
17228
17229
17230
17231
17232EMULATION_LIBPATH=$all_libpath
17233
17234
17235if test x${enable_static} = xno; then
17236 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17237else
17238 TESTBFDLIB="../bfd/.libs/libbfd.a"
17239fi
17240
17241
17242target_vendor=${target_vendor=$host_vendor}
17243case "$target_vendor" in
17244 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17245 *) EXTRA_SHLIB_EXTENSION= ;;
17246esac
17247
17248case "$target_os" in
17249 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17250esac
17251
17252if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17253
17254cat >>confdefs.h <<_ACEOF
17255#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17256_ACEOF
17257
17258fi
17259
108a6f8e
CD
17260
17261
17262
17263
31dd3154 17264
81ecdfbb 17265ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17266
42ecbf5e
DJ
17267cat >confcache <<\_ACEOF
17268# This file is a shell script that caches the results of configure
17269# tests run on this system so they can be shared between configure
17270# scripts and configure runs, see configure's option --config-cache.
17271# It is not useful on other systems. If it contains results you don't
17272# want to keep, you may remove or edit it.
17273#
17274# config.status only pays attention to the cache file if you give it
17275# the --recheck option to rerun configure.
17276#
17277# `ac_cv_env_foo' variables (set or unset) will be overridden when
17278# loading this file, other *unset* `ac_cv_foo' will be assigned the
17279# following values.
17280
17281_ACEOF
17282
17283# The following way of writing the cache mishandles newlines in values,
17284# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17285# So, we kill variables containing newlines.
42ecbf5e
DJ
17286# Ultrix sh set writes to stderr and can't be redirected directly,
17287# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17288(
17289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17290 eval ac_val=\$$ac_var
17291 case $ac_val in #(
17292 *${as_nl}*)
17293 case $ac_var in #(
17294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17296 esac
17297 case $ac_var in #(
17298 _ | IFS | as_nl) ;; #(
17299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17300 *) { eval $ac_var=; unset $ac_var;} ;;
17301 esac ;;
17302 esac
17303 done
17304
42ecbf5e 17305 (set) 2>&1 |
81ecdfbb
RW
17306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17307 *${as_nl}ac_space=\ *)
17308 # `set' does not quote correctly, so add quotes: double-quote
17309 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17310 sed -n \
17311 "s/'/'\\\\''/g;
17312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17313 ;; #(
42ecbf5e
DJ
17314 *)
17315 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17317 ;;
81ecdfbb
RW
17318 esac |
17319 sort
17320) |
42ecbf5e 17321 sed '
81ecdfbb 17322 /^ac_cv_env_/b end
42ecbf5e 17323 t clear
81ecdfbb 17324 :clear
42ecbf5e
DJ
17325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17326 t end
81ecdfbb
RW
17327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17328 :end' >>confcache
17329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17330 if test -w "$cache_file"; then
17331 test "x$cache_file" != "x/dev/null" &&
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17333$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17334 cat confcache >$cache_file
17335 else
81ecdfbb
RW
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17337$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17338 fi
17339fi
17340rm -f confcache
17341
17342test "x$prefix" = xNONE && prefix=$ac_default_prefix
17343# Let make expand exec_prefix.
17344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17345
42ecbf5e
DJ
17346DEFS=-DHAVE_CONFIG_H
17347
17348ac_libobjs=
17349ac_ltlibobjs=
17350for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17351 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17355 # will be set to the directory where LIBOBJS objects are built.
17356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17358done
17359LIBOBJS=$ac_libobjs
17360
17361LTLIBOBJS=$ac_ltlibobjs
17362
17363
17364if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17365 as_fn_error "conditional \"AMDEP\" was never defined.
17366Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17367fi
17368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17369 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17370Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371fi
17372 if test -n "$EXEEXT"; then
17373 am__EXEEXT_TRUE=
17374 am__EXEEXT_FALSE='#'
17375else
17376 am__EXEEXT_TRUE='#'
17377 am__EXEEXT_FALSE=
42ecbf5e 17378fi
81ecdfbb 17379
64ac50ac
RW
17380if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17381 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17382Usually this means the macro was only invoked conditionally." "$LINENO" 5
17383fi
3cb62297
L
17384if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17385 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17386Usually this means the macro was only invoked conditionally." "$LINENO" 5
17387fi
42ecbf5e 17388if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17389 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17390Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17391fi
d5fbea21 17392if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17393 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17394Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17395fi
5d3236ee
DK
17396if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17397 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17398Usually this means the macro was only invoked conditionally." "$LINENO" 5
17399fi
42ecbf5e
DJ
17400
17401: ${CONFIG_STATUS=./config.status}
81ecdfbb 17402ac_write_fail=0
42ecbf5e
DJ
17403ac_clean_files_save=$ac_clean_files
17404ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17406$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17407as_write_fail=0
17408cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17409#! $SHELL
17410# Generated by $as_me.
17411# Run this file to recreate the current configuration.
17412# Compiler output produced by configure, useful for debugging
17413# configure, is in config.log if it exists.
17414
17415debug=false
17416ac_cs_recheck=false
17417ac_cs_silent=false
42ecbf5e 17418
81ecdfbb
RW
17419SHELL=\${CONFIG_SHELL-$SHELL}
17420export SHELL
17421_ASEOF
17422cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17423## -------------------- ##
17424## M4sh Initialization. ##
17425## -------------------- ##
42ecbf5e 17426
81ecdfbb
RW
17427# Be more Bourne compatible
17428DUALCASE=1; export DUALCASE # for MKS sh
17429if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17430 emulate sh
17431 NULLCMD=:
81ecdfbb 17432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17433 # is contrary to our usage. Disable this feature.
17434 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17435 setopt NO_GLOB_SUBST
17436else
17437 case `(set -o) 2>/dev/null` in #(
17438 *posix*) :
17439 set -o posix ;; #(
17440 *) :
17441 ;;
17442esac
42ecbf5e 17443fi
42ecbf5e 17444
81ecdfbb
RW
17445
17446as_nl='
17447'
17448export as_nl
17449# Printing a long string crashes Solaris 7 /usr/bin/printf.
17450as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17451as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17453# Prefer a ksh shell builtin over an external printf program on Solaris,
17454# but without wasting forks for bash or zsh.
17455if test -z "$BASH_VERSION$ZSH_VERSION" \
17456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17457 as_echo='print -r --'
17458 as_echo_n='print -rn --'
17459elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17460 as_echo='printf %s\n'
17461 as_echo_n='printf %s'
17462else
17463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17465 as_echo_n='/usr/ucb/echo -n'
17466 else
17467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17468 as_echo_n_body='eval
17469 arg=$1;
17470 case $arg in #(
17471 *"$as_nl"*)
17472 expr "X$arg" : "X\\(.*\\)$as_nl";
17473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17474 esac;
17475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17476 '
17477 export as_echo_n_body
17478 as_echo_n='sh -c $as_echo_n_body as_echo'
17479 fi
17480 export as_echo_body
17481 as_echo='sh -c $as_echo_body as_echo'
17482fi
17483
17484# The user is always right.
17485if test "${PATH_SEPARATOR+set}" != set; then
17486 PATH_SEPARATOR=:
17487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17489 PATH_SEPARATOR=';'
17490 }
42ecbf5e
DJ
17491fi
17492
17493
81ecdfbb
RW
17494# IFS
17495# We need space, tab and new line, in precisely that order. Quoting is
17496# there to prevent editors from complaining about space-tab.
17497# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17498# splitting by setting IFS to empty value.)
17499IFS=" "" $as_nl"
17500
17501# Find who we are. Look in the path if we contain no directory separator.
17502case $0 in #((
17503 *[\\/]* ) as_myself=$0 ;;
17504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17505for as_dir in $PATH
17506do
17507 IFS=$as_save_IFS
17508 test -z "$as_dir" && as_dir=.
17509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17510 done
17511IFS=$as_save_IFS
17512
17513 ;;
17514esac
17515# We did not find ourselves, most probably we were run as `sh COMMAND'
17516# in which case we are not to be found in the path.
17517if test "x$as_myself" = x; then
17518 as_myself=$0
17519fi
17520if test ! -f "$as_myself"; then
17521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17522 exit 1
17523fi
17524
17525# Unset variables that we do not need and which cause bugs (e.g. in
17526# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17527# suppresses any "Segmentation fault" message there. '((' could
17528# trigger a bug in pdksh 5.2.14.
17529for as_var in BASH_ENV ENV MAIL MAILPATH
17530do eval test x\${$as_var+set} = xset \
17531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17532done
42ecbf5e
DJ
17533PS1='$ '
17534PS2='> '
17535PS4='+ '
17536
17537# NLS nuisances.
81ecdfbb
RW
17538LC_ALL=C
17539export LC_ALL
17540LANGUAGE=C
17541export LANGUAGE
17542
17543# CDPATH.
17544(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17545
17546
17547# as_fn_error ERROR [LINENO LOG_FD]
17548# ---------------------------------
17549# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17550# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17551# script with status $?, using 1 if that was 0.
17552as_fn_error ()
17553{
17554 as_status=$?; test $as_status -eq 0 && as_status=1
17555 if test "$3"; then
17556 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17558 fi
81ecdfbb
RW
17559 $as_echo "$as_me: error: $1" >&2
17560 as_fn_exit $as_status
17561} # as_fn_error
17562
17563
17564# as_fn_set_status STATUS
17565# -----------------------
17566# Set $? to STATUS, without forking.
17567as_fn_set_status ()
17568{
17569 return $1
17570} # as_fn_set_status
17571
17572# as_fn_exit STATUS
17573# -----------------
17574# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17575as_fn_exit ()
17576{
17577 set +e
17578 as_fn_set_status $1
17579 exit $1
17580} # as_fn_exit
17581
17582# as_fn_unset VAR
17583# ---------------
17584# Portably unset VAR.
17585as_fn_unset ()
17586{
17587 { eval $1=; unset $1;}
17588}
17589as_unset=as_fn_unset
17590# as_fn_append VAR VALUE
17591# ----------------------
17592# Append the text in VALUE to the end of the definition contained in VAR. Take
17593# advantage of any shell optimizations that allow amortized linear growth over
17594# repeated appends, instead of the typical quadratic growth present in naive
17595# implementations.
17596if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17597 eval 'as_fn_append ()
17598 {
17599 eval $1+=\$2
17600 }'
17601else
17602 as_fn_append ()
17603 {
17604 eval $1=\$$1\$2
17605 }
17606fi # as_fn_append
17607
17608# as_fn_arith ARG...
17609# ------------------
17610# Perform arithmetic evaluation on the ARGs, and store the result in the
17611# global $as_val. Take advantage of shells that can avoid forks. The arguments
17612# must be portable across $(()) and expr.
17613if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17614 eval 'as_fn_arith ()
17615 {
17616 as_val=$(( $* ))
17617 }'
17618else
17619 as_fn_arith ()
17620 {
17621 as_val=`expr "$@" || test $? -eq 1`
17622 }
17623fi # as_fn_arith
17624
42ecbf5e 17625
81ecdfbb
RW
17626if expr a : '\(a\)' >/dev/null 2>&1 &&
17627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17628 as_expr=expr
17629else
17630 as_expr=false
17631fi
17632
81ecdfbb 17633if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17634 as_basename=basename
17635else
17636 as_basename=false
17637fi
17638
81ecdfbb
RW
17639if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17640 as_dirname=dirname
17641else
17642 as_dirname=false
17643fi
42ecbf5e 17644
81ecdfbb 17645as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17646$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17647 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17649$as_echo X/"$0" |
17650 sed '/^.*\/\([^/][^/]*\)\/*$/{
17651 s//\1/
17652 q
17653 }
17654 /^X\/\(\/\/\)$/{
17655 s//\1/
17656 q
17657 }
17658 /^X\/\(\/\).*/{
17659 s//\1/
17660 q
17661 }
17662 s/.*/./; q'`
42ecbf5e 17663
42ecbf5e
DJ
17664# Avoid depending upon Character Ranges.
17665as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17666as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17667as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17668as_cr_digits='0123456789'
17669as_cr_alnum=$as_cr_Letters$as_cr_digits
17670
81ecdfbb
RW
17671ECHO_C= ECHO_N= ECHO_T=
17672case `echo -n x` in #(((((
17673-n*)
17674 case `echo 'xy\c'` in
17675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17676 xy) ECHO_C='\c';;
17677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17678 ECHO_T=' ';;
17679 esac;;
17680*)
17681 ECHO_N='-n';;
42ecbf5e 17682esac
252b5132 17683
81ecdfbb
RW
17684rm -f conf$$ conf$$.exe conf$$.file
17685if test -d conf$$.dir; then
17686 rm -f conf$$.dir/conf$$.file
42ecbf5e 17687else
81ecdfbb
RW
17688 rm -f conf$$.dir
17689 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17690fi
81ecdfbb
RW
17691if (echo >conf$$.file) 2>/dev/null; then
17692 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17693 as_ln_s='ln -s'
81ecdfbb
RW
17694 # ... but there are two gotchas:
17695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17697 # In both cases, we have to default to `cp -p'.
17698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17699 as_ln_s='cp -p'
17700 elif ln conf$$.file conf$$ 2>/dev/null; then
17701 as_ln_s=ln
17702 else
17703 as_ln_s='cp -p'
252b5132 17704 fi
e5a52504 17705else
42ecbf5e 17706 as_ln_s='cp -p'
e5a52504 17707fi
81ecdfbb
RW
17708rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17709rmdir conf$$.dir 2>/dev/null
17710
17711
17712# as_fn_mkdir_p
17713# -------------
17714# Create "$as_dir" as a directory, including parents if necessary.
17715as_fn_mkdir_p ()
17716{
17717
17718 case $as_dir in #(
17719 -*) as_dir=./$as_dir;;
17720 esac
17721 test -d "$as_dir" || eval $as_mkdir_p || {
17722 as_dirs=
17723 while :; do
17724 case $as_dir in #(
17725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17726 *) as_qdir=$as_dir;;
17727 esac
17728 as_dirs="'$as_qdir' $as_dirs"
17729 as_dir=`$as_dirname -- "$as_dir" ||
17730$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17731 X"$as_dir" : 'X\(//\)[^/]' \| \
17732 X"$as_dir" : 'X\(//\)$' \| \
17733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17734$as_echo X"$as_dir" |
17735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17736 s//\1/
17737 q
17738 }
17739 /^X\(\/\/\)[^/].*/{
17740 s//\1/
17741 q
17742 }
17743 /^X\(\/\/\)$/{
17744 s//\1/
17745 q
17746 }
17747 /^X\(\/\).*/{
17748 s//\1/
17749 q
17750 }
17751 s/.*/./; q'`
17752 test -d "$as_dir" && break
17753 done
17754 test -z "$as_dirs" || eval "mkdir $as_dirs"
17755 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17756
252b5132 17757
81ecdfbb 17758} # as_fn_mkdir_p
42ecbf5e 17759if mkdir -p . 2>/dev/null; then
81ecdfbb 17760 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17761else
17762 test -d ./-p && rmdir ./-p
17763 as_mkdir_p=false
17764fi
252b5132 17765
81ecdfbb
RW
17766if test -x / >/dev/null 2>&1; then
17767 as_test_x='test -x'
17768else
17769 if ls -dL / >/dev/null 2>&1; then
17770 as_ls_L_option=L
17771 else
17772 as_ls_L_option=
17773 fi
17774 as_test_x='
17775 eval sh -c '\''
17776 if test -d "$1"; then
17777 test -d "$1/.";
17778 else
17779 case $1 in #(
17780 -*)set "./$1";;
17781 esac;
17782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17783 ???[sx]*):;;*)false;;esac;fi
17784 '\'' sh
17785 '
17786fi
17787as_executable_p=$as_test_x
252b5132 17788
42ecbf5e
DJ
17789# Sed expression to map a string onto a valid CPP name.
17790as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17791
42ecbf5e
DJ
17792# Sed expression to map a string onto a valid variable name.
17793as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17794
e5a52504 17795
42ecbf5e 17796exec 6>&1
81ecdfbb
RW
17797## ----------------------------------- ##
17798## Main body of $CONFIG_STATUS script. ##
17799## ----------------------------------- ##
17800_ASEOF
17801test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17802
81ecdfbb
RW
17803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17805# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17806# values after options handling.
17807ac_log="
99b5dbf2 17808This file was extended by ld $as_me 2.28.51, which was
81ecdfbb 17809generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17810
17811 CONFIG_FILES = $CONFIG_FILES
17812 CONFIG_HEADERS = $CONFIG_HEADERS
17813 CONFIG_LINKS = $CONFIG_LINKS
17814 CONFIG_COMMANDS = $CONFIG_COMMANDS
17815 $ $0 $@
e5a52504 17816
81ecdfbb
RW
17817on `(hostname || uname -n) 2>/dev/null | sed 1q`
17818"
17819
42ecbf5e
DJ
17820_ACEOF
17821
81ecdfbb
RW
17822case $ac_config_files in *"
17823"*) set x $ac_config_files; shift; ac_config_files=$*;;
17824esac
e5a52504 17825
81ecdfbb
RW
17826case $ac_config_headers in *"
17827"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17828esac
42ecbf5e 17829
42ecbf5e 17830
81ecdfbb
RW
17831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17832# Files that config.status was made for.
17833config_files="$ac_config_files"
17834config_headers="$ac_config_headers"
17835config_commands="$ac_config_commands"
42ecbf5e 17836
81ecdfbb 17837_ACEOF
42ecbf5e 17838
81ecdfbb 17839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17840ac_cs_usage="\
81ecdfbb
RW
17841\`$as_me' instantiates files and other configuration actions
17842from templates according to the current configuration. Unless the files
17843and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17844
81ecdfbb 17845Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17846
17847 -h, --help print this help, then exit
81ecdfbb
RW
17848 -V, --version print version number and configuration settings, then exit
17849 -q, --quiet, --silent
17850 do not print progress messages
42ecbf5e
DJ
17851 -d, --debug don't remove temporary files
17852 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17853 --file=FILE[:TEMPLATE]
17854 instantiate the configuration file FILE
17855 --header=FILE[:TEMPLATE]
17856 instantiate the configuration header FILE
42ecbf5e
DJ
17857
17858Configuration files:
17859$config_files
17860
17861Configuration headers:
17862$config_headers
17863
17864Configuration commands:
17865$config_commands
17866
81ecdfbb 17867Report bugs to the package provider."
42ecbf5e 17868
81ecdfbb
RW
17869_ACEOF
17870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17871ac_cs_version="\\
99b5dbf2 17872ld config.status 2.28.51
81ecdfbb
RW
17873configured by $0, generated by GNU Autoconf 2.64,
17874 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17875
81ecdfbb 17876Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17877This config.status script is free software; the Free Software Foundation
17878gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17879
17880ac_pwd='$ac_pwd'
17881srcdir='$srcdir'
17882INSTALL='$INSTALL'
17883MKDIR_P='$MKDIR_P'
17884AWK='$AWK'
17885test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17886_ACEOF
17887
81ecdfbb
RW
17888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17889# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17890ac_need_defaults=:
17891while test $# != 0
17892do
17893 case $1 in
17894 --*=*)
81ecdfbb
RW
17895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17897 ac_shift=:
252b5132 17898 ;;
81ecdfbb 17899 *)
42ecbf5e
DJ
17900 ac_option=$1
17901 ac_optarg=$2
17902 ac_shift=shift
252b5132 17903 ;;
42ecbf5e 17904 esac
252b5132 17905
42ecbf5e
DJ
17906 case $ac_option in
17907 # Handling of the options.
42ecbf5e
DJ
17908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17909 ac_cs_recheck=: ;;
81ecdfbb
RW
17910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17911 $as_echo "$ac_cs_version"; exit ;;
17912 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17913 debug=: ;;
17914 --file | --fil | --fi | --f )
17915 $ac_shift
81ecdfbb
RW
17916 case $ac_optarg in
17917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17918 esac
17919 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17920 ac_need_defaults=false;;
17921 --header | --heade | --head | --hea )
17922 $ac_shift
81ecdfbb
RW
17923 case $ac_optarg in
17924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17925 esac
17926 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17927 ac_need_defaults=false;;
81ecdfbb
RW
17928 --he | --h)
17929 # Conflict between --help and --header
17930 as_fn_error "ambiguous option: \`$1'
17931Try \`$0 --help' for more information.";;
17932 --help | --hel | -h )
17933 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17936 ac_cs_silent=: ;;
252b5132 17937
42ecbf5e 17938 # This is an error.
81ecdfbb
RW
17939 -*) as_fn_error "unrecognized option: \`$1'
17940Try \`$0 --help' for more information." ;;
252b5132 17941
81ecdfbb
RW
17942 *) as_fn_append ac_config_targets " $1"
17943 ac_need_defaults=false ;;
252b5132 17944
42ecbf5e
DJ
17945 esac
17946 shift
17947done
d15b04bd 17948
42ecbf5e 17949ac_configure_extra_args=
e5a52504 17950
42ecbf5e
DJ
17951if $ac_cs_silent; then
17952 exec 6>/dev/null
17953 ac_configure_extra_args="$ac_configure_extra_args --silent"
17954fi
e5a52504 17955
42ecbf5e 17956_ACEOF
81ecdfbb 17957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17958if \$ac_cs_recheck; then
81ecdfbb
RW
17959 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17960 shift
17961 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17962 CONFIG_SHELL='$SHELL'
17963 export CONFIG_SHELL
17964 exec "\$@"
42ecbf5e
DJ
17965fi
17966
17967_ACEOF
81ecdfbb
RW
17968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969exec 5>>config.log
17970{
17971 echo
17972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17973## Running $as_me. ##
17974_ASBOX
17975 $as_echo "$ac_log"
17976} >&5
42ecbf5e 17977
81ecdfbb
RW
17978_ACEOF
17979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17980#
81ecdfbb 17981# INIT-COMMANDS
252b5132 17982#
42ecbf5e 17983AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17984
17985
17986# The HP-UX ksh and POSIX shell print the target directory to stdout
17987# if CDPATH is set.
17988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17989
17990sed_quote_subst='$sed_quote_subst'
17991double_quote_subst='$double_quote_subst'
17992delay_variable_subst='$delay_variable_subst'
3725885a
RW
17993macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17994macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17995enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17996enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17997pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17998enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17999SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18000ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18001host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18002host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18003host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18004build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18005build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18006build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18007SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18008Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18009GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18010EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18011FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18012LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18013NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18014LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18015max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18016ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18017exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18018lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18019lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18020lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18021reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18022reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18023OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18024deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18025file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18026AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18027AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18028STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18029RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18030old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18031old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18032old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18033lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18034CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18035CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18036compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18037GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18038lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18039lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18040lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18041lt_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"`'
18042objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18043MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18044lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18045lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18046lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18047lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18048lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18049need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18050DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18051NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18052LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18053OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18054OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18055libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18056shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18057extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18058archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18059enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18060export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18061whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18062compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18063old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18064old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18065archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18066archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18067module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18068module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18069with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18070allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18071no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18072hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18073hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18074hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18075hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18076hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18077hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18078hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18079hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18080inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18081link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18082fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18083always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18084export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18085exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18086include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18087prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18088file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18089variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18090need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18091need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18092version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18093runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18094shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18095shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18096libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18097library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18098soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18099install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18100postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18101postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18102finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18103finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18104hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18105sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18106sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18107hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18108enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18109enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18110enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18111old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18112striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18113compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18114predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18115postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18116predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18117postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18118compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18119LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18120reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18121reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18122old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18123compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18124GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18125lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18126lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18127lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18128lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18129lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18130archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18131enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18132export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18133whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18134compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18135old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18136old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18137archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18138archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18139module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18140module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18142allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18143no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18144hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18145hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18146hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18147hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18148hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18149hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18150hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18151hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18152inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18153link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18154fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18155always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18156export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18157exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18158include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18159prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18160file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18161hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18162compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18163predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18164postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18165predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18166postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18167compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18168
18169LTCC='$LTCC'
18170LTCFLAGS='$LTCFLAGS'
18171compiler='$compiler_DEFAULT'
18172
3725885a
RW
18173# A function that is used when there is no print builtin or printf.
18174func_fallback_echo ()
18175{
18176 eval 'cat <<_LTECHO_EOF
18177\$1
18178_LTECHO_EOF'
18179}
18180
d7040cdb 18181# Quote evaled strings.
3725885a
RW
18182for var in SHELL \
18183ECHO \
18184SED \
d7040cdb
SE
18185GREP \
18186EGREP \
18187FGREP \
18188LD \
18189NM \
18190LN_S \
18191lt_SP2NL \
18192lt_NL2SP \
18193reload_flag \
b214d478 18194OBJDUMP \
d7040cdb
SE
18195deplibs_check_method \
18196file_magic_cmd \
18197AR \
18198AR_FLAGS \
18199STRIP \
18200RANLIB \
18201CC \
18202CFLAGS \
18203compiler \
18204lt_cv_sys_global_symbol_pipe \
18205lt_cv_sys_global_symbol_to_cdecl \
18206lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18207lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18208lt_prog_compiler_no_builtin_flag \
18209lt_prog_compiler_wl \
18210lt_prog_compiler_pic \
18211lt_prog_compiler_static \
18212lt_cv_prog_compiler_c_o \
18213need_locks \
b214d478
SE
18214DSYMUTIL \
18215NMEDIT \
18216LIPO \
18217OTOOL \
18218OTOOL64 \
d7040cdb
SE
18219shrext_cmds \
18220export_dynamic_flag_spec \
18221whole_archive_flag_spec \
18222compiler_needs_object \
18223with_gnu_ld \
18224allow_undefined_flag \
18225no_undefined_flag \
18226hardcode_libdir_flag_spec \
18227hardcode_libdir_flag_spec_ld \
18228hardcode_libdir_separator \
18229fix_srcfile_path \
18230exclude_expsyms \
18231include_expsyms \
18232file_list_spec \
18233variables_saved_for_relink \
18234libname_spec \
18235library_names_spec \
18236soname_spec \
3725885a 18237install_override_mode \
d7040cdb
SE
18238finish_eval \
18239old_striplib \
3cb62297
L
18240striplib \
18241compiler_lib_search_dirs \
18242predep_objects \
18243postdep_objects \
18244predeps \
18245postdeps \
18246compiler_lib_search_path \
18247LD_CXX \
18248reload_flag_CXX \
18249compiler_CXX \
18250lt_prog_compiler_no_builtin_flag_CXX \
18251lt_prog_compiler_wl_CXX \
18252lt_prog_compiler_pic_CXX \
18253lt_prog_compiler_static_CXX \
18254lt_cv_prog_compiler_c_o_CXX \
18255export_dynamic_flag_spec_CXX \
18256whole_archive_flag_spec_CXX \
18257compiler_needs_object_CXX \
18258with_gnu_ld_CXX \
18259allow_undefined_flag_CXX \
18260no_undefined_flag_CXX \
18261hardcode_libdir_flag_spec_CXX \
18262hardcode_libdir_flag_spec_ld_CXX \
18263hardcode_libdir_separator_CXX \
18264fix_srcfile_path_CXX \
18265exclude_expsyms_CXX \
18266include_expsyms_CXX \
18267file_list_spec_CXX \
18268compiler_lib_search_dirs_CXX \
18269predep_objects_CXX \
18270postdep_objects_CXX \
18271predeps_CXX \
18272postdeps_CXX \
18273compiler_lib_search_path_CXX; do
3725885a 18274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18275 *[\\\\\\\`\\"\\\$]*)
3725885a 18276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18277 ;;
18278 *)
18279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18280 ;;
18281 esac
18282done
18283
18284# Double-quote double-evaled strings.
18285for var in reload_cmds \
18286old_postinstall_cmds \
18287old_postuninstall_cmds \
18288old_archive_cmds \
18289extract_expsyms_cmds \
18290old_archive_from_new_cmds \
18291old_archive_from_expsyms_cmds \
18292archive_cmds \
18293archive_expsym_cmds \
18294module_cmds \
18295module_expsym_cmds \
18296export_symbols_cmds \
18297prelink_cmds \
18298postinstall_cmds \
18299postuninstall_cmds \
18300finish_cmds \
18301sys_lib_search_path_spec \
3cb62297
L
18302sys_lib_dlsearch_path_spec \
18303reload_cmds_CXX \
18304old_archive_cmds_CXX \
18305old_archive_from_new_cmds_CXX \
18306old_archive_from_expsyms_cmds_CXX \
18307archive_cmds_CXX \
18308archive_expsym_cmds_CXX \
18309module_cmds_CXX \
18310module_expsym_cmds_CXX \
18311export_symbols_cmds_CXX \
18312prelink_cmds_CXX; do
3725885a 18313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18314 *[\\\\\\\`\\"\\\$]*)
3725885a 18315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18316 ;;
18317 *)
18318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18319 ;;
18320 esac
18321done
18322
d7040cdb
SE
18323ac_aux_dir='$ac_aux_dir'
18324xsi_shell='$xsi_shell'
18325lt_shell_append='$lt_shell_append'
18326
18327# See if we are running on zsh, and set the options which allow our
18328# commands through without removal of \ escapes INIT.
18329if test -n "\${ZSH_VERSION+set}" ; then
18330 setopt NO_GLOB_SUBST
18331fi
18332
18333
18334 PACKAGE='$PACKAGE'
18335 VERSION='$VERSION'
18336 TIMESTAMP='$TIMESTAMP'
18337 RM='$RM'
18338 ofile='$ofile'
18339
18340
18341
3cb62297
L
18342
18343
20e95c23
DJ
18344# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18345 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18346 # from automake.
18347 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18348 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18349 LINGUAS="${LINGUAS-%UNSET%}"
18350
42ecbf5e
DJ
18351
18352_ACEOF
18353
81ecdfbb 18354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18355
81ecdfbb 18356# Handling of arguments.
42ecbf5e 18357for ac_config_target in $ac_config_targets
252b5132 18358do
81ecdfbb
RW
18359 case $ac_config_target in
18360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18362 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb
RW
18363 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18364 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18365 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18366
18367 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18368 esac
18369done
18370
81ecdfbb 18371
42ecbf5e
DJ
18372# If the user did not use the arguments to specify the items to instantiate,
18373# then the envvar interface is used. Set only those that are not.
18374# We use the long form for the default assignment because of an extremely
18375# bizarre bug on SunOS 4.1.3.
18376if $ac_need_defaults; then
18377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18380fi
18381
18382# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18383# simply because there is no reason against having it here, and in addition,
42ecbf5e 18384# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18385# Hook for its removal unless debugging.
18386# Note that there is a small window in which the directory will not be cleaned:
18387# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18388$debug ||
18389{
81ecdfbb
RW
18390 tmp=
18391 trap 'exit_status=$?
18392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18393' 0
18394 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18395}
42ecbf5e 18396# Create a (secure) tmp directory for tmp files.
e5a52504 18397
42ecbf5e 18398{
81ecdfbb 18399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18400 test -n "$tmp" && test -d "$tmp"
18401} ||
18402{
81ecdfbb
RW
18403 tmp=./conf$$-$RANDOM
18404 (umask 077 && mkdir "$tmp")
18405} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18406
18407# Set up the scripts for CONFIG_FILES section.
18408# No need to generate them if there are no CONFIG_FILES.
18409# This happens for instance with `./config.status config.h'.
18410if test -n "$CONFIG_FILES"; then
18411
18412if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18413 ac_cs_awk_getline=:
18414 ac_cs_awk_pipe_init=
18415 ac_cs_awk_read_file='
18416 while ((getline aline < (F[key])) > 0)
18417 print(aline)
18418 close(F[key])'
18419 ac_cs_awk_pipe_fini=
18420else
18421 ac_cs_awk_getline=false
18422 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18423 ac_cs_awk_read_file='
18424 print "|#_!!_#|"
18425 print "cat " F[key] " &&"
18426 '$ac_cs_awk_pipe_init
18427 # The final `:' finishes the AND list.
18428 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18429fi
18430ac_cr=`echo X | tr X '\015'`
18431# On cygwin, bash can eat \r inside `` if the user requested igncr.
18432# But we know of no other shell where ac_cr would be empty at this
18433# point, so we can use a bashism as a fallback.
18434if test "x$ac_cr" = x; then
18435 eval ac_cr=\$\'\\r\'
18436fi
18437ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18438if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18439 ac_cs_awk_cr='\r'
18440else
18441 ac_cs_awk_cr=$ac_cr
18442fi
18443
18444echo 'BEGIN {' >"$tmp/subs1.awk" &&
18445_ACEOF
18446
18447# Create commands to substitute file output variables.
42ecbf5e 18448{
81ecdfbb
RW
18449 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18450 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18451 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18452 echo "_ACAWK" &&
18453 echo "_ACEOF"
18454} >conf$$files.sh &&
18455. ./conf$$files.sh ||
18456 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18457rm -f conf$$files.sh
e5a52504 18458
81ecdfbb
RW
18459{
18460 echo "cat >conf$$subs.awk <<_ACEOF" &&
18461 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18462 echo "_ACEOF"
18463} >conf$$subs.sh ||
18464 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18465ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18466ac_delim='%!_!# '
18467for ac_last_try in false false false false false :; do
18468 . ./conf$$subs.sh ||
18469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18470
18471 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18472 if test $ac_delim_n = $ac_delim_num; then
18473 break
18474 elif $ac_last_try; then
18475 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18476 else
18477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18478 fi
18479done
18480rm -f conf$$subs.sh
18481
18482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18484_ACEOF
18485sed -n '
18486h
18487s/^/S["/; s/!.*/"]=/
18488p
18489g
18490s/^[^!]*!//
18491:repl
18492t repl
18493s/'"$ac_delim"'$//
18494t delim
18495:nl
18496h
18497s/\(.\{148\}\).*/\1/
18498t more1
18499s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18500p
18501n
18502b repl
18503:more1
18504s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18505p
18506g
18507s/.\{148\}//
18508t nl
18509:delim
18510h
18511s/\(.\{148\}\).*/\1/
18512t more2
18513s/["\\]/\\&/g; s/^/"/; s/$/"/
18514p
18515b
18516:more2
18517s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18518p
18519g
18520s/.\{148\}//
18521t delim
18522' <conf$$subs.awk | sed '
18523/^[^""]/{
18524 N
18525 s/\n//
18526}
18527' >>$CONFIG_STATUS || ac_write_fail=1
18528rm -f conf$$subs.awk
18529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530_ACAWK
18531cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18532 for (key in S) S_is_set[key] = 1
18533 FS = "\a"
18534 \$ac_cs_awk_pipe_init
18535}
18536{
18537 line = $ 0
18538 nfields = split(line, field, "@")
18539 substed = 0
18540 len = length(field[1])
18541 for (i = 2; i < nfields; i++) {
18542 key = field[i]
18543 keylen = length(key)
18544 if (S_is_set[key]) {
18545 value = S[key]
18546 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18547 len += length(value) + length(field[++i])
18548 substed = 1
18549 } else
18550 len += 1 + keylen
18551 }
18552 if (nfields == 3 && !substed) {
18553 key = field[2]
18554 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18555 \$ac_cs_awk_read_file
18556 next
18557 }
18558 }
18559 print line
18560}
18561\$ac_cs_awk_pipe_fini
18562_ACAWK
18563_ACEOF
18564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18565if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18567else
18568 cat
18569fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18570 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18571_ACEOF
d15b04bd 18572
81ecdfbb
RW
18573# VPATH may cause trouble with some makes, so we remove $(srcdir),
18574# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18575# trailing colons and then remove the whole line if VPATH becomes empty
18576# (actually we leave an empty line to preserve line numbers).
18577if test "x$srcdir" = x.; then
18578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18579s/:*\$(srcdir):*/:/
18580s/:*\${srcdir}:*/:/
18581s/:*@srcdir@:*/:/
18582s/^\([^=]*=[ ]*\):*/\1/
18583s/:*$//
18584s/^[^=]*=[ ]*$//
18585}'
18586fi
18587
18588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18589fi # test -n "$CONFIG_FILES"
42ecbf5e 18590
81ecdfbb
RW
18591# Set up the scripts for CONFIG_HEADERS section.
18592# No need to generate them if there are no CONFIG_HEADERS.
18593# This happens for instance with `./config.status Makefile'.
18594if test -n "$CONFIG_HEADERS"; then
18595cat >"$tmp/defines.awk" <<\_ACAWK ||
18596BEGIN {
18597_ACEOF
42ecbf5e 18598
81ecdfbb
RW
18599# Transform confdefs.h into an awk script `defines.awk', embedded as
18600# here-document in config.status, that substitutes the proper values into
18601# config.h.in to produce config.h.
252b5132 18602
81ecdfbb
RW
18603# Create a delimiter string that does not exist in confdefs.h, to ease
18604# handling of long lines.
18605ac_delim='%!_!# '
18606for ac_last_try in false false :; do
18607 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18608 if test -z "$ac_t"; then
18609 break
18610 elif $ac_last_try; then
18611 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18612 else
18613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18614 fi
18615done
18616
18617# For the awk script, D is an array of macro values keyed by name,
18618# likewise P contains macro parameters if any. Preserve backslash
18619# newline sequences.
18620
18621ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18622sed -n '
18623s/.\{148\}/&'"$ac_delim"'/g
18624t rset
18625:rset
18626s/^[ ]*#[ ]*define[ ][ ]*/ /
18627t def
18628d
18629:def
18630s/\\$//
18631t bsnl
18632s/["\\]/\\&/g
18633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18634D["\1"]=" \3"/p
18635s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18636d
18637:bsnl
18638s/["\\]/\\&/g
18639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18640D["\1"]=" \3\\\\\\n"\\/p
18641t cont
18642s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18643t cont
18644d
18645:cont
18646n
18647s/.\{148\}/&'"$ac_delim"'/g
18648t clear
18649:clear
18650s/\\$//
18651t bsnlc
18652s/["\\]/\\&/g; s/^/"/; s/$/"/p
18653d
18654:bsnlc
18655s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18656b cont
18657' <confdefs.h | sed '
18658s/'"$ac_delim"'/"\\\
18659"/g' >>$CONFIG_STATUS || ac_write_fail=1
18660
18661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 for (key in D) D_is_set[key] = 1
18663 FS = "\a"
18664}
18665/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18666 line = \$ 0
18667 split(line, arg, " ")
18668 if (arg[1] == "#") {
18669 defundef = arg[2]
18670 mac1 = arg[3]
18671 } else {
18672 defundef = substr(arg[1], 2)
18673 mac1 = arg[2]
18674 }
18675 split(mac1, mac2, "(") #)
18676 macro = mac2[1]
18677 prefix = substr(line, 1, index(line, defundef) - 1)
18678 if (D_is_set[macro]) {
18679 # Preserve the white space surrounding the "#".
18680 print prefix "define", macro P[macro] D[macro]
18681 next
18682 } else {
18683 # Replace #undef with comments. This is necessary, for example,
18684 # in the case of _POSIX_SOURCE, which is predefined and required
18685 # on some systems where configure will not decide to define it.
18686 if (defundef == "undef") {
18687 print "/*", prefix defundef, macro, "*/"
18688 next
18689 }
18690 }
18691}
18692{ print }
18693_ACAWK
42ecbf5e 18694_ACEOF
81ecdfbb
RW
18695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18697fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18698
81ecdfbb
RW
18699
18700eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18701shift
18702for ac_tag
18703do
18704 case $ac_tag in
18705 :[FHLC]) ac_mode=$ac_tag; continue;;
18706 esac
18707 case $ac_mode$ac_tag in
18708 :[FHL]*:*);;
18709 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18710 :[FH]-) ac_tag=-:-;;
18711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18712 esac
18713 ac_save_IFS=$IFS
18714 IFS=:
18715 set x $ac_tag
18716 IFS=$ac_save_IFS
18717 shift
18718 ac_file=$1
18719 shift
18720
18721 case $ac_mode in
18722 :L) ac_source=$1;;
18723 :[FH])
18724 ac_file_inputs=
18725 for ac_f
18726 do
18727 case $ac_f in
18728 -) ac_f="$tmp/stdin";;
18729 *) # Look for the file first in the build tree, then in the source tree
18730 # (if the path is not absolute). The absolute path cannot be DOS-style,
18731 # because $ac_f cannot contain `:'.
18732 test -f "$ac_f" ||
18733 case $ac_f in
18734 [\\/$]*) false;;
18735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18736 esac ||
18737 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18738 esac
18739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18740 as_fn_append ac_file_inputs " '$ac_f'"
18741 done
18742
18743 # Let's still pretend it is `configure' which instantiates (i.e., don't
18744 # use $as_me), people would be surprised to read:
18745 # /* config.h. Generated by config.status. */
18746 configure_input='Generated from '`
18747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18748 `' by configure.'
18749 if test x"$ac_file" != x-; then
18750 configure_input="$ac_file. $configure_input"
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18752$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18753 fi
81ecdfbb
RW
18754 # Neutralize special characters interpreted by sed in replacement strings.
18755 case $configure_input in #(
18756 *\&* | *\|* | *\\* )
18757 ac_sed_conf_input=`$as_echo "$configure_input" |
18758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18759 *) ac_sed_conf_input=$configure_input;;
18760 esac
252b5132 18761
81ecdfbb
RW
18762 case $ac_tag in
18763 *:-:* | *:-) cat >"$tmp/stdin" \
18764 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18765 esac
18766 ;;
252b5132
RH
18767 esac
18768
81ecdfbb 18769 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18771 X"$ac_file" : 'X\(//\)[^/]' \| \
18772 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18774$as_echo X"$ac_file" |
18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18776 s//\1/
18777 q
18778 }
18779 /^X\(\/\/\)[^/].*/{
18780 s//\1/
18781 q
18782 }
18783 /^X\(\/\/\)$/{
18784 s//\1/
18785 q
18786 }
18787 /^X\(\/\).*/{
18788 s//\1/
18789 q
18790 }
18791 s/.*/./; q'`
18792 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18793 ac_builddir=.
18794
81ecdfbb
RW
18795case "$ac_dir" in
18796.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18797*)
18798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18799 # A ".." for each directory in $ac_dir_suffix.
18800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18801 case $ac_top_builddir_sub in
18802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18804 esac ;;
18805esac
18806ac_abs_top_builddir=$ac_pwd
18807ac_abs_builddir=$ac_pwd$ac_dir_suffix
18808# for backward compatibility:
18809ac_top_builddir=$ac_top_build_prefix
252b5132 18810
42ecbf5e 18811case $srcdir in
81ecdfbb 18812 .) # We are building in place.
42ecbf5e 18813 ac_srcdir=.
81ecdfbb
RW
18814 ac_top_srcdir=$ac_top_builddir_sub
18815 ac_abs_top_srcdir=$ac_pwd ;;
18816 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18817 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18818 ac_top_srcdir=$srcdir
18819 ac_abs_top_srcdir=$srcdir ;;
18820 *) # Relative name.
18821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18822 ac_top_srcdir=$ac_top_build_prefix$srcdir
18823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18824esac
81ecdfbb 18825ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18826
252b5132 18827
81ecdfbb
RW
18828 case $ac_mode in
18829 :F)
18830 #
18831 # CONFIG_FILE
18832 #
e5a52504 18833
42ecbf5e
DJ
18834 case $INSTALL in
18835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18837 esac
18838 ac_MKDIR_P=$MKDIR_P
18839 case $MKDIR_P in
18840 [\\/$]* | ?:[\\/]* ) ;;
18841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18842 esac
81ecdfbb 18843_ACEOF
e5a52504 18844
81ecdfbb
RW
18845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18846# If the template does not know about datarootdir, expand it.
18847# FIXME: This hack should be removed a few years after 2.60.
18848ac_datarootdir_hack=; ac_datarootdir_seen=
18849ac_sed_dataroot='
18850/datarootdir/ {
18851 p
18852 q
18853}
18854/@datadir@/p
18855/@docdir@/p
18856/@infodir@/p
18857/@localedir@/p
18858/@mandir@/p'
18859case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18860*datarootdir*) ac_datarootdir_seen=yes;;
18861*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18863$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18864_ACEOF
18865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18866 ac_datarootdir_hack='
18867 s&@datadir@&$datadir&g
18868 s&@docdir@&$docdir&g
18869 s&@infodir@&$infodir&g
18870 s&@localedir@&$localedir&g
18871 s&@mandir@&$mandir&g
18872 s&\\\${datarootdir}&$datarootdir&g' ;;
18873esac
42ecbf5e 18874_ACEOF
81ecdfbb
RW
18875
18876# Neutralize VPATH when `$srcdir' = `.'.
18877# Shell code in configure.ac might set extrasub.
18878# FIXME: do we really want to maintain this feature?
18879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18880ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18881$extrasub
18882_ACEOF
81ecdfbb 18883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18884:t
18885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18886s|@configure_input@|$ac_sed_conf_input|;t t
18887s&@top_builddir@&$ac_top_builddir_sub&;t t
18888s&@top_build_prefix@&$ac_top_build_prefix&;t t
18889s&@srcdir@&$ac_srcdir&;t t
18890s&@abs_srcdir@&$ac_abs_srcdir&;t t
18891s&@top_srcdir@&$ac_top_srcdir&;t t
18892s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18893s&@builddir@&$ac_builddir&;t t
18894s&@abs_builddir@&$ac_abs_builddir&;t t
18895s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18896s&@INSTALL@&$ac_INSTALL&;t t
18897s&@MKDIR_P@&$ac_MKDIR_P&;t t
18898$ac_datarootdir_hack
18899"
18900eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18901if $ac_cs_awk_getline; then
18902 $AWK -f "$tmp/subs.awk"
18903else
18904 $AWK -f "$tmp/subs.awk" | $SHELL
18905fi >$tmp/out \
18906 || as_fn_error "could not create $ac_file" "$LINENO" 5
18907
18908test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18909 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18910 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18912which seems to be undefined. Please make sure it is defined." >&5
18913$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18914which seems to be undefined. Please make sure it is defined." >&2;}
18915
18916 rm -f "$tmp/stdin"
42ecbf5e 18917 case $ac_file in
81ecdfbb
RW
18918 -) cat "$tmp/out" && rm -f "$tmp/out";;
18919 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18920 esac \
18921 || as_fn_error "could not create $ac_file" "$LINENO" 5
18922 ;;
18923 :H)
18924 #
18925 # CONFIG_HEADER
18926 #
42ecbf5e 18927 if test x"$ac_file" != x-; then
81ecdfbb
RW
18928 {
18929 $as_echo "/* $configure_input */" \
18930 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18931 } >"$tmp/config.h" \
18932 || as_fn_error "could not create $ac_file" "$LINENO" 5
18933 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18935$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18936 else
81ecdfbb
RW
18937 rm -f "$ac_file"
18938 mv "$tmp/config.h" "$ac_file" \
18939 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18940 fi
42ecbf5e 18941 else
81ecdfbb
RW
18942 $as_echo "/* $configure_input */" \
18943 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18944 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18945 fi
81ecdfbb
RW
18946# Compute "$ac_file"'s index in $config_headers.
18947_am_arg="$ac_file"
42ecbf5e
DJ
18948_am_stamp_count=1
18949for _am_header in $config_headers :; do
18950 case $_am_header in
81ecdfbb 18951 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18952 break ;;
18953 * )
18954 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18955 esac
18956done
81ecdfbb
RW
18957echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18958$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959 X"$_am_arg" : 'X\(//\)[^/]' \| \
18960 X"$_am_arg" : 'X\(//\)$' \| \
18961 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18962$as_echo X"$_am_arg" |
18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18964 s//\1/
18965 q
18966 }
18967 /^X\(\/\/\)[^/].*/{
18968 s//\1/
18969 q
18970 }
18971 /^X\(\/\/\)$/{
18972 s//\1/
18973 q
18974 }
18975 /^X\(\/\).*/{
18976 s//\1/
18977 q
18978 }
18979 s/.*/./; q'`/stamp-h$_am_stamp_count
18980 ;;
42ecbf5e 18981
81ecdfbb
RW
18982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18983$as_echo "$as_me: executing $ac_file commands" >&6;}
18984 ;;
18985 esac
42ecbf5e
DJ
18986
18987
81ecdfbb
RW
18988 case $ac_file$ac_mode in
18989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18990 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18991 # are listed without --file. Let's play safe and only enable the eval
18992 # if we detect the quoting.
18993 case $CONFIG_FILES in
18994 *\'*) eval set x "$CONFIG_FILES" ;;
18995 *) set x $CONFIG_FILES ;;
18996 esac
18997 shift
18998 for mf
18999 do
19000 # Strip MF so we end up with the name of the file.
19001 mf=`echo "$mf" | sed -e 's/:.*$//'`
19002 # Check whether this is an Automake generated Makefile or not.
19003 # We used to match only the files named `Makefile.in', but
19004 # some people rename them; so instead we look at the file content.
19005 # Grep'ing the first line is not enough: some people post-process
19006 # each Makefile.in and add a new line on top of each file to say so.
19007 # Grep'ing the whole file is not good either: AIX grep has a line
19008 # limit of 2048, but all sed's we know have understand at least 4000.
19009 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19010 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
19011$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012 X"$mf" : 'X\(//\)[^/]' \| \
19013 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
19014 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19015$as_echo X"$mf" |
19016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19017 s//\1/
19018 q
19019 }
19020 /^X\(\/\/\)[^/].*/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\/\)$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\).*/{
19029 s//\1/
19030 q
19031 }
19032 s/.*/./; q'`
19033 else
19034 continue
19035 fi
19036 # Extract the definition of DEPDIR, am__include, and am__quote
19037 # from the Makefile without running `make'.
19038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19039 test -z "$DEPDIR" && continue
19040 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19041 test -z "am__include" && continue
19042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19043 # When using ansi2knr, U may be empty or an underscore; expand it
19044 U=`sed -n 's/^U = //p' < "$mf"`
19045 # Find all dependency output files, they are included files with
19046 # $(DEPDIR) in their names. We invoke sed twice because it is the
19047 # simplest approach to changing $(DEPDIR) to its actual value in the
19048 # expansion.
19049 for file in `sed -n "
19050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19052 # Make sure the directory exists.
19053 test -f "$dirpart/$file" && continue
19054 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19055$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19056 X"$file" : 'X\(//\)[^/]' \| \
19057 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19058 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19059$as_echo X"$file" |
19060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19061 s//\1/
19062 q
19063 }
19064 /^X\(\/\/\)[^/].*/{
19065 s//\1/
19066 q
19067 }
19068 /^X\(\/\/\)$/{
19069 s//\1/
19070 q
19071 }
19072 /^X\(\/\).*/{
19073 s//\1/
19074 q
19075 }
19076 s/.*/./; q'`
19077 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19078 # echo "creating $dirpart/$file"
19079 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19080 done
42ecbf5e 19081 done
81ecdfbb 19082}
d7040cdb 19083 ;;
81ecdfbb 19084 "libtool":C)
d7040cdb
SE
19085
19086 # See if we are running on zsh, and set the options which allow our
19087 # commands through without removal of \ escapes.
19088 if test -n "${ZSH_VERSION+set}" ; then
19089 setopt NO_GLOB_SUBST
19090 fi
19091
19092 cfgfile="${ofile}T"
19093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19094 $RM "$cfgfile"
19095
19096 cat <<_LT_EOF >> "$cfgfile"
19097#! $SHELL
19098
19099# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19100# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19102# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19103#
b214d478 19104# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19105# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19106# Written by Gordon Matzigkeit, 1996
d7040cdb 19107#
b214d478 19108# This file is part of GNU Libtool.
d7040cdb 19109#
b214d478
SE
19110# GNU Libtool is free software; you can redistribute it and/or
19111# modify it under the terms of the GNU General Public License as
19112# published by the Free Software Foundation; either version 2 of
19113# the License, or (at your option) any later version.
d7040cdb 19114#
b214d478
SE
19115# As a special exception to the GNU General Public License,
19116# if you distribute this file as part of a program or library that
19117# is built using GNU Libtool, you may include this file under the
19118# same distribution terms that you use for the rest of that program.
d7040cdb 19119#
b214d478
SE
19120# GNU Libtool is distributed in the hope that it will be useful,
19121# but WITHOUT ANY WARRANTY; without even the implied warranty of
19122# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19123# GNU General Public License for more details.
d7040cdb 19124#
b214d478
SE
19125# You should have received a copy of the GNU General Public License
19126# along with GNU Libtool; see the file COPYING. If not, a copy
19127# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19128# obtained by writing to the Free Software Foundation, Inc.,
19129# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19130
19131
19132# The names of the tagged configurations supported by this script.
3cb62297 19133available_tags="CXX "
d7040cdb
SE
19134
19135# ### BEGIN LIBTOOL CONFIG
19136
19137# Which release of libtool.m4 was used?
19138macro_version=$macro_version
19139macro_revision=$macro_revision
19140
19141# Whether or not to build shared libraries.
19142build_libtool_libs=$enable_shared
19143
19144# Whether or not to build static libraries.
19145build_old_libs=$enable_static
19146
19147# What type of objects to build.
19148pic_mode=$pic_mode
19149
19150# Whether or not to optimize for fast installation.
19151fast_install=$enable_fast_install
19152
3725885a
RW
19153# Shell to use when invoking shell scripts.
19154SHELL=$lt_SHELL
19155
19156# An echo program that protects backslashes.
19157ECHO=$lt_ECHO
19158
d7040cdb
SE
19159# The host system.
19160host_alias=$host_alias
19161host=$host
19162host_os=$host_os
19163
19164# The build system.
19165build_alias=$build_alias
19166build=$build
19167build_os=$build_os
19168
19169# A sed program that does not truncate output.
19170SED=$lt_SED
19171
19172# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19173Xsed="\$SED -e 1s/^X//"
19174
19175# A grep program that handles long lines.
19176GREP=$lt_GREP
19177
19178# An ERE matcher.
19179EGREP=$lt_EGREP
19180
19181# A literal string matcher.
19182FGREP=$lt_FGREP
19183
19184# A BSD- or MS-compatible name lister.
19185NM=$lt_NM
19186
19187# Whether we need soft or hard links.
19188LN_S=$lt_LN_S
19189
19190# What is the maximum length of a command?
19191max_cmd_len=$max_cmd_len
19192
19193# Object file suffix (normally "o").
19194objext=$ac_objext
19195
19196# Executable file suffix (normally "").
19197exeext=$exeext
19198
19199# whether the shell understands "unset".
19200lt_unset=$lt_unset
19201
19202# turn spaces into newlines.
19203SP2NL=$lt_lt_SP2NL
19204
19205# turn newlines into spaces.
19206NL2SP=$lt_lt_NL2SP
19207
b214d478
SE
19208# An object symbol dumper.
19209OBJDUMP=$lt_OBJDUMP
19210
d7040cdb
SE
19211# Method to check whether dependent libraries are shared objects.
19212deplibs_check_method=$lt_deplibs_check_method
19213
19214# Command to use when deplibs_check_method == "file_magic".
19215file_magic_cmd=$lt_file_magic_cmd
19216
19217# The archiver.
19218AR=$lt_AR
19219AR_FLAGS=$lt_AR_FLAGS
19220
19221# A symbol stripping program.
19222STRIP=$lt_STRIP
19223
19224# Commands used to install an old-style archive.
19225RANLIB=$lt_RANLIB
19226old_postinstall_cmds=$lt_old_postinstall_cmds
19227old_postuninstall_cmds=$lt_old_postuninstall_cmds
19228
3725885a
RW
19229# Whether to use a lock for old archive extraction.
19230lock_old_archive_extraction=$lock_old_archive_extraction
19231
d7040cdb
SE
19232# A C compiler.
19233LTCC=$lt_CC
19234
19235# LTCC compiler flags.
19236LTCFLAGS=$lt_CFLAGS
19237
19238# Take the output of nm and produce a listing of raw symbols and C names.
19239global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19240
19241# Transform the output of nm in a proper C declaration.
19242global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19243
19244# Transform the output of nm in a C name address pair.
19245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19246
b214d478
SE
19247# Transform the output of nm in a C name address pair when lib prefix is needed.
19248global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19249
d7040cdb
SE
19250# The name of the directory that contains temporary libtool files.
19251objdir=$objdir
19252
d7040cdb
SE
19253# Used to examine libraries when file_magic_cmd begins with "file".
19254MAGIC_CMD=$MAGIC_CMD
19255
19256# Must we lock files when doing compilation?
19257need_locks=$lt_need_locks
19258
b214d478
SE
19259# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19260DSYMUTIL=$lt_DSYMUTIL
19261
19262# Tool to change global to local symbols on Mac OS X.
19263NMEDIT=$lt_NMEDIT
19264
19265# Tool to manipulate fat objects and archives on Mac OS X.
19266LIPO=$lt_LIPO
19267
19268# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19269OTOOL=$lt_OTOOL
19270
19271# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19272OTOOL64=$lt_OTOOL64
19273
d7040cdb
SE
19274# Old archive suffix (normally "a").
19275libext=$libext
19276
19277# Shared library suffix (normally ".so").
19278shrext_cmds=$lt_shrext_cmds
19279
19280# The commands to extract the exported symbol list from a shared archive.
19281extract_expsyms_cmds=$lt_extract_expsyms_cmds
19282
19283# Variables whose values should be saved in libtool wrapper scripts and
19284# restored at link time.
19285variables_saved_for_relink=$lt_variables_saved_for_relink
19286
19287# Do we need the "lib" prefix for modules?
19288need_lib_prefix=$need_lib_prefix
19289
19290# Do we need a version for libraries?
19291need_version=$need_version
19292
19293# Library versioning type.
19294version_type=$version_type
19295
19296# Shared library runtime path variable.
19297runpath_var=$runpath_var
19298
19299# Shared library path variable.
19300shlibpath_var=$shlibpath_var
19301
19302# Is shlibpath searched before the hard-coded library search path?
19303shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19304
19305# Format of library name prefix.
19306libname_spec=$lt_libname_spec
19307
19308# List of archive names. First name is the real one, the rest are links.
19309# The last name is the one that the linker finds with -lNAME
19310library_names_spec=$lt_library_names_spec
19311
19312# The coded name of the library, if different from the real name.
19313soname_spec=$lt_soname_spec
19314
3725885a
RW
19315# Permission mode override for installation of shared libraries.
19316install_override_mode=$lt_install_override_mode
19317
d7040cdb
SE
19318# Command to use after installation of a shared archive.
19319postinstall_cmds=$lt_postinstall_cmds
19320
19321# Command to use after uninstallation of a shared archive.
19322postuninstall_cmds=$lt_postuninstall_cmds
19323
19324# Commands used to finish a libtool library installation in a directory.
19325finish_cmds=$lt_finish_cmds
19326
19327# As "finish_cmds", except a single script fragment to be evaled but
19328# not shown.
19329finish_eval=$lt_finish_eval
19330
19331# Whether we should hardcode library paths into libraries.
19332hardcode_into_libs=$hardcode_into_libs
19333
19334# Compile-time system search path for libraries.
19335sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336
19337# Run-time system search path for libraries.
19338sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339
19340# Whether dlopen is supported.
19341dlopen_support=$enable_dlopen
19342
19343# Whether dlopen of programs is supported.
19344dlopen_self=$enable_dlopen_self
19345
19346# Whether dlopen of statically linked programs is supported.
19347dlopen_self_static=$enable_dlopen_self_static
19348
19349# Commands to strip libraries.
19350old_striplib=$lt_old_striplib
19351striplib=$lt_striplib
19352
19353
19354# The linker used to build libraries.
19355LD=$lt_LD
19356
3725885a
RW
19357# How to create reloadable object files.
19358reload_flag=$lt_reload_flag
19359reload_cmds=$lt_reload_cmds
19360
d7040cdb
SE
19361# Commands used to build an old-style archive.
19362old_archive_cmds=$lt_old_archive_cmds
19363
19364# A language specific compiler.
19365CC=$lt_compiler
19366
19367# Is the compiler the GNU compiler?
19368with_gcc=$GCC
19369
19370# Compiler flag to turn off builtin functions.
19371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19372
19373# How to pass a linker flag through the compiler.
19374wl=$lt_lt_prog_compiler_wl
19375
19376# Additional compiler flags for building library objects.
19377pic_flag=$lt_lt_prog_compiler_pic
19378
19379# Compiler flag to prevent dynamic linking.
19380link_static_flag=$lt_lt_prog_compiler_static
19381
19382# Does compiler simultaneously support -c and -o options?
19383compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19384
19385# Whether or not to add -lc for building shared libraries.
19386build_libtool_need_lc=$archive_cmds_need_lc
19387
19388# Whether or not to disallow shared libs when runtime libs are static.
19389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19390
19391# Compiler flag to allow reflexive dlopens.
19392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19393
19394# Compiler flag to generate shared objects directly from archives.
19395whole_archive_flag_spec=$lt_whole_archive_flag_spec
19396
19397# Whether the compiler copes with passing no objects directly.
19398compiler_needs_object=$lt_compiler_needs_object
19399
19400# Create an old-style archive from a shared archive.
19401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19402
19403# Create a temporary old-style archive to link instead of a shared archive.
19404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19405
19406# Commands used to build a shared archive.
19407archive_cmds=$lt_archive_cmds
19408archive_expsym_cmds=$lt_archive_expsym_cmds
19409
19410# Commands used to build a loadable module if different from building
19411# a shared archive.
19412module_cmds=$lt_module_cmds
19413module_expsym_cmds=$lt_module_expsym_cmds
19414
19415# Whether we are building with GNU ld or not.
19416with_gnu_ld=$lt_with_gnu_ld
19417
19418# Flag that allows shared libraries with undefined symbols to be built.
19419allow_undefined_flag=$lt_allow_undefined_flag
19420
19421# Flag that enforces no undefined symbols.
19422no_undefined_flag=$lt_no_undefined_flag
19423
19424# Flag to hardcode \$libdir into a binary during linking.
19425# This must work even if \$libdir does not exist
19426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19427
19428# If ld is used when linking, flag to hardcode \$libdir into a binary
19429# during linking. This must work even if \$libdir does not exist.
19430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19431
19432# Whether we need a single "-rpath" flag with a separated argument.
19433hardcode_libdir_separator=$lt_hardcode_libdir_separator
19434
19435# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19436# DIR into the resulting binary.
19437hardcode_direct=$hardcode_direct
19438
19439# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19440# DIR into the resulting binary and the resulting library dependency is
19441# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19442# library is relocated.
19443hardcode_direct_absolute=$hardcode_direct_absolute
19444
19445# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19446# into the resulting binary.
19447hardcode_minus_L=$hardcode_minus_L
19448
19449# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19450# into the resulting binary.
19451hardcode_shlibpath_var=$hardcode_shlibpath_var
19452
19453# Set to "yes" if building a shared library automatically hardcodes DIR
19454# into the library and all subsequent libraries and executables linked
19455# against it.
19456hardcode_automatic=$hardcode_automatic
19457
19458# Set to yes if linker adds runtime paths of dependent libraries
19459# to runtime path list.
19460inherit_rpath=$inherit_rpath
19461
19462# Whether libtool must link a program against all its dependency libraries.
19463link_all_deplibs=$link_all_deplibs
19464
19465# Fix the shell variable \$srcfile for the compiler.
19466fix_srcfile_path=$lt_fix_srcfile_path
19467
19468# Set to "yes" if exported symbols are required.
19469always_export_symbols=$always_export_symbols
19470
19471# The commands to list exported symbols.
19472export_symbols_cmds=$lt_export_symbols_cmds
19473
19474# Symbols that should not be listed in the preloaded symbols.
19475exclude_expsyms=$lt_exclude_expsyms
19476
19477# Symbols that must always be exported.
19478include_expsyms=$lt_include_expsyms
19479
19480# Commands necessary for linking programs (against libraries) with templates.
19481prelink_cmds=$lt_prelink_cmds
19482
19483# Specify filename containing input files.
19484file_list_spec=$lt_file_list_spec
19485
19486# How to hardcode a shared library path into an executable.
19487hardcode_action=$hardcode_action
19488
3cb62297
L
19489# The directories searched by this compiler when creating a shared library.
19490compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19491
19492# Dependencies to place before and after the objects being linked to
19493# create a shared library.
19494predep_objects=$lt_predep_objects
19495postdep_objects=$lt_postdep_objects
19496predeps=$lt_predeps
19497postdeps=$lt_postdeps
19498
19499# The library search path used internally by the compiler when linking
19500# a shared library.
19501compiler_lib_search_path=$lt_compiler_lib_search_path
19502
d7040cdb
SE
19503# ### END LIBTOOL CONFIG
19504
19505_LT_EOF
19506
19507 case $host_os in
19508 aix3*)
19509 cat <<\_LT_EOF >> "$cfgfile"
19510# AIX sometimes has problems with the GCC collect2 program. For some
19511# reason, if we set the COLLECT_NAMES environment variable, the problems
19512# vanish in a puff of smoke.
19513if test "X${COLLECT_NAMES+set}" != Xset; then
19514 COLLECT_NAMES=
19515 export COLLECT_NAMES
19516fi
19517_LT_EOF
19518 ;;
19519 esac
19520
19521
19522ltmain="$ac_aux_dir/ltmain.sh"
19523
19524
19525 # We use sed instead of cat because bash on DJGPP gets confused if
19526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19527 # text mode, it properly converts lines to CR/LF. This bash problem
19528 # is reportedly fixed, but why not run on old versions too?
19529 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19530 || (rm -f "$cfgfile"; exit 1)
19531
19532 case $xsi_shell in
19533 yes)
19534 cat << \_LT_EOF >> "$cfgfile"
b214d478 19535
d7040cdb
SE
19536# func_dirname file append nondir_replacement
19537# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19538# otherwise set result to NONDIR_REPLACEMENT.
19539func_dirname ()
19540{
19541 case ${1} in
19542 */*) func_dirname_result="${1%/*}${2}" ;;
19543 * ) func_dirname_result="${3}" ;;
19544 esac
19545}
19546
19547# func_basename file
19548func_basename ()
19549{
19550 func_basename_result="${1##*/}"
19551}
19552
b214d478
SE
19553# func_dirname_and_basename file append nondir_replacement
19554# perform func_basename and func_dirname in a single function
19555# call:
19556# dirname: Compute the dirname of FILE. If nonempty,
19557# add APPEND to the result, otherwise set result
19558# to NONDIR_REPLACEMENT.
19559# value returned in "$func_dirname_result"
19560# basename: Compute filename of FILE.
19561# value retuned in "$func_basename_result"
19562# Implementation must be kept synchronized with func_dirname
19563# and func_basename. For efficiency, we do not delegate to
19564# those functions but instead duplicate the functionality here.
19565func_dirname_and_basename ()
19566{
19567 case ${1} in
19568 */*) func_dirname_result="${1%/*}${2}" ;;
19569 * ) func_dirname_result="${3}" ;;
19570 esac
19571 func_basename_result="${1##*/}"
19572}
19573
d7040cdb
SE
19574# func_stripname prefix suffix name
19575# strip PREFIX and SUFFIX off of NAME.
19576# PREFIX and SUFFIX must not contain globbing or regex special
19577# characters, hashes, percent signs, but SUFFIX may contain a leading
19578# dot (in which case that matches only a dot).
19579func_stripname ()
19580{
19581 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19582 # positional parameters, so assign one to ordinary parameter first.
19583 func_stripname_result=${3}
19584 func_stripname_result=${func_stripname_result#"${1}"}
19585 func_stripname_result=${func_stripname_result%"${2}"}
19586}
19587
19588# func_opt_split
19589func_opt_split ()
19590{
19591 func_opt_split_opt=${1%%=*}
19592 func_opt_split_arg=${1#*=}
19593}
19594
19595# func_lo2o object
19596func_lo2o ()
19597{
19598 case ${1} in
19599 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19600 *) func_lo2o_result=${1} ;;
19601 esac
19602}
b214d478
SE
19603
19604# func_xform libobj-or-source
19605func_xform ()
19606{
19607 func_xform_result=${1%.*}.lo
19608}
19609
19610# func_arith arithmetic-term...
19611func_arith ()
19612{
19613 func_arith_result=$(( $* ))
19614}
19615
19616# func_len string
19617# STRING may not start with a hyphen.
19618func_len ()
19619{
19620 func_len_result=${#1}
19621}
19622
d7040cdb
SE
19623_LT_EOF
19624 ;;
19625 *) # Bourne compatible functions.
19626 cat << \_LT_EOF >> "$cfgfile"
b214d478 19627
d7040cdb
SE
19628# func_dirname file append nondir_replacement
19629# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19630# otherwise set result to NONDIR_REPLACEMENT.
19631func_dirname ()
19632{
19633 # Extract subdirectory from the argument.
3725885a 19634 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19635 if test "X$func_dirname_result" = "X${1}"; then
19636 func_dirname_result="${3}"
19637 else
19638 func_dirname_result="$func_dirname_result${2}"
19639 fi
19640}
19641
19642# func_basename file
19643func_basename ()
19644{
3725885a 19645 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19646}
19647
b214d478 19648
d7040cdb
SE
19649# func_stripname prefix suffix name
19650# strip PREFIX and SUFFIX off of NAME.
19651# PREFIX and SUFFIX must not contain globbing or regex special
19652# characters, hashes, percent signs, but SUFFIX may contain a leading
19653# dot (in which case that matches only a dot).
19654# func_strip_suffix prefix name
19655func_stripname ()
19656{
19657 case ${2} in
3725885a
RW
19658 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19659 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19660 esac
19661}
19662
19663# sed scripts:
19664my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19665my_sed_long_arg='1s/^-[^=]*=//'
19666
19667# func_opt_split
19668func_opt_split ()
19669{
3725885a
RW
19670 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19671 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19672}
19673
19674# func_lo2o object
19675func_lo2o ()
19676{
3725885a 19677 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19678}
b214d478
SE
19679
19680# func_xform libobj-or-source
19681func_xform ()
19682{
3725885a 19683 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19684}
19685
19686# func_arith arithmetic-term...
19687func_arith ()
19688{
19689 func_arith_result=`expr "$@"`
19690}
19691
19692# func_len string
19693# STRING may not start with a hyphen.
19694func_len ()
19695{
19696 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19697}
19698
d7040cdb
SE
19699_LT_EOF
19700esac
19701
19702case $lt_shell_append in
19703 yes)
19704 cat << \_LT_EOF >> "$cfgfile"
19705
19706# func_append var value
19707# Append VALUE to the end of shell variable VAR.
19708func_append ()
19709{
19710 eval "$1+=\$2"
19711}
19712_LT_EOF
19713 ;;
19714 *)
19715 cat << \_LT_EOF >> "$cfgfile"
19716
19717# func_append var value
19718# Append VALUE to the end of shell variable VAR.
19719func_append ()
19720{
19721 eval "$1=\$$1\$2"
19722}
b214d478 19723
d7040cdb
SE
19724_LT_EOF
19725 ;;
19726 esac
19727
19728
19729 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19730 || (rm -f "$cfgfile"; exit 1)
19731
19732 mv -f "$cfgfile" "$ofile" ||
19733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19734 chmod +x "$ofile"
19735
3cb62297
L
19736
19737 cat <<_LT_EOF >> "$ofile"
19738
19739# ### BEGIN LIBTOOL TAG CONFIG: CXX
19740
19741# The linker used to build libraries.
19742LD=$lt_LD_CXX
19743
19744# How to create reloadable object files.
19745reload_flag=$lt_reload_flag_CXX
19746reload_cmds=$lt_reload_cmds_CXX
19747
19748# Commands used to build an old-style archive.
19749old_archive_cmds=$lt_old_archive_cmds_CXX
19750
19751# A language specific compiler.
19752CC=$lt_compiler_CXX
19753
19754# Is the compiler the GNU compiler?
19755with_gcc=$GCC_CXX
19756
19757# Compiler flag to turn off builtin functions.
19758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19759
19760# How to pass a linker flag through the compiler.
19761wl=$lt_lt_prog_compiler_wl_CXX
19762
19763# Additional compiler flags for building library objects.
19764pic_flag=$lt_lt_prog_compiler_pic_CXX
19765
19766# Compiler flag to prevent dynamic linking.
19767link_static_flag=$lt_lt_prog_compiler_static_CXX
19768
19769# Does compiler simultaneously support -c and -o options?
19770compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19771
19772# Whether or not to add -lc for building shared libraries.
19773build_libtool_need_lc=$archive_cmds_need_lc_CXX
19774
19775# Whether or not to disallow shared libs when runtime libs are static.
19776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19777
19778# Compiler flag to allow reflexive dlopens.
19779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19780
19781# Compiler flag to generate shared objects directly from archives.
19782whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19783
19784# Whether the compiler copes with passing no objects directly.
19785compiler_needs_object=$lt_compiler_needs_object_CXX
19786
19787# Create an old-style archive from a shared archive.
19788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19789
19790# Create a temporary old-style archive to link instead of a shared archive.
19791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19792
19793# Commands used to build a shared archive.
19794archive_cmds=$lt_archive_cmds_CXX
19795archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19796
19797# Commands used to build a loadable module if different from building
19798# a shared archive.
19799module_cmds=$lt_module_cmds_CXX
19800module_expsym_cmds=$lt_module_expsym_cmds_CXX
19801
19802# Whether we are building with GNU ld or not.
19803with_gnu_ld=$lt_with_gnu_ld_CXX
19804
19805# Flag that allows shared libraries with undefined symbols to be built.
19806allow_undefined_flag=$lt_allow_undefined_flag_CXX
19807
19808# Flag that enforces no undefined symbols.
19809no_undefined_flag=$lt_no_undefined_flag_CXX
19810
19811# Flag to hardcode \$libdir into a binary during linking.
19812# This must work even if \$libdir does not exist
19813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19814
19815# If ld is used when linking, flag to hardcode \$libdir into a binary
19816# during linking. This must work even if \$libdir does not exist.
19817hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19818
19819# Whether we need a single "-rpath" flag with a separated argument.
19820hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19821
19822# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19823# DIR into the resulting binary.
19824hardcode_direct=$hardcode_direct_CXX
19825
19826# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19827# DIR into the resulting binary and the resulting library dependency is
19828# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19829# library is relocated.
19830hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19831
19832# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19833# into the resulting binary.
19834hardcode_minus_L=$hardcode_minus_L_CXX
19835
19836# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19837# into the resulting binary.
19838hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19839
19840# Set to "yes" if building a shared library automatically hardcodes DIR
19841# into the library and all subsequent libraries and executables linked
19842# against it.
19843hardcode_automatic=$hardcode_automatic_CXX
19844
19845# Set to yes if linker adds runtime paths of dependent libraries
19846# to runtime path list.
19847inherit_rpath=$inherit_rpath_CXX
19848
19849# Whether libtool must link a program against all its dependency libraries.
19850link_all_deplibs=$link_all_deplibs_CXX
19851
19852# Fix the shell variable \$srcfile for the compiler.
19853fix_srcfile_path=$lt_fix_srcfile_path_CXX
19854
19855# Set to "yes" if exported symbols are required.
19856always_export_symbols=$always_export_symbols_CXX
19857
19858# The commands to list exported symbols.
19859export_symbols_cmds=$lt_export_symbols_cmds_CXX
19860
19861# Symbols that should not be listed in the preloaded symbols.
19862exclude_expsyms=$lt_exclude_expsyms_CXX
19863
19864# Symbols that must always be exported.
19865include_expsyms=$lt_include_expsyms_CXX
19866
19867# Commands necessary for linking programs (against libraries) with templates.
19868prelink_cmds=$lt_prelink_cmds_CXX
19869
19870# Specify filename containing input files.
19871file_list_spec=$lt_file_list_spec_CXX
19872
19873# How to hardcode a shared library path into an executable.
19874hardcode_action=$hardcode_action_CXX
19875
19876# The directories searched by this compiler when creating a shared library.
19877compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19878
19879# Dependencies to place before and after the objects being linked to
19880# create a shared library.
19881predep_objects=$lt_predep_objects_CXX
19882postdep_objects=$lt_postdep_objects_CXX
19883predeps=$lt_predeps_CXX
19884postdeps=$lt_postdeps_CXX
19885
19886# The library search path used internally by the compiler when linking
19887# a shared library.
19888compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19889
19890# ### END LIBTOOL TAG CONFIG: CXX
19891_LT_EOF
19892
42ecbf5e 19893 ;;
81ecdfbb 19894 "default-1":C)
20e95c23
DJ
19895 for ac_file in $CONFIG_FILES; do
19896 # Support "outfile[:infile[:infile...]]"
19897 case "$ac_file" in
19898 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19899 esac
19900 # PO directories have a Makefile.in generated from Makefile.in.in.
19901 case "$ac_file" in */Makefile.in)
19902 # Adjust a relative srcdir.
19903 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19904 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19905 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19906 # In autoconf-2.13 it is called $ac_given_srcdir.
19907 # In autoconf-2.50 it is called $srcdir.
19908 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19909 case "$ac_given_srcdir" in
19910 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19911 /*) top_srcdir="$ac_given_srcdir" ;;
19912 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19913 esac
19914 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19915 rm -f "$ac_dir/POTFILES"
19916 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19917 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19918 POMAKEFILEDEPS="POTFILES.in"
19919 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19920 # on $ac_dir but don't depend on user-specified configuration
19921 # parameters.
19922 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19923 # The LINGUAS file contains the set of available languages.
19924 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 19925 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
19926 fi
19927 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19928 # Hide the ALL_LINGUAS assigment from automake.
19929 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19930 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19931 else
37a42ee9 19932 # The set of available languages was given in configure.ac.
20e95c23
DJ
19933 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19934 fi
19935 case "$ac_given_srcdir" in
19936 .) srcdirpre= ;;
19937 *) srcdirpre='$(srcdir)/' ;;
19938 esac
19939 POFILES=
19940 GMOFILES=
19941 UPDATEPOFILES=
19942 DUMMYPOFILES=
19943 for lang in $ALL_LINGUAS; do
19944 POFILES="$POFILES $srcdirpre$lang.po"
19945 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19946 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19947 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19948 done
19949 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19950 # environment variable.
19951 INST_LINGUAS=
19952 if test -n "$ALL_LINGUAS"; then
19953 for presentlang in $ALL_LINGUAS; do
19954 useit=no
19955 if test "%UNSET%" != "$LINGUAS"; then
19956 desiredlanguages="$LINGUAS"
19957 else
19958 desiredlanguages="$ALL_LINGUAS"
19959 fi
19960 for desiredlang in $desiredlanguages; do
19961 # Use the presentlang catalog if desiredlang is
19962 # a. equal to presentlang, or
19963 # b. a variant of presentlang (because in this case,
19964 # presentlang can be used as a fallback for messages
19965 # which are not translated in the desiredlang catalog).
19966 case "$desiredlang" in
19967 "$presentlang"*) useit=yes;;
19968 esac
19969 done
19970 if test $useit = yes; then
19971 INST_LINGUAS="$INST_LINGUAS $presentlang"
19972 fi
19973 done
19974 fi
19975 CATALOGS=
19976 if test -n "$INST_LINGUAS"; then
19977 for lang in $INST_LINGUAS; do
19978 CATALOGS="$CATALOGS $lang.gmo"
19979 done
19980 fi
19981 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19982 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"
19983 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19984 if test -f "$f"; then
19985 case "$f" in
19986 *.orig | *.bak | *~) ;;
19987 *) cat "$f" >> "$ac_dir/Makefile" ;;
19988 esac
19989 fi
19990 done
19991 fi
19992 ;;
19993 esac
19994 done ;;
81ecdfbb 19995
42ecbf5e 19996 esac
81ecdfbb 19997done # for ac_tag
42ecbf5e 19998
42ecbf5e 19999
81ecdfbb 20000as_fn_exit 0
42ecbf5e 20001_ACEOF
42ecbf5e
DJ
20002ac_clean_files=$ac_clean_files_save
20003
81ecdfbb
RW
20004test $ac_write_fail = 0 ||
20005 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20006
42ecbf5e
DJ
20007
20008# configure is writing to config.log, and then calls config.status.
20009# config.status does its own redirection, appending to config.log.
20010# Unfortunately, on DOS this fails, as config.log is still kept open
20011# by configure, so config.status won't be able to write to it; its
20012# output is simply discarded. So we exec the FD to /dev/null,
20013# effectively closing config.log, so it can be properly (re)opened and
20014# appended to by config.status. When coming back to configure, we
20015# need to make the FD available again.
20016if test "$no_create" != yes; then
20017 ac_cs_success=:
20018 ac_config_status_args=
20019 test "$silent" = yes &&
20020 ac_config_status_args="$ac_config_status_args --quiet"
20021 exec 5>/dev/null
20022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20023 exec 5>>config.log
20024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20025 # would make configure fail if this is the last instruction.
81ecdfbb
RW
20026 $ac_cs_success || as_fn_exit $?
20027fi
20028if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20030$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20031fi
252b5132 20032