Bump version number to 2.30.52
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
55e99962 3# Generated by GNU Autoconf 2.64 for ld 2.30.52.
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'
55e99962
L
559PACKAGE_VERSION='2.30.52'
560PACKAGE_STRING='ld 2.30.52'
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
6734f10a 791enable_new_dtags
647e4d46 792enable_relro
f6aec96d 793enable_separate_code
2760f24c 794enable_default_hash_style
81ecdfbb
RW
795enable_werror
796enable_build_warnings
81ecdfbb 797enable_nls
02ecc8e9 798enable_initfini_array
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
3cb62297
L
808CXX
809CXXFLAGS
810CCC
b879806f 811CPP
3cb62297 812CXXCPP
81ecdfbb
RW
813YACC
814YFLAGS'
815
252b5132
RH
816
817# Initialize some variables set by options.
42ecbf5e
DJ
818ac_init_help=
819ac_init_version=false
81ecdfbb
RW
820ac_unrecognized_opts=
821ac_unrecognized_sep=
252b5132
RH
822# The variables have the same names as the options, with
823# dashes changed to underlines.
42ecbf5e 824cache_file=/dev/null
252b5132 825exec_prefix=NONE
252b5132 826no_create=
252b5132
RH
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
252b5132
RH
835verbose=
836x_includes=NONE
837x_libraries=NONE
42ecbf5e
DJ
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 844# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
252b5132
RH
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
252b5132
RH
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
2e98a7bd 855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
252b5132 864
252b5132 865ac_prev=
81ecdfbb 866ac_dashdash=
252b5132
RH
867for ac_option
868do
252b5132
RH
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
81ecdfbb 871 eval $ac_prev=\$ac_option
252b5132
RH
872 ac_prev=
873 continue
874 fi
875
81ecdfbb
RW
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
252b5132
RH
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
81ecdfbb
RW
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
252b5132
RH
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 890 bindir=$ac_optarg ;;
252b5132
RH
891
892 -build | --build | --buil | --bui | --bu)
42ecbf5e 893 ac_prev=build_alias ;;
252b5132 894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 895 build_alias=$ac_optarg ;;
252b5132
RH
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
252b5132 906
81ecdfbb 907 -datadir | --datadir | --datadi | --datad)
252b5132 908 ac_prev=datadir ;;
81ecdfbb 909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 910 datadir=$ac_optarg ;;
252b5132 911
81ecdfbb
RW
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
252b5132 919 -disable-* | --disable-*)
81ecdfbb 920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 921 # Reject names that are not valid shell variable names.
81ecdfbb
RW
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
252b5132
RH
944
945 -enable-* | --enable-*)
81ecdfbb 946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 947 # Reject names that are not valid shell variable names.
81ecdfbb
RW
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
252b5132 958 esac
81ecdfbb 959 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
42ecbf5e 968 exec_prefix=$ac_optarg ;;
252b5132
RH
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
42ecbf5e
DJ
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
252b5132
RH
980
981 -host | --host | --hos | --ho)
42ecbf5e 982 ac_prev=host_alias ;;
252b5132 983 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 984 host_alias=$ac_optarg ;;
252b5132 985
81ecdfbb
RW
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
252b5132
RH
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 997 includedir=$ac_optarg ;;
252b5132
RH
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1002 infodir=$ac_optarg ;;
252b5132
RH
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1007 libdir=$ac_optarg ;;
252b5132
RH
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1014 libexecdir=$ac_optarg ;;
252b5132 1015
81ecdfbb
RW
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
252b5132 1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1022 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1026 localstatedir=$ac_optarg ;;
252b5132
RH
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1031 mandir=$ac_optarg ;;
252b5132
RH
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1038 | --no-cr | --no-c | -n)
252b5132
RH
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1052 oldincludedir=$ac_optarg ;;
252b5132
RH
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1057 prefix=$ac_optarg ;;
252b5132
RH
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1064 program_prefix=$ac_optarg ;;
252b5132
RH
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1071 program_suffix=$ac_optarg ;;
252b5132
RH
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1088 program_transform_name=$ac_optarg ;;
252b5132 1089
81ecdfbb
RW
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
252b5132
RH
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
42ecbf5e 1108 sbindir=$ac_optarg ;;
252b5132
RH
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
42ecbf5e 1119 sharedstatedir=$ac_optarg ;;
252b5132
RH
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
42ecbf5e 1124 site=$ac_optarg ;;
85fbca6a 1125
252b5132
RH
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1129 srcdir=$ac_optarg ;;
252b5132
RH
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1136 sysconfdir=$ac_optarg ;;
252b5132
RH
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1139 ac_prev=target_alias ;;
252b5132 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1141 target_alias=$ac_optarg ;;
252b5132
RH
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
42ecbf5e
DJ
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
252b5132
RH
1148
1149 -with-* | --with-*)
81ecdfbb 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1151 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
252b5132 1162 esac
81ecdfbb 1163 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1164
1165 -without-* | --without-*)
81ecdfbb 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1167 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
252b5132
RH
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1190 x_includes=$ac_optarg ;;
252b5132
RH
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1197 x_libraries=$ac_optarg ;;
252b5132 1198
81ecdfbb
RW
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information."
252b5132
RH
1201 ;;
1202
42ecbf5e
DJ
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1211 export $ac_envvar ;;
1212
252b5132 1213 *)
42ecbf5e 1214 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1219 ;;
1220
1221 esac
1222done
1223
1224if test -n "$ac_prev"; then
42ecbf5e 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1226 as_fn_error "missing argument to $ac_option"
252b5132 1227fi
252b5132 1228
81ecdfbb
RW
1229if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1234 esac
81ecdfbb 1235fi
252b5132 1236
81ecdfbb
RW
1237# Check all directory arguments for consistency.
1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
252b5132 1242do
81ecdfbb
RW
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
42ecbf5e 1251 case $ac_val in
81ecdfbb
RW
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1254 esac
81ecdfbb 1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1256done
1257
42ecbf5e
DJ
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
81ecdfbb 1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274fi
e5a52504 1275
42ecbf5e
DJ
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
252b5132 1280
252b5132 1281
81ecdfbb
RW
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1288
1289
252b5132
RH
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
81ecdfbb
RW
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
252b5132 1317 srcdir=$ac_confdir
81ecdfbb 1318 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1319 srcdir=..
1320 fi
1321else
1322 ac_srcdir_defaulted=no
1323fi
81ecdfbb
RW
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
252b5132 1348
42ecbf5e
DJ
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
55e99962 1356\`configure' configures ld 2.30.52 to adapt to many kinds of systems.
252b5132 1357
42ecbf5e 1358Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1359
42ecbf5e
DJ
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1362
42ecbf5e 1363Defaults for the options are specified in brackets.
ac48eca1 1364
42ecbf5e
DJ
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
42ecbf5e
DJ
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1378 [$ac_default_prefix]
42ecbf5e 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1380 [PREFIX]
ac48eca1 1381
42ecbf5e
DJ
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
ac48eca1 1386
42ecbf5e 1387For better control, use the options below.
ac48eca1 1388
42ecbf5e 1389Fine tuning of the installation directories:
81ecdfbb
RW
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1409_ACEOF
ac48eca1 1410
42ecbf5e 1411 cat <<\_ACEOF
252b5132 1412
42ecbf5e
DJ
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1417
42ecbf5e
DJ
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422_ACEOF
252b5132 1423fi
252b5132 1424
42ecbf5e 1425if test -n "$ac_init_help"; then
2e98a7bd 1426 case $ac_init_help in
55e99962 1427 short | recursive ) echo "Configuration of ld 2.30.52:";;
2e98a7bd 1428 esac
42ecbf5e 1429 cat <<\_ACEOF
e5a52504 1430
42ecbf5e 1431Optional Features:
81ecdfbb 1432 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
b879806f
AM
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-plugins Enable support for plugins
1445 --disable-largefile omit support for large files
ce2cded5
L
1446 --enable-targets alternative target configurations
1447 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1448 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1449 --enable-got=<type> GOT handling scheme (target, single, negative,
1450 multigot)
4894d80b
L
1451 --enable-compressed-debug-sections={all,ld,none}
1452 compress debug sections by default]
6734f10a 1453 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1454 --enable-relro enable -z relro in ELF linker by default
f6aec96d 1455 --enable-separate-code enable -z separate-code in ELF linker by default
2760f24c
RG
1456 --enable-default-hash-style={sysv,gnu,both}
1457 use this default hash style
ce2cded5
L
1458 --enable-werror treat compile warnings as errors
1459 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1460 --disable-nls do not use Native Language Support
26e3a0c9 1461 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1469 --with-lib-path=dir1:dir2... set default LIB_PATH
1470 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1471
1472Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
81ecdfbb
RW
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
3cb62297
L
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
b879806f 1482 CPP C preprocessor
3cb62297 1483 CXXCPP C++ preprocessor
81ecdfbb
RW
1484 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1485 the first program found out of: `bison -y', `byacc', `yacc'.
1486 YFLAGS The list of arguments that will be passed by default to $YACC.
1487 This script will default YFLAGS to the empty string to avoid a
1488 default value of `-d' given by some make applications.
42ecbf5e
DJ
1489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
81ecdfbb 1493Report bugs to the package provider.
42ecbf5e 1494_ACEOF
81ecdfbb 1495ac_status=$?
42ecbf5e
DJ
1496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
42ecbf5e 1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
42ecbf5e
DJ
1504 ac_builddir=.
1505
81ecdfbb
RW
1506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1521
1522case $srcdir in
81ecdfbb 1523 .) # We are building in place.
42ecbf5e 1524 ac_srcdir=.
81ecdfbb
RW
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1528 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1535esac
81ecdfbb
RW
1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1546 else
81ecdfbb
RW
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1550 done
a2d91340
AC
1551fi
1552
81ecdfbb 1553test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1554if $ac_init_version; then
1555 cat <<\_ACEOF
55e99962 1556ld configure 2.30.52
81ecdfbb 1557generated by GNU Autoconf 2.64
a2d91340 1558
81ecdfbb 1559Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
81ecdfbb 1563 exit
42ecbf5e 1564fi
a2d91340 1565
81ecdfbb
RW
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
a2d91340 1569
81ecdfbb
RW
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1600
81ecdfbb
RW
1601 ac_retval=1
1602fi
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604 return $ac_retval
1605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_try_link LINENO
1609# -----------------------
1610# Try to link conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_link ()
42ecbf5e 1612{
81ecdfbb
RW
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1641
81ecdfbb
RW
1642 ac_retval=1
1643fi
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
42ecbf5e 1651
81ecdfbb 1652} # ac_fn_c_try_link
42ecbf5e 1653
b879806f
AM
1654# ac_fn_cxx_try_compile LINENO
1655# ----------------------------
1656# Try to compile conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_cxx_try_compile ()
81ecdfbb
RW
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1660 rm -f conftest.$ac_objext
1661 if { { ac_try="$ac_compile"
81ecdfbb
RW
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
b879806f 1668 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1676 test $ac_status = 0; } && {
1677 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1678 test ! -s conftest.err
b879806f 1679 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
b879806f 1685 ac_retval=1
81ecdfbb
RW
1686fi
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 return $ac_retval
1689
b879806f 1690} # ac_fn_cxx_try_compile
81ecdfbb 1691
b879806f
AM
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
3cb62297
L
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
b879806f 1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1715 test ! -s conftest.err
b879806f 1716 }; then :
3cb62297
L
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
b879806f 1722 ac_retval=1
3cb62297
L
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1726
b879806f 1727} # ac_fn_c_try_cpp
3cb62297 1728
81ecdfbb
RW
1729# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732# the include files in INCLUDES and setting the cache variable VAR
1733# accordingly.
1734ac_fn_c_check_header_mongrel ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742fi
1743eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745$as_echo "$ac_res" >&6; }
1746else
1747 # Is the header compilable?
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749$as_echo_n "checking $2 usability... " >&6; }
1750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h. */
1752$4
1753#include <$2>
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1757else
1758 ac_header_compiler=no
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762$as_echo "$ac_header_compiler" >&6; }
1763
1764# Is the header present?
1765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766$as_echo_n "checking $2 presence... " >&6; }
1767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1773else
1774 ac_header_preproc=no
1775fi
1776rm -f conftest.err conftest.$ac_ext
1777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778$as_echo "$ac_header_preproc" >&6; }
1779
1780# So? What about this header?
1781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782 yes:no: )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ;;
1788 no:yes:* )
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 ;;
1800esac
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805else
1806 eval "$3=\$ac_header_compiler"
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811fi
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814} # ac_fn_c_check_header_mongrel
1815
1816# ac_fn_c_try_run LINENO
1817# ----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819# that executables *can* be run.
1820ac_fn_c_try_run ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1855
1856} # ac_fn_c_try_run
1857
1858# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859# -------------------------------------------------------
1860# Tests whether HEADER exists and can be compiled using the include files in
1861# INCLUDES, setting the cache variable VAR accordingly.
1862ac_fn_c_check_header_compile ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886
1887} # ac_fn_c_check_header_compile
1888
1889# ac_fn_c_check_func LINENO FUNC VAR
1890# ----------------------------------
1891# Tests whether FUNC exists, setting the cache variable VAR accordingly
1892ac_fn_c_check_func ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h. */
1902/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904#define $2 innocuous_$2
1905
1906/* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below.
1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909 <limits.h> exists even on freestanding compilers. */
1910
1911#ifdef __STDC__
1912# include <limits.h>
1913#else
1914# include <assert.h>
1915#endif
1916
1917#undef $2
1918
1919/* Override any GCC internal prototype to avoid an error.
1920 Use char because int might match the return type of a GCC
1921 builtin and then its argument prototype would still apply. */
1922#ifdef __cplusplus
1923extern "C"
1924#endif
1925char $2 ();
1926/* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929#if defined __stub_$2 || defined __stub___$2
1930choke me
1931#endif
1932
1933int
1934main ()
1935{
1936return $2 ();
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_link "$LINENO"; then :
1942 eval "$3=yes"
1943else
1944 eval "$3=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext \
1947 conftest$ac_exeext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
1954} # ac_fn_c_check_func
1955
3cb62297
L
1956# ac_fn_cxx_try_cpp LINENO
1957# ------------------------
1958# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959ac_fn_cxx_try_cpp ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_cpp conftest.$ac_ext"
1963case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } >/dev/null && {
1978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 }; then :
1981 ac_retval=0
1982else
1983 $as_echo "$as_me: failed program was:" >&5
1984sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=1
1987fi
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 return $ac_retval
1990
1991} # ac_fn_cxx_try_cpp
1992
1993# ac_fn_cxx_try_link LINENO
1994# -------------------------
1995# Try to link conftest.$ac_ext, and return whether this succeeded.
1996ac_fn_cxx_try_link ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2001case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_cxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 $as_test_x conftest$ac_exeext
2021 }; then :
2022 ac_retval=0
2023else
2024 $as_echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028fi
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 return $ac_retval
2036
2037} # ac_fn_cxx_try_link
2038
81ecdfbb
RW
2039# ac_fn_c_check_decl LINENO SYMBOL VAR
2040# ------------------------------------
2041# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2042ac_fn_c_check_decl ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2045 as_decl_name=`echo $2|sed 's/ *(.*//'`
2046 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2048$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2049if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
360cfc9c
AM
2058#ifndef $as_decl_name
2059#ifdef __cplusplus
2060 (void) $as_decl_use;
2061#else
2062 (void) $as_decl_name;
2063#endif
81ecdfbb
RW
2064#endif
2065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$3=yes"
2072else
2073 eval "$3=no"
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
2082} # ac_fn_c_check_decl
2083
2084# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085# --------------------------------------------
2086# Tries to find the compile-time value of EXPR in a program that includes
2087# INCLUDES, setting VAR accordingly. Returns whether the value could be
2088# computed
2089ac_fn_c_compute_int ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100static int test_array [1 - 2 * !(($2) >= 0)];
2101test_array [0] = 0
2102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=0 ac_mid=0
2109 while :; do
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h. */
2112$4
2113int
2114main ()
2115{
2116static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2117test_array [0] = 0
2118
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
2124 ac_hi=$ac_mid; break
2125else
2126 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2127 if test $ac_lo -le $ac_mid; then
2128 ac_lo= ac_hi=
2129 break
2130 fi
2131 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 done
2135else
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h. */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) < 0)];
2143test_array [0] = 0
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=-1 ac_mid=-1
2151 while :; do
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2159test_array [0] = 0
2160
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=$ac_mid; break
2167else
2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169 if test $ac_mid -le $ac_hi; then
2170 ac_lo= ac_hi=
2171 break
2172 fi
2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177else
2178 ac_lo= ac_hi=
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183# Binary search between lo and hi bounds.
2184while test "x$ac_lo" != "x$ac_hi"; do
2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$4
2189int
2190main ()
2191{
2192static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193test_array [0] = 0
2194
2195 ;
2196 return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid
2201else
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205done
2206case $ac_lo in #((
2207?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208'') ac_retval=1 ;;
2209esac
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214static long int longval () { return $2; }
2215static unsigned long int ulongval () { return $2; }
2216#include <stdio.h>
2217#include <stdlib.h>
2218int
2219main ()
2220{
2221
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2226 {
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2231 }
2232 else
2233 {
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
2237 fprintf (f, "%lu", i);
2238 }
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249else
2250 ac_retval=1
2251fi
2252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2254rm -f conftest.val
2255
2256 fi
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 return $ac_retval
2259
2260} # ac_fn_c_compute_int
2261cat >config.log <<_ACEOF
2262This file contains any messages produced by compilers while
2263running configure, to aid debugging if configure makes a mistake.
2264
55e99962 2265It was created by ld $as_me 2.30.52, which was
81ecdfbb
RW
2266generated by GNU Autoconf 2.64. Invocation command line was
2267
2268 $ $0 $@
2269
2270_ACEOF
2271exec 5>>config.log
2272{
2273cat <<_ASUNAME
2274## --------- ##
2275## Platform. ##
2276## --------- ##
2277
2278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283
2284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286
2287/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2288/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2291/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2292/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2293/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2294
2295_ASUNAME
2296
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2302 $as_echo "PATH: $as_dir"
2303 done
2304IFS=$as_save_IFS
252b5132 2305
42ecbf5e 2306} >&5
5d64ca4e 2307
42ecbf5e 2308cat >&5 <<_ACEOF
5d64ca4e 2309
5d64ca4e 2310
42ecbf5e
DJ
2311## ----------- ##
2312## Core tests. ##
2313## ----------- ##
5d64ca4e 2314
42ecbf5e 2315_ACEOF
2469cfa2 2316
42ecbf5e
DJ
2317
2318# Keep a trace of the command line.
2319# Strip out --no-create and --no-recursion so they do not pile up.
2320# Strip out --silent because we don't want to record it for future runs.
2321# Also quote any args containing shell meta-characters.
2322# Make two passes to allow for proper duplicate-argument suppression.
2323ac_configure_args=
2324ac_configure_args0=
2325ac_configure_args1=
42ecbf5e
DJ
2326ac_must_keep_next=false
2327for ac_pass in 1 2
2328do
2329 for ac_arg
2330 do
2331 case $ac_arg in
2332 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2334 | -silent | --silent | --silen | --sile | --sil)
2335 continue ;;
81ecdfbb
RW
2336 *\'*)
2337 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2338 esac
2339 case $ac_pass in
81ecdfbb 2340 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2341 2)
81ecdfbb 2342 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2343 if test $ac_must_keep_next = true; then
2344 ac_must_keep_next=false # Got value, back to normal.
2345 else
2346 case $ac_arg in
2347 *=* | --config-cache | -C | -disable-* | --disable-* \
2348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2350 | -with-* | --with-* | -without-* | --without-* | --x)
2351 case "$ac_configure_args0 " in
2352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2353 esac
2354 ;;
2355 -* ) ac_must_keep_next=true ;;
2356 esac
2357 fi
81ecdfbb 2358 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2359 ;;
2360 esac
2361 done
2362done
81ecdfbb
RW
2363{ ac_configure_args0=; unset ac_configure_args0;}
2364{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2365
2366# When interrupted or exit'd, cleanup temporary files, and complete
2367# config.log. We remove comments because anyway the quotes in there
2368# would cause problems or look ugly.
81ecdfbb
RW
2369# WARNING: Use '\'' to represent an apostrophe within the trap.
2370# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2371trap 'exit_status=$?
2372 # Save into config.log some information that might help in debugging.
2373 {
2374 echo
2375
2376 cat <<\_ASBOX
2377## ---------------- ##
2378## Cache variables. ##
2379## ---------------- ##
2380_ASBOX
2381 echo
2382 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2383(
2384 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in #(
2387 *${as_nl}*)
2388 case $ac_var in #(
2389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 esac
2392 case $ac_var in #(
2393 _ | IFS | as_nl) ;; #(
2394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395 *) { eval $ac_var=; unset $ac_var;} ;;
2396 esac ;;
2397 esac
2398 done
42ecbf5e 2399 (set) 2>&1 |
81ecdfbb
RW
2400 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401 *${as_nl}ac_space=\ *)
42ecbf5e 2402 sed -n \
81ecdfbb
RW
2403 "s/'\''/'\''\\\\'\'''\''/g;
2404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 ;; #(
42ecbf5e 2406 *)
81ecdfbb 2407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2408 ;;
81ecdfbb
RW
2409 esac |
2410 sort
2411)
42ecbf5e
DJ
2412 echo
2413
2414 cat <<\_ASBOX
2415## ----------------- ##
2416## Output variables. ##
2417## ----------------- ##
2418_ASBOX
2419 echo
2420 for ac_var in $ac_subst_vars
2421 do
81ecdfbb
RW
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2427 done | sort
2428 echo
2429
2430 if test -n "$ac_subst_files"; then
2431 cat <<\_ASBOX
81ecdfbb
RW
2432## ------------------- ##
2433## File substitutions. ##
2434## ------------------- ##
42ecbf5e
DJ
2435_ASBOX
2436 echo
2437 for ac_var in $ac_subst_files
2438 do
81ecdfbb
RW
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2444 done | sort
2445 echo
2446 fi
2447
2448 if test -s confdefs.h; then
2449 cat <<\_ASBOX
2450## ----------- ##
2451## confdefs.h. ##
2452## ----------- ##
2453_ASBOX
2454 echo
81ecdfbb 2455 cat confdefs.h
42ecbf5e
DJ
2456 echo
2457 fi
2458 test "$ac_signal" != 0 &&
81ecdfbb
RW
2459 $as_echo "$as_me: caught signal $ac_signal"
2460 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2461 } >&5
81ecdfbb
RW
2462 rm -f core *.core core.conftest.* &&
2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2464 exit $exit_status
81ecdfbb 2465' 0
42ecbf5e 2466for ac_signal in 1 2 13 15; do
81ecdfbb 2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2468done
2469ac_signal=0
2470
2471# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2472rm -f -r conftest* confdefs.h
2473
2474$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2475
2476# Predefined preprocessor variables.
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_NAME "$PACKAGE_NAME"
2480_ACEOF
2481
42ecbf5e
DJ
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484_ACEOF
2485
42ecbf5e
DJ
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_VERSION "$PACKAGE_VERSION"
2488_ACEOF
2489
42ecbf5e
DJ
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_STRING "$PACKAGE_STRING"
2492_ACEOF
2493
42ecbf5e
DJ
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496_ACEOF
2497
81ecdfbb
RW
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_URL "$PACKAGE_URL"
2500_ACEOF
2501
42ecbf5e
DJ
2502
2503# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2504# Prefer an explicitly selected file to automatically selected ones.
2505ac_site_file1=NONE
2506ac_site_file2=NONE
2507if test -n "$CONFIG_SITE"; then
2508 ac_site_file1=$CONFIG_SITE
2509elif test "x$prefix" != xNONE; then
2510 ac_site_file1=$prefix/share/config.site
2511 ac_site_file2=$prefix/etc/config.site
2512else
2513 ac_site_file1=$ac_default_prefix/share/config.site
2514 ac_site_file2=$ac_default_prefix/etc/config.site
2515fi
2516for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2517do
2518 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2519 if test -r "$ac_site_file"; then
81ecdfbb
RW
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2521$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2522 sed 's/^/| /' "$ac_site_file" >&5
2523 . "$ac_site_file"
2524 fi
2525done
2526
2527if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special
2529 # files actually), so we avoid doing that.
2530 if test -f "$cache_file"; then
81ecdfbb
RW
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2533 case $cache_file in
81ecdfbb
RW
2534 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535 *) . "./$cache_file";;
42ecbf5e
DJ
2536 esac
2537 fi
2538else
81ecdfbb
RW
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2541 >$cache_file
2542fi
2543
2544# Check that the precious variables saved in the cache have kept the same
2545# value.
2546ac_cache_corrupted=false
81ecdfbb 2547for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2552 case $ac_old_set,$ac_new_set in
2553 set,)
81ecdfbb
RW
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2556 ac_cache_corrupted=: ;;
2557 ,set)
81ecdfbb
RW
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2560 ac_cache_corrupted=: ;;
2561 ,);;
2562 *)
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
81ecdfbb 2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2591 esac
2592 fi
2593done
2594if $ac_cache_corrupted; then
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2600fi
81ecdfbb
RW
2601## -------------------- ##
2602## Main body of script. ##
2603## -------------------- ##
42ecbf5e
DJ
2604
2605ac_ext=c
2606ac_cpp='$CPP $CPPFLAGS'
2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611
2612
42ecbf5e 2613
da594c4a 2614
42ecbf5e
DJ
2615
2616
2617ac_aux_dir=
81ecdfbb
RW
2618for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2619 for ac_t in install-sh install.sh shtool; do
2620 if test -f "$ac_dir/$ac_t"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/$ac_t -c"
2623 break 2
2624 fi
2625 done
42ecbf5e
DJ
2626done
2627if test -z "$ac_aux_dir"; then
81ecdfbb 2628 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2629fi
81ecdfbb
RW
2630
2631# These three variables are undocumented and unsupported,
2632# and are intended to be withdrawn in a future Autoconf release.
2633# They can cause serious problems if a builder's source tree is in a directory
2634# whose full name contains unusual characters.
2635ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2636ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2637ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2638
42ecbf5e
DJ
2639
2640# Make sure we can run config.sub.
81ecdfbb
RW
2641$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2642 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2645$as_echo_n "checking build system type... " >&6; }
2646if test "${ac_cv_build+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648else
2649 ac_build_alias=$build_alias
2650test "x$ac_build_alias" = x &&
2651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2652test "x$ac_build_alias" = x &&
2653 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2654ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2656
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2659$as_echo "$ac_cv_build" >&6; }
2660case $ac_cv_build in
2661*-*-*) ;;
2662*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2663esac
42ecbf5e 2664build=$ac_cv_build
81ecdfbb
RW
2665ac_save_IFS=$IFS; IFS='-'
2666set x $ac_cv_build
2667shift
2668build_cpu=$1
2669build_vendor=$2
2670shift; shift
2671# Remember, the first character of IFS is used to create $*,
2672# except with old shells:
2673build_os=$*
2674IFS=$ac_save_IFS
2675case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2676
2677
81ecdfbb
RW
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2679$as_echo_n "checking host system type... " >&6; }
2680if test "${ac_cv_host+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
2682else
2683 if test "x$host_alias" = x; then
2684 ac_cv_host=$ac_cv_build
42ecbf5e 2685else
81ecdfbb
RW
2686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2687 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2688fi
42ecbf5e
DJ
2689
2690fi
81ecdfbb
RW
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692$as_echo "$ac_cv_host" >&6; }
2693case $ac_cv_host in
2694*-*-*) ;;
2695*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2696esac
42ecbf5e 2697host=$ac_cv_host
81ecdfbb
RW
2698ac_save_IFS=$IFS; IFS='-'
2699set x $ac_cv_host
2700shift
2701host_cpu=$1
2702host_vendor=$2
2703shift; shift
2704# Remember, the first character of IFS is used to create $*,
2705# except with old shells:
2706host_os=$*
2707IFS=$ac_save_IFS
2708case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2709
2710
81ecdfbb
RW
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2712$as_echo_n "checking target system type... " >&6; }
2713if test "${ac_cv_target+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
42ecbf5e 2715else
81ecdfbb
RW
2716 if test "x$target_alias" = x; then
2717 ac_cv_target=$ac_cv_host
2718else
2719 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2720 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2721fi
42ecbf5e
DJ
2722
2723fi
81ecdfbb
RW
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2725$as_echo "$ac_cv_target" >&6; }
2726case $ac_cv_target in
2727*-*-*) ;;
2728*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2729esac
42ecbf5e 2730target=$ac_cv_target
81ecdfbb
RW
2731ac_save_IFS=$IFS; IFS='-'
2732set x $ac_cv_target
2733shift
2734target_cpu=$1
2735target_vendor=$2
2736shift; shift
2737# Remember, the first character of IFS is used to create $*,
2738# except with old shells:
2739target_os=$*
2740IFS=$ac_save_IFS
2741case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2742
2743
2744# The aliases save the names the user supplied, while $host etc.
2745# will get canonicalized.
2746test -n "$target_alias" &&
2747 test "$program_prefix$program_suffix$program_transform_name" = \
2748 NONENONEs,x,x, &&
2749 program_prefix=${target_alias}-
02ecc8e9 2750
42ecbf5e
DJ
2751ac_ext=c
2752ac_cpp='$CPP $CPPFLAGS'
2753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2758set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
2761if test "${ac_cv_prog_CC+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2763else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2776 break 2
2777 fi
2778done
81ecdfbb
RW
2779 done
2780IFS=$as_save_IFS
42ecbf5e
DJ
2781
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
81ecdfbb
RW
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787$as_echo "$CC" >&6; }
42ecbf5e 2788else
81ecdfbb
RW
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790$as_echo "no" >&6; }
42ecbf5e
DJ
2791fi
2792
81ecdfbb 2793
42ecbf5e
DJ
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796 ac_ct_CC=$CC
2797 # Extract the first word of "gcc", so it can be a program name with args.
2798set dummy gcc; ac_word=$2
81ecdfbb
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2803else
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2814 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2816 break 2
2817 fi
2818done
81ecdfbb
RW
2819 done
2820IFS=$as_save_IFS
42ecbf5e
DJ
2821
2822fi
2823fi
2824ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2828else
81ecdfbb
RW
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830$as_echo "no" >&6; }
42ecbf5e
DJ
2831fi
2832
81ecdfbb
RW
2833 if test "x$ac_ct_CC" = x; then
2834 CC=""
2835 else
2836 case $cross_compiling:$ac_tool_warned in
2837yes:)
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840ac_tool_warned=yes ;;
2841esac
2842 CC=$ac_ct_CC
2843 fi
42ecbf5e
DJ
2844else
2845 CC="$ac_cv_prog_CC"
2846fi
2847
2848if test -z "$CC"; then
81ecdfbb
RW
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2851set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if test "${ac_cv_prog_CC+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2856else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2867 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2869 break 2
2870 fi
2871done
81ecdfbb
RW
2872 done
2873IFS=$as_save_IFS
42ecbf5e
DJ
2874
2875fi
2876fi
2877CC=$ac_cv_prog_CC
2878if test -n "$CC"; then
81ecdfbb
RW
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880$as_echo "$CC" >&6; }
42ecbf5e 2881else
81ecdfbb
RW
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
42ecbf5e
DJ
2884fi
2885
42ecbf5e 2886
81ecdfbb 2887 fi
42ecbf5e
DJ
2888fi
2889if test -z "$CC"; then
2890 # Extract the first word of "cc", so it can be a program name with args.
2891set dummy cc; ac_word=$2
81ecdfbb
RW
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893$as_echo_n "checking for $ac_word... " >&6; }
2894if test "${ac_cv_prog_CC+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2896else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899else
2900 ac_prog_rejected=no
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2909 ac_prog_rejected=yes
2910 continue
2911 fi
2912 ac_cv_prog_CC="cc"
81ecdfbb 2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2914 break 2
2915 fi
2916done
81ecdfbb
RW
2917 done
2918IFS=$as_save_IFS
42ecbf5e
DJ
2919
2920if test $ac_prog_rejected = yes; then
2921 # We found a bogon in the path, so make sure we never use it.
2922 set dummy $ac_cv_prog_CC
2923 shift
2924 if test $# != 0; then
2925 # We chose a different compiler from the bogus one.
2926 # However, it has the same basename, so the bogon will be chosen
2927 # first if we set CC to just the basename; use the full file name.
2928 shift
2929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2930 fi
2931fi
2932fi
2933fi
2934CC=$ac_cv_prog_CC
2935if test -n "$CC"; then
81ecdfbb
RW
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937$as_echo "$CC" >&6; }
42ecbf5e 2938else
81ecdfbb
RW
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
42ecbf5e
DJ
2941fi
2942
81ecdfbb 2943
42ecbf5e
DJ
2944fi
2945if test -z "$CC"; then
2946 if test -n "$ac_tool_prefix"; then
81ecdfbb 2947 for ac_prog in cl.exe
42ecbf5e
DJ
2948 do
2949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2955else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2968 break 2
2969 fi
2970done
81ecdfbb
RW
2971 done
2972IFS=$as_save_IFS
42ecbf5e
DJ
2973
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
81ecdfbb
RW
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
42ecbf5e 2980else
81ecdfbb
RW
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
42ecbf5e
DJ
2983fi
2984
81ecdfbb 2985
42ecbf5e
DJ
2986 test -n "$CC" && break
2987 done
2988fi
2989if test -z "$CC"; then
2990 ac_ct_CC=$CC
81ecdfbb 2991 for ac_prog in cl.exe
42ecbf5e
DJ
2992do
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2999else
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3010 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3012 break 2
3013 fi
3014done
81ecdfbb
RW
3015 done
3016IFS=$as_save_IFS
42ecbf5e
DJ
3017
3018fi
3019fi
3020ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3024else
81ecdfbb
RW
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
42ecbf5e
DJ
3027fi
3028
81ecdfbb 3029
42ecbf5e
DJ
3030 test -n "$ac_ct_CC" && break
3031done
3032
81ecdfbb
RW
3033 if test "x$ac_ct_CC" = x; then
3034 CC=""
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037yes:)
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040ac_tool_warned=yes ;;
3041esac
3042 CC=$ac_ct_CC
3043 fi
42ecbf5e
DJ
3044fi
3045
3046fi
3047
3048
81ecdfbb
RW
3049test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051as_fn_error "no acceptable C compiler found in \$PATH
3052See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3053
3054# Provide some information about the compiler.
81ecdfbb
RW
3055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3056set X $ac_compile
3057ac_compiler=$2
3058for ac_option in --version -v -V -qversion; do
3059 { { ac_try="$ac_compiler $ac_option >&5"
3060case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065$as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3067 ac_status=$?
81ecdfbb
RW
3068 if test -s conftest.err; then
3069 sed '10a\
3070... rest of stderr output deleted ...
3071 10q' conftest.err >conftest.er1
3072 cat conftest.er1 >&5
3073 rm -f conftest.er1 conftest.err
3074 fi
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }
3077done
42ecbf5e 3078
81ecdfbb 3079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090ac_clean_files_save=$ac_clean_files
81ecdfbb 3091ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3092# Try to create an executable without -o first, disregard a.out.
3093# It will help us diagnose broken compilers, and finding out an intuition
3094# of exeext.
81ecdfbb
RW
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096$as_echo_n "checking for C compiler default output file name... " >&6; }
3097ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3098
3099# The possible output files:
3100ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3101
3102ac_rmfiles=
3103for ac_file in $ac_files
3104do
3105 case $ac_file in
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108 esac
3109done
3110rm -f $ac_rmfiles
3111
3112if { { ac_try="$ac_link_default"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link_default") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125# in a Makefile. We should not override ac_cv_exeext if it was cached,
3126# so that the user can short-circuit this test for compilers unknown to
3127# Autoconf.
3128for ac_file in $ac_files ''
42ecbf5e
DJ
3129do
3130 test -f "$ac_file" || continue
3131 case $ac_file in
81ecdfbb 3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3133 ;;
3134 [ab].out )
3135 # We found the default executable, but exeext='' is most
3136 # certainly right.
3137 break;;
3138 *.* )
81ecdfbb
RW
3139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3140 then :; else
3141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 fi
3143 # We set ac_cv_exeext here because the later test for it is not
3144 # safe: cross compilers may not add the suffix if given an `-o'
3145 # argument, so we may need to know it at that point already.
3146 # Even if this section looks crufty: it has the advantage of
3147 # actually working.
42ecbf5e
DJ
3148 break;;
3149 * )
3150 break;;
3151 esac
3152done
81ecdfbb
RW
3153test "$ac_cv_exeext" = no && ac_cv_exeext=
3154
42ecbf5e 3155else
81ecdfbb
RW
3156 ac_file=''
3157fi
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3159$as_echo "$ac_file" >&6; }
3160if test -z "$ac_file"; then :
3161 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
81ecdfbb
RW
3164{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166{ as_fn_set_status 77
3167as_fn_error "C compiler cannot create executables
3168See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3169fi
42ecbf5e 3170ac_exeext=$ac_cv_exeext
42ecbf5e 3171
81ecdfbb 3172# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3173# the compiler is broken, or we cross compile.
81ecdfbb
RW
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3175$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3176# If not cross compiling, check that we can run a simple program.
3177if test "$cross_compiling" != yes; then
3178 if { ac_try='./$ac_file'
81ecdfbb
RW
3179 { { case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_try") 2>&5
42ecbf5e 3186 ac_status=$?
81ecdfbb
RW
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3189 cross_compiling=no
3190 else
3191 if test "$cross_compiling" = maybe; then
3192 cross_compiling=yes
3193 else
81ecdfbb
RW
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196as_fn_error "cannot run C compiled programs.
42ecbf5e 3197If you meant to cross compile, use \`--host'.
81ecdfbb 3198See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3199 fi
3200 fi
3201fi
81ecdfbb
RW
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
42ecbf5e 3204
81ecdfbb 3205rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3206ac_clean_files=$ac_clean_files_save
81ecdfbb 3207# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3208# the compiler is broken, or we cross compile.
81ecdfbb
RW
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3210$as_echo_n "checking whether we are cross compiling... " >&6; }
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3212$as_echo "$cross_compiling" >&6; }
3213
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3215$as_echo_n "checking for suffix of executables... " >&6; }
3216if { { ac_try="$ac_link"
3217case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_link") 2>&5
42ecbf5e 3224 ac_status=$?
81ecdfbb
RW
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; then :
42ecbf5e
DJ
3227 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3229# work properly (i.e., refer to `conftest.exe'), while it won't with
3230# `rm'.
3231for ac_file in conftest.exe conftest conftest.*; do
3232 test -f "$ac_file" || continue
3233 case $ac_file in
81ecdfbb 3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3236 break;;
3237 * ) break;;
3238 esac
3239done
3240else
81ecdfbb
RW
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error "cannot compute suffix of executables: cannot compile and link
3244See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3245fi
42ecbf5e 3246rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3248$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3249
3250rm -f conftest.$ac_ext
3251EXEEXT=$ac_cv_exeext
3252ac_exeext=$EXEEXT
81ecdfbb
RW
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254$as_echo_n "checking for suffix of object files... " >&6; }
3255if test "${ac_cv_objext+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
42ecbf5e 3257else
81ecdfbb 3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3259/* end confdefs.h. */
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.o conftest.obj
81ecdfbb
RW
3270if { { ac_try="$ac_compile"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compile") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
42ecbf5e 3283 case $ac_file in
81ecdfbb 3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 break;;
3287 esac
3288done
3289else
81ecdfbb 3290 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
81ecdfbb
RW
3293{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295as_fn_error "cannot compute suffix of object files: cannot compile
3296See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3297fi
42ecbf5e
DJ
3298rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299fi
81ecdfbb
RW
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3302OBJEXT=$ac_cv_objext
3303ac_objext=$OBJEXT
81ecdfbb
RW
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3305$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3306if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
42ecbf5e 3308else
81ecdfbb 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315#ifndef __GNUC__
3316 choke me
3317#endif
3318
3319 ;
3320 return 0;
3321}
3322_ACEOF
81ecdfbb 3323if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3324 ac_compiler_gnu=yes
3325else
81ecdfbb 3326 ac_compiler_gnu=no
42ecbf5e 3327fi
81ecdfbb 3328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3329ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331fi
81ecdfbb
RW
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3334if test $ac_compiler_gnu = yes; then
3335 GCC=yes
3336else
3337 GCC=
3338fi
42ecbf5e
DJ
3339ac_test_CFLAGS=${CFLAGS+set}
3340ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342$as_echo_n "checking whether $CC accepts -g... " >&6; }
3343if test "${ac_cv_prog_cc_g+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3345else
3346 ac_save_c_werror_flag=$ac_c_werror_flag
3347 ac_c_werror_flag=yes
3348 ac_cv_prog_cc_g=no
3349 CFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3351/* end confdefs.h. */
3352
3353int
3354main ()
3355{
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
81ecdfbb 3361if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3362 ac_cv_prog_cc_g=yes
3363else
81ecdfbb
RW
3364 CFLAGS=""
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367
3368int
3369main ()
3370{
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376if ac_fn_c_try_compile "$LINENO"; then :
3377
3378else
3379 ac_c_werror_flag=$ac_save_c_werror_flag
3380 CFLAGS="-g"
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
42ecbf5e 3387
81ecdfbb
RW
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_cv_prog_cc_g=yes
3394fi
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396fi
3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3398fi
81ecdfbb
RW
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3401fi
81ecdfbb
RW
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3403$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3404if test "$ac_test_CFLAGS" = set; then
3405 CFLAGS=$ac_save_CFLAGS
3406elif test $ac_cv_prog_cc_g = yes; then
3407 if test "$GCC" = yes; then
3408 CFLAGS="-g -O2"
3409 else
3410 CFLAGS="-g"
3411 fi
3412else
3413 if test "$GCC" = yes; then
3414 CFLAGS="-O2"
3415 else
3416 CFLAGS=
3417 fi
3418fi
81ecdfbb
RW
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3420$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3421if test "${ac_cv_prog_cc_c89+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
42ecbf5e 3423else
81ecdfbb 3424 ac_cv_prog_cc_c89=no
42ecbf5e 3425ac_save_CC=$CC
81ecdfbb 3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3427/* end confdefs.h. */
3428#include <stdarg.h>
3429#include <stdio.h>
3430#include <sys/types.h>
3431#include <sys/stat.h>
3432/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3433struct buf { int x; };
3434FILE * (*rcsopen) (struct buf *, struct stat *, int);
3435static char *e (p, i)
3436 char **p;
3437 int i;
3438{
3439 return p[i];
3440}
3441static char *f (char * (*g) (char **, int), char **p, ...)
3442{
3443 char *s;
3444 va_list v;
3445 va_start (v,p);
3446 s = g (p, va_arg (v,int));
3447 va_end (v);
3448 return s;
3449}
3450
3451/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3452 function prototypes and stuff, but not '\xHH' hex character constants.
3453 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3454 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3456 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3457 that's true only with -std. */
42ecbf5e
DJ
3458int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3459
81ecdfbb
RW
3460/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3461 inside strings and character constants. */
3462#define FOO(x) 'x'
3463int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3464
42ecbf5e
DJ
3465int test (int i, double x);
3466struct s1 {int (*f) (int a);};
3467struct s2 {int (*f) (double a);};
3468int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3469int argc;
3470char **argv;
3471int
3472main ()
3473{
3474return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3475 ;
3476 return 0;
3477}
3478_ACEOF
81ecdfbb
RW
3479for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3481do
3482 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3485fi
81ecdfbb
RW
3486rm -f core conftest.err conftest.$ac_objext
3487 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3488done
81ecdfbb 3489rm -f conftest.$ac_ext
42ecbf5e
DJ
3490CC=$ac_save_CC
3491
3492fi
81ecdfbb
RW
3493# AC_CACHE_VAL
3494case "x$ac_cv_prog_cc_c89" in
3495 x)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3497$as_echo "none needed" >&6; } ;;
3498 xno)
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3500$as_echo "unsupported" >&6; } ;;
42ecbf5e 3501 *)
81ecdfbb
RW
3502 CC="$CC $ac_cv_prog_cc_c89"
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3504$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3505esac
81ecdfbb 3506if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3507
42ecbf5e
DJ
3508fi
3509
42ecbf5e
DJ
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
81ecdfbb
RW
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3518$as_echo_n "checking for library containing strerror... " >&6; }
3519if test "${ac_cv_search_strerror+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3521else
3522 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3524/* end confdefs.h. */
3525
81ecdfbb
RW
3526/* Override any GCC internal prototype to avoid an error.
3527 Use char because int might match the return type of a GCC
3528 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3529#ifdef __cplusplus
3530extern "C"
3531#endif
42ecbf5e
DJ
3532char strerror ();
3533int
3534main ()
3535{
81ecdfbb 3536return strerror ();
42ecbf5e
DJ
3537 ;
3538 return 0;
3539}
3540_ACEOF
81ecdfbb
RW
3541for ac_lib in '' cposix; do
3542 if test -z "$ac_lib"; then
3543 ac_res="none required"
3544 else
3545 ac_res=-l$ac_lib
42ecbf5e 3546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3547 fi
3548 if ac_fn_c_try_link "$LINENO"; then :
3549 ac_cv_search_strerror=$ac_res
3550fi
3551rm -f core conftest.err conftest.$ac_objext \
3552 conftest$ac_exeext
3553 if test "${ac_cv_search_strerror+set}" = set; then :
3554 break
3555fi
3556done
3557if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3558
42ecbf5e 3559else
81ecdfbb 3560 ac_cv_search_strerror=no
42ecbf5e 3561fi
81ecdfbb 3562rm conftest.$ac_ext
42ecbf5e
DJ
3563LIBS=$ac_func_search_save_LIBS
3564fi
81ecdfbb
RW
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3566$as_echo "$ac_cv_search_strerror" >&6; }
3567ac_res=$ac_cv_search_strerror
3568if test "$ac_res" != no; then :
3569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3570
3571fi
e5a52504
MM
3572
3573
81ecdfbb
RW
3574am__api_version='1.11'
3575
e5a52504
MM
3576# Find a good install program. We prefer a C program (faster),
3577# so one script is as good as another. But avoid the broken or
3578# incompatible versions:
3579# SysV /etc/install, /usr/sbin/install
3580# SunOS /usr/etc/install
3581# IRIX /sbin/install
3582# AIX /bin/install
42ecbf5e 3583# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3584# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3585# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3586# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3587# OS/2's system install, which has a completely different semantic
e5a52504 3588# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3589# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3591$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3592if test -z "$INSTALL"; then
81ecdfbb
RW
3593if test "${ac_cv_path_install+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
e5a52504 3595else
42ecbf5e
DJ
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3601 # Account for people who put trailing slashes in PATH elements.
3602case $as_dir/ in #((
3603 ./ | .// | /[cC]/* | \
42ecbf5e 3604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3605 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3606 /usr/ucb/* ) ;;
3607 *)
3608 # OSF1 and SCO ODT 3.0 have their own names for install.
3609 # Don't use installbsd from OSF since it installs stuff as root
3610 # by default.
3611 for ac_prog in ginstall scoinst install; do
3612 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3613 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3614 if test $ac_prog = install &&
42ecbf5e 3615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3616 # AIX install. It has an incompatible calling convention.
3617 :
42ecbf5e
DJ
3618 elif test $ac_prog = install &&
3619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3620 # program-specific install script used by HP pwplus--don't use.
3621 :
252b5132 3622 else
58c85be7
RW
3623 rm -rf conftest.one conftest.two conftest.dir
3624 echo one > conftest.one
3625 echo two > conftest.two
3626 mkdir conftest.dir
3627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3628 test -s conftest.one && test -s conftest.two &&
3629 test -s conftest.dir/conftest.one &&
3630 test -s conftest.dir/conftest.two
3631 then
3632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3633 break 3
3634 fi
252b5132
RH
3635 fi
3636 fi
3637 done
42ecbf5e
DJ
3638 done
3639 ;;
3640esac
81ecdfbb
RW
3641
3642 done
3643IFS=$as_save_IFS
42ecbf5e 3644
58c85be7 3645rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3646
3647fi
3648 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3649 INSTALL=$ac_cv_path_install
252b5132 3650 else
58c85be7
RW
3651 # As a last resort, use the slow shell script. Don't cache a
3652 # value for INSTALL within a source directory, because that will
252b5132 3653 # break other packages using the cache if that directory is
58c85be7 3654 # removed, or if the value is a relative name.
42ecbf5e 3655 INSTALL=$ac_install_sh
252b5132
RH
3656 fi
3657fi
81ecdfbb
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3659$as_echo "$INSTALL" >&6; }
252b5132
RH
3660
3661# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3662# It thinks the first close brace ends the variable substitution.
3663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664
42ecbf5e 3665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3666
3667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668
81ecdfbb
RW
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3670$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3671# Just in case
3672sleep 1
42ecbf5e 3673echo timestamp > conftest.file
81ecdfbb
RW
3674# Reject unsafe characters in $srcdir or the absolute working directory
3675# name. Accept space and tab only in the latter.
3676am_lf='
3677'
3678case `pwd` in
3679 *[\\\"\#\$\&\'\`$am_lf]*)
3680 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3681esac
3682case $srcdir in
3683 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3684 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3685esac
3686
252b5132
RH
3687# Do `set' in a subshell so we don't clobber the current shell's
3688# arguments. Must try -L first in case configure is actually a
3689# symlink; some systems play weird games with the mod time of symlinks
3690# (eg FreeBSD returns the mod time of the symlink's containing
3691# directory).
3692if (
81ecdfbb 3693 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3694 if test "$*" = "X"; then
3695 # -L didn't work.
81ecdfbb 3696 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3697 fi
42ecbf5e
DJ
3698 rm -f conftest.file
3699 if test "$*" != "X $srcdir/configure conftest.file" \
3700 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3701
3702 # If neither matched, then we have a broken ls. This can happen
3703 # if, for instance, CONFIG_SHELL is bash and it inherits a
3704 # broken ls alias from the environment. This has actually
3705 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3706 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3707alias in your environment" "$LINENO" 5
252b5132
RH
3708 fi
3709
42ecbf5e 3710 test "$2" = conftest.file
252b5132
RH
3711 )
3712then
3713 # Ok.
3714 :
3715else
81ecdfbb
RW
3716 as_fn_error "newly created file is older than distributed files!
3717Check your system clock" "$LINENO" 5
252b5132 3718fi
81ecdfbb
RW
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720$as_echo "yes" >&6; }
252b5132 3721test "$program_prefix" != NONE &&
81ecdfbb 3722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3723# Use a double $ so make ignores it.
3724test "$program_suffix" != NONE &&
81ecdfbb
RW
3725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3726# Double any \ or $.
42ecbf5e 3727# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3728ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3729program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3730
3731# expand $ac_aux_dir to an absolute path
3732am_aux_dir=`cd $ac_aux_dir && pwd`
3733
81ecdfbb
RW
3734if test x"${MISSING+set}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3738 *)
3739 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3740 esac
3741fi
42ecbf5e
DJ
3742# Use eval to expand $SHELL
3743if eval "$MISSING --run true"; then
3744 am_missing_run="$MISSING --run "
3745else
3746 am_missing_run=
81ecdfbb
RW
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3748$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3749fi
3750
3751if test x"${install_sh}" != xset; then
3752 case $am_aux_dir in
3753 *\ * | *\ *)
3754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3755 *)
3756 install_sh="\${SHELL} $am_aux_dir/install-sh"
3757 esac
3758fi
3759
3760# Installed binaries are usually stripped using `strip' when the user
3761# run `make install-strip'. However `strip' might not be the right
3762# tool to use in cross-compilation environments, therefore Automake
3763# will honor the `STRIP' environment variable to overrule this program.
3764if test "$cross_compiling" != no; then
3765 if test -n "$ac_tool_prefix"; then
3766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3767set dummy ${ac_tool_prefix}strip; ac_word=$2
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769$as_echo_n "checking for $ac_word... " >&6; }
3770if test "${ac_cv_prog_STRIP+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 if test -n "$STRIP"; then
3774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787done
3788 done
3789IFS=$as_save_IFS
3790
3791fi
3792fi
3793STRIP=$ac_cv_prog_STRIP
3794if test -n "$STRIP"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3796$as_echo "$STRIP" >&6; }
3797else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800fi
3801
3802
3803fi
3804if test -z "$ac_cv_prog_STRIP"; then
3805 ac_ct_STRIP=$STRIP
3806 # Extract the first word of "strip", so it can be a program name with args.
3807set dummy strip; ac_word=$2
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809$as_echo_n "checking for $ac_word... " >&6; }
3810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812else
3813 if test -n "$ac_ct_STRIP"; then
3814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_ac_ct_STRIP="strip"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827done
3828 done
3829IFS=$as_save_IFS
3830
3831fi
3832fi
3833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3834if test -n "$ac_ct_STRIP"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3836$as_echo "$ac_ct_STRIP" >&6; }
3837else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
3840fi
3841
3842 if test "x$ac_ct_STRIP" = x; then
3843 STRIP=":"
3844 else
3845 case $cross_compiling:$ac_tool_warned in
3846yes:)
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849ac_tool_warned=yes ;;
3850esac
3851 STRIP=$ac_ct_STRIP
3852 fi
3853else
3854 STRIP="$ac_cv_prog_STRIP"
3855fi
3856
3857fi
3858INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3859
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3861$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3862if test -z "$MKDIR_P"; then
3863 if test "${ac_cv_path_mkdir+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in mkdir gmkdir; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3874 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3875 'mkdir (GNU coreutils) '* | \
3876 'mkdir (coreutils) '* | \
3877 'mkdir (fileutils) '4.1*)
3878 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3879 break 3;;
3880 esac
3881 done
3882 done
42ecbf5e 3883 done
81ecdfbb
RW
3884IFS=$as_save_IFS
3885
3886fi
3887
3888 if test "${ac_cv_path_mkdir+set}" = set; then
3889 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3890 else
81ecdfbb
RW
3891 # As a last resort, use the slow shell script. Don't cache a
3892 # value for MKDIR_P within a source directory, because that will
3893 # break other packages using the cache if that directory is
3894 # removed, or if the value is a relative name.
3895 test -d ./--version && rmdir ./--version
3896 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3897 fi
3898fi
81ecdfbb
RW
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3900$as_echo "$MKDIR_P" >&6; }
3901
3902mkdir_p="$MKDIR_P"
3903case $mkdir_p in
3904 [\\/$]* | ?:[\\/]*) ;;
3905 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3906esac
42ecbf5e
DJ
3907
3908for ac_prog in gawk mawk nawk awk
3909do
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
3914if test "${ac_cv_prog_AWK+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3916else
3917 if test -n "$AWK"; then
3918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3927 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3929 break 2
3930 fi
3931done
81ecdfbb
RW
3932 done
3933IFS=$as_save_IFS
42ecbf5e
DJ
3934
3935fi
3936fi
3937AWK=$ac_cv_prog_AWK
3938if test -n "$AWK"; then
81ecdfbb
RW
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3940$as_echo "$AWK" >&6; }
42ecbf5e 3941else
81ecdfbb
RW
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
42ecbf5e 3944fi
252b5132 3945
81ecdfbb 3946
42ecbf5e
DJ
3947 test -n "$AWK" && break
3948done
252b5132 3949
81ecdfbb
RW
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3952set x ${MAKE-make}
3953ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3954if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3955 $as_echo_n "(cached) " >&6
252b5132 3956else
42ecbf5e 3957 cat >conftest.make <<\_ACEOF
81ecdfbb 3958SHELL = /bin/sh
252b5132 3959all:
81ecdfbb 3960 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3961_ACEOF
252b5132 3962# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3963case `${MAKE-make} -f conftest.make 2>/dev/null` in
3964 *@@@%%%=?*=@@@%%%*)
3965 eval ac_cv_prog_make_${ac_make}_set=yes;;
3966 *)
3967 eval ac_cv_prog_make_${ac_make}_set=no;;
3968esac
42ecbf5e 3969rm -f conftest.make
252b5132 3970fi
81ecdfbb
RW
3971if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973$as_echo "yes" >&6; }
252b5132
RH
3974 SET_MAKE=
3975else
81ecdfbb
RW
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977$as_echo "no" >&6; }
252b5132
RH
3978 SET_MAKE="MAKE=${MAKE-make}"
3979fi
3980
42ecbf5e
DJ
3981rm -rf .tst 2>/dev/null
3982mkdir .tst 2>/dev/null
3983if test -d .tst; then
3984 am__leading_dot=.
3985else
3986 am__leading_dot=_
3987fi
3988rmdir .tst 2>/dev/null
3989
3990DEPDIR="${am__leading_dot}deps"
3991
81ecdfbb 3992ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3993
3994
3995am_make=${MAKE-make}
3996cat > confinc << 'END'
3997am__doit:
81ecdfbb 3998 @echo this is the am__doit target
42ecbf5e
DJ
3999.PHONY: am__doit
4000END
4001# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4003$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
4004am__include="#"
4005am__quote=
4006_am_result=none
4007# First try GNU make style include.
4008echo "include confinc" > confmf
81ecdfbb
RW
4009# Ignore all kinds of additional output from `make'.
4010case `$am_make -s -f confmf 2> /dev/null` in #(
4011*the\ am__doit\ target*)
4012 am__include=include
4013 am__quote=
4014 _am_result=GNU
4015 ;;
4016esac
42ecbf5e
DJ
4017# Now try BSD make style include.
4018if test "$am__include" = "#"; then
4019 echo '.include "confinc"' > confmf
81ecdfbb
RW
4020 case `$am_make -s -f confmf 2> /dev/null` in #(
4021 *the\ am__doit\ target*)
4022 am__include=.include
4023 am__quote="\""
4024 _am_result=BSD
4025 ;;
4026 esac
42ecbf5e
DJ
4027fi
4028
4029
81ecdfbb
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4031$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4032rm -f confinc confmf
4033
81ecdfbb
RW
4034# Check whether --enable-dependency-tracking was given.
4035if test "${enable_dependency_tracking+set}" = set; then :
4036 enableval=$enable_dependency_tracking;
4037fi
42ecbf5e 4038
42ecbf5e
DJ
4039if test "x$enable_dependency_tracking" != xno; then
4040 am_depcomp="$ac_aux_dir/depcomp"
4041 AMDEPBACKSLASH='\'
6eb7d830 4042 am__nodep='_no'
42ecbf5e 4043fi
81ecdfbb 4044 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4045 AMDEP_TRUE=
4046 AMDEP_FALSE='#'
4047else
4048 AMDEP_TRUE='#'
4049 AMDEP_FALSE=
4050fi
4051
e5a52504 4052
81ecdfbb
RW
4053if test "`cd $srcdir && pwd`" != "`pwd`"; then
4054 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4055 # is not polluted with repeated "-I."
4056 am__isrc=' -I$(srcdir)'
4057 # test to see if srcdir already configured
4058 if test -f $srcdir/config.status; then
4059 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4060 fi
42ecbf5e 4061fi
252b5132 4062
42ecbf5e
DJ
4063# test whether we have cygpath
4064if test -z "$CYGPATH_W"; then
4065 if (cygpath --version) >/dev/null 2>/dev/null; then
4066 CYGPATH_W='cygpath -w'
4067 else
4068 CYGPATH_W=echo
4069 fi
252b5132 4070fi
42ecbf5e
DJ
4071
4072
4073# Define the identity of the package.
2e98a7bd 4074 PACKAGE='ld'
55e99962 4075 VERSION='2.30.52'
42ecbf5e
DJ
4076
4077
4078cat >>confdefs.h <<_ACEOF
e5a52504 4079#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4080_ACEOF
4081
252b5132 4082
42ecbf5e 4083cat >>confdefs.h <<_ACEOF
e5a52504 4084#define VERSION "$VERSION"
42ecbf5e
DJ
4085_ACEOF
4086
4087# Some tools Automake needs.
4088
4089ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4090
4091
4092AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4093
4094
4095AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4096
4097
4098AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4099
e5a52504 4100
42ecbf5e 4101MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4102
42ecbf5e
DJ
4103# We need awk for the "check" target. The system "awk" is bad on
4104# some platforms.
6eb7d830
AM
4105# Always define AMTAR for backward compatibility. Yes, it's still used
4106# in the wild :-( We should find a proper way to deprecate it ...
4107AMTAR='$${TAR-tar}'
42ecbf5e 4108
6eb7d830 4109am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e
DJ
4110
4111
4112
4113
4114depcc="$CC" am_compiler_list=
4115
81ecdfbb
RW
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4117$as_echo_n "checking dependency style of $depcc... " >&6; }
4118if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4120else
4121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4122 # We make a subdir and do the tests there. Otherwise we can end up
4123 # making bogus files that we don't know about and never remove. For
4124 # instance it was reported that on HP-UX the gcc test will end up
4125 # making a dummy file named `D' -- because `-MD' means `put the output
4126 # in D'.
6eb7d830 4127 rm -rf conftest.dir
42ecbf5e
DJ
4128 mkdir conftest.dir
4129 # Copy depcomp to subdir because otherwise we won't find it if we're
4130 # using a relative directory.
4131 cp "$am_depcomp" conftest.dir
4132 cd conftest.dir
4133 # We will build objects and dependencies in a subdirectory because
4134 # it helps to detect inapplicable dependency modes. For instance
4135 # both Tru64's cc and ICC support -MD to output dependencies as a
4136 # side effect of compilation, but ICC will put the dependencies in
4137 # the current directory while Tru64 will put them in the object
4138 # directory.
4139 mkdir sub
4140
4141 am_cv_CC_dependencies_compiler_type=none
4142 if test "$am_compiler_list" = ""; then
4143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4144 fi
81ecdfbb
RW
4145 am__universal=false
4146 case " $depcc " in #(
4147 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4148 esac
4149
42ecbf5e
DJ
4150 for depmode in $am_compiler_list; do
4151 # Setup a source with many dependencies, because some compilers
4152 # like to wrap large dependency lists on column 80 (with \), and
4153 # we should not choose a depcomp mode which is confused by this.
4154 #
4155 # We need to recreate these files for each test, as the compiler may
4156 # overwrite some of them when testing with obscure command lines.
4157 # This happens at least with the AIX C compiler.
4158 : > sub/conftest.c
4159 for i in 1 2 3 4 5 6; do
4160 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4161 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4162 # Solaris 8's {/usr,}/bin/sh.
4163 touch sub/conftst$i.h
4164 done
4165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4166
81ecdfbb
RW
4167 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4168 # mode. It turns out that the SunPro C++ compiler does not properly
4169 # handle `-M -o', and we need to detect this. Also, some Intel
4170 # versions had trouble with output in subdirs
4171 am__obj=sub/conftest.${OBJEXT-o}
4172 am__minus_obj="-o $am__obj"
42ecbf5e 4173 case $depmode in
81ecdfbb
RW
4174 gcc)
4175 # This depmode causes a compiler race in universal mode.
4176 test "$am__universal" = false || continue
4177 ;;
42ecbf5e
DJ
4178 nosideeffect)
4179 # after this tag, mechanisms are not by side-effect, so they'll
4180 # only be used when explicitly requested
4181 if test "x$enable_dependency_tracking" = xyes; then
4182 continue
4183 else
4184 break
4185 fi
4186 ;;
6eb7d830 4187 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
4188 # This compiler won't grok `-c -o', but also, the minuso test has
4189 # not run yet. These depmodes are late enough in the game, and
4190 # so weak that their functioning should not be impacted.
4191 am__obj=conftest.${OBJEXT-o}
4192 am__minus_obj=
4193 ;;
42ecbf5e
DJ
4194 none) break ;;
4195 esac
42ecbf5e 4196 if depmode=$depmode \
81ecdfbb 4197 source=sub/conftest.c object=$am__obj \
42ecbf5e 4198 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4199 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4200 >/dev/null 2>conftest.err &&
81ecdfbb 4201 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4203 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4205 # icc doesn't choke on unknown options, it will just issue warnings
4206 # or remarks (even with -Werror). So we grep stderr for any message
4207 # that says an option was ignored or not supported.
4208 # When given -MP, icc 7.0 and 7.1 complain thusly:
4209 # icc: Command line warning: ignoring option '-M'; no argument required
4210 # The diagnosis changed in icc 8.0:
4211 # icc: Command line remark: option '-MP' not supported
4212 if (grep 'ignoring option' conftest.err ||
4213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4214 am_cv_CC_dependencies_compiler_type=$depmode
4215 break
4216 fi
4217 fi
4218 done
2469cfa2 4219
42ecbf5e
DJ
4220 cd ..
4221 rm -rf conftest.dir
2469cfa2 4222else
42ecbf5e
DJ
4223 am_cv_CC_dependencies_compiler_type=none
4224fi
4225
2469cfa2 4226fi
81ecdfbb
RW
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4228$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4229CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4230
81ecdfbb 4231 if
42ecbf5e
DJ
4232 test "x$enable_dependency_tracking" != xno \
4233 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4234 am__fastdepCC_TRUE=
4235 am__fastdepCC_FALSE='#'
2469cfa2 4236else
42ecbf5e
DJ
4237 am__fastdepCC_TRUE='#'
4238 am__fastdepCC_FALSE=
2469cfa2 4239fi
2469cfa2 4240
2469cfa2 4241
e5a52504 4242
42ecbf5e 4243
64ac50ac
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4245$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4246 # Check whether --enable-maintainer-mode was given.
4247if test "${enable_maintainer_mode+set}" = set; then :
4248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4249else
4250 USE_MAINTAINER_MODE=no
4251fi
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4254$as_echo "$USE_MAINTAINER_MODE" >&6; }
4255 if test $USE_MAINTAINER_MODE = yes; then
4256 MAINTAINER_MODE_TRUE=
4257 MAINTAINER_MODE_FALSE='#'
4258else
4259 MAINTAINER_MODE_TRUE='#'
4260 MAINTAINER_MODE_FALSE=
4261fi
4262
4263 MAINT=$MAINTAINER_MODE_TRUE
4264
4265
4266
b879806f
AM
4267ac_ext=c
4268ac_cpp='$CPP $CPPFLAGS'
4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4274set dummy ${ac_tool_prefix}gcc; ac_word=$2
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276$as_echo_n "checking for $ac_word... " >&6; }
4277if test "${ac_cv_prog_CC+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282else
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294done
4295 done
4296IFS=$as_save_IFS
d7040cdb 4297
81ecdfbb 4298fi
81ecdfbb 4299fi
b879806f
AM
4300CC=$ac_cv_prog_CC
4301if test -n "$CC"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303$as_echo "$CC" >&6; }
2469cfa2 4304else
b879806f
AM
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306$as_echo "no" >&6; }
81ecdfbb 4307fi
d7040cdb
SE
4308
4309
b879806f
AM
4310fi
4311if test -z "$ac_cv_prog_CC"; then
4312 ac_ct_CC=$CC
4313 # Extract the first word of "gcc", so it can be a program name with args.
4314set dummy gcc; ac_word=$2
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316$as_echo_n "checking for $ac_word... " >&6; }
4317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
e5a52504 4319else
b879806f
AM
4320 if test -n "$ac_ct_CC"; then
4321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330 ac_cv_prog_ac_ct_CC="gcc"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335 done
4336IFS=$as_save_IFS
d7040cdb 4337
81ecdfbb 4338fi
b879806f
AM
4339fi
4340ac_ct_CC=$ac_cv_prog_ac_ct_CC
4341if test -n "$ac_ct_CC"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4343$as_echo "$ac_ct_CC" >&6; }
4fda8867 4344else
b879806f
AM
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346$as_echo "no" >&6; }
4fda8867
NC
4347fi
4348
b879806f
AM
4349 if test "x$ac_ct_CC" = x; then
4350 CC=""
4351 else
4352 case $cross_compiling:$ac_tool_warned in
4353yes:)
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4356ac_tool_warned=yes ;;
7fb9f789 4357esac
b879806f
AM
4358 CC=$ac_ct_CC
4359 fi
7fb9f789 4360else
b879806f 4361 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4362fi
4363
b879806f
AM
4364if test -z "$CC"; then
4365 if test -n "$ac_tool_prefix"; then
4366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4367set dummy ${ac_tool_prefix}cc; ac_word=$2
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
4370if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4371 $as_echo_n "(cached) " >&6
4372else
b879806f
AM
4373 if test -n "$CC"; then
4374 ac_cv_prog_CC="$CC" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
397841b5 4378do
b879806f
AM
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_CC="${ac_tool_prefix}cc"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388 done
4389IFS=$as_save_IFS
d7040cdb 4390
ce2cded5 4391fi
ce2cded5 4392fi
b879806f
AM
4393CC=$ac_cv_prog_CC
4394if test -n "$CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396$as_echo "$CC" >&6; }
4397else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
81ecdfbb
RW
4400fi
4401
d7040cdb 4402
b879806f 4403 fi
ce2cded5 4404fi
b879806f
AM
4405if test -z "$CC"; then
4406 # Extract the first word of "cc", so it can be a program name with args.
4407set dummy cc; ac_word=$2
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409$as_echo_n "checking for $ac_word... " >&6; }
4410if test "${ac_cv_prog_CC+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
397841b5 4412else
b879806f
AM
4413 if test -n "$CC"; then
4414 ac_cv_prog_CC="$CC" # Let the user override the test.
4415else
4416 ac_prog_rejected=no
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
397841b5 4419do
b879806f
AM
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4425 ac_prog_rejected=yes
4426 continue
4427 fi
4428 ac_cv_prog_CC="cc"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433 done
4434IFS=$as_save_IFS
d7040cdb 4435
b879806f
AM
4436if test $ac_prog_rejected = yes; then
4437 # We found a bogon in the path, so make sure we never use it.
4438 set dummy $ac_cv_prog_CC
4439 shift
4440 if test $# != 0; then
4441 # We chose a different compiler from the bogus one.
4442 # However, it has the same basename, so the bogon will be chosen
4443 # first if we set CC to just the basename; use the full file name.
4444 shift
4445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4446 fi
397841b5 4447fi
397841b5 4448fi
b879806f
AM
4449fi
4450CC=$ac_cv_prog_CC
4451if test -n "$CC"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4453$as_echo "$CC" >&6; }
397841b5 4454else
b879806f
AM
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
ce2cded5 4457fi
d7040cdb 4458
397841b5 4459
b879806f
AM
4460fi
4461if test -z "$CC"; then
4462 if test -n "$ac_tool_prefix"; then
4463 for ac_prog in cl.exe
4464 do
4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4470 $as_echo_n "(cached) " >&6
d7040cdb 4471else
b879806f
AM
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
d7040cdb
SE
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
81ecdfbb 4480 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
397841b5
AM
4487 done
4488IFS=$as_save_IFS
d7040cdb 4489
252b5132 4490fi
b879806f
AM
4491fi
4492CC=$ac_cv_prog_CC
4493if test -n "$CC"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495$as_echo "$CC" >&6; }
4496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
397841b5
AM
4500
4501
b879806f
AM
4502 test -n "$CC" && break
4503 done
4504fi
4505if test -z "$CC"; then
4506 ac_ct_CC=$CC
4507 for ac_prog in cl.exe
4508do
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510set dummy $ac_prog; ac_word=$2
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512$as_echo_n "checking for $ac_word... " >&6; }
4513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4514 $as_echo_n "(cached) " >&6
4515else
b879806f
AM
4516 if test -n "$ac_ct_CC"; then
4517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
397841b5
AM
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
397841b5 4524 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_ac_ct_CC="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530done
397841b5
AM
4531 done
4532IFS=$as_save_IFS
397841b5 4533
397841b5 4534fi
397841b5 4535fi
b879806f
AM
4536ac_ct_CC=$ac_cv_prog_ac_ct_CC
4537if test -n "$ac_ct_CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4539$as_echo "$ac_ct_CC" >&6; }
4540else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
397841b5
AM
4543fi
4544
397841b5 4545
b879806f
AM
4546 test -n "$ac_ct_CC" && break
4547done
397841b5 4548
b879806f
AM
4549 if test "x$ac_ct_CC" = x; then
4550 CC=""
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553yes:)
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556ac_tool_warned=yes ;;
397841b5 4557esac
b879806f
AM
4558 CC=$ac_ct_CC
4559 fi
397841b5
AM
4560fi
4561
397841b5
AM
4562fi
4563
4564
b879806f
AM
4565test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567as_fn_error "no acceptable C compiler found in \$PATH
4568See \`config.log' for more details." "$LINENO" 5; }
397841b5 4569
b879806f
AM
4570# Provide some information about the compiler.
4571$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4572set X $ac_compile
4573ac_compiler=$2
4574for ac_option in --version -v -V -qversion; do
4575 { { ac_try="$ac_compiler $ac_option >&5"
4576case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579esac
4580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581$as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583 ac_status=$?
4584 if test -s conftest.err; then
4585 sed '10a\
4586... rest of stderr output deleted ...
4587 10q' conftest.err >conftest.er1
4588 cat conftest.er1 >&5
4589 rm -f conftest.er1 conftest.err
4590 fi
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4593done
397841b5 4594
b879806f
AM
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4597if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4598 $as_echo_n "(cached) " >&6
4599else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
b879806f 4602
44350750
NC
4603int
4604main ()
4605{
b879806f
AM
4606#ifndef __GNUC__
4607 choke me
4608#endif
4609
4610 ;
44350750
NC
4611 return 0;
4612}
4613_ACEOF
b879806f
AM
4614if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_compiler_gnu=yes
44350750 4616else
b879806f 4617 ac_compiler_gnu=no
44350750 4618fi
b879806f
AM
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
44350750 4622fi
b879806f
AM
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627else
4628 GCC=
4629fi
4630ac_test_CFLAGS=${CFLAGS+set}
4631ac_save_CFLAGS=$CFLAGS
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633$as_echo_n "checking whether $CC accepts -g... " >&6; }
4634if test "${ac_cv_prog_cc_g+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636else
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4639 ac_cv_prog_cc_g=no
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h. */
44350750 4643
b879806f
AM
4644int
4645main ()
4646{
44350750 4647
b879806f
AM
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654else
4655 CFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658
4659int
4660main ()
4661{
44350750 4662
b879806f
AM
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
44350750 4668
b879806f
AM
4669else
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h. */
397841b5 4674
b879806f
AM
4675int
4676main ()
4677{
397841b5 4678
b879806f
AM
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_prog_cc_g=yes
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687fi
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694$as_echo "$ac_cv_prog_cc_g" >&6; }
4695if test "$ac_test_CFLAGS" = set; then
4696 CFLAGS=$ac_save_CFLAGS
4697elif test $ac_cv_prog_cc_g = yes; then
4698 if test "$GCC" = yes; then
4699 CFLAGS="-g -O2"
4700 else
4701 CFLAGS="-g"
4702 fi
4703else
4704 if test "$GCC" = yes; then
4705 CFLAGS="-O2"
4706 else
4707 CFLAGS=
4708 fi
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4712if test "${ac_cv_prog_cc_c89+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714else
4715 ac_cv_prog_cc_c89=no
4716ac_save_CC=$CC
4717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h. */
4719#include <stdarg.h>
4720#include <stdio.h>
4721#include <sys/types.h>
4722#include <sys/stat.h>
4723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4724struct buf { int x; };
4725FILE * (*rcsopen) (struct buf *, struct stat *, int);
4726static char *e (p, i)
4727 char **p;
4728 int i;
4729{
4730 return p[i];
4731}
4732static char *f (char * (*g) (char **, int), char **p, ...)
4733{
4734 char *s;
4735 va_list v;
4736 va_start (v,p);
4737 s = g (p, va_arg (v,int));
4738 va_end (v);
4739 return s;
4740}
df7b86aa 4741
b879806f
AM
4742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4743 function prototypes and stuff, but not '\xHH' hex character constants.
4744 These don't provoke an error unfortunately, instead are silently treated
4745 as 'x'. The following induces an error, until -std is added to get
4746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4747 array size at least. It's necessary to write '\x00'==0 to get something
4748 that's true only with -std. */
4749int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4750
b879806f
AM
4751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4752 inside strings and character constants. */
4753#define FOO(x) 'x'
4754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4755
4756int test (int i, double x);
4757struct s1 {int (*f) (int a);};
4758struct s2 {int (*f) (double a);};
4759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4760int argc;
4761char **argv;
4762int
4763main ()
4764{
4765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4772do
4773 CC="$ac_save_CC $ac_arg"
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_prog_cc_c89=$ac_arg
397841b5 4776fi
b879806f
AM
4777rm -f core conftest.err conftest.$ac_objext
4778 test "x$ac_cv_prog_cc_c89" != "xno" && break
4779done
4780rm -f conftest.$ac_ext
4781CC=$ac_save_CC
4782
397841b5 4783fi
b879806f
AM
4784# AC_CACHE_VAL
4785case "x$ac_cv_prog_cc_c89" in
4786 x)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788$as_echo "none needed" >&6; } ;;
4789 xno)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4791$as_echo "unsupported" >&6; } ;;
4792 *)
4793 CC="$CC $ac_cv_prog_cc_c89"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4796esac
4797if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4798
b879806f 4799fi
397841b5
AM
4800
4801ac_ext=c
4802ac_cpp='$CPP $CPPFLAGS'
4803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4806
4807ac_ext=cpp
4808ac_cpp='$CXXCPP $CPPFLAGS'
4809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4812if test -z "$CXX"; then
4813 if test -n "$CCC"; then
4814 CXX=$CCC
4815 else
4816 if test -n "$ac_tool_prefix"; then
4817 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4818 do
4819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4823if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4824 $as_echo_n "(cached) " >&6
4825else
b879806f
AM
4826 if test -n "$CXX"; then
4827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841 done
4842IFS=$as_save_IFS
4843
4844fi
4845fi
b879806f
AM
4846CXX=$ac_cv_prog_CXX
4847if test -n "$CXX"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4849$as_echo "$CXX" >&6; }
397841b5
AM
4850else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855
b879806f
AM
4856 test -n "$CXX" && break
4857 done
397841b5 4858fi
b879806f
AM
4859if test -z "$CXX"; then
4860 ac_ct_CXX=$CXX
4861 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4862do
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864set dummy $ac_prog; ac_word=$2
397841b5
AM
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4867if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4868 $as_echo_n "(cached) " >&6
252b5132 4869else
b879806f
AM
4870 if test -n "$ac_ct_CXX"; then
4871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4872else
ce2cded5
L
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4880 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4882 break 2
4883 fi
4884done
81ecdfbb
RW
4885 done
4886IFS=$as_save_IFS
4887
252b5132
RH
4888fi
4889fi
b879806f
AM
4890ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4891if test -n "$ac_ct_CXX"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4893$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4894else
81ecdfbb
RW
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896$as_echo "no" >&6; }
d7040cdb
SE
4897fi
4898
81ecdfbb 4899
b879806f 4900 test -n "$ac_ct_CXX" && break
d7040cdb 4901done
d7040cdb 4902
b879806f
AM
4903 if test "x$ac_ct_CXX" = x; then
4904 CXX="g++"
81ecdfbb
RW
4905 else
4906 case $cross_compiling:$ac_tool_warned in
4907yes:)
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910ac_tool_warned=yes ;;
4911esac
b879806f 4912 CXX=$ac_ct_CXX
81ecdfbb 4913 fi
d7040cdb
SE
4914fi
4915
b879806f 4916 fi
d7040cdb 4917fi
ce2cded5 4918# Provide some information about the compiler.
b879806f 4919$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4920set X $ac_compile
4921ac_compiler=$2
4922for ac_option in --version -v -V -qversion; do
4923 { { ac_try="$ac_compiler $ac_option >&5"
4924case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927esac
4928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4929$as_echo "$ac_try_echo"; } >&5
4930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4931 ac_status=$?
81ecdfbb
RW
4932 if test -s conftest.err; then
4933 sed '10a\
4934... rest of stderr output deleted ...
4935 10q' conftest.err >conftest.er1
4936 cat conftest.er1 >&5
4937 rm -f conftest.er1 conftest.err
4938 fi
4939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940 test $ac_status = 0; }
4941done
d7040cdb 4942
b879806f
AM
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4944$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4945if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4946 $as_echo_n "(cached) " >&6
d7040cdb 4947else
81ecdfbb 4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4949/* end confdefs.h. */
d7040cdb 4950
ce2cded5
L
4951int
4952main ()
4953{
4954#ifndef __GNUC__
4955 choke me
4956#endif
4957
4958 ;
4959 return 0;
4960}
4961_ACEOF
b879806f 4962if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4963 ac_compiler_gnu=yes
d7040cdb 4964else
81ecdfbb 4965 ac_compiler_gnu=no
d7040cdb 4966fi
81ecdfbb 4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4968ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4969
ce2cded5 4970fi
b879806f
AM
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4972$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4973if test $ac_compiler_gnu = yes; then
b879806f 4974 GXX=yes
81ecdfbb 4975else
b879806f 4976 GXX=
81ecdfbb 4977fi
b879806f
AM
4978ac_test_CXXFLAGS=${CXXFLAGS+set}
4979ac_save_CXXFLAGS=$CXXFLAGS
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4981$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4982if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4983 $as_echo_n "(cached) " >&6
4984else
b879806f
AM
4985 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4986 ac_cxx_werror_flag=yes
4987 ac_cv_prog_cxx_g=no
4988 CXXFLAGS="-g"
81ecdfbb 4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4990/* end confdefs.h. */
d7040cdb 4991
ce2cded5
L
4992int
4993main ()
4994{
d7040cdb 4995
ce2cded5
L
4996 ;
4997 return 0;
4998}
4999_ACEOF
b879806f
AM
5000if ac_fn_cxx_try_compile "$LINENO"; then :
5001 ac_cv_prog_cxx_g=yes
ce2cded5 5002else
b879806f 5003 CXXFLAGS=""
81ecdfbb
RW
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h. */
5006
5007int
5008main ()
5009{
5010
5011 ;
5012 return 0;
5013}
5014_ACEOF
b879806f 5015if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5016
5017else
b879806f
AM
5018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 CXXFLAGS="-g"
81ecdfbb
RW
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h. */
5022
5023int
5024main ()
5025{
d7040cdb 5026
81ecdfbb
RW
5027 ;
5028 return 0;
5029}
5030_ACEOF
b879806f
AM
5031if ac_fn_cxx_try_compile "$LINENO"; then :
5032 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5037fi
81ecdfbb 5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5040fi
b879806f
AM
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5042$as_echo "$ac_cv_prog_cxx_g" >&6; }
5043if test "$ac_test_CXXFLAGS" = set; then
5044 CXXFLAGS=$ac_save_CXXFLAGS
5045elif test $ac_cv_prog_cxx_g = yes; then
5046 if test "$GXX" = yes; then
5047 CXXFLAGS="-g -O2"
ce2cded5 5048 else
b879806f 5049 CXXFLAGS="-g"
ce2cded5 5050 fi
d7040cdb 5051else
b879806f
AM
5052 if test "$GXX" = yes; then
5053 CXXFLAGS="-O2"
ce2cded5 5054 else
b879806f 5055 CXXFLAGS=
ce2cded5 5056 fi
d7040cdb 5057fi
b879806f
AM
5058ac_ext=c
5059ac_cpp='$CPP $CPPFLAGS'
5060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064depcc="$CXX" am_compiler_list=
5065
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5067$as_echo_n "checking dependency style of $depcc... " >&6; }
5068if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5069 $as_echo_n "(cached) " >&6
d7040cdb 5070else
b879806f
AM
5071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072 # We make a subdir and do the tests there. Otherwise we can end up
5073 # making bogus files that we don't know about and never remove. For
5074 # instance it was reported that on HP-UX the gcc test will end up
5075 # making a dummy file named `D' -- because `-MD' means `put the output
5076 # in D'.
6eb7d830 5077 rm -rf conftest.dir
b879806f
AM
5078 mkdir conftest.dir
5079 # Copy depcomp to subdir because otherwise we won't find it if we're
5080 # using a relative directory.
5081 cp "$am_depcomp" conftest.dir
5082 cd conftest.dir
5083 # We will build objects and dependencies in a subdirectory because
5084 # it helps to detect inapplicable dependency modes. For instance
5085 # both Tru64's cc and ICC support -MD to output dependencies as a
5086 # side effect of compilation, but ICC will put the dependencies in
5087 # the current directory while Tru64 will put them in the object
5088 # directory.
5089 mkdir sub
d7040cdb 5090
b879806f
AM
5091 am_cv_CXX_dependencies_compiler_type=none
5092 if test "$am_compiler_list" = ""; then
5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094 fi
5095 am__universal=false
5096 case " $depcc " in #(
5097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5098 esac
d7040cdb 5099
b879806f
AM
5100 for depmode in $am_compiler_list; do
5101 # Setup a source with many dependencies, because some compilers
5102 # like to wrap large dependency lists on column 80 (with \), and
5103 # we should not choose a depcomp mode which is confused by this.
5104 #
5105 # We need to recreate these files for each test, as the compiler may
5106 # overwrite some of them when testing with obscure command lines.
5107 # This happens at least with the AIX C compiler.
5108 : > sub/conftest.c
5109 for i in 1 2 3 4 5 6; do
5110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5112 # Solaris 8's {/usr,}/bin/sh.
5113 touch sub/conftst$i.h
5114 done
5115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5116
b879806f
AM
5117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5118 # mode. It turns out that the SunPro C++ compiler does not properly
5119 # handle `-M -o', and we need to detect this. Also, some Intel
5120 # versions had trouble with output in subdirs
5121 am__obj=sub/conftest.${OBJEXT-o}
5122 am__minus_obj="-o $am__obj"
5123 case $depmode in
5124 gcc)
5125 # This depmode causes a compiler race in universal mode.
5126 test "$am__universal" = false || continue
5127 ;;
5128 nosideeffect)
5129 # after this tag, mechanisms are not by side-effect, so they'll
5130 # only be used when explicitly requested
5131 if test "x$enable_dependency_tracking" = xyes; then
5132 continue
5133 else
5134 break
5135 fi
5136 ;;
6eb7d830 5137 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
b879806f
AM
5138 # This compiler won't grok `-c -o', but also, the minuso test has
5139 # not run yet. These depmodes are late enough in the game, and
5140 # so weak that their functioning should not be impacted.
5141 am__obj=conftest.${OBJEXT-o}
5142 am__minus_obj=
5143 ;;
5144 none) break ;;
5145 esac
5146 if depmode=$depmode \
5147 source=sub/conftest.c object=$am__obj \
5148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5150 >/dev/null 2>conftest.err &&
5151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155 # icc doesn't choke on unknown options, it will just issue warnings
5156 # or remarks (even with -Werror). So we grep stderr for any message
5157 # that says an option was ignored or not supported.
5158 # When given -MP, icc 7.0 and 7.1 complain thusly:
5159 # icc: Command line warning: ignoring option '-M'; no argument required
5160 # The diagnosis changed in icc 8.0:
5161 # icc: Command line remark: option '-MP' not supported
5162 if (grep 'ignoring option' conftest.err ||
5163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164 am_cv_CXX_dependencies_compiler_type=$depmode
5165 break
5166 fi
5167 fi
5168 done
5169
5170 cd ..
5171 rm -rf conftest.dir
5172else
5173 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5174fi
d7040cdb 5175
ce2cded5 5176fi
b879806f
AM
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5178$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5179CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5180
b879806f
AM
5181 if
5182 test "x$enable_dependency_tracking" != xno \
5183 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5184 am__fastdepCXX_TRUE=
5185 am__fastdepCXX_FALSE='#'
5186else
5187 am__fastdepCXX_TRUE='#'
5188 am__fastdepCXX_FALSE=
ce2cded5 5189fi
d7040cdb 5190
b879806f 5191
68880f31
CLT
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5193$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5194if test "${ac_cv_path_GREP+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196else
5197 if test -z "$GREP"; then
5198 ac_path_GREP_found=false
5199 # Loop through the user's path and test for each of PROGNAME-LIST
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_prog in grep ggrep; do
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5208 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5209# Check for GNU ac_path_GREP and select it if it is found.
5210 # Check for GNU $ac_path_GREP
5211case `"$ac_path_GREP" --version 2>&1` in
5212*GNU*)
5213 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5214*)
5215 ac_count=0
5216 $as_echo_n 0123456789 >"conftest.in"
5217 while :
5218 do
5219 cat "conftest.in" "conftest.in" >"conftest.tmp"
5220 mv "conftest.tmp" "conftest.in"
5221 cp "conftest.in" "conftest.nl"
5222 $as_echo 'GREP' >> "conftest.nl"
5223 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225 as_fn_arith $ac_count + 1 && ac_count=$as_val
5226 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5227 # Best one so far, save it but keep looking for a better one
5228 ac_cv_path_GREP="$ac_path_GREP"
5229 ac_path_GREP_max=$ac_count
5230 fi
5231 # 10*(2^10) chars as input seems more than enough
5232 test $ac_count -gt 10 && break
5233 done
5234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235esac
5236
5237 $ac_path_GREP_found && break 3
5238 done
5239 done
5240 done
5241IFS=$as_save_IFS
5242 if test -z "$ac_cv_path_GREP"; then
5243 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5244 fi
5245else
5246 ac_cv_path_GREP=$GREP
5247fi
5248
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5251$as_echo "$ac_cv_path_GREP" >&6; }
5252 GREP="$ac_cv_path_GREP"
5253
5254
ce2cded5
L
5255ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5261$as_echo_n "checking how to run the C preprocessor... " >&6; }
5262# On Suns, sometimes $CPP names a directory.
5263if test -n "$CPP" && test -d "$CPP"; then
5264 CPP=
7357c5b6 5265fi
b879806f
AM
5266if test -z "$CPP"; then
5267 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5268 $as_echo_n "(cached) " >&6
5269else
b879806f
AM
5270 # Double quotes because CPP needs to be expanded
5271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5272 do
5273 ac_preproc_ok=false
5274for ac_c_preproc_warn_flag in '' yes
3cb62297 5275do
b879806f
AM
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#ifdef __STDC__
5285# include <limits.h>
5286#else
5287# include <assert.h>
5288#endif
5289 Syntax error
5290_ACEOF
5291if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5292
3cb62297 5293else
b879806f
AM
5294 # Broken: fails on valid input.
5295continue
7357c5b6 5296fi
b879806f 5297rm -f conftest.err conftest.$ac_ext
252b5132 5298
b879806f
AM
5299 # OK, works on sane cases. Now check whether nonexistent headers
5300 # can be detected and how.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h. */
5303#include <ac_nonexistent.h>
5304_ACEOF
5305if ac_fn_c_try_cpp "$LINENO"; then :
5306 # Broken: success on invalid input.
5307continue
5308else
5309 # Passes both tests.
5310ac_preproc_ok=:
5311break
5312fi
5313rm -f conftest.err conftest.$ac_ext
42ecbf5e 5314
3cb62297 5315done
b879806f
AM
5316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317rm -f conftest.err conftest.$ac_ext
5318if $ac_preproc_ok; then :
5319 break
7357c5b6 5320fi
ac48eca1 5321
b879806f
AM
5322 done
5323 ac_cv_prog_CPP=$CPP
d7040cdb 5324
b879806f
AM
5325fi
5326 CPP=$ac_cv_prog_CPP
7357c5b6 5327else
b879806f
AM
5328 ac_cv_prog_CPP=$CPP
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5331$as_echo "$CPP" >&6; }
5332ac_preproc_ok=false
5333for ac_c_preproc_warn_flag in '' yes
5334do
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5342/* end confdefs.h. */
b879806f
AM
5343#ifdef __STDC__
5344# include <limits.h>
5345#else
5346# include <assert.h>
3cb62297 5347#endif
b879806f 5348 Syntax error
7357c5b6 5349_ACEOF
b879806f
AM
5350if ac_fn_c_try_cpp "$LINENO"; then :
5351
81ecdfbb 5352else
b879806f
AM
5353 # Broken: fails on valid input.
5354continue
7357c5b6 5355fi
b879806f 5356rm -f conftest.err conftest.$ac_ext
81ecdfbb 5357
b879806f
AM
5358 # OK, works on sane cases. Now check whether nonexistent headers
5359 # can be detected and how.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362#include <ac_nonexistent.h>
5363_ACEOF
5364if ac_fn_c_try_cpp "$LINENO"; then :
5365 # Broken: success on invalid input.
5366continue
3cb62297 5367else
b879806f
AM
5368 # Passes both tests.
5369ac_preproc_ok=:
5370break
7357c5b6 5371fi
b879806f 5372rm -f conftest.err conftest.$ac_ext
252b5132 5373
b879806f
AM
5374done
5375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376rm -f conftest.err conftest.$ac_ext
5377if $ac_preproc_ok; then :
252b5132 5378
3cb62297 5379else
b879806f
AM
5380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382as_fn_error "C preprocessor \"$CPP\" fails sanity check
5383See \`config.log' for more details." "$LINENO" 5; }
5384fi
42ecbf5e 5385
b879806f
AM
5386ac_ext=c
5387ac_cpp='$CPP $CPPFLAGS'
5388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5391
5392
b879806f
AM
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5394$as_echo_n "checking for egrep... " >&6; }
5395if test "${ac_cv_path_EGREP+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397else
5398 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5399 then ac_cv_path_EGREP="$GREP -E"
5400 else
5401 if test -z "$EGREP"; then
5402 ac_path_EGREP_found=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_prog in egrep; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5412 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5413# Check for GNU ac_path_EGREP and select it if it is found.
5414 # Check for GNU $ac_path_EGREP
5415case `"$ac_path_EGREP" --version 2>&1` in
5416*GNU*)
5417 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5418*)
5419 ac_count=0
5420 $as_echo_n 0123456789 >"conftest.in"
5421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'EGREP' >> "conftest.nl"
5427 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429 as_fn_arith $ac_count + 1 && ac_count=$as_val
5430 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_EGREP="$ac_path_EGREP"
5433 ac_path_EGREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439esac
5440
5441 $ac_path_EGREP_found && break 3
5442 done
5443 done
5444 done
5445IFS=$as_save_IFS
5446 if test -z "$ac_cv_path_EGREP"; then
5447 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 fi
5449else
5450 ac_cv_path_EGREP=$EGREP
5451fi
5452
5453 fi
5454fi
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5456$as_echo "$ac_cv_path_EGREP" >&6; }
5457 EGREP="$ac_cv_path_EGREP"
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5461$as_echo_n "checking for ANSI C header files... " >&6; }
5462if test "${ac_cv_header_stdc+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5466/* end confdefs.h. */
b879806f
AM
5467#include <stdlib.h>
5468#include <stdarg.h>
5469#include <string.h>
5470#include <float.h>
42ecbf5e 5471
3cb62297
L
5472int
5473main ()
5474{
42ecbf5e 5475
3cb62297
L
5476 ;
5477 return 0;
5478}
5479_ACEOF
b879806f
AM
5480if ac_fn_c_try_compile "$LINENO"; then :
5481 ac_cv_header_stdc=yes
5482else
5483 ac_cv_header_stdc=no
3cb62297
L
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5486
5487if test $ac_cv_header_stdc = yes; then
5488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491#include <string.h>
5492
5493_ACEOF
5494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495 $EGREP "memchr" >/dev/null 2>&1; then :
5496
5497else
5498 ac_cv_header_stdc=no
3cb62297 5499fi
b879806f
AM
5500rm -f conftest*
5501
3cb62297 5502fi
b879806f
AM
5503
5504if test $ac_cv_header_stdc = yes; then
5505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h. */
5508#include <stdlib.h>
5509
5510_ACEOF
5511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512 $EGREP "free" >/dev/null 2>&1; then :
5513
ce2cded5 5514else
b879806f 5515 ac_cv_header_stdc=no
ce2cded5 5516fi
b879806f 5517rm -f conftest*
42ecbf5e 5518
b879806f 5519fi
e5a52504 5520
b879806f
AM
5521if test $ac_cv_header_stdc = yes; then
5522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5523 if test "$cross_compiling" = yes; then :
5524 :
3cb62297 5525else
b879806f
AM
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h. */
5528#include <ctype.h>
5529#include <stdlib.h>
5530#if ((' ' & 0x0FF) == 0x020)
5531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5533#else
5534# define ISLOWER(c) \
5535 (('a' <= (c) && (c) <= 'i') \
5536 || ('j' <= (c) && (c) <= 'r') \
5537 || ('s' <= (c) && (c) <= 'z'))
5538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5539#endif
3cb62297
L
5540
5541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5542int
5543main ()
5544{
5545 int i;
5546 for (i = 0; i < 256; i++)
5547 if (XOR (islower (i), ISLOWER (i))
5548 || toupper (i) != TOUPPER (i))
5549 return 2;
5550 return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_run "$LINENO"; then :
5554
5555else
5556 ac_cv_header_stdc=no
5557fi
5558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5559 conftest.$ac_objext conftest.beam conftest.$ac_ext
5560fi
5561
5562fi
5563fi
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5565$as_echo "$ac_cv_header_stdc" >&6; }
5566if test $ac_cv_header_stdc = yes; then
5567
5568$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5569
5570fi
5571
5572# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5573for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5574 inttypes.h stdint.h unistd.h
5575do :
5576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5577ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5578"
5579eval as_val=\$$as_ac_Header
5580 if test "x$as_val" = x""yes; then :
5581 cat >>confdefs.h <<_ACEOF
5582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583_ACEOF
5584
5585fi
5586
5587done
5588
5589
5590
5591 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5592if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5593 MINIX=yes
5594else
5595 MINIX=
5596fi
5597
5598
5599 if test "$MINIX" = yes; then
5600
5601$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5602
5603
5604$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5605
5606
5607$as_echo "#define _MINIX 1" >>confdefs.h
5608
5609 fi
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5613$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5614if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616else
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619
5620# define __EXTENSIONS__ 1
5621 $ac_includes_default
5622int
5623main ()
5624{
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 ac_cv_safe_to_define___extensions__=yes
5632else
5633 ac_cv_safe_to_define___extensions__=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5638$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5639 test $ac_cv_safe_to_define___extensions__ = yes &&
5640 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5641
5642 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5643
5644 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5645
5646 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5647
5648 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5649
5650
5651
5652
5653
3cb62297 5654
b879806f
AM
5655case `pwd` in
5656 *\ * | *\ *)
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5658$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5659esac
3cb62297
L
5660
5661
da2f07f1 5662
b879806f
AM
5663macro_version='2.2.7a'
5664macro_revision='1.3134'
d7040cdb 5665
d7040cdb
SE
5666
5667
d7040cdb 5668
d7040cdb 5669
42ecbf5e 5670
d7040cdb 5671
252b5132 5672
252b5132 5673
252b5132 5674
252b5132
RH
5675
5676
ce2cded5 5677
b214d478 5678ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5679
3725885a
RW
5680# Backslashify metacharacters that are still active within
5681# double-quoted strings.
5682sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5683
5684# Same as above, but do not quote variable references.
5685double_quote_subst='s/\(["`\\]\)/\\\1/g'
5686
5687# Sed substitution to delay expansion of an escaped shell variable in a
5688# double_quote_subst'ed string.
5689delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5690
5691# Sed substitution to delay expansion of an escaped single quote.
5692delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5693
5694# Sed substitution to avoid accidental globbing in evaled expressions
5695no_glob_subst='s/\*/\\\*/g'
5696
5697ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5698ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5699ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5702$as_echo_n "checking how to print strings... " >&6; }
5703# Test print first, because it will be a builtin if present.
5704if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5705 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5706 ECHO='print -r --'
5707elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5708 ECHO='printf %s\n'
5709else
5710 # Use this function as a fallback that always works.
5711 func_fallback_echo ()
5712 {
5713 eval 'cat <<_LTECHO_EOF
5714$1
5715_LTECHO_EOF'
5716 }
5717 ECHO='func_fallback_echo'
5718fi
5719
5720# func_echo_all arg...
5721# Invoke $ECHO with all args, space-separated.
5722func_echo_all ()
5723{
5724 $ECHO ""
5725}
5726
5727case "$ECHO" in
5728 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5729$as_echo "printf" >&6; } ;;
5730 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5731$as_echo "print -r" >&6; } ;;
5732 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5733$as_echo "cat" >&6; } ;;
5734esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
81ecdfbb
RW
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5750$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5751if test "${ac_cv_path_SED+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753else
5754 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5755 for ac_i in 1 2 3 4 5 6 7; do
5756 ac_script="$ac_script$as_nl$ac_script"
5757 done
5758 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5759 { ac_script=; unset ac_script;}
5760 if test -z "$SED"; then
5761 ac_path_SED_found=false
5762 # Loop through the user's path and test for each of PROGNAME-LIST
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
81ecdfbb 5768 for ac_prog in sed gsed; do
7357c5b6 5769 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5770 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5771 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5772# Check for GNU ac_path_SED and select it if it is found.
5773 # Check for GNU $ac_path_SED
5774case `"$ac_path_SED" --version 2>&1` in
5775*GNU*)
5776 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5777*)
5778 ac_count=0
5779 $as_echo_n 0123456789 >"conftest.in"
5780 while :
5781 do
5782 cat "conftest.in" "conftest.in" >"conftest.tmp"
5783 mv "conftest.tmp" "conftest.in"
5784 cp "conftest.in" "conftest.nl"
5785 $as_echo '' >> "conftest.nl"
5786 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5788 as_fn_arith $ac_count + 1 && ac_count=$as_val
5789 if test $ac_count -gt ${ac_path_SED_max-0}; then
5790 # Best one so far, save it but keep looking for a better one
5791 ac_cv_path_SED="$ac_path_SED"
5792 ac_path_SED_max=$ac_count
5793 fi
5794 # 10*(2^10) chars as input seems more than enough
5795 test $ac_count -gt 10 && break
5796 done
5797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5798esac
5799
5800 $ac_path_SED_found && break 3
7357c5b6
AM
5801 done
5802 done
81ecdfbb 5803 done
7357c5b6 5804IFS=$as_save_IFS
81ecdfbb
RW
5805 if test -z "$ac_cv_path_SED"; then
5806 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5807 fi
81ecdfbb
RW
5808else
5809 ac_cv_path_SED=$SED
7357c5b6 5810fi
20e95c23 5811
81ecdfbb
RW
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5814$as_echo "$ac_cv_path_SED" >&6; }
5815 SED="$ac_cv_path_SED"
5816 rm -f conftest.sed
20e95c23 5817
7357c5b6
AM
5818test -z "$SED" && SED=sed
5819Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5820
5821
5822
5823
5824
5825
20e95c23 5826
20e95c23 5827
d7040cdb 5828
d7040cdb 5829
7357c5b6 5830
81ecdfbb
RW
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5832$as_echo_n "checking for fgrep... " >&6; }
5833if test "${ac_cv_path_FGREP+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
7357c5b6 5835else
81ecdfbb
RW
5836 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5837 then ac_cv_path_FGREP="$GREP -F"
5838 else
5839 if test -z "$FGREP"; then
5840 ac_path_FGREP_found=false
5841 # Loop through the user's path and test for each of PROGNAME-LIST
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5844do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_prog in fgrep; do
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5850 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5851# Check for GNU ac_path_FGREP and select it if it is found.
5852 # Check for GNU $ac_path_FGREP
5853case `"$ac_path_FGREP" --version 2>&1` in
5854*GNU*)
5855 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5856*)
5857 ac_count=0
5858 $as_echo_n 0123456789 >"conftest.in"
5859 while :
5860 do
5861 cat "conftest.in" "conftest.in" >"conftest.tmp"
5862 mv "conftest.tmp" "conftest.in"
5863 cp "conftest.in" "conftest.nl"
5864 $as_echo 'FGREP' >> "conftest.nl"
5865 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5867 as_fn_arith $ac_count + 1 && ac_count=$as_val
5868 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5869 # Best one so far, save it but keep looking for a better one
5870 ac_cv_path_FGREP="$ac_path_FGREP"
5871 ac_path_FGREP_max=$ac_count
7357c5b6 5872 fi
81ecdfbb
RW
5873 # 10*(2^10) chars as input seems more than enough
5874 test $ac_count -gt 10 && break
5875 done
5876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5877esac
5878
5879 $ac_path_FGREP_found && break 3
5880 done
5881 done
5882 done
5883IFS=$as_save_IFS
5884 if test -z "$ac_cv_path_FGREP"; then
5885 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5886 fi
5887else
5888 ac_cv_path_FGREP=$FGREP
5889fi
5890
5891 fi
20e95c23 5892fi
81ecdfbb
RW
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5894$as_echo "$ac_cv_path_FGREP" >&6; }
5895 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5896
5897
5898test -z "$GREP" && GREP=grep
5899
d7040cdb
SE
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
20e95c23 5911
ce2cded5 5912
d7040cdb 5913
7357c5b6
AM
5914
5915
5916
5917
81ecdfbb
RW
5918# Check whether --with-gnu-ld was given.
5919if test "${with_gnu_ld+set}" = set; then :
5920 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5921else
5922 with_gnu_ld=no
81ecdfbb
RW
5923fi
5924
7357c5b6
AM
5925ac_prog=ld
5926if test "$GCC" = yes; then
5927 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5929$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5930 case $host in
5931 *-*-mingw*)
5932 # gcc leaves a trailing carriage return which upsets mingw
5933 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5934 *)
5935 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5936 esac
5937 case $ac_prog in
5938 # Accept absolute paths.
5939 [\\/]* | ?:[\\/]*)
5940 re_direlt='/[^/][^/]*/\.\./'
5941 # Canonicalize the pathname of ld
5942 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5943 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5944 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5945 done
5946 test -z "$LD" && LD="$ac_prog"
5947 ;;
5948 "")
5949 # If it fails, then pretend we aren't using GCC.
5950 ac_prog=ld
5951 ;;
5952 *)
5953 # If it is relative, then search for the first ld in PATH.
5954 with_gnu_ld=unknown
5955 ;;
5956 esac
5957elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5959$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5960else
81ecdfbb
RW
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5962$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5963fi
81ecdfbb
RW
5964if test "${lt_cv_path_LD+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
ce2cded5 5966else
7357c5b6
AM
5967 if test -z "$LD"; then
5968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5969 for ac_dir in $PATH; do
5970 IFS="$lt_save_ifs"
5971 test -z "$ac_dir" && ac_dir=.
5972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5973 lt_cv_path_LD="$ac_dir/$ac_prog"
5974 # Check to see if the program is GNU ld. I'd rather use --version,
5975 # but apparently some variants of GNU ld only accept -v.
5976 # Break only if it was the GNU/non-GNU ld that we prefer.
5977 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5978 *GNU* | *'with BFD'*)
5979 test "$with_gnu_ld" != no && break
5980 ;;
5981 *)
5982 test "$with_gnu_ld" != yes && break
5983 ;;
5984 esac
5985 fi
5986 done
5987 IFS="$lt_save_ifs"
ce2cded5 5988else
7357c5b6 5989 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5990fi
5991fi
7357c5b6
AM
5992
5993LD="$lt_cv_path_LD"
5994if test -n "$LD"; then
81ecdfbb
RW
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5996$as_echo "$LD" >&6; }
ce2cded5 5997else
81ecdfbb
RW
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
ce2cded5 6000fi
81ecdfbb
RW
6001test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6003$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6004if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
ce2cded5 6006else
7357c5b6
AM
6007 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6008case `$LD -v 2>&1 </dev/null` in
6009*GNU* | *'with BFD'*)
6010 lt_cv_prog_gnu_ld=yes
6011 ;;
6012*)
6013 lt_cv_prog_gnu_ld=no
6014 ;;
6015esac
ce2cded5 6016fi
81ecdfbb
RW
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6018$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6019with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6020
6021
6022
6023
6024
6025
6026
6027
6028
81ecdfbb
RW
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6030$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6031if test "${lt_cv_path_NM+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
ce2cded5 6033else
7357c5b6
AM
6034 if test -n "$NM"; then
6035 # Let the user override the test.
6036 lt_cv_path_NM="$NM"
ce2cded5 6037else
7357c5b6
AM
6038 lt_nm_to_check="${ac_tool_prefix}nm"
6039 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6040 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6041 fi
7357c5b6
AM
6042 for lt_tmp_nm in $lt_nm_to_check; do
6043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6044 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6045 IFS="$lt_save_ifs"
6046 test -z "$ac_dir" && ac_dir=.
6047 tmp_nm="$ac_dir/$lt_tmp_nm"
6048 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6049 # Check to see if the nm accepts a BSD-compat flag.
6050 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6051 # nm: unknown option "B" ignored
6052 # Tru64's nm complains that /dev/null is an invalid object file
6053 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6054 */dev/null* | *'Invalid file or object type'*)
6055 lt_cv_path_NM="$tmp_nm -B"
6056 break
6057 ;;
6058 *)
6059 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6060 */dev/null*)
6061 lt_cv_path_NM="$tmp_nm -p"
6062 break
6063 ;;
6064 *)
6065 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6066 continue # so that we can try to find one that supports BSD flags
6067 ;;
6068 esac
6069 ;;
6070 esac
6071 fi
6072 done
6073 IFS="$lt_save_ifs"
6074 done
6075 : ${lt_cv_path_NM=no}
ce2cded5
L
6076fi
6077fi
81ecdfbb
RW
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6079$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6080if test "$lt_cv_path_NM" != "no"; then
6081 NM="$lt_cv_path_NM"
ce2cded5 6082else
7357c5b6 6083 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6084 if test -n "$DUMPBIN"; then :
6085 # Let the user override the test.
6086 else
6087 if test -n "$ac_tool_prefix"; then
6088 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6089 do
6090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6091set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
20e95c23 6096else
7357c5b6
AM
6097 if test -n "$DUMPBIN"; then
6098 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6107 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6109 break 2
6110 fi
6111done
81ecdfbb
RW
6112 done
6113IFS=$as_save_IFS
d7040cdb 6114
20e95c23 6115fi
ce2cded5 6116fi
7357c5b6
AM
6117DUMPBIN=$ac_cv_prog_DUMPBIN
6118if test -n "$DUMPBIN"; then
81ecdfbb
RW
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6120$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6121else
81ecdfbb
RW
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
42ecbf5e
DJ
6124fi
6125
81ecdfbb 6126
7357c5b6
AM
6127 test -n "$DUMPBIN" && break
6128 done
ce2cded5 6129fi
7357c5b6
AM
6130if test -z "$DUMPBIN"; then
6131 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6132 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6133do
6134 # Extract the first word of "$ac_prog", so it can be a program name with args.
6135set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
42ecbf5e 6140else
7357c5b6
AM
6141 if test -n "$ac_ct_DUMPBIN"; then
6142 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6151 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6153 break 2
6154 fi
6155done
81ecdfbb
RW
6156 done
6157IFS=$as_save_IFS
d7040cdb 6158
ce2cded5
L
6159fi
6160fi
7357c5b6
AM
6161ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6162if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6164$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6165else
81ecdfbb
RW
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
ce2cded5 6168fi
d7040cdb 6169
81ecdfbb 6170
7357c5b6 6171 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6172done
d7040cdb 6173
81ecdfbb
RW
6174 if test "x$ac_ct_DUMPBIN" = x; then
6175 DUMPBIN=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178yes:)
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183 DUMPBIN=$ac_ct_DUMPBIN
6184 fi
ce2cded5 6185fi
7357c5b6 6186
3725885a
RW
6187 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6188 *COFF*)
6189 DUMPBIN="$DUMPBIN -symbols"
6190 ;;
6191 *)
6192 DUMPBIN=:
6193 ;;
6194 esac
6195 fi
7357c5b6
AM
6196
6197 if test "$DUMPBIN" != ":"; then
6198 NM="$DUMPBIN"
6199 fi
ce2cded5 6200fi
7357c5b6
AM
6201test -z "$NM" && NM=nm
6202
6203
6204
6205
6206
6207
81ecdfbb
RW
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6209$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6210if test "${lt_cv_nm_interface+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
20e95c23 6212else
7357c5b6
AM
6213 lt_cv_nm_interface="BSD nm"
6214 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6215 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6216 (eval "$ac_compile" 2>conftest.err)
6217 cat conftest.err >&5
3725885a 6218 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6219 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6220 cat conftest.err >&5
3725885a 6221 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6222 cat conftest.out >&5
6223 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6224 lt_cv_nm_interface="MS dumpbin"
6225 fi
6226 rm -f conftest*
20e95c23 6227fi
81ecdfbb
RW
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6229$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6230
81ecdfbb
RW
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6232$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6233LN_S=$as_ln_s
6234if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6236$as_echo "yes" >&6; }
ce2cded5 6237else
81ecdfbb
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6239$as_echo "no, using $LN_S" >&6; }
d7040cdb 6240fi
20e95c23 6241
7357c5b6 6242# find the maximum length of command line arguments
81ecdfbb
RW
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6244$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6245if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
7357c5b6
AM
6247else
6248 i=0
6249 teststring="ABCD"
20e95c23 6250
7357c5b6
AM
6251 case $build_os in
6252 msdosdjgpp*)
6253 # On DJGPP, this test can blow up pretty badly due to problems in libc
6254 # (any single argument exceeding 2000 bytes causes a buffer overrun
6255 # during glob expansion). Even if it were fixed, the result of this
6256 # check would be larger than it should be.
6257 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6258 ;;
20e95c23 6259
7357c5b6
AM
6260 gnu*)
6261 # Under GNU Hurd, this test is not required because there is
6262 # no limit to the length of command line arguments.
6263 # Libtool will interpret -1 as no limit whatsoever
6264 lt_cv_sys_max_cmd_len=-1;
6265 ;;
20e95c23 6266
b214d478 6267 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6268 # On Win9x/ME, this test blows up -- it succeeds, but takes
6269 # about 5 minutes as the teststring grows exponentially.
6270 # Worse, since 9x/ME are not pre-emptively multitasking,
6271 # you end up with a "frozen" computer, even though with patience
6272 # the test eventually succeeds (with a max line length of 256k).
6273 # Instead, let's just punt: use the minimum linelength reported by
6274 # all of the supported platforms: 8192 (on NT/2K/XP).
6275 lt_cv_sys_max_cmd_len=8192;
6276 ;;
20e95c23 6277
3725885a
RW
6278 mint*)
6279 # On MiNT this can take a long time and run out of memory.
6280 lt_cv_sys_max_cmd_len=8192;
6281 ;;
6282
7357c5b6
AM
6283 amigaos*)
6284 # On AmigaOS with pdksh, this test takes hours, literally.
6285 # So we just punt and use a minimum line length of 8192.
6286 lt_cv_sys_max_cmd_len=8192;
6287 ;;
20e95c23 6288
7357c5b6
AM
6289 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6290 # This has been around since 386BSD, at least. Likely further.
6291 if test -x /sbin/sysctl; then
6292 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6293 elif test -x /usr/sbin/sysctl; then
6294 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6295 else
6296 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6297 fi
6298 # And add a safety zone
6299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6301 ;;
d7040cdb 6302
7357c5b6
AM
6303 interix*)
6304 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6305 lt_cv_sys_max_cmd_len=196608
6306 ;;
d7040cdb 6307
7357c5b6
AM
6308 osf*)
6309 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6310 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6311 # nice to cause kernel panics so lets avoid the loop below.
6312 # First set a reasonable default.
6313 lt_cv_sys_max_cmd_len=16384
6314 #
6315 if test -x /sbin/sysconfig; then
6316 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6317 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6318 esac
6319 fi
6320 ;;
6321 sco3.2v5*)
6322 lt_cv_sys_max_cmd_len=102400
6323 ;;
6324 sysv5* | sco5v6* | sysv4.2uw2*)
6325 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6326 if test -n "$kargmax"; then
6327 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6328 else
6329 lt_cv_sys_max_cmd_len=32768
6330 fi
ce2cded5
L
6331 ;;
6332 *)
b214d478
SE
6333 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6334 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6337 else
6338 # Make teststring a little bigger before we do anything with it.
6339 # a 1K string should be a reasonable start.
6340 for i in 1 2 3 4 5 6 7 8 ; do
6341 teststring=$teststring$teststring
6342 done
6343 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6344 # If test is not a shell built-in, we'll probably end up computing a
6345 # maximum length that is only half of the actual maximum length, but
6346 # we can't tell.
3725885a
RW
6347 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6348 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6349 test $i != 17 # 1/2 MB should be enough
6350 do
6351 i=`expr $i + 1`
6352 teststring=$teststring$teststring
6353 done
6354 # Only check the string length outside the loop.
6355 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6356 teststring=
6357 # Add a significant safety factor because C++ compilers can tack on
6358 # massive amounts of additional arguments before passing them to the
6359 # linker. It appears as though 1/2 is a usable value.
6360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6361 fi
ce2cded5
L
6362 ;;
6363 esac
d7040cdb 6364
7357c5b6 6365fi
d7040cdb 6366
7357c5b6 6367if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6369$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6370else
81ecdfbb
RW
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6372$as_echo "none" >&6; }
7357c5b6
AM
6373fi
6374max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6375
6376
6377
6378
6379
d7040cdb 6380
7357c5b6
AM
6381: ${CP="cp -f"}
6382: ${MV="mv -f"}
6383: ${RM="rm -f"}
d7040cdb 6384
81ecdfbb
RW
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6386$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6387# Try some XSI features
6388xsi_shell=no
6389( _lt_dummy="a/b/c"
6390 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6391 = c,a/b,, \
6392 && eval 'test $(( 1 + 1 )) -eq 2 \
6393 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6394 && xsi_shell=yes
81ecdfbb
RW
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6396$as_echo "$xsi_shell" >&6; }
d7040cdb 6397
d7040cdb 6398
81ecdfbb
RW
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6400$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6401lt_shell_append=no
6402( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6403 >/dev/null 2>&1 \
6404 && lt_shell_append=yes
81ecdfbb
RW
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6406$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6407
6408
7357c5b6
AM
6409if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6410 lt_unset=unset
6411else
6412 lt_unset=false
6413fi
d7040cdb 6414
d7040cdb 6415
d7040cdb 6416
d7040cdb 6417
d7040cdb 6418
7357c5b6
AM
6419# test EBCDIC or ASCII
6420case `echo X|tr X '\101'` in
6421 A) # ASCII based system
6422 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6423 lt_SP2NL='tr \040 \012'
6424 lt_NL2SP='tr \015\012 \040\040'
6425 ;;
6426 *) # EBCDIC based system
6427 lt_SP2NL='tr \100 \n'
6428 lt_NL2SP='tr \r\n \100\100'
6429 ;;
6430esac
42ecbf5e 6431
d7040cdb
SE
6432
6433
6434
6435
6436
6437
d7040cdb 6438
d7040cdb 6439
81ecdfbb
RW
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6441$as_echo_n "checking for $LD option to reload object files... " >&6; }
6442if test "${lt_cv_ld_reload_flag+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
7357c5b6
AM
6444else
6445 lt_cv_ld_reload_flag='-r'
6446fi
81ecdfbb
RW
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6448$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6449reload_flag=$lt_cv_ld_reload_flag
6450case $reload_flag in
6451"" | " "*) ;;
6452*) reload_flag=" $reload_flag" ;;
6453esac
6454reload_cmds='$LD$reload_flag -o $output$reload_objs'
6455case $host_os in
6456 darwin*)
6457 if test "$GCC" = yes; then
6458 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6459 else
6460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6461 fi
6462 ;;
6463esac
d7040cdb 6464
d7040cdb 6465
d7040cdb 6466
d7040cdb 6467
d7040cdb 6468
d7040cdb 6469
d7040cdb 6470
d7040cdb 6471
d7040cdb 6472
b214d478
SE
6473if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6475set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477$as_echo_n "checking for $ac_word... " >&6; }
6478if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
b214d478
SE
6480else
6481 if test -n "$OBJDUMP"; then
6482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6483else
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6491 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6493 break 2
6494 fi
6495done
81ecdfbb
RW
6496 done
6497IFS=$as_save_IFS
b214d478
SE
6498
6499fi
6500fi
6501OBJDUMP=$ac_cv_prog_OBJDUMP
6502if test -n "$OBJDUMP"; then
81ecdfbb
RW
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6504$as_echo "$OBJDUMP" >&6; }
b214d478 6505else
81ecdfbb
RW
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; }
b214d478
SE
6508fi
6509
81ecdfbb 6510
b214d478
SE
6511fi
6512if test -z "$ac_cv_prog_OBJDUMP"; then
6513 ac_ct_OBJDUMP=$OBJDUMP
6514 # Extract the first word of "objdump", so it can be a program name with args.
6515set dummy objdump; ac_word=$2
81ecdfbb
RW
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
6518if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
b214d478
SE
6520else
6521 if test -n "$ac_ct_OBJDUMP"; then
6522 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6531 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6533 break 2
6534 fi
6535done
81ecdfbb
RW
6536 done
6537IFS=$as_save_IFS
b214d478 6538
b214d478
SE
6539fi
6540fi
6541ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6542if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6544$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6545else
81ecdfbb
RW
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
b214d478
SE
6548fi
6549
81ecdfbb
RW
6550 if test "x$ac_ct_OBJDUMP" = x; then
6551 OBJDUMP="false"
6552 else
6553 case $cross_compiling:$ac_tool_warned in
6554yes:)
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557ac_tool_warned=yes ;;
6558esac
6559 OBJDUMP=$ac_ct_OBJDUMP
6560 fi
b214d478
SE
6561else
6562 OBJDUMP="$ac_cv_prog_OBJDUMP"
6563fi
6564
6565test -z "$OBJDUMP" && OBJDUMP=objdump
6566
6567
6568
6569
6570
6571
6572
6573
d7040cdb 6574
81ecdfbb
RW
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6576$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6577if test "${lt_cv_deplibs_check_method+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
ce2cded5 6579else
7357c5b6
AM
6580 lt_cv_file_magic_cmd='$MAGIC_CMD'
6581lt_cv_file_magic_test_file=
6582lt_cv_deplibs_check_method='unknown'
6583# Need to set the preceding variable on all platforms that support
6584# interlibrary dependencies.
6585# 'none' -- dependencies not supported.
6586# `unknown' -- same as none, but documents that we really don't know.
6587# 'pass_all' -- all dependencies passed with no checks.
6588# 'test_compile' -- check by making test program.
6589# 'file_magic [[regex]]' -- check by looking for files in library path
6590# which responds to the $file_magic_cmd with a given extended regex.
6591# If you have `file' or equivalent on your system and you're not sure
6592# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6593
ce2cded5 6594case $host_os in
7357c5b6
AM
6595aix[4-9]*)
6596 lt_cv_deplibs_check_method=pass_all
ce2cded5 6597 ;;
7357c5b6
AM
6598
6599beos*)
6600 lt_cv_deplibs_check_method=pass_all
ce2cded5 6601 ;;
7357c5b6
AM
6602
6603bsdi[45]*)
6604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6605 lt_cv_file_magic_cmd='/usr/bin/file -L'
6606 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6607 ;;
7357c5b6
AM
6608
6609cygwin*)
6610 # func_win32_libid is a shell function defined in ltmain.sh
6611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6613 ;;
7357c5b6
AM
6614
6615mingw* | pw32*)
6616 # Base MSYS/MinGW do not provide the 'file' command needed by
6617 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6618 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6619 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6620 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6622 lt_cv_file_magic_cmd='func_win32_libid'
6623 else
6624 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6625 lt_cv_file_magic_cmd='$OBJDUMP -f'
6626 fi
ce2cded5 6627 ;;
7357c5b6 6628
3725885a 6629cegcc*)
b214d478
SE
6630 # use the weaker test based on 'objdump'. See mingw*.
6631 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6632 lt_cv_file_magic_cmd='$OBJDUMP -f'
6633 ;;
6634
7357c5b6
AM
6635darwin* | rhapsody*)
6636 lt_cv_deplibs_check_method=pass_all
ce2cded5 6637 ;;
7357c5b6
AM
6638
6639freebsd* | dragonfly*)
6640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6641 case $host_cpu in
6642 i*86 )
6643 # Not sure whether the presence of OpenBSD here was a mistake.
6644 # Let's accept both of them until this is cleared up.
6645 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6646 lt_cv_file_magic_cmd=/usr/bin/file
6647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6648 ;;
6649 esac
6650 else
6651 lt_cv_deplibs_check_method=pass_all
6652 fi
ce2cded5 6653 ;;
7357c5b6
AM
6654
6655gnu*)
6656 lt_cv_deplibs_check_method=pass_all
ce2cded5 6657 ;;
7357c5b6 6658
3725885a
RW
6659haiku*)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662
7357c5b6
AM
6663hpux10.20* | hpux11*)
6664 lt_cv_file_magic_cmd=/usr/bin/file
6665 case $host_cpu in
6666 ia64*)
6667 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6668 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6669 ;;
6670 hppa*64*)
3725885a 6671 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
6672 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6673 ;;
6674 *)
3725885a 6675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6676 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6677 ;;
6678 esac
ce2cded5 6679 ;;
d7040cdb 6680
7357c5b6
AM
6681interix[3-9]*)
6682 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6684 ;;
d7040cdb 6685
7357c5b6
AM
6686irix5* | irix6* | nonstopux*)
6687 case $LD in
6688 *-32|*"-32 ") libmagic=32-bit;;
6689 *-n32|*"-n32 ") libmagic=N32;;
6690 *-64|*"-64 ") libmagic=64-bit;;
6691 *) libmagic=never-match;;
6692 esac
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
d7040cdb 6695
7357c5b6 6696# This must be Linux ELF.
58e24671 6697linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6698 lt_cv_deplibs_check_method=pass_all
6699 ;;
d7040cdb 6700
7357c5b6
AM
6701netbsd*)
6702 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6704 else
6705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6706 fi
ce2cded5 6707 ;;
d7040cdb 6708
7357c5b6
AM
6709newos6*)
6710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6711 lt_cv_file_magic_cmd=/usr/bin/file
6712 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6713 ;;
d7040cdb 6714
7357c5b6
AM
6715*nto* | *qnx*)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
d7040cdb 6718
7357c5b6
AM
6719openbsd*)
6720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6722 else
7357c5b6 6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6724 fi
7357c5b6 6725 ;;
d7040cdb 6726
7357c5b6
AM
6727osf3* | osf4* | osf5*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
d7040cdb 6730
7357c5b6
AM
6731rdos*)
6732 lt_cv_deplibs_check_method=pass_all
6733 ;;
d7040cdb 6734
7357c5b6
AM
6735solaris*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
d7040cdb 6738
7357c5b6
AM
6739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
d7040cdb 6742
7357c5b6
AM
6743sysv4 | sysv4.3*)
6744 case $host_vendor in
6745 motorola)
6746 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]'
6747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6748 ;;
6749 ncr)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752 sequent)
6753 lt_cv_file_magic_cmd='/bin/file'
6754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6755 ;;
6756 sni)
6757 lt_cv_file_magic_cmd='/bin/file'
6758 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6759 lt_cv_file_magic_test_file=/lib/libc.so
6760 ;;
6761 siemens)
6762 lt_cv_deplibs_check_method=pass_all
6763 ;;
6764 pc)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767 esac
6768 ;;
d7040cdb 6769
7357c5b6
AM
6770tpf*)
6771 lt_cv_deplibs_check_method=pass_all
6772 ;;
6773esac
d7040cdb 6774
7357c5b6 6775fi
81ecdfbb
RW
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6777$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6778file_magic_cmd=$lt_cv_file_magic_cmd
6779deplibs_check_method=$lt_cv_deplibs_check_method
6780test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6781
6782
6783
7357c5b6
AM
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6795set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797$as_echo_n "checking for $ac_word... " >&6; }
6798if test "${ac_cv_prog_AR+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
7357c5b6
AM
6800else
6801 if test -n "$AR"; then
6802 ac_cv_prog_AR="$AR" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6811 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6813 break 2
ce2cded5
L
6814 fi
6815done
81ecdfbb
RW
6816 done
6817IFS=$as_save_IFS
d7040cdb 6818
42ecbf5e 6819fi
ce2cded5 6820fi
7357c5b6
AM
6821AR=$ac_cv_prog_AR
6822if test -n "$AR"; then
81ecdfbb
RW
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6824$as_echo "$AR" >&6; }
42ecbf5e 6825else
81ecdfbb
RW
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827$as_echo "no" >&6; }
42ecbf5e
DJ
6828fi
6829
81ecdfbb 6830
7357c5b6
AM
6831fi
6832if test -z "$ac_cv_prog_AR"; then
6833 ac_ct_AR=$AR
6834 # Extract the first word of "ar", so it can be a program name with args.
6835set dummy ar; ac_word=$2
81ecdfbb
RW
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
7357c5b6
AM
6840else
6841 if test -n "$ac_ct_AR"; then
6842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6851 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6853 break 2
6854 fi
6855done
81ecdfbb
RW
6856 done
6857IFS=$as_save_IFS
42ecbf5e 6858
7357c5b6
AM
6859fi
6860fi
6861ac_ct_AR=$ac_cv_prog_ac_ct_AR
6862if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6864$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6865else
81ecdfbb
RW
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867$as_echo "no" >&6; }
7357c5b6 6868fi
d7040cdb 6869
81ecdfbb
RW
6870 if test "x$ac_ct_AR" = x; then
6871 AR="false"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874yes:)
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877ac_tool_warned=yes ;;
6878esac
6879 AR=$ac_ct_AR
6880 fi
7357c5b6
AM
6881else
6882 AR="$ac_cv_prog_AR"
6883fi
d7040cdb 6884
7357c5b6
AM
6885test -z "$AR" && AR=ar
6886test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6887
6888
6889
20e95c23 6890
d7040cdb 6891
d7040cdb
SE
6892
6893
6894
6895
6896
6897
7357c5b6
AM
6898if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6900set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if test "${ac_cv_prog_STRIP+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
7357c5b6
AM
6905else
6906 if test -n "$STRIP"; then
6907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6918 break 2
ce2cded5 6919 fi
7357c5b6 6920done
81ecdfbb
RW
6921 done
6922IFS=$as_save_IFS
d7040cdb 6923
7357c5b6
AM
6924fi
6925fi
6926STRIP=$ac_cv_prog_STRIP
6927if test -n "$STRIP"; then
81ecdfbb
RW
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6929$as_echo "$STRIP" >&6; }
7357c5b6 6930else
81ecdfbb
RW
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932$as_echo "no" >&6; }
7357c5b6
AM
6933fi
6934
81ecdfbb 6935
7357c5b6
AM
6936fi
6937if test -z "$ac_cv_prog_STRIP"; then
6938 ac_ct_STRIP=$STRIP
6939 # Extract the first word of "strip", so it can be a program name with args.
6940set dummy strip; ac_word=$2
81ecdfbb
RW
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
6943if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
7357c5b6
AM
6945else
6946 if test -n "$ac_ct_STRIP"; then
6947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6956 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6958 break 2
ce2cded5 6959 fi
7357c5b6 6960done
81ecdfbb
RW
6961 done
6962IFS=$as_save_IFS
d7040cdb 6963
7357c5b6
AM
6964fi
6965fi
6966ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6967if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6969$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6970else
81ecdfbb
RW
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
7357c5b6 6973fi
d7040cdb 6974
81ecdfbb
RW
6975 if test "x$ac_ct_STRIP" = x; then
6976 STRIP=":"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979yes:)
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982ac_tool_warned=yes ;;
6983esac
6984 STRIP=$ac_ct_STRIP
6985 fi
7357c5b6
AM
6986else
6987 STRIP="$ac_cv_prog_STRIP"
6988fi
d7040cdb 6989
7357c5b6 6990test -z "$STRIP" && STRIP=:
d7040cdb 6991
d7040cdb
SE
6992
6993
6994
d7040cdb 6995
7357c5b6
AM
6996
6997if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6999set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001$as_echo_n "checking for $ac_word... " >&6; }
7002if test "${ac_cv_prog_RANLIB+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
ce2cded5 7004else
7357c5b6
AM
7005 if test -n "$RANLIB"; then
7006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
ce2cded5 7010do
7357c5b6
AM
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7017 break 2
ce2cded5 7018 fi
7357c5b6 7019done
81ecdfbb
RW
7020 done
7021IFS=$as_save_IFS
7357c5b6 7022
ce2cded5 7023fi
7357c5b6
AM
7024fi
7025RANLIB=$ac_cv_prog_RANLIB
7026if test -n "$RANLIB"; then
81ecdfbb
RW
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7028$as_echo "$RANLIB" >&6; }
ce2cded5 7029else
81ecdfbb
RW
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031$as_echo "no" >&6; }
ce2cded5 7032fi
d7040cdb 7033
81ecdfbb 7034
7357c5b6
AM
7035fi
7036if test -z "$ac_cv_prog_RANLIB"; then
7037 ac_ct_RANLIB=$RANLIB
7038 # Extract the first word of "ranlib", so it can be a program name with args.
7039set dummy ranlib; ac_word=$2
81ecdfbb
RW
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041$as_echo_n "checking for $ac_word... " >&6; }
7042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
ce2cded5 7044else
7357c5b6
AM
7045 if test -n "$ac_ct_RANLIB"; then
7046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7047else
7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7055 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7057 break 2
7058 fi
7059done
81ecdfbb
RW
7060 done
7061IFS=$as_save_IFS
7357c5b6 7062
ce2cded5 7063fi
7357c5b6
AM
7064fi
7065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7066if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7068$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7069else
81ecdfbb
RW
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
ce2cded5 7072fi
d7040cdb 7073
81ecdfbb
RW
7074 if test "x$ac_ct_RANLIB" = x; then
7075 RANLIB=":"
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078yes:)
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081ac_tool_warned=yes ;;
7082esac
7083 RANLIB=$ac_ct_RANLIB
7084 fi
7357c5b6
AM
7085else
7086 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7087fi
d7040cdb 7088
7357c5b6 7089test -z "$RANLIB" && RANLIB=:
d7040cdb 7090
7357c5b6
AM
7091
7092
7093
7094
7095
7096# Determine commands to create old-style static archives.
b214d478 7097old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7098old_postinstall_cmds='chmod 644 $oldlib'
7099old_postuninstall_cmds=
7100
7101if test -n "$RANLIB"; then
7102 case $host_os in
7103 openbsd*)
7104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7105 ;;
7106 *)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7108 ;;
7109 esac
7110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7111fi
7357c5b6 7112
3725885a
RW
7113case $host_os in
7114 darwin*)
7115 lock_old_archive_extraction=yes ;;
7116 *)
7117 lock_old_archive_extraction=no ;;
7118esac
7119
7120
7121
7122
7123
7124
7357c5b6
AM
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
7152
7153
7154
7155
7156
7157
7158# If no C compiler was specified, use CC.
7159LTCC=${LTCC-"$CC"}
7160
7161# If no C compiler flags were specified, use CFLAGS.
7162LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7163
7164# Allow CC to be a program name with arguments.
7165compiler=$CC
7166
7167
7168# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7170$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7171if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
ce2cded5 7173else
d7040cdb 7174
7357c5b6
AM
7175# These are sane defaults that work on at least a few old systems.
7176# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7177
7357c5b6
AM
7178# Character class describing NM global symbol codes.
7179symcode='[BCDEGRST]'
7180
7181# Regexp to match symbols that can be accessed directly from C.
7182sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7183
7184# Define system-specific variables.
7185case $host_os in
7186aix*)
7187 symcode='[BCDT]'
7188 ;;
b214d478 7189cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7190 symcode='[ABCDGISTW]'
7191 ;;
7192hpux*)
7193 if test "$host_cpu" = ia64; then
7194 symcode='[ABCDEGRST]'
ce2cded5 7195 fi
7357c5b6
AM
7196 ;;
7197irix* | nonstopux*)
7198 symcode='[BCDEGRST]'
7199 ;;
7200osf*)
7201 symcode='[BCDEGQRST]'
7202 ;;
7203solaris*)
7204 symcode='[BDRT]'
7205 ;;
7206sco3.2v5*)
7207 symcode='[DT]'
7208 ;;
7209sysv4.2uw2*)
7210 symcode='[DT]'
7211 ;;
7212sysv5* | sco5v6* | unixware* | OpenUNIX*)
7213 symcode='[ABDT]'
7214 ;;
7215sysv4)
7216 symcode='[DFNSTU]'
7217 ;;
7218esac
d7040cdb 7219
7357c5b6
AM
7220# If we're using GNU nm, then use its standard symbol codes.
7221case `$NM -V 2>&1` in
7222*GNU* | *'with BFD'*)
7223 symcode='[ABCDGIRSTW]' ;;
7224esac
d7040cdb 7225
7357c5b6
AM
7226# Transform an extracted symbol line into a proper C declaration.
7227# Some systems (esp. on ia64) link data and code symbols differently,
7228# so use this general approach.
7229lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7230
7231# Transform an extracted symbol line into symbol name and symbol address
7232lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7233lt_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
7234
7235# Handle CRLF in mingw tool chain
7236opt_cr=
7237case $build_os in
7238mingw*)
7239 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7240 ;;
7241esac
d7040cdb 7242
7357c5b6
AM
7243# Try without a prefix underscore, then with it.
7244for ac_symprfx in "" "_"; do
d7040cdb 7245
7357c5b6
AM
7246 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7247 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7248
7357c5b6
AM
7249 # Write the raw and C identifiers.
7250 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7251 # Fake it for dumpbin and say T for any non-static function
7252 # and D for any global variable.
7253 # Also find C++ and __fastcall symbols from MSVC++,
7254 # which start with @ or ?.
7255 lt_cv_sys_global_symbol_pipe="$AWK '"\
7256" {last_section=section; section=\$ 3};"\
7257" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7258" \$ 0!~/External *\|/{next};"\
7259" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7260" {if(hide[section]) next};"\
7261" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7262" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7263" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7264" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7265" ' prfx=^$ac_symprfx"
7266 else
7267 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7268 fi
d7040cdb 7269
7357c5b6
AM
7270 # Check to see that the pipe works correctly.
7271 pipe_works=no
d7040cdb 7272
7357c5b6
AM
7273 rm -f conftest*
7274 cat > conftest.$ac_ext <<_LT_EOF
7275#ifdef __cplusplus
7276extern "C" {
7277#endif
7278char nm_test_var;
7279void nm_test_func(void);
7280void nm_test_func(void){}
7281#ifdef __cplusplus
20e95c23 7282}
7357c5b6
AM
7283#endif
7284int main(){nm_test_var='a';nm_test_func();return(0);}
7285_LT_EOF
7286
81ecdfbb 7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7288 (eval $ac_compile) 2>&5
20e95c23 7289 ac_status=$?
81ecdfbb
RW
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7357c5b6
AM
7292 # Now try to grab the symbols.
7293 nlist=conftest.nm
3725885a
RW
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7295 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7296 ac_status=$?
81ecdfbb
RW
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7299 # Try sorting and uniquifying the output.
7300 if sort "$nlist" | uniq > "$nlist"T; then
7301 mv -f "$nlist"T "$nlist"
7302 else
7303 rm -f "$nlist"T
7304 fi
d7040cdb 7305
7357c5b6
AM
7306 # Make sure that we snagged all the symbols we need.
7307 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7308 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7309 cat <<_LT_EOF > conftest.$ac_ext
7310#ifdef __cplusplus
7311extern "C" {
7312#endif
ce2cded5 7313
7357c5b6
AM
7314_LT_EOF
7315 # Now generate the symbol file.
7316 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7317
7357c5b6 7318 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7319
7357c5b6
AM
7320/* The mapping between symbol names and symbols. */
7321const struct {
7322 const char *name;
7323 void *address;
7324}
7325lt__PROGRAM__LTX_preloaded_symbols[] =
7326{
7327 { "@PROGRAM@", (void *) 0 },
7328_LT_EOF
7329 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7330 cat <<\_LT_EOF >> conftest.$ac_ext
7331 {0, (void *) 0}
7332};
d7040cdb 7333
7357c5b6
AM
7334/* This works around a problem in FreeBSD linker */
7335#ifdef FREEBSD_WORKAROUND
7336static const void *lt_preloaded_setup() {
7337 return lt__PROGRAM__LTX_preloaded_symbols;
7338}
ce2cded5 7339#endif
42ecbf5e 7340
7357c5b6 7341#ifdef __cplusplus
ce2cded5 7342}
7357c5b6
AM
7343#endif
7344_LT_EOF
7345 # Now try linking the two files.
7346 mv conftest.$ac_objext conftstm.$ac_objext
7347 lt_save_LIBS="$LIBS"
7348 lt_save_CFLAGS="$CFLAGS"
7349 LIBS="conftstm.$ac_objext"
7350 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7352 (eval $ac_link) 2>&5
7353 ac_status=$?
81ecdfbb
RW
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7356 pipe_works=yes
7357 fi
7358 LIBS="$lt_save_LIBS"
7359 CFLAGS="$lt_save_CFLAGS"
7360 else
7361 echo "cannot find nm_test_func in $nlist" >&5
7362 fi
7363 else
7364 echo "cannot find nm_test_var in $nlist" >&5
7365 fi
7366 else
7367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7368 fi
7369 else
7370 echo "$progname: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 fi
b214d478 7373 rm -rf conftest* conftst*
7357c5b6
AM
7374
7375 # Do not use the global_symbol_pipe unless it works.
7376 if test "$pipe_works" = yes; then
7377 break
7378 else
7379 lt_cv_sys_global_symbol_pipe=
7380 fi
7381done
42ecbf5e 7382
ce2cded5 7383fi
7357c5b6
AM
7384
7385if test -z "$lt_cv_sys_global_symbol_pipe"; then
7386 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7387fi
7357c5b6 7388if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7390$as_echo "failed" >&6; }
7357c5b6 7391else
81ecdfbb
RW
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7393$as_echo "ok" >&6; }
ce2cded5 7394fi
e5a52504 7395
d7040cdb 7396
e5a52504 7397
d7040cdb 7398
d7040cdb 7399
d7040cdb 7400
d7040cdb 7401
d7040cdb 7402
d7040cdb 7403
d7040cdb 7404
d7040cdb 7405
d7040cdb 7406
7357c5b6
AM
7407
7408
7409
b214d478
SE
7410
7411
7412
7413
7414
7357c5b6
AM
7415
7416
81ecdfbb
RW
7417# Check whether --enable-libtool-lock was given.
7418if test "${enable_libtool_lock+set}" = set; then :
7419 enableval=$enable_libtool_lock;
7420fi
7357c5b6 7421
7357c5b6
AM
7422test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7423
7424# Some flags need to be propagated to the compiler or linker for good
7425# libtool support.
7426case $host in
7427ia64-*-hpux*)
7428 # Find out which ABI we are using.
7429 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7431 (eval $ac_compile) 2>&5
7432 ac_status=$?
81ecdfbb
RW
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; }; then
7357c5b6
AM
7435 case `/usr/bin/file conftest.$ac_objext` in
7436 *ELF-32*)
7437 HPUX_IA64_MODE="32"
7438 ;;
7439 *ELF-64*)
7440 HPUX_IA64_MODE="64"
7441 ;;
7442 esac
7443 fi
7444 rm -rf conftest*
7445 ;;
7446*-*-irix6*)
7447 # Find out which ABI we are using.
3725885a 7448 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7450 (eval $ac_compile) 2>&5
7451 ac_status=$?
81ecdfbb
RW
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; then
7357c5b6
AM
7454 if test "$lt_cv_prog_gnu_ld" = yes; then
7455 case `/usr/bin/file conftest.$ac_objext` in
7456 *32-bit*)
7457 LD="${LD-ld} -melf32bsmip"
7458 ;;
7459 *N32*)
7460 LD="${LD-ld} -melf32bmipn32"
7461 ;;
7462 *64-bit*)
7463 LD="${LD-ld} -melf64bmip"
7464 ;;
7465 esac
7466 else
7467 case `/usr/bin/file conftest.$ac_objext` in
7468 *32-bit*)
7469 LD="${LD-ld} -32"
7470 ;;
7471 *N32*)
7472 LD="${LD-ld} -n32"
7473 ;;
7474 *64-bit*)
7475 LD="${LD-ld} -64"
7476 ;;
7477 esac
7478 fi
7479 fi
7480 rm -rf conftest*
7481 ;;
7482
cc9afea3 7483x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7484s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7485 # Find out which ABI we are using.
7486 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7488 (eval $ac_compile) 2>&5
7489 ac_status=$?
81ecdfbb
RW
7490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7491 test $ac_status = 0; }; then
7357c5b6
AM
7492 case `/usr/bin/file conftest.o` in
7493 *32-bit*)
7494 case $host in
7495 x86_64-*kfreebsd*-gnu)
7496 LD="${LD-ld} -m elf_i386_fbsd"
7497 ;;
7498 x86_64-*linux*)
6d2920c8
L
7499 case `/usr/bin/file conftest.o` in
7500 *x86-64*)
7501 LD="${LD-ld} -m elf32_x86_64"
7502 ;;
7503 *)
7504 LD="${LD-ld} -m elf_i386"
7505 ;;
7506 esac
7357c5b6 7507 ;;
cc9afea3
AM
7508 powerpc64le-*linux*)
7509 LD="${LD-ld} -m elf32lppclinux"
7510 ;;
7511 powerpc64-*linux*)
7357c5b6
AM
7512 LD="${LD-ld} -m elf32ppclinux"
7513 ;;
7514 s390x-*linux*)
7515 LD="${LD-ld} -m elf_s390"
7516 ;;
7517 sparc64-*linux*)
7518 LD="${LD-ld} -m elf32_sparc"
7519 ;;
7520 esac
7521 ;;
7522 *64-bit*)
7523 case $host in
7524 x86_64-*kfreebsd*-gnu)
7525 LD="${LD-ld} -m elf_x86_64_fbsd"
7526 ;;
7527 x86_64-*linux*)
7528 LD="${LD-ld} -m elf_x86_64"
7529 ;;
cc9afea3
AM
7530 powerpcle-*linux*)
7531 LD="${LD-ld} -m elf64lppc"
7532 ;;
7533 powerpc-*linux*)
7357c5b6
AM
7534 LD="${LD-ld} -m elf64ppc"
7535 ;;
7536 s390*-*linux*|s390*-*tpf*)
7537 LD="${LD-ld} -m elf64_s390"
7538 ;;
7539 sparc*-*linux*)
7540 LD="${LD-ld} -m elf64_sparc"
7541 ;;
7542 esac
7543 ;;
7544 esac
7545 fi
7546 rm -rf conftest*
7547 ;;
7548
7549*-*-sco3.2v5*)
7550 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7551 SAVE_CFLAGS="$CFLAGS"
7552 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7554$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7555if test "${lt_cv_cc_needs_belf+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
ce2cded5 7557else
7357c5b6
AM
7558 ac_ext=c
7559ac_cpp='$CPP $CPPFLAGS'
7560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
81ecdfbb 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7565/* end confdefs.h. */
d7040cdb 7566
7357c5b6
AM
7567int
7568main ()
7569{
7570
7571 ;
7572 return 0;
7573}
ce2cded5 7574_ACEOF
81ecdfbb 7575if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7576 lt_cv_cc_needs_belf=yes
ce2cded5 7577else
81ecdfbb 7578 lt_cv_cc_needs_belf=no
ce2cded5 7579fi
81ecdfbb
RW
7580rm -f core conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7582 ac_ext=c
7583ac_cpp='$CPP $CPPFLAGS'
7584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7587
b214d478 7588fi
81ecdfbb
RW
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7590$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7591 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7592 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7593 CFLAGS="$SAVE_CFLAGS"
7594 fi
7595 ;;
7596sparc*-*solaris*)
7597 # Find out which ABI we are using.
7598 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7600 (eval $ac_compile) 2>&5
7601 ac_status=$?
81ecdfbb
RW
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
b214d478
SE
7604 case `/usr/bin/file conftest.o` in
7605 *64-bit*)
7606 case $lt_cv_prog_gnu_ld in
7607 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7608 *)
7609 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7610 LD="${LD-ld} -64"
7611 fi
7612 ;;
7613 esac
7614 ;;
7615 esac
7616 fi
7617 rm -rf conftest*
7618 ;;
7619esac
7620
7621need_locks="$enable_libtool_lock"
7622
7623
7624 case $host_os in
7625 rhapsody* | darwin*)
7626 if test -n "$ac_tool_prefix"; then
7627 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7628set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630$as_echo_n "checking for $ac_word... " >&6; }
7631if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
b214d478
SE
7633else
7634 if test -n "$DSYMUTIL"; then
7635 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7636else
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7644 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7646 break 2
7647 fi
7648done
81ecdfbb
RW
7649 done
7650IFS=$as_save_IFS
b214d478
SE
7651
7652fi
7653fi
7654DSYMUTIL=$ac_cv_prog_DSYMUTIL
7655if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7657$as_echo "$DSYMUTIL" >&6; }
b214d478 7658else
81ecdfbb
RW
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660$as_echo "no" >&6; }
b214d478
SE
7661fi
7662
81ecdfbb 7663
b214d478
SE
7664fi
7665if test -z "$ac_cv_prog_DSYMUTIL"; then
7666 ac_ct_DSYMUTIL=$DSYMUTIL
7667 # Extract the first word of "dsymutil", so it can be a program name with args.
7668set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
b214d478
SE
7673else
7674 if test -n "$ac_ct_DSYMUTIL"; then
7675 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7684 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7686 break 2
7687 fi
7688done
81ecdfbb
RW
7689 done
7690IFS=$as_save_IFS
b214d478 7691
b214d478
SE
7692fi
7693fi
7694ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7695if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7697$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7698else
81ecdfbb
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
b214d478
SE
7701fi
7702
81ecdfbb
RW
7703 if test "x$ac_ct_DSYMUTIL" = x; then
7704 DSYMUTIL=":"
7705 else
7706 case $cross_compiling:$ac_tool_warned in
7707yes:)
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710ac_tool_warned=yes ;;
7711esac
7712 DSYMUTIL=$ac_ct_DSYMUTIL
7713 fi
b214d478
SE
7714else
7715 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7716fi
7717
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7720set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722$as_echo_n "checking for $ac_word... " >&6; }
7723if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
b214d478
SE
7725else
7726 if test -n "$NMEDIT"; then
7727 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7728else
7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7736 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7738 break 2
7739 fi
7740done
81ecdfbb
RW
7741 done
7742IFS=$as_save_IFS
b214d478
SE
7743
7744fi
7745fi
7746NMEDIT=$ac_cv_prog_NMEDIT
7747if test -n "$NMEDIT"; then
81ecdfbb
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7749$as_echo "$NMEDIT" >&6; }
b214d478 7750else
81ecdfbb
RW
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752$as_echo "no" >&6; }
b214d478
SE
7753fi
7754
81ecdfbb 7755
b214d478
SE
7756fi
7757if test -z "$ac_cv_prog_NMEDIT"; then
7758 ac_ct_NMEDIT=$NMEDIT
7759 # Extract the first word of "nmedit", so it can be a program name with args.
7760set dummy nmedit; ac_word=$2
81ecdfbb
RW
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
b214d478
SE
7765else
7766 if test -n "$ac_ct_NMEDIT"; then
7767 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7776 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7778 break 2
7779 fi
7780done
81ecdfbb
RW
7781 done
7782IFS=$as_save_IFS
b214d478 7783
b214d478
SE
7784fi
7785fi
7786ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7787if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7789$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7790else
81ecdfbb
RW
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
b214d478
SE
7793fi
7794
81ecdfbb
RW
7795 if test "x$ac_ct_NMEDIT" = x; then
7796 NMEDIT=":"
7797 else
7798 case $cross_compiling:$ac_tool_warned in
7799yes:)
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802ac_tool_warned=yes ;;
7803esac
7804 NMEDIT=$ac_ct_NMEDIT
7805 fi
b214d478
SE
7806else
7807 NMEDIT="$ac_cv_prog_NMEDIT"
7808fi
7809
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7812set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814$as_echo_n "checking for $ac_word... " >&6; }
7815if test "${ac_cv_prog_LIPO+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
b214d478
SE
7817else
7818 if test -n "$LIPO"; then
7819 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7820else
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7828 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7830 break 2
7831 fi
7832done
81ecdfbb
RW
7833 done
7834IFS=$as_save_IFS
b214d478
SE
7835
7836fi
7837fi
7838LIPO=$ac_cv_prog_LIPO
7839if test -n "$LIPO"; then
81ecdfbb
RW
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7841$as_echo "$LIPO" >&6; }
b214d478 7842else
81ecdfbb
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
b214d478
SE
7845fi
7846
81ecdfbb 7847
b214d478
SE
7848fi
7849if test -z "$ac_cv_prog_LIPO"; then
7850 ac_ct_LIPO=$LIPO
7851 # Extract the first word of "lipo", so it can be a program name with args.
7852set dummy lipo; ac_word=$2
81ecdfbb
RW
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
7855if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
b214d478
SE
7857else
7858 if test -n "$ac_ct_LIPO"; then
7859 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7868 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7870 break 2
7871 fi
7872done
81ecdfbb
RW
7873 done
7874IFS=$as_save_IFS
b214d478 7875
b214d478
SE
7876fi
7877fi
7878ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7879if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7881$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7882else
81ecdfbb
RW
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
b214d478
SE
7885fi
7886
81ecdfbb
RW
7887 if test "x$ac_ct_LIPO" = x; then
7888 LIPO=":"
7889 else
7890 case $cross_compiling:$ac_tool_warned in
7891yes:)
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894ac_tool_warned=yes ;;
7895esac
7896 LIPO=$ac_ct_LIPO
7897 fi
b214d478
SE
7898else
7899 LIPO="$ac_cv_prog_LIPO"
7900fi
7901
7902 if test -n "$ac_tool_prefix"; then
7903 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7904set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906$as_echo_n "checking for $ac_word... " >&6; }
7907if test "${ac_cv_prog_OTOOL+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
b214d478
SE
7909else
7910 if test -n "$OTOOL"; then
7911 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7912else
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7920 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7922 break 2
7923 fi
7924done
81ecdfbb
RW
7925 done
7926IFS=$as_save_IFS
b214d478
SE
7927
7928fi
7929fi
7930OTOOL=$ac_cv_prog_OTOOL
7931if test -n "$OTOOL"; then
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7933$as_echo "$OTOOL" >&6; }
b214d478 7934else
81ecdfbb
RW
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936$as_echo "no" >&6; }
b214d478
SE
7937fi
7938
81ecdfbb 7939
b214d478
SE
7940fi
7941if test -z "$ac_cv_prog_OTOOL"; then
7942 ac_ct_OTOOL=$OTOOL
7943 # Extract the first word of "otool", so it can be a program name with args.
7944set dummy otool; ac_word=$2
81ecdfbb
RW
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
7947if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
b214d478
SE
7949else
7950 if test -n "$ac_ct_OTOOL"; then
7951 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7952else
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7960 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7962 break 2
7963 fi
7964done
81ecdfbb
RW
7965 done
7966IFS=$as_save_IFS
b214d478 7967
b214d478
SE
7968fi
7969fi
7970ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7971if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7973$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7974else
81ecdfbb
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
b214d478
SE
7977fi
7978
81ecdfbb
RW
7979 if test "x$ac_ct_OTOOL" = x; then
7980 OTOOL=":"
7981 else
7982 case $cross_compiling:$ac_tool_warned in
7983yes:)
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986ac_tool_warned=yes ;;
7987esac
7988 OTOOL=$ac_ct_OTOOL
7989 fi
b214d478
SE
7990else
7991 OTOOL="$ac_cv_prog_OTOOL"
7992fi
7993
7994 if test -n "$ac_tool_prefix"; then
7995 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7996set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998$as_echo_n "checking for $ac_word... " >&6; }
7999if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
b214d478
SE
8001else
8002 if test -n "$OTOOL64"; then
8003 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8004else
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8012 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8014 break 2
8015 fi
8016done
81ecdfbb
RW
8017 done
8018IFS=$as_save_IFS
b214d478
SE
8019
8020fi
8021fi
8022OTOOL64=$ac_cv_prog_OTOOL64
8023if test -n "$OTOOL64"; then
81ecdfbb
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8025$as_echo "$OTOOL64" >&6; }
b214d478 8026else
81ecdfbb
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
b214d478
SE
8029fi
8030
81ecdfbb 8031
b214d478
SE
8032fi
8033if test -z "$ac_cv_prog_OTOOL64"; then
8034 ac_ct_OTOOL64=$OTOOL64
8035 # Extract the first word of "otool64", so it can be a program name with args.
8036set dummy otool64; ac_word=$2
81ecdfbb
RW
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038$as_echo_n "checking for $ac_word... " >&6; }
8039if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
b214d478
SE
8041else
8042 if test -n "$ac_ct_OTOOL64"; then
8043 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8044else
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8052 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8054 break 2
8055 fi
8056done
81ecdfbb
RW
8057 done
8058IFS=$as_save_IFS
b214d478 8059
b214d478
SE
8060fi
8061fi
8062ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8063if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8065$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8066else
81ecdfbb
RW
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
b214d478
SE
8069fi
8070
81ecdfbb
RW
8071 if test "x$ac_ct_OTOOL64" = x; then
8072 OTOOL64=":"
8073 else
8074 case $cross_compiling:$ac_tool_warned in
8075yes:)
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078ac_tool_warned=yes ;;
8079esac
8080 OTOOL64=$ac_ct_OTOOL64
8081 fi
b214d478
SE
8082else
8083 OTOOL64="$ac_cv_prog_OTOOL64"
8084fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
81ecdfbb
RW
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8113$as_echo_n "checking for -single_module linker flag... " >&6; }
8114if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
b214d478
SE
8116else
8117 lt_cv_apple_cc_single_mod=no
8118 if test -z "${LT_MULTI_MODULE}"; then
8119 # By default we will add the -single_module flag. You can override
8120 # by either setting the environment variable LT_MULTI_MODULE
8121 # non-empty at configure time, or by adding -multi_module to the
8122 # link flags.
8123 rm -rf libconftest.dylib*
8124 echo "int foo(void){return 1;}" > conftest.c
8125 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8126-dynamiclib -Wl,-single_module conftest.c" >&5
8127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8128 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8129 _lt_result=$?
8130 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8131 lt_cv_apple_cc_single_mod=yes
8132 else
8133 cat conftest.err >&5
8134 fi
8135 rm -rf libconftest.dylib*
8136 rm -f conftest.*
8137 fi
8138fi
81ecdfbb
RW
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8140$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8142$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8143if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
b214d478
SE
8145else
8146 lt_cv_ld_exported_symbols_list=no
8147 save_LDFLAGS=$LDFLAGS
8148 echo "_main" > conftest.sym
8149 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8151/* end confdefs.h. */
8152
8153int
8154main ()
8155{
8156
8157 ;
8158 return 0;
8159}
8160_ACEOF
81ecdfbb 8161if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8162 lt_cv_ld_exported_symbols_list=yes
8163else
81ecdfbb 8164 lt_cv_ld_exported_symbols_list=no
b214d478 8165fi
81ecdfbb
RW
8166rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8168 LDFLAGS="$save_LDFLAGS"
8169
8170fi
81ecdfbb
RW
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8172$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8174$as_echo_n "checking for -force_load linker flag... " >&6; }
8175if test "${lt_cv_ld_force_load+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177else
8178 lt_cv_ld_force_load=no
8179 cat > conftest.c << _LT_EOF
8180int forced_loaded() { return 2;}
8181_LT_EOF
8182 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8183 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8184 echo "$AR cru libconftest.a conftest.o" >&5
8185 $AR cru libconftest.a conftest.o 2>&5
8186 cat > conftest.c << _LT_EOF
8187int main() { return 0;}
8188_LT_EOF
8189 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8190 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8191 _lt_result=$?
8192 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8193 lt_cv_ld_force_load=yes
8194 else
8195 cat conftest.err >&5
8196 fi
8197 rm -f conftest.err libconftest.a conftest conftest.c
8198 rm -rf conftest.dSYM
8199
8200fi
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8202$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8203 case $host_os in
8204 rhapsody* | darwin1.[012])
8205 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8206 darwin1.*)
8207 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8208 darwin*) # darwin 5.x on
8209 # if running on 10.5 or later, the deployment target defaults
8210 # to the OS version, if on x86, and 10.4, the deployment
8211 # target defaults to 10.4. Don't you love it?
8212 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8213 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8214 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8215 10.[012][,.]*)
b214d478
SE
8216 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8217 10.*)
8218 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8219 esac
8220 ;;
8221 esac
8222 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8223 _lt_dar_single_mod='$single_module'
8224 fi
8225 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8226 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8227 else
8228 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8229 fi
3725885a 8230 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8231 _lt_dsymutil='~$DSYMUTIL $lib || :'
8232 else
8233 _lt_dsymutil=
8234 fi
8235 ;;
8236 esac
8237
b214d478 8238for ac_header in dlfcn.h
81ecdfbb
RW
8239do :
8240 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8241"
8242if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8243 cat >>confdefs.h <<_ACEOF
81ecdfbb 8244#define HAVE_DLFCN_H 1
b214d478
SE
8245_ACEOF
8246
8247fi
8248
8249done
8250
8251
8252
3725885a
RW
8253
8254
3cb62297 8255
b214d478
SE
8256# Set options
8257
8258
8259
8260 enable_dlopen=no
8261
8262
8263 enable_win32_dll=no
8264
8265
81ecdfbb
RW
8266 # Check whether --enable-shared was given.
8267if test "${enable_shared+set}" = set; then :
8268 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8269 case $enableval in
8270 yes) enable_shared=yes ;;
8271 no) enable_shared=no ;;
8272 *)
8273 enable_shared=no
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for pkg in $enableval; do
8277 IFS="$lt_save_ifs"
8278 if test "X$pkg" = "X$p"; then
8279 enable_shared=yes
8280 fi
8281 done
8282 IFS="$lt_save_ifs"
8283 ;;
8284 esac
8285else
8286 enable_shared=yes
81ecdfbb 8287fi
b214d478
SE
8288
8289
8290
8291
8292
8293
8294
8295
81ecdfbb
RW
8296
8297 # Check whether --enable-static was given.
8298if test "${enable_static+set}" = set; then :
8299 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8300 case $enableval in
8301 yes) enable_static=yes ;;
8302 no) enable_static=no ;;
8303 *)
8304 enable_static=no
8305 # Look at the argument we got. We use all the common list separators.
8306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307 for pkg in $enableval; do
8308 IFS="$lt_save_ifs"
8309 if test "X$pkg" = "X$p"; then
8310 enable_static=yes
8311 fi
8312 done
8313 IFS="$lt_save_ifs"
8314 ;;
8315 esac
8316else
8317 enable_static=yes
81ecdfbb 8318fi
b214d478
SE
8319
8320
8321
8322
8323
8324
8325
8326
8327
81ecdfbb
RW
8328
8329# Check whether --with-pic was given.
8330if test "${with_pic+set}" = set; then :
8331 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8332else
8333 pic_mode=default
81ecdfbb
RW
8334fi
8335
b214d478
SE
8336
8337test -z "$pic_mode" && pic_mode=default
8338
8339
8340
8341
8342
8343
8344
81ecdfbb
RW
8345 # Check whether --enable-fast-install was given.
8346if test "${enable_fast_install+set}" = set; then :
8347 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8348 case $enableval in
8349 yes) enable_fast_install=yes ;;
8350 no) enable_fast_install=no ;;
8351 *)
8352 enable_fast_install=no
8353 # Look at the argument we got. We use all the common list separators.
8354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8355 for pkg in $enableval; do
8356 IFS="$lt_save_ifs"
8357 if test "X$pkg" = "X$p"; then
8358 enable_fast_install=yes
8359 fi
8360 done
8361 IFS="$lt_save_ifs"
7357c5b6
AM
8362 ;;
8363 esac
b214d478
SE
8364else
8365 enable_fast_install=yes
81ecdfbb
RW
8366fi
8367
ce2cded5 8368
ce2cded5
L
8369
8370
ce2cded5 8371
42ecbf5e 8372
d7040cdb 8373
d7040cdb 8374
d7040cdb 8375
d7040cdb 8376
d7040cdb 8377
ce2cded5
L
8378# This can be used to rebuild libtool when needed
8379LIBTOOL_DEPS="$ltmain"
d7040cdb 8380
ce2cded5
L
8381# Always use our own libtool.
8382LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8383
d7040cdb 8384
d7040cdb 8385
d7040cdb 8386
d7040cdb 8387
d7040cdb 8388
d7040cdb 8389
d7040cdb 8390
d7040cdb 8391
d7040cdb 8392
d7040cdb 8393
d7040cdb 8394
d7040cdb 8395
d7040cdb 8396
d7040cdb 8397
d7040cdb 8398
d7040cdb
SE
8399
8400
8401
8402
8403
8404
8405
3725885a 8406
d7040cdb
SE
8407
8408
ce2cded5 8409test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8410
8411
8412
8413
8414
8415
d7040cdb
SE
8416
8417
8418
8419
8420
8421
8422
8423
ce2cded5
L
8424if test -n "${ZSH_VERSION+set}" ; then
8425 setopt NO_GLOB_SUBST
8426fi
d7040cdb 8427
81ecdfbb
RW
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8429$as_echo_n "checking for objdir... " >&6; }
8430if test "${lt_cv_objdir+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
ce2cded5
L
8432else
8433 rm -f .libs 2>/dev/null
8434mkdir .libs 2>/dev/null
8435if test -d .libs; then
8436 lt_cv_objdir=.libs
8437else
8438 # MS-DOS does not allow filenames that begin with a dot.
8439 lt_cv_objdir=_libs
8440fi
8441rmdir .libs 2>/dev/null
8442fi
81ecdfbb
RW
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8444$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8445objdir=$lt_cv_objdir
d7040cdb
SE
8446
8447
8448
8449
8450
ce2cded5
L
8451cat >>confdefs.h <<_ACEOF
8452#define LT_OBJDIR "$lt_cv_objdir/"
8453_ACEOF
d7040cdb
SE
8454
8455
8456
8457
ce2cded5
L
8458case $host_os in
8459aix3*)
8460 # AIX sometimes has problems with the GCC collect2 program. For some
8461 # reason, if we set the COLLECT_NAMES environment variable, the problems
8462 # vanish in a puff of smoke.
8463 if test "X${COLLECT_NAMES+set}" != Xset; then
8464 COLLECT_NAMES=
8465 export COLLECT_NAMES
8466 fi
8467 ;;
8468esac
d7040cdb 8469
ce2cded5
L
8470# Global variables:
8471ofile=libtool
8472can_build_shared=yes
d7040cdb 8473
ce2cded5
L
8474# All known linkers require a `.a' archive for static linking (except MSVC,
8475# which needs '.lib').
8476libext=a
d7040cdb 8477
ce2cded5 8478with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8479
ce2cded5
L
8480old_CC="$CC"
8481old_CFLAGS="$CFLAGS"
d7040cdb 8482
ce2cded5
L
8483# Set sane defaults for various variables
8484test -z "$CC" && CC=cc
8485test -z "$LTCC" && LTCC=$CC
8486test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8487test -z "$LD" && LD=ld
8488test -z "$ac_objext" && ac_objext=o
d7040cdb 8489
ce2cded5
L
8490for cc_temp in $compiler""; do
8491 case $cc_temp in
8492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8494 \-*) ;;
8495 *) break;;
8496 esac
8497done
3725885a 8498cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8499
8500
ce2cded5
L
8501# Only perform the check for file, if the check method requires it
8502test -z "$MAGIC_CMD" && MAGIC_CMD=file
8503case $deplibs_check_method in
8504file_magic*)
8505 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8507$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8508if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
ce2cded5
L
8510else
8511 case $MAGIC_CMD in
8512[\\/*] | ?:[\\/]*)
8513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8514 ;;
8515*)
8516 lt_save_MAGIC_CMD="$MAGIC_CMD"
8517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8519 for ac_dir in $ac_dummy; do
8520 IFS="$lt_save_ifs"
8521 test -z "$ac_dir" && ac_dir=.
8522 if test -f $ac_dir/${ac_tool_prefix}file; then
8523 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8524 if test -n "$file_magic_test_file"; then
8525 case $deplibs_check_method in
8526 "file_magic "*)
8527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8530 $EGREP "$file_magic_regex" > /dev/null; then
8531 :
8532 else
8533 cat <<_LT_EOF 1>&2
d7040cdb 8534
ce2cded5
L
8535*** Warning: the command libtool uses to detect shared libraries,
8536*** $file_magic_cmd, produces output that libtool cannot recognize.
8537*** The result is that libtool may fail to recognize shared libraries
8538*** as such. This will affect the creation of libtool libraries that
8539*** depend on shared libraries, but programs linked with such libtool
8540*** libraries will work regardless of this problem. Nevertheless, you
8541*** may want to report the problem to your system manager and/or to
8542*** bug-libtool@gnu.org
d7040cdb 8543
ce2cded5
L
8544_LT_EOF
8545 fi ;;
8546 esac
8547 fi
8548 break
8549 fi
8550 done
8551 IFS="$lt_save_ifs"
8552 MAGIC_CMD="$lt_save_MAGIC_CMD"
8553 ;;
8554esac
8555fi
d7040cdb 8556
ce2cded5
L
8557MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8560$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8561else
81ecdfbb
RW
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563$as_echo "no" >&6; }
ce2cded5 8564fi
d7040cdb
SE
8565
8566
8567
8568
8569
ce2cded5
L
8570if test -z "$lt_cv_path_MAGIC_CMD"; then
8571 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8573$as_echo_n "checking for file... " >&6; }
8574if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
ce2cded5
L
8576else
8577 case $MAGIC_CMD in
8578[\\/*] | ?:[\\/]*)
8579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8580 ;;
8581*)
8582 lt_save_MAGIC_CMD="$MAGIC_CMD"
8583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8585 for ac_dir in $ac_dummy; do
8586 IFS="$lt_save_ifs"
8587 test -z "$ac_dir" && ac_dir=.
8588 if test -f $ac_dir/file; then
8589 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8590 if test -n "$file_magic_test_file"; then
8591 case $deplibs_check_method in
8592 "file_magic "*)
8593 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8596 $EGREP "$file_magic_regex" > /dev/null; then
8597 :
8598 else
8599 cat <<_LT_EOF 1>&2
d7040cdb 8600
ce2cded5
L
8601*** Warning: the command libtool uses to detect shared libraries,
8602*** $file_magic_cmd, produces output that libtool cannot recognize.
8603*** The result is that libtool may fail to recognize shared libraries
8604*** as such. This will affect the creation of libtool libraries that
8605*** depend on shared libraries, but programs linked with such libtool
8606*** libraries will work regardless of this problem. Nevertheless, you
8607*** may want to report the problem to your system manager and/or to
8608*** bug-libtool@gnu.org
d7040cdb 8609
ce2cded5
L
8610_LT_EOF
8611 fi ;;
8612 esac
8613 fi
8614 break
8615 fi
8616 done
8617 IFS="$lt_save_ifs"
8618 MAGIC_CMD="$lt_save_MAGIC_CMD"
8619 ;;
8620esac
8621fi
d7040cdb 8622
ce2cded5
L
8623MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8626$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8627else
81ecdfbb
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
ce2cded5 8630fi
d7040cdb
SE
8631
8632
ce2cded5
L
8633 else
8634 MAGIC_CMD=:
8635 fi
8636fi
d7040cdb 8637
ce2cded5
L
8638 fi
8639 ;;
8640esac
d7040cdb 8641
ce2cded5 8642# Use C for the default configuration in the libtool script
d7040cdb 8643
ce2cded5
L
8644lt_save_CC="$CC"
8645ac_ext=c
8646ac_cpp='$CPP $CPPFLAGS'
8647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8649ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8650
8651
ce2cded5
L
8652# Source file extension for C test sources.
8653ac_ext=c
d7040cdb 8654
ce2cded5
L
8655# Object file extension for compiled C test sources.
8656objext=o
8657objext=$objext
d7040cdb 8658
ce2cded5
L
8659# Code to be used in simple compile tests
8660lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8661
ce2cded5
L
8662# Code to be used in simple link tests
8663lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8664
8665
8666
8667
8668
8669
8670
ce2cded5
L
8671# If no C compiler was specified, use CC.
8672LTCC=${LTCC-"$CC"}
d7040cdb 8673
ce2cded5
L
8674# If no C compiler flags were specified, use CFLAGS.
8675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8676
ce2cded5
L
8677# Allow CC to be a program name with arguments.
8678compiler=$CC
d7040cdb 8679
ce2cded5
L
8680# Save the default compiler, since it gets overwritten when the other
8681# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8682compiler_DEFAULT=$CC
d7040cdb 8683
ce2cded5
L
8684# save warnings/boilerplate of simple test code
8685ac_outfile=conftest.$ac_objext
8686echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8688_lt_compiler_boilerplate=`cat conftest.err`
8689$RM conftest*
d7040cdb 8690
ce2cded5
L
8691ac_outfile=conftest.$ac_objext
8692echo "$lt_simple_link_test_code" >conftest.$ac_ext
8693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694_lt_linker_boilerplate=`cat conftest.err`
b214d478 8695$RM -r conftest*
d7040cdb
SE
8696
8697
ce2cded5
L
8698## CAVEAT EMPTOR:
8699## There is no encapsulation within the following macros, do not change
8700## the running order or otherwise move them around unless you know exactly
8701## what you are doing...
8702if test -n "$compiler"; then
d7040cdb 8703
ce2cded5 8704lt_prog_compiler_no_builtin_flag=
d7040cdb 8705
ce2cded5 8706if test "$GCC" = yes; then
3725885a
RW
8707 case $cc_basename in
8708 nvcc*)
8709 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8710 *)
8711 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8712 esac
d7040cdb 8713
81ecdfbb
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8715$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8716if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
ce2cded5
L
8718else
8719 lt_cv_prog_compiler_rtti_exceptions=no
8720 ac_outfile=conftest.$ac_objext
8721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8722 lt_compiler_flag="-fno-rtti -fno-exceptions"
8723 # Insert the option either (1) after the last *FLAGS variable, or
8724 # (2) before a word containing "conftest.", or (3) at the end.
8725 # Note that $ac_compile itself does not contain backslashes and begins
8726 # with a dollar sign (not a hyphen), so the echo should work correctly.
8727 # The option is referenced via a variable to avoid confusing sed.
8728 lt_compile=`echo "$ac_compile" | $SED \
8729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8731 -e 's:$: $lt_compiler_flag:'`
3725885a 8732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8733 (eval "$lt_compile" 2>conftest.err)
8734 ac_status=$?
8735 cat conftest.err >&5
3725885a 8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8737 if (exit $ac_status) && test -s "$ac_outfile"; then
8738 # The compiler can only warn and ignore the option if not recognized
8739 # So say no if there are warnings other than the usual output.
3725885a 8740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8743 lt_cv_prog_compiler_rtti_exceptions=yes
8744 fi
8745 fi
8746 $RM conftest*
d7040cdb 8747
ce2cded5 8748fi
81ecdfbb
RW
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8750$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8751
ce2cded5
L
8752if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8753 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8754else
8755 :
8756fi
d7040cdb 8757
ce2cded5 8758fi
d7040cdb
SE
8759
8760
8761
8762
8763
8764
ce2cded5
L
8765 lt_prog_compiler_wl=
8766lt_prog_compiler_pic=
8767lt_prog_compiler_static=
d7040cdb 8768
81ecdfbb
RW
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8770$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8771
ce2cded5
L
8772 if test "$GCC" = yes; then
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_static='-static'
d7040cdb 8775
ce2cded5
L
8776 case $host_os in
8777 aix*)
8778 # All AIX code is PIC.
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 now supports IA64 processor
8781 lt_prog_compiler_static='-Bstatic'
8782 fi
52204357 8783 lt_prog_compiler_pic='-fPIC'
ce2cded5 8784 ;;
d7040cdb 8785
ce2cded5 8786 amigaos*)
b214d478
SE
8787 case $host_cpu in
8788 powerpc)
8789 # see comment about AmigaOS4 .so support
8790 lt_prog_compiler_pic='-fPIC'
8791 ;;
8792 m68k)
8793 # FIXME: we need at least 68020 code to build shared libraries, but
8794 # adding the `-m68020' flag to GCC prevents building anything better,
8795 # like `-m68040'.
8796 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8797 ;;
8798 esac
ce2cded5 8799 ;;
d7040cdb 8800
ce2cded5
L
8801 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8802 # PIC is the default for these OSes.
8803 ;;
d7040cdb 8804
b214d478 8805 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8806 # This hack is so that the source file can tell whether it is being
8807 # built for inclusion in a dll (and should export symbols for example).
8808 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8809 # (--disable-auto-import) libraries
8810 lt_prog_compiler_pic='-DDLL_EXPORT'
8811 ;;
d7040cdb 8812
ce2cded5
L
8813 darwin* | rhapsody*)
8814 # PIC is the default on this platform
8815 # Common symbols not allowed in MH_DYLIB files
8816 lt_prog_compiler_pic='-fno-common'
8817 ;;
d7040cdb 8818
3725885a
RW
8819 haiku*)
8820 # PIC is the default for Haiku.
8821 # The "-static" flag exists, but is broken.
8822 lt_prog_compiler_static=
8823 ;;
8824
ce2cded5 8825 hpux*)
b214d478
SE
8826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8828 # sets the default TLS model and affects inlining.
ce2cded5 8829 case $host_cpu in
b214d478 8830 hppa*64*)
ce2cded5
L
8831 # +Z the default
8832 ;;
8833 *)
8834 lt_prog_compiler_pic='-fPIC'
8835 ;;
8836 esac
8837 ;;
d7040cdb 8838
ce2cded5
L
8839 interix[3-9]*)
8840 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8841 # Instead, we relocate shared libraries at runtime.
8842 ;;
d7040cdb 8843
ce2cded5
L
8844 msdosdjgpp*)
8845 # Just because we use GCC doesn't mean we suddenly get shared libraries
8846 # on systems that don't support them.
8847 lt_prog_compiler_can_build_shared=no
8848 enable_shared=no
8849 ;;
d7040cdb 8850
ce2cded5
L
8851 *nto* | *qnx*)
8852 # QNX uses GNU C++, but need to define -shared option too, otherwise
8853 # it will coredump.
8854 lt_prog_compiler_pic='-fPIC -shared'
8855 ;;
d7040cdb 8856
ce2cded5
L
8857 sysv4*MP*)
8858 if test -d /usr/nec; then
8859 lt_prog_compiler_pic=-Kconform_pic
8860 fi
8861 ;;
d7040cdb 8862
ce2cded5
L
8863 *)
8864 lt_prog_compiler_pic='-fPIC'
8865 ;;
8866 esac
3725885a
RW
8867
8868 case $cc_basename in
8869 nvcc*) # Cuda Compiler Driver 2.2
8870 lt_prog_compiler_wl='-Xlinker '
8871 lt_prog_compiler_pic='-Xcompiler -fPIC'
8872 ;;
8873 esac
ce2cded5
L
8874 else
8875 # PORTME Check for flag to pass linker flags through the system compiler.
8876 case $host_os in
8877 aix*)
8878 lt_prog_compiler_wl='-Wl,'
8879 if test "$host_cpu" = ia64; then
8880 # AIX 5 now supports IA64 processor
8881 lt_prog_compiler_static='-Bstatic'
8882 else
8883 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8884 fi
8885 ;;
d7040cdb 8886
b214d478 8887 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8888 # This hack is so that the source file can tell whether it is being
8889 # built for inclusion in a dll (and should export symbols for example).
8890 lt_prog_compiler_pic='-DDLL_EXPORT'
8891 ;;
d7040cdb 8892
ce2cded5
L
8893 hpux9* | hpux10* | hpux11*)
8894 lt_prog_compiler_wl='-Wl,'
8895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8896 # not for PA HP-UX.
8897 case $host_cpu in
8898 hppa*64*|ia64*)
8899 # +Z the default
8900 ;;
8901 *)
8902 lt_prog_compiler_pic='+Z'
8903 ;;
8904 esac
8905 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8906 lt_prog_compiler_static='${wl}-a ${wl}archive'
8907 ;;
d7040cdb 8908
ce2cded5
L
8909 irix5* | irix6* | nonstopux*)
8910 lt_prog_compiler_wl='-Wl,'
8911 # PIC (with -KPIC) is the default.
8912 lt_prog_compiler_static='-non_shared'
8913 ;;
d7040cdb 8914
58e24671 8915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8916 case $cc_basename in
b214d478
SE
8917 # old Intel for x86_64 which still supported -KPIC.
8918 ecc*)
ce2cded5
L
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_pic='-KPIC'
8921 lt_prog_compiler_static='-static'
8922 ;;
b214d478
SE
8923 # icc used to be incompatible with GCC.
8924 # ICC 10 doesn't accept -KPIC any more.
8925 icc* | ifort*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-fPIC'
8928 lt_prog_compiler_static='-static'
8929 ;;
8930 # Lahey Fortran 8.1.
8931 lf95*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='--shared'
8934 lt_prog_compiler_static='--static'
8935 ;;
3725885a 8936 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8937 # Portland Group compilers (*not* the Pentium gcc compiler,
8938 # which looks to be a dead project)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fpic'
8941 lt_prog_compiler_static='-Bstatic'
8942 ;;
8943 ccc*)
8944 lt_prog_compiler_wl='-Wl,'
8945 # All Alpha code is PIC.
8946 lt_prog_compiler_static='-non_shared'
8947 ;;
3725885a
RW
8948 xl* | bgxl* | bgf* | mpixl*)
8949 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-qpic'
8952 lt_prog_compiler_static='-qstaticlink'
8953 ;;
ce2cded5
L
8954 *)
8955 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8956 *Sun\ F* | *Sun*Fortran*)
8957 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
3725885a 8960 lt_prog_compiler_wl=''
ce2cded5 8961 ;;
3725885a
RW
8962 *Sun\ C*)
8963 # Sun C 5.9
ce2cded5
L
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
3725885a 8966 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8967 ;;
8968 esac
8969 ;;
8970 esac
8971 ;;
d7040cdb 8972
ce2cded5
L
8973 newsos6)
8974 lt_prog_compiler_pic='-KPIC'
8975 lt_prog_compiler_static='-Bstatic'
8976 ;;
d7040cdb 8977
ce2cded5
L
8978 *nto* | *qnx*)
8979 # QNX uses GNU C++, but need to define -shared option too, otherwise
8980 # it will coredump.
8981 lt_prog_compiler_pic='-fPIC -shared'
8982 ;;
d7040cdb 8983
ce2cded5
L
8984 osf3* | osf4* | osf5*)
8985 lt_prog_compiler_wl='-Wl,'
8986 # All OSF/1 code is PIC.
8987 lt_prog_compiler_static='-non_shared'
8988 ;;
d7040cdb 8989
ce2cded5
L
8990 rdos*)
8991 lt_prog_compiler_static='-non_shared'
8992 ;;
d7040cdb 8993
ce2cded5
L
8994 solaris*)
8995 lt_prog_compiler_pic='-KPIC'
8996 lt_prog_compiler_static='-Bstatic'
8997 case $cc_basename in
8998 f77* | f90* | f95*)
8999 lt_prog_compiler_wl='-Qoption ld ';;
9000 *)
9001 lt_prog_compiler_wl='-Wl,';;
9002 esac
9003 ;;
d7040cdb 9004
ce2cded5
L
9005 sunos4*)
9006 lt_prog_compiler_wl='-Qoption ld '
9007 lt_prog_compiler_pic='-PIC'
9008 lt_prog_compiler_static='-Bstatic'
9009 ;;
d7040cdb 9010
ce2cded5
L
9011 sysv4 | sysv4.2uw2* | sysv4.3*)
9012 lt_prog_compiler_wl='-Wl,'
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 ;;
d7040cdb 9016
ce2cded5
L
9017 sysv4*MP*)
9018 if test -d /usr/nec ;then
9019 lt_prog_compiler_pic='-Kconform_pic'
9020 lt_prog_compiler_static='-Bstatic'
9021 fi
9022 ;;
d7040cdb 9023
ce2cded5
L
9024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9025 lt_prog_compiler_wl='-Wl,'
9026 lt_prog_compiler_pic='-KPIC'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
d7040cdb 9029
ce2cded5
L
9030 unicos*)
9031 lt_prog_compiler_wl='-Wl,'
9032 lt_prog_compiler_can_build_shared=no
9033 ;;
d7040cdb 9034
ce2cded5
L
9035 uts4*)
9036 lt_prog_compiler_pic='-pic'
9037 lt_prog_compiler_static='-Bstatic'
9038 ;;
d7040cdb 9039
ce2cded5
L
9040 *)
9041 lt_prog_compiler_can_build_shared=no
9042 ;;
9043 esac
9044 fi
d7040cdb 9045
ce2cded5
L
9046case $host_os in
9047 # For platforms which do not support PIC, -DPIC is meaningless:
9048 *djgpp*)
9049 lt_prog_compiler_pic=
9050 ;;
9051 *)
9052 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9053 ;;
9054esac
81ecdfbb
RW
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9056$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9057
9058
9059
9060
9061
9062
ce2cded5
L
9063#
9064# Check to make sure the PIC flag actually works.
9065#
9066if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9068$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9069if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
ce2cded5 9071else
b214d478 9072 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9073 ac_outfile=conftest.$ac_objext
9074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9076 # Insert the option either (1) after the last *FLAGS variable, or
9077 # (2) before a word containing "conftest.", or (3) at the end.
9078 # Note that $ac_compile itself does not contain backslashes and begins
9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
9080 # The option is referenced via a variable to avoid confusing sed.
9081 lt_compile=`echo "$ac_compile" | $SED \
9082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9084 -e 's:$: $lt_compiler_flag:'`
3725885a 9085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9086 (eval "$lt_compile" 2>conftest.err)
9087 ac_status=$?
9088 cat conftest.err >&5
3725885a 9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9090 if (exit $ac_status) && test -s "$ac_outfile"; then
9091 # The compiler can only warn and ignore the option if not recognized
9092 # So say no if there are warnings other than the usual output.
3725885a 9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9096 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9097 fi
9098 fi
9099 $RM conftest*
d7040cdb 9100
ce2cded5 9101fi
81ecdfbb
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9103$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9104
b214d478 9105if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9106 case $lt_prog_compiler_pic in
9107 "" | " "*) ;;
9108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9109 esac
9110else
9111 lt_prog_compiler_pic=
9112 lt_prog_compiler_can_build_shared=no
9113fi
9114
9115fi
d7040cdb
SE
9116
9117
9118
9119
9120
9121
ce2cded5
L
9122#
9123# Check to make sure the static flag actually works.
9124#
9125wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9127$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9128if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
ce2cded5 9130else
b214d478 9131 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9132 save_LDFLAGS="$LDFLAGS"
9133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9136 # The linker can only warn and ignore the option if not recognized
9137 # So say no if there are warnings
9138 if test -s conftest.err; then
9139 # Append any errors to the config.log.
9140 cat conftest.err 1>&5
3725885a 9141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9144 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9145 fi
9146 else
b214d478 9147 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9148 fi
9149 fi
b214d478 9150 $RM -r conftest*
ce2cded5 9151 LDFLAGS="$save_LDFLAGS"
d7040cdb 9152
ce2cded5 9153fi
81ecdfbb
RW
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9155$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9156
b214d478 9157if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9158 :
9159else
9160 lt_prog_compiler_static=
9161fi
d7040cdb
SE
9162
9163
9164
9165
9166
9167
9168
81ecdfbb
RW
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9171if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
ce2cded5
L
9173else
9174 lt_cv_prog_compiler_c_o=no
9175 $RM -r conftest 2>/dev/null
9176 mkdir conftest
9177 cd conftest
9178 mkdir out
9179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9180
ce2cded5
L
9181 lt_compiler_flag="-o out/conftest2.$ac_objext"
9182 # Insert the option either (1) after the last *FLAGS variable, or
9183 # (2) before a word containing "conftest.", or (3) at the end.
9184 # Note that $ac_compile itself does not contain backslashes and begins
9185 # with a dollar sign (not a hyphen), so the echo should work correctly.
9186 lt_compile=`echo "$ac_compile" | $SED \
9187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9189 -e 's:$: $lt_compiler_flag:'`
3725885a 9190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9191 (eval "$lt_compile" 2>out/conftest.err)
9192 ac_status=$?
9193 cat out/conftest.err >&5
3725885a 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9196 then
9197 # The compiler can only warn and ignore the option if not recognized
9198 # So say no if there are warnings
3725885a 9199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_c_o=yes
9203 fi
9204 fi
9205 chmod u+w . 2>&5
9206 $RM conftest*
9207 # SGI C++ compiler will create directory out/ii_files/ for
9208 # template instantiation
9209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9210 $RM out/* && rmdir out
9211 cd ..
9212 $RM -r conftest
9213 $RM conftest*
d7040cdb 9214
ce2cded5 9215fi
81ecdfbb
RW
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9217$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9218
9219
9220
9221
9222
9223
81ecdfbb
RW
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9226if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
ce2cded5
L
9228else
9229 lt_cv_prog_compiler_c_o=no
9230 $RM -r conftest 2>/dev/null
9231 mkdir conftest
9232 cd conftest
9233 mkdir out
9234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9235
ce2cded5
L
9236 lt_compiler_flag="-o out/conftest2.$ac_objext"
9237 # Insert the option either (1) after the last *FLAGS variable, or
9238 # (2) before a word containing "conftest.", or (3) at the end.
9239 # Note that $ac_compile itself does not contain backslashes and begins
9240 # with a dollar sign (not a hyphen), so the echo should work correctly.
9241 lt_compile=`echo "$ac_compile" | $SED \
9242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9244 -e 's:$: $lt_compiler_flag:'`
3725885a 9245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9246 (eval "$lt_compile" 2>out/conftest.err)
9247 ac_status=$?
9248 cat out/conftest.err >&5
3725885a 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9251 then
9252 # The compiler can only warn and ignore the option if not recognized
9253 # So say no if there are warnings
3725885a 9254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9257 lt_cv_prog_compiler_c_o=yes
9258 fi
9259 fi
9260 chmod u+w . 2>&5
9261 $RM conftest*
9262 # SGI C++ compiler will create directory out/ii_files/ for
9263 # template instantiation
9264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9265 $RM out/* && rmdir out
9266 cd ..
9267 $RM -r conftest
9268 $RM conftest*
9269
9270fi
81ecdfbb
RW
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9272$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9273
9274
9275
9276
9277hard_links="nottested"
9278if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9279 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9281$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9282 hard_links=yes
9283 $RM conftest*
9284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9285 touch conftest.a
9286 ln conftest.a conftest.b 2>&5 || hard_links=no
9287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9289$as_echo "$hard_links" >&6; }
ce2cded5 9290 if test "$hard_links" = no; then
81ecdfbb
RW
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9292$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9293 need_locks=warn
d7040cdb 9294 fi
d7040cdb 9295else
ce2cded5 9296 need_locks=no
d7040cdb 9297fi
d7040cdb 9298
d7040cdb 9299
d7040cdb 9300
d7040cdb 9301
d7040cdb 9302
d7040cdb 9303
81ecdfbb
RW
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9305$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9306
ce2cded5
L
9307 runpath_var=
9308 allow_undefined_flag=
9309 always_export_symbols=no
9310 archive_cmds=
9311 archive_expsym_cmds=
9312 compiler_needs_object=no
9313 enable_shared_with_static_runtimes=no
9314 export_dynamic_flag_spec=
9315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9316 hardcode_automatic=no
9317 hardcode_direct=no
9318 hardcode_direct_absolute=no
9319 hardcode_libdir_flag_spec=
9320 hardcode_libdir_flag_spec_ld=
9321 hardcode_libdir_separator=
9322 hardcode_minus_L=no
9323 hardcode_shlibpath_var=unsupported
9324 inherit_rpath=no
9325 link_all_deplibs=unknown
9326 module_cmds=
9327 module_expsym_cmds=
9328 old_archive_from_new_cmds=
9329 old_archive_from_expsyms_cmds=
9330 thread_safe_flag_spec=
9331 whole_archive_flag_spec=
9332 # include_expsyms should be a list of space-separated symbols to be *always*
9333 # included in the symbol list
9334 include_expsyms=
9335 # exclude_expsyms can be an extended regexp of symbols to exclude
9336 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9337 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9338 # as well as any symbol that contains `d'.
b214d478 9339 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9340 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9341 # platforms (ab)use it in PIC code, but their linkers get confused if
9342 # the symbol is explicitly referenced. Since portable code cannot
9343 # rely on this symbol name, it's probably fine to never include it in
9344 # preloaded symbol tables.
b214d478 9345 # Exclude shared library initialization/finalization symbols.
ce2cded5 9346 extract_expsyms_cmds=
d7040cdb 9347
ce2cded5 9348 case $host_os in
b214d478 9349 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9350 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9351 # When not using gcc, we currently assume that we are using
9352 # Microsoft Visual C++.
9353 if test "$GCC" != yes; then
9354 with_gnu_ld=no
9355 fi
d7040cdb 9356 ;;
ce2cded5
L
9357 interix*)
9358 # we just hope/assume this is gcc and not c89 (= MSVC++)
9359 with_gnu_ld=yes
9360 ;;
9361 openbsd*)
9362 with_gnu_ld=no
d7040cdb
SE
9363 ;;
9364 esac
d7040cdb 9365
ce2cded5 9366 ld_shlibs=yes
3725885a
RW
9367
9368 # On some targets, GNU ld is compatible enough with the native linker
9369 # that we're better off using the native interface for both.
9370 lt_use_gnu_ld_interface=no
ce2cded5 9371 if test "$with_gnu_ld" = yes; then
3725885a
RW
9372 case $host_os in
9373 aix*)
9374 # The AIX port of GNU ld has always aspired to compatibility
9375 # with the native linker. However, as the warning in the GNU ld
9376 # block says, versions before 2.19.5* couldn't really create working
9377 # shared libraries, regardless of the interface used.
9378 case `$LD -v 2>&1` in
9379 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9380 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9381 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9382 *)
9383 lt_use_gnu_ld_interface=yes
9384 ;;
9385 esac
9386 ;;
9387 *)
9388 lt_use_gnu_ld_interface=yes
9389 ;;
9390 esac
9391 fi
9392
9393 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9394 # If archive_cmds runs LD, not CC, wlarc should be empty
9395 wlarc='${wl}'
d7040cdb 9396
ce2cded5
L
9397 # Set some defaults for GNU ld with shared library support. These
9398 # are reset later if shared libraries are not supported. Putting them
9399 # here allows them to be overridden if necessary.
9400 runpath_var=LD_RUN_PATH
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402 export_dynamic_flag_spec='${wl}--export-dynamic'
9403 # ancient GNU ld didn't support --whole-archive et. al.
9404 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9405 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9406 else
9407 whole_archive_flag_spec=
9408 fi
9409 supports_anon_versioning=no
9410 case `$LD -v 2>&1` in
3725885a 9411 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9415 *\ 2.11.*) ;; # other 2.11 versions
9416 *) supports_anon_versioning=yes ;;
9417 esac
d7040cdb 9418
ce2cded5
L
9419 # See if GNU ld supports shared libraries.
9420 case $host_os in
50e7d84b 9421 aix[3-9]*)
ce2cded5
L
9422 # On AIX/PPC, the GNU linker is very broken
9423 if test "$host_cpu" != ia64; then
9424 ld_shlibs=no
9425 cat <<_LT_EOF 1>&2
d7040cdb 9426
3725885a 9427*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9428*** to be unable to reliably create shared libraries on AIX.
9429*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9430*** really care for shared libraries, you may want to install binutils
9431*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9432*** You will then need to restart the configuration process.
d7040cdb 9433
ce2cded5
L
9434_LT_EOF
9435 fi
d7040cdb 9436 ;;
d7040cdb 9437
ce2cded5 9438 amigaos*)
b214d478
SE
9439 case $host_cpu in
9440 powerpc)
9441 # see comment about AmigaOS4 .so support
9442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443 archive_expsym_cmds=''
9444 ;;
9445 m68k)
9446 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)'
9447 hardcode_libdir_flag_spec='-L$libdir'
9448 hardcode_minus_L=yes
9449 ;;
9450 esac
ce2cded5 9451 ;;
d7040cdb 9452
ce2cded5
L
9453 beos*)
9454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9455 allow_undefined_flag=unsupported
9456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9457 # support --undefined. This deserves some investigation. FIXME
9458 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9459 else
9460 ld_shlibs=no
9461 fi
9462 ;;
d7040cdb 9463
b214d478 9464 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9465 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9466 # as there is no search path for DLLs.
9467 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9468 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9469 allow_undefined_flag=unsupported
9470 always_export_symbols=no
9471 enable_shared_with_static_runtimes=yes
9472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9473
9474 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9476 # If the export-symbols file already is a .def file (1st line
9477 # is EXPORTS), use it as is; otherwise, prepend...
9478 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9479 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9480 else
ce2cded5
L
9481 echo EXPORTS > $output_objdir/$soname.def;
9482 cat $export_symbols >> $output_objdir/$soname.def;
9483 fi~
9484 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9485 else
9486 ld_shlibs=no
9487 fi
9488 ;;
d7040cdb 9489
3725885a
RW
9490 haiku*)
9491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492 link_all_deplibs=yes
9493 ;;
9494
ce2cded5
L
9495 interix[3-9]*)
9496 hardcode_direct=no
9497 hardcode_shlibpath_var=no
9498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9499 export_dynamic_flag_spec='${wl}-E'
9500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9501 # Instead, shared libraries are loaded at an image base (0x10000000 by
9502 # default) and relocated if they conflict, which is a slow very memory
9503 # consuming and fragmenting process. To avoid this, we pick a random,
9504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9505 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9507 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'
9508 ;;
d7040cdb 9509
58e24671 9510 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9511 tmp_diet=no
9512 if test "$host_os" = linux-dietlibc; then
9513 case $cc_basename in
9514 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9515 esac
9516 fi
9517 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9518 && test "$tmp_diet" = no
9519 then
6e733cce 9520 tmp_addflag=' $pic_flag'
b214d478 9521 tmp_sharedflag='-shared'
ce2cded5
L
9522 case $cc_basename,$host_cpu in
9523 pgcc*) # Portland Group C compiler
3725885a 9524 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
9525 tmp_addflag=' $pic_flag'
9526 ;;
3725885a
RW
9527 pgf77* | pgf90* | pgf95* | pgfortran*)
9528 # Portland Group f77 and f90 compilers
9529 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
9530 tmp_addflag=' $pic_flag -Mnomain' ;;
9531 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9532 tmp_addflag=' -i_dynamic' ;;
9533 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9534 tmp_addflag=' -i_dynamic -nofor_main' ;;
9535 ifc* | ifort*) # Intel Fortran compiler
9536 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9537 lf95*) # Lahey Fortran 8.1
9538 whole_archive_flag_spec=
9539 tmp_sharedflag='--shared' ;;
3725885a 9540 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9541 tmp_sharedflag='-qmkshrobj'
9542 tmp_addflag= ;;
3725885a
RW
9543 nvcc*) # Cuda Compiler Driver 2.2
9544 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'
9545 compiler_needs_object=yes
9546 ;;
ce2cded5
L
9547 esac
9548 case `$CC -V 2>&1 | sed 5q` in
9549 *Sun\ C*) # Sun C 5.9
3725885a 9550 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
9551 compiler_needs_object=yes
9552 tmp_sharedflag='-G' ;;
9553 *Sun\ F*) # Sun Fortran 8.3
9554 tmp_sharedflag='-G' ;;
ce2cded5
L
9555 esac
9556 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9557
ce2cded5
L
9558 if test "x$supports_anon_versioning" = xyes; then
9559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9561 echo "local: *; };" >> $output_objdir/$libname.ver~
9562 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9563 fi
b214d478
SE
9564
9565 case $cc_basename in
3725885a 9566 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9567 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9568 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9569 hardcode_libdir_flag_spec=
9570 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9571 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9572 if test "x$supports_anon_versioning" = xyes; then
9573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9575 echo "local: *; };" >> $output_objdir/$libname.ver~
9576 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9577 fi
9578 ;;
9579 esac
ce2cded5
L
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
d7040cdb 9584
ce2cded5
L
9585 netbsd*)
9586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9588 wlarc=
9589 else
9590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592 fi
9593 ;;
9594
9595 solaris*)
9596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9597 ld_shlibs=no
9598 cat <<_LT_EOF 1>&2
9599
9600*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9601*** create shared libraries on Solaris systems. Therefore, libtool
9602*** is disabling shared libraries support. We urge you to upgrade GNU
9603*** binutils to release 2.9.1 or newer. Another option is to modify
9604*** your PATH or compiler configuration so that the native linker is
9605*** used, and then restart.
9606
9607_LT_EOF
9608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9611 else
9612 ld_shlibs=no
9613 fi
9614 ;;
9615
9616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9617 case `$LD -v 2>&1` in
9618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9619 ld_shlibs=no
9620 cat <<_LT_EOF 1>&2
9621
9622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9623*** reliably create shared libraries on SCO systems. Therefore, libtool
9624*** is disabling shared libraries support. We urge you to upgrade GNU
9625*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9626*** your PATH or compiler configuration so that the native linker is
9627*** used, and then restart.
9628
9629_LT_EOF
9630 ;;
9631 *)
9632 # For security reasons, it is highly recommended that you always
9633 # use absolute paths for naming shared libraries, and exclude the
9634 # DT_RUNPATH tag from executables and libraries. But doing so
9635 # requires that you compile everything twice, which is a pain.
9636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9640 else
9641 ld_shlibs=no
9642 fi
9643 ;;
9644 esac
9645 ;;
9646
9647 sunos4*)
9648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9649 wlarc=
9650 hardcode_direct=yes
9651 hardcode_shlibpath_var=no
9652 ;;
9653
9654 *)
9655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9658 else
9659 ld_shlibs=no
9660 fi
9661 ;;
9662 esac
9663
9664 if test "$ld_shlibs" = no; then
9665 runpath_var=
9666 hardcode_libdir_flag_spec=
9667 export_dynamic_flag_spec=
9668 whole_archive_flag_spec=
9669 fi
9670 else
9671 # PORTME fill in a description of your system's linker (not GNU ld)
9672 case $host_os in
9673 aix3*)
9674 allow_undefined_flag=unsupported
9675 always_export_symbols=yes
9676 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'
9677 # Note: this linker hardcodes the directories in LIBPATH if there
9678 # are no directories specified by -L.
9679 hardcode_minus_L=yes
9680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9681 # Neither direct hardcoding nor static linking is supported with a
9682 # broken collect2.
9683 hardcode_direct=unsupported
9684 fi
9685 ;;
9686
50e7d84b 9687 aix[4-9]*)
ce2cded5
L
9688 if test "$host_cpu" = ia64; then
9689 # On IA64, the linker does run time linking by default, so we don't
9690 # have to do anything special.
9691 aix_use_runtimelinking=no
9692 exp_sym_flag='-Bexport'
9693 no_entry_flag=""
9694 else
9695 # If we're using GNU nm, then we don't want the "-C" option.
9696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9697 # Also, AIX nm treats weak defined symbols like other global
9698 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9699 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9700 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 9701 else
5c14705f 9702 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
9703 fi
9704 aix_use_runtimelinking=no
9705
9706 # Test if we are trying to use run time linking or normal
9707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9708 # need to do runtime linking.
50e7d84b 9709 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9710 for ld_flag in $LDFLAGS; do
9711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9712 aix_use_runtimelinking=yes
9713 break
9714 fi
9715 done
9716 ;;
9717 esac
9718
9719 exp_sym_flag='-bexport'
9720 no_entry_flag='-bnoentry'
9721 fi
9722
9723 # When large executables or shared objects are built, AIX ld can
9724 # have problems creating the table of contents. If linking a library
9725 # or program results in "error TOC overflow" add -mminimal-toc to
9726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9728
9729 archive_cmds=''
9730 hardcode_direct=yes
9731 hardcode_direct_absolute=yes
9732 hardcode_libdir_separator=':'
9733 link_all_deplibs=yes
9734 file_list_spec='${wl}-f,'
9735
9736 if test "$GCC" = yes; then
9737 case $host_os in aix4.[012]|aix4.[012].*)
9738 # We only want to do this on AIX 4.2 and lower, the check
9739 # below for broken collect2 doesn't work under 4.3+
9740 collect2name=`${CC} -print-prog-name=collect2`
9741 if test -f "$collect2name" &&
9742 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9743 then
9744 # We have reworked collect2
9745 :
9746 else
9747 # We have old collect2
9748 hardcode_direct=unsupported
9749 # It fails to find uninstalled libraries when the uninstalled
9750 # path is not listed in the libpath. Setting hardcode_minus_L
9751 # to unsupported forces relinking
9752 hardcode_minus_L=yes
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_libdir_separator=
9755 fi
9756 ;;
9757 esac
9758 shared_flag='-shared'
9759 if test "$aix_use_runtimelinking" = yes; then
9760 shared_flag="$shared_flag "'${wl}-G'
9761 fi
9762 else
9763 # not using gcc
9764 if test "$host_cpu" = ia64; then
9765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9766 # chokes on -Wl,-G. The following line is correct:
9767 shared_flag='-G'
9768 else
9769 if test "$aix_use_runtimelinking" = yes; then
9770 shared_flag='${wl}-G'
9771 else
9772 shared_flag='${wl}-bM:SRE'
9773 fi
9774 fi
9775 fi
9776
b214d478 9777 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9778 # It seems that -bexpall does not export symbols beginning with
9779 # underscore (_), so it is better to generate a list of symbols to export.
9780 always_export_symbols=yes
9781 if test "$aix_use_runtimelinking" = yes; then
9782 # Warning - without using the other runtime loading flags (-brtl),
9783 # -berok will link without error, but may produce a broken library.
9784 allow_undefined_flag='-berok'
9785 # Determine the default libpath from the value encoded in an
9786 # empty executable.
81ecdfbb 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9788/* end confdefs.h. */
9789
9790int
9791main ()
9792{
9793
9794 ;
9795 return 0;
9796}
9797_ACEOF
81ecdfbb 9798if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9799
ce2cded5
L
9800lt_aix_libpath_sed='
9801 /Import File Strings/,/^$/ {
9802 /^0/ {
9803 s/^0 *\(.*\)$/\1/
9804 p
9805 }
9806 }'
9807aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9808# Check for a 64-bit object if we didn't find anything.
9809if test -z "$aix_libpath"; then
9810 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811fi
d7040cdb 9812fi
81ecdfbb
RW
9813rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9816
ce2cded5 9817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9818 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
9819 else
9820 if test "$host_cpu" = ia64; then
9821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9822 allow_undefined_flag="-z nodefs"
9823 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"
9824 else
9825 # Determine the default libpath from the value encoded in an
9826 # empty executable.
81ecdfbb 9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9828/* end confdefs.h. */
d7040cdb 9829
ce2cded5
L
9830int
9831main ()
9832{
d7040cdb 9833
ce2cded5
L
9834 ;
9835 return 0;
9836}
9837_ACEOF
81ecdfbb 9838if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9839
ce2cded5
L
9840lt_aix_libpath_sed='
9841 /Import File Strings/,/^$/ {
9842 /^0/ {
9843 s/^0 *\(.*\)$/\1/
9844 p
9845 }
9846 }'
9847aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9848# Check for a 64-bit object if we didn't find anything.
9849if test -z "$aix_libpath"; then
9850 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851fi
ce2cded5 9852fi
81ecdfbb
RW
9853rm -f core conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9855if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9856
ce2cded5
L
9857 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9858 # Warning - without using the other run time loading flags,
9859 # -berok will link without error, but may produce a broken library.
9860 no_undefined_flag=' ${wl}-bernotok'
9861 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9862 if test "$with_gnu_ld" = yes; then
9863 # We only use this code for GNU lds that support --whole-archive.
9864 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9865 else
9866 # Exported symbols can be pulled into shared objects from archives
9867 whole_archive_flag_spec='$convenience'
9868 fi
ce2cded5
L
9869 archive_cmds_need_lc=yes
9870 # This is similar to how AIX traditionally builds its shared libraries.
9871 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'
9872 fi
9873 fi
9874 ;;
d7040cdb 9875
ce2cded5 9876 amigaos*)
b214d478
SE
9877 case $host_cpu in
9878 powerpc)
9879 # see comment about AmigaOS4 .so support
9880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881 archive_expsym_cmds=''
9882 ;;
9883 m68k)
9884 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)'
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_minus_L=yes
9887 ;;
9888 esac
ce2cded5
L
9889 ;;
9890
9891 bsdi[45]*)
9892 export_dynamic_flag_spec=-rdynamic
9893 ;;
9894
b214d478 9895 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9896 # When not using gcc, we currently assume that we are using
9897 # Microsoft Visual C++.
9898 # hardcode_libdir_flag_spec is actually meaningless, as there is
9899 # no search path for DLLs.
9900 hardcode_libdir_flag_spec=' '
9901 allow_undefined_flag=unsupported
9902 # Tell ltmain to make .lib files, not .a files.
9903 libext=lib
9904 # Tell ltmain to make .dll files, not .so files.
9905 shrext_cmds=".dll"
9906 # FIXME: Setting linknames here is a bad hack.
3725885a 9907 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9908 # The linker will automatically build a .lib file if we build a DLL.
9909 old_archive_from_new_cmds='true'
9910 # FIXME: Should let the user specify the lib program.
9911 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9912 fix_srcfile_path='`cygpath -w "$srcfile"`'
9913 enable_shared_with_static_runtimes=yes
9914 ;;
9915
9916 darwin* | rhapsody*)
d7040cdb 9917
b214d478
SE
9918
9919 archive_cmds_need_lc=no
9920 hardcode_direct=no
9921 hardcode_automatic=yes
9922 hardcode_shlibpath_var=unsupported
3725885a
RW
9923 if test "$lt_cv_ld_force_load" = "yes"; then
9924 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\"`'
9925 else
9926 whole_archive_flag_spec=''
9927 fi
b214d478
SE
9928 link_all_deplibs=yes
9929 allow_undefined_flag="$_lt_dar_allow_undefined"
9930 case $cc_basename in
9931 ifort*) _lt_dar_can_shared=yes ;;
9932 *) _lt_dar_can_shared=$GCC ;;
9933 esac
9934 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9935 output_verbose_link_cmd=func_echo_all
b214d478
SE
9936 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9937 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9938 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}"
9939 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}"
9940
9941 else
9942 ld_shlibs=no
9943 fi
9944
ce2cded5 9945 ;;
d7040cdb 9946
ce2cded5
L
9947 dgux*)
9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_libdir_flag_spec='-L$libdir'
9950 hardcode_shlibpath_var=no
9951 ;;
d7040cdb 9952
ce2cded5
L
9953 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9954 # support. Future versions do this automatically, but an explicit c++rt0.o
9955 # does not break anything, and helps significantly (at the cost of a little
9956 # extra space).
9957 freebsd2.2*)
9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9959 hardcode_libdir_flag_spec='-R$libdir'
9960 hardcode_direct=yes
9961 hardcode_shlibpath_var=no
d7040cdb 9962 ;;
d7040cdb 9963
ce2cded5 9964 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9965 freebsd2.*)
ce2cded5
L
9966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_direct=yes
9968 hardcode_minus_L=yes
9969 hardcode_shlibpath_var=no
9970 ;;
d7040cdb 9971
ce2cded5
L
9972 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9973 freebsd* | dragonfly*)
9974 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_direct=yes
9977 hardcode_shlibpath_var=no
9978 ;;
d7040cdb 9979
ce2cded5
L
9980 hpux9*)
9981 if test "$GCC" = yes; then
9982 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'
9983 else
9984 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'
9985 fi
9986 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9987 hardcode_libdir_separator=:
9988 hardcode_direct=yes
d7040cdb 9989
ce2cded5
L
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9993 export_dynamic_flag_spec='${wl}-E'
9994 ;;
d7040cdb 9995
ce2cded5 9996 hpux10*)
3725885a 9997 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9998 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999 else
10000 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10001 fi
10002 if test "$with_gnu_ld" = no; then
10003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10004 hardcode_libdir_flag_spec_ld='+b $libdir'
10005 hardcode_libdir_separator=:
10006 hardcode_direct=yes
10007 hardcode_direct_absolute=yes
10008 export_dynamic_flag_spec='${wl}-E'
10009 # hardcode_minus_L: Not really in the search PATH,
10010 # but as the default location of the library.
10011 hardcode_minus_L=yes
10012 fi
10013 ;;
d7040cdb 10014
ce2cded5 10015 hpux11*)
3725885a 10016 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10017 case $host_cpu in
10018 hppa*64*)
10019 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 ;;
10021 ia64*)
b214d478 10022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10023 ;;
10024 *)
10025 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026 ;;
10027 esac
10028 else
10029 case $host_cpu in
10030 hppa*64*)
10031 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 ;;
10033 ia64*)
10034 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035 ;;
10036 *)
3725885a
RW
10037
10038 # Older versions of the 11.00 compiler do not understand -b yet
10039 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10041$as_echo_n "checking if $CC understands -b... " >&6; }
10042if test "${lt_cv_prog_compiler__b+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044else
10045 lt_cv_prog_compiler__b=no
10046 save_LDFLAGS="$LDFLAGS"
10047 LDFLAGS="$LDFLAGS -b"
10048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10050 # The linker can only warn and ignore the option if not recognized
10051 # So say no if there are warnings
10052 if test -s conftest.err; then
10053 # Append any errors to the config.log.
10054 cat conftest.err 1>&5
10055 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057 if diff conftest.exp conftest.er2 >/dev/null; then
10058 lt_cv_prog_compiler__b=yes
10059 fi
10060 else
10061 lt_cv_prog_compiler__b=yes
10062 fi
10063 fi
10064 $RM -r conftest*
10065 LDFLAGS="$save_LDFLAGS"
10066
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10069$as_echo "$lt_cv_prog_compiler__b" >&6; }
10070
10071if test x"$lt_cv_prog_compiler__b" = xyes; then
10072 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10073else
10074 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10075fi
10076
ce2cded5
L
10077 ;;
10078 esac
10079 fi
10080 if test "$with_gnu_ld" = no; then
10081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10082 hardcode_libdir_separator=:
d7040cdb 10083
ce2cded5
L
10084 case $host_cpu in
10085 hppa*64*|ia64*)
10086 hardcode_direct=no
10087 hardcode_shlibpath_var=no
10088 ;;
10089 *)
10090 hardcode_direct=yes
10091 hardcode_direct_absolute=yes
10092 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10093
ce2cded5
L
10094 # hardcode_minus_L: Not really in the search PATH,
10095 # but as the default location of the library.
10096 hardcode_minus_L=yes
10097 ;;
10098 esac
10099 fi
10100 ;;
d7040cdb 10101
ce2cded5
L
10102 irix5* | irix6* | nonstopux*)
10103 if test "$GCC" = yes; then
3725885a 10104 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
10105 # Try to use the -exported_symbol ld option, if it does not
10106 # work, assume that -exports_file does not work either and
10107 # implicitly export all symbols.
10108 save_LDFLAGS="$LDFLAGS"
10109 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h. */
ce2cded5
L
10112int foo(void) {}
10113_ACEOF
81ecdfbb 10114if ac_fn_c_try_link "$LINENO"; then :
3725885a 10115 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 10116
ce2cded5 10117fi
81ecdfbb
RW
10118rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10120 LDFLAGS="$save_LDFLAGS"
10121 else
3725885a
RW
10122 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'
10123 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
10124 fi
10125 archive_cmds_need_lc='no'
10126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10127 hardcode_libdir_separator=:
10128 inherit_rpath=yes
10129 link_all_deplibs=yes
10130 ;;
d7040cdb 10131
ce2cded5
L
10132 netbsd*)
10133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10135 else
10136 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10137 fi
10138 hardcode_libdir_flag_spec='-R$libdir'
10139 hardcode_direct=yes
10140 hardcode_shlibpath_var=no
10141 ;;
d7040cdb 10142
ce2cded5
L
10143 newsos6)
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_direct=yes
10146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147 hardcode_libdir_separator=:
10148 hardcode_shlibpath_var=no
10149 ;;
d7040cdb 10150
ce2cded5
L
10151 *nto* | *qnx*)
10152 ;;
d7040cdb 10153
ce2cded5 10154 openbsd*)
b214d478
SE
10155 if test -f /usr/libexec/ld.so; then
10156 hardcode_direct=yes
10157 hardcode_shlibpath_var=no
10158 hardcode_direct_absolute=yes
10159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10161 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10163 export_dynamic_flag_spec='${wl}-E'
10164 else
10165 case $host_os in
10166 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_libdir_flag_spec='-R$libdir'
10169 ;;
10170 *)
10171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10173 ;;
10174 esac
10175 fi
10176 else
10177 ld_shlibs=no
ce2cded5
L
10178 fi
10179 ;;
d7040cdb 10180
ce2cded5
L
10181 os2*)
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_minus_L=yes
10184 allow_undefined_flag=unsupported
3725885a 10185 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
10186 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10187 ;;
d7040cdb 10188
ce2cded5
L
10189 osf3*)
10190 if test "$GCC" = yes; then
10191 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10192 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
10193 else
10194 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10195 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
10196 fi
10197 archive_cmds_need_lc='no'
10198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199 hardcode_libdir_separator=:
10200 ;;
d7040cdb 10201
ce2cded5
L
10202 osf4* | osf5*) # as osf3* with the addition of -msym flag
10203 if test "$GCC" = yes; then
10204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10205 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
10206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10207 else
10208 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10209 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 10210 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 10211 $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 10212
ce2cded5
L
10213 # Both c and cxx compiler support -rpath directly
10214 hardcode_libdir_flag_spec='-rpath $libdir'
10215 fi
10216 archive_cmds_need_lc='no'
10217 hardcode_libdir_separator=:
10218 ;;
d7040cdb 10219
ce2cded5
L
10220 solaris*)
10221 no_undefined_flag=' -z defs'
10222 if test "$GCC" = yes; then
10223 wlarc='${wl}'
10224 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10227 else
10228 case `$CC -V 2>&1` in
10229 *"Compilers 5.0"*)
10230 wlarc=''
10231 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10233 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10234 ;;
10235 *)
10236 wlarc='${wl}'
10237 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10240 ;;
10241 esac
10242 fi
10243 hardcode_libdir_flag_spec='-R$libdir'
10244 hardcode_shlibpath_var=no
10245 case $host_os in
10246 solaris2.[0-5] | solaris2.[0-5].*) ;;
10247 *)
10248 # The compiler driver will combine and reorder linker options,
10249 # but understands `-z linker_flag'. GCC discards it without `$wl',
10250 # but is careful enough not to reorder.
10251 # Supported since Solaris 2.6 (maybe 2.5.1?)
10252 if test "$GCC" = yes; then
10253 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10254 else
10255 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10256 fi
10257 ;;
10258 esac
10259 link_all_deplibs=yes
10260 ;;
d7040cdb 10261
ce2cded5
L
10262 sunos4*)
10263 if test "x$host_vendor" = xsequent; then
10264 # Use $CC to link under sequent, because it throws in some extra .o
10265 # files that make .init and .fini sections work.
10266 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10267 else
10268 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10269 fi
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_direct=yes
10272 hardcode_minus_L=yes
10273 hardcode_shlibpath_var=no
10274 ;;
d7040cdb 10275
ce2cded5
L
10276 sysv4)
10277 case $host_vendor in
10278 sni)
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_direct=yes # is this really true???
10281 ;;
10282 siemens)
10283 ## LD is ld it makes a PLAMLIB
10284 ## CC just makes a GrossModule.
10285 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10286 reload_cmds='$CC -r -o $output$reload_objs'
10287 hardcode_direct=no
10288 ;;
10289 motorola)
10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10292 ;;
10293 esac
10294 runpath_var='LD_RUN_PATH'
10295 hardcode_shlibpath_var=no
10296 ;;
d7040cdb 10297
ce2cded5
L
10298 sysv4.3*)
10299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_shlibpath_var=no
10301 export_dynamic_flag_spec='-Bexport'
10302 ;;
d7040cdb 10303
ce2cded5
L
10304 sysv4*MP*)
10305 if test -d /usr/nec; then
10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 hardcode_shlibpath_var=no
10308 runpath_var=LD_RUN_PATH
10309 hardcode_runpath_var=yes
10310 ld_shlibs=yes
10311 fi
10312 ;;
d7040cdb 10313
ce2cded5
L
10314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10315 no_undefined_flag='${wl}-z,text'
10316 archive_cmds_need_lc=no
10317 hardcode_shlibpath_var=no
10318 runpath_var='LD_RUN_PATH'
d7040cdb 10319
ce2cded5
L
10320 if test "$GCC" = yes; then
10321 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 else
10324 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 fi
10327 ;;
d7040cdb 10328
ce2cded5
L
10329 sysv5* | sco3.2v5* | sco5v6*)
10330 # Note: We can NOT use -z defs as we might desire, because we do not
10331 # link with -lc, and that would cause any symbols used from libc to
10332 # always be unresolved, which means just about no library would
10333 # ever link correctly. If we're not using GNU ld we use -z text
10334 # though, which does catch some bad symbols but isn't as heavy-handed
10335 # as -z defs.
10336 no_undefined_flag='${wl}-z,text'
10337 allow_undefined_flag='${wl}-z,nodefs'
10338 archive_cmds_need_lc=no
10339 hardcode_shlibpath_var=no
10340 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10341 hardcode_libdir_separator=':'
10342 link_all_deplibs=yes
10343 export_dynamic_flag_spec='${wl}-Bexport'
10344 runpath_var='LD_RUN_PATH'
d7040cdb 10345
ce2cded5
L
10346 if test "$GCC" = yes; then
10347 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 else
10350 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 fi
10353 ;;
d7040cdb 10354
ce2cded5
L
10355 uts4*)
10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357 hardcode_libdir_flag_spec='-L$libdir'
10358 hardcode_shlibpath_var=no
10359 ;;
d7040cdb 10360
ce2cded5
L
10361 *)
10362 ld_shlibs=no
10363 ;;
10364 esac
d7040cdb 10365
ce2cded5
L
10366 if test x$host_vendor = xsni; then
10367 case $host in
10368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10369 export_dynamic_flag_spec='${wl}-Blargedynsym'
10370 ;;
10371 esac
10372 fi
10373 fi
d7040cdb 10374
81ecdfbb
RW
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10376$as_echo "$ld_shlibs" >&6; }
ce2cded5 10377test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10378
ce2cded5 10379with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
ce2cded5
L
10395#
10396# Do we need to explicitly link libc?
10397#
10398case "x$archive_cmds_need_lc" in
10399x|xyes)
10400 # Assume -lc should be added
10401 archive_cmds_need_lc=yes
d7040cdb 10402
ce2cded5
L
10403 if test "$enable_shared" = yes && test "$GCC" = yes; then
10404 case $archive_cmds in
10405 *'~'*)
10406 # FIXME: we may have to deal with multi-command sequences.
10407 ;;
10408 '$CC '*)
10409 # Test whether the compiler implicitly links with -lc since on some
10410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10411 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10413$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10414if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
39144654
RW
10416else
10417 $RM conftest*
10418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10419
81ecdfbb 10420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10421 (eval $ac_compile) 2>&5
10422 ac_status=$?
81ecdfbb
RW
10423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10425 soname=conftest
10426 lib=conftest
10427 libobjs=conftest.$ac_objext
10428 deplibs=
10429 wl=$lt_prog_compiler_wl
10430 pic_flag=$lt_prog_compiler_pic
10431 compiler_flags=-v
10432 linker_flags=-v
10433 verstring=
10434 output_objdir=.
10435 libname=conftest
10436 lt_save_allow_undefined_flag=$allow_undefined_flag
10437 allow_undefined_flag=
81ecdfbb 10438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10439 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10440 ac_status=$?
81ecdfbb
RW
10441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10442 test $ac_status = 0; }
39144654
RW
10443 then
10444 lt_cv_archive_cmds_need_lc=no
10445 else
10446 lt_cv_archive_cmds_need_lc=yes
10447 fi
10448 allow_undefined_flag=$lt_save_allow_undefined_flag
10449 else
10450 cat conftest.err 1>&5
10451 fi
10452 $RM conftest*
10453
10454fi
81ecdfbb
RW
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10456$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10457 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10458 ;;
10459 esac
10460 fi
10461 ;;
10462esac
d7040cdb
SE
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
d7040cdb 10490
d7040cdb 10491
d7040cdb
SE
10492
10493
10494
10495
10496
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
d7040cdb 10519
d7040cdb 10520
d7040cdb 10521
d7040cdb 10522
d7040cdb 10523
d7040cdb 10524
d7040cdb 10525
ce2cded5
L
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
10613
10614
10615
10616
10617
10618
10619
81ecdfbb
RW
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10621$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10622
10623if test "$GCC" = yes; then
ce2cded5
L
10624 case $host_os in
10625 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10626 *) lt_awk_arg="/^libraries:/" ;;
10627 esac
3725885a
RW
10628 case $host_os in
10629 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10630 *) lt_sed_strip_eq="s,=/,/,g" ;;
10631 esac
10632 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10633 case $lt_search_path_spec in
10634 *\;*)
ce2cded5
L
10635 # if the path contains ";" then we assume it to be the separator
10636 # otherwise default to the standard path separator (i.e. ":") - it is
10637 # assumed that no part of a normal pathname contains ";" but that should
10638 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10640 ;;
10641 *)
10642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10643 ;;
10644 esac
ce2cded5
L
10645 # Ok, now we have the path, separated by spaces, we can step through it
10646 # and add multilib dir if necessary.
10647 lt_tmp_lt_search_path_spec=
10648 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10649 for lt_sys_path in $lt_search_path_spec; do
10650 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10652 else
10653 test -d "$lt_sys_path" && \
10654 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10655 fi
10656 done
3725885a 10657 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10658BEGIN {RS=" "; FS="/|\n";} {
10659 lt_foo="";
10660 lt_count=0;
10661 for (lt_i = NF; lt_i > 0; lt_i--) {
10662 if ($lt_i != "" && $lt_i != ".") {
10663 if ($lt_i == "..") {
10664 lt_count++;
10665 } else {
10666 if (lt_count == 0) {
10667 lt_foo="/" $lt_i lt_foo;
10668 } else {
10669 lt_count--;
10670 }
10671 }
10672 }
10673 }
10674 if (lt_foo != "") { lt_freq[lt_foo]++; }
10675 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10676}'`
3725885a
RW
10677 # AWK program above erroneously prepends '/' to C:/dos/paths
10678 # for these hosts.
10679 case $host_os in
10680 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10681 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10682 esac
10683 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10684else
ce2cded5
L
10685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10686fi
10687library_names_spec=
10688libname_spec='lib$name'
10689soname_spec=
10690shrext_cmds=".so"
10691postinstall_cmds=
10692postuninstall_cmds=
10693finish_cmds=
10694finish_eval=
10695shlibpath_var=
10696shlibpath_overrides_runpath=unknown
10697version_type=none
10698dynamic_linker="$host_os ld.so"
10699sys_lib_dlsearch_path_spec="/lib /usr/lib"
10700need_lib_prefix=unknown
10701hardcode_into_libs=no
10702
10703# when you set need_version to no, make sure it does not cause -set_version
10704# flags to be left without arguments
10705need_version=unknown
10706
10707case $host_os in
10708aix3*)
10709 version_type=linux
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10711 shlibpath_var=LIBPATH
10712
10713 # AIX 3 has no versioning support, so we append a major version to the name.
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 ;;
10716
50e7d84b 10717aix[4-9]*)
ce2cded5
L
10718 version_type=linux
10719 need_lib_prefix=no
10720 need_version=no
10721 hardcode_into_libs=yes
10722 if test "$host_cpu" = ia64; then
10723 # AIX 5 supports IA64
10724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 else
10727 # With GCC up to 2.95.x, collect2 would create an import file
10728 # for dependence libraries. The import file would start with
10729 # the line `#! .'. This would cause the generated library to
10730 # depend on `.', always an invalid library. This was fixed in
10731 # development snapshots of GCC prior to 3.0.
10732 case $host_os in
10733 aix4 | aix4.[01] | aix4.[01].*)
10734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10735 echo ' yes '
10736 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10737 :
10738 else
10739 can_build_shared=no
10740 fi
10741 ;;
10742 esac
10743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10744 # soname into executable. Probably we can add versioning support to
10745 # collect2, so additional links can be useful in future.
10746 if test "$aix_use_runtimelinking" = yes; then
10747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10748 # instead of lib<name>.a to let people know that these are not
10749 # typical AIX shared libraries.
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 else
10752 # We preserve .a as extension for shared libraries through AIX4.2
10753 # and later when we are not doing run time linking.
10754 library_names_spec='${libname}${release}.a $libname.a'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 fi
10757 shlibpath_var=LIBPATH
10758 fi
10759 ;;
10760
10761amigaos*)
b214d478
SE
10762 case $host_cpu in
10763 powerpc)
10764 # Since July 2007 AmigaOS4 officially supports .so libraries.
10765 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 ;;
10768 m68k)
ce2cded5
L
10769 library_names_spec='$libname.ixlibrary $libname.a'
10770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10771 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
10772 ;;
10773 esac
ce2cded5
L
10774 ;;
10775
10776beos*)
10777 library_names_spec='${libname}${shared_ext}'
10778 dynamic_linker="$host_os ld.so"
10779 shlibpath_var=LIBRARY_PATH
10780 ;;
10781
10782bsdi[45]*)
10783 version_type=linux
10784 need_version=no
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10791 # the default ld.so.conf also contains /usr/contrib/lib and
10792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10793 # libtool to hard-code these into programs
10794 ;;
10795
b214d478 10796cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10797 version_type=windows
10798 shrext_cmds=".dll"
10799 need_version=no
10800 need_lib_prefix=no
10801
b214d478
SE
10802 case $GCC,$host_os in
10803 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10804 library_names_spec='$libname.dll.a'
10805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10806 postinstall_cmds='base_file=`basename \${file}`~
10807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10808 dldir=$destdir/`dirname \$dlpath`~
10809 test -d \$dldir || mkdir -p \$dldir~
10810 $install_prog $dir/$dlname \$dldir/$dlname~
10811 chmod a+x \$dldir/$dlname~
10812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10814 fi'
10815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10816 dlpath=$dir/\$dldll~
10817 $RM \$dlpath'
10818 shlibpath_overrides_runpath=yes
10819
10820 case $host_os in
10821 cygwin*)
10822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10824
10825 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10826 ;;
b214d478 10827 mingw* | cegcc*)
ce2cded5
L
10828 # MinGW DLLs use traditional 'lib' prefix
10829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10830 ;;
10831 pw32*)
10832 # pw32 DLLs use 'pw' prefix rather than 'lib'
10833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10834 ;;
10835 esac
10836 ;;
10837
10838 *)
10839 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10840 ;;
10841 esac
10842 dynamic_linker='Win32 ld.exe'
10843 # FIXME: first we should search . and the directory the executable is in
10844 shlibpath_var=PATH
10845 ;;
10846
10847darwin* | rhapsody*)
10848 dynamic_linker="$host_os dyld"
10849 version_type=darwin
10850 need_lib_prefix=no
10851 need_version=no
10852 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10853 soname_spec='${libname}${release}${major}$shared_ext'
10854 shlibpath_overrides_runpath=yes
10855 shlibpath_var=DYLD_LIBRARY_PATH
10856 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10857
10858 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10860 ;;
10861
10862dgux*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 ;;
10870
ce2cded5
L
10871freebsd* | dragonfly*)
10872 # DragonFly does not have aout. When/if they implement a new
10873 # versioning mechanism, adjust this.
10874 if test -x /usr/bin/objformat; then
10875 objformat=`/usr/bin/objformat`
10876 else
10877 case $host_os in
6d2920c8 10878 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10879 *) objformat=elf ;;
10880 esac
10881 fi
10882 version_type=freebsd-$objformat
10883 case $version_type in
10884 freebsd-elf*)
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10886 need_version=no
10887 need_lib_prefix=no
10888 ;;
10889 freebsd-*)
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10891 need_version=yes
10892 ;;
10893 esac
10894 shlibpath_var=LD_LIBRARY_PATH
10895 case $host_os in
6d2920c8 10896 freebsd2.*)
ce2cded5
L
10897 shlibpath_overrides_runpath=yes
10898 ;;
10899 freebsd3.[01]* | freebsdelf3.[01]*)
10900 shlibpath_overrides_runpath=yes
10901 hardcode_into_libs=yes
10902 ;;
10903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10905 shlibpath_overrides_runpath=no
10906 hardcode_into_libs=yes
10907 ;;
10908 *) # from 4.6 on, and DragonFly
10909 shlibpath_overrides_runpath=yes
10910 hardcode_into_libs=yes
10911 ;;
10912 esac
10913 ;;
10914
10915gnu*)
10916 version_type=linux
10917 need_lib_prefix=no
10918 need_version=no
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 hardcode_into_libs=yes
10923 ;;
10924
3725885a
RW
10925haiku*)
10926 version_type=linux
10927 need_lib_prefix=no
10928 need_version=no
10929 dynamic_linker="$host_os runtime_loader"
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 shlibpath_var=LIBRARY_PATH
10933 shlibpath_overrides_runpath=yes
10934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10935 hardcode_into_libs=yes
10936 ;;
10937
ce2cded5
L
10938hpux9* | hpux10* | hpux11*)
10939 # Give a soname corresponding to the major version so that dld.sl refuses to
10940 # link against other versions.
10941 version_type=sunos
10942 need_lib_prefix=no
10943 need_version=no
10944 case $host_cpu in
10945 ia64*)
10946 shrext_cmds='.so'
10947 hardcode_into_libs=yes
10948 dynamic_linker="$host_os dld.so"
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 if test "X$HPUX_IA64_MODE" = X32; then
10954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10955 else
10956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10957 fi
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959 ;;
10960 hppa*64*)
10961 shrext_cmds='.sl'
10962 hardcode_into_libs=yes
10963 dynamic_linker="$host_os dld.sl"
10964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10970 ;;
10971 *)
10972 shrext_cmds='.sl'
10973 dynamic_linker="$host_os dld.sl"
10974 shlibpath_var=SHLIB_PATH
10975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 ;;
10979 esac
3725885a 10980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10981 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10982 # or fails outright, so override atomically:
10983 install_override_mode=555
ce2cded5
L
10984 ;;
10985
10986interix[3-9]*)
10987 version_type=linux
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=no
10995 hardcode_into_libs=yes
10996 ;;
10997
10998irix5* | irix6* | nonstopux*)
10999 case $host_os in
11000 nonstopux*) version_type=nonstopux ;;
11001 *)
11002 if test "$lt_cv_prog_gnu_ld" = yes; then
11003 version_type=linux
11004 else
11005 version_type=irix
11006 fi ;;
11007 esac
11008 need_lib_prefix=no
11009 need_version=no
11010 soname_spec='${libname}${release}${shared_ext}$major'
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11012 case $host_os in
11013 irix5* | nonstopux*)
11014 libsuff= shlibsuff=
11015 ;;
11016 *)
11017 case $LD in # libtool.m4 will add one of these switches to LD
11018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11019 libsuff= shlibsuff= libmagic=32-bit;;
11020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11021 libsuff=32 shlibsuff=N32 libmagic=N32;;
11022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11024 *) libsuff= shlibsuff= libmagic=never-match;;
11025 esac
11026 ;;
11027 esac
11028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11029 shlibpath_overrides_runpath=no
11030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11032 hardcode_into_libs=yes
11033 ;;
11034
11035# No shared lib support for Linux oldld, aout, or coff.
11036linux*oldld* | linux*aout* | linux*coff*)
11037 dynamic_linker=no
11038 ;;
11039
11040# This must be Linux ELF.
58e24671 11041linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11042 version_type=linux
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=no
39144654 11050
ce2cded5 11051 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11052 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
39144654
RW
11054else
11055 lt_cv_shlibpath_overrides_runpath=no
11056 save_LDFLAGS=$LDFLAGS
11057 save_libdir=$libdir
11058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11061/* end confdefs.h. */
11062
d7040cdb
SE
11063int
11064main ()
11065{
ce2cded5 11066
d7040cdb
SE
11067 ;
11068 return 0;
11069}
11070_ACEOF
81ecdfbb
RW
11071if ac_fn_c_try_link "$LINENO"; then :
11072 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11073 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11074fi
d7040cdb 11075fi
81ecdfbb
RW
11076rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11078 LDFLAGS=$save_LDFLAGS
11079 libdir=$save_libdir
11080
11081fi
11082
11083 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11084
ce2cded5
L
11085 # This implies no fast_install, which is unacceptable.
11086 # Some rework will be needed to allow for fast_install
11087 # before this can be enabled.
11088 hardcode_into_libs=yes
d7040cdb 11089
ce2cded5
L
11090 # Append ld.so.conf contents to the search path
11091 if test -f /etc/ld.so.conf; then
3725885a 11092 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
11093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11094 fi
d7040cdb 11095
ce2cded5
L
11096 # We used to test for /lib/ld.so.1 and disable shared libraries on
11097 # powerpc, because MkLinux only supported shared libraries with the
11098 # GNU dynamic linker. Since this was broken with cross compilers,
11099 # most powerpc-linux boxes support dynamic linking these days and
11100 # people can always --disable-shared, the test was removed, and we
11101 # assume the GNU/Linux dynamic linker is in use.
11102 dynamic_linker='GNU/Linux ld.so'
11103 ;;
d7040cdb 11104
ce2cded5
L
11105netbsd*)
11106 version_type=sunos
11107 need_lib_prefix=no
11108 need_version=no
11109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11112 dynamic_linker='NetBSD (a.out) ld.so'
11113 else
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 dynamic_linker='NetBSD ld.elf_so'
11117 fi
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=yes
11120 hardcode_into_libs=yes
11121 ;;
d7040cdb 11122
ce2cded5
L
11123newsos6)
11124 version_type=linux
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 ;;
d7040cdb 11129
ce2cded5
L
11130*nto* | *qnx*)
11131 version_type=qnx
11132 need_lib_prefix=no
11133 need_version=no
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11139 dynamic_linker='ldqnx.so'
11140 ;;
d7040cdb 11141
ce2cded5
L
11142openbsd*)
11143 version_type=sunos
11144 sys_lib_dlsearch_path_spec="/usr/lib"
11145 need_lib_prefix=no
11146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11147 case $host_os in
11148 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11149 *) need_version=no ;;
11150 esac
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11155 case $host_os in
11156 openbsd2.[89] | openbsd2.[89].*)
11157 shlibpath_overrides_runpath=no
11158 ;;
11159 *)
11160 shlibpath_overrides_runpath=yes
11161 ;;
11162 esac
11163 else
11164 shlibpath_overrides_runpath=yes
11165 fi
11166 ;;
d7040cdb 11167
ce2cded5
L
11168os2*)
11169 libname_spec='$name'
11170 shrext_cmds=".dll"
11171 need_lib_prefix=no
11172 library_names_spec='$libname${shared_ext} $libname.a'
11173 dynamic_linker='OS/2 ld.exe'
11174 shlibpath_var=LIBPATH
11175 ;;
d7040cdb 11176
ce2cded5
L
11177osf3* | osf4* | osf5*)
11178 version_type=osf
11179 need_lib_prefix=no
11180 need_version=no
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11186 ;;
d7040cdb 11187
ce2cded5
L
11188rdos*)
11189 dynamic_linker=no
11190 ;;
d7040cdb 11191
ce2cded5
L
11192solaris*)
11193 version_type=linux
11194 need_lib_prefix=no
11195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 hardcode_into_libs=yes
11201 # ldd complains unless libraries are executable
11202 postinstall_cmds='chmod +x $lib'
11203 ;;
d7040cdb 11204
ce2cded5
L
11205sunos4*)
11206 version_type=sunos
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 shlibpath_overrides_runpath=yes
11211 if test "$with_gnu_ld" = yes; then
11212 need_lib_prefix=no
11213 fi
11214 need_version=yes
11215 ;;
d7040cdb 11216
ce2cded5
L
11217sysv4 | sysv4.3*)
11218 version_type=linux
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 case $host_vendor in
11223 sni)
11224 shlibpath_overrides_runpath=no
11225 need_lib_prefix=no
11226 runpath_var=LD_RUN_PATH
11227 ;;
11228 siemens)
11229 need_lib_prefix=no
11230 ;;
11231 motorola)
11232 need_lib_prefix=no
11233 need_version=no
11234 shlibpath_overrides_runpath=no
11235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11236 ;;
11237 esac
11238 ;;
d7040cdb 11239
ce2cded5
L
11240sysv4*MP*)
11241 if test -d /usr/nec ;then
11242 version_type=linux
11243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11244 soname_spec='$libname${shared_ext}.$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 fi
11247 ;;
d7040cdb 11248
ce2cded5
L
11249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11250 version_type=freebsd-elf
11251 need_lib_prefix=no
11252 need_version=no
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11258 if test "$with_gnu_ld" = yes; then
11259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11260 else
11261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11262 case $host_os in
11263 sco3.2v5*)
11264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11265 ;;
11266 esac
11267 fi
11268 sys_lib_dlsearch_path_spec='/usr/lib'
11269 ;;
d7040cdb 11270
ce2cded5
L
11271tpf*)
11272 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11273 version_type=linux
11274 need_lib_prefix=no
11275 need_version=no
b214d478 11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=no
11279 hardcode_into_libs=yes
11280 ;;
d7040cdb 11281
ce2cded5
L
11282uts4*)
11283 version_type=linux
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 ;;
d7040cdb 11288
ce2cded5
L
11289*)
11290 dynamic_linker=no
11291 ;;
11292esac
81ecdfbb
RW
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11294$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11295test "$dynamic_linker" = no && can_build_shared=no
11296
11297variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11298if test "$GCC" = yes; then
11299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11300fi
11301
b214d478
SE
11302if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11303 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11304fi
11305if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11306 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11307fi
11308
d7040cdb
SE
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
d7040cdb 11320
d7040cdb 11321
d7040cdb 11322
d7040cdb 11323
d7040cdb
SE
11324
11325
11326
11327
d7040cdb 11328
d7040cdb
SE
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
d7040cdb
SE
11342
11343
11344
11345
d7040cdb
SE
11346
11347
11348
11349
d7040cdb 11350
d7040cdb 11351
d7040cdb 11352
d7040cdb 11353
d7040cdb 11354
d7040cdb 11355
d7040cdb 11356
d7040cdb
SE
11357
11358
11359
11360
11361
d7040cdb 11362
d7040cdb 11363
d7040cdb 11364
d7040cdb 11365
d7040cdb 11366
d7040cdb 11367
d7040cdb
SE
11368
11369
11370
11371
11372
d7040cdb
SE
11373
11374
d7040cdb 11375
d7040cdb 11376
d7040cdb 11377
d7040cdb 11378
ce2cded5
L
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
3725885a
RW
11389
11390
11391
11392
11393
ce2cded5
L
11394
11395
11396
11397
11398
11399
81ecdfbb
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11401$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11402hardcode_action=
11403if test -n "$hardcode_libdir_flag_spec" ||
11404 test -n "$runpath_var" ||
11405 test "X$hardcode_automatic" = "Xyes" ; then
11406
11407 # We can hardcode non-existent directories.
11408 if test "$hardcode_direct" != no &&
11409 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11410 # have to relink, otherwise we might link with an installed library
11411 # when we should be linking with a yet-to-be-installed one
11412 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11413 test "$hardcode_minus_L" != no; then
11414 # Linking always hardcodes the temporary library directory.
11415 hardcode_action=relink
11416 else
11417 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11418 hardcode_action=immediate
d7040cdb 11419 fi
d7040cdb 11420else
ce2cded5
L
11421 # We cannot hardcode anything, or else we can only hardcode existing
11422 # directories.
11423 hardcode_action=unsupported
d7040cdb 11424fi
81ecdfbb
RW
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11426$as_echo "$hardcode_action" >&6; }
d7040cdb 11427
ce2cded5
L
11428if test "$hardcode_action" = relink ||
11429 test "$inherit_rpath" = yes; then
11430 # Fast installation is not supported
11431 enable_fast_install=no
11432elif test "$shlibpath_overrides_runpath" = yes ||
11433 test "$enable_shared" = no; then
11434 # Fast installation is not necessary
11435 enable_fast_install=needless
d7040cdb
SE
11436fi
11437
d7040cdb 11438
d7040cdb 11439
d7040cdb 11440
d7040cdb 11441
d7040cdb 11442
ce2cded5
L
11443 if test "x$enable_dlopen" != xyes; then
11444 enable_dlopen=unknown
11445 enable_dlopen_self=unknown
11446 enable_dlopen_self_static=unknown
d7040cdb 11447else
ce2cded5
L
11448 lt_cv_dlopen=no
11449 lt_cv_dlopen_libs=
d7040cdb 11450
ce2cded5
L
11451 case $host_os in
11452 beos*)
11453 lt_cv_dlopen="load_add_on"
11454 lt_cv_dlopen_libs=
11455 lt_cv_dlopen_self=yes
11456 ;;
d7040cdb 11457
b214d478 11458 mingw* | pw32* | cegcc*)
ce2cded5
L
11459 lt_cv_dlopen="LoadLibrary"
11460 lt_cv_dlopen_libs=
11461 ;;
11462
11463 cygwin*)
11464 lt_cv_dlopen="dlopen"
11465 lt_cv_dlopen_libs=
11466 ;;
11467
11468 darwin*)
11469 # if libdl is installed we need to link against it
81ecdfbb
RW
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11471$as_echo_n "checking for dlopen in -ldl... " >&6; }
11472if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
d7040cdb 11474else
ce2cded5
L
11475 ac_check_lib_save_LIBS=$LIBS
11476LIBS="-ldl $LIBS"
81ecdfbb 11477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11478/* end confdefs.h. */
11479
81ecdfbb
RW
11480/* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
ce2cded5
L
11483#ifdef __cplusplus
11484extern "C"
11485#endif
ce2cded5
L
11486char dlopen ();
11487int
11488main ()
11489{
81ecdfbb 11490return dlopen ();
ce2cded5
L
11491 ;
11492 return 0;
11493}
11494_ACEOF
81ecdfbb 11495if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11496 ac_cv_lib_dl_dlopen=yes
11497else
81ecdfbb 11498 ac_cv_lib_dl_dlopen=no
d7040cdb 11499fi
81ecdfbb
RW
11500rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11502LIBS=$ac_check_lib_save_LIBS
d7040cdb 11503fi
81ecdfbb
RW
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11505$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11506if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11508else
d7040cdb 11509
ce2cded5
L
11510 lt_cv_dlopen="dyld"
11511 lt_cv_dlopen_libs=
11512 lt_cv_dlopen_self=yes
11513
d7040cdb 11514fi
ce2cded5
L
11515
11516 ;;
11517
11518 *)
81ecdfbb
RW
11519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11520if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11521 lt_cv_dlopen="shl_load"
11522else
81ecdfbb
RW
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11524$as_echo_n "checking for shl_load in -ldld... " >&6; }
11525if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
ce2cded5
L
11527else
11528 ac_check_lib_save_LIBS=$LIBS
11529LIBS="-ldld $LIBS"
81ecdfbb 11530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11531/* end confdefs.h. */
d7040cdb 11532
81ecdfbb
RW
11533/* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
ce2cded5
L
11536#ifdef __cplusplus
11537extern "C"
11538#endif
ce2cded5
L
11539char shl_load ();
11540int
11541main ()
11542{
81ecdfbb 11543return shl_load ();
ce2cded5
L
11544 ;
11545 return 0;
11546}
11547_ACEOF
81ecdfbb 11548if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11549 ac_cv_lib_dld_shl_load=yes
11550else
81ecdfbb 11551 ac_cv_lib_dld_shl_load=no
ce2cded5 11552fi
81ecdfbb
RW
11553rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11555LIBS=$ac_check_lib_save_LIBS
11556fi
81ecdfbb
RW
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11558$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11559if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11560 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11561else
81ecdfbb
RW
11562 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11563if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11564 lt_cv_dlopen="dlopen"
11565else
81ecdfbb
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11567$as_echo_n "checking for dlopen in -ldl... " >&6; }
11568if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
d7040cdb 11570else
ce2cded5
L
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-ldl $LIBS"
81ecdfbb 11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11574/* end confdefs.h. */
11575
81ecdfbb
RW
11576/* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
ce2cded5
L
11579#ifdef __cplusplus
11580extern "C"
11581#endif
ce2cded5 11582char dlopen ();
d7040cdb
SE
11583int
11584main ()
11585{
81ecdfbb 11586return dlopen ();
d7040cdb
SE
11587 ;
11588 return 0;
11589}
11590_ACEOF
81ecdfbb 11591if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11592 ac_cv_lib_dl_dlopen=yes
d7040cdb 11593else
81ecdfbb 11594 ac_cv_lib_dl_dlopen=no
d7040cdb 11595fi
81ecdfbb
RW
11596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11598LIBS=$ac_check_lib_save_LIBS
d7040cdb 11599fi
81ecdfbb
RW
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11601$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11602if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11604else
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11606$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11607if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
d7040cdb 11609else
ce2cded5
L
11610 ac_check_lib_save_LIBS=$LIBS
11611LIBS="-lsvld $LIBS"
81ecdfbb 11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11613/* end confdefs.h. */
d7040cdb 11614
81ecdfbb
RW
11615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
ce2cded5
L
11618#ifdef __cplusplus
11619extern "C"
11620#endif
ce2cded5 11621char dlopen ();
d7040cdb
SE
11622int
11623main ()
11624{
81ecdfbb 11625return dlopen ();
d7040cdb
SE
11626 ;
11627 return 0;
11628}
11629_ACEOF
81ecdfbb 11630if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11631 ac_cv_lib_svld_dlopen=yes
d7040cdb 11632else
81ecdfbb 11633 ac_cv_lib_svld_dlopen=no
d7040cdb 11634fi
81ecdfbb
RW
11635rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11637LIBS=$ac_check_lib_save_LIBS
d7040cdb 11638fi
81ecdfbb
RW
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11640$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11641if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11643else
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11645$as_echo_n "checking for dld_link in -ldld... " >&6; }
11646if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
ce2cded5
L
11648else
11649 ac_check_lib_save_LIBS=$LIBS
11650LIBS="-ldld $LIBS"
81ecdfbb 11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11652/* end confdefs.h. */
11653
81ecdfbb
RW
11654/* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
ce2cded5
L
11657#ifdef __cplusplus
11658extern "C"
11659#endif
ce2cded5 11660char dld_link ();
d7040cdb
SE
11661int
11662main ()
11663{
81ecdfbb 11664return dld_link ();
d7040cdb
SE
11665 ;
11666 return 0;
11667}
11668_ACEOF
81ecdfbb 11669if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11670 ac_cv_lib_dld_dld_link=yes
d7040cdb 11671else
81ecdfbb 11672 ac_cv_lib_dld_dld_link=no
d7040cdb 11673fi
81ecdfbb
RW
11674rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11676LIBS=$ac_check_lib_save_LIBS
11677fi
81ecdfbb
RW
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11679$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11680if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11681 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11682fi
11683
11684
11685fi
11686
11687
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699 ;;
11700 esac
11701
11702 if test "x$lt_cv_dlopen" != xno; then
11703 enable_dlopen=yes
11704 else
11705 enable_dlopen=no
11706 fi
11707
11708 case $lt_cv_dlopen in
11709 dlopen)
11710 save_CPPFLAGS="$CPPFLAGS"
11711 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11712
11713 save_LDFLAGS="$LDFLAGS"
11714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715
11716 save_LIBS="$LIBS"
11717 LIBS="$lt_cv_dlopen_libs $LIBS"
11718
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11720$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11721if test "${lt_cv_dlopen_self+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
ce2cded5
L
11723else
11724 if test "$cross_compiling" = yes; then :
11725 lt_cv_dlopen_self=cross
11726else
11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11728 lt_status=$lt_dlunknown
11729 cat > conftest.$ac_ext <<_LT_EOF
f6aec96d 11730#line 11730 "configure"
ce2cded5
L
11731#include "confdefs.h"
11732
11733#if HAVE_DLFCN_H
11734#include <dlfcn.h>
11735#endif
11736
11737#include <stdio.h>
11738
11739#ifdef RTLD_GLOBAL
11740# define LT_DLGLOBAL RTLD_GLOBAL
11741#else
11742# ifdef DL_GLOBAL
11743# define LT_DLGLOBAL DL_GLOBAL
11744# else
11745# define LT_DLGLOBAL 0
11746# endif
11747#endif
11748
11749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11750 find out it does not work in some platform. */
11751#ifndef LT_DLLAZY_OR_NOW
11752# ifdef RTLD_LAZY
11753# define LT_DLLAZY_OR_NOW RTLD_LAZY
11754# else
11755# ifdef DL_LAZY
11756# define LT_DLLAZY_OR_NOW DL_LAZY
11757# else
11758# ifdef RTLD_NOW
11759# define LT_DLLAZY_OR_NOW RTLD_NOW
11760# else
11761# ifdef DL_NOW
11762# define LT_DLLAZY_OR_NOW DL_NOW
11763# else
11764# define LT_DLLAZY_OR_NOW 0
11765# endif
11766# endif
11767# endif
11768# endif
11769#endif
11770
3725885a
RW
11771/* When -fvisbility=hidden is used, assume the code has been annotated
11772 correspondingly for the symbols needed. */
11773#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11774void fnord () __attribute__((visibility("default")));
11775#endif
11776
11777void fnord () { int i=42; }
ce2cded5 11778int main ()
d7040cdb 11779{
ce2cded5
L
11780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11781 int status = $lt_dlunknown;
11782
11783 if (self)
11784 {
11785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11786 else
11787 {
11788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11789 else puts (dlerror ());
11790 }
ce2cded5
L
11791 /* dlclose (self); */
11792 }
11793 else
11794 puts (dlerror ());
11795
b214d478 11796 return status;
d7040cdb 11797}
ce2cded5 11798_LT_EOF
81ecdfbb 11799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11800 (eval $ac_link) 2>&5
d7040cdb 11801 ac_status=$?
81ecdfbb
RW
11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11804 (./conftest; exit; ) >&5 2>/dev/null
11805 lt_status=$?
11806 case x$lt_status in
11807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810 esac
11811 else :
11812 # compilation failed
11813 lt_cv_dlopen_self=no
11814 fi
11815fi
11816rm -fr conftest*
11817
11818
11819fi
81ecdfbb
RW
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11821$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11822
11823 if test "x$lt_cv_dlopen_self" = xyes; then
11824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11826$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11827if test "${lt_cv_dlopen_self_static+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
ce2cded5
L
11829else
11830 if test "$cross_compiling" = yes; then :
11831 lt_cv_dlopen_self_static=cross
11832else
11833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11834 lt_status=$lt_dlunknown
11835 cat > conftest.$ac_ext <<_LT_EOF
f6aec96d 11836#line 11836 "configure"
ce2cded5
L
11837#include "confdefs.h"
11838
11839#if HAVE_DLFCN_H
11840#include <dlfcn.h>
11841#endif
11842
11843#include <stdio.h>
11844
11845#ifdef RTLD_GLOBAL
11846# define LT_DLGLOBAL RTLD_GLOBAL
11847#else
11848# ifdef DL_GLOBAL
11849# define LT_DLGLOBAL DL_GLOBAL
11850# else
11851# define LT_DLGLOBAL 0
11852# endif
11853#endif
11854
11855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11856 find out it does not work in some platform. */
11857#ifndef LT_DLLAZY_OR_NOW
11858# ifdef RTLD_LAZY
11859# define LT_DLLAZY_OR_NOW RTLD_LAZY
11860# else
11861# ifdef DL_LAZY
11862# define LT_DLLAZY_OR_NOW DL_LAZY
11863# else
11864# ifdef RTLD_NOW
11865# define LT_DLLAZY_OR_NOW RTLD_NOW
11866# else
11867# ifdef DL_NOW
11868# define LT_DLLAZY_OR_NOW DL_NOW
11869# else
11870# define LT_DLLAZY_OR_NOW 0
11871# endif
11872# endif
11873# endif
11874# endif
11875#endif
11876
3cb62297
L
11877/* When -fvisbility=hidden is used, assume the code has been annotated
11878 correspondingly for the symbols needed. */
11879#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11880void fnord () __attribute__((visibility("default")));
11881#endif
11882
11883void fnord () { int i=42; }
11884int main ()
11885{
11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887 int status = $lt_dlunknown;
11888
11889 if (self)
11890 {
11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 else
11893 {
11894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895 else puts (dlerror ());
11896 }
11897 /* dlclose (self); */
11898 }
11899 else
11900 puts (dlerror ());
11901
11902 return status;
11903}
11904_LT_EOF
11905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11906 (eval $ac_link) 2>&5
11907 ac_status=$?
11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11910 (./conftest; exit; ) >&5 2>/dev/null
11911 lt_status=$?
11912 case x$lt_status in
11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916 esac
11917 else :
11918 # compilation failed
11919 lt_cv_dlopen_self_static=no
11920 fi
11921fi
11922rm -fr conftest*
11923
11924
11925fi
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11927$as_echo "$lt_cv_dlopen_self_static" >&6; }
11928 fi
11929
11930 CPPFLAGS="$save_CPPFLAGS"
11931 LDFLAGS="$save_LDFLAGS"
11932 LIBS="$save_LIBS"
11933 ;;
11934 esac
11935
11936 case $lt_cv_dlopen_self in
11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938 *) enable_dlopen_self=unknown ;;
11939 esac
11940
11941 case $lt_cv_dlopen_self_static in
11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943 *) enable_dlopen_self_static=unknown ;;
11944 esac
11945fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963striplib=
11964old_striplib=
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11966$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11967if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971$as_echo "yes" >&6; }
11972else
11973# FIXME - insert some real tests, host_os isn't really good enough
11974 case $host_os in
11975 darwin*)
11976 if test -n "$STRIP" ; then
11977 striplib="$STRIP -x"
11978 old_striplib="$STRIP -S"
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980$as_echo "yes" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984 fi
11985 ;;
11986 *)
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
11989 ;;
11990 esac
11991fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004 # Report which library types will actually be built
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12006$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12008$as_echo "$can_build_shared" >&6; }
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12011$as_echo_n "checking whether to build shared libraries... " >&6; }
12012 test "$can_build_shared" = "no" && enable_shared=no
12013
12014 # On AIX, shared libraries and static libraries use the same namespace, and
12015 # are all built from PIC.
12016 case $host_os in
12017 aix3*)
12018 test "$enable_shared" = yes && enable_static=no
12019 if test -n "$RANLIB"; then
12020 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12021 postinstall_cmds='$RANLIB $lib'
12022 fi
12023 ;;
12024
12025 aix[4-9]*)
12026 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12027 test "$enable_shared" = yes && enable_static=no
12028 fi
12029 ;;
12030 esac
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12032$as_echo "$enable_shared" >&6; }
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12035$as_echo_n "checking whether to build static libraries... " >&6; }
12036 # Make sure either enable_shared or enable_static is yes.
12037 test "$enable_shared" = yes || enable_static=yes
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12039$as_echo "$enable_static" >&6; }
12040
12041
12042
12043
12044fi
12045ac_ext=c
12046ac_cpp='$CPP $CPPFLAGS'
12047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050
12051CC="$lt_save_CC"
12052
12053 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12054 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12055 (test "X$CXX" != "Xg++"))) ; then
12056 ac_ext=cpp
12057ac_cpp='$CXXCPP $CPPFLAGS'
12058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12062$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12063if test -z "$CXXCPP"; then
12064 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12066else
12067 # Double quotes because CXXCPP needs to be expanded
12068 for CXXCPP in "$CXX -E" "/lib/cpp"
12069 do
12070 ac_preproc_ok=false
12071for ac_cxx_preproc_warn_flag in '' yes
12072do
12073 # Use a header file that comes with gcc, so configuring glibc
12074 # with a fresh cross-compiler works.
12075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12076 # <limits.h> exists even on freestanding compilers.
12077 # On the NeXT, cc -E runs the code through the compiler's parser,
12078 # not just through cpp. "Syntax error" is here to catch this case.
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080/* end confdefs.h. */
12081#ifdef __STDC__
12082# include <limits.h>
12083#else
12084# include <assert.h>
12085#endif
12086 Syntax error
12087_ACEOF
12088if ac_fn_cxx_try_cpp "$LINENO"; then :
12089
12090else
12091 # Broken: fails on valid input.
12092continue
12093fi
12094rm -f conftest.err conftest.$ac_ext
12095
12096 # OK, works on sane cases. Now check whether nonexistent headers
12097 # can be detected and how.
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h. */
12100#include <ac_nonexistent.h>
12101_ACEOF
12102if ac_fn_cxx_try_cpp "$LINENO"; then :
12103 # Broken: success on invalid input.
12104continue
12105else
12106 # Passes both tests.
12107ac_preproc_ok=:
12108break
12109fi
12110rm -f conftest.err conftest.$ac_ext
12111
12112done
12113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12114rm -f conftest.err conftest.$ac_ext
12115if $ac_preproc_ok; then :
12116 break
12117fi
12118
12119 done
12120 ac_cv_prog_CXXCPP=$CXXCPP
12121
12122fi
12123 CXXCPP=$ac_cv_prog_CXXCPP
12124else
12125 ac_cv_prog_CXXCPP=$CXXCPP
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12128$as_echo "$CXXCPP" >&6; }
12129ac_preproc_ok=false
12130for ac_cxx_preproc_warn_flag in '' yes
12131do
12132 # Use a header file that comes with gcc, so configuring glibc
12133 # with a fresh cross-compiler works.
12134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12135 # <limits.h> exists even on freestanding compilers.
12136 # On the NeXT, cc -E runs the code through the compiler's parser,
12137 # not just through cpp. "Syntax error" is here to catch this case.
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139/* end confdefs.h. */
12140#ifdef __STDC__
12141# include <limits.h>
12142#else
12143# include <assert.h>
12144#endif
12145 Syntax error
12146_ACEOF
12147if ac_fn_cxx_try_cpp "$LINENO"; then :
12148
12149else
12150 # Broken: fails on valid input.
12151continue
12152fi
12153rm -f conftest.err conftest.$ac_ext
12154
12155 # OK, works on sane cases. Now check whether nonexistent headers
12156 # can be detected and how.
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158/* end confdefs.h. */
12159#include <ac_nonexistent.h>
12160_ACEOF
12161if ac_fn_cxx_try_cpp "$LINENO"; then :
12162 # Broken: success on invalid input.
12163continue
12164else
12165 # Passes both tests.
12166ac_preproc_ok=:
12167break
12168fi
12169rm -f conftest.err conftest.$ac_ext
12170
12171done
12172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12173rm -f conftest.err conftest.$ac_ext
12174if $ac_preproc_ok; then :
12175
12176else
12177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12179as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12180See \`config.log' for more details." "$LINENO" 5; }
12181fi
12182
12183ac_ext=c
12184ac_cpp='$CPP $CPPFLAGS'
12185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187ac_compiler_gnu=$ac_cv_c_compiler_gnu
12188
12189else
12190 _lt_caught_CXX_error=yes
12191fi
12192
12193ac_ext=cpp
12194ac_cpp='$CXXCPP $CPPFLAGS'
12195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12198
12199archive_cmds_need_lc_CXX=no
12200allow_undefined_flag_CXX=
12201always_export_symbols_CXX=no
12202archive_expsym_cmds_CXX=
12203compiler_needs_object_CXX=no
12204export_dynamic_flag_spec_CXX=
12205hardcode_direct_CXX=no
12206hardcode_direct_absolute_CXX=no
12207hardcode_libdir_flag_spec_CXX=
12208hardcode_libdir_flag_spec_ld_CXX=
12209hardcode_libdir_separator_CXX=
12210hardcode_minus_L_CXX=no
12211hardcode_shlibpath_var_CXX=unsupported
12212hardcode_automatic_CXX=no
12213inherit_rpath_CXX=no
12214module_cmds_CXX=
12215module_expsym_cmds_CXX=
12216link_all_deplibs_CXX=unknown
12217old_archive_cmds_CXX=$old_archive_cmds
12218reload_flag_CXX=$reload_flag
12219reload_cmds_CXX=$reload_cmds
12220no_undefined_flag_CXX=
12221whole_archive_flag_spec_CXX=
12222enable_shared_with_static_runtimes_CXX=no
12223
12224# Source file extension for C++ test sources.
12225ac_ext=cpp
12226
12227# Object file extension for compiled C++ test sources.
12228objext=o
12229objext_CXX=$objext
12230
12231# No sense in running all these tests if we already determined that
12232# the CXX compiler isn't working. Some variables (like enable_shared)
12233# are currently assumed to apply to all compilers on this platform,
12234# and will be corrupted by setting them based on a non-working compiler.
12235if test "$_lt_caught_CXX_error" != yes; then
12236 # Code to be used in simple compile tests
12237 lt_simple_compile_test_code="int some_variable = 0;"
12238
12239 # Code to be used in simple link tests
12240 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12241
12242 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12243
12244
12245
12246
12247
12248
12249# If no C compiler was specified, use CC.
12250LTCC=${LTCC-"$CC"}
12251
12252# If no C compiler flags were specified, use CFLAGS.
12253LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12254
12255# Allow CC to be a program name with arguments.
12256compiler=$CC
12257
12258
12259 # save warnings/boilerplate of simple test code
12260 ac_outfile=conftest.$ac_objext
12261echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12262eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12263_lt_compiler_boilerplate=`cat conftest.err`
12264$RM conftest*
12265
12266 ac_outfile=conftest.$ac_objext
12267echo "$lt_simple_link_test_code" >conftest.$ac_ext
12268eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12269_lt_linker_boilerplate=`cat conftest.err`
12270$RM -r conftest*
12271
12272
12273 # Allow CC to be a program name with arguments.
12274 lt_save_CC=$CC
12275 lt_save_LD=$LD
12276 lt_save_GCC=$GCC
12277 GCC=$GXX
12278 lt_save_with_gnu_ld=$with_gnu_ld
12279 lt_save_path_LD=$lt_cv_path_LD
12280 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12281 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12282 else
12283 $as_unset lt_cv_prog_gnu_ld
12284 fi
12285 if test -n "${lt_cv_path_LDCXX+set}"; then
12286 lt_cv_path_LD=$lt_cv_path_LDCXX
12287 else
12288 $as_unset lt_cv_path_LD
12289 fi
12290 test -z "${LDCXX+set}" || LD=$LDCXX
12291 CC=${CXX-"c++"}
12292 compiler=$CC
12293 compiler_CXX=$CC
12294 for cc_temp in $compiler""; do
12295 case $cc_temp in
12296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12298 \-*) ;;
12299 *) break;;
12300 esac
12301done
12302cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12303
12304
12305 if test -n "$compiler"; then
12306 # We don't want -fno-exception when compiling C++ code, so set the
12307 # no_builtin_flag separately
12308 if test "$GXX" = yes; then
12309 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12310 else
12311 lt_prog_compiler_no_builtin_flag_CXX=
12312 fi
12313
12314 if test "$GXX" = yes; then
12315 # Set up default GNU C++ configuration
12316
12317
12318
12319# Check whether --with-gnu-ld was given.
12320if test "${with_gnu_ld+set}" = set; then :
12321 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12322else
12323 with_gnu_ld=no
12324fi
12325
12326ac_prog=ld
12327if test "$GCC" = yes; then
12328 # Check if gcc -print-prog-name=ld gives a path.
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12330$as_echo_n "checking for ld used by $CC... " >&6; }
12331 case $host in
12332 *-*-mingw*)
12333 # gcc leaves a trailing carriage return which upsets mingw
12334 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12335 *)
12336 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12337 esac
12338 case $ac_prog in
12339 # Accept absolute paths.
12340 [\\/]* | ?:[\\/]*)
12341 re_direlt='/[^/][^/]*/\.\./'
12342 # Canonicalize the pathname of ld
12343 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12344 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12345 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12346 done
12347 test -z "$LD" && LD="$ac_prog"
12348 ;;
12349 "")
12350 # If it fails, then pretend we aren't using GCC.
12351 ac_prog=ld
12352 ;;
12353 *)
12354 # If it is relative, then search for the first ld in PATH.
12355 with_gnu_ld=unknown
12356 ;;
12357 esac
12358elif test "$with_gnu_ld" = yes; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12360$as_echo_n "checking for GNU ld... " >&6; }
12361else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12363$as_echo_n "checking for non-GNU ld... " >&6; }
12364fi
12365if test "${lt_cv_path_LD+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368 if test -z "$LD"; then
12369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12370 for ac_dir in $PATH; do
12371 IFS="$lt_save_ifs"
12372 test -z "$ac_dir" && ac_dir=.
12373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12374 lt_cv_path_LD="$ac_dir/$ac_prog"
12375 # Check to see if the program is GNU ld. I'd rather use --version,
12376 # but apparently some variants of GNU ld only accept -v.
12377 # Break only if it was the GNU/non-GNU ld that we prefer.
12378 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12379 *GNU* | *'with BFD'*)
12380 test "$with_gnu_ld" != no && break
12381 ;;
12382 *)
12383 test "$with_gnu_ld" != yes && break
12384 ;;
12385 esac
12386 fi
12387 done
12388 IFS="$lt_save_ifs"
12389else
12390 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12391fi
12392fi
12393
12394LD="$lt_cv_path_LD"
12395if test -n "$LD"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12397$as_echo "$LD" >&6; }
12398else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
12401fi
12402test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12404$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12405if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407else
12408 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12409case `$LD -v 2>&1 </dev/null` in
12410*GNU* | *'with BFD'*)
12411 lt_cv_prog_gnu_ld=yes
12412 ;;
12413*)
12414 lt_cv_prog_gnu_ld=no
12415 ;;
12416esac
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12419$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12420with_gnu_ld=$lt_cv_prog_gnu_ld
12421
12422
12423
12424
12425
12426
12427
12428 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12429 # archiving commands below assume that GNU ld is being used.
12430 if test "$with_gnu_ld" = yes; then
6e733cce
L
12431 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432 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
12433
12434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12436
12437 # If archive_cmds runs LD, not CC, wlarc should be empty
12438 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12439 # investigate it a little bit more. (MM)
12440 wlarc='${wl}'
12441
12442 # ancient GNU ld didn't support --whole-archive et. al.
12443 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12444 $GREP 'no-whole-archive' > /dev/null; then
12445 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12446 else
12447 whole_archive_flag_spec_CXX=
12448 fi
12449 else
12450 with_gnu_ld=no
12451 wlarc=
12452
12453 # A generic and very simple default shared library creation
12454 # command for GNU C++ for the case where it uses the native
12455 # linker, instead of GNU ld. If possible, this setting should
12456 # overridden to take advantage of the native linker features on
12457 # the platform it is being used on.
12458 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12459 fi
12460
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12465
12466 else
12467 GXX=no
12468 with_gnu_ld=no
12469 wlarc=
12470 fi
12471
12472 # PORTME: fill in a description of your system's C++ link characteristics
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12474$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12475 ld_shlibs_CXX=yes
12476 case $host_os in
12477 aix3*)
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12480 ;;
12481 aix[4-9]*)
12482 if test "$host_cpu" = ia64; then
12483 # On IA64, the linker does run time linking by default, so we don't
12484 # have to do anything special.
12485 aix_use_runtimelinking=no
12486 exp_sym_flag='-Bexport'
12487 no_entry_flag=""
12488 else
12489 aix_use_runtimelinking=no
12490
12491 # Test if we are trying to use run time linking or normal
12492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12493 # need to do runtime linking.
12494 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12495 for ld_flag in $LDFLAGS; do
12496 case $ld_flag in
12497 *-brtl*)
12498 aix_use_runtimelinking=yes
12499 break
12500 ;;
12501 esac
12502 done
12503 ;;
12504 esac
12505
12506 exp_sym_flag='-bexport'
12507 no_entry_flag='-bnoentry'
12508 fi
12509
12510 # When large executables or shared objects are built, AIX ld can
12511 # have problems creating the table of contents. If linking a library
12512 # or program results in "error TOC overflow" add -mminimal-toc to
12513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12515
12516 archive_cmds_CXX=''
12517 hardcode_direct_CXX=yes
12518 hardcode_direct_absolute_CXX=yes
12519 hardcode_libdir_separator_CXX=':'
12520 link_all_deplibs_CXX=yes
12521 file_list_spec_CXX='${wl}-f,'
12522
12523 if test "$GXX" = yes; then
12524 case $host_os in aix4.[012]|aix4.[012].*)
12525 # We only want to do this on AIX 4.2 and lower, the check
12526 # below for broken collect2 doesn't work under 4.3+
12527 collect2name=`${CC} -print-prog-name=collect2`
12528 if test -f "$collect2name" &&
12529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12530 then
12531 # We have reworked collect2
12532 :
12533 else
12534 # We have old collect2
12535 hardcode_direct_CXX=unsupported
12536 # It fails to find uninstalled libraries when the uninstalled
12537 # path is not listed in the libpath. Setting hardcode_minus_L
12538 # to unsupported forces relinking
12539 hardcode_minus_L_CXX=yes
12540 hardcode_libdir_flag_spec_CXX='-L$libdir'
12541 hardcode_libdir_separator_CXX=
12542 fi
12543 esac
12544 shared_flag='-shared'
12545 if test "$aix_use_runtimelinking" = yes; then
12546 shared_flag="$shared_flag "'${wl}-G'
12547 fi
12548 else
12549 # not using gcc
12550 if test "$host_cpu" = ia64; then
12551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12552 # chokes on -Wl,-G. The following line is correct:
12553 shared_flag='-G'
12554 else
12555 if test "$aix_use_runtimelinking" = yes; then
12556 shared_flag='${wl}-G'
12557 else
12558 shared_flag='${wl}-bM:SRE'
12559 fi
12560 fi
12561 fi
12562
12563 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12564 # It seems that -bexpall does not export symbols beginning with
12565 # underscore (_), so it is better to generate a list of symbols to
12566 # export.
12567 always_export_symbols_CXX=yes
12568 if test "$aix_use_runtimelinking" = yes; then
12569 # Warning - without using the other runtime loading flags (-brtl),
12570 # -berok will link without error, but may produce a broken library.
12571 allow_undefined_flag_CXX='-berok'
12572 # Determine the default libpath from the value encoded in an empty
12573 # executable.
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h. */
12576
12577int
12578main ()
12579{
12580
12581 ;
12582 return 0;
12583}
12584_ACEOF
12585if ac_fn_cxx_try_link "$LINENO"; then :
12586
12587lt_aix_libpath_sed='
12588 /Import File Strings/,/^$/ {
12589 /^0/ {
12590 s/^0 *\(.*\)$/\1/
12591 p
12592 }
12593 }'
12594aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595# Check for a 64-bit object if we didn't find anything.
12596if test -z "$aix_libpath"; then
12597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12598fi
12599fi
12600rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12603
12604 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12605
12606 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"
12607 else
12608 if test "$host_cpu" = ia64; then
12609 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12610 allow_undefined_flag_CXX="-z nodefs"
12611 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"
12612 else
12613 # Determine the default libpath from the value encoded in an
12614 # empty executable.
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616/* end confdefs.h. */
12617
12618int
12619main ()
12620{
12621
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626if ac_fn_cxx_try_link "$LINENO"; then :
12627
12628lt_aix_libpath_sed='
12629 /Import File Strings/,/^$/ {
12630 /^0/ {
12631 s/^0 *\(.*\)$/\1/
12632 p
12633 }
12634 }'
12635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636# Check for a 64-bit object if we didn't find anything.
12637if test -z "$aix_libpath"; then
12638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639fi
12640fi
12641rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12644
12645 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12646 # Warning - without using the other run time loading flags,
12647 # -berok will link without error, but may produce a broken library.
12648 no_undefined_flag_CXX=' ${wl}-bernotok'
12649 allow_undefined_flag_CXX=' ${wl}-berok'
12650 if test "$with_gnu_ld" = yes; then
12651 # We only use this code for GNU lds that support --whole-archive.
12652 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12653 else
12654 # Exported symbols can be pulled into shared objects from archives
12655 whole_archive_flag_spec_CXX='$convenience'
12656 fi
12657 archive_cmds_need_lc_CXX=yes
12658 # This is similar to how AIX traditionally builds its shared
12659 # libraries.
12660 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'
12661 fi
12662 fi
12663 ;;
12664
12665 beos*)
12666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667 allow_undefined_flag_CXX=unsupported
12668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12669 # support --undefined. This deserves some investigation. FIXME
12670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 else
12672 ld_shlibs_CXX=no
12673 fi
12674 ;;
12675
12676 chorus*)
12677 case $cc_basename in
12678 *)
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12681 ;;
12682 esac
12683 ;;
12684
12685 cygwin* | mingw* | pw32* | cegcc*)
12686 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12687 # as there is no search path for DLLs.
12688 hardcode_libdir_flag_spec_CXX='-L$libdir'
12689 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12690 allow_undefined_flag_CXX=unsupported
12691 always_export_symbols_CXX=no
12692 enable_shared_with_static_runtimes_CXX=yes
12693
12694 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12695 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'
12696 # If the export-symbols file already is a .def file (1st line
12697 # is EXPORTS), use it as is; otherwise, prepend...
12698 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12699 cp $export_symbols $output_objdir/$soname.def;
12700 else
12701 echo EXPORTS > $output_objdir/$soname.def;
12702 cat $export_symbols >> $output_objdir/$soname.def;
12703 fi~
12704 $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'
12705 else
12706 ld_shlibs_CXX=no
12707 fi
12708 ;;
12709 darwin* | rhapsody*)
12710
12711
12712 archive_cmds_need_lc_CXX=no
12713 hardcode_direct_CXX=no
12714 hardcode_automatic_CXX=yes
12715 hardcode_shlibpath_var_CXX=unsupported
12716 if test "$lt_cv_ld_force_load" = "yes"; then
12717 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\"`'
12718 else
12719 whole_archive_flag_spec_CXX=''
12720 fi
12721 link_all_deplibs_CXX=yes
12722 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12723 case $cc_basename in
12724 ifort*) _lt_dar_can_shared=yes ;;
12725 *) _lt_dar_can_shared=$GCC ;;
12726 esac
12727 if test "$_lt_dar_can_shared" = "yes"; then
12728 output_verbose_link_cmd=func_echo_all
12729 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}"
12730 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12731 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}"
12732 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}"
12733 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12734 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}"
12735 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}"
12736 fi
12737
12738 else
12739 ld_shlibs_CXX=no
12740 fi
12741
12742 ;;
12743
12744 dgux*)
12745 case $cc_basename in
12746 ec++*)
12747 # FIXME: insert proper C++ library support
12748 ld_shlibs_CXX=no
12749 ;;
12750 ghcx*)
12751 # Green Hills C++ Compiler
12752 # FIXME: insert proper C++ library support
12753 ld_shlibs_CXX=no
12754 ;;
12755 *)
12756 # FIXME: insert proper C++ library support
12757 ld_shlibs_CXX=no
12758 ;;
12759 esac
12760 ;;
12761
6d2920c8 12762 freebsd2.*)
3cb62297
L
12763 # C++ shared libraries reported to be fairly broken before
12764 # switch to ELF
12765 ld_shlibs_CXX=no
12766 ;;
12767
12768 freebsd-elf*)
12769 archive_cmds_need_lc_CXX=no
12770 ;;
12771
12772 freebsd* | dragonfly*)
12773 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12774 # conventions
12775 ld_shlibs_CXX=yes
12776 ;;
12777
12778 gnu*)
12779 ;;
12780
12781 haiku*)
12782 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783 link_all_deplibs_CXX=yes
12784 ;;
12785
12786 hpux9*)
12787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12788 hardcode_libdir_separator_CXX=:
12789 export_dynamic_flag_spec_CXX='${wl}-E'
12790 hardcode_direct_CXX=yes
12791 hardcode_minus_L_CXX=yes # Not in the search PATH,
12792 # but as the default
12793 # location of the library.
12794
12795 case $cc_basename in
12796 CC*)
12797 # FIXME: insert proper C++ library support
12798 ld_shlibs_CXX=no
12799 ;;
12800 aCC*)
12801 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'
12802 # Commands to make compiler produce verbose output that lists
12803 # what "hidden" libraries, object files and flags are used when
12804 # linking a shared library.
12805 #
12806 # There doesn't appear to be a way to prevent this compiler from
12807 # explicitly linking system object files so we need to strip them
12808 # from the output so that they don't get included in the library
12809 # dependencies.
12810 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"'
12811 ;;
12812 *)
12813 if test "$GXX" = yes; then
12814 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'
12815 else
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 fi
12819 ;;
12820 esac
12821 ;;
12822
12823 hpux10*|hpux11*)
12824 if test $with_gnu_ld = no; then
12825 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12826 hardcode_libdir_separator_CXX=:
12827
12828 case $host_cpu in
12829 hppa*64*|ia64*)
12830 ;;
12831 *)
12832 export_dynamic_flag_spec_CXX='${wl}-E'
12833 ;;
12834 esac
12835 fi
12836 case $host_cpu in
12837 hppa*64*|ia64*)
12838 hardcode_direct_CXX=no
12839 hardcode_shlibpath_var_CXX=no
12840 ;;
12841 *)
12842 hardcode_direct_CXX=yes
12843 hardcode_direct_absolute_CXX=yes
12844 hardcode_minus_L_CXX=yes # Not in the search PATH,
12845 # but as the default
12846 # location of the library.
12847 ;;
12848 esac
12849
12850 case $cc_basename in
12851 CC*)
12852 # FIXME: insert proper C++ library support
12853 ld_shlibs_CXX=no
12854 ;;
12855 aCC*)
12856 case $host_cpu in
12857 hppa*64*)
12858 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12859 ;;
12860 ia64*)
12861 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12862 ;;
12863 *)
12864 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12865 ;;
12866 esac
12867 # Commands to make compiler produce verbose output that lists
12868 # what "hidden" libraries, object files and flags are used when
12869 # linking a shared library.
12870 #
12871 # There doesn't appear to be a way to prevent this compiler from
12872 # explicitly linking system object files so we need to strip them
12873 # from the output so that they don't get included in the library
12874 # dependencies.
12875 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"'
12876 ;;
12877 *)
12878 if test "$GXX" = yes; then
12879 if test $with_gnu_ld = no; then
12880 case $host_cpu in
12881 hppa*64*)
12882 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12883 ;;
12884 ia64*)
12885 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12886 ;;
12887 *)
12888 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'
12889 ;;
12890 esac
12891 fi
12892 else
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12895 fi
12896 ;;
12897 esac
12898 ;;
12899
12900 interix[3-9]*)
12901 hardcode_direct_CXX=no
12902 hardcode_shlibpath_var_CXX=no
12903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12904 export_dynamic_flag_spec_CXX='${wl}-E'
12905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12906 # Instead, shared libraries are loaded at an image base (0x10000000 by
12907 # default) and relocated if they conflict, which is a slow very memory
12908 # consuming and fragmenting process. To avoid this, we pick a random,
12909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12911 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'
12912 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'
12913 ;;
12914 irix5* | irix6*)
12915 case $cc_basename in
12916 CC*)
12917 # SGI C++
12918 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'
12919
12920 # Archives containing C++ object files must be created using
12921 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12922 # necessary to make sure instantiated templates are included
12923 # in the archive.
12924 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12925 ;;
12926 *)
12927 if test "$GXX" = yes; then
12928 if test "$with_gnu_ld" = no; then
12929 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'
12930 else
12931 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'
12932 fi
12933 fi
12934 link_all_deplibs_CXX=yes
12935 ;;
12936 esac
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938 hardcode_libdir_separator_CXX=:
12939 inherit_rpath_CXX=yes
12940 ;;
12941
12942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12943 case $cc_basename in
12944 KCC*)
12945 # Kuck and Associates, Inc. (KAI) C++ Compiler
12946
12947 # KCC will only create a shared library if the output file
12948 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12949 # to its proper name (with version) after linking.
12950 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'
12951 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'
12952 # Commands to make compiler produce verbose output that lists
12953 # what "hidden" libraries, object files and flags are used when
12954 # linking a shared library.
12955 #
12956 # There doesn't appear to be a way to prevent this compiler from
12957 # explicitly linking system object files so we need to strip them
12958 # from the output so that they don't get included in the library
12959 # dependencies.
12960 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"'
12961
12962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12964
12965 # Archives containing C++ object files must be created using
12966 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12967 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12968 ;;
12969 icpc* | ecpc* )
12970 # Intel C++
12971 with_gnu_ld=yes
12972 # version 8.0 and above of icpc choke on multiply defined symbols
12973 # if we add $predep_objects and $postdep_objects, however 7.1 and
12974 # earlier do not add the objects themselves.
12975 case `$CC -V 2>&1` in
12976 *"Version 7."*)
12977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12978 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'
12979 ;;
12980 *) # Version 8.0 or newer
12981 tmp_idyn=
12982 case $host_cpu in
12983 ia64*) tmp_idyn=' -i_dynamic';;
12984 esac
12985 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 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'
12987 ;;
12988 esac
12989 archive_cmds_need_lc_CXX=no
12990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12992 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12993 ;;
12994 pgCC* | pgcpp*)
12995 # Portland Group C++ compiler
12996 case `$CC -V` in
12997 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12998 prelink_cmds_CXX='tpldir=Template.dir~
12999 rm -rf $tpldir~
13000 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13001 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13002 old_archive_cmds_CXX='tpldir=Template.dir~
13003 rm -rf $tpldir~
13004 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13005 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13006 $RANLIB $oldlib'
13007 archive_cmds_CXX='tpldir=Template.dir~
13008 rm -rf $tpldir~
13009 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13010 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13011 archive_expsym_cmds_CXX='tpldir=Template.dir~
13012 rm -rf $tpldir~
13013 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13014 $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'
13015 ;;
13016 *) # Version 6 and above use weak symbols
13017 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13018 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'
13019 ;;
13020 esac
13021
13022 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13023 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13024 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'
13025 ;;
13026 cxx*)
13027 # Compaq C++
13028 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029 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'
13030
13031 runpath_var=LD_RUN_PATH
13032 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13033 hardcode_libdir_separator_CXX=:
13034
13035 # Commands to make compiler produce verbose output that lists
13036 # what "hidden" libraries, object files and flags are used when
13037 # linking a shared library.
13038 #
13039 # There doesn't appear to be a way to prevent this compiler from
13040 # explicitly linking system object files so we need to strip them
13041 # from the output so that they don't get included in the library
13042 # dependencies.
13043 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'
13044 ;;
13045 xl* | mpixl* | bgxl*)
13046 # IBM XL 8.0 on PPC, with GNU ld
13047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13049 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050 if test "x$supports_anon_versioning" = xyes; then
13051 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13053 echo "local: *; };" >> $output_objdir/$libname.ver~
13054 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13055 fi
13056 ;;
13057 *)
13058 case `$CC -V 2>&1 | sed 5q` in
13059 *Sun\ C*)
13060 # Sun C++ 5.9
13061 no_undefined_flag_CXX=' -zdefs'
13062 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13063 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'
13064 hardcode_libdir_flag_spec_CXX='-R$libdir'
13065 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'
13066 compiler_needs_object_CXX=yes
13067
13068 # Not sure whether something based on
13069 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13070 # would be better.
13071 output_verbose_link_cmd='func_echo_all'
13072
13073 # Archives containing C++ object files must be created using
13074 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13075 # necessary to make sure instantiated templates are included
13076 # in the archive.
13077 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13078 ;;
13079 esac
13080 ;;
13081 esac
13082 ;;
13083
13084 lynxos*)
13085 # FIXME: insert proper C++ library support
13086 ld_shlibs_CXX=no
13087 ;;
13088
13089 m88k*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093
13094 mvs*)
13095 case $cc_basename in
13096 cxx*)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13099 ;;
13100 *)
13101 # FIXME: insert proper C++ library support
13102 ld_shlibs_CXX=no
13103 ;;
13104 esac
13105 ;;
13106
13107 netbsd*)
13108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13109 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13110 wlarc=
13111 hardcode_libdir_flag_spec_CXX='-R$libdir'
13112 hardcode_direct_CXX=yes
13113 hardcode_shlibpath_var_CXX=no
13114 fi
13115 # Workaround some broken pre-1.5 toolchains
13116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13117 ;;
13118
13119 *nto* | *qnx*)
13120 ld_shlibs_CXX=yes
13121 ;;
13122
13123 openbsd2*)
13124 # C++ shared libraries are fairly broken
13125 ld_shlibs_CXX=no
13126 ;;
13127
13128 openbsd*)
13129 if test -f /usr/libexec/ld.so; then
13130 hardcode_direct_CXX=yes
13131 hardcode_shlibpath_var_CXX=no
13132 hardcode_direct_absolute_CXX=yes
13133 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13134 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13136 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13137 export_dynamic_flag_spec_CXX='${wl}-E'
13138 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13139 fi
13140 output_verbose_link_cmd=func_echo_all
13141 else
13142 ld_shlibs_CXX=no
13143 fi
13144 ;;
13145
13146 osf3* | osf4* | osf5*)
13147 case $cc_basename in
13148 KCC*)
13149 # Kuck and Associates, Inc. (KAI) C++ Compiler
13150
13151 # KCC will only create a shared library if the output file
13152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13153 # to its proper name (with version) after linking.
13154 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'
13155
13156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13157 hardcode_libdir_separator_CXX=:
13158
13159 # Archives containing C++ object files must be created using
13160 # the KAI C++ compiler.
13161 case $host in
13162 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13163 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13164 esac
13165 ;;
13166 RCC*)
13167 # Rational C++ 2.4.1
13168 # FIXME: insert proper C++ library support
13169 ld_shlibs_CXX=no
13170 ;;
13171 cxx*)
13172 case $host in
13173 osf3*)
13174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175 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'
13176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177 ;;
13178 *)
13179 allow_undefined_flag_CXX=' -expect_unresolved \*'
13180 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'
13181 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13182 echo "-hidden">> $lib.exp~
13183 $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~
13184 $RM $lib.exp'
13185 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13186 ;;
13187 esac
13188
13189 hardcode_libdir_separator_CXX=:
13190
13191 # Commands to make compiler produce verbose output that lists
13192 # what "hidden" libraries, object files and flags are used when
13193 # linking a shared library.
13194 #
13195 # There doesn't appear to be a way to prevent this compiler from
13196 # explicitly linking system object files so we need to strip them
13197 # from the output so that they don't get included in the library
13198 # dependencies.
13199 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"'
13200 ;;
13201 *)
13202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13203 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13204 case $host in
13205 osf3*)
13206 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'
13207 ;;
13208 *)
13209 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'
13210 ;;
13211 esac
13212
13213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13214 hardcode_libdir_separator_CXX=:
13215
13216 # Commands to make compiler produce verbose output that lists
13217 # what "hidden" libraries, object files and flags are used when
13218 # linking a shared library.
13219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13220
13221 else
13222 # FIXME: insert proper C++ library support
13223 ld_shlibs_CXX=no
13224 fi
13225 ;;
13226 esac
13227 ;;
13228
13229 psos*)
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13232 ;;
13233
13234 sunos4*)
13235 case $cc_basename in
13236 CC*)
13237 # Sun C++ 4.x
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13240 ;;
13241 lcc*)
13242 # Lucid
13243 # FIXME: insert proper C++ library support
13244 ld_shlibs_CXX=no
13245 ;;
13246 *)
13247 # FIXME: insert proper C++ library support
13248 ld_shlibs_CXX=no
13249 ;;
13250 esac
13251 ;;
13252
13253 solaris*)
13254 case $cc_basename in
13255 CC*)
13256 # Sun C++ 4.2, 5.x and Centerline C++
13257 archive_cmds_need_lc_CXX=yes
13258 no_undefined_flag_CXX=' -zdefs'
13259 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13261 $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'
13262
13263 hardcode_libdir_flag_spec_CXX='-R$libdir'
13264 hardcode_shlibpath_var_CXX=no
13265 case $host_os in
13266 solaris2.[0-5] | solaris2.[0-5].*) ;;
13267 *)
13268 # The compiler driver will combine and reorder linker options,
13269 # but understands `-z linker_flag'.
13270 # Supported since Solaris 2.6 (maybe 2.5.1?)
13271 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13272 ;;
13273 esac
13274 link_all_deplibs_CXX=yes
13275
13276 output_verbose_link_cmd='func_echo_all'
13277
13278 # Archives containing C++ object files must be created using
13279 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13280 # necessary to make sure instantiated templates are included
13281 # in the archive.
13282 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13283 ;;
13284 gcx*)
13285 # Green Hills C++ Compiler
13286 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13287
13288 # The C++ compiler must be used to create the archive.
13289 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13290 ;;
13291 *)
13292 # GNU C++ compiler with Solaris linker
13293 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13294 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13295 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13296 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13298 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13299
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13304 else
13305 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13306 # platform.
13307 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13308 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13309 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13310
13311 # Commands to make compiler produce verbose output that lists
13312 # what "hidden" libraries, object files and flags are used when
13313 # linking a shared library.
13314 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13315 fi
13316
13317 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13318 case $host_os in
13319 solaris2.[0-5] | solaris2.[0-5].*) ;;
13320 *)
13321 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13322 ;;
13323 esac
13324 fi
13325 ;;
13326 esac
13327 ;;
13328
13329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13330 no_undefined_flag_CXX='${wl}-z,text'
13331 archive_cmds_need_lc_CXX=no
13332 hardcode_shlibpath_var_CXX=no
13333 runpath_var='LD_RUN_PATH'
13334
13335 case $cc_basename in
13336 CC*)
13337 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339 ;;
13340 *)
13341 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 ;;
13344 esac
13345 ;;
13346
13347 sysv5* | sco3.2v5* | sco5v6*)
13348 # Note: We can NOT use -z defs as we might desire, because we do not
13349 # link with -lc, and that would cause any symbols used from libc to
13350 # always be unresolved, which means just about no library would
13351 # ever link correctly. If we're not using GNU ld we use -z text
13352 # though, which does catch some bad symbols but isn't as heavy-handed
13353 # as -z defs.
13354 no_undefined_flag_CXX='${wl}-z,text'
13355 allow_undefined_flag_CXX='${wl}-z,nodefs'
13356 archive_cmds_need_lc_CXX=no
13357 hardcode_shlibpath_var_CXX=no
13358 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13359 hardcode_libdir_separator_CXX=':'
13360 link_all_deplibs_CXX=yes
13361 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13362 runpath_var='LD_RUN_PATH'
13363
13364 case $cc_basename in
13365 CC*)
13366 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13367 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13369 '"$old_archive_cmds_CXX"
13370 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13371 '"$reload_cmds_CXX"
13372 ;;
13373 *)
13374 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13375 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13376 ;;
13377 esac
13378 ;;
13379
13380 tandem*)
13381 case $cc_basename in
13382 NCC*)
13383 # NonStop-UX NCC 3.20
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13386 ;;
13387 *)
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13390 ;;
13391 esac
13392 ;;
13393
13394 vxworks*)
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13397 ;;
13398
13399 *)
13400 # FIXME: insert proper C++ library support
13401 ld_shlibs_CXX=no
13402 ;;
13403 esac
13404
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13406$as_echo "$ld_shlibs_CXX" >&6; }
13407 test "$ld_shlibs_CXX" = no && can_build_shared=no
13408
13409 GCC_CXX="$GXX"
13410 LD_CXX="$LD"
13411
13412 ## CAVEAT EMPTOR:
13413 ## There is no encapsulation within the following macros, do not change
13414 ## the running order or otherwise move them around unless you know exactly
13415 ## what you are doing...
13416 # Dependencies to place before and after the object being linked:
13417predep_objects_CXX=
13418postdep_objects_CXX=
13419predeps_CXX=
13420postdeps_CXX=
13421compiler_lib_search_path_CXX=
13422
13423cat > conftest.$ac_ext <<_LT_EOF
13424class Foo
13425{
13426public:
13427 Foo (void) { a = 0; }
13428private:
13429 int a;
13430};
13431_LT_EOF
13432
13433if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13434 (eval $ac_compile) 2>&5
13435 ac_status=$?
13436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437 test $ac_status = 0; }; then
13438 # Parse the compiler output and extract the necessary
13439 # objects, libraries and library flags.
13440
13441 # Sentinel used to keep track of whether or not we are before
13442 # the conftest object file.
13443 pre_test_object_deps_done=no
13444
13445 for p in `eval "$output_verbose_link_cmd"`; do
13446 case $p in
13447
13448 -L* | -R* | -l*)
13449 # Some compilers place space between "-{L,R}" and the path.
13450 # Remove the space.
13451 if test $p = "-L" ||
13452 test $p = "-R"; then
13453 prev=$p
13454 continue
13455 else
13456 prev=
13457 fi
13458
13459 if test "$pre_test_object_deps_done" = no; then
13460 case $p in
13461 -L* | -R*)
13462 # Internal compiler library paths should come after those
13463 # provided the user. The postdeps already come after the
13464 # user supplied libs so there is no need to process them.
13465 if test -z "$compiler_lib_search_path_CXX"; then
13466 compiler_lib_search_path_CXX="${prev}${p}"
13467 else
13468 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13469 fi
13470 ;;
13471 # The "-l" case would never come before the object being
13472 # linked, so don't bother handling this case.
13473 esac
13474 else
13475 if test -z "$postdeps_CXX"; then
13476 postdeps_CXX="${prev}${p}"
13477 else
13478 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13479 fi
13480 fi
13481 ;;
13482
13483 *.$objext)
13484 # This assumes that the test object file only shows up
13485 # once in the compiler output.
13486 if test "$p" = "conftest.$objext"; then
13487 pre_test_object_deps_done=yes
13488 continue
13489 fi
13490
13491 if test "$pre_test_object_deps_done" = no; then
13492 if test -z "$predep_objects_CXX"; then
13493 predep_objects_CXX="$p"
13494 else
13495 predep_objects_CXX="$predep_objects_CXX $p"
13496 fi
13497 else
13498 if test -z "$postdep_objects_CXX"; then
13499 postdep_objects_CXX="$p"
13500 else
13501 postdep_objects_CXX="$postdep_objects_CXX $p"
13502 fi
13503 fi
13504 ;;
13505
13506 *) ;; # Ignore the rest.
13507
13508 esac
13509 done
13510
13511 # Clean up.
13512 rm -f a.out a.exe
13513else
13514 echo "libtool.m4: error: problem compiling CXX test program"
13515fi
13516
13517$RM -f confest.$objext
13518
13519# PORTME: override above test on systems where it is broken
13520case $host_os in
13521interix[3-9]*)
13522 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13523 # hack all around it, let's just trust "g++" to DTRT.
13524 predep_objects_CXX=
13525 postdep_objects_CXX=
13526 postdeps_CXX=
13527 ;;
13528
13529linux*)
13530 case `$CC -V 2>&1 | sed 5q` in
13531 *Sun\ C*)
13532 # Sun C++ 5.9
13533
13534 # The more standards-conforming stlport4 library is
13535 # incompatible with the Cstd library. Avoid specifying
13536 # it if it's in CXXFLAGS. Ignore libCrun as
13537 # -library=stlport4 depends on it.
13538 case " $CXX $CXXFLAGS " in
13539 *" -library=stlport4 "*)
13540 solaris_use_stlport4=yes
13541 ;;
13542 esac
13543
13544 if test "$solaris_use_stlport4" != yes; then
13545 postdeps_CXX='-library=Cstd -library=Crun'
13546 fi
13547 ;;
13548 esac
13549 ;;
13550
13551solaris*)
13552 case $cc_basename in
13553 CC*)
13554 # The more standards-conforming stlport4 library is
13555 # incompatible with the Cstd library. Avoid specifying
13556 # it if it's in CXXFLAGS. Ignore libCrun as
13557 # -library=stlport4 depends on it.
13558 case " $CXX $CXXFLAGS " in
13559 *" -library=stlport4 "*)
13560 solaris_use_stlport4=yes
13561 ;;
13562 esac
13563
13564 # Adding this requires a known-good setup of shared libraries for
13565 # Sun compiler versions before 5.6, else PIC objects from an old
13566 # archive will be linked into the output, leading to subtle bugs.
13567 if test "$solaris_use_stlport4" != yes; then
13568 postdeps_CXX='-library=Cstd -library=Crun'
13569 fi
13570 ;;
13571 esac
13572 ;;
13573esac
13574
13575
13576case " $postdeps_CXX " in
13577*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13578esac
13579 compiler_lib_search_dirs_CXX=
13580if test -n "${compiler_lib_search_path_CXX}"; then
13581 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13582fi
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
13608
13609
13610
13611
13612
13613
13614 lt_prog_compiler_wl_CXX=
13615lt_prog_compiler_pic_CXX=
13616lt_prog_compiler_static_CXX=
13617
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13619$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13620
13621 # C++ specific cases for pic, static, wl, etc.
13622 if test "$GXX" = yes; then
13623 lt_prog_compiler_wl_CXX='-Wl,'
13624 lt_prog_compiler_static_CXX='-static'
13625
13626 case $host_os in
13627 aix*)
13628 # All AIX code is PIC.
13629 if test "$host_cpu" = ia64; then
13630 # AIX 5 now supports IA64 processor
13631 lt_prog_compiler_static_CXX='-Bstatic'
13632 fi
52204357 13633 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13634 ;;
13635
13636 amigaos*)
13637 case $host_cpu in
13638 powerpc)
13639 # see comment about AmigaOS4 .so support
13640 lt_prog_compiler_pic_CXX='-fPIC'
13641 ;;
13642 m68k)
13643 # FIXME: we need at least 68020 code to build shared libraries, but
13644 # adding the `-m68020' flag to GCC prevents building anything better,
13645 # like `-m68040'.
13646 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13647 ;;
13648 esac
13649 ;;
13650
13651 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13652 # PIC is the default for these OSes.
13653 ;;
13654 mingw* | cygwin* | os2* | pw32* | cegcc*)
13655 # This hack is so that the source file can tell whether it is being
13656 # built for inclusion in a dll (and should export symbols for example).
13657 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13658 # (--disable-auto-import) libraries
13659 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13660 ;;
13661 darwin* | rhapsody*)
13662 # PIC is the default on this platform
13663 # Common symbols not allowed in MH_DYLIB files
13664 lt_prog_compiler_pic_CXX='-fno-common'
13665 ;;
13666 *djgpp*)
13667 # DJGPP does not support shared libraries at all
13668 lt_prog_compiler_pic_CXX=
13669 ;;
13670 haiku*)
13671 # PIC is the default for Haiku.
13672 # The "-static" flag exists, but is broken.
13673 lt_prog_compiler_static_CXX=
13674 ;;
13675 interix[3-9]*)
13676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677 # Instead, we relocate shared libraries at runtime.
13678 ;;
13679 sysv4*MP*)
13680 if test -d /usr/nec; then
13681 lt_prog_compiler_pic_CXX=-Kconform_pic
13682 fi
13683 ;;
13684 hpux*)
13685 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13686 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13687 # sets the default TLS model and affects inlining.
13688 case $host_cpu in
13689 hppa*64*)
13690 ;;
13691 *)
13692 lt_prog_compiler_pic_CXX='-fPIC'
13693 ;;
13694 esac
13695 ;;
13696 *qnx* | *nto*)
13697 # QNX uses GNU C++, but need to define -shared option too, otherwise
13698 # it will coredump.
13699 lt_prog_compiler_pic_CXX='-fPIC -shared'
13700 ;;
13701 *)
13702 lt_prog_compiler_pic_CXX='-fPIC'
13703 ;;
13704 esac
13705 else
13706 case $host_os in
13707 aix[4-9]*)
13708 # All AIX code is PIC.
13709 if test "$host_cpu" = ia64; then
13710 # AIX 5 now supports IA64 processor
13711 lt_prog_compiler_static_CXX='-Bstatic'
13712 else
13713 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13714 fi
13715 ;;
13716 chorus*)
13717 case $cc_basename in
13718 cxch68*)
13719 # Green Hills C++ Compiler
13720 # _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"
13721 ;;
13722 esac
13723 ;;
13724 dgux*)
13725 case $cc_basename in
13726 ec++*)
13727 lt_prog_compiler_pic_CXX='-KPIC'
13728 ;;
13729 ghcx*)
13730 # Green Hills C++ Compiler
13731 lt_prog_compiler_pic_CXX='-pic'
13732 ;;
13733 *)
13734 ;;
13735 esac
13736 ;;
13737 freebsd* | dragonfly*)
13738 # FreeBSD uses GNU C++
13739 ;;
13740 hpux9* | hpux10* | hpux11*)
13741 case $cc_basename in
13742 CC*)
13743 lt_prog_compiler_wl_CXX='-Wl,'
13744 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13745 if test "$host_cpu" != ia64; then
13746 lt_prog_compiler_pic_CXX='+Z'
13747 fi
13748 ;;
13749 aCC*)
13750 lt_prog_compiler_wl_CXX='-Wl,'
13751 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13752 case $host_cpu in
13753 hppa*64*|ia64*)
13754 # +Z the default
13755 ;;
13756 *)
13757 lt_prog_compiler_pic_CXX='+Z'
13758 ;;
13759 esac
13760 ;;
13761 *)
13762 ;;
13763 esac
13764 ;;
13765 interix*)
13766 # This is c89, which is MS Visual C++ (no shared libs)
13767 # Anyone wants to do a port?
13768 ;;
13769 irix5* | irix6* | nonstopux*)
13770 case $cc_basename in
13771 CC*)
13772 lt_prog_compiler_wl_CXX='-Wl,'
13773 lt_prog_compiler_static_CXX='-non_shared'
13774 # CC pic flag -KPIC is the default.
13775 ;;
13776 *)
13777 ;;
13778 esac
13779 ;;
13780 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13781 case $cc_basename in
13782 KCC*)
13783 # KAI C++ Compiler
13784 lt_prog_compiler_wl_CXX='--backend -Wl,'
13785 lt_prog_compiler_pic_CXX='-fPIC'
13786 ;;
13787 ecpc* )
13788 # old Intel C++ for x86_64 which still supported -KPIC.
13789 lt_prog_compiler_wl_CXX='-Wl,'
13790 lt_prog_compiler_pic_CXX='-KPIC'
13791 lt_prog_compiler_static_CXX='-static'
13792 ;;
13793 icpc* )
13794 # Intel C++, used to be incompatible with GCC.
13795 # ICC 10 doesn't accept -KPIC any more.
13796 lt_prog_compiler_wl_CXX='-Wl,'
13797 lt_prog_compiler_pic_CXX='-fPIC'
13798 lt_prog_compiler_static_CXX='-static'
13799 ;;
13800 pgCC* | pgcpp*)
13801 # Portland Group C++ compiler
13802 lt_prog_compiler_wl_CXX='-Wl,'
13803 lt_prog_compiler_pic_CXX='-fpic'
13804 lt_prog_compiler_static_CXX='-Bstatic'
13805 ;;
13806 cxx*)
13807 # Compaq C++
13808 # Make sure the PIC flag is empty. It appears that all Alpha
13809 # Linux and Compaq Tru64 Unix objects are PIC.
13810 lt_prog_compiler_pic_CXX=
13811 lt_prog_compiler_static_CXX='-non_shared'
13812 ;;
13813 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13814 # IBM XL 8.0, 9.0 on PPC and BlueGene
13815 lt_prog_compiler_wl_CXX='-Wl,'
13816 lt_prog_compiler_pic_CXX='-qpic'
13817 lt_prog_compiler_static_CXX='-qstaticlink'
13818 ;;
13819 *)
13820 case `$CC -V 2>&1 | sed 5q` in
13821 *Sun\ C*)
13822 # Sun C++ 5.9
13823 lt_prog_compiler_pic_CXX='-KPIC'
13824 lt_prog_compiler_static_CXX='-Bstatic'
13825 lt_prog_compiler_wl_CXX='-Qoption ld '
13826 ;;
13827 esac
13828 ;;
13829 esac
13830 ;;
13831 lynxos*)
13832 ;;
13833 m88k*)
13834 ;;
13835 mvs*)
13836 case $cc_basename in
13837 cxx*)
13838 lt_prog_compiler_pic_CXX='-W c,exportall'
13839 ;;
13840 *)
13841 ;;
13842 esac
13843 ;;
13844 netbsd*)
13845 ;;
13846 *qnx* | *nto*)
13847 # QNX uses GNU C++, but need to define -shared option too, otherwise
13848 # it will coredump.
13849 lt_prog_compiler_pic_CXX='-fPIC -shared'
13850 ;;
13851 osf3* | osf4* | osf5*)
13852 case $cc_basename in
13853 KCC*)
13854 lt_prog_compiler_wl_CXX='--backend -Wl,'
13855 ;;
13856 RCC*)
13857 # Rational C++ 2.4.1
13858 lt_prog_compiler_pic_CXX='-pic'
13859 ;;
13860 cxx*)
13861 # Digital/Compaq C++
13862 lt_prog_compiler_wl_CXX='-Wl,'
13863 # Make sure the PIC flag is empty. It appears that all Alpha
13864 # Linux and Compaq Tru64 Unix objects are PIC.
13865 lt_prog_compiler_pic_CXX=
13866 lt_prog_compiler_static_CXX='-non_shared'
13867 ;;
13868 *)
13869 ;;
13870 esac
13871 ;;
13872 psos*)
13873 ;;
13874 solaris*)
13875 case $cc_basename in
13876 CC*)
13877 # Sun C++ 4.2, 5.x and Centerline C++
13878 lt_prog_compiler_pic_CXX='-KPIC'
13879 lt_prog_compiler_static_CXX='-Bstatic'
13880 lt_prog_compiler_wl_CXX='-Qoption ld '
13881 ;;
13882 gcx*)
13883 # Green Hills C++ Compiler
13884 lt_prog_compiler_pic_CXX='-PIC'
13885 ;;
13886 *)
13887 ;;
13888 esac
13889 ;;
13890 sunos4*)
13891 case $cc_basename in
13892 CC*)
13893 # Sun C++ 4.x
13894 lt_prog_compiler_pic_CXX='-pic'
13895 lt_prog_compiler_static_CXX='-Bstatic'
13896 ;;
13897 lcc*)
13898 # Lucid
13899 lt_prog_compiler_pic_CXX='-pic'
13900 ;;
13901 *)
13902 ;;
13903 esac
13904 ;;
13905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13906 case $cc_basename in
13907 CC*)
13908 lt_prog_compiler_wl_CXX='-Wl,'
13909 lt_prog_compiler_pic_CXX='-KPIC'
13910 lt_prog_compiler_static_CXX='-Bstatic'
13911 ;;
13912 esac
13913 ;;
13914 tandem*)
13915 case $cc_basename in
13916 NCC*)
13917 # NonStop-UX NCC 3.20
13918 lt_prog_compiler_pic_CXX='-KPIC'
13919 ;;
13920 *)
13921 ;;
13922 esac
13923 ;;
13924 vxworks*)
13925 ;;
13926 *)
13927 lt_prog_compiler_can_build_shared_CXX=no
13928 ;;
13929 esac
13930 fi
13931
13932case $host_os in
13933 # For platforms which do not support PIC, -DPIC is meaningless:
13934 *djgpp*)
13935 lt_prog_compiler_pic_CXX=
13936 ;;
13937 *)
13938 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13939 ;;
13940esac
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13942$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13943
13944
13945
13946#
13947# Check to make sure the PIC flag actually works.
13948#
13949if test -n "$lt_prog_compiler_pic_CXX"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13951$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13952if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13954else
13955 lt_cv_prog_compiler_pic_works_CXX=no
13956 ac_outfile=conftest.$ac_objext
13957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13958 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13959 # Insert the option either (1) after the last *FLAGS variable, or
13960 # (2) before a word containing "conftest.", or (3) at the end.
13961 # Note that $ac_compile itself does not contain backslashes and begins
13962 # with a dollar sign (not a hyphen), so the echo should work correctly.
13963 # The option is referenced via a variable to avoid confusing sed.
13964 lt_compile=`echo "$ac_compile" | $SED \
13965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967 -e 's:$: $lt_compiler_flag:'`
13968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13969 (eval "$lt_compile" 2>conftest.err)
13970 ac_status=$?
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 if (exit $ac_status) && test -s "$ac_outfile"; then
13974 # The compiler can only warn and ignore the option if not recognized
13975 # So say no if there are warnings other than the usual output.
13976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979 lt_cv_prog_compiler_pic_works_CXX=yes
13980 fi
13981 fi
13982 $RM conftest*
13983
13984fi
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13986$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13987
13988if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13989 case $lt_prog_compiler_pic_CXX in
13990 "" | " "*) ;;
13991 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13992 esac
13993else
13994 lt_prog_compiler_pic_CXX=
13995 lt_prog_compiler_can_build_shared_CXX=no
13996fi
13997
13998fi
13999
14000
14001
14002#
14003# Check to make sure the static flag actually works.
14004#
14005wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14007$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14008if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14009 $as_echo_n "(cached) " >&6
14010else
14011 lt_cv_prog_compiler_static_works_CXX=no
14012 save_LDFLAGS="$LDFLAGS"
14013 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14014 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14016 # The linker can only warn and ignore the option if not recognized
14017 # So say no if there are warnings
14018 if test -s conftest.err; then
14019 # Append any errors to the config.log.
14020 cat conftest.err 1>&5
14021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14023 if diff conftest.exp conftest.er2 >/dev/null; then
14024 lt_cv_prog_compiler_static_works_CXX=yes
14025 fi
14026 else
14027 lt_cv_prog_compiler_static_works_CXX=yes
14028 fi
14029 fi
14030 $RM -r conftest*
14031 LDFLAGS="$save_LDFLAGS"
14032
14033fi
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14035$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14036
14037if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14038 :
14039else
14040 lt_prog_compiler_static_CXX=
14041fi
14042
14043
14044
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14047$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14048if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14049 $as_echo_n "(cached) " >&6
14050else
14051 lt_cv_prog_compiler_c_o_CXX=no
14052 $RM -r conftest 2>/dev/null
14053 mkdir conftest
14054 cd conftest
14055 mkdir out
14056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14057
14058 lt_compiler_flag="-o out/conftest2.$ac_objext"
14059 # Insert the option either (1) after the last *FLAGS variable, or
14060 # (2) before a word containing "conftest.", or (3) at the end.
14061 # Note that $ac_compile itself does not contain backslashes and begins
14062 # with a dollar sign (not a hyphen), so the echo should work correctly.
14063 lt_compile=`echo "$ac_compile" | $SED \
14064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14066 -e 's:$: $lt_compiler_flag:'`
14067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14068 (eval "$lt_compile" 2>out/conftest.err)
14069 ac_status=$?
14070 cat out/conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14073 then
14074 # The compiler can only warn and ignore the option if not recognized
14075 # So say no if there are warnings
14076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14079 lt_cv_prog_compiler_c_o_CXX=yes
14080 fi
14081 fi
14082 chmod u+w . 2>&5
14083 $RM conftest*
14084 # SGI C++ compiler will create directory out/ii_files/ for
14085 # template instantiation
14086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14087 $RM out/* && rmdir out
14088 cd ..
14089 $RM -r conftest
14090 $RM conftest*
14091
14092fi
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14094$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14095
14096
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14099$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14100if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102else
14103 lt_cv_prog_compiler_c_o_CXX=no
14104 $RM -r conftest 2>/dev/null
14105 mkdir conftest
14106 cd conftest
14107 mkdir out
14108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14109
14110 lt_compiler_flag="-o out/conftest2.$ac_objext"
14111 # Insert the option either (1) after the last *FLAGS variable, or
14112 # (2) before a word containing "conftest.", or (3) at the end.
14113 # Note that $ac_compile itself does not contain backslashes and begins
14114 # with a dollar sign (not a hyphen), so the echo should work correctly.
14115 lt_compile=`echo "$ac_compile" | $SED \
14116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14118 -e 's:$: $lt_compiler_flag:'`
14119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14120 (eval "$lt_compile" 2>out/conftest.err)
14121 ac_status=$?
14122 cat out/conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14125 then
14126 # The compiler can only warn and ignore the option if not recognized
14127 # So say no if there are warnings
14128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14131 lt_cv_prog_compiler_c_o_CXX=yes
14132 fi
14133 fi
14134 chmod u+w . 2>&5
14135 $RM conftest*
14136 # SGI C++ compiler will create directory out/ii_files/ for
14137 # template instantiation
14138 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14139 $RM out/* && rmdir out
14140 cd ..
14141 $RM -r conftest
14142 $RM conftest*
14143
14144fi
14145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14146$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14147
14148
14149
14150
14151hard_links="nottested"
14152if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14153 # do not overwrite the value of need_locks provided by the user
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14155$as_echo_n "checking if we can lock with hard links... " >&6; }
14156 hard_links=yes
14157 $RM conftest*
14158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14159 touch conftest.a
14160 ln conftest.a conftest.b 2>&5 || hard_links=no
14161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14163$as_echo "$hard_links" >&6; }
14164 if test "$hard_links" = no; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14166$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14167 need_locks=warn
14168 fi
14169else
14170 need_locks=no
14171fi
14172
14173
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14176$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14177
14178 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14179 case $host_os in
14180 aix[4-9]*)
14181 # If we're using GNU nm, then we don't want the "-C" option.
14182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14183 # Also, AIX nm treats weak defined symbols like other global defined
14184 # symbols, whereas GNU nm marks them as "W".
14185 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14186 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'
14187 else
5c14705f 14188 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
14189 fi
14190 ;;
14191 pw32*)
14192 export_symbols_cmds_CXX="$ltdll_cmds"
14193 ;;
14194 cygwin* | mingw* | cegcc*)
14195 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'
14196 ;;
14197 *)
14198 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14199 ;;
14200 esac
14201 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14202
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14204$as_echo "$ld_shlibs_CXX" >&6; }
14205test "$ld_shlibs_CXX" = no && can_build_shared=no
14206
14207with_gnu_ld_CXX=$with_gnu_ld
14208
14209
14210
14211
14212
14213
14214#
14215# Do we need to explicitly link libc?
14216#
14217case "x$archive_cmds_need_lc_CXX" in
14218x|xyes)
14219 # Assume -lc should be added
14220 archive_cmds_need_lc_CXX=yes
14221
14222 if test "$enable_shared" = yes && test "$GCC" = yes; then
14223 case $archive_cmds_CXX in
14224 *'~'*)
14225 # FIXME: we may have to deal with multi-command sequences.
14226 ;;
14227 '$CC '*)
14228 # Test whether the compiler implicitly links with -lc since on some
14229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14230 # to ld, don't add -lc before -lgcc.
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14232$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14233if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14234 $as_echo_n "(cached) " >&6
14235else
14236 $RM conftest*
14237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238
14239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14240 (eval $ac_compile) 2>&5
14241 ac_status=$?
14242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; } 2>conftest.err; then
14244 soname=conftest
14245 lib=conftest
14246 libobjs=conftest.$ac_objext
14247 deplibs=
14248 wl=$lt_prog_compiler_wl_CXX
14249 pic_flag=$lt_prog_compiler_pic_CXX
14250 compiler_flags=-v
14251 linker_flags=-v
14252 verstring=
14253 output_objdir=.
14254 libname=conftest
14255 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14256 allow_undefined_flag_CXX=
14257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14258 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14259 ac_status=$?
14260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14261 test $ac_status = 0; }
14262 then
14263 lt_cv_archive_cmds_need_lc_CXX=no
14264 else
14265 lt_cv_archive_cmds_need_lc_CXX=yes
14266 fi
14267 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14268 else
14269 cat conftest.err 1>&5
14270 fi
14271 $RM conftest*
14272
14273fi
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14275$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14276 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14277 ;;
14278 esac
14279 fi
14280 ;;
14281esac
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
14340
14341
14342
14343
14344
14345
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14347$as_echo_n "checking dynamic linker characteristics... " >&6; }
14348
14349library_names_spec=
14350libname_spec='lib$name'
14351soname_spec=
14352shrext_cmds=".so"
14353postinstall_cmds=
14354postuninstall_cmds=
14355finish_cmds=
14356finish_eval=
14357shlibpath_var=
14358shlibpath_overrides_runpath=unknown
14359version_type=none
14360dynamic_linker="$host_os ld.so"
14361sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362need_lib_prefix=unknown
14363hardcode_into_libs=no
14364
14365# when you set need_version to no, make sure it does not cause -set_version
14366# flags to be left without arguments
14367need_version=unknown
14368
14369case $host_os in
14370aix3*)
14371 version_type=linux
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14373 shlibpath_var=LIBPATH
14374
14375 # AIX 3 has no versioning support, so we append a major version to the name.
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 ;;
14378
14379aix[4-9]*)
14380 version_type=linux
14381 need_lib_prefix=no
14382 need_version=no
14383 hardcode_into_libs=yes
14384 if test "$host_cpu" = ia64; then
14385 # AIX 5 supports IA64
14386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14387 shlibpath_var=LD_LIBRARY_PATH
14388 else
14389 # With GCC up to 2.95.x, collect2 would create an import file
14390 # for dependence libraries. The import file would start with
14391 # the line `#! .'. This would cause the generated library to
14392 # depend on `.', always an invalid library. This was fixed in
14393 # development snapshots of GCC prior to 3.0.
14394 case $host_os in
14395 aix4 | aix4.[01] | aix4.[01].*)
14396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14397 echo ' yes '
14398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14399 :
14400 else
14401 can_build_shared=no
14402 fi
14403 ;;
14404 esac
14405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14406 # soname into executable. Probably we can add versioning support to
14407 # collect2, so additional links can be useful in future.
14408 if test "$aix_use_runtimelinking" = yes; then
14409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14410 # instead of lib<name>.a to let people know that these are not
14411 # typical AIX shared libraries.
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 else
14414 # We preserve .a as extension for shared libraries through AIX4.2
14415 # and later when we are not doing run time linking.
14416 library_names_spec='${libname}${release}.a $libname.a'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 fi
14419 shlibpath_var=LIBPATH
14420 fi
14421 ;;
14422
14423amigaos*)
14424 case $host_cpu in
14425 powerpc)
14426 # Since July 2007 AmigaOS4 officially supports .so libraries.
14427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429 ;;
14430 m68k)
14431 library_names_spec='$libname.ixlibrary $libname.a'
14432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14433 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'
14434 ;;
14435 esac
14436 ;;
14437
14438beos*)
14439 library_names_spec='${libname}${shared_ext}'
14440 dynamic_linker="$host_os ld.so"
14441 shlibpath_var=LIBRARY_PATH
14442 ;;
14443
14444bsdi[45]*)
14445 version_type=linux
14446 need_version=no
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14453 # the default ld.so.conf also contains /usr/contrib/lib and
14454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14455 # libtool to hard-code these into programs
14456 ;;
14457
14458cygwin* | mingw* | pw32* | cegcc*)
14459 version_type=windows
14460 shrext_cmds=".dll"
14461 need_version=no
14462 need_lib_prefix=no
14463
14464 case $GCC,$host_os in
14465 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14466 library_names_spec='$libname.dll.a'
14467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14468 postinstall_cmds='base_file=`basename \${file}`~
14469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14470 dldir=$destdir/`dirname \$dlpath`~
14471 test -d \$dldir || mkdir -p \$dldir~
14472 $install_prog $dir/$dlname \$dldir/$dlname~
14473 chmod a+x \$dldir/$dlname~
14474 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14475 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14476 fi'
14477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14478 dlpath=$dir/\$dldll~
14479 $RM \$dlpath'
14480 shlibpath_overrides_runpath=yes
14481
14482 case $host_os in
14483 cygwin*)
14484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14486
14487 ;;
14488 mingw* | cegcc*)
14489 # MinGW DLLs use traditional 'lib' prefix
14490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491 ;;
14492 pw32*)
14493 # pw32 DLLs use 'pw' prefix rather than 'lib'
14494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495 ;;
14496 esac
14497 ;;
14498
14499 *)
14500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14501 ;;
14502 esac
14503 dynamic_linker='Win32 ld.exe'
14504 # FIXME: first we should search . and the directory the executable is in
14505 shlibpath_var=PATH
14506 ;;
14507
14508darwin* | rhapsody*)
14509 dynamic_linker="$host_os dyld"
14510 version_type=darwin
14511 need_lib_prefix=no
14512 need_version=no
14513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14514 soname_spec='${libname}${release}${major}$shared_ext'
14515 shlibpath_overrides_runpath=yes
14516 shlibpath_var=DYLD_LIBRARY_PATH
14517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14518
14519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14520 ;;
14521
14522dgux*)
14523 version_type=linux
14524 need_lib_prefix=no
14525 need_version=no
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 ;;
14530
3cb62297
L
14531freebsd* | dragonfly*)
14532 # DragonFly does not have aout. When/if they implement a new
14533 # versioning mechanism, adjust this.
14534 if test -x /usr/bin/objformat; then
14535 objformat=`/usr/bin/objformat`
14536 else
14537 case $host_os in
6d2920c8 14538 freebsd[23].*) objformat=aout ;;
3cb62297
L
14539 *) objformat=elf ;;
14540 esac
14541 fi
14542 version_type=freebsd-$objformat
14543 case $version_type in
14544 freebsd-elf*)
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14546 need_version=no
14547 need_lib_prefix=no
14548 ;;
14549 freebsd-*)
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14551 need_version=yes
14552 ;;
14553 esac
14554 shlibpath_var=LD_LIBRARY_PATH
14555 case $host_os in
6d2920c8 14556 freebsd2.*)
3cb62297
L
14557 shlibpath_overrides_runpath=yes
14558 ;;
14559 freebsd3.[01]* | freebsdelf3.[01]*)
14560 shlibpath_overrides_runpath=yes
14561 hardcode_into_libs=yes
14562 ;;
14563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14565 shlibpath_overrides_runpath=no
14566 hardcode_into_libs=yes
14567 ;;
14568 *) # from 4.6 on, and DragonFly
14569 shlibpath_overrides_runpath=yes
14570 hardcode_into_libs=yes
14571 ;;
14572 esac
14573 ;;
14574
14575gnu*)
14576 version_type=linux
14577 need_lib_prefix=no
14578 need_version=no
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 hardcode_into_libs=yes
14583 ;;
14584
14585haiku*)
14586 version_type=linux
14587 need_lib_prefix=no
14588 need_version=no
14589 dynamic_linker="$host_os runtime_loader"
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes
14594 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14595 hardcode_into_libs=yes
14596 ;;
14597
14598hpux9* | hpux10* | hpux11*)
14599 # Give a soname corresponding to the major version so that dld.sl refuses to
14600 # link against other versions.
14601 version_type=sunos
14602 need_lib_prefix=no
14603 need_version=no
14604 case $host_cpu in
14605 ia64*)
14606 shrext_cmds='.so'
14607 hardcode_into_libs=yes
14608 dynamic_linker="$host_os dld.so"
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 if test "X$HPUX_IA64_MODE" = X32; then
14614 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14615 else
14616 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14617 fi
14618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14619 ;;
14620 hppa*64*)
14621 shrext_cmds='.sl'
14622 hardcode_into_libs=yes
14623 dynamic_linker="$host_os dld.sl"
14624 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14630 ;;
14631 *)
14632 shrext_cmds='.sl'
14633 dynamic_linker="$host_os dld.sl"
14634 shlibpath_var=SHLIB_PATH
14635 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 ;;
14639 esac
14640 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14641 postinstall_cmds='chmod 555 $lib'
14642 # or fails outright, so override atomically:
14643 install_override_mode=555
14644 ;;
14645
14646interix[3-9]*)
14647 version_type=linux
14648 need_lib_prefix=no
14649 need_version=no
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=no
14655 hardcode_into_libs=yes
14656 ;;
14657
14658irix5* | irix6* | nonstopux*)
14659 case $host_os in
14660 nonstopux*) version_type=nonstopux ;;
14661 *)
14662 if test "$lt_cv_prog_gnu_ld" = yes; then
14663 version_type=linux
14664 else
14665 version_type=irix
14666 fi ;;
14667 esac
14668 need_lib_prefix=no
14669 need_version=no
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14672 case $host_os in
14673 irix5* | nonstopux*)
14674 libsuff= shlibsuff=
14675 ;;
14676 *)
14677 case $LD in # libtool.m4 will add one of these switches to LD
14678 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14679 libsuff= shlibsuff= libmagic=32-bit;;
14680 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14681 libsuff=32 shlibsuff=N32 libmagic=N32;;
14682 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14683 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14684 *) libsuff= shlibsuff= libmagic=never-match;;
14685 esac
14686 ;;
14687 esac
14688 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14689 shlibpath_overrides_runpath=no
14690 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14691 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14692 hardcode_into_libs=yes
14693 ;;
14694
14695# No shared lib support for Linux oldld, aout, or coff.
14696linux*oldld* | linux*aout* | linux*coff*)
14697 dynamic_linker=no
14698 ;;
14699
14700# This must be Linux ELF.
14701linux* | k*bsd*-gnu | kopensolaris*-gnu)
14702 version_type=linux
14703 need_lib_prefix=no
14704 need_version=no
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=no
14710
14711 # Some binutils ld are patched to set DT_RUNPATH
14712 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14713 $as_echo_n "(cached) " >&6
14714else
14715 lt_cv_shlibpath_overrides_runpath=no
14716 save_LDFLAGS=$LDFLAGS
14717 save_libdir=$libdir
14718 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14719 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721/* end confdefs.h. */
14722
14723int
14724main ()
14725{
14726
14727 ;
14728 return 0;
14729}
14730_ACEOF
14731if ac_fn_cxx_try_link "$LINENO"; then :
14732 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14733 lt_cv_shlibpath_overrides_runpath=yes
14734fi
14735fi
14736rm -f core conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14738 LDFLAGS=$save_LDFLAGS
14739 libdir=$save_libdir
14740
14741fi
14742
14743 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14744
14745 # This implies no fast_install, which is unacceptable.
14746 # Some rework will be needed to allow for fast_install
14747 # before this can be enabled.
14748 hardcode_into_libs=yes
14749
14750 # Append ld.so.conf contents to the search path
14751 if test -f /etc/ld.so.conf; then
14752 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' ' '`
14753 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14754 fi
14755
14756 # We used to test for /lib/ld.so.1 and disable shared libraries on
14757 # powerpc, because MkLinux only supported shared libraries with the
14758 # GNU dynamic linker. Since this was broken with cross compilers,
14759 # most powerpc-linux boxes support dynamic linking these days and
14760 # people can always --disable-shared, the test was removed, and we
14761 # assume the GNU/Linux dynamic linker is in use.
14762 dynamic_linker='GNU/Linux ld.so'
14763 ;;
14764
14765netbsd*)
14766 version_type=sunos
14767 need_lib_prefix=no
14768 need_version=no
14769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14772 dynamic_linker='NetBSD (a.out) ld.so'
14773 else
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 dynamic_linker='NetBSD ld.elf_so'
14777 fi
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14780 hardcode_into_libs=yes
14781 ;;
14782
14783newsos6)
14784 version_type=linux
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14788 ;;
14789
14790*nto* | *qnx*)
14791 version_type=qnx
14792 need_lib_prefix=no
14793 need_version=no
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 shlibpath_overrides_runpath=no
14798 hardcode_into_libs=yes
14799 dynamic_linker='ldqnx.so'
14800 ;;
14801
14802openbsd*)
14803 version_type=sunos
14804 sys_lib_dlsearch_path_spec="/usr/lib"
14805 need_lib_prefix=no
14806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14807 case $host_os in
14808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14809 *) need_version=no ;;
14810 esac
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14815 case $host_os in
14816 openbsd2.[89] | openbsd2.[89].*)
14817 shlibpath_overrides_runpath=no
14818 ;;
14819 *)
14820 shlibpath_overrides_runpath=yes
14821 ;;
14822 esac
14823 else
14824 shlibpath_overrides_runpath=yes
14825 fi
14826 ;;
14827
14828os2*)
14829 libname_spec='$name'
14830 shrext_cmds=".dll"
14831 need_lib_prefix=no
14832 library_names_spec='$libname${shared_ext} $libname.a'
14833 dynamic_linker='OS/2 ld.exe'
14834 shlibpath_var=LIBPATH
14835 ;;
14836
14837osf3* | osf4* | osf5*)
14838 version_type=osf
14839 need_lib_prefix=no
14840 need_version=no
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14846 ;;
14847
14848rdos*)
14849 dynamic_linker=no
14850 ;;
14851
14852solaris*)
14853 version_type=linux
14854 need_lib_prefix=no
14855 need_version=no
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 hardcode_into_libs=yes
14861 # ldd complains unless libraries are executable
14862 postinstall_cmds='chmod +x $lib'
14863 ;;
14864
14865sunos4*)
14866 version_type=sunos
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=yes
14871 if test "$with_gnu_ld" = yes; then
14872 need_lib_prefix=no
14873 fi
14874 need_version=yes
14875 ;;
14876
14877sysv4 | sysv4.3*)
14878 version_type=linux
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 case $host_vendor in
14883 sni)
14884 shlibpath_overrides_runpath=no
14885 need_lib_prefix=no
14886 runpath_var=LD_RUN_PATH
14887 ;;
14888 siemens)
14889 need_lib_prefix=no
14890 ;;
14891 motorola)
14892 need_lib_prefix=no
14893 need_version=no
14894 shlibpath_overrides_runpath=no
14895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14896 ;;
14897 esac
14898 ;;
14899
14900sysv4*MP*)
14901 if test -d /usr/nec ;then
14902 version_type=linux
14903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14904 soname_spec='$libname${shared_ext}.$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 fi
14907 ;;
14908
14909sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14910 version_type=freebsd-elf
14911 need_lib_prefix=no
14912 need_version=no
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 shlibpath_overrides_runpath=yes
14917 hardcode_into_libs=yes
14918 if test "$with_gnu_ld" = yes; then
14919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14920 else
14921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14922 case $host_os in
14923 sco3.2v5*)
14924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14925 ;;
14926 esac
14927 fi
14928 sys_lib_dlsearch_path_spec='/usr/lib'
14929 ;;
14930
14931tpf*)
14932 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14933 version_type=linux
14934 need_lib_prefix=no
14935 need_version=no
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=no
14939 hardcode_into_libs=yes
14940 ;;
14941
14942uts4*)
14943 version_type=linux
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 ;;
14948
14949*)
14950 dynamic_linker=no
14951 ;;
14952esac
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14954$as_echo "$dynamic_linker" >&6; }
14955test "$dynamic_linker" = no && can_build_shared=no
14956
14957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14958if test "$GCC" = yes; then
14959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14960fi
14961
14962if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14963 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14964fi
14965if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14966 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14967fi
14968
3725885a 14969
ce2cded5 14970
ce2cded5 14971
ce2cded5 14972
d7040cdb 14973
ce2cded5 14974
ce2cded5 14975
ce2cded5 14976
d7040cdb 14977
ce2cded5
L
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
ce2cded5
L
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
b879806f
AM
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15007$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15008hardcode_action_CXX=
15009if test -n "$hardcode_libdir_flag_spec_CXX" ||
15010 test -n "$runpath_var_CXX" ||
15011 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15012
15013 # We can hardcode non-existent directories.
15014 if test "$hardcode_direct_CXX" != no &&
15015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15016 # have to relink, otherwise we might link with an installed library
15017 # when we should be linking with a yet-to-be-installed one
15018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15019 test "$hardcode_minus_L_CXX" != no; then
15020 # Linking always hardcodes the temporary library directory.
15021 hardcode_action_CXX=relink
15022 else
15023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15024 hardcode_action_CXX=immediate
15025 fi
15026else
15027 # We cannot hardcode anything, or else we can only hardcode existing
15028 # directories.
15029 hardcode_action_CXX=unsupported
15030fi
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15032$as_echo "$hardcode_action_CXX" >&6; }
15033
15034if test "$hardcode_action_CXX" = relink ||
15035 test "$inherit_rpath_CXX" = yes; then
15036 # Fast installation is not supported
15037 enable_fast_install=no
15038elif test "$shlibpath_overrides_runpath" = yes ||
15039 test "$enable_shared" = no; then
15040 # Fast installation is not necessary
15041 enable_fast_install=needless
15042fi
15043
15044
15045
15046
15047
15048
15049
15050 fi # test -n "$compiler"
15051
15052 CC=$lt_save_CC
15053 LDCXX=$LD
15054 LD=$lt_save_LD
15055 GCC=$lt_save_GCC
15056 with_gnu_ld=$lt_save_with_gnu_ld
15057 lt_cv_path_LDCXX=$lt_cv_path_LD
15058 lt_cv_path_LD=$lt_save_path_LD
15059 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15060 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15061fi # test "$_lt_caught_CXX_error" != yes
15062
15063ac_ext=c
15064ac_cpp='$CPP $CPPFLAGS'
15065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067ac_compiler_gnu=$ac_cv_c_compiler_gnu
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081 ac_config_commands="$ac_config_commands libtool"
15082
15083
15084
15085
15086# Only expand once:
15087
15088
15089
15090# The tests for host and target for $enable_largefile require
15091# canonical names.
15092
15093
15094
15095# As the $enable_largefile decision depends on --enable-plugins we must set it
15096# even in directories otherwise not depending on the $plugins option.
15097
15098
15099 maybe_plugins=no
15100 for ac_header in dlfcn.h
15101do :
15102 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15103"
15104if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15105 cat >>confdefs.h <<_ACEOF
15106#define HAVE_DLFCN_H 1
15107_ACEOF
15108 maybe_plugins=yes
15109fi
15110
15111done
15112
15113 for ac_header in windows.h
15114do :
15115 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15116"
15117if test "x$ac_cv_header_windows_h" = x""yes; then :
15118 cat >>confdefs.h <<_ACEOF
15119#define HAVE_WINDOWS_H 1
15120_ACEOF
15121 maybe_plugins=yes
15122fi
15123
15124done
15125
15126
15127 # Check whether --enable-plugins was given.
15128if test "${enable_plugins+set}" = set; then :
15129 enableval=$enable_plugins; case "${enableval}" in
15130 no) plugins=no ;;
15131 *) plugins=yes
15132 if test "$maybe_plugins" != "yes" ; then
15133 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15134 fi ;;
15135 esac
15136else
15137 plugins=$maybe_plugins
15138
15139fi
15140
2974be62 15141 if test "$plugins" = "yes"; then
3cba8b6c
L
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15143$as_echo_n "checking for library containing dlsym... " >&6; }
15144if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
15145 $as_echo_n "(cached) " >&6
15146else
15147 ac_func_search_save_LIBS=$LIBS
15148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h. */
15150
15151/* Override any GCC internal prototype to avoid an error.
15152 Use char because int might match the return type of a GCC
15153 builtin and then its argument prototype would still apply. */
15154#ifdef __cplusplus
15155extern "C"
15156#endif
3cba8b6c 15157char dlsym ();
2974be62
AM
15158int
15159main ()
15160{
3cba8b6c 15161return dlsym ();
2974be62
AM
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166for ac_lib in '' dl; do
15167 if test -z "$ac_lib"; then
15168 ac_res="none required"
15169 else
15170 ac_res=-l$ac_lib
15171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15172 fi
15173 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 15174 ac_cv_search_dlsym=$ac_res
2974be62
AM
15175fi
15176rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext
3cba8b6c 15178 if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
15179 break
15180fi
15181done
3cba8b6c 15182if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
15183
15184else
3cba8b6c 15185 ac_cv_search_dlsym=no
2974be62
AM
15186fi
15187rm conftest.$ac_ext
15188LIBS=$ac_func_search_save_LIBS
15189fi
3cba8b6c
L
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15191$as_echo "$ac_cv_search_dlsym" >&6; }
15192ac_res=$ac_cv_search_dlsym
2974be62
AM
15193if test "$ac_res" != no; then :
15194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15195
15196fi
15197
15198 fi
b879806f
AM
15199
15200
15201case "${host}" in
15202 sparc-*-solaris*|i[3-7]86-*-solaris*)
15203 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15204 # are mutually exclusive; and without procfs support, the bfd/ elf module
15205 # cannot provide certain routines such as elfcore_write_prpsinfo
15206 # or elfcore_write_prstatus. So unless the user explicitly requested
15207 # large-file support through the --enable-largefile switch, disable
15208 # large-file support in favor of procfs support.
15209 test "${target}" = "${host}" -a "x$plugins" = xno \
15210 && : ${enable_largefile="no"}
15211 ;;
15212esac
15213
15214# Check whether --enable-largefile was given.
15215if test "${enable_largefile+set}" = set; then :
15216 enableval=$enable_largefile;
15217fi
15218
15219if test "$enable_largefile" != no; then
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15222$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15223if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225else
15226 ac_cv_sys_largefile_CC=no
15227 if test "$GCC" != yes; then
15228 ac_save_CC=$CC
15229 while :; do
15230 # IRIX 6.2 and later do not support large files by default,
15231 # so use the C compiler's -n32 option if that helps.
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h. */
15234#include <sys/types.h>
15235 /* Check that off_t can represent 2**63 - 1 correctly.
15236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15237 since some C++ compilers masquerading as C compilers
15238 incorrectly reject 9223372036854775807. */
15239#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15241 && LARGE_OFF_T % 2147483647 == 1)
15242 ? 1 : -1];
15243int
15244main ()
15245{
15246
15247 ;
15248 return 0;
15249}
15250_ACEOF
15251 if ac_fn_c_try_compile "$LINENO"; then :
15252 break
15253fi
15254rm -f core conftest.err conftest.$ac_objext
15255 CC="$CC -n32"
15256 if ac_fn_c_try_compile "$LINENO"; then :
15257 ac_cv_sys_largefile_CC=' -n32'; break
15258fi
15259rm -f core conftest.err conftest.$ac_objext
15260 break
15261 done
15262 CC=$ac_save_CC
15263 rm -f conftest.$ac_ext
15264 fi
15265fi
15266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15267$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15268 if test "$ac_cv_sys_largefile_CC" != no; then
15269 CC=$CC$ac_cv_sys_largefile_CC
15270 fi
15271
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15273$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15274if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276else
15277 while :; do
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h. */
15280#include <sys/types.h>
15281 /* Check that off_t can represent 2**63 - 1 correctly.
15282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15283 since some C++ compilers masquerading as C compilers
15284 incorrectly reject 9223372036854775807. */
15285#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15287 && LARGE_OFF_T % 2147483647 == 1)
15288 ? 1 : -1];
15289int
15290main ()
15291{
15292
15293 ;
15294 return 0;
15295}
15296_ACEOF
15297if ac_fn_c_try_compile "$LINENO"; then :
15298 ac_cv_sys_file_offset_bits=no; break
15299fi
15300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h. */
15303#define _FILE_OFFSET_BITS 64
15304#include <sys/types.h>
15305 /* Check that off_t can represent 2**63 - 1 correctly.
15306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15307 since some C++ compilers masquerading as C compilers
15308 incorrectly reject 9223372036854775807. */
15309#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15311 && LARGE_OFF_T % 2147483647 == 1)
15312 ? 1 : -1];
15313int
15314main ()
15315{
15316
15317 ;
15318 return 0;
15319}
15320_ACEOF
15321if ac_fn_c_try_compile "$LINENO"; then :
15322 ac_cv_sys_file_offset_bits=64; break
15323fi
15324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 ac_cv_sys_file_offset_bits=unknown
15326 break
15327done
15328fi
15329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15330$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15331case $ac_cv_sys_file_offset_bits in #(
15332 no | unknown) ;;
15333 *)
15334cat >>confdefs.h <<_ACEOF
15335#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15336_ACEOF
15337;;
15338esac
15339rm -rf conftest*
15340 if test $ac_cv_sys_file_offset_bits = unknown; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15342$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15343if test "${ac_cv_sys_large_files+set}" = set; then :
15344 $as_echo_n "(cached) " >&6
15345else
15346 while :; do
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348/* end confdefs.h. */
15349#include <sys/types.h>
15350 /* Check that off_t can represent 2**63 - 1 correctly.
15351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15352 since some C++ compilers masquerading as C compilers
15353 incorrectly reject 9223372036854775807. */
15354#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15356 && LARGE_OFF_T % 2147483647 == 1)
15357 ? 1 : -1];
15358int
15359main ()
15360{
15361
15362 ;
15363 return 0;
15364}
15365_ACEOF
15366if ac_fn_c_try_compile "$LINENO"; then :
15367 ac_cv_sys_large_files=no; break
15368fi
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371/* end confdefs.h. */
15372#define _LARGE_FILES 1
15373#include <sys/types.h>
15374 /* Check that off_t can represent 2**63 - 1 correctly.
15375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15376 since some C++ compilers masquerading as C compilers
15377 incorrectly reject 9223372036854775807. */
15378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15380 && LARGE_OFF_T % 2147483647 == 1)
15381 ? 1 : -1];
15382int
15383main ()
15384{
15385
15386 ;
15387 return 0;
15388}
15389_ACEOF
15390if ac_fn_c_try_compile "$LINENO"; then :
15391 ac_cv_sys_large_files=1; break
15392fi
15393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 ac_cv_sys_large_files=unknown
15395 break
15396done
15397fi
15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15399$as_echo "$ac_cv_sys_large_files" >&6; }
15400case $ac_cv_sys_large_files in #(
15401 no | unknown) ;;
15402 *)
15403cat >>confdefs.h <<_ACEOF
15404#define _LARGE_FILES $ac_cv_sys_large_files
15405_ACEOF
15406;;
15407esac
15408rm -rf conftest*
15409 fi
15410fi
15411
15412
15413
15414
15415# Check whether --with-lib-path was given.
15416if test "${with_lib_path+set}" = set; then :
15417 withval=$with_lib_path; LIB_PATH=$withval
15418fi
15419
15420# Check whether --enable-targets was given.
15421if test "${enable_targets+set}" = set; then :
15422 enableval=$enable_targets; case "${enableval}" in
15423 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15424 ;;
b879806f
AM
15425 no) enable_targets= ;;
15426 *) enable_targets=$enableval ;;
15427esac
15428fi
15429# Check whether --enable-64-bit-bfd was given.
15430if test "${enable_64_bit_bfd+set}" = set; then :
15431 enableval=$enable_64_bit_bfd; case "${enableval}" in
15432 yes) want64=true ;;
15433 no) want64=false ;;
15434 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15435esac
15436else
15437 want64=false
15438fi
15439
15440
15441# Check whether --with-sysroot was given.
15442if test "${with_sysroot+set}" = set; then :
15443 withval=$with_sysroot;
15444 case ${with_sysroot} in
15445 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15446 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15447 esac
15448
15449 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15450 use_sysroot=yes
15451
15452 if test "x$prefix" = xNONE; then
15453 test_prefix=/usr/local
15454 else
15455 test_prefix=$prefix
15456 fi
15457 if test "x$exec_prefix" = xNONE; then
15458 test_exec_prefix=$test_prefix
15459 else
15460 test_exec_prefix=$exec_prefix
15461 fi
15462 case ${TARGET_SYSTEM_ROOT} in
15463 "${test_prefix}"|"${test_prefix}/"*|\
15464 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15465 '${prefix}'|'${prefix}/'*|\
15466 '${exec_prefix}'|'${exec_prefix}/'*)
15467 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15468 TARGET_SYSTEM_ROOT_DEFINE="$t"
15469 ;;
15470 esac
15471
15472else
15473
15474 use_sysroot=no
15475 TARGET_SYSTEM_ROOT=
15476 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15477
15478fi
15479
15480
15481
15482
15483
15484# Check whether --enable-gold was given.
15485if test "${enable_gold+set}" = set; then :
15486 enableval=$enable_gold; case "${enableval}" in
15487 default)
15488 install_as_default=no
15489 installed_linker=ld.bfd
15490 ;;
15491 yes|no)
15492 install_as_default=yes
15493 installed_linker=ld.bfd
15494 ;;
15495 *)
15496 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15497 ;;
15498 esac
15499else
15500 install_as_default=yes
15501 installed_linker=ld.bfd
15502fi
15503
15504
15505
15506
15507# Check whether --enable-got was given.
15508if test "${enable_got+set}" = set; then :
15509 enableval=$enable_got; case "${enableval}" in
15510 target | single | negative | multigot) got_handling=$enableval ;;
15511 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15512esac
15513else
15514 got_handling=target
15515fi
15516
15517
15518case "${got_handling}" in
15519 target)
15520
15521$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15522 ;;
15523 single)
15524
15525$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15526 ;;
15527 negative)
15528
15529$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15530 ;;
15531 multigot)
15532
15533$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15534 ;;
15535 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15536esac
15537
6c3bc0f8
NC
15538# PR gas/19109
15539# Decide the default method for compressing debug sections.
15540ac_default_compressed_debug_sections=unset
15541# Provide a configure time option to override our default.
15542# Check whether --enable-compressed_debug_sections was given.
15543if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15544 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15545 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15546 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15547esac
15548fi
15549
6734f10a
SB
15550# Decide setting DT_RUNPATH instead of DT_RPATH by default
15551ac_default_new_dtags=unset
15552# Provide a configure time option to override our default.
15553# Check whether --enable-new_dtags was given.
15554if test "${enable_new_dtags+set}" = set; then :
15555 enableval=$enable_new_dtags; case "${enableval}" in
15556 yes) ac_default_new_dtags=1 ;;
15557 no) ac_default_new_dtags=0 ;;
15558esac
15559fi
15560
647e4d46
L
15561# Decide if -z relro should be enabled in ELF linker by default.
15562ac_default_ld_z_relro=unset
15563# Provide a configure time option to override our default.
15564# Check whether --enable-relro was given.
15565if test "${enable_relro+set}" = set; then :
15566 enableval=$enable_relro; case "${enableval}" in
15567 yes) ac_default_ld_z_relro=1 ;;
15568 no) ac_default_ld_z_relro=0 ;;
15569esac
15570fi
15571
f6aec96d
L
15572# Decide if -z separate-code should be enabled in ELF linker by default.
15573ac_default_ld_z_separate_code=unset
15574# Check whether --enable-separate-code was given.
15575if test "${enable_separate_code+set}" = set; then :
15576 enableval=$enable_separate_code; case "${enableval}" in
15577 yes) ac_default_ld_z_separate_code=1 ;;
15578 no) ac_default_ld_z_separate_code=0 ;;
15579esac
15580fi
15581
15582
2760f24c
RG
15583# Decide which "--hash-style" to use by default
15584# Provide a configure time option to override our default.
15585# Check whether --enable-default-hash-style was given.
15586if test "${enable_default_hash_style+set}" = set; then :
15587 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15588 sysv | gnu | both) ;;
15589 *) as_fn_error "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15590esac
15591else
15592 case "${target}" in
15593 # Enable gnu hash only on GNU targets, but not mips
15594 mips*-*-*) enable_default_hash_style=sysv ;;
15595 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15596 *) enable_default_hash_style=sysv ;;
15597esac
15598fi
15599
15600
15601case "${enable_default_hash_style}" in
15602 sysv | both) ac_default_emit_sysv_hash=1 ;;
15603 *) ac_default_emit_sysv_hash=0 ;;
15604esac
15605
15606case "${enable_default_hash_style}" in
15607 gnu | both) ac_default_emit_gnu_hash=1 ;;
15608 *) ac_default_emit_gnu_hash=0 ;;
15609esac
15610
b879806f
AM
15611
15612# Set the 'development' global.
15613. $srcdir/../bfd/development.sh
15614
c5da1932
VZ
15615# Set acp_cpp_for_build variable
15616ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15617
9780e045 15618# Default set of GCC warnings to enable.
b879806f 15619GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15620GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15621
15622# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624/* end confdefs.h. */
15625__GNUC__
15626_ACEOF
15627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15628 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
ce2cded5 15629
3cb62297 15630else
b879806f 15631 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15632fi
b879806f 15633rm -f conftest*
ce2cded5 15634
ce2cded5 15635
9780e045
NC
15636# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638/* end confdefs.h. */
15639__GNUC__
15640_ACEOF
15641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15642 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15643
15644else
15645 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15646fi
15647rm -f conftest*
15648
15649
6757cf57
TS
15650# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15651WARN_WRITE_STRINGS=""
15652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h. */
15654__GNUC__
15655_ACEOF
15656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15657 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15658
15659else
15660 WARN_WRITE_STRINGS="-Wwrite-strings"
15661fi
15662rm -f conftest*
15663
9780e045 15664
96fe4562 15665# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
15666
15667# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669/* end confdefs.h. */
15670__GNUC__
15671_ACEOF
15672if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15673 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15674
15675else
15676 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15677fi
15678rm -f conftest*
15679
15680
15681# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h. */
15684__GNUC__
15685_ACEOF
15686if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15687 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15688
15689else
15690 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15691fi
15692rm -f conftest*
15693
15694
b879806f
AM
15695# Check whether --enable-werror was given.
15696if test "${enable_werror+set}" = set; then :
15697 enableval=$enable_werror; case "${enableval}" in
15698 yes | y) ERROR_ON_WARNING="yes" ;;
15699 no | n) ERROR_ON_WARNING="no" ;;
15700 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15701 esac
15702fi
ce2cded5
L
15703
15704
b879806f
AM
15705# Disable -Wformat by default when using gcc on mingw
15706case "${host}" in
15707 *-*-mingw32*)
15708 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15709 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 15710 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
15711 fi
15712 ;;
15713 *) ;;
15714esac
ce2cded5 15715
b879806f
AM
15716# Enable -Werror by default when using gcc. Turn it off for releases.
15717if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15718 ERROR_ON_WARNING=yes
15719fi
d7040cdb 15720
b879806f
AM
15721NO_WERROR=
15722if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 15723 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 15724 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
15725 NO_WERROR="-Wno-error"
15726fi
3cb62297 15727
b879806f
AM
15728if test "${GCC}" = yes ; then
15729 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 15730 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 15731fi
67310ccd 15732
b879806f
AM
15733# Check whether --enable-build-warnings was given.
15734if test "${enable_build_warnings+set}" = set; then :
15735 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
15736 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15737 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
15738 no) if test "${GCC}" = yes ; then
15739 WARN_CFLAGS="-w"
c5da1932 15740 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
15741 fi;;
15742 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15743 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15744 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 15745 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15746 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15747 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15748 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15749 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
15750esac
15751fi
67310ccd 15752
d7040cdb 15753
b879806f
AM
15754if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15755 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15756fi
d7040cdb 15757
d7040cdb 15758
d7040cdb 15759
d7040cdb 15760
ce2cded5
L
15761
15762
6757cf57 15763
c5da1932 15764
b879806f
AM
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15766$as_echo_n "checking for LC_MESSAGES... " >&6; }
15767if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15768 $as_echo_n "(cached) " >&6
15769else
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771/* end confdefs.h. */
15772#include <locale.h>
15773int
15774main ()
15775{
15776return LC_MESSAGES
15777 ;
15778 return 0;
15779}
15780_ACEOF
15781if ac_fn_c_try_link "$LINENO"; then :
15782 am_cv_val_LC_MESSAGES=yes
15783else
15784 am_cv_val_LC_MESSAGES=no
15785fi
15786rm -f core conftest.err conftest.$ac_objext \
15787 conftest$ac_exeext conftest.$ac_ext
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15790$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15791 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 15792
b879806f 15793$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 15794
b879806f 15795 fi
ce2cded5 15796
ce2cded5 15797
b879806f 15798ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
15799
15800
b879806f 15801# PR 14072
ce2cded5 15802
ce2cded5 15803
b879806f
AM
15804if test -z "$target" ; then
15805 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15806fi
15807if test -z "$host" ; then
15808 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15809fi
d7040cdb 15810
b879806f 15811# host-specific stuff:
d7040cdb 15812
e184813f 15813ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
15814# If we haven't got the data from the intl directory,
15815# assume NLS is disabled.
15816USE_NLS=no
15817LIBINTL=
15818LIBINTL_DEP=
15819INCINTL=
15820XGETTEXT=
15821GMSGFMT=
15822POSUB=
15823
15824if test -f ../intl/config.intl; then
15825 . ../intl/config.intl
15826fi
81ecdfbb
RW
15827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15828$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15829if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831$as_echo "no" >&6; }
d7040cdb 15832else
81ecdfbb
RW
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15834$as_echo "yes" >&6; }
d7040cdb 15835
81ecdfbb 15836$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15837
15838
81ecdfbb
RW
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15840$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15841 # Look for .po and .gmo files in the source directory.
15842 CATALOGS=
15843 XLINGUAS=
15844 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15845 # If there aren't any .gmo files the shell will give us the
15846 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15847 # weeded out.
15848 case "$cat" in *\**)
15849 continue;;
15850 esac
15851 # The quadruple backslash is collapsed to a double backslash
15852 # by the backticks, then collapsed again by the double quotes,
15853 # leaving us with one backslash in the sed expression (right
15854 # before the dot that mustn't act as a wildcard).
15855 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15856 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15857 # The user is allowed to set LINGUAS to a list of languages to
15858 # install catalogs for. If it's empty that means "all of them."
15859 if test "x$LINGUAS" = x; then
15860 CATALOGS="$CATALOGS $cat"
15861 XLINGUAS="$XLINGUAS $lang"
15862 else
15863 case "$LINGUAS" in *$lang*)
15864 CATALOGS="$CATALOGS $cat"
15865 XLINGUAS="$XLINGUAS $lang"
15866 ;;
15867 esac
15868 fi
15869 done
15870 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15872$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15873
15874
15875 DATADIRNAME=share
15876
15877 INSTOBJEXT=.mo
15878
15879 GENCAT=gencat
15880
15881 CATOBJEXT=.gmo
15882
15883fi
15884
15885 MKINSTALLDIRS=
15886 if test -n "$ac_aux_dir"; then
15887 case "$ac_aux_dir" in
15888 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15889 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15890 esac
15891 fi
15892 if test -z "$MKINSTALLDIRS"; then
15893 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15894 fi
15895
15896
15897
81ecdfbb
RW
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15899$as_echo_n "checking whether NLS is requested... " >&6; }
15900 # Check whether --enable-nls was given.
15901if test "${enable_nls+set}" = set; then :
15902 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15903else
15904 USE_NLS=yes
81ecdfbb
RW
15905fi
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15908$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15909
15910
15911
15912
15913
15914
15915# Prepare PATH_SEPARATOR.
15916# The user is always right.
15917if test "${PATH_SEPARATOR+set}" != set; then
15918 echo "#! /bin/sh" >conf$$.sh
15919 echo "exit 0" >>conf$$.sh
15920 chmod +x conf$$.sh
15921 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15922 PATH_SEPARATOR=';'
15923 else
15924 PATH_SEPARATOR=:
15925 fi
15926 rm -f conf$$.sh
15927fi
15928
15929# Find out how to test for executable files. Don't use a zero-byte file,
15930# as systems may use methods other than mode bits to determine executability.
15931cat >conf$$.file <<_ASEOF
15932#! /bin/sh
15933exit 0
15934_ASEOF
15935chmod +x conf$$.file
15936if test -x conf$$.file >/dev/null 2>&1; then
15937 ac_executable_p="test -x"
15938else
15939 ac_executable_p="test -f"
15940fi
15941rm -f conf$$.file
15942
15943# Extract the first word of "msgfmt", so it can be a program name with args.
15944set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15946$as_echo_n "checking for $ac_word... " >&6; }
15947if test "${ac_cv_path_MSGFMT+set}" = set; then :
15948 $as_echo_n "(cached) " >&6
d7040cdb
SE
15949else
15950 case "$MSGFMT" in
15951 [\\/]* | ?:[\\/]*)
15952 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15953 ;;
15954 *)
15955 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15956 for ac_dir in $PATH; do
15957 IFS="$ac_save_IFS"
15958 test -z "$ac_dir" && ac_dir=.
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15961 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15962 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15963 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15964 break 2
15965 fi
15966 fi
15967 done
15968 done
15969 IFS="$ac_save_IFS"
15970 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15971 ;;
15972esac
15973fi
15974MSGFMT="$ac_cv_path_MSGFMT"
15975if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15977$as_echo "$MSGFMT" >&6; }
d7040cdb 15978else
81ecdfbb
RW
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980$as_echo "no" >&6; }
d7040cdb
SE
15981fi
15982
15983 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15984set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15986$as_echo_n "checking for $ac_word... " >&6; }
15987if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15988 $as_echo_n "(cached) " >&6
d7040cdb
SE
15989else
15990 case $GMSGFMT in
15991 [\\/]* | ?:[\\/]*)
15992 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15993 ;;
15994 *)
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996for as_dir in $PATH
15997do
15998 IFS=$as_save_IFS
15999 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16002 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16004 break 2
16005 fi
16006done
81ecdfbb
RW
16007 done
16008IFS=$as_save_IFS
d7040cdb
SE
16009
16010 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16011 ;;
16012esac
16013fi
16014GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16015if test -n "$GMSGFMT"; then
81ecdfbb
RW
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16017$as_echo "$GMSGFMT" >&6; }
d7040cdb 16018else
81ecdfbb
RW
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020$as_echo "no" >&6; }
20e95c23 16021fi
42ecbf5e 16022
20e95c23 16023
252b5132 16024
81ecdfbb 16025
d7040cdb
SE
16026# Prepare PATH_SEPARATOR.
16027# The user is always right.
16028if test "${PATH_SEPARATOR+set}" != set; then
16029 echo "#! /bin/sh" >conf$$.sh
16030 echo "exit 0" >>conf$$.sh
16031 chmod +x conf$$.sh
16032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16033 PATH_SEPARATOR=';'
16034 else
16035 PATH_SEPARATOR=:
16036 fi
16037 rm -f conf$$.sh
20e95c23 16038fi
252b5132 16039
d7040cdb
SE
16040# Find out how to test for executable files. Don't use a zero-byte file,
16041# as systems may use methods other than mode bits to determine executability.
16042cat >conf$$.file <<_ASEOF
16043#! /bin/sh
16044exit 0
16045_ASEOF
16046chmod +x conf$$.file
16047if test -x conf$$.file >/dev/null 2>&1; then
16048 ac_executable_p="test -x"
20e95c23 16049else
d7040cdb
SE
16050 ac_executable_p="test -f"
16051fi
16052rm -f conf$$.file
20e95c23 16053
d7040cdb
SE
16054# Extract the first word of "xgettext", so it can be a program name with args.
16055set dummy xgettext; ac_word=$2
81ecdfbb
RW
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16057$as_echo_n "checking for $ac_word... " >&6; }
16058if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16059 $as_echo_n "(cached) " >&6
252b5132 16060else
d7040cdb
SE
16061 case "$XGETTEXT" in
16062 [\\/]* | ?:[\\/]*)
16063 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16064 ;;
16065 *)
16066 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16067 for ac_dir in $PATH; do
16068 IFS="$ac_save_IFS"
16069 test -z "$ac_dir" && ac_dir=.
16070 for ac_exec_ext in '' $ac_executable_extensions; do
16071 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16072 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16073 (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
16074 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16075 break 2
16076 fi
16077 fi
16078 done
16079 done
16080 IFS="$ac_save_IFS"
16081 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16082 ;;
16083esac
252b5132 16084fi
d7040cdb
SE
16085XGETTEXT="$ac_cv_path_XGETTEXT"
16086if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16088$as_echo "$XGETTEXT" >&6; }
d5fbea21 16089else
81ecdfbb
RW
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091$as_echo "no" >&6; }
d5fbea21
DJ
16092fi
16093
d7040cdb 16094 rm -f messages.po
d5fbea21 16095
20e95c23 16096
d7040cdb
SE
16097# Prepare PATH_SEPARATOR.
16098# The user is always right.
16099if test "${PATH_SEPARATOR+set}" != set; then
16100 echo "#! /bin/sh" >conf$$.sh
16101 echo "exit 0" >>conf$$.sh
16102 chmod +x conf$$.sh
16103 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16104 PATH_SEPARATOR=';'
16105 else
16106 PATH_SEPARATOR=:
16107 fi
16108 rm -f conf$$.sh
16109fi
20e95c23 16110
d7040cdb
SE
16111# Find out how to test for executable files. Don't use a zero-byte file,
16112# as systems may use methods other than mode bits to determine executability.
16113cat >conf$$.file <<_ASEOF
16114#! /bin/sh
16115exit 0
16116_ASEOF
16117chmod +x conf$$.file
16118if test -x conf$$.file >/dev/null 2>&1; then
16119 ac_executable_p="test -x"
16120else
16121 ac_executable_p="test -f"
16122fi
16123rm -f conf$$.file
20e95c23 16124
d7040cdb
SE
16125# Extract the first word of "msgmerge", so it can be a program name with args.
16126set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128$as_echo_n "checking for $ac_word... " >&6; }
16129if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
d7040cdb
SE
16131else
16132 case "$MSGMERGE" in
16133 [\\/]* | ?:[\\/]*)
16134 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16135 ;;
16136 *)
16137 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16138 for ac_dir in $PATH; do
16139 IFS="$ac_save_IFS"
16140 test -z "$ac_dir" && ac_dir=.
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16143 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16144 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16145 break 2
16146 fi
16147 fi
16148 done
16149 done
16150 IFS="$ac_save_IFS"
16151 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16152 ;;
16153esac
16154fi
16155MSGMERGE="$ac_cv_path_MSGMERGE"
16156if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16158$as_echo "$MSGMERGE" >&6; }
d7040cdb 16159else
81ecdfbb
RW
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161$as_echo "no" >&6; }
d7040cdb 16162fi
20e95c23
DJ
16163
16164
d7040cdb
SE
16165 if test "$GMSGFMT" != ":"; then
16166 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16167 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16168 : ;
16169 else
16170 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16172$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16173 GMSGFMT=":"
16174 fi
16175 fi
20e95c23 16176
d7040cdb
SE
16177 if test "$XGETTEXT" != ":"; then
16178 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16179 (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
16180 : ;
16181 else
81ecdfbb
RW
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16183$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16184 XGETTEXT=":"
16185 fi
16186 rm -f messages.po
20e95c23 16187 fi
42ecbf5e 16188
81ecdfbb 16189 ac_config_commands="$ac_config_commands default-1"
252b5132 16190
42ecbf5e 16191
252b5132 16192
42ecbf5e
DJ
16193
16194
d7040cdb 16195for ac_prog in 'bison -y' byacc
20e95c23 16196do
d7040cdb
SE
16197 # Extract the first word of "$ac_prog", so it can be a program name with args.
16198set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16200$as_echo_n "checking for $ac_word... " >&6; }
16201if test "${ac_cv_prog_YACC+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
20e95c23 16203else
d7040cdb
SE
16204 if test -n "$YACC"; then
16205 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16206else
d7040cdb
SE
16207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208for as_dir in $PATH
16209do
16210 IFS=$as_save_IFS
16211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16212 for ac_exec_ext in '' $ac_executable_extensions; do
16213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16214 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16216 break 2
16217 fi
16218done
81ecdfbb
RW
16219 done
16220IFS=$as_save_IFS
42ecbf5e 16221
42ecbf5e 16222fi
e5a52504 16223fi
d7040cdb
SE
16224YACC=$ac_cv_prog_YACC
16225if test -n "$YACC"; then
81ecdfbb
RW
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16227$as_echo "$YACC" >&6; }
42ecbf5e 16228else
81ecdfbb
RW
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230$as_echo "no" >&6; }
42ecbf5e 16231fi
252b5132 16232
81ecdfbb 16233
d7040cdb 16234 test -n "$YACC" && break
42ecbf5e 16235done
d7040cdb 16236test -n "$YACC" || YACC="yacc"
d15b04bd 16237
d7040cdb
SE
16238for ac_prog in flex lex
16239do
16240 # Extract the first word of "$ac_prog", so it can be a program name with args.
16241set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16243$as_echo_n "checking for $ac_word... " >&6; }
16244if test "${ac_cv_prog_LEX+set}" = set; then :
16245 $as_echo_n "(cached) " >&6
d15b04bd 16246else
d7040cdb
SE
16247 if test -n "$LEX"; then
16248 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16249else
16250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251for as_dir in $PATH
16252do
16253 IFS=$as_save_IFS
16254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16255 for ac_exec_ext in '' $ac_executable_extensions; do
16256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16257 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16259 break 2
16260 fi
16261done
81ecdfbb
RW
16262 done
16263IFS=$as_save_IFS
d7040cdb
SE
16264
16265fi
16266fi
16267LEX=$ac_cv_prog_LEX
16268if test -n "$LEX"; then
81ecdfbb
RW
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16270$as_echo "$LEX" >&6; }
d7040cdb 16271else
81ecdfbb
RW
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16273$as_echo "no" >&6; }
d15b04bd 16274fi
e5a52504 16275
81ecdfbb 16276
d7040cdb
SE
16277 test -n "$LEX" && break
16278done
16279test -n "$LEX" || LEX=":"
42ecbf5e 16280
3d961d0d
AM
16281case "$LEX" in
16282 :|*"missing "*) ;;
16283 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16284%%
16285a { ECHO; }
16286b { REJECT; }
16287c { yymore (); }
16288d { yyless (1); }
16289e { yyless (input () != 0); }
16290f { unput (yytext[0]); }
16291. { BEGIN INITIAL; }
16292%%
16293#ifdef YYTEXT_POINTER
16294extern char *yytext;
d7040cdb 16295#endif
42ecbf5e 16296int
81ecdfbb 16297main (void)
42ecbf5e 16298{
81ecdfbb 16299 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16300}
16301_ACEOF
81ecdfbb
RW
16302{ { ac_try="$LEX conftest.l"
16303case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
16307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16308$as_echo "$ac_try_echo"; } >&5
16309 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16310 ac_status=$?
81ecdfbb
RW
16311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16312 test $ac_status = 0; }
16313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16314$as_echo_n "checking lex output file root... " >&6; }
16315if test "${ac_cv_prog_lex_root+set}" = set; then :
16316 $as_echo_n "(cached) " >&6
42ecbf5e 16317else
42ecbf5e 16318
81ecdfbb
RW
16319if test -f lex.yy.c; then
16320 ac_cv_prog_lex_root=lex.yy
16321elif test -f lexyy.c; then
16322 ac_cv_prog_lex_root=lexyy
16323else
16324 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16325fi
42ecbf5e 16326fi
81ecdfbb
RW
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16328$as_echo "$ac_cv_prog_lex_root" >&6; }
16329LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16330
81ecdfbb
RW
16331if test -z "${LEXLIB+set}"; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16333$as_echo_n "checking lex library... " >&6; }
16334if test "${ac_cv_lib_lex+set}" = set; then :
16335 $as_echo_n "(cached) " >&6
252b5132 16336else
20e95c23 16337
81ecdfbb
RW
16338 ac_save_LIBS=$LIBS
16339 ac_cv_lib_lex='none needed'
16340 for ac_lib in '' -lfl -ll; do
16341 LIBS="$ac_lib $ac_save_LIBS"
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h. */
16344`cat $LEX_OUTPUT_ROOT.c`
16345_ACEOF
16346if ac_fn_c_try_link "$LINENO"; then :
16347 ac_cv_lib_lex=$ac_lib
20e95c23 16348fi
81ecdfbb
RW
16349rm -f core conftest.err conftest.$ac_objext \
16350 conftest$ac_exeext conftest.$ac_ext
16351 test "$ac_cv_lib_lex" != 'none needed' && break
16352 done
16353 LIBS=$ac_save_LIBS
20e95c23
DJ
16354
16355fi
81ecdfbb
RW
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16357$as_echo "$ac_cv_lib_lex" >&6; }
16358 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16359fi
20e95c23 16360
20e95c23 16361
81ecdfbb
RW
16362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16363$as_echo_n "checking whether yytext is a pointer... " >&6; }
16364if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16365 $as_echo_n "(cached) " >&6
d7040cdb
SE
16366else
16367 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16368# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16369# not all implementations provide the %pointer and %array declarations.
16370ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16371ac_save_LIBS=$LIBS
81ecdfbb
RW
16372LIBS="$LEXLIB $ac_save_LIBS"
16373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h. */
16375#define YYTEXT_POINTER 1
d7040cdb 16376`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16377_ACEOF
81ecdfbb 16378if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16379 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16380fi
81ecdfbb
RW
16381rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16383LIBS=$ac_save_LIBS
d7040cdb
SE
16384
16385fi
81ecdfbb
RW
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16387$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16388if test $ac_cv_prog_lex_yytext_pointer = yes; then
16389
81ecdfbb 16390$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16391
16392fi
81ecdfbb 16393rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16394 ;;
16395esac
d7040cdb
SE
16396if test "$LEX" = :; then
16397 LEX=${am_missing_run}flex
16398fi
16399
81ecdfbb
RW
16400
16401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16402$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16403 # Check whether --enable-maintainer-mode was given.
16404if test "${enable_maintainer_mode+set}" = set; then :
16405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16406else
d7040cdb 16407 USE_MAINTAINER_MODE=no
81ecdfbb 16408fi
d7040cdb 16409
81ecdfbb
RW
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16411$as_echo "$USE_MAINTAINER_MODE" >&6; }
16412 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16413 MAINTAINER_MODE_TRUE=
16414 MAINTAINER_MODE_FALSE='#'
16415else
16416 MAINTAINER_MODE_TRUE='#'
16417 MAINTAINER_MODE_FALSE=
252b5132 16418fi
252b5132 16419
d7040cdb
SE
16420 MAINT=$MAINTAINER_MODE_TRUE
16421
16422
81ecdfbb 16423 if false; then
d7040cdb
SE
16424 GENINSRC_NEVER_TRUE=
16425 GENINSRC_NEVER_FALSE='#'
16426else
16427 GENINSRC_NEVER_TRUE='#'
16428 GENINSRC_NEVER_FALSE=
252b5132
RH
16429fi
16430
81ecdfbb
RW
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16432$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16433if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16434 $as_echo_n "(cached) " >&6
eccbf555
AM
16435else
16436 echo abfoo >t1
16437 echo cdfoo >t2
da17fe9d 16438 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16439 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16440 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16441 :
16442 else
16443 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16444 fi
16445 fi
16446 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16447 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16448 :
16449 else
16450 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16451 fi
16452 fi
16453 rm t1 t2
16454
16455fi
81ecdfbb
RW
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16457$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16458do_compare="$gcc_cv_prog_cmp_skip"
16459
16460
d7040cdb
SE
16461
16462. ${srcdir}/configure.host
16463
16464
16465
16466
58797674 16467for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16468do :
16469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16470ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16471eval as_val=\$$as_ac_Header
16472 if test "x$as_val" = x""yes; then :
42ecbf5e 16473 cat >>confdefs.h <<_ACEOF
81ecdfbb 16474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16475_ACEOF
16476
16477fi
16478
252b5132
RH
16479done
16480
5d3236ee
DK
16481for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16482do :
16483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16484ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16485eval as_val=\$$as_ac_Header
16486 if test "x$as_val" = x""yes; then :
16487 cat >>confdefs.h <<_ACEOF
16488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16489_ACEOF
16490
16491fi
16492
16493done
16494
208a4923
NC
16495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16496$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16497if test "${gcc_cv_header_string+set}" = set; then :
16498 $as_echo_n "(cached) " >&6
16499else
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h. */
16502#include <string.h>
16503#include <strings.h>
16504int
16505main ()
16506{
16507
16508 ;
16509 return 0;
16510}
16511_ACEOF
16512if ac_fn_c_try_compile "$LINENO"; then :
16513 gcc_cv_header_string=yes
16514else
16515 gcc_cv_header_string=no
16516fi
16517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518fi
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16520$as_echo "$gcc_cv_header_string" >&6; }
16521if test $gcc_cv_header_string = yes; then
16522
16523$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16524
16525fi
16526
44350750 16527for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16528do :
16529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16530ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16531eval as_val=\$$as_ac_var
16532 if test "x$as_val" = x""yes; then :
42ecbf5e 16533 cat >>confdefs.h <<_ACEOF
81ecdfbb 16534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16535_ACEOF
252b5132 16536
252b5132
RH
16537fi
16538done
16539
88ba72a2 16540for ac_func in open lseek close
5d3236ee
DK
16541do :
16542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16543ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16544eval as_val=\$$as_ac_var
16545 if test "x$as_val" = x""yes; then :
16546 cat >>confdefs.h <<_ACEOF
16547#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16548_ACEOF
16549
16550fi
16551done
16552
252b5132 16553ac_header_dirent=no
42ecbf5e 16554for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16555 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16557$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16559 $as_echo_n "(cached) " >&6
16560else
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16562/* end confdefs.h. */
252b5132
RH
16563#include <sys/types.h>
16564#include <$ac_hdr>
42ecbf5e
DJ
16565
16566int
16567main ()
16568{
16569if ((DIR *) 0)
16570return 0;
16571 ;
16572 return 0;
16573}
16574_ACEOF
81ecdfbb 16575if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16576 eval "$as_ac_Header=yes"
16577else
81ecdfbb 16578 eval "$as_ac_Header=no"
42ecbf5e 16579fi
81ecdfbb 16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16581fi
81ecdfbb
RW
16582eval ac_res=\$$as_ac_Header
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16584$as_echo "$ac_res" >&6; }
16585eval as_val=\$$as_ac_Header
16586 if test "x$as_val" = x""yes; then :
42ecbf5e 16587 cat >>confdefs.h <<_ACEOF
81ecdfbb 16588#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16589_ACEOF
16590
16591ac_header_dirent=$ac_hdr; break
d15b04bd 16592fi
42ecbf5e 16593
d15b04bd
L
16594done
16595# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16596if test $ac_header_dirent = dirent.h; then
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
42ecbf5e
DJ
16601else
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 '' dir; 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 :
e5a52504 16638
42ecbf5e 16639else
81ecdfbb 16640 ac_cv_search_opendir=no
252b5132 16641fi
81ecdfbb 16642rm conftest.$ac_ext
42ecbf5e
DJ
16643LIBS=$ac_func_search_save_LIBS
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
16653else
81ecdfbb
RW
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16655$as_echo_n "checking for library containing opendir... " >&6; }
16656if test "${ac_cv_search_opendir+set}" = set; then :
16657 $as_echo_n "(cached) " >&6
252b5132 16658else
42ecbf5e 16659 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16661/* end confdefs.h. */
16662
81ecdfbb
RW
16663/* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16666#ifdef __cplusplus
16667extern "C"
16668#endif
42ecbf5e
DJ
16669char opendir ();
16670int
16671main ()
16672{
81ecdfbb 16673return opendir ();
42ecbf5e
DJ
16674 ;
16675 return 0;
16676}
16677_ACEOF
81ecdfbb
RW
16678for ac_lib in '' x; do
16679 if test -z "$ac_lib"; then
16680 ac_res="none required"
16681 else
16682 ac_res=-l$ac_lib
42ecbf5e 16683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16684 fi
16685 if ac_fn_c_try_link "$LINENO"; then :
16686 ac_cv_search_opendir=$ac_res
16687fi
16688rm -f core conftest.err conftest.$ac_objext \
16689 conftest$ac_exeext
16690 if test "${ac_cv_search_opendir+set}" = set; then :
16691 break
16692fi
16693done
16694if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16695
42ecbf5e 16696else
81ecdfbb 16697 ac_cv_search_opendir=no
252b5132 16698fi
81ecdfbb 16699rm conftest.$ac_ext
42ecbf5e 16700LIBS=$ac_func_search_save_LIBS
252b5132 16701fi
81ecdfbb
RW
16702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16703$as_echo "$ac_cv_search_opendir" >&6; }
16704ac_res=$ac_cv_search_opendir
16705if test "$ac_res" != no; then :
16706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16707
d15b04bd 16708fi
252b5132
RH
16709
16710fi
16711
16712
2aec968d
L
16713for ac_header in stdlib.h unistd.h
16714do :
16715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16717eval as_val=\$$as_ac_Header
16718 if test "x$as_val" = x""yes; then :
16719 cat >>confdefs.h <<_ACEOF
16720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16721_ACEOF
16722
16723fi
16724
16725done
16726
16727for ac_func in getpagesize
16728do :
16729 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16730if test "x$ac_cv_func_getpagesize" = x""yes; then :
16731 cat >>confdefs.h <<_ACEOF
16732#define HAVE_GETPAGESIZE 1
16733_ACEOF
16734
16735fi
16736done
16737
16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16739$as_echo_n "checking for working mmap... " >&6; }
16740if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16742else
16743 if test "$cross_compiling" = yes; then :
16744 ac_cv_func_mmap_fixed_mapped=no
16745else
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h. */
16748$ac_includes_default
16749/* malloc might have been renamed as rpl_malloc. */
16750#undef malloc
16751
16752/* Thanks to Mike Haertel and Jim Avera for this test.
16753 Here is a matrix of mmap possibilities:
16754 mmap private not fixed
16755 mmap private fixed at somewhere currently unmapped
16756 mmap private fixed at somewhere already mapped
16757 mmap shared not fixed
16758 mmap shared fixed at somewhere currently unmapped
16759 mmap shared fixed at somewhere already mapped
16760 For private mappings, we should verify that changes cannot be read()
16761 back from the file, nor mmap's back from the file at a different
16762 address. (There have been systems where private was not correctly
16763 implemented like the infamous i386 svr4.0, and systems where the
16764 VM page cache was not coherent with the file system buffer cache
16765 like early versions of FreeBSD and possibly contemporary NetBSD.)
16766 For shared mappings, we should conversely verify that changes get
16767 propagated back to all the places they're supposed to be.
16768
16769 Grep wants private fixed already mapped.
16770 The main things grep needs to know about mmap are:
16771 * does it exist and is it safe to write into the mmap'd area
16772 * how to use it (BSD variants) */
16773
16774#include <fcntl.h>
16775#include <sys/mman.h>
16776
16777#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16778char *malloc ();
16779#endif
16780
16781/* This mess was copied from the GNU getpagesize.h. */
16782#ifndef HAVE_GETPAGESIZE
16783/* Assume that all systems that can run configure have sys/param.h. */
16784# ifndef HAVE_SYS_PARAM_H
16785# define HAVE_SYS_PARAM_H 1
16786# endif
16787
16788# ifdef _SC_PAGESIZE
16789# define getpagesize() sysconf(_SC_PAGESIZE)
16790# else /* no _SC_PAGESIZE */
16791# ifdef HAVE_SYS_PARAM_H
16792# include <sys/param.h>
16793# ifdef EXEC_PAGESIZE
16794# define getpagesize() EXEC_PAGESIZE
16795# else /* no EXEC_PAGESIZE */
16796# ifdef NBPG
16797# define getpagesize() NBPG * CLSIZE
16798# ifndef CLSIZE
16799# define CLSIZE 1
16800# endif /* no CLSIZE */
16801# else /* no NBPG */
16802# ifdef NBPC
16803# define getpagesize() NBPC
16804# else /* no NBPC */
16805# ifdef PAGESIZE
16806# define getpagesize() PAGESIZE
16807# endif /* PAGESIZE */
16808# endif /* no NBPC */
16809# endif /* no NBPG */
16810# endif /* no EXEC_PAGESIZE */
16811# else /* no HAVE_SYS_PARAM_H */
16812# define getpagesize() 8192 /* punt totally */
16813# endif /* no HAVE_SYS_PARAM_H */
16814# endif /* no _SC_PAGESIZE */
16815
16816#endif /* no HAVE_GETPAGESIZE */
16817
16818int
16819main ()
16820{
16821 char *data, *data2, *data3;
16822 int i, pagesize;
16823 int fd;
16824
16825 pagesize = getpagesize ();
16826
16827 /* First, make a file with some known garbage in it. */
16828 data = (char *) malloc (pagesize);
16829 if (!data)
16830 return 1;
16831 for (i = 0; i < pagesize; ++i)
16832 *(data + i) = rand ();
16833 umask (0);
16834 fd = creat ("conftest.mmap", 0600);
16835 if (fd < 0)
16836 return 1;
16837 if (write (fd, data, pagesize) != pagesize)
16838 return 1;
16839 close (fd);
16840
16841 /* Next, try to mmap the file at a fixed address which already has
16842 something else allocated at it. If we can, also make sure that
16843 we see the same garbage. */
16844 fd = open ("conftest.mmap", O_RDWR);
16845 if (fd < 0)
16846 return 1;
16847 data2 = (char *) malloc (2 * pagesize);
16848 if (!data2)
16849 return 1;
16850 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16851 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16852 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16853 return 1;
16854 for (i = 0; i < pagesize; ++i)
16855 if (*(data + i) != *(data2 + i))
16856 return 1;
16857
16858 /* Finally, make sure that changes to the mapped area do not
16859 percolate back to the file as seen by read(). (This is a bug on
16860 some variants of i386 svr4.0.) */
16861 for (i = 0; i < pagesize; ++i)
16862 *(data2 + i) = *(data2 + i) + 1;
16863 data3 = (char *) malloc (pagesize);
16864 if (!data3)
16865 return 1;
16866 if (read (fd, data3, pagesize) != pagesize)
16867 return 1;
16868 for (i = 0; i < pagesize; ++i)
16869 if (*(data + i) != *(data3 + i))
16870 return 1;
16871 close (fd);
16872 return 0;
16873}
16874_ACEOF
16875if ac_fn_c_try_run "$LINENO"; then :
16876 ac_cv_func_mmap_fixed_mapped=yes
16877else
16878 ac_cv_func_mmap_fixed_mapped=no
16879fi
16880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16881 conftest.$ac_objext conftest.beam conftest.$ac_ext
16882fi
16883
16884fi
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16886$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16887if test $ac_cv_func_mmap_fixed_mapped = yes; then
16888
16889$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16890
16891fi
16892rm -f conftest.mmap
16893
16894
5d3236ee
DK
16895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16896$as_echo_n "checking for library containing dlopen... " >&6; }
16897if test "${ac_cv_search_dlopen+set}" = set; then :
16898 $as_echo_n "(cached) " >&6
16899else
16900 ac_func_search_save_LIBS=$LIBS
16901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h. */
16903
16904/* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16907#ifdef __cplusplus
16908extern "C"
16909#endif
16910char dlopen ();
16911int
16912main ()
16913{
16914return dlopen ();
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919for ac_lib in '' dl; do
16920 if test -z "$ac_lib"; then
16921 ac_res="none required"
16922 else
16923 ac_res=-l$ac_lib
16924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16925 fi
16926 if ac_fn_c_try_link "$LINENO"; then :
16927 ac_cv_search_dlopen=$ac_res
16928fi
16929rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext
16931 if test "${ac_cv_search_dlopen+set}" = set; then :
16932 break
16933fi
16934done
16935if test "${ac_cv_search_dlopen+set}" = set; then :
16936
16937else
16938 ac_cv_search_dlopen=no
16939fi
16940rm conftest.$ac_ext
16941LIBS=$ac_func_search_save_LIBS
16942fi
16943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16944$as_echo "$ac_cv_search_dlopen" >&6; }
16945ac_res=$ac_cv_search_dlopen
16946if test "$ac_res" != no; then :
16947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16948
3917d5d5
DK
16949fi
16950
b879806f 16951 if test x$plugins = xyes; then
5d3236ee
DK
16952 ENABLE_PLUGINS_TRUE=
16953 ENABLE_PLUGINS_FALSE='#'
16954else
16955 ENABLE_PLUGINS_TRUE='#'
16956 ENABLE_PLUGINS_FALSE=
16957fi
16958
16959
02ecc8e9
L
16960# Check whether --enable-initfini-array was given.
16961if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
16962 enableval=$enable_initfini_array; case "${enableval}" in
16963 yes|no) ;;
16964 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16965 esac
02ecc8e9 16966else
26e3a0c9 16967 enable_initfini_array=yes
02ecc8e9
L
16968fi
16969
16970
16971if test $enable_initfini_array = yes; then
16972
16973$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16974
16975fi
16976
81ecdfbb
RW
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16978$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16979if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16980 $as_echo_n "(cached) " >&6
34875e64 16981else
81ecdfbb 16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16983/* end confdefs.h. */
34875e64 16984#include <unistd.h>
42ecbf5e
DJ
16985int
16986main ()
16987{
34875e64 16988extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16989 ;
16990 return 0;
16991}
16992_ACEOF
81ecdfbb 16993if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16994 ld_cv_decl_getopt_unistd_h=yes
16995else
81ecdfbb 16996 ld_cv_decl_getopt_unistd_h=no
34875e64 16997fi
81ecdfbb 16998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16999fi
17000
81ecdfbb
RW
17001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17002$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 17003if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 17004
81ecdfbb 17005$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
17006
17007fi
42ecbf5e 17008
252b5132
RH
17009
17010case "${host}" in
a8100d5b 17011*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 17012
81ecdfbb 17013$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
17014 ;;
17015esac
17016
81ecdfbb
RW
17017ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
17018if test "x$ac_cv_have_decl_strstr" = x""yes; then :
17019 ac_have_decl=1
252b5132 17020else
81ecdfbb
RW
17021 ac_have_decl=0
17022fi
502bdb00 17023
81ecdfbb
RW
17024cat >>confdefs.h <<_ACEOF
17025#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 17026_ACEOF
81ecdfbb
RW
17027ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
17028if test "x$ac_cv_have_decl_free" = x""yes; then :
17029 ac_have_decl=1
252b5132 17030else
81ecdfbb 17031 ac_have_decl=0
252b5132
RH
17032fi
17033
502bdb00 17034cat >>confdefs.h <<_ACEOF
81ecdfbb 17035#define HAVE_DECL_FREE $ac_have_decl
502bdb00 17036_ACEOF
81ecdfbb
RW
17037ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
17038if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
17039 ac_have_decl=1
17040else
17041 ac_have_decl=0
17042fi
42ecbf5e 17043
81ecdfbb
RW
17044cat >>confdefs.h <<_ACEOF
17045#define HAVE_DECL_SBRK $ac_have_decl
17046_ACEOF
17047ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17048if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17049 ac_have_decl=1
17050else
17051 ac_have_decl=0
17052fi
502bdb00 17053
81ecdfbb
RW
17054cat >>confdefs.h <<_ACEOF
17055#define HAVE_DECL_GETENV $ac_have_decl
17056_ACEOF
17057ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
17058if test "x$ac_cv_have_decl_environ" = x""yes; then :
17059 ac_have_decl=1
502bdb00 17060else
81ecdfbb
RW
17061 ac_have_decl=0
17062fi
17063
17064cat >>confdefs.h <<_ACEOF
17065#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 17066_ACEOF
252b5132 17067
252b5132 17068
597e2591
ILT
17069# When converting linker scripts into strings for use in emulation
17070# files, use astring.sed if the compiler supports ANSI string
17071# concatenation, or ostring.sed otherwise. This is to support the
17072# broken Microsoft MSVC compiler, which limits the length of string
17073# constants, while still supporting pre-ANSI compilers which do not
17074# support string concatenation.
81ecdfbb
RW
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17076$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17077if test "${ld_cv_string_concatenation+set}" = set; then :
17078 $as_echo_n "(cached) " >&6
42ecbf5e 17079else
81ecdfbb 17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17081/* end confdefs.h. */
81ecdfbb 17082
314e9a4e
L
17083int
17084main ()
17085{
81ecdfbb 17086char *a = "a" "a";
314e9a4e
L
17087 ;
17088 return 0;
17089}
17090_ACEOF
81ecdfbb
RW
17091if ac_fn_c_try_compile "$LINENO"; then :
17092 ld_cv_string_concatenation=yes
314e9a4e 17093else
81ecdfbb 17094 ld_cv_string_concatenation=no
314e9a4e 17095fi
81ecdfbb 17096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17097fi
81ecdfbb
RW
17098
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17100$as_echo "$ld_cv_string_concatenation" >&6; }
17101if test "$ld_cv_string_concatenation" = "yes"; then
17102 STRINGIFY=astring.sed
17103else
17104 STRINGIFY=ostring.sed
314e9a4e 17105fi
81ecdfbb
RW
17106
17107
17108# target-specific stuff:
17109
17110all_targets=
17111EMUL=
17112all_emuls=
17113all_emul_extras=
17114all_libpath=
17115
17116rm -f tdirs
17117
bf9ef603 17118# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17119# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17120if test x${want64} = xfalse; then
17121 # The cast to long int works around a bug in the HP C Compiler
17122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17124# This bug is HP SR number 8606223364.
17125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17126$as_echo_n "checking size of void *... " >&6; }
17127if test "${ac_cv_sizeof_void_p+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17129else
17130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17131
17132else
17133 if test "$ac_cv_type_void_p" = yes; then
17134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17136{ as_fn_set_status 77
17137as_fn_error "cannot compute sizeof (void *)
17138See \`config.log' for more details." "$LINENO" 5; }; }
17139 else
17140 ac_cv_sizeof_void_p=0
17141 fi
17142fi
17143
17144fi
17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17146$as_echo "$ac_cv_sizeof_void_p" >&6; }
17147
17148
17149
17150cat >>confdefs.h <<_ACEOF
17151#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17152_ACEOF
17153
17154
17155 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17156 want64=true
17157 fi
17158fi
17159
c58212ea
L
17160elf_list_options=FALSE
17161elf_shlib_list_options=FALSE
17162elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17163for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17164do
17165 if test "$targ_alias" = "all"; then
17166 all_targets=true
82d8e420
L
17167 elf_list_options=TRUE
17168 elf_shlib_list_options=TRUE
17169 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17170 else
17171 # Canonicalize the secondary target names.
17172 result=`$ac_config_sub $targ_alias 2>/dev/null`
17173 if test -n "$result"; then
17174 targ=$result
17175 else
17176 targ=$targ_alias
17177 fi
17178
17179 . ${srcdir}/configure.tgt
17180
17181 if test "$targ" = "$target"; then
17182 EMUL=$targ_emul
17183 fi
17184
17185 if test x${want64} = xfalse; then
17186 . ${srcdir}/../bfd/config.bfd
17187 fi
17188
17189 if test x${want64} = xtrue; then
17190 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17191 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17192 fi
17193
17194 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17195 case " $all_emuls " in
8c3fff59
AM
17196 *" e${i}.o "*) ;;
17197 *)
17198 all_emuls="$all_emuls e${i}.o"
17199 eval result=\$tdir_$i
17200 test -z "$result" && result=$targ_alias
17201 echo tdir_$i=$result >> tdirs
c58212ea
L
17202 case "${i}" in
17203 *elf*)
17204 elf_list_options=TRUE
68880f31
CLT
17205 ;;
17206 *)
17207 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17208 elf_list_options=TRUE
17209 fi
17210 ;;
17211 esac
17212 if test "$elf_list_options" = "TRUE"; then
c58212ea
L
17213 . ${srcdir}/emulparams/${i}.sh
17214 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17215 elf_shlib_list_options=TRUE
17216 fi
17217 if test x${PLT_UNWIND} = xyes; then
17218 elf_plt_unwind_list_options=TRUE
17219 fi
68880f31 17220 fi
c58212ea 17221 ;;
81ecdfbb
RW
17222 esac
17223 done
17224
17225 for i in $targ_emul $targ_extra_libpath; do
17226 case " $all_libpath " in
17227 *" ${i} "*) ;;
17228 *)
17229 if test -z "$all_libpath"; then
17230 all_libpath=${i}
17231 else
17232 all_libpath="$all_libpath ${i}"
17233 fi
17234 ;;
17235 esac
17236 done
17237
17238 for i in $targ_extra_ofiles; do
17239 case " $all_emul_extras " in
17240 *" ${i} "*) ;;
17241 *)
17242 all_emul_extras="$all_emul_extras ${i}"
17243 ;;
17244 esac
17245 done
5063daf7 17246
81ecdfbb
RW
17247 fi
17248done
17249
621ff761 17250if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17251
17252$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17253
17254fi
17255
6734f10a
SB
17256if test "${ac_default_new_dtags}" = unset; then
17257 ac_default_new_dtags=0
17258fi
17259
17260cat >>confdefs.h <<_ACEOF
17261#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17262_ACEOF
17263
17264
647e4d46
L
17265if test "${ac_default_ld_z_relro}" = unset; then
17266 ac_default_ld_z_relro=0
17267fi
17268
17269cat >>confdefs.h <<_ACEOF
17270#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17271_ACEOF
17272
17273
f6aec96d
L
17274if test "${ac_default_ld_z_separate_code}" = unset; then
17275 ac_default_ld_z_separate_code=0
17276fi
17277
17278cat >>confdefs.h <<_ACEOF
17279#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17280_ACEOF
17281
17282
81ecdfbb 17283
2760f24c
RG
17284cat >>confdefs.h <<_ACEOF
17285#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17286_ACEOF
17287
17288
17289
17290cat >>confdefs.h <<_ACEOF
17291#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17292_ACEOF
17293
17294
17295
81ecdfbb 17296
c58212ea
L
17297
17298
17299
81ecdfbb
RW
17300TDIRS=tdirs
17301
17302
17303if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17304 if test x${want64} = xtrue; then
17305 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17306 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17307 else
17308 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17309 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17310 fi
42ecbf5e
DJ
17311else
17312 EMULATION_OFILES=$all_emuls
17313 EMUL_EXTRA_OFILES=$all_emul_extras
17314fi
17315
17316
17317
17318
17319EMULATION_LIBPATH=$all_libpath
17320
17321
17322if test x${enable_static} = xno; then
9165f454 17323 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
42ecbf5e
DJ
17324else
17325 TESTBFDLIB="../bfd/.libs/libbfd.a"
17326fi
17327
17328
17329target_vendor=${target_vendor=$host_vendor}
17330case "$target_vendor" in
17331 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17332 *) EXTRA_SHLIB_EXTENSION= ;;
17333esac
17334
17335case "$target_os" in
17336 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17337esac
17338
17339if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17340
17341cat >>confdefs.h <<_ACEOF
17342#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17343_ACEOF
17344
17345fi
17346
33589acb
AM
17347ac_config_commands="$ac_config_commands default"
17348
17349
108a6f8e
CD
17350
17351
17352
17353
31dd3154 17354
81ecdfbb 17355ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17356
42ecbf5e
DJ
17357cat >confcache <<\_ACEOF
17358# This file is a shell script that caches the results of configure
17359# tests run on this system so they can be shared between configure
17360# scripts and configure runs, see configure's option --config-cache.
17361# It is not useful on other systems. If it contains results you don't
17362# want to keep, you may remove or edit it.
17363#
17364# config.status only pays attention to the cache file if you give it
17365# the --recheck option to rerun configure.
17366#
17367# `ac_cv_env_foo' variables (set or unset) will be overridden when
17368# loading this file, other *unset* `ac_cv_foo' will be assigned the
17369# following values.
17370
17371_ACEOF
17372
17373# The following way of writing the cache mishandles newlines in values,
17374# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17375# So, we kill variables containing newlines.
42ecbf5e
DJ
17376# Ultrix sh set writes to stderr and can't be redirected directly,
17377# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17378(
17379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17380 eval ac_val=\$$ac_var
17381 case $ac_val in #(
17382 *${as_nl}*)
17383 case $ac_var in #(
17384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17386 esac
17387 case $ac_var in #(
17388 _ | IFS | as_nl) ;; #(
17389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17390 *) { eval $ac_var=; unset $ac_var;} ;;
17391 esac ;;
17392 esac
17393 done
17394
42ecbf5e 17395 (set) 2>&1 |
81ecdfbb
RW
17396 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17397 *${as_nl}ac_space=\ *)
17398 # `set' does not quote correctly, so add quotes: double-quote
17399 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17400 sed -n \
17401 "s/'/'\\\\''/g;
17402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17403 ;; #(
42ecbf5e
DJ
17404 *)
17405 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17407 ;;
81ecdfbb
RW
17408 esac |
17409 sort
17410) |
42ecbf5e 17411 sed '
81ecdfbb 17412 /^ac_cv_env_/b end
42ecbf5e 17413 t clear
81ecdfbb 17414 :clear
42ecbf5e
DJ
17415 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17416 t end
81ecdfbb
RW
17417 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17418 :end' >>confcache
17419if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17420 if test -w "$cache_file"; then
17421 test "x$cache_file" != "x/dev/null" &&
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17423$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17424 cat confcache >$cache_file
17425 else
81ecdfbb
RW
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17427$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17428 fi
17429fi
17430rm -f confcache
17431
17432test "x$prefix" = xNONE && prefix=$ac_default_prefix
17433# Let make expand exec_prefix.
17434test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17435
42ecbf5e
DJ
17436DEFS=-DHAVE_CONFIG_H
17437
17438ac_libobjs=
17439ac_ltlibobjs=
17440for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17441 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17442 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17443 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17444 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17445 # will be set to the directory where LIBOBJS objects are built.
17446 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17447 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17448done
17449LIBOBJS=$ac_libobjs
17450
17451LTLIBOBJS=$ac_ltlibobjs
17452
17453
17454if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17455 as_fn_error "conditional \"AMDEP\" was never defined.
17456Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17457fi
17458if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17459 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17460Usually this means the macro was only invoked conditionally." "$LINENO" 5
17461fi
17462 if test -n "$EXEEXT"; then
17463 am__EXEEXT_TRUE=
17464 am__EXEEXT_FALSE='#'
17465else
17466 am__EXEEXT_TRUE='#'
17467 am__EXEEXT_FALSE=
42ecbf5e 17468fi
81ecdfbb 17469
64ac50ac
RW
17470if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17471 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17472Usually this means the macro was only invoked conditionally." "$LINENO" 5
17473fi
3cb62297
L
17474if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17475 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17476Usually this means the macro was only invoked conditionally." "$LINENO" 5
17477fi
42ecbf5e 17478if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17479 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17480Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17481fi
d5fbea21 17482if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17483 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17484Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17485fi
5d3236ee
DK
17486if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17487 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17488Usually this means the macro was only invoked conditionally." "$LINENO" 5
17489fi
42ecbf5e
DJ
17490
17491: ${CONFIG_STATUS=./config.status}
81ecdfbb 17492ac_write_fail=0
42ecbf5e
DJ
17493ac_clean_files_save=$ac_clean_files
17494ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17496$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17497as_write_fail=0
17498cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17499#! $SHELL
17500# Generated by $as_me.
17501# Run this file to recreate the current configuration.
17502# Compiler output produced by configure, useful for debugging
17503# configure, is in config.log if it exists.
17504
17505debug=false
17506ac_cs_recheck=false
17507ac_cs_silent=false
42ecbf5e 17508
81ecdfbb
RW
17509SHELL=\${CONFIG_SHELL-$SHELL}
17510export SHELL
17511_ASEOF
17512cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17513## -------------------- ##
17514## M4sh Initialization. ##
17515## -------------------- ##
42ecbf5e 17516
81ecdfbb
RW
17517# Be more Bourne compatible
17518DUALCASE=1; export DUALCASE # for MKS sh
17519if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17520 emulate sh
17521 NULLCMD=:
81ecdfbb 17522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17523 # is contrary to our usage. Disable this feature.
17524 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17525 setopt NO_GLOB_SUBST
17526else
17527 case `(set -o) 2>/dev/null` in #(
17528 *posix*) :
17529 set -o posix ;; #(
17530 *) :
17531 ;;
17532esac
42ecbf5e 17533fi
42ecbf5e 17534
81ecdfbb
RW
17535
17536as_nl='
17537'
17538export as_nl
17539# Printing a long string crashes Solaris 7 /usr/bin/printf.
17540as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17541as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17543# Prefer a ksh shell builtin over an external printf program on Solaris,
17544# but without wasting forks for bash or zsh.
17545if test -z "$BASH_VERSION$ZSH_VERSION" \
17546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17547 as_echo='print -r --'
17548 as_echo_n='print -rn --'
17549elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17550 as_echo='printf %s\n'
17551 as_echo_n='printf %s'
17552else
17553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17555 as_echo_n='/usr/ucb/echo -n'
17556 else
17557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17558 as_echo_n_body='eval
17559 arg=$1;
17560 case $arg in #(
17561 *"$as_nl"*)
17562 expr "X$arg" : "X\\(.*\\)$as_nl";
17563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17564 esac;
17565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17566 '
17567 export as_echo_n_body
17568 as_echo_n='sh -c $as_echo_n_body as_echo'
17569 fi
17570 export as_echo_body
17571 as_echo='sh -c $as_echo_body as_echo'
17572fi
17573
17574# The user is always right.
17575if test "${PATH_SEPARATOR+set}" != set; then
17576 PATH_SEPARATOR=:
17577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17579 PATH_SEPARATOR=';'
17580 }
42ecbf5e
DJ
17581fi
17582
17583
81ecdfbb
RW
17584# IFS
17585# We need space, tab and new line, in precisely that order. Quoting is
17586# there to prevent editors from complaining about space-tab.
17587# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17588# splitting by setting IFS to empty value.)
17589IFS=" "" $as_nl"
17590
17591# Find who we are. Look in the path if we contain no directory separator.
17592case $0 in #((
17593 *[\\/]* ) as_myself=$0 ;;
17594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595for as_dir in $PATH
17596do
17597 IFS=$as_save_IFS
17598 test -z "$as_dir" && as_dir=.
17599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17600 done
17601IFS=$as_save_IFS
17602
17603 ;;
17604esac
17605# We did not find ourselves, most probably we were run as `sh COMMAND'
17606# in which case we are not to be found in the path.
17607if test "x$as_myself" = x; then
17608 as_myself=$0
17609fi
17610if test ! -f "$as_myself"; then
17611 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17612 exit 1
17613fi
17614
17615# Unset variables that we do not need and which cause bugs (e.g. in
17616# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17617# suppresses any "Segmentation fault" message there. '((' could
17618# trigger a bug in pdksh 5.2.14.
17619for as_var in BASH_ENV ENV MAIL MAILPATH
17620do eval test x\${$as_var+set} = xset \
17621 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17622done
42ecbf5e
DJ
17623PS1='$ '
17624PS2='> '
17625PS4='+ '
17626
17627# NLS nuisances.
81ecdfbb
RW
17628LC_ALL=C
17629export LC_ALL
17630LANGUAGE=C
17631export LANGUAGE
17632
17633# CDPATH.
17634(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17635
17636
17637# as_fn_error ERROR [LINENO LOG_FD]
17638# ---------------------------------
17639# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17640# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17641# script with status $?, using 1 if that was 0.
17642as_fn_error ()
17643{
17644 as_status=$?; test $as_status -eq 0 && as_status=1
17645 if test "$3"; then
17646 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17647 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17648 fi
81ecdfbb
RW
17649 $as_echo "$as_me: error: $1" >&2
17650 as_fn_exit $as_status
17651} # as_fn_error
17652
17653
17654# as_fn_set_status STATUS
17655# -----------------------
17656# Set $? to STATUS, without forking.
17657as_fn_set_status ()
17658{
17659 return $1
17660} # as_fn_set_status
17661
17662# as_fn_exit STATUS
17663# -----------------
17664# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17665as_fn_exit ()
17666{
17667 set +e
17668 as_fn_set_status $1
17669 exit $1
17670} # as_fn_exit
17671
17672# as_fn_unset VAR
17673# ---------------
17674# Portably unset VAR.
17675as_fn_unset ()
17676{
17677 { eval $1=; unset $1;}
17678}
17679as_unset=as_fn_unset
17680# as_fn_append VAR VALUE
17681# ----------------------
17682# Append the text in VALUE to the end of the definition contained in VAR. Take
17683# advantage of any shell optimizations that allow amortized linear growth over
17684# repeated appends, instead of the typical quadratic growth present in naive
17685# implementations.
17686if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17687 eval 'as_fn_append ()
17688 {
17689 eval $1+=\$2
17690 }'
17691else
17692 as_fn_append ()
17693 {
17694 eval $1=\$$1\$2
17695 }
17696fi # as_fn_append
17697
17698# as_fn_arith ARG...
17699# ------------------
17700# Perform arithmetic evaluation on the ARGs, and store the result in the
17701# global $as_val. Take advantage of shells that can avoid forks. The arguments
17702# must be portable across $(()) and expr.
17703if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17704 eval 'as_fn_arith ()
17705 {
17706 as_val=$(( $* ))
17707 }'
17708else
17709 as_fn_arith ()
17710 {
17711 as_val=`expr "$@" || test $? -eq 1`
17712 }
17713fi # as_fn_arith
17714
42ecbf5e 17715
81ecdfbb
RW
17716if expr a : '\(a\)' >/dev/null 2>&1 &&
17717 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17718 as_expr=expr
17719else
17720 as_expr=false
17721fi
17722
81ecdfbb 17723if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17724 as_basename=basename
17725else
17726 as_basename=false
17727fi
17728
81ecdfbb
RW
17729if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17730 as_dirname=dirname
17731else
17732 as_dirname=false
17733fi
42ecbf5e 17734
81ecdfbb 17735as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17736$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17737 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17739$as_echo X/"$0" |
17740 sed '/^.*\/\([^/][^/]*\)\/*$/{
17741 s//\1/
17742 q
17743 }
17744 /^X\/\(\/\/\)$/{
17745 s//\1/
17746 q
17747 }
17748 /^X\/\(\/\).*/{
17749 s//\1/
17750 q
17751 }
17752 s/.*/./; q'`
42ecbf5e 17753
42ecbf5e
DJ
17754# Avoid depending upon Character Ranges.
17755as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17756as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17757as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17758as_cr_digits='0123456789'
17759as_cr_alnum=$as_cr_Letters$as_cr_digits
17760
81ecdfbb
RW
17761ECHO_C= ECHO_N= ECHO_T=
17762case `echo -n x` in #(((((
17763-n*)
17764 case `echo 'xy\c'` in
17765 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17766 xy) ECHO_C='\c';;
17767 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17768 ECHO_T=' ';;
17769 esac;;
17770*)
17771 ECHO_N='-n';;
42ecbf5e 17772esac
252b5132 17773
81ecdfbb
RW
17774rm -f conf$$ conf$$.exe conf$$.file
17775if test -d conf$$.dir; then
17776 rm -f conf$$.dir/conf$$.file
42ecbf5e 17777else
81ecdfbb
RW
17778 rm -f conf$$.dir
17779 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17780fi
81ecdfbb
RW
17781if (echo >conf$$.file) 2>/dev/null; then
17782 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17783 as_ln_s='ln -s'
81ecdfbb
RW
17784 # ... but there are two gotchas:
17785 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17786 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17787 # In both cases, we have to default to `cp -p'.
17788 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17789 as_ln_s='cp -p'
17790 elif ln conf$$.file conf$$ 2>/dev/null; then
17791 as_ln_s=ln
17792 else
17793 as_ln_s='cp -p'
252b5132 17794 fi
e5a52504 17795else
42ecbf5e 17796 as_ln_s='cp -p'
e5a52504 17797fi
81ecdfbb
RW
17798rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17799rmdir conf$$.dir 2>/dev/null
17800
17801
17802# as_fn_mkdir_p
17803# -------------
17804# Create "$as_dir" as a directory, including parents if necessary.
17805as_fn_mkdir_p ()
17806{
17807
17808 case $as_dir in #(
17809 -*) as_dir=./$as_dir;;
17810 esac
17811 test -d "$as_dir" || eval $as_mkdir_p || {
17812 as_dirs=
17813 while :; do
17814 case $as_dir in #(
17815 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17816 *) as_qdir=$as_dir;;
17817 esac
17818 as_dirs="'$as_qdir' $as_dirs"
17819 as_dir=`$as_dirname -- "$as_dir" ||
17820$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821 X"$as_dir" : 'X\(//\)[^/]' \| \
17822 X"$as_dir" : 'X\(//\)$' \| \
17823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17824$as_echo X"$as_dir" |
17825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17826 s//\1/
17827 q
17828 }
17829 /^X\(\/\/\)[^/].*/{
17830 s//\1/
17831 q
17832 }
17833 /^X\(\/\/\)$/{
17834 s//\1/
17835 q
17836 }
17837 /^X\(\/\).*/{
17838 s//\1/
17839 q
17840 }
17841 s/.*/./; q'`
17842 test -d "$as_dir" && break
17843 done
17844 test -z "$as_dirs" || eval "mkdir $as_dirs"
17845 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17846
252b5132 17847
81ecdfbb 17848} # as_fn_mkdir_p
42ecbf5e 17849if mkdir -p . 2>/dev/null; then
81ecdfbb 17850 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17851else
17852 test -d ./-p && rmdir ./-p
17853 as_mkdir_p=false
17854fi
252b5132 17855
81ecdfbb
RW
17856if test -x / >/dev/null 2>&1; then
17857 as_test_x='test -x'
17858else
17859 if ls -dL / >/dev/null 2>&1; then
17860 as_ls_L_option=L
17861 else
17862 as_ls_L_option=
17863 fi
17864 as_test_x='
17865 eval sh -c '\''
17866 if test -d "$1"; then
17867 test -d "$1/.";
17868 else
17869 case $1 in #(
17870 -*)set "./$1";;
17871 esac;
17872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17873 ???[sx]*):;;*)false;;esac;fi
17874 '\'' sh
17875 '
17876fi
17877as_executable_p=$as_test_x
252b5132 17878
42ecbf5e
DJ
17879# Sed expression to map a string onto a valid CPP name.
17880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17881
42ecbf5e
DJ
17882# Sed expression to map a string onto a valid variable name.
17883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17884
e5a52504 17885
42ecbf5e 17886exec 6>&1
81ecdfbb
RW
17887## ----------------------------------- ##
17888## Main body of $CONFIG_STATUS script. ##
17889## ----------------------------------- ##
17890_ASEOF
17891test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17892
81ecdfbb
RW
17893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17894# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17895# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17896# values after options handling.
17897ac_log="
55e99962 17898This file was extended by ld $as_me 2.30.52, which was
81ecdfbb 17899generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17900
17901 CONFIG_FILES = $CONFIG_FILES
17902 CONFIG_HEADERS = $CONFIG_HEADERS
17903 CONFIG_LINKS = $CONFIG_LINKS
17904 CONFIG_COMMANDS = $CONFIG_COMMANDS
17905 $ $0 $@
e5a52504 17906
81ecdfbb
RW
17907on `(hostname || uname -n) 2>/dev/null | sed 1q`
17908"
17909
42ecbf5e
DJ
17910_ACEOF
17911
81ecdfbb
RW
17912case $ac_config_files in *"
17913"*) set x $ac_config_files; shift; ac_config_files=$*;;
17914esac
e5a52504 17915
81ecdfbb
RW
17916case $ac_config_headers in *"
17917"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17918esac
42ecbf5e 17919
42ecbf5e 17920
81ecdfbb
RW
17921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922# Files that config.status was made for.
17923config_files="$ac_config_files"
17924config_headers="$ac_config_headers"
17925config_commands="$ac_config_commands"
42ecbf5e 17926
81ecdfbb 17927_ACEOF
42ecbf5e 17928
81ecdfbb 17929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17930ac_cs_usage="\
81ecdfbb
RW
17931\`$as_me' instantiates files and other configuration actions
17932from templates according to the current configuration. Unless the files
17933and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17934
81ecdfbb 17935Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17936
17937 -h, --help print this help, then exit
81ecdfbb
RW
17938 -V, --version print version number and configuration settings, then exit
17939 -q, --quiet, --silent
17940 do not print progress messages
42ecbf5e
DJ
17941 -d, --debug don't remove temporary files
17942 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17943 --file=FILE[:TEMPLATE]
17944 instantiate the configuration file FILE
17945 --header=FILE[:TEMPLATE]
17946 instantiate the configuration header FILE
42ecbf5e
DJ
17947
17948Configuration files:
17949$config_files
17950
17951Configuration headers:
17952$config_headers
17953
17954Configuration commands:
17955$config_commands
17956
81ecdfbb 17957Report bugs to the package provider."
42ecbf5e 17958
81ecdfbb
RW
17959_ACEOF
17960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17961ac_cs_version="\\
55e99962 17962ld config.status 2.30.52
81ecdfbb
RW
17963configured by $0, generated by GNU Autoconf 2.64,
17964 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17965
81ecdfbb 17966Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17967This config.status script is free software; the Free Software Foundation
17968gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17969
17970ac_pwd='$ac_pwd'
17971srcdir='$srcdir'
17972INSTALL='$INSTALL'
17973MKDIR_P='$MKDIR_P'
17974AWK='$AWK'
17975test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17976_ACEOF
17977
81ecdfbb
RW
17978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17979# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17980ac_need_defaults=:
17981while test $# != 0
17982do
17983 case $1 in
17984 --*=*)
81ecdfbb
RW
17985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17987 ac_shift=:
252b5132 17988 ;;
81ecdfbb 17989 *)
42ecbf5e
DJ
17990 ac_option=$1
17991 ac_optarg=$2
17992 ac_shift=shift
252b5132 17993 ;;
42ecbf5e 17994 esac
252b5132 17995
42ecbf5e
DJ
17996 case $ac_option in
17997 # Handling of the options.
42ecbf5e
DJ
17998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17999 ac_cs_recheck=: ;;
81ecdfbb
RW
18000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18001 $as_echo "$ac_cs_version"; exit ;;
18002 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
18003 debug=: ;;
18004 --file | --fil | --fi | --f )
18005 $ac_shift
81ecdfbb
RW
18006 case $ac_optarg in
18007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18008 esac
18009 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
18010 ac_need_defaults=false;;
18011 --header | --heade | --head | --hea )
18012 $ac_shift
81ecdfbb
RW
18013 case $ac_optarg in
18014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18015 esac
18016 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 18017 ac_need_defaults=false;;
81ecdfbb
RW
18018 --he | --h)
18019 # Conflict between --help and --header
18020 as_fn_error "ambiguous option: \`$1'
18021Try \`$0 --help' for more information.";;
18022 --help | --hel | -h )
18023 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
18024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18026 ac_cs_silent=: ;;
252b5132 18027
42ecbf5e 18028 # This is an error.
81ecdfbb
RW
18029 -*) as_fn_error "unrecognized option: \`$1'
18030Try \`$0 --help' for more information." ;;
252b5132 18031
81ecdfbb
RW
18032 *) as_fn_append ac_config_targets " $1"
18033 ac_need_defaults=false ;;
252b5132 18034
42ecbf5e
DJ
18035 esac
18036 shift
18037done
d15b04bd 18038
42ecbf5e 18039ac_configure_extra_args=
e5a52504 18040
42ecbf5e
DJ
18041if $ac_cs_silent; then
18042 exec 6>/dev/null
18043 ac_configure_extra_args="$ac_configure_extra_args --silent"
18044fi
e5a52504 18045
42ecbf5e 18046_ACEOF
81ecdfbb 18047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 18048if \$ac_cs_recheck; then
81ecdfbb
RW
18049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18050 shift
18051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18052 CONFIG_SHELL='$SHELL'
18053 export CONFIG_SHELL
18054 exec "\$@"
42ecbf5e
DJ
18055fi
18056
18057_ACEOF
81ecdfbb
RW
18058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059exec 5>>config.log
18060{
18061 echo
18062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18063## Running $as_me. ##
18064_ASBOX
18065 $as_echo "$ac_log"
18066} >&5
42ecbf5e 18067
81ecdfbb
RW
18068_ACEOF
18069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 18070#
81ecdfbb 18071# INIT-COMMANDS
252b5132 18072#
42ecbf5e 18073AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
18074
18075
18076# The HP-UX ksh and POSIX shell print the target directory to stdout
18077# if CDPATH is set.
18078(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18079
18080sed_quote_subst='$sed_quote_subst'
18081double_quote_subst='$double_quote_subst'
18082delay_variable_subst='$delay_variable_subst'
3725885a
RW
18083macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18084macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18085enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18086enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18087pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18088enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18089SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18090ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18091host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18092host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18093host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18094build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18095build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18096build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18097SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18098Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18099GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18100EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18101FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18102LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18103NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18104LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18105max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18106ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18107exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18108lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18109lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18110lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18111reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18112reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18113OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18114deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18115file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18116AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18117AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18118STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18119RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18120old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18121old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18122old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18123lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18124CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18125CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18126compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18127GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18128lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18129lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18130lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18131lt_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"`'
18132objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18133MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18134lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18135lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18136lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18137lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18138lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18139need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18140DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18141NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18142LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18143OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18144OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18145libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18146shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18147extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18148archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18149enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18150export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18151whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18152compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18153old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18154old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18155archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18156archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18157module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18158module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18159with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18160allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18161no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18162hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18163hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18164hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18165hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18166hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18167hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18168hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18169hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18170inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18171link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18172fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18173always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18174export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18175exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18176include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18177prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18178file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18179variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18180need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18181need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18182version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18183runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18184shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18185shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18186libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18187library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18188soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18189install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18190postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18191postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18192finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18193finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18194hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18195sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18196sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18197hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18198enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18199enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18200enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18201old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18202striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18203compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18204predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18205postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18206predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18207postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18208compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18209LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18210reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18211reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18212old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18213compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18214GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18215lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18216lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18217lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18218lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18219lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18220archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18221enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18222export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18223whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18224compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18225old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18226old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18227archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18228archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18229module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18230module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18231with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18232allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18233no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18234hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18235hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18236hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18237hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18238hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18239hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18240hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18241hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18242inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18243link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18244fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18245always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18246export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18247exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18248include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18249prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18250file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18251hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18252compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18253predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18254postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18255predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18256postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18257compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18258
18259LTCC='$LTCC'
18260LTCFLAGS='$LTCFLAGS'
18261compiler='$compiler_DEFAULT'
18262
3725885a
RW
18263# A function that is used when there is no print builtin or printf.
18264func_fallback_echo ()
18265{
18266 eval 'cat <<_LTECHO_EOF
18267\$1
18268_LTECHO_EOF'
18269}
18270
d7040cdb 18271# Quote evaled strings.
3725885a
RW
18272for var in SHELL \
18273ECHO \
18274SED \
d7040cdb
SE
18275GREP \
18276EGREP \
18277FGREP \
18278LD \
18279NM \
18280LN_S \
18281lt_SP2NL \
18282lt_NL2SP \
18283reload_flag \
b214d478 18284OBJDUMP \
d7040cdb
SE
18285deplibs_check_method \
18286file_magic_cmd \
18287AR \
18288AR_FLAGS \
18289STRIP \
18290RANLIB \
18291CC \
18292CFLAGS \
18293compiler \
18294lt_cv_sys_global_symbol_pipe \
18295lt_cv_sys_global_symbol_to_cdecl \
18296lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18297lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18298lt_prog_compiler_no_builtin_flag \
18299lt_prog_compiler_wl \
18300lt_prog_compiler_pic \
18301lt_prog_compiler_static \
18302lt_cv_prog_compiler_c_o \
18303need_locks \
b214d478
SE
18304DSYMUTIL \
18305NMEDIT \
18306LIPO \
18307OTOOL \
18308OTOOL64 \
d7040cdb
SE
18309shrext_cmds \
18310export_dynamic_flag_spec \
18311whole_archive_flag_spec \
18312compiler_needs_object \
18313with_gnu_ld \
18314allow_undefined_flag \
18315no_undefined_flag \
18316hardcode_libdir_flag_spec \
18317hardcode_libdir_flag_spec_ld \
18318hardcode_libdir_separator \
18319fix_srcfile_path \
18320exclude_expsyms \
18321include_expsyms \
18322file_list_spec \
18323variables_saved_for_relink \
18324libname_spec \
18325library_names_spec \
18326soname_spec \
3725885a 18327install_override_mode \
d7040cdb
SE
18328finish_eval \
18329old_striplib \
3cb62297
L
18330striplib \
18331compiler_lib_search_dirs \
18332predep_objects \
18333postdep_objects \
18334predeps \
18335postdeps \
18336compiler_lib_search_path \
18337LD_CXX \
18338reload_flag_CXX \
18339compiler_CXX \
18340lt_prog_compiler_no_builtin_flag_CXX \
18341lt_prog_compiler_wl_CXX \
18342lt_prog_compiler_pic_CXX \
18343lt_prog_compiler_static_CXX \
18344lt_cv_prog_compiler_c_o_CXX \
18345export_dynamic_flag_spec_CXX \
18346whole_archive_flag_spec_CXX \
18347compiler_needs_object_CXX \
18348with_gnu_ld_CXX \
18349allow_undefined_flag_CXX \
18350no_undefined_flag_CXX \
18351hardcode_libdir_flag_spec_CXX \
18352hardcode_libdir_flag_spec_ld_CXX \
18353hardcode_libdir_separator_CXX \
18354fix_srcfile_path_CXX \
18355exclude_expsyms_CXX \
18356include_expsyms_CXX \
18357file_list_spec_CXX \
18358compiler_lib_search_dirs_CXX \
18359predep_objects_CXX \
18360postdep_objects_CXX \
18361predeps_CXX \
18362postdeps_CXX \
18363compiler_lib_search_path_CXX; do
3725885a 18364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18365 *[\\\\\\\`\\"\\\$]*)
3725885a 18366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18367 ;;
18368 *)
18369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18370 ;;
18371 esac
18372done
18373
18374# Double-quote double-evaled strings.
18375for var in reload_cmds \
18376old_postinstall_cmds \
18377old_postuninstall_cmds \
18378old_archive_cmds \
18379extract_expsyms_cmds \
18380old_archive_from_new_cmds \
18381old_archive_from_expsyms_cmds \
18382archive_cmds \
18383archive_expsym_cmds \
18384module_cmds \
18385module_expsym_cmds \
18386export_symbols_cmds \
18387prelink_cmds \
18388postinstall_cmds \
18389postuninstall_cmds \
18390finish_cmds \
18391sys_lib_search_path_spec \
3cb62297
L
18392sys_lib_dlsearch_path_spec \
18393reload_cmds_CXX \
18394old_archive_cmds_CXX \
18395old_archive_from_new_cmds_CXX \
18396old_archive_from_expsyms_cmds_CXX \
18397archive_cmds_CXX \
18398archive_expsym_cmds_CXX \
18399module_cmds_CXX \
18400module_expsym_cmds_CXX \
18401export_symbols_cmds_CXX \
18402prelink_cmds_CXX; do
3725885a 18403 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18404 *[\\\\\\\`\\"\\\$]*)
3725885a 18405 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18406 ;;
18407 *)
18408 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18409 ;;
18410 esac
18411done
18412
d7040cdb
SE
18413ac_aux_dir='$ac_aux_dir'
18414xsi_shell='$xsi_shell'
18415lt_shell_append='$lt_shell_append'
18416
18417# See if we are running on zsh, and set the options which allow our
18418# commands through without removal of \ escapes INIT.
18419if test -n "\${ZSH_VERSION+set}" ; then
18420 setopt NO_GLOB_SUBST
18421fi
18422
18423
18424 PACKAGE='$PACKAGE'
18425 VERSION='$VERSION'
18426 TIMESTAMP='$TIMESTAMP'
18427 RM='$RM'
18428 ofile='$ofile'
18429
18430
18431
3cb62297
L
18432
18433
20e95c23
DJ
18434# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18435 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18436 # from automake.
18437 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18438 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18439 LINGUAS="${LINGUAS-%UNSET%}"
18440
42ecbf5e 18441
33589acb 18442
42ecbf5e
DJ
18443_ACEOF
18444
81ecdfbb 18445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18446
81ecdfbb 18447# Handling of arguments.
42ecbf5e 18448for ac_config_target in $ac_config_targets
252b5132 18449do
81ecdfbb
RW
18450 case $ac_config_target in
18451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18452 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18453 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 18454 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33589acb 18455 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
18456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18457 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18458
18459 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18460 esac
18461done
18462
81ecdfbb 18463
42ecbf5e
DJ
18464# If the user did not use the arguments to specify the items to instantiate,
18465# then the envvar interface is used. Set only those that are not.
18466# We use the long form for the default assignment because of an extremely
18467# bizarre bug on SunOS 4.1.3.
18468if $ac_need_defaults; then
18469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18472fi
18473
18474# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18475# simply because there is no reason against having it here, and in addition,
42ecbf5e 18476# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18477# Hook for its removal unless debugging.
18478# Note that there is a small window in which the directory will not be cleaned:
18479# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18480$debug ||
18481{
81ecdfbb
RW
18482 tmp=
18483 trap 'exit_status=$?
18484 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18485' 0
18486 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18487}
42ecbf5e 18488# Create a (secure) tmp directory for tmp files.
e5a52504 18489
42ecbf5e 18490{
81ecdfbb 18491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18492 test -n "$tmp" && test -d "$tmp"
18493} ||
18494{
81ecdfbb
RW
18495 tmp=./conf$$-$RANDOM
18496 (umask 077 && mkdir "$tmp")
18497} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18498
18499# Set up the scripts for CONFIG_FILES section.
18500# No need to generate them if there are no CONFIG_FILES.
18501# This happens for instance with `./config.status config.h'.
18502if test -n "$CONFIG_FILES"; then
18503
18504if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18505 ac_cs_awk_getline=:
18506 ac_cs_awk_pipe_init=
18507 ac_cs_awk_read_file='
18508 while ((getline aline < (F[key])) > 0)
18509 print(aline)
18510 close(F[key])'
18511 ac_cs_awk_pipe_fini=
18512else
18513 ac_cs_awk_getline=false
18514 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18515 ac_cs_awk_read_file='
18516 print "|#_!!_#|"
18517 print "cat " F[key] " &&"
18518 '$ac_cs_awk_pipe_init
18519 # The final `:' finishes the AND list.
18520 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18521fi
18522ac_cr=`echo X | tr X '\015'`
18523# On cygwin, bash can eat \r inside `` if the user requested igncr.
18524# But we know of no other shell where ac_cr would be empty at this
18525# point, so we can use a bashism as a fallback.
18526if test "x$ac_cr" = x; then
18527 eval ac_cr=\$\'\\r\'
18528fi
18529ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18530if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18531 ac_cs_awk_cr='\r'
18532else
18533 ac_cs_awk_cr=$ac_cr
18534fi
18535
18536echo 'BEGIN {' >"$tmp/subs1.awk" &&
18537_ACEOF
18538
18539# Create commands to substitute file output variables.
42ecbf5e 18540{
81ecdfbb
RW
18541 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18542 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18543 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18544 echo "_ACAWK" &&
18545 echo "_ACEOF"
18546} >conf$$files.sh &&
18547. ./conf$$files.sh ||
18548 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18549rm -f conf$$files.sh
e5a52504 18550
81ecdfbb
RW
18551{
18552 echo "cat >conf$$subs.awk <<_ACEOF" &&
18553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18554 echo "_ACEOF"
18555} >conf$$subs.sh ||
18556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18557ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18558ac_delim='%!_!# '
18559for ac_last_try in false false false false false :; do
18560 . ./conf$$subs.sh ||
18561 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18562
18563 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18564 if test $ac_delim_n = $ac_delim_num; then
18565 break
18566 elif $ac_last_try; then
18567 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18568 else
18569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18570 fi
18571done
18572rm -f conf$$subs.sh
18573
18574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18575cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18576_ACEOF
18577sed -n '
18578h
18579s/^/S["/; s/!.*/"]=/
18580p
18581g
18582s/^[^!]*!//
18583:repl
18584t repl
18585s/'"$ac_delim"'$//
18586t delim
18587:nl
18588h
18589s/\(.\{148\}\).*/\1/
18590t more1
18591s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18592p
18593n
18594b repl
18595:more1
18596s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18597p
18598g
18599s/.\{148\}//
18600t nl
18601:delim
18602h
18603s/\(.\{148\}\).*/\1/
18604t more2
18605s/["\\]/\\&/g; s/^/"/; s/$/"/
18606p
18607b
18608:more2
18609s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18610p
18611g
18612s/.\{148\}//
18613t delim
18614' <conf$$subs.awk | sed '
18615/^[^""]/{
18616 N
18617 s/\n//
18618}
18619' >>$CONFIG_STATUS || ac_write_fail=1
18620rm -f conf$$subs.awk
18621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622_ACAWK
18623cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18624 for (key in S) S_is_set[key] = 1
18625 FS = "\a"
18626 \$ac_cs_awk_pipe_init
18627}
18628{
18629 line = $ 0
18630 nfields = split(line, field, "@")
18631 substed = 0
18632 len = length(field[1])
18633 for (i = 2; i < nfields; i++) {
18634 key = field[i]
18635 keylen = length(key)
18636 if (S_is_set[key]) {
18637 value = S[key]
18638 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18639 len += length(value) + length(field[++i])
18640 substed = 1
18641 } else
18642 len += 1 + keylen
18643 }
18644 if (nfields == 3 && !substed) {
18645 key = field[2]
18646 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18647 \$ac_cs_awk_read_file
18648 next
18649 }
18650 }
18651 print line
18652}
18653\$ac_cs_awk_pipe_fini
18654_ACAWK
18655_ACEOF
18656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18657if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18659else
18660 cat
18661fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18662 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18663_ACEOF
d15b04bd 18664
81ecdfbb
RW
18665# VPATH may cause trouble with some makes, so we remove $(srcdir),
18666# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18667# trailing colons and then remove the whole line if VPATH becomes empty
18668# (actually we leave an empty line to preserve line numbers).
18669if test "x$srcdir" = x.; then
18670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18671s/:*\$(srcdir):*/:/
18672s/:*\${srcdir}:*/:/
18673s/:*@srcdir@:*/:/
18674s/^\([^=]*=[ ]*\):*/\1/
18675s/:*$//
18676s/^[^=]*=[ ]*$//
18677}'
18678fi
18679
18680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681fi # test -n "$CONFIG_FILES"
42ecbf5e 18682
81ecdfbb
RW
18683# Set up the scripts for CONFIG_HEADERS section.
18684# No need to generate them if there are no CONFIG_HEADERS.
18685# This happens for instance with `./config.status Makefile'.
18686if test -n "$CONFIG_HEADERS"; then
18687cat >"$tmp/defines.awk" <<\_ACAWK ||
18688BEGIN {
18689_ACEOF
42ecbf5e 18690
81ecdfbb
RW
18691# Transform confdefs.h into an awk script `defines.awk', embedded as
18692# here-document in config.status, that substitutes the proper values into
18693# config.h.in to produce config.h.
252b5132 18694
81ecdfbb
RW
18695# Create a delimiter string that does not exist in confdefs.h, to ease
18696# handling of long lines.
18697ac_delim='%!_!# '
18698for ac_last_try in false false :; do
18699 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18700 if test -z "$ac_t"; then
18701 break
18702 elif $ac_last_try; then
18703 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18704 else
18705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18706 fi
18707done
18708
18709# For the awk script, D is an array of macro values keyed by name,
18710# likewise P contains macro parameters if any. Preserve backslash
18711# newline sequences.
18712
18713ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18714sed -n '
18715s/.\{148\}/&'"$ac_delim"'/g
18716t rset
18717:rset
18718s/^[ ]*#[ ]*define[ ][ ]*/ /
18719t def
18720d
18721:def
18722s/\\$//
18723t bsnl
18724s/["\\]/\\&/g
18725s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18726D["\1"]=" \3"/p
18727s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18728d
18729:bsnl
18730s/["\\]/\\&/g
18731s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18732D["\1"]=" \3\\\\\\n"\\/p
18733t cont
18734s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18735t cont
18736d
18737:cont
18738n
18739s/.\{148\}/&'"$ac_delim"'/g
18740t clear
18741:clear
18742s/\\$//
18743t bsnlc
18744s/["\\]/\\&/g; s/^/"/; s/$/"/p
18745d
18746:bsnlc
18747s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18748b cont
18749' <confdefs.h | sed '
18750s/'"$ac_delim"'/"\\\
18751"/g' >>$CONFIG_STATUS || ac_write_fail=1
18752
18753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18754 for (key in D) D_is_set[key] = 1
18755 FS = "\a"
18756}
18757/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18758 line = \$ 0
18759 split(line, arg, " ")
18760 if (arg[1] == "#") {
18761 defundef = arg[2]
18762 mac1 = arg[3]
18763 } else {
18764 defundef = substr(arg[1], 2)
18765 mac1 = arg[2]
18766 }
18767 split(mac1, mac2, "(") #)
18768 macro = mac2[1]
18769 prefix = substr(line, 1, index(line, defundef) - 1)
18770 if (D_is_set[macro]) {
18771 # Preserve the white space surrounding the "#".
18772 print prefix "define", macro P[macro] D[macro]
18773 next
18774 } else {
18775 # Replace #undef with comments. This is necessary, for example,
18776 # in the case of _POSIX_SOURCE, which is predefined and required
18777 # on some systems where configure will not decide to define it.
18778 if (defundef == "undef") {
18779 print "/*", prefix defundef, macro, "*/"
18780 next
18781 }
18782 }
18783}
18784{ print }
18785_ACAWK
42ecbf5e 18786_ACEOF
81ecdfbb
RW
18787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18788 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18789fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18790
81ecdfbb
RW
18791
18792eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18793shift
18794for ac_tag
18795do
18796 case $ac_tag in
18797 :[FHLC]) ac_mode=$ac_tag; continue;;
18798 esac
18799 case $ac_mode$ac_tag in
18800 :[FHL]*:*);;
18801 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18802 :[FH]-) ac_tag=-:-;;
18803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18804 esac
18805 ac_save_IFS=$IFS
18806 IFS=:
18807 set x $ac_tag
18808 IFS=$ac_save_IFS
18809 shift
18810 ac_file=$1
18811 shift
18812
18813 case $ac_mode in
18814 :L) ac_source=$1;;
18815 :[FH])
18816 ac_file_inputs=
18817 for ac_f
18818 do
18819 case $ac_f in
18820 -) ac_f="$tmp/stdin";;
18821 *) # Look for the file first in the build tree, then in the source tree
18822 # (if the path is not absolute). The absolute path cannot be DOS-style,
18823 # because $ac_f cannot contain `:'.
18824 test -f "$ac_f" ||
18825 case $ac_f in
18826 [\\/$]*) false;;
18827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18828 esac ||
18829 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18830 esac
18831 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18832 as_fn_append ac_file_inputs " '$ac_f'"
18833 done
18834
18835 # Let's still pretend it is `configure' which instantiates (i.e., don't
18836 # use $as_me), people would be surprised to read:
18837 # /* config.h. Generated by config.status. */
18838 configure_input='Generated from '`
18839 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18840 `' by configure.'
18841 if test x"$ac_file" != x-; then
18842 configure_input="$ac_file. $configure_input"
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18844$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18845 fi
81ecdfbb
RW
18846 # Neutralize special characters interpreted by sed in replacement strings.
18847 case $configure_input in #(
18848 *\&* | *\|* | *\\* )
18849 ac_sed_conf_input=`$as_echo "$configure_input" |
18850 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18851 *) ac_sed_conf_input=$configure_input;;
18852 esac
252b5132 18853
81ecdfbb
RW
18854 case $ac_tag in
18855 *:-:* | *:-) cat >"$tmp/stdin" \
18856 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18857 esac
18858 ;;
252b5132
RH
18859 esac
18860
81ecdfbb 18861 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18862$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18863 X"$ac_file" : 'X\(//\)[^/]' \| \
18864 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18866$as_echo X"$ac_file" |
18867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18868 s//\1/
18869 q
18870 }
18871 /^X\(\/\/\)[^/].*/{
18872 s//\1/
18873 q
18874 }
18875 /^X\(\/\/\)$/{
18876 s//\1/
18877 q
18878 }
18879 /^X\(\/\).*/{
18880 s//\1/
18881 q
18882 }
18883 s/.*/./; q'`
18884 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18885 ac_builddir=.
18886
81ecdfbb
RW
18887case "$ac_dir" in
18888.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18889*)
18890 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18891 # A ".." for each directory in $ac_dir_suffix.
18892 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18893 case $ac_top_builddir_sub in
18894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18896 esac ;;
18897esac
18898ac_abs_top_builddir=$ac_pwd
18899ac_abs_builddir=$ac_pwd$ac_dir_suffix
18900# for backward compatibility:
18901ac_top_builddir=$ac_top_build_prefix
252b5132 18902
42ecbf5e 18903case $srcdir in
81ecdfbb 18904 .) # We are building in place.
42ecbf5e 18905 ac_srcdir=.
81ecdfbb
RW
18906 ac_top_srcdir=$ac_top_builddir_sub
18907 ac_abs_top_srcdir=$ac_pwd ;;
18908 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18909 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18910 ac_top_srcdir=$srcdir
18911 ac_abs_top_srcdir=$srcdir ;;
18912 *) # Relative name.
18913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18914 ac_top_srcdir=$ac_top_build_prefix$srcdir
18915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18916esac
81ecdfbb 18917ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18918
252b5132 18919
81ecdfbb
RW
18920 case $ac_mode in
18921 :F)
18922 #
18923 # CONFIG_FILE
18924 #
e5a52504 18925
42ecbf5e
DJ
18926 case $INSTALL in
18927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18929 esac
18930 ac_MKDIR_P=$MKDIR_P
18931 case $MKDIR_P in
18932 [\\/$]* | ?:[\\/]* ) ;;
18933 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18934 esac
81ecdfbb 18935_ACEOF
e5a52504 18936
81ecdfbb
RW
18937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938# If the template does not know about datarootdir, expand it.
18939# FIXME: This hack should be removed a few years after 2.60.
18940ac_datarootdir_hack=; ac_datarootdir_seen=
18941ac_sed_dataroot='
18942/datarootdir/ {
18943 p
18944 q
18945}
18946/@datadir@/p
18947/@docdir@/p
18948/@infodir@/p
18949/@localedir@/p
18950/@mandir@/p'
18951case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18952*datarootdir*) ac_datarootdir_seen=yes;;
18953*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18955$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18956_ACEOF
18957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 ac_datarootdir_hack='
18959 s&@datadir@&$datadir&g
18960 s&@docdir@&$docdir&g
18961 s&@infodir@&$infodir&g
18962 s&@localedir@&$localedir&g
18963 s&@mandir@&$mandir&g
18964 s&\\\${datarootdir}&$datarootdir&g' ;;
18965esac
42ecbf5e 18966_ACEOF
81ecdfbb
RW
18967
18968# Neutralize VPATH when `$srcdir' = `.'.
18969# Shell code in configure.ac might set extrasub.
18970# FIXME: do we really want to maintain this feature?
18971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18972ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18973$extrasub
18974_ACEOF
81ecdfbb 18975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18976:t
18977/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18978s|@configure_input@|$ac_sed_conf_input|;t t
18979s&@top_builddir@&$ac_top_builddir_sub&;t t
18980s&@top_build_prefix@&$ac_top_build_prefix&;t t
18981s&@srcdir@&$ac_srcdir&;t t
18982s&@abs_srcdir@&$ac_abs_srcdir&;t t
18983s&@top_srcdir@&$ac_top_srcdir&;t t
18984s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18985s&@builddir@&$ac_builddir&;t t
18986s&@abs_builddir@&$ac_abs_builddir&;t t
18987s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18988s&@INSTALL@&$ac_INSTALL&;t t
18989s&@MKDIR_P@&$ac_MKDIR_P&;t t
18990$ac_datarootdir_hack
18991"
18992eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18993if $ac_cs_awk_getline; then
18994 $AWK -f "$tmp/subs.awk"
18995else
18996 $AWK -f "$tmp/subs.awk" | $SHELL
18997fi >$tmp/out \
18998 || as_fn_error "could not create $ac_file" "$LINENO" 5
18999
19000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19001 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19004which seems to be undefined. Please make sure it is defined." >&5
19005$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19006which seems to be undefined. Please make sure it is defined." >&2;}
19007
19008 rm -f "$tmp/stdin"
42ecbf5e 19009 case $ac_file in
81ecdfbb
RW
19010 -) cat "$tmp/out" && rm -f "$tmp/out";;
19011 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19012 esac \
19013 || as_fn_error "could not create $ac_file" "$LINENO" 5
19014 ;;
19015 :H)
19016 #
19017 # CONFIG_HEADER
19018 #
42ecbf5e 19019 if test x"$ac_file" != x-; then
81ecdfbb
RW
19020 {
19021 $as_echo "/* $configure_input */" \
19022 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19023 } >"$tmp/config.h" \
19024 || as_fn_error "could not create $ac_file" "$LINENO" 5
19025 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19027$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 19028 else
81ecdfbb
RW
19029 rm -f "$ac_file"
19030 mv "$tmp/config.h" "$ac_file" \
19031 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 19032 fi
42ecbf5e 19033 else
81ecdfbb
RW
19034 $as_echo "/* $configure_input */" \
19035 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19036 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 19037 fi
81ecdfbb
RW
19038# Compute "$ac_file"'s index in $config_headers.
19039_am_arg="$ac_file"
42ecbf5e
DJ
19040_am_stamp_count=1
19041for _am_header in $config_headers :; do
19042 case $_am_header in
81ecdfbb 19043 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
19044 break ;;
19045 * )
19046 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19047 esac
19048done
81ecdfbb
RW
19049echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19050$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051 X"$_am_arg" : 'X\(//\)[^/]' \| \
19052 X"$_am_arg" : 'X\(//\)$' \| \
19053 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19054$as_echo X"$_am_arg" |
19055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19056 s//\1/
19057 q
19058 }
19059 /^X\(\/\/\)[^/].*/{
19060 s//\1/
19061 q
19062 }
19063 /^X\(\/\/\)$/{
19064 s//\1/
19065 q
19066 }
19067 /^X\(\/\).*/{
19068 s//\1/
19069 q
19070 }
19071 s/.*/./; q'`/stamp-h$_am_stamp_count
19072 ;;
42ecbf5e 19073
81ecdfbb
RW
19074 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19075$as_echo "$as_me: executing $ac_file commands" >&6;}
19076 ;;
19077 esac
42ecbf5e
DJ
19078
19079
81ecdfbb
RW
19080 case $ac_file$ac_mode in
19081 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19082 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19083 # are listed without --file. Let's play safe and only enable the eval
19084 # if we detect the quoting.
19085 case $CONFIG_FILES in
19086 *\'*) eval set x "$CONFIG_FILES" ;;
19087 *) set x $CONFIG_FILES ;;
19088 esac
19089 shift
19090 for mf
19091 do
19092 # Strip MF so we end up with the name of the file.
19093 mf=`echo "$mf" | sed -e 's/:.*$//'`
19094 # Check whether this is an Automake generated Makefile or not.
19095 # We used to match only the files named `Makefile.in', but
19096 # some people rename them; so instead we look at the file content.
19097 # Grep'ing the first line is not enough: some people post-process
19098 # each Makefile.in and add a new line on top of each file to say so.
19099 # Grep'ing the whole file is not good either: AIX grep has a line
19100 # limit of 2048, but all sed's we know have understand at least 4000.
19101 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19102 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
19103$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19104 X"$mf" : 'X\(//\)[^/]' \| \
19105 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
19106 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19107$as_echo X"$mf" |
19108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19109 s//\1/
19110 q
19111 }
19112 /^X\(\/\/\)[^/].*/{
19113 s//\1/
19114 q
19115 }
19116 /^X\(\/\/\)$/{
19117 s//\1/
19118 q
19119 }
19120 /^X\(\/\).*/{
19121 s//\1/
19122 q
19123 }
19124 s/.*/./; q'`
19125 else
19126 continue
19127 fi
19128 # Extract the definition of DEPDIR, am__include, and am__quote
19129 # from the Makefile without running `make'.
19130 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19131 test -z "$DEPDIR" && continue
19132 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19133 test -z "am__include" && continue
19134 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19135 # When using ansi2knr, U may be empty or an underscore; expand it
19136 U=`sed -n 's/^U = //p' < "$mf"`
19137 # Find all dependency output files, they are included files with
19138 # $(DEPDIR) in their names. We invoke sed twice because it is the
19139 # simplest approach to changing $(DEPDIR) to its actual value in the
19140 # expansion.
19141 for file in `sed -n "
19142 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19144 # Make sure the directory exists.
19145 test -f "$dirpart/$file" && continue
19146 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19147$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19148 X"$file" : 'X\(//\)[^/]' \| \
19149 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19150 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19151$as_echo X"$file" |
19152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19153 s//\1/
19154 q
19155 }
19156 /^X\(\/\/\)[^/].*/{
19157 s//\1/
19158 q
19159 }
19160 /^X\(\/\/\)$/{
19161 s//\1/
19162 q
19163 }
19164 /^X\(\/\).*/{
19165 s//\1/
19166 q
19167 }
19168 s/.*/./; q'`
19169 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19170 # echo "creating $dirpart/$file"
19171 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19172 done
42ecbf5e 19173 done
81ecdfbb 19174}
d7040cdb 19175 ;;
81ecdfbb 19176 "libtool":C)
d7040cdb
SE
19177
19178 # See if we are running on zsh, and set the options which allow our
19179 # commands through without removal of \ escapes.
19180 if test -n "${ZSH_VERSION+set}" ; then
19181 setopt NO_GLOB_SUBST
19182 fi
19183
19184 cfgfile="${ofile}T"
19185 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19186 $RM "$cfgfile"
19187
19188 cat <<_LT_EOF >> "$cfgfile"
19189#! $SHELL
19190
19191# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19192# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19193# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19194# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19195#
b214d478 19196# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19197# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19198# Written by Gordon Matzigkeit, 1996
d7040cdb 19199#
b214d478 19200# This file is part of GNU Libtool.
d7040cdb 19201#
b214d478
SE
19202# GNU Libtool is free software; you can redistribute it and/or
19203# modify it under the terms of the GNU General Public License as
19204# published by the Free Software Foundation; either version 2 of
19205# the License, or (at your option) any later version.
d7040cdb 19206#
b214d478
SE
19207# As a special exception to the GNU General Public License,
19208# if you distribute this file as part of a program or library that
19209# is built using GNU Libtool, you may include this file under the
19210# same distribution terms that you use for the rest of that program.
d7040cdb 19211#
b214d478
SE
19212# GNU Libtool is distributed in the hope that it will be useful,
19213# but WITHOUT ANY WARRANTY; without even the implied warranty of
19214# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19215# GNU General Public License for more details.
d7040cdb 19216#
b214d478
SE
19217# You should have received a copy of the GNU General Public License
19218# along with GNU Libtool; see the file COPYING. If not, a copy
19219# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19220# obtained by writing to the Free Software Foundation, Inc.,
19221# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19222
19223
19224# The names of the tagged configurations supported by this script.
3cb62297 19225available_tags="CXX "
d7040cdb
SE
19226
19227# ### BEGIN LIBTOOL CONFIG
19228
19229# Which release of libtool.m4 was used?
19230macro_version=$macro_version
19231macro_revision=$macro_revision
19232
19233# Whether or not to build shared libraries.
19234build_libtool_libs=$enable_shared
19235
19236# Whether or not to build static libraries.
19237build_old_libs=$enable_static
19238
19239# What type of objects to build.
19240pic_mode=$pic_mode
19241
19242# Whether or not to optimize for fast installation.
19243fast_install=$enable_fast_install
19244
3725885a
RW
19245# Shell to use when invoking shell scripts.
19246SHELL=$lt_SHELL
19247
19248# An echo program that protects backslashes.
19249ECHO=$lt_ECHO
19250
d7040cdb
SE
19251# The host system.
19252host_alias=$host_alias
19253host=$host
19254host_os=$host_os
19255
19256# The build system.
19257build_alias=$build_alias
19258build=$build
19259build_os=$build_os
19260
19261# A sed program that does not truncate output.
19262SED=$lt_SED
19263
19264# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19265Xsed="\$SED -e 1s/^X//"
19266
19267# A grep program that handles long lines.
19268GREP=$lt_GREP
19269
19270# An ERE matcher.
19271EGREP=$lt_EGREP
19272
19273# A literal string matcher.
19274FGREP=$lt_FGREP
19275
19276# A BSD- or MS-compatible name lister.
19277NM=$lt_NM
19278
19279# Whether we need soft or hard links.
19280LN_S=$lt_LN_S
19281
19282# What is the maximum length of a command?
19283max_cmd_len=$max_cmd_len
19284
19285# Object file suffix (normally "o").
19286objext=$ac_objext
19287
19288# Executable file suffix (normally "").
19289exeext=$exeext
19290
19291# whether the shell understands "unset".
19292lt_unset=$lt_unset
19293
19294# turn spaces into newlines.
19295SP2NL=$lt_lt_SP2NL
19296
19297# turn newlines into spaces.
19298NL2SP=$lt_lt_NL2SP
19299
b214d478
SE
19300# An object symbol dumper.
19301OBJDUMP=$lt_OBJDUMP
19302
d7040cdb
SE
19303# Method to check whether dependent libraries are shared objects.
19304deplibs_check_method=$lt_deplibs_check_method
19305
19306# Command to use when deplibs_check_method == "file_magic".
19307file_magic_cmd=$lt_file_magic_cmd
19308
19309# The archiver.
19310AR=$lt_AR
19311AR_FLAGS=$lt_AR_FLAGS
19312
19313# A symbol stripping program.
19314STRIP=$lt_STRIP
19315
19316# Commands used to install an old-style archive.
19317RANLIB=$lt_RANLIB
19318old_postinstall_cmds=$lt_old_postinstall_cmds
19319old_postuninstall_cmds=$lt_old_postuninstall_cmds
19320
3725885a
RW
19321# Whether to use a lock for old archive extraction.
19322lock_old_archive_extraction=$lock_old_archive_extraction
19323
d7040cdb
SE
19324# A C compiler.
19325LTCC=$lt_CC
19326
19327# LTCC compiler flags.
19328LTCFLAGS=$lt_CFLAGS
19329
19330# Take the output of nm and produce a listing of raw symbols and C names.
19331global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19332
19333# Transform the output of nm in a proper C declaration.
19334global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19335
19336# Transform the output of nm in a C name address pair.
19337global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19338
b214d478
SE
19339# Transform the output of nm in a C name address pair when lib prefix is needed.
19340global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19341
d7040cdb
SE
19342# The name of the directory that contains temporary libtool files.
19343objdir=$objdir
19344
d7040cdb
SE
19345# Used to examine libraries when file_magic_cmd begins with "file".
19346MAGIC_CMD=$MAGIC_CMD
19347
19348# Must we lock files when doing compilation?
19349need_locks=$lt_need_locks
19350
b214d478
SE
19351# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19352DSYMUTIL=$lt_DSYMUTIL
19353
19354# Tool to change global to local symbols on Mac OS X.
19355NMEDIT=$lt_NMEDIT
19356
19357# Tool to manipulate fat objects and archives on Mac OS X.
19358LIPO=$lt_LIPO
19359
19360# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19361OTOOL=$lt_OTOOL
19362
19363# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19364OTOOL64=$lt_OTOOL64
19365
d7040cdb
SE
19366# Old archive suffix (normally "a").
19367libext=$libext
19368
19369# Shared library suffix (normally ".so").
19370shrext_cmds=$lt_shrext_cmds
19371
19372# The commands to extract the exported symbol list from a shared archive.
19373extract_expsyms_cmds=$lt_extract_expsyms_cmds
19374
19375# Variables whose values should be saved in libtool wrapper scripts and
19376# restored at link time.
19377variables_saved_for_relink=$lt_variables_saved_for_relink
19378
19379# Do we need the "lib" prefix for modules?
19380need_lib_prefix=$need_lib_prefix
19381
19382# Do we need a version for libraries?
19383need_version=$need_version
19384
19385# Library versioning type.
19386version_type=$version_type
19387
19388# Shared library runtime path variable.
19389runpath_var=$runpath_var
19390
19391# Shared library path variable.
19392shlibpath_var=$shlibpath_var
19393
19394# Is shlibpath searched before the hard-coded library search path?
19395shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19396
19397# Format of library name prefix.
19398libname_spec=$lt_libname_spec
19399
19400# List of archive names. First name is the real one, the rest are links.
19401# The last name is the one that the linker finds with -lNAME
19402library_names_spec=$lt_library_names_spec
19403
19404# The coded name of the library, if different from the real name.
19405soname_spec=$lt_soname_spec
19406
3725885a
RW
19407# Permission mode override for installation of shared libraries.
19408install_override_mode=$lt_install_override_mode
19409
d7040cdb
SE
19410# Command to use after installation of a shared archive.
19411postinstall_cmds=$lt_postinstall_cmds
19412
19413# Command to use after uninstallation of a shared archive.
19414postuninstall_cmds=$lt_postuninstall_cmds
19415
19416# Commands used to finish a libtool library installation in a directory.
19417finish_cmds=$lt_finish_cmds
19418
19419# As "finish_cmds", except a single script fragment to be evaled but
19420# not shown.
19421finish_eval=$lt_finish_eval
19422
19423# Whether we should hardcode library paths into libraries.
19424hardcode_into_libs=$hardcode_into_libs
19425
19426# Compile-time system search path for libraries.
19427sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19428
19429# Run-time system search path for libraries.
19430sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19431
19432# Whether dlopen is supported.
19433dlopen_support=$enable_dlopen
19434
19435# Whether dlopen of programs is supported.
19436dlopen_self=$enable_dlopen_self
19437
19438# Whether dlopen of statically linked programs is supported.
19439dlopen_self_static=$enable_dlopen_self_static
19440
19441# Commands to strip libraries.
19442old_striplib=$lt_old_striplib
19443striplib=$lt_striplib
19444
19445
19446# The linker used to build libraries.
19447LD=$lt_LD
19448
3725885a
RW
19449# How to create reloadable object files.
19450reload_flag=$lt_reload_flag
19451reload_cmds=$lt_reload_cmds
19452
d7040cdb
SE
19453# Commands used to build an old-style archive.
19454old_archive_cmds=$lt_old_archive_cmds
19455
19456# A language specific compiler.
19457CC=$lt_compiler
19458
19459# Is the compiler the GNU compiler?
19460with_gcc=$GCC
19461
19462# Compiler flag to turn off builtin functions.
19463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19464
19465# How to pass a linker flag through the compiler.
19466wl=$lt_lt_prog_compiler_wl
19467
19468# Additional compiler flags for building library objects.
19469pic_flag=$lt_lt_prog_compiler_pic
19470
19471# Compiler flag to prevent dynamic linking.
19472link_static_flag=$lt_lt_prog_compiler_static
19473
19474# Does compiler simultaneously support -c and -o options?
19475compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19476
19477# Whether or not to add -lc for building shared libraries.
19478build_libtool_need_lc=$archive_cmds_need_lc
19479
19480# Whether or not to disallow shared libs when runtime libs are static.
19481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19482
19483# Compiler flag to allow reflexive dlopens.
19484export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19485
19486# Compiler flag to generate shared objects directly from archives.
19487whole_archive_flag_spec=$lt_whole_archive_flag_spec
19488
19489# Whether the compiler copes with passing no objects directly.
19490compiler_needs_object=$lt_compiler_needs_object
19491
19492# Create an old-style archive from a shared archive.
19493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19494
19495# Create a temporary old-style archive to link instead of a shared archive.
19496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19497
19498# Commands used to build a shared archive.
19499archive_cmds=$lt_archive_cmds
19500archive_expsym_cmds=$lt_archive_expsym_cmds
19501
19502# Commands used to build a loadable module if different from building
19503# a shared archive.
19504module_cmds=$lt_module_cmds
19505module_expsym_cmds=$lt_module_expsym_cmds
19506
19507# Whether we are building with GNU ld or not.
19508with_gnu_ld=$lt_with_gnu_ld
19509
19510# Flag that allows shared libraries with undefined symbols to be built.
19511allow_undefined_flag=$lt_allow_undefined_flag
19512
19513# Flag that enforces no undefined symbols.
19514no_undefined_flag=$lt_no_undefined_flag
19515
19516# Flag to hardcode \$libdir into a binary during linking.
19517# This must work even if \$libdir does not exist
19518hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19519
19520# If ld is used when linking, flag to hardcode \$libdir into a binary
19521# during linking. This must work even if \$libdir does not exist.
19522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19523
19524# Whether we need a single "-rpath" flag with a separated argument.
19525hardcode_libdir_separator=$lt_hardcode_libdir_separator
19526
19527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19528# DIR into the resulting binary.
19529hardcode_direct=$hardcode_direct
19530
19531# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19532# DIR into the resulting binary and the resulting library dependency is
19533# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19534# library is relocated.
19535hardcode_direct_absolute=$hardcode_direct_absolute
19536
19537# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19538# into the resulting binary.
19539hardcode_minus_L=$hardcode_minus_L
19540
19541# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19542# into the resulting binary.
19543hardcode_shlibpath_var=$hardcode_shlibpath_var
19544
19545# Set to "yes" if building a shared library automatically hardcodes DIR
19546# into the library and all subsequent libraries and executables linked
19547# against it.
19548hardcode_automatic=$hardcode_automatic
19549
19550# Set to yes if linker adds runtime paths of dependent libraries
19551# to runtime path list.
19552inherit_rpath=$inherit_rpath
19553
19554# Whether libtool must link a program against all its dependency libraries.
19555link_all_deplibs=$link_all_deplibs
19556
19557# Fix the shell variable \$srcfile for the compiler.
19558fix_srcfile_path=$lt_fix_srcfile_path
19559
19560# Set to "yes" if exported symbols are required.
19561always_export_symbols=$always_export_symbols
19562
19563# The commands to list exported symbols.
19564export_symbols_cmds=$lt_export_symbols_cmds
19565
19566# Symbols that should not be listed in the preloaded symbols.
19567exclude_expsyms=$lt_exclude_expsyms
19568
19569# Symbols that must always be exported.
19570include_expsyms=$lt_include_expsyms
19571
19572# Commands necessary for linking programs (against libraries) with templates.
19573prelink_cmds=$lt_prelink_cmds
19574
19575# Specify filename containing input files.
19576file_list_spec=$lt_file_list_spec
19577
19578# How to hardcode a shared library path into an executable.
19579hardcode_action=$hardcode_action
19580
3cb62297
L
19581# The directories searched by this compiler when creating a shared library.
19582compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19583
19584# Dependencies to place before and after the objects being linked to
19585# create a shared library.
19586predep_objects=$lt_predep_objects
19587postdep_objects=$lt_postdep_objects
19588predeps=$lt_predeps
19589postdeps=$lt_postdeps
19590
19591# The library search path used internally by the compiler when linking
19592# a shared library.
19593compiler_lib_search_path=$lt_compiler_lib_search_path
19594
d7040cdb
SE
19595# ### END LIBTOOL CONFIG
19596
19597_LT_EOF
19598
19599 case $host_os in
19600 aix3*)
19601 cat <<\_LT_EOF >> "$cfgfile"
19602# AIX sometimes has problems with the GCC collect2 program. For some
19603# reason, if we set the COLLECT_NAMES environment variable, the problems
19604# vanish in a puff of smoke.
19605if test "X${COLLECT_NAMES+set}" != Xset; then
19606 COLLECT_NAMES=
19607 export COLLECT_NAMES
19608fi
19609_LT_EOF
19610 ;;
19611 esac
19612
19613
19614ltmain="$ac_aux_dir/ltmain.sh"
19615
19616
19617 # We use sed instead of cat because bash on DJGPP gets confused if
19618 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19619 # text mode, it properly converts lines to CR/LF. This bash problem
19620 # is reportedly fixed, but why not run on old versions too?
19621 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19622 || (rm -f "$cfgfile"; exit 1)
19623
19624 case $xsi_shell in
19625 yes)
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 case ${1} in
19634 */*) func_dirname_result="${1%/*}${2}" ;;
19635 * ) func_dirname_result="${3}" ;;
19636 esac
19637}
19638
19639# func_basename file
19640func_basename ()
19641{
19642 func_basename_result="${1##*/}"
19643}
19644
b214d478
SE
19645# func_dirname_and_basename file append nondir_replacement
19646# perform func_basename and func_dirname in a single function
19647# call:
19648# dirname: Compute the dirname of FILE. If nonempty,
19649# add APPEND to the result, otherwise set result
19650# to NONDIR_REPLACEMENT.
19651# value returned in "$func_dirname_result"
19652# basename: Compute filename of FILE.
19653# value retuned in "$func_basename_result"
19654# Implementation must be kept synchronized with func_dirname
19655# and func_basename. For efficiency, we do not delegate to
19656# those functions but instead duplicate the functionality here.
19657func_dirname_and_basename ()
19658{
19659 case ${1} in
19660 */*) func_dirname_result="${1%/*}${2}" ;;
19661 * ) func_dirname_result="${3}" ;;
19662 esac
19663 func_basename_result="${1##*/}"
19664}
19665
d7040cdb
SE
19666# func_stripname prefix suffix name
19667# strip PREFIX and SUFFIX off of NAME.
19668# PREFIX and SUFFIX must not contain globbing or regex special
19669# characters, hashes, percent signs, but SUFFIX may contain a leading
19670# dot (in which case that matches only a dot).
19671func_stripname ()
19672{
19673 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19674 # positional parameters, so assign one to ordinary parameter first.
19675 func_stripname_result=${3}
19676 func_stripname_result=${func_stripname_result#"${1}"}
19677 func_stripname_result=${func_stripname_result%"${2}"}
19678}
19679
19680# func_opt_split
19681func_opt_split ()
19682{
19683 func_opt_split_opt=${1%%=*}
19684 func_opt_split_arg=${1#*=}
19685}
19686
19687# func_lo2o object
19688func_lo2o ()
19689{
19690 case ${1} in
19691 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19692 *) func_lo2o_result=${1} ;;
19693 esac
19694}
b214d478
SE
19695
19696# func_xform libobj-or-source
19697func_xform ()
19698{
19699 func_xform_result=${1%.*}.lo
19700}
19701
19702# func_arith arithmetic-term...
19703func_arith ()
19704{
19705 func_arith_result=$(( $* ))
19706}
19707
19708# func_len string
19709# STRING may not start with a hyphen.
19710func_len ()
19711{
19712 func_len_result=${#1}
19713}
19714
d7040cdb
SE
19715_LT_EOF
19716 ;;
19717 *) # Bourne compatible functions.
19718 cat << \_LT_EOF >> "$cfgfile"
b214d478 19719
d7040cdb
SE
19720# func_dirname file append nondir_replacement
19721# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19722# otherwise set result to NONDIR_REPLACEMENT.
19723func_dirname ()
19724{
19725 # Extract subdirectory from the argument.
3725885a 19726 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19727 if test "X$func_dirname_result" = "X${1}"; then
19728 func_dirname_result="${3}"
19729 else
19730 func_dirname_result="$func_dirname_result${2}"
19731 fi
19732}
19733
19734# func_basename file
19735func_basename ()
19736{
3725885a 19737 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19738}
19739
b214d478 19740
d7040cdb
SE
19741# func_stripname prefix suffix name
19742# strip PREFIX and SUFFIX off of NAME.
19743# PREFIX and SUFFIX must not contain globbing or regex special
19744# characters, hashes, percent signs, but SUFFIX may contain a leading
19745# dot (in which case that matches only a dot).
19746# func_strip_suffix prefix name
19747func_stripname ()
19748{
19749 case ${2} in
3725885a
RW
19750 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19751 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19752 esac
19753}
19754
19755# sed scripts:
19756my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19757my_sed_long_arg='1s/^-[^=]*=//'
19758
19759# func_opt_split
19760func_opt_split ()
19761{
3725885a
RW
19762 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19763 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19764}
19765
19766# func_lo2o object
19767func_lo2o ()
19768{
3725885a 19769 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19770}
b214d478
SE
19771
19772# func_xform libobj-or-source
19773func_xform ()
19774{
3725885a 19775 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19776}
19777
19778# func_arith arithmetic-term...
19779func_arith ()
19780{
19781 func_arith_result=`expr "$@"`
19782}
19783
19784# func_len string
19785# STRING may not start with a hyphen.
19786func_len ()
19787{
19788 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19789}
19790
d7040cdb
SE
19791_LT_EOF
19792esac
19793
19794case $lt_shell_append in
19795 yes)
19796 cat << \_LT_EOF >> "$cfgfile"
19797
19798# func_append var value
19799# Append VALUE to the end of shell variable VAR.
19800func_append ()
19801{
19802 eval "$1+=\$2"
19803}
19804_LT_EOF
19805 ;;
19806 *)
19807 cat << \_LT_EOF >> "$cfgfile"
19808
19809# func_append var value
19810# Append VALUE to the end of shell variable VAR.
19811func_append ()
19812{
19813 eval "$1=\$$1\$2"
19814}
b214d478 19815
d7040cdb
SE
19816_LT_EOF
19817 ;;
19818 esac
19819
19820
19821 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19822 || (rm -f "$cfgfile"; exit 1)
19823
19824 mv -f "$cfgfile" "$ofile" ||
19825 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19826 chmod +x "$ofile"
19827
3cb62297
L
19828
19829 cat <<_LT_EOF >> "$ofile"
19830
19831# ### BEGIN LIBTOOL TAG CONFIG: CXX
19832
19833# The linker used to build libraries.
19834LD=$lt_LD_CXX
19835
19836# How to create reloadable object files.
19837reload_flag=$lt_reload_flag_CXX
19838reload_cmds=$lt_reload_cmds_CXX
19839
19840# Commands used to build an old-style archive.
19841old_archive_cmds=$lt_old_archive_cmds_CXX
19842
19843# A language specific compiler.
19844CC=$lt_compiler_CXX
19845
19846# Is the compiler the GNU compiler?
19847with_gcc=$GCC_CXX
19848
19849# Compiler flag to turn off builtin functions.
19850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19851
19852# How to pass a linker flag through the compiler.
19853wl=$lt_lt_prog_compiler_wl_CXX
19854
19855# Additional compiler flags for building library objects.
19856pic_flag=$lt_lt_prog_compiler_pic_CXX
19857
19858# Compiler flag to prevent dynamic linking.
19859link_static_flag=$lt_lt_prog_compiler_static_CXX
19860
19861# Does compiler simultaneously support -c and -o options?
19862compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19863
19864# Whether or not to add -lc for building shared libraries.
19865build_libtool_need_lc=$archive_cmds_need_lc_CXX
19866
19867# Whether or not to disallow shared libs when runtime libs are static.
19868allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19869
19870# Compiler flag to allow reflexive dlopens.
19871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19872
19873# Compiler flag to generate shared objects directly from archives.
19874whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19875
19876# Whether the compiler copes with passing no objects directly.
19877compiler_needs_object=$lt_compiler_needs_object_CXX
19878
19879# Create an old-style archive from a shared archive.
19880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19881
19882# Create a temporary old-style archive to link instead of a shared archive.
19883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19884
19885# Commands used to build a shared archive.
19886archive_cmds=$lt_archive_cmds_CXX
19887archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19888
19889# Commands used to build a loadable module if different from building
19890# a shared archive.
19891module_cmds=$lt_module_cmds_CXX
19892module_expsym_cmds=$lt_module_expsym_cmds_CXX
19893
19894# Whether we are building with GNU ld or not.
19895with_gnu_ld=$lt_with_gnu_ld_CXX
19896
19897# Flag that allows shared libraries with undefined symbols to be built.
19898allow_undefined_flag=$lt_allow_undefined_flag_CXX
19899
19900# Flag that enforces no undefined symbols.
19901no_undefined_flag=$lt_no_undefined_flag_CXX
19902
19903# Flag to hardcode \$libdir into a binary during linking.
19904# This must work even if \$libdir does not exist
19905hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19906
19907# If ld is used when linking, flag to hardcode \$libdir into a binary
19908# during linking. This must work even if \$libdir does not exist.
19909hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19910
19911# Whether we need a single "-rpath" flag with a separated argument.
19912hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19913
19914# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19915# DIR into the resulting binary.
19916hardcode_direct=$hardcode_direct_CXX
19917
19918# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19919# DIR into the resulting binary and the resulting library dependency is
19920# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19921# library is relocated.
19922hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19923
19924# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19925# into the resulting binary.
19926hardcode_minus_L=$hardcode_minus_L_CXX
19927
19928# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19929# into the resulting binary.
19930hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19931
19932# Set to "yes" if building a shared library automatically hardcodes DIR
19933# into the library and all subsequent libraries and executables linked
19934# against it.
19935hardcode_automatic=$hardcode_automatic_CXX
19936
19937# Set to yes if linker adds runtime paths of dependent libraries
19938# to runtime path list.
19939inherit_rpath=$inherit_rpath_CXX
19940
19941# Whether libtool must link a program against all its dependency libraries.
19942link_all_deplibs=$link_all_deplibs_CXX
19943
19944# Fix the shell variable \$srcfile for the compiler.
19945fix_srcfile_path=$lt_fix_srcfile_path_CXX
19946
19947# Set to "yes" if exported symbols are required.
19948always_export_symbols=$always_export_symbols_CXX
19949
19950# The commands to list exported symbols.
19951export_symbols_cmds=$lt_export_symbols_cmds_CXX
19952
19953# Symbols that should not be listed in the preloaded symbols.
19954exclude_expsyms=$lt_exclude_expsyms_CXX
19955
19956# Symbols that must always be exported.
19957include_expsyms=$lt_include_expsyms_CXX
19958
19959# Commands necessary for linking programs (against libraries) with templates.
19960prelink_cmds=$lt_prelink_cmds_CXX
19961
19962# Specify filename containing input files.
19963file_list_spec=$lt_file_list_spec_CXX
19964
19965# How to hardcode a shared library path into an executable.
19966hardcode_action=$hardcode_action_CXX
19967
19968# The directories searched by this compiler when creating a shared library.
19969compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19970
19971# Dependencies to place before and after the objects being linked to
19972# create a shared library.
19973predep_objects=$lt_predep_objects_CXX
19974postdep_objects=$lt_postdep_objects_CXX
19975predeps=$lt_predeps_CXX
19976postdeps=$lt_postdeps_CXX
19977
19978# The library search path used internally by the compiler when linking
19979# a shared library.
19980compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19981
19982# ### END LIBTOOL TAG CONFIG: CXX
19983_LT_EOF
19984
42ecbf5e 19985 ;;
81ecdfbb 19986 "default-1":C)
20e95c23
DJ
19987 for ac_file in $CONFIG_FILES; do
19988 # Support "outfile[:infile[:infile...]]"
19989 case "$ac_file" in
19990 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19991 esac
19992 # PO directories have a Makefile.in generated from Makefile.in.in.
19993 case "$ac_file" in */Makefile.in)
19994 # Adjust a relative srcdir.
19995 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19996 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19997 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19998 # In autoconf-2.13 it is called $ac_given_srcdir.
19999 # In autoconf-2.50 it is called $srcdir.
20000 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20001 case "$ac_given_srcdir" in
20002 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20003 /*) top_srcdir="$ac_given_srcdir" ;;
20004 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20005 esac
20006 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20007 rm -f "$ac_dir/POTFILES"
20008 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20009 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20010 POMAKEFILEDEPS="POTFILES.in"
20011 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20012 # on $ac_dir but don't depend on user-specified configuration
20013 # parameters.
20014 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20015 # The LINGUAS file contains the set of available languages.
20016 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 20017 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
20018 fi
20019 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20020 # Hide the ALL_LINGUAS assigment from automake.
20021 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20022 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20023 else
37a42ee9 20024 # The set of available languages was given in configure.ac.
20e95c23
DJ
20025 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20026 fi
20027 case "$ac_given_srcdir" in
20028 .) srcdirpre= ;;
20029 *) srcdirpre='$(srcdir)/' ;;
20030 esac
20031 POFILES=
20032 GMOFILES=
20033 UPDATEPOFILES=
20034 DUMMYPOFILES=
20035 for lang in $ALL_LINGUAS; do
20036 POFILES="$POFILES $srcdirpre$lang.po"
20037 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20038 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20039 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20040 done
20041 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20042 # environment variable.
20043 INST_LINGUAS=
20044 if test -n "$ALL_LINGUAS"; then
20045 for presentlang in $ALL_LINGUAS; do
20046 useit=no
20047 if test "%UNSET%" != "$LINGUAS"; then
20048 desiredlanguages="$LINGUAS"
20049 else
20050 desiredlanguages="$ALL_LINGUAS"
20051 fi
20052 for desiredlang in $desiredlanguages; do
20053 # Use the presentlang catalog if desiredlang is
20054 # a. equal to presentlang, or
20055 # b. a variant of presentlang (because in this case,
20056 # presentlang can be used as a fallback for messages
20057 # which are not translated in the desiredlang catalog).
20058 case "$desiredlang" in
20059 "$presentlang"*) useit=yes;;
20060 esac
20061 done
20062 if test $useit = yes; then
20063 INST_LINGUAS="$INST_LINGUAS $presentlang"
20064 fi
20065 done
20066 fi
20067 CATALOGS=
20068 if test -n "$INST_LINGUAS"; then
20069 for lang in $INST_LINGUAS; do
20070 CATALOGS="$CATALOGS $lang.gmo"
20071 done
20072 fi
20073 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20074 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"
20075 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20076 if test -f "$f"; then
20077 case "$f" in
20078 *.orig | *.bak | *~) ;;
20079 *) cat "$f" >> "$ac_dir/Makefile" ;;
20080 esac
20081 fi
20082 done
20083 fi
20084 ;;
20085 esac
20086 done ;;
33589acb
AM
20087 "default":C)
20088case "$srcdir" in
20089 .) srcdirpre= ;;
20090 *) srcdirpre='$(srcdir)/' ;;
20091esac
20092POFILES=
20093GMOFILES=
20094for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20095 if test $lang != dummy; then
20096 POFILES="$POFILES $srcdirpre$lang.po"
20097 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20098 fi
20099done
20100sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20101 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20102 -e "s,@POFILES@,$POFILES," \
20103 -e "s,@GMOFILES@,$GMOFILES," \
20104 po/Makefile.in > po/Makefile ;;
81ecdfbb 20105
42ecbf5e 20106 esac
81ecdfbb 20107done # for ac_tag
42ecbf5e 20108
42ecbf5e 20109
81ecdfbb 20110as_fn_exit 0
42ecbf5e 20111_ACEOF
42ecbf5e
DJ
20112ac_clean_files=$ac_clean_files_save
20113
81ecdfbb
RW
20114test $ac_write_fail = 0 ||
20115 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20116
42ecbf5e
DJ
20117
20118# configure is writing to config.log, and then calls config.status.
20119# config.status does its own redirection, appending to config.log.
20120# Unfortunately, on DOS this fails, as config.log is still kept open
20121# by configure, so config.status won't be able to write to it; its
20122# output is simply discarded. So we exec the FD to /dev/null,
20123# effectively closing config.log, so it can be properly (re)opened and
20124# appended to by config.status. When coming back to configure, we
20125# need to make the FD available again.
20126if test "$no_create" != yes; then
20127 ac_cs_success=:
20128 ac_config_status_args=
20129 test "$silent" = yes &&
20130 ac_config_status_args="$ac_config_status_args --quiet"
20131 exec 5>/dev/null
20132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20133 exec 5>>config.log
20134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20135 # would make configure fail if this is the last instruction.
81ecdfbb
RW
20136 $ac_cs_success || as_fn_exit $?
20137fi
20138if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20140$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20141fi
252b5132 20142
This page took 1.945271 seconds and 4 git commands to generate.