Use an accessor function for general_symbol_info::language
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
bb695960 3# Generated by GNU Autoconf 2.69 for ld 2.33.50.
d0ac1c44
SM
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
42ecbf5e
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 219do
81ecdfbb
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
81ecdfbb
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 274 else
81ecdfbb
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
42ecbf5e 279 fi
81ecdfbb
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
81ecdfbb
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
42ecbf5e 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
42ecbf5e 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
42ecbf5e 464
42ecbf5e
DJ
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
42ecbf5e 472
81ecdfbb
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
42ecbf5e 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
42ecbf5e 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 490 t loop
81ecdfbb 491 s/-\n.*//
42ecbf5e 492 ' >$as_me.lineno &&
81ecdfbb
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e 495
d0ac1c44
SM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
42ecbf5e
DJ
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
42ecbf5e
DJ
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
42ecbf5e
DJ
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
42ecbf5e 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
42ecbf5e 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 530 as_ln_s='ln -s'
81ecdfbb
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
42ecbf5e 541 fi
42ecbf5e 542else
d0ac1c44 543 as_ln_s='cp -pR'
42ecbf5e 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
42ecbf5e
DJ
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
d7040cdb
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7040cdb 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
81ecdfbb 569
42ecbf5e 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
42ecbf5e
DJ
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
42ecbf5e
DJ
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
42ecbf5e 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
42ecbf5e
DJ
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
42ecbf5e
DJ
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='ld'
589PACKAGE_TARNAME='ld'
bb695960
PB
590PACKAGE_VERSION='2.33.50'
591PACKAGE_STRING='ld 2.33.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
42ecbf5e
DJ
594
595ac_unique_file="ldmain.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
42ecbf5e
DJ
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
42ecbf5e 623# include <inttypes.h>
42ecbf5e 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
629# include <unistd.h>
630#endif"
631
d0ac1c44 632ac_header_list=
81ecdfbb
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
87279e3c 637TESTCTFLIB
81ecdfbb
RW
638TESTBFDLIB
639EMULATION_LIBPATH
640LIB_PATH
641EMUL_EXTRA_OFILES
642EMULATION_OFILES
50ff67e6 643TDIRS
81ecdfbb 644EMUL
c58212ea
L
645elf_plt_unwind_list_options
646elf_shlib_list_options
647elf_list_options
81ecdfbb 648STRINGIFY
1ff6de03
NA
649zlibinc
650zlibdir
02ecc8e9 651enable_initfini_array
5d3236ee
DK
652ENABLE_PLUGINS_FALSE
653ENABLE_PLUGINS_TRUE
81ecdfbb 654NATIVE_LIB_DIRS
81ecdfbb
RW
655HDEFINES
656do_compare
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
81ecdfbb
RW
659LEXLIB
660LEX_OUTPUT_ROOT
661LEX
662YFLAGS
663YACC
664MSGMERGE
665MSGFMT
666MKINSTALLDIRS
667CATOBJEXT
668GENCAT
669INSTOBJEXT
670DATADIRNAME
671CATALOGS
672POSUB
673GMSGFMT
674XGETTEXT
675INCINTL
676LIBINTL_DEP
677LIBINTL
678USE_NLS
6757cf57 679WARN_WRITE_STRINGS
b879806f 680NO_WERROR
c5da1932 681WARN_CFLAGS_FOR_BUILD
b879806f
AM
682WARN_CFLAGS
683installed_linker
684install_as_default
685TARGET_SYSTEM_ROOT_DEFINE
686TARGET_SYSTEM_ROOT
687use_sysroot
3cb62297 688CXXCPP
81ecdfbb
RW
689OTOOL64
690OTOOL
691LIPO
692NMEDIT
693DSYMUTIL
81ecdfbb
RW
694RANLIB
695AR
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703SED
704LIBTOOL
b879806f 705EGREP
b879806f 706CPP
68880f31 707GREP
3cb62297
L
708am__fastdepCXX_FALSE
709am__fastdepCXX_TRUE
710CXXDEPMODE
711ac_ct_CXX
712CXXFLAGS
713CXX
64ac50ac
RW
714MAINT
715MAINTAINER_MODE_FALSE
716MAINTAINER_MODE_TRUE
d0ac1c44
SM
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
81ecdfbb
RW
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
6eb7d830 724am__nodep
81ecdfbb
RW
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
728am__quote
729am__include
730DEPDIR
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754OBJEXT
755EXEEXT
756ac_ct_CC
757CPPFLAGS
758LDFLAGS
759CFLAGS
760CC
761target_os
762target_vendor
763target_cpu
764target
765host_os
766host_vendor
767host_cpu
768host
769build_os
770build_vendor
771build_cpu
772build
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
50ff67e6 811ac_subst_files=''
81ecdfbb
RW
812ac_user_opts='
813enable_option_checking
814enable_dependency_tracking
d0ac1c44 815enable_silent_rules
64ac50ac 816enable_maintainer_mode
b879806f
AM
817enable_shared
818enable_static
819with_pic
820enable_fast_install
821with_gnu_ld
822enable_libtool_lock
823enable_plugins
824enable_largefile
81ecdfbb
RW
825with_lib_path
826enable_targets
827enable_64_bit_bfd
828with_sysroot
4fda8867 829enable_gold
81ecdfbb 830enable_got
6c3bc0f8 831enable_compressed_debug_sections
6734f10a 832enable_new_dtags
647e4d46 833enable_relro
f6aec96d 834enable_separate_code
2760f24c 835enable_default_hash_style
81ecdfbb
RW
836enable_werror
837enable_build_warnings
81ecdfbb 838enable_nls
02ecc8e9 839enable_initfini_array
1ff6de03 840with_system_zlib
81ecdfbb
RW
841'
842 ac_precious_vars='build_alias
843host_alias
844target_alias
845CC
846CFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
3cb62297
L
850CXX
851CXXFLAGS
852CCC
b879806f 853CPP
3cb62297 854CXXCPP
81ecdfbb
RW
855YACC
856YFLAGS'
857
252b5132
RH
858
859# Initialize some variables set by options.
42ecbf5e
DJ
860ac_init_help=
861ac_init_version=false
81ecdfbb
RW
862ac_unrecognized_opts=
863ac_unrecognized_sep=
252b5132
RH
864# The variables have the same names as the options, with
865# dashes changed to underlines.
42ecbf5e 866cache_file=/dev/null
252b5132 867exec_prefix=NONE
252b5132 868no_create=
252b5132
RH
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
252b5132
RH
877verbose=
878x_includes=NONE
879x_libraries=NONE
42ecbf5e
DJ
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 886# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
252b5132
RH
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
252b5132
RH
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
2e98a7bd 897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
252b5132 906
252b5132 907ac_prev=
81ecdfbb 908ac_dashdash=
252b5132
RH
909for ac_option
910do
252b5132
RH
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
81ecdfbb 913 eval $ac_prev=\$ac_option
252b5132
RH
914 ac_prev=
915 continue
916 fi
917
81ecdfbb 918 case $ac_option in
d0ac1c44
SM
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
81ecdfbb 922 esac
252b5132
RH
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
81ecdfbb
RW
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
252b5132
RH
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 933 bindir=$ac_optarg ;;
252b5132
RH
934
935 -build | --build | --buil | --bui | --bu)
42ecbf5e 936 ac_prev=build_alias ;;
252b5132 937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 938 build_alias=$ac_optarg ;;
252b5132
RH
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
252b5132 949
81ecdfbb 950 -datadir | --datadir | --datadi | --datad)
252b5132 951 ac_prev=datadir ;;
81ecdfbb 952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 953 datadir=$ac_optarg ;;
252b5132 954
81ecdfbb
RW
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
252b5132 962 -disable-* | --disable-*)
81ecdfbb 963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 964 # Reject names that are not valid shell variable names.
81ecdfbb 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 966 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
252b5132
RH
987
988 -enable-* | --enable-*)
81ecdfbb 989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 990 # Reject names that are not valid shell variable names.
81ecdfbb 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 992 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
252b5132 1001 esac
81ecdfbb 1002 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1011 exec_prefix=$ac_optarg ;;
252b5132
RH
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
42ecbf5e
DJ
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
252b5132
RH
1023
1024 -host | --host | --hos | --ho)
42ecbf5e 1025 ac_prev=host_alias ;;
252b5132 1026 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1027 host_alias=$ac_optarg ;;
252b5132 1028
81ecdfbb
RW
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
252b5132
RH
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1040 includedir=$ac_optarg ;;
252b5132
RH
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1045 infodir=$ac_optarg ;;
252b5132
RH
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1050 libdir=$ac_optarg ;;
252b5132
RH
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1057 libexecdir=$ac_optarg ;;
252b5132 1058
81ecdfbb
RW
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
252b5132 1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1065 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1069 localstatedir=$ac_optarg ;;
252b5132
RH
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1074 mandir=$ac_optarg ;;
252b5132
RH
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1081 | --no-cr | --no-c | -n)
252b5132
RH
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1095 oldincludedir=$ac_optarg ;;
252b5132
RH
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1100 prefix=$ac_optarg ;;
252b5132
RH
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1107 program_prefix=$ac_optarg ;;
252b5132
RH
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1114 program_suffix=$ac_optarg ;;
252b5132
RH
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1131 program_transform_name=$ac_optarg ;;
252b5132 1132
81ecdfbb
RW
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
252b5132
RH
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
42ecbf5e 1151 sbindir=$ac_optarg ;;
252b5132
RH
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
42ecbf5e 1162 sharedstatedir=$ac_optarg ;;
252b5132
RH
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
42ecbf5e 1167 site=$ac_optarg ;;
85fbca6a 1168
252b5132
RH
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1172 srcdir=$ac_optarg ;;
252b5132
RH
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1179 sysconfdir=$ac_optarg ;;
252b5132
RH
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1182 ac_prev=target_alias ;;
252b5132 1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1184 target_alias=$ac_optarg ;;
252b5132
RH
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
42ecbf5e
DJ
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
252b5132
RH
1191
1192 -with-* | --with-*)
81ecdfbb 1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1194 # Reject names that are not valid shell variable names.
81ecdfbb 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1196 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
252b5132 1205 esac
81ecdfbb 1206 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1207
1208 -without-* | --without-*)
81ecdfbb 1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1210 # Reject names that are not valid shell variable names.
81ecdfbb 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1212 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
252b5132
RH
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1233 x_includes=$ac_optarg ;;
252b5132
RH
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1240 x_libraries=$ac_optarg ;;
252b5132 1241
d0ac1c44
SM
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
252b5132
RH
1244 ;;
1245
42ecbf5e
DJ
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1252 esac
1253 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1254 export $ac_envvar ;;
1255
252b5132 1256 *)
42ecbf5e 1257 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
42ecbf5e 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1269 as_fn_error $? "missing argument to $ac_option"
252b5132 1270fi
252b5132 1271
81ecdfbb
RW
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
d0ac1c44 1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1277 esac
81ecdfbb 1278fi
252b5132 1279
81ecdfbb
RW
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e0b2a78c 1284 libdir localedir mandir
252b5132 1285do
81ecdfbb
RW
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
42ecbf5e 1294 case $ac_val in
81ecdfbb
RW
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1297 esac
d0ac1c44 1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1299done
1300
42ecbf5e
DJ
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
42ecbf5e
DJ
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
e5a52504 1316
42ecbf5e
DJ
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
252b5132 1321
252b5132 1322
81ecdfbb
RW
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1326 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1328 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1329
1330
252b5132
RH
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
81ecdfbb
RW
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
252b5132 1358 srcdir=$ac_confdir
81ecdfbb 1359 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
81ecdfbb
RW
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
d0ac1c44 1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
252b5132 1389
42ecbf5e
DJ
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
bb695960 1397\`configure' configures ld 2.33.50 to adapt to many kinds of systems.
252b5132 1398
42ecbf5e 1399Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1400
42ecbf5e
DJ
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1403
42ecbf5e 1404Defaults for the options are specified in brackets.
ac48eca1 1405
42ecbf5e
DJ
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
d0ac1c44 1411 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
42ecbf5e
DJ
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1419 [$ac_default_prefix]
42ecbf5e 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1421 [PREFIX]
ac48eca1 1422
42ecbf5e
DJ
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
ac48eca1 1427
42ecbf5e 1428For better control, use the options below.
ac48eca1 1429
42ecbf5e 1430Fine tuning of the installation directories:
81ecdfbb
RW
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1445 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1450_ACEOF
ac48eca1 1451
42ecbf5e 1452 cat <<\_ACEOF
252b5132 1453
42ecbf5e
DJ
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1458
42ecbf5e
DJ
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463_ACEOF
252b5132 1464fi
252b5132 1465
42ecbf5e 1466if test -n "$ac_init_help"; then
2e98a7bd 1467 case $ac_init_help in
bb695960 1468 short | recursive ) echo "Configuration of ld 2.33.50:";;
2e98a7bd 1469 esac
42ecbf5e 1470 cat <<\_ACEOF
e5a52504 1471
42ecbf5e 1472Optional Features:
81ecdfbb 1473 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
b879806f
AM
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-plugins Enable support for plugins
1491 --disable-largefile omit support for large files
ce2cded5
L
1492 --enable-targets alternative target configurations
1493 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1494 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1495 --enable-got=<type> GOT handling scheme (target, single, negative,
1496 multigot)
4894d80b
L
1497 --enable-compressed-debug-sections={all,ld,none}
1498 compress debug sections by default]
6734f10a 1499 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1500 --enable-relro enable -z relro in ELF linker by default
f6aec96d 1501 --enable-separate-code enable -z separate-code in ELF linker by default
2760f24c
RG
1502 --enable-default-hash-style={sysv,gnu,both}
1503 use this default hash style
ce2cded5
L
1504 --enable-werror treat compile warnings as errors
1505 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1506 --disable-nls do not use Native Language Support
26e3a0c9 1507 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1508
1509Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1515 --with-lib-path=dir1:dir2... set default LIB_PATH
1516 --with-sysroot=DIR Search for usr/lib et al within DIR.
1ff6de03 1517 --with-system-zlib use installed libz
42ecbf5e
DJ
1518
1519Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
81ecdfbb 1524 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1526 you have headers in a nonstandard directory <include dir>
3cb62297
L
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
b879806f 1529 CPP C preprocessor
3cb62297 1530 CXXCPP C++ preprocessor
d0ac1c44
SM
1531 YACC The `Yet Another Compiler Compiler' implementation to use.
1532 Defaults to the first program found out of: `bison -y', `byacc',
1533 `yacc'.
81ecdfbb
RW
1534 YFLAGS The list of arguments that will be passed by default to $YACC.
1535 This script will default YFLAGS to the empty string to avoid a
1536 default value of `-d' given by some make applications.
42ecbf5e
DJ
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
81ecdfbb 1541Report bugs to the package provider.
42ecbf5e 1542_ACEOF
81ecdfbb 1543ac_status=$?
42ecbf5e
DJ
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
42ecbf5e 1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
42ecbf5e
DJ
1552 ac_builddir=.
1553
81ecdfbb
RW
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1569
1570case $srcdir in
81ecdfbb 1571 .) # We are building in place.
42ecbf5e 1572 ac_srcdir=.
81ecdfbb
RW
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1576 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1583esac
81ecdfbb
RW
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1594 else
81ecdfbb
RW
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1598 done
a2d91340
AC
1599fi
1600
81ecdfbb 1601test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1602if $ac_init_version; then
1603 cat <<\_ACEOF
bb695960 1604ld configure 2.33.50
d0ac1c44 1605generated by GNU Autoconf 2.69
a2d91340 1606
d0ac1c44 1607Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
81ecdfbb 1611 exit
42ecbf5e 1612fi
a2d91340 1613
81ecdfbb
RW
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
a2d91340 1617
81ecdfbb
RW
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1648
81ecdfbb
RW
1649 ac_retval=1
1650fi
d0ac1c44
SM
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
81ecdfbb
RW
1653
1654} # ac_fn_c_try_compile
1655
1656# ac_fn_c_try_link LINENO
1657# -----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_link ()
42ecbf5e 1660{
81ecdfbb
RW
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
d0ac1c44 1683 test -x conftest$ac_exeext
81ecdfbb
RW
1684 }; then :
1685 ac_retval=0
1686else
1687 $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1689
81ecdfbb
RW
1690 ac_retval=1
1691fi
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
42ecbf5e 1699
81ecdfbb 1700} # ac_fn_c_try_link
42ecbf5e 1701
b879806f
AM
1702# ac_fn_cxx_try_compile LINENO
1703# ----------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_cxx_try_compile ()
81ecdfbb
RW
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
81ecdfbb
RW
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
b879806f 1716 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1726 test ! -s conftest.err
b879806f 1727 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
b879806f 1733 ac_retval=1
81ecdfbb 1734fi
d0ac1c44
SM
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
81ecdfbb 1737
b879806f 1738} # ac_fn_cxx_try_compile
81ecdfbb 1739
b879806f
AM
1740# ac_fn_c_try_cpp LINENO
1741# ----------------------
1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_cpp ()
3cb62297
L
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
b879806f 1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1761 test $ac_status = 0; } > conftest.i && {
b879806f 1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1763 test ! -s conftest.err
b879806f 1764 }; then :
3cb62297
L
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
b879806f 1770 ac_retval=1
3cb62297 1771fi
d0ac1c44
SM
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
3cb62297 1774
b879806f 1775} # ac_fn_c_try_cpp
3cb62297 1776
81ecdfbb
RW
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1785 if eval \${$3+:} false; then :
81ecdfbb
RW
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1788if eval \${$3+:} false; then :
81ecdfbb
RW
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
d0ac1c44 1824rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1851if eval \${$3+:} false; then :
81ecdfbb
RW
1852 $as_echo_n "(cached) " >&6
1853else
1854 eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
d0ac1c44 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1892 ac_retval=0
1893else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=$ac_status
1899fi
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
81ecdfbb
RW
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1915if eval \${$3+:} false; then :
81ecdfbb
RW
1916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
d0ac1c44 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1934
1935} # ac_fn_c_check_header_compile
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1945if eval \${$3+:} false; then :
81ecdfbb
RW
1946 $as_echo_n "(cached) " >&6
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991else
1992 eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
d0ac1c44 2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2001
2002} # ac_fn_c_check_func
2003
3cb62297
L
2004# ac_fn_cxx_try_cpp LINENO
2005# ------------------------
2006# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2007ac_fn_cxx_try_cpp ()
2008{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_cpp conftest.$ac_ext"
2011case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2023 fi
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2025 test $ac_status = 0; } > conftest.i && {
3cb62297
L
2026 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 }; then :
2029 ac_retval=0
2030else
2031 $as_echo "$as_me: failed program was:" >&5
2032sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=1
2035fi
d0ac1c44
SM
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
3cb62297
L
2038
2039} # ac_fn_cxx_try_cpp
2040
2041# ac_fn_cxx_try_link LINENO
2042# -------------------------
2043# Try to link conftest.$ac_ext, and return whether this succeeded.
2044ac_fn_cxx_try_link ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2049case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2052esac
2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054$as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2056 ac_status=$?
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2061 fi
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_cxx_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
d0ac1c44 2068 test -x conftest$ac_exeext
3cb62297
L
2069 }; then :
2070 ac_retval=0
2071else
2072 $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076fi
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
3cb62297
L
2084
2085} # ac_fn_cxx_try_link
2086
d0ac1c44
SM
2087# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2088# ---------------------------------------------
2089# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2090# accordingly.
81ecdfbb
RW
2091ac_fn_c_check_decl ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2094 as_decl_name=`echo $2|sed 's/ *(.*//'`
2095 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2097$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2098if eval \${$3+:} false; then :
81ecdfbb
RW
2099 $as_echo_n "(cached) " >&6
2100else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104int
2105main ()
2106{
360cfc9c
AM
2107#ifndef $as_decl_name
2108#ifdef __cplusplus
2109 (void) $as_decl_use;
2110#else
2111 (void) $as_decl_name;
2112#endif
81ecdfbb
RW
2113#endif
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 eval "$3=yes"
2121else
2122 eval "$3=no"
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
d0ac1c44 2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2130
2131} # ac_fn_c_check_decl
2132
2133# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2134# --------------------------------------------
2135# Tries to find the compile-time value of EXPR in a program that includes
2136# INCLUDES, setting VAR accordingly. Returns whether the value could be
2137# computed
2138ac_fn_c_compute_int ()
2139{
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if test "$cross_compiling" = yes; then
2142 # Depending upon the size, compute the lo and hi bounds.
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
2150test_array [0] = 0;
2151return test_array [0];
81ecdfbb
RW
2152
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=0 ac_mid=0
2159 while :; do
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162$4
2163int
2164main ()
2165{
2166static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2167test_array [0] = 0;
2168return test_array [0];
81ecdfbb
RW
2169
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=$ac_mid; break
2176else
2177 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178 if test $ac_lo -le $ac_mid; then
2179 ac_lo= ac_hi=
2180 break
2181 fi
2182 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 done
2186else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$4
2190int
2191main ()
2192{
2193static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2194test_array [0] = 0;
2195return test_array [0];
81ecdfbb
RW
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_hi=-1 ac_mid=-1
2203 while :; do
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2211test_array [0] = 0;
2212return test_array [0];
81ecdfbb
RW
2213
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_lo=$ac_mid; break
2220else
2221 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2222 if test $ac_mid -le $ac_hi; then
2223 ac_lo= ac_hi=
2224 break
2225 fi
2226 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 done
2230else
2231 ac_lo= ac_hi=
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236# Binary search between lo and hi bounds.
2237while test "x$ac_lo" != "x$ac_hi"; do
2238 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$4
2242int
2243main ()
2244{
2245static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2246test_array [0] = 0;
2247return test_array [0];
81ecdfbb
RW
2248
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=$ac_mid
2255else
2256 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259done
2260case $ac_lo in #((
2261?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2262'') ac_retval=1 ;;
2263esac
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268static long int longval () { return $2; }
2269static unsigned long int ulongval () { return $2; }
2270#include <stdio.h>
2271#include <stdlib.h>
2272int
2273main ()
2274{
2275
2276 FILE *f = fopen ("conftest.val", "w");
2277 if (! f)
2278 return 1;
2279 if (($2) < 0)
2280 {
2281 long int i = longval ();
2282 if (i != ($2))
2283 return 1;
2284 fprintf (f, "%ld", i);
2285 }
2286 else
2287 {
2288 unsigned long int i = ulongval ();
2289 if (i != ($2))
2290 return 1;
2291 fprintf (f, "%lu", i);
2292 }
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2296
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_run "$LINENO"; then :
2302 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2303else
2304 ac_retval=1
2305fi
2306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2307 conftest.$ac_objext conftest.beam conftest.$ac_ext
2308rm -f conftest.val
2309
2310 fi
d0ac1c44
SM
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status $ac_retval
81ecdfbb
RW
2313
2314} # ac_fn_c_compute_int
2315cat >config.log <<_ACEOF
2316This file contains any messages produced by compilers while
2317running configure, to aid debugging if configure makes a mistake.
2318
bb695960 2319It was created by ld $as_me 2.33.50, which was
d0ac1c44 2320generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2321
2322 $ $0 $@
2323
2324_ACEOF
2325exec 5>>config.log
2326{
2327cat <<_ASUNAME
2328## --------- ##
2329## Platform. ##
2330## --------- ##
2331
2332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337
2338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2340
2341/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2342/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2345/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2346/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2347/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2348
2349_ASUNAME
2350
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2356 $as_echo "PATH: $as_dir"
2357 done
2358IFS=$as_save_IFS
252b5132 2359
42ecbf5e 2360} >&5
5d64ca4e 2361
42ecbf5e 2362cat >&5 <<_ACEOF
5d64ca4e 2363
5d64ca4e 2364
42ecbf5e
DJ
2365## ----------- ##
2366## Core tests. ##
2367## ----------- ##
5d64ca4e 2368
42ecbf5e 2369_ACEOF
2469cfa2 2370
42ecbf5e
DJ
2371
2372# Keep a trace of the command line.
2373# Strip out --no-create and --no-recursion so they do not pile up.
2374# Strip out --silent because we don't want to record it for future runs.
2375# Also quote any args containing shell meta-characters.
2376# Make two passes to allow for proper duplicate-argument suppression.
2377ac_configure_args=
2378ac_configure_args0=
2379ac_configure_args1=
42ecbf5e
DJ
2380ac_must_keep_next=false
2381for ac_pass in 1 2
2382do
2383 for ac_arg
2384 do
2385 case $ac_arg in
2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388 | -silent | --silent | --silen | --sile | --sil)
2389 continue ;;
81ecdfbb
RW
2390 *\'*)
2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2392 esac
2393 case $ac_pass in
81ecdfbb 2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2395 2)
81ecdfbb 2396 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2397 if test $ac_must_keep_next = true; then
2398 ac_must_keep_next=false # Got value, back to normal.
2399 else
2400 case $ac_arg in
2401 *=* | --config-cache | -C | -disable-* | --disable-* \
2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404 | -with-* | --with-* | -without-* | --without-* | --x)
2405 case "$ac_configure_args0 " in
2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 esac
2408 ;;
2409 -* ) ac_must_keep_next=true ;;
2410 esac
2411 fi
81ecdfbb 2412 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2413 ;;
2414 esac
2415 done
2416done
81ecdfbb
RW
2417{ ac_configure_args0=; unset ac_configure_args0;}
2418{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2419
2420# When interrupted or exit'd, cleanup temporary files, and complete
2421# config.log. We remove comments because anyway the quotes in there
2422# would cause problems or look ugly.
81ecdfbb
RW
2423# WARNING: Use '\'' to represent an apostrophe within the trap.
2424# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2425trap 'exit_status=$?
2426 # Save into config.log some information that might help in debugging.
2427 {
2428 echo
2429
d0ac1c44 2430 $as_echo "## ---------------- ##
42ecbf5e 2431## Cache variables. ##
d0ac1c44 2432## ---------------- ##"
42ecbf5e
DJ
2433 echo
2434 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2435(
2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
42ecbf5e 2451 (set) 2>&1 |
81ecdfbb
RW
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
42ecbf5e 2454 sed -n \
81ecdfbb
RW
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
42ecbf5e 2458 *)
81ecdfbb 2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2460 ;;
81ecdfbb
RW
2461 esac |
2462 sort
2463)
42ecbf5e
DJ
2464 echo
2465
d0ac1c44 2466 $as_echo "## ----------------- ##
42ecbf5e 2467## Output variables. ##
d0ac1c44 2468## ----------------- ##"
42ecbf5e
DJ
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
81ecdfbb
RW
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
d0ac1c44 2481 $as_echo "## ------------------- ##
81ecdfbb 2482## File substitutions. ##
d0ac1c44 2483## ------------------- ##"
42ecbf5e
DJ
2484 echo
2485 for ac_var in $ac_subst_files
2486 do
81ecdfbb
RW
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2492 done | sort
2493 echo
2494 fi
2495
2496 if test -s confdefs.h; then
d0ac1c44 2497 $as_echo "## ----------- ##
42ecbf5e 2498## confdefs.h. ##
d0ac1c44 2499## ----------- ##"
42ecbf5e 2500 echo
81ecdfbb 2501 cat confdefs.h
42ecbf5e
DJ
2502 echo
2503 fi
2504 test "$ac_signal" != 0 &&
81ecdfbb
RW
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2507 } >&5
81ecdfbb
RW
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2510 exit $exit_status
81ecdfbb 2511' 0
42ecbf5e 2512for ac_signal in 1 2 13 15; do
81ecdfbb 2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2514done
2515ac_signal=0
2516
2517# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2518rm -f -r conftest* confdefs.h
2519
2520$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2521
2522# Predefined preprocessor variables.
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_NAME "$PACKAGE_NAME"
2526_ACEOF
2527
42ecbf5e
DJ
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530_ACEOF
2531
42ecbf5e
DJ
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_VERSION "$PACKAGE_VERSION"
2534_ACEOF
2535
42ecbf5e
DJ
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_STRING "$PACKAGE_STRING"
2538_ACEOF
2539
42ecbf5e
DJ
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542_ACEOF
2543
81ecdfbb
RW
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_URL "$PACKAGE_URL"
2546_ACEOF
2547
42ecbf5e
DJ
2548
2549# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2550# Prefer an explicitly selected file to automatically selected ones.
2551ac_site_file1=NONE
2552ac_site_file2=NONE
2553if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2554 # We do not want a PATH search for config.site.
2555 case $CONFIG_SITE in #((
2556 -*) ac_site_file1=./$CONFIG_SITE;;
2557 */*) ac_site_file1=$CONFIG_SITE;;
2558 *) ac_site_file1=./$CONFIG_SITE;;
2559 esac
81ecdfbb
RW
2560elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
2563else
2564 ac_site_file1=$ac_default_prefix/share/config.site
2565 ac_site_file2=$ac_default_prefix/etc/config.site
2566fi
2567for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568do
2569 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2573 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2574 . "$ac_site_file" \
2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577as_fn_error $? "failed to load site script $ac_site_file
2578See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2579 fi
2580done
2581
2582if test -r "$cache_file"; then
d0ac1c44
SM
2583 # Some versions of bash will fail to source /dev/null (special files
2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2588 case $cache_file in
81ecdfbb
RW
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
42ecbf5e
DJ
2591 esac
2592 fi
2593else
81ecdfbb
RW
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2596 >$cache_file
2597fi
2598
d0ac1c44
SM
2599as_fn_append ac_header_list " stdlib.h"
2600as_fn_append ac_header_list " unistd.h"
2601as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2602# Check that the precious variables saved in the cache have kept the same
2603# value.
2604ac_cache_corrupted=false
81ecdfbb 2605for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2610 case $ac_old_set,$ac_new_set in
2611 set,)
81ecdfbb
RW
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2614 ac_cache_corrupted=: ;;
2615 ,set)
81ecdfbb
RW
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2618 ac_cache_corrupted=: ;;
2619 ,);;
2620 *)
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2638 fi;;
2639 esac
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2642 case $ac_new_val in
81ecdfbb 2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2645 esac
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2649 esac
2650 fi
2651done
2652if $ac_cache_corrupted; then
81ecdfbb
RW
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2658fi
81ecdfbb
RW
2659## -------------------- ##
2660## Main body of script. ##
2661## -------------------- ##
42ecbf5e
DJ
2662
2663ac_ext=c
2664ac_cpp='$CPP $CPPFLAGS'
2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
2669
2670
42ecbf5e 2671
da594c4a 2672
42ecbf5e
DJ
2673
2674
2675ac_aux_dir=
81ecdfbb 2676for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2677 if test -f "$ac_dir/install-sh"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2680 break
2681 elif test -f "$ac_dir/install.sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2684 break
2685 elif test -f "$ac_dir/shtool"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 break
2689 fi
42ecbf5e
DJ
2690done
2691if test -z "$ac_aux_dir"; then
d0ac1c44 2692 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2693fi
81ecdfbb
RW
2694
2695# These three variables are undocumented and unsupported,
2696# and are intended to be withdrawn in a future Autoconf release.
2697# They can cause serious problems if a builder's source tree is in a directory
2698# whose full name contains unusual characters.
2699ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2702
42ecbf5e
DJ
2703
2704# Make sure we can run config.sub.
81ecdfbb 2705$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2706 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2707
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2709$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2710if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2711 $as_echo_n "(cached) " >&6
2712else
2713 ac_build_alias=$build_alias
2714test "x$ac_build_alias" = x &&
2715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2716test "x$ac_build_alias" = x &&
d0ac1c44 2717 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2718ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2719 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2720
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2723$as_echo "$ac_cv_build" >&6; }
2724case $ac_cv_build in
2725*-*-*) ;;
d0ac1c44 2726*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2727esac
42ecbf5e 2728build=$ac_cv_build
81ecdfbb
RW
2729ac_save_IFS=$IFS; IFS='-'
2730set x $ac_cv_build
2731shift
2732build_cpu=$1
2733build_vendor=$2
2734shift; shift
2735# Remember, the first character of IFS is used to create $*,
2736# except with old shells:
2737build_os=$*
2738IFS=$ac_save_IFS
2739case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2740
2741
81ecdfbb
RW
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2743$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2744if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2745 $as_echo_n "(cached) " >&6
2746else
2747 if test "x$host_alias" = x; then
2748 ac_cv_host=$ac_cv_build
42ecbf5e 2749else
81ecdfbb 2750 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2751 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2752fi
42ecbf5e
DJ
2753
2754fi
81ecdfbb
RW
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2756$as_echo "$ac_cv_host" >&6; }
2757case $ac_cv_host in
2758*-*-*) ;;
d0ac1c44 2759*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2760esac
42ecbf5e 2761host=$ac_cv_host
81ecdfbb
RW
2762ac_save_IFS=$IFS; IFS='-'
2763set x $ac_cv_host
2764shift
2765host_cpu=$1
2766host_vendor=$2
2767shift; shift
2768# Remember, the first character of IFS is used to create $*,
2769# except with old shells:
2770host_os=$*
2771IFS=$ac_save_IFS
2772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2773
2774
81ecdfbb
RW
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2776$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2777if ${ac_cv_target+:} false; then :
81ecdfbb 2778 $as_echo_n "(cached) " >&6
42ecbf5e 2779else
81ecdfbb
RW
2780 if test "x$target_alias" = x; then
2781 ac_cv_target=$ac_cv_host
2782else
2783 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2784 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2785fi
42ecbf5e
DJ
2786
2787fi
81ecdfbb
RW
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2789$as_echo "$ac_cv_target" >&6; }
2790case $ac_cv_target in
2791*-*-*) ;;
d0ac1c44 2792*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2793esac
42ecbf5e 2794target=$ac_cv_target
81ecdfbb
RW
2795ac_save_IFS=$IFS; IFS='-'
2796set x $ac_cv_target
2797shift
2798target_cpu=$1
2799target_vendor=$2
2800shift; shift
2801# Remember, the first character of IFS is used to create $*,
2802# except with old shells:
2803target_os=$*
2804IFS=$ac_save_IFS
2805case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2806
2807
2808# The aliases save the names the user supplied, while $host etc.
2809# will get canonicalized.
2810test -n "$target_alias" &&
2811 test "$program_prefix$program_suffix$program_transform_name" = \
2812 NONENONEs,x,x, &&
2813 program_prefix=${target_alias}-
02ecc8e9 2814
d0ac1c44
SM
2815# Expand $ac_aux_dir to an absolute path.
2816am_aux_dir=`cd "$ac_aux_dir" && pwd`
2817
42ecbf5e
DJ
2818ac_ext=c
2819ac_cpp='$CPP $CPPFLAGS'
2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2825set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2828if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2829 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2830else
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
81ecdfbb 2839 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2843 break 2
2844 fi
2845done
81ecdfbb
RW
2846 done
2847IFS=$as_save_IFS
42ecbf5e
DJ
2848
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
81ecdfbb
RW
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854$as_echo "$CC" >&6; }
42ecbf5e 2855else
81ecdfbb
RW
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
42ecbf5e
DJ
2858fi
2859
81ecdfbb 2860
42ecbf5e
DJ
2861fi
2862if test -z "$ac_cv_prog_CC"; then
2863 ac_ct_CC=$CC
2864 # Extract the first word of "gcc", so it can be a program name with args.
2865set dummy gcc; ac_word=$2
81ecdfbb
RW
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2868if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2869 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2870else
2871 if test -n "$ac_ct_CC"; then
2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
81ecdfbb 2879 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2881 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2883 break 2
2884 fi
2885done
81ecdfbb
RW
2886 done
2887IFS=$as_save_IFS
42ecbf5e
DJ
2888
2889fi
2890fi
2891ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2894$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2895else
81ecdfbb
RW
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897$as_echo "no" >&6; }
42ecbf5e
DJ
2898fi
2899
81ecdfbb
RW
2900 if test "x$ac_ct_CC" = x; then
2901 CC=""
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904yes:)
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907ac_tool_warned=yes ;;
2908esac
2909 CC=$ac_ct_CC
2910 fi
42ecbf5e
DJ
2911else
2912 CC="$ac_cv_prog_CC"
2913fi
2914
2915if test -z "$CC"; then
81ecdfbb
RW
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2918set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2921if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2922 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2923else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
81ecdfbb 2932 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2934 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2936 break 2
2937 fi
2938done
81ecdfbb
RW
2939 done
2940IFS=$as_save_IFS
42ecbf5e
DJ
2941
2942fi
2943fi
2944CC=$ac_cv_prog_CC
2945if test -n "$CC"; then
81ecdfbb
RW
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947$as_echo "$CC" >&6; }
42ecbf5e 2948else
81ecdfbb
RW
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950$as_echo "no" >&6; }
42ecbf5e
DJ
2951fi
2952
42ecbf5e 2953
81ecdfbb 2954 fi
42ecbf5e
DJ
2955fi
2956if test -z "$CC"; then
2957 # Extract the first word of "cc", so it can be a program name with args.
2958set dummy cc; ac_word=$2
81ecdfbb
RW
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2961if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2962 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2963else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966else
2967 ac_prog_rejected=no
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
81ecdfbb 2973 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e
DJ
2975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2976 ac_prog_rejected=yes
2977 continue
2978 fi
2979 ac_cv_prog_CC="cc"
81ecdfbb 2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2981 break 2
2982 fi
2983done
81ecdfbb
RW
2984 done
2985IFS=$as_save_IFS
42ecbf5e
DJ
2986
2987if test $ac_prog_rejected = yes; then
2988 # We found a bogon in the path, so make sure we never use it.
2989 set dummy $ac_cv_prog_CC
2990 shift
2991 if test $# != 0; then
2992 # We chose a different compiler from the bogus one.
2993 # However, it has the same basename, so the bogon will be chosen
2994 # first if we set CC to just the basename; use the full file name.
2995 shift
2996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2997 fi
2998fi
2999fi
3000fi
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
81ecdfbb
RW
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004$as_echo "$CC" >&6; }
42ecbf5e 3005else
81ecdfbb
RW
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
42ecbf5e
DJ
3008fi
3009
81ecdfbb 3010
42ecbf5e
DJ
3011fi
3012if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
81ecdfbb 3014 for ac_prog in cl.exe
42ecbf5e
DJ
3015 do
3016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3020if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3021 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3022else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025else
3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH
3028do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
81ecdfbb 3031 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3035 break 2
3036 fi
3037done
81ecdfbb
RW
3038 done
3039IFS=$as_save_IFS
42ecbf5e
DJ
3040
3041fi
3042fi
3043CC=$ac_cv_prog_CC
3044if test -n "$CC"; then
81ecdfbb
RW
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046$as_echo "$CC" >&6; }
42ecbf5e 3047else
81ecdfbb
RW
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049$as_echo "no" >&6; }
42ecbf5e
DJ
3050fi
3051
81ecdfbb 3052
42ecbf5e
DJ
3053 test -n "$CC" && break
3054 done
3055fi
3056if test -z "$CC"; then
3057 ac_ct_CC=$CC
81ecdfbb 3058 for ac_prog in cl.exe
42ecbf5e
DJ
3059do
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3064if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3065 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3066else
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
81ecdfbb 3075 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3077 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3079 break 2
3080 fi
3081done
81ecdfbb
RW
3082 done
3083IFS=$as_save_IFS
42ecbf5e
DJ
3084
3085fi
3086fi
3087ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3091else
81ecdfbb
RW
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093$as_echo "no" >&6; }
42ecbf5e
DJ
3094fi
3095
81ecdfbb 3096
42ecbf5e
DJ
3097 test -n "$ac_ct_CC" && break
3098done
3099
81ecdfbb
RW
3100 if test "x$ac_ct_CC" = x; then
3101 CC=""
3102 else
3103 case $cross_compiling:$ac_tool_warned in
3104yes:)
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3107ac_tool_warned=yes ;;
3108esac
3109 CC=$ac_ct_CC
3110 fi
42ecbf5e
DJ
3111fi
3112
3113fi
3114
3115
81ecdfbb
RW
3116test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3118as_fn_error $? "no acceptable C compiler found in \$PATH
3119See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
3120
3121# Provide some information about the compiler.
81ecdfbb
RW
3122$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3123set X $ac_compile
3124ac_compiler=$2
3125for ac_option in --version -v -V -qversion; do
3126 { { ac_try="$ac_compiler $ac_option >&5"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3134 ac_status=$?
81ecdfbb
RW
3135 if test -s conftest.err; then
3136 sed '10a\
3137... rest of stderr output deleted ...
3138 10q' conftest.err >conftest.er1
3139 cat conftest.er1 >&5
81ecdfbb 3140 fi
d0ac1c44 3141 rm -f conftest.er1 conftest.err
81ecdfbb
RW
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }
3144done
42ecbf5e 3145
81ecdfbb 3146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3147/* end confdefs.h. */
3148
3149int
3150main ()
3151{
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157ac_clean_files_save=$ac_clean_files
d0ac1c44 3158ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
42ecbf5e
DJ
3159# Try to create an executable without -o first, disregard a.out.
3160# It will help us diagnose broken compilers, and finding out an intuition
3161# of exeext.
d0ac1c44
SM
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3163$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
3164ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3165
3166# The possible output files:
3167ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3168
3169ac_rmfiles=
3170for ac_file in $ac_files
3171do
3172 case $ac_file in
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3174 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3175 esac
3176done
3177rm -f $ac_rmfiles
3178
3179if { { ac_try="$ac_link_default"
3180case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_link_default") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; then :
3190 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3191# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3192# in a Makefile. We should not override ac_cv_exeext if it was cached,
3193# so that the user can short-circuit this test for compilers unknown to
3194# Autoconf.
3195for ac_file in $ac_files ''
42ecbf5e
DJ
3196do
3197 test -f "$ac_file" || continue
3198 case $ac_file in
81ecdfbb 3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3200 ;;
3201 [ab].out )
3202 # We found the default executable, but exeext='' is most
3203 # certainly right.
3204 break;;
3205 *.* )
81ecdfbb
RW
3206 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3207 then :; else
3208 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209 fi
3210 # We set ac_cv_exeext here because the later test for it is not
3211 # safe: cross compilers may not add the suffix if given an `-o'
3212 # argument, so we may need to know it at that point already.
3213 # Even if this section looks crufty: it has the advantage of
3214 # actually working.
42ecbf5e
DJ
3215 break;;
3216 * )
3217 break;;
3218 esac
3219done
81ecdfbb
RW
3220test "$ac_cv_exeext" = no && ac_cv_exeext=
3221
42ecbf5e 3222else
81ecdfbb
RW
3223 ac_file=''
3224fi
81ecdfbb 3225if test -z "$ac_file"; then :
d0ac1c44
SM
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228$as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
81ecdfbb
RW
3231{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3233as_fn_error 77 "C compiler cannot create executables
3234See \`config.log' for more details" "$LINENO" 5; }
3235else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237$as_echo "yes" >&6; }
42ecbf5e 3238fi
d0ac1c44
SM
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3240$as_echo_n "checking for C compiler default output file name... " >&6; }
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3242$as_echo "$ac_file" >&6; }
42ecbf5e 3243ac_exeext=$ac_cv_exeext
42ecbf5e 3244
d0ac1c44 3245rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
42ecbf5e 3246ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248$as_echo_n "checking for suffix of executables... " >&6; }
3249if { { ac_try="$ac_link"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
42ecbf5e 3257 ac_status=$?
81ecdfbb
RW
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
42ecbf5e
DJ
3260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3261# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3262# work properly (i.e., refer to `conftest.exe'), while it won't with
3263# `rm'.
3264for ac_file in conftest.exe conftest conftest.*; do
3265 test -f "$ac_file" || continue
3266 case $ac_file in
81ecdfbb 3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3269 break;;
3270 * ) break;;
3271 esac
3272done
3273else
81ecdfbb
RW
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3276as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3277See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e 3278fi
d0ac1c44 3279rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3281$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3282
3283rm -f conftest.$ac_ext
3284EXEEXT=$ac_cv_exeext
3285ac_exeext=$EXEEXT
d0ac1c44
SM
3286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288#include <stdio.h>
3289int
3290main ()
3291{
3292FILE *f = fopen ("conftest.out", "w");
3293 return ferror (f) || fclose (f) != 0;
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299ac_clean_files="$ac_clean_files conftest.out"
3300# Check that the compiler produces executables we can run. If not, either
3301# the compiler is broken, or we cross compile.
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3303$as_echo_n "checking whether we are cross compiling... " >&6; }
3304if test "$cross_compiling" != yes; then
3305 { { ac_try="$ac_link"
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311$as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_link") 2>&5
3313 ac_status=$?
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }
3316 if { ac_try='./conftest$ac_cv_exeext'
3317 { { case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_try") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; }; then
3327 cross_compiling=no
3328 else
3329 if test "$cross_compiling" = maybe; then
3330 cross_compiling=yes
3331 else
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error $? "cannot run C compiled programs.
3335If you meant to cross compile, use \`--host'.
3336See \`config.log' for more details" "$LINENO" 5; }
3337 fi
3338 fi
3339fi
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3341$as_echo "$cross_compiling" >&6; }
3342
3343rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3344ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3346$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3347if ${ac_cv_objext+:} false; then :
81ecdfbb 3348 $as_echo_n "(cached) " >&6
42ecbf5e 3349else
81ecdfbb 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
3361rm -f conftest.o conftest.obj
81ecdfbb
RW
3362if { { ac_try="$ac_compile"
3363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_compile") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 for ac_file in conftest.o conftest.obj conftest.*; do
3374 test -f "$ac_file" || continue;
42ecbf5e 3375 case $ac_file in
81ecdfbb 3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3377 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3378 break;;
3379 esac
3380done
3381else
81ecdfbb 3382 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
81ecdfbb
RW
3385{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3387as_fn_error $? "cannot compute suffix of object files: cannot compile
3388See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e 3389fi
42ecbf5e
DJ
3390rm -f conftest.$ac_cv_objext conftest.$ac_ext
3391fi
81ecdfbb
RW
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3393$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3394OBJEXT=$ac_cv_objext
3395ac_objext=$OBJEXT
81ecdfbb
RW
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3397$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3398if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3399 $as_echo_n "(cached) " >&6
42ecbf5e 3400else
81ecdfbb 3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3402/* end confdefs.h. */
3403
3404int
3405main ()
3406{
3407#ifndef __GNUC__
3408 choke me
3409#endif
3410
3411 ;
3412 return 0;
3413}
3414_ACEOF
81ecdfbb 3415if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3416 ac_compiler_gnu=yes
3417else
81ecdfbb 3418 ac_compiler_gnu=no
42ecbf5e 3419fi
81ecdfbb 3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3421ac_cv_c_compiler_gnu=$ac_compiler_gnu
3422
3423fi
81ecdfbb
RW
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3425$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3426if test $ac_compiler_gnu = yes; then
3427 GCC=yes
3428else
3429 GCC=
3430fi
42ecbf5e
DJ
3431ac_test_CFLAGS=${CFLAGS+set}
3432ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3434$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3435if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3436 $as_echo_n "(cached) " >&6
3437else
3438 ac_save_c_werror_flag=$ac_c_werror_flag
3439 ac_c_werror_flag=yes
3440 ac_cv_prog_cc_g=no
3441 CFLAGS="-g"
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3443/* end confdefs.h. */
3444
3445int
3446main ()
3447{
3448
3449 ;
3450 return 0;
3451}
3452_ACEOF
81ecdfbb 3453if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3454 ac_cv_prog_cc_g=yes
3455else
81ecdfbb
RW
3456 CFLAGS=""
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h. */
3459
3460int
3461main ()
3462{
3463
3464 ;
3465 return 0;
3466}
3467_ACEOF
3468if ac_fn_c_try_compile "$LINENO"; then :
3469
3470else
3471 ac_c_werror_flag=$ac_save_c_werror_flag
3472 CFLAGS="-g"
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h. */
3475
3476int
3477main ()
3478{
42ecbf5e 3479
81ecdfbb
RW
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_g=yes
3486fi
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488fi
3489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3490fi
81ecdfbb
RW
3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3493fi
81ecdfbb
RW
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3495$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3496if test "$ac_test_CFLAGS" = set; then
3497 CFLAGS=$ac_save_CFLAGS
3498elif test $ac_cv_prog_cc_g = yes; then
3499 if test "$GCC" = yes; then
3500 CFLAGS="-g -O2"
3501 else
3502 CFLAGS="-g"
3503 fi
3504else
3505 if test "$GCC" = yes; then
3506 CFLAGS="-O2"
3507 else
3508 CFLAGS=
3509 fi
3510fi
81ecdfbb
RW
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3512$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3513if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3514 $as_echo_n "(cached) " >&6
42ecbf5e 3515else
81ecdfbb 3516 ac_cv_prog_cc_c89=no
42ecbf5e 3517ac_save_CC=$CC
81ecdfbb 3518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3519/* end confdefs.h. */
3520#include <stdarg.h>
3521#include <stdio.h>
d0ac1c44 3522struct stat;
42ecbf5e
DJ
3523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524struct buf { int x; };
3525FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526static char *e (p, i)
3527 char **p;
3528 int i;
3529{
3530 return p[i];
3531}
3532static char *f (char * (*g) (char **, int), char **p, ...)
3533{
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540}
3541
3542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3545 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3548 that's true only with -std. */
42ecbf5e
DJ
3549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
81ecdfbb
RW
3551/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3553#define FOO(x) 'x'
3554int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
42ecbf5e
DJ
3556int test (int i, double x);
3557struct s1 {int (*f) (int a);};
3558struct s2 {int (*f) (double a);};
3559int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560int argc;
3561char **argv;
3562int
3563main ()
3564{
3565return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3566 ;
3567 return 0;
3568}
3569_ACEOF
81ecdfbb
RW
3570for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3572do
3573 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3576fi
81ecdfbb
RW
3577rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3579done
81ecdfbb 3580rm -f conftest.$ac_ext
42ecbf5e
DJ
3581CC=$ac_save_CC
3582
3583fi
81ecdfbb
RW
3584# AC_CACHE_VAL
3585case "x$ac_cv_prog_cc_c89" in
3586 x)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588$as_echo "none needed" >&6; } ;;
3589 xno)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591$as_echo "unsupported" >&6; } ;;
42ecbf5e 3592 *)
81ecdfbb
RW
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3596esac
81ecdfbb 3597if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3598
42ecbf5e
DJ
3599fi
3600
42ecbf5e
DJ
3601ac_ext=c
3602ac_cpp='$CPP $CPPFLAGS'
3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606
d0ac1c44
SM
3607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3613$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3614if ${am_cv_prog_cc_c_o+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h. */
3619
3620int
3621main ()
3622{
3623
3624 ;
3625 return 0;
3626}
3627_ACEOF
3628 # Make sure it works both with $CC and with simple cc.
3629 # Following AC_PROG_CC_C_O, we do the test twice because some
3630 # compilers refuse to overwrite an existing .o file with -o,
3631 # though they will create one.
3632 am_cv_prog_cc_c_o=yes
3633 for am_i in 1 2; do
3634 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3635 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } \
3639 && test -f conftest2.$ac_objext; then
3640 : OK
3641 else
3642 am_cv_prog_cc_c_o=no
3643 break
3644 fi
3645 done
3646 rm -f core conftest*
3647 unset am_i
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3650$as_echo "$am_cv_prog_cc_c_o" >&6; }
3651if test "$am_cv_prog_cc_c_o" != yes; then
3652 # Losing compiler, so override with the script.
3653 # FIXME: It is wrong to rewrite CC.
3654 # But if we don't then we get into trouble of one sort or another.
3655 # A longer-term fix would be to have automake use am__CC in this case,
3656 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3657 CC="$am_aux_dir/compile $CC"
3658fi
3659ac_ext=c
3660ac_cpp='$CPP $CPPFLAGS'
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665
42ecbf5e 3666
81ecdfbb
RW
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3668$as_echo_n "checking for library containing strerror... " >&6; }
d0ac1c44 3669if ${ac_cv_search_strerror+:} false; then :
81ecdfbb 3670 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3671else
3672 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3674/* end confdefs.h. */
3675
81ecdfbb
RW
3676/* Override any GCC internal prototype to avoid an error.
3677 Use char because int might match the return type of a GCC
3678 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3679#ifdef __cplusplus
3680extern "C"
3681#endif
42ecbf5e
DJ
3682char strerror ();
3683int
3684main ()
3685{
81ecdfbb 3686return strerror ();
42ecbf5e
DJ
3687 ;
3688 return 0;
3689}
3690_ACEOF
81ecdfbb
RW
3691for ac_lib in '' cposix; do
3692 if test -z "$ac_lib"; then
3693 ac_res="none required"
3694 else
3695 ac_res=-l$ac_lib
42ecbf5e 3696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3697 fi
3698 if ac_fn_c_try_link "$LINENO"; then :
3699 ac_cv_search_strerror=$ac_res
3700fi
3701rm -f core conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext
d0ac1c44 3703 if ${ac_cv_search_strerror+:} false; then :
81ecdfbb
RW
3704 break
3705fi
3706done
d0ac1c44 3707if ${ac_cv_search_strerror+:} false; then :
42ecbf5e 3708
42ecbf5e 3709else
81ecdfbb 3710 ac_cv_search_strerror=no
42ecbf5e 3711fi
81ecdfbb 3712rm conftest.$ac_ext
42ecbf5e
DJ
3713LIBS=$ac_func_search_save_LIBS
3714fi
81ecdfbb
RW
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3716$as_echo "$ac_cv_search_strerror" >&6; }
3717ac_res=$ac_cv_search_strerror
3718if test "$ac_res" != no; then :
3719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3720
3721fi
e5a52504
MM
3722
3723
d0ac1c44 3724am__api_version='1.15'
81ecdfbb 3725
e5a52504
MM
3726# Find a good install program. We prefer a C program (faster),
3727# so one script is as good as another. But avoid the broken or
3728# incompatible versions:
3729# SysV /etc/install, /usr/sbin/install
3730# SunOS /usr/etc/install
3731# IRIX /sbin/install
3732# AIX /bin/install
42ecbf5e 3733# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3735# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3737# OS/2's system install, which has a completely different semantic
e5a52504 3738# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3739# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3741$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3742if test -z "$INSTALL"; then
d0ac1c44 3743if ${ac_cv_path_install+:} false; then :
81ecdfbb 3744 $as_echo_n "(cached) " >&6
e5a52504 3745else
42ecbf5e
DJ
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3751 # Account for people who put trailing slashes in PATH elements.
3752case $as_dir/ in #((
3753 ./ | .// | /[cC]/* | \
42ecbf5e 3754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3755 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3756 /usr/ucb/* ) ;;
3757 *)
3758 # OSF1 and SCO ODT 3.0 have their own names for install.
3759 # Don't use installbsd from OSF since it installs stuff as root
3760 # by default.
3761 for ac_prog in ginstall scoinst install; do
3762 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3763 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 3764 if test $ac_prog = install &&
42ecbf5e 3765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3766 # AIX install. It has an incompatible calling convention.
3767 :
42ecbf5e
DJ
3768 elif test $ac_prog = install &&
3769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770 # program-specific install script used by HP pwplus--don't use.
3771 :
252b5132 3772 else
58c85be7
RW
3773 rm -rf conftest.one conftest.two conftest.dir
3774 echo one > conftest.one
3775 echo two > conftest.two
3776 mkdir conftest.dir
3777 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3778 test -s conftest.one && test -s conftest.two &&
3779 test -s conftest.dir/conftest.one &&
3780 test -s conftest.dir/conftest.two
3781 then
3782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3783 break 3
3784 fi
252b5132
RH
3785 fi
3786 fi
3787 done
42ecbf5e
DJ
3788 done
3789 ;;
3790esac
81ecdfbb
RW
3791
3792 done
3793IFS=$as_save_IFS
42ecbf5e 3794
58c85be7 3795rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3796
3797fi
3798 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3799 INSTALL=$ac_cv_path_install
252b5132 3800 else
58c85be7
RW
3801 # As a last resort, use the slow shell script. Don't cache a
3802 # value for INSTALL within a source directory, because that will
252b5132 3803 # break other packages using the cache if that directory is
58c85be7 3804 # removed, or if the value is a relative name.
42ecbf5e 3805 INSTALL=$ac_install_sh
252b5132
RH
3806 fi
3807fi
81ecdfbb
RW
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3809$as_echo "$INSTALL" >&6; }
252b5132
RH
3810
3811# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3812# It thinks the first close brace ends the variable substitution.
3813test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3814
42ecbf5e 3815test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3816
3817test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3818
81ecdfbb
RW
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3820$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
3821# Reject unsafe characters in $srcdir or the absolute working directory
3822# name. Accept space and tab only in the latter.
3823am_lf='
3824'
3825case `pwd` in
3826 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 3827 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
3828esac
3829case $srcdir in
3830 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 3831 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
3832esac
3833
d0ac1c44 3834# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
3835# arguments. Must try -L first in case configure is actually a
3836# symlink; some systems play weird games with the mod time of symlinks
3837# (eg FreeBSD returns the mod time of the symlink's containing
3838# directory).
3839if (
d0ac1c44
SM
3840 am_has_slept=no
3841 for am_try in 1 2; do
3842 echo "timestamp, slept: $am_has_slept" > conftest.file
3843 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3844 if test "$*" = "X"; then
3845 # -L didn't work.
3846 set X `ls -t "$srcdir/configure" conftest.file`
3847 fi
3848 if test "$*" != "X $srcdir/configure conftest.file" \
3849 && test "$*" != "X conftest.file $srcdir/configure"; then
3850
3851 # If neither matched, then we have a broken ls. This can happen
3852 # if, for instance, CONFIG_SHELL is bash and it inherits a
3853 # broken ls alias from the environment. This has actually
3854 # happened. Such a system could not be considered "sane".
3855 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3856 alias in your environment" "$LINENO" 5
3857 fi
3858 if test "$2" = conftest.file || test $am_try -eq 2; then
3859 break
3860 fi
3861 # Just in case.
3862 sleep 1
3863 am_has_slept=yes
3864 done
42ecbf5e 3865 test "$2" = conftest.file
252b5132
RH
3866 )
3867then
3868 # Ok.
3869 :
3870else
d0ac1c44 3871 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3872Check your system clock" "$LINENO" 5
252b5132 3873fi
81ecdfbb
RW
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875$as_echo "yes" >&6; }
d0ac1c44
SM
3876# If we didn't sleep, we still need to ensure time stamps of config.status and
3877# generated files are strictly newer.
3878am_sleep_pid=
3879if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3880 ( sleep 1 ) &
3881 am_sleep_pid=$!
3882fi
3883
3884rm -f conftest.file
3885
252b5132 3886test "$program_prefix" != NONE &&
81ecdfbb 3887 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3888# Use a double $ so make ignores it.
3889test "$program_suffix" != NONE &&
81ecdfbb
RW
3890 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3891# Double any \ or $.
42ecbf5e 3892# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3893ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3894program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 3895
81ecdfbb
RW
3896if test x"${MISSING+set}" != xset; then
3897 case $am_aux_dir in
3898 *\ * | *\ *)
3899 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3900 *)
3901 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3902 esac
3903fi
42ecbf5e 3904# Use eval to expand $SHELL
d0ac1c44
SM
3905if eval "$MISSING --is-lightweight"; then
3906 am_missing_run="$MISSING "
42ecbf5e
DJ
3907else
3908 am_missing_run=
d0ac1c44
SM
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3910$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3911fi
3912
d0ac1c44 3913if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3914 case $am_aux_dir in
3915 *\ * | *\ *)
3916 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3917 *)
3918 install_sh="\${SHELL} $am_aux_dir/install-sh"
3919 esac
3920fi
3921
d0ac1c44
SM
3922# Installed binaries are usually stripped using 'strip' when the user
3923# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3924# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3925# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3926if test "$cross_compiling" != no; then
3927 if test -n "$ac_tool_prefix"; then
3928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3929set dummy ${ac_tool_prefix}strip; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3932if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3933 $as_echo_n "(cached) " >&6
3934else
3935 if test -n "$STRIP"; then
3936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950 done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
3955STRIP=$ac_cv_prog_STRIP
3956if test -n "$STRIP"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3958$as_echo "$STRIP" >&6; }
3959else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
3965fi
3966if test -z "$ac_cv_prog_STRIP"; then
3967 ac_ct_STRIP=$STRIP
3968 # Extract the first word of "strip", so it can be a program name with args.
3969set dummy strip; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3972if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3973 $as_echo_n "(cached) " >&6
3974else
3975 if test -n "$ac_ct_STRIP"; then
3976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3985 ac_cv_prog_ac_ct_STRIP="strip"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989done
3990 done
3991IFS=$as_save_IFS
3992
3993fi
3994fi
3995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3996if test -n "$ac_ct_STRIP"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3998$as_echo "$ac_ct_STRIP" >&6; }
3999else
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002fi
4003
4004 if test "x$ac_ct_STRIP" = x; then
4005 STRIP=":"
4006 else
4007 case $cross_compiling:$ac_tool_warned in
4008yes:)
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4011ac_tool_warned=yes ;;
4012esac
4013 STRIP=$ac_ct_STRIP
4014 fi
4015else
4016 STRIP="$ac_cv_prog_STRIP"
4017fi
4018
4019fi
4020INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4021
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4023$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4024if test -z "$MKDIR_P"; then
d0ac1c44 4025 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
4026 $as_echo_n "(cached) " >&6
4027else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in mkdir gmkdir; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4035 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
4036 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4037 'mkdir (GNU coreutils) '* | \
4038 'mkdir (coreutils) '* | \
4039 'mkdir (fileutils) '4.1*)
4040 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4041 break 3;;
4042 esac
4043 done
4044 done
42ecbf5e 4045 done
81ecdfbb
RW
4046IFS=$as_save_IFS
4047
4048fi
4049
d0ac1c44 4050 test -d ./--version && rmdir ./--version
81ecdfbb
RW
4051 if test "${ac_cv_path_mkdir+set}" = set; then
4052 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 4053 else
81ecdfbb
RW
4054 # As a last resort, use the slow shell script. Don't cache a
4055 # value for MKDIR_P within a source directory, because that will
4056 # break other packages using the cache if that directory is
4057 # removed, or if the value is a relative name.
81ecdfbb 4058 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
4059 fi
4060fi
81ecdfbb
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4062$as_echo "$MKDIR_P" >&6; }
4063
42ecbf5e
DJ
4064for ac_prog in gawk mawk nawk awk
4065do
4066 # Extract the first word of "$ac_prog", so it can be a program name with args.
4067set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4070if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 4071 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4072else
4073 if test -n "$AWK"; then
4074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
81ecdfbb 4081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 4083 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
4085 break 2
4086 fi
4087done
81ecdfbb
RW
4088 done
4089IFS=$as_save_IFS
42ecbf5e
DJ
4090
4091fi
4092fi
4093AWK=$ac_cv_prog_AWK
4094if test -n "$AWK"; then
81ecdfbb
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4096$as_echo "$AWK" >&6; }
42ecbf5e 4097else
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
42ecbf5e 4100fi
252b5132 4101
81ecdfbb 4102
42ecbf5e
DJ
4103 test -n "$AWK" && break
4104done
252b5132 4105
81ecdfbb
RW
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4107$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4108set x ${MAKE-make}
4109ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 4110if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 4111 $as_echo_n "(cached) " >&6
252b5132 4112else
42ecbf5e 4113 cat >conftest.make <<\_ACEOF
81ecdfbb 4114SHELL = /bin/sh
252b5132 4115all:
81ecdfbb 4116 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 4117_ACEOF
d0ac1c44 4118# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
4119case `${MAKE-make} -f conftest.make 2>/dev/null` in
4120 *@@@%%%=?*=@@@%%%*)
4121 eval ac_cv_prog_make_${ac_make}_set=yes;;
4122 *)
4123 eval ac_cv_prog_make_${ac_make}_set=no;;
4124esac
42ecbf5e 4125rm -f conftest.make
252b5132 4126fi
81ecdfbb
RW
4127if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129$as_echo "yes" >&6; }
252b5132
RH
4130 SET_MAKE=
4131else
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
252b5132
RH
4134 SET_MAKE="MAKE=${MAKE-make}"
4135fi
4136
42ecbf5e
DJ
4137rm -rf .tst 2>/dev/null
4138mkdir .tst 2>/dev/null
4139if test -d .tst; then
4140 am__leading_dot=.
4141else
4142 am__leading_dot=_
4143fi
4144rmdir .tst 2>/dev/null
4145
4146DEPDIR="${am__leading_dot}deps"
4147
81ecdfbb 4148ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
4149
4150
4151am_make=${MAKE-make}
4152cat > confinc << 'END'
4153am__doit:
81ecdfbb 4154 @echo this is the am__doit target
42ecbf5e
DJ
4155.PHONY: am__doit
4156END
4157# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4159$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
4160am__include="#"
4161am__quote=
4162_am_result=none
4163# First try GNU make style include.
4164echo "include confinc" > confmf
d0ac1c44 4165# Ignore all kinds of additional output from 'make'.
81ecdfbb
RW
4166case `$am_make -s -f confmf 2> /dev/null` in #(
4167*the\ am__doit\ target*)
4168 am__include=include
4169 am__quote=
4170 _am_result=GNU
4171 ;;
4172esac
42ecbf5e
DJ
4173# Now try BSD make style include.
4174if test "$am__include" = "#"; then
4175 echo '.include "confinc"' > confmf
81ecdfbb
RW
4176 case `$am_make -s -f confmf 2> /dev/null` in #(
4177 *the\ am__doit\ target*)
4178 am__include=.include
4179 am__quote="\""
4180 _am_result=BSD
4181 ;;
4182 esac
42ecbf5e
DJ
4183fi
4184
4185
81ecdfbb
RW
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4187$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4188rm -f confinc confmf
4189
81ecdfbb
RW
4190# Check whether --enable-dependency-tracking was given.
4191if test "${enable_dependency_tracking+set}" = set; then :
4192 enableval=$enable_dependency_tracking;
4193fi
42ecbf5e 4194
42ecbf5e
DJ
4195if test "x$enable_dependency_tracking" != xno; then
4196 am_depcomp="$ac_aux_dir/depcomp"
4197 AMDEPBACKSLASH='\'
6eb7d830 4198 am__nodep='_no'
42ecbf5e 4199fi
81ecdfbb 4200 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4201 AMDEP_TRUE=
4202 AMDEP_FALSE='#'
4203else
4204 AMDEP_TRUE='#'
4205 AMDEP_FALSE=
4206fi
4207
e5a52504 4208
d0ac1c44
SM
4209# Check whether --enable-silent-rules was given.
4210if test "${enable_silent_rules+set}" = set; then :
4211 enableval=$enable_silent_rules;
4212fi
4213
4214case $enable_silent_rules in # (((
4215 yes) AM_DEFAULT_VERBOSITY=0;;
4216 no) AM_DEFAULT_VERBOSITY=1;;
4217 *) AM_DEFAULT_VERBOSITY=1;;
4218esac
4219am_make=${MAKE-make}
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4221$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4222if ${am_cv_make_support_nested_variables+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224else
4225 if $as_echo 'TRUE=$(BAR$(V))
4226BAR0=false
4227BAR1=true
4228V=1
4229am__doit:
4230 @$(TRUE)
4231.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4232 am_cv_make_support_nested_variables=yes
4233else
4234 am_cv_make_support_nested_variables=no
4235fi
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4238$as_echo "$am_cv_make_support_nested_variables" >&6; }
4239if test $am_cv_make_support_nested_variables = yes; then
4240 AM_V='$(V)'
4241 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4242else
4243 AM_V=$AM_DEFAULT_VERBOSITY
4244 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4245fi
4246AM_BACKSLASH='\'
4247
81ecdfbb
RW
4248if test "`cd $srcdir && pwd`" != "`pwd`"; then
4249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4250 # is not polluted with repeated "-I."
4251 am__isrc=' -I$(srcdir)'
4252 # test to see if srcdir already configured
4253 if test -f $srcdir/config.status; then
d0ac1c44 4254 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 4255 fi
42ecbf5e 4256fi
252b5132 4257
42ecbf5e
DJ
4258# test whether we have cygpath
4259if test -z "$CYGPATH_W"; then
4260 if (cygpath --version) >/dev/null 2>/dev/null; then
4261 CYGPATH_W='cygpath -w'
4262 else
4263 CYGPATH_W=echo
4264 fi
252b5132 4265fi
42ecbf5e
DJ
4266
4267
4268# Define the identity of the package.
2e98a7bd 4269 PACKAGE='ld'
bb695960 4270 VERSION='2.33.50'
42ecbf5e
DJ
4271
4272
4273cat >>confdefs.h <<_ACEOF
e5a52504 4274#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4275_ACEOF
4276
252b5132 4277
42ecbf5e 4278cat >>confdefs.h <<_ACEOF
e5a52504 4279#define VERSION "$VERSION"
42ecbf5e
DJ
4280_ACEOF
4281
4282# Some tools Automake needs.
4283
4284ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4285
4286
4287AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4288
4289
4290AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4291
4292
4293AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4294
e5a52504 4295
42ecbf5e 4296MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4297
d0ac1c44
SM
4298# For better backward compatibility. To be removed once Automake 1.9.x
4299# dies out for good. For more background, see:
4300# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4301# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4302mkdir_p='$(MKDIR_P)'
4303
4304# We need awk for the "check" target (and possibly the TAP driver). The
4305# system "awk" is bad on some platforms.
6eb7d830
AM
4306# Always define AMTAR for backward compatibility. Yes, it's still used
4307# in the wild :-( We should find a proper way to deprecate it ...
4308AMTAR='$${TAR-tar}'
42ecbf5e 4309
d0ac1c44
SM
4310
4311# We'll loop over all known methods to create a tar archive until one works.
4312_am_tools='gnutar pax cpio none'
4313
6eb7d830 4314am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e
DJ
4315
4316
4317
4318
d0ac1c44 4319
42ecbf5e
DJ
4320depcc="$CC" am_compiler_list=
4321
81ecdfbb
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4323$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4324if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 4325 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4326else
4327 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4328 # We make a subdir and do the tests there. Otherwise we can end up
4329 # making bogus files that we don't know about and never remove. For
4330 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4331 # making a dummy file named 'D' -- because '-MD' means "put the output
4332 # in D".
6eb7d830 4333 rm -rf conftest.dir
42ecbf5e
DJ
4334 mkdir conftest.dir
4335 # Copy depcomp to subdir because otherwise we won't find it if we're
4336 # using a relative directory.
4337 cp "$am_depcomp" conftest.dir
4338 cd conftest.dir
4339 # We will build objects and dependencies in a subdirectory because
4340 # it helps to detect inapplicable dependency modes. For instance
4341 # both Tru64's cc and ICC support -MD to output dependencies as a
4342 # side effect of compilation, but ICC will put the dependencies in
4343 # the current directory while Tru64 will put them in the object
4344 # directory.
4345 mkdir sub
4346
4347 am_cv_CC_dependencies_compiler_type=none
4348 if test "$am_compiler_list" = ""; then
4349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4350 fi
81ecdfbb
RW
4351 am__universal=false
4352 case " $depcc " in #(
4353 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4354 esac
4355
42ecbf5e
DJ
4356 for depmode in $am_compiler_list; do
4357 # Setup a source with many dependencies, because some compilers
4358 # like to wrap large dependency lists on column 80 (with \), and
4359 # we should not choose a depcomp mode which is confused by this.
4360 #
4361 # We need to recreate these files for each test, as the compiler may
4362 # overwrite some of them when testing with obscure command lines.
4363 # This happens at least with the AIX C compiler.
4364 : > sub/conftest.c
4365 for i in 1 2 3 4 5 6; do
4366 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4367 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4368 # Solaris 10 /bin/sh.
4369 echo '/* dummy */' > sub/conftst$i.h
42ecbf5e
DJ
4370 done
4371 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4372
d0ac1c44 4373 # We check with '-c' and '-o' for the sake of the "dashmstdout"
81ecdfbb 4374 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4375 # handle '-M -o', and we need to detect this. Also, some Intel
4376 # versions had trouble with output in subdirs.
81ecdfbb
RW
4377 am__obj=sub/conftest.${OBJEXT-o}
4378 am__minus_obj="-o $am__obj"
42ecbf5e 4379 case $depmode in
81ecdfbb
RW
4380 gcc)
4381 # This depmode causes a compiler race in universal mode.
4382 test "$am__universal" = false || continue
4383 ;;
42ecbf5e 4384 nosideeffect)
d0ac1c44
SM
4385 # After this tag, mechanisms are not by side-effect, so they'll
4386 # only be used when explicitly requested.
42ecbf5e
DJ
4387 if test "x$enable_dependency_tracking" = xyes; then
4388 continue
4389 else
4390 break
4391 fi
4392 ;;
6eb7d830 4393 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4394 # This compiler won't grok '-c -o', but also, the minuso test has
81ecdfbb
RW
4395 # not run yet. These depmodes are late enough in the game, and
4396 # so weak that their functioning should not be impacted.
4397 am__obj=conftest.${OBJEXT-o}
4398 am__minus_obj=
4399 ;;
42ecbf5e
DJ
4400 none) break ;;
4401 esac
42ecbf5e 4402 if depmode=$depmode \
81ecdfbb 4403 source=sub/conftest.c object=$am__obj \
42ecbf5e 4404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4405 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4406 >/dev/null 2>conftest.err &&
81ecdfbb 4407 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4409 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4411 # icc doesn't choke on unknown options, it will just issue warnings
4412 # or remarks (even with -Werror). So we grep stderr for any message
4413 # that says an option was ignored or not supported.
4414 # When given -MP, icc 7.0 and 7.1 complain thusly:
4415 # icc: Command line warning: ignoring option '-M'; no argument required
4416 # The diagnosis changed in icc 8.0:
4417 # icc: Command line remark: option '-MP' not supported
4418 if (grep 'ignoring option' conftest.err ||
4419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4420 am_cv_CC_dependencies_compiler_type=$depmode
4421 break
4422 fi
4423 fi
4424 done
2469cfa2 4425
42ecbf5e
DJ
4426 cd ..
4427 rm -rf conftest.dir
2469cfa2 4428else
42ecbf5e
DJ
4429 am_cv_CC_dependencies_compiler_type=none
4430fi
4431
2469cfa2 4432fi
81ecdfbb
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4434$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4435CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4436
81ecdfbb 4437 if
42ecbf5e
DJ
4438 test "x$enable_dependency_tracking" != xno \
4439 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4440 am__fastdepCC_TRUE=
4441 am__fastdepCC_FALSE='#'
2469cfa2 4442else
42ecbf5e
DJ
4443 am__fastdepCC_TRUE='#'
4444 am__fastdepCC_FALSE=
2469cfa2 4445fi
2469cfa2 4446
2469cfa2 4447
e5a52504 4448
d0ac1c44
SM
4449# POSIX will say in a future version that running "rm -f" with no argument
4450# is OK; and we want to be able to make that assumption in our Makefile
4451# recipes. So use an aggressive probe to check that the usage we want is
4452# actually supported "in the wild" to an acceptable degree.
4453# See automake bug#10828.
4454# To make any issue more visible, cause the running configure to be aborted
4455# by default if the 'rm' program in use doesn't match our expectations; the
4456# user can still override this though.
4457if rm -f && rm -fr && rm -rf; then : OK; else
4458 cat >&2 <<'END'
4459Oops!
4460
4461Your 'rm' program seems unable to run without file operands specified
4462on the command line, even when the '-f' option is present. This is contrary
4463to the behaviour of most rm programs out there, and not conforming with
4464the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4465
4466Please tell bug-automake@gnu.org about your system, including the value
4467of your $PATH and any error possibly output before this message. This
4468can help us improve future automake versions.
4469
4470END
4471 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4472 echo 'Configuration will proceed anyway, since you have set the' >&2
4473 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4474 echo >&2
4475 else
4476 cat >&2 <<'END'
4477Aborting the configuration process, to ensure you take notice of the issue.
4478
4479You can download and install GNU coreutils to get an 'rm' implementation
4480that behaves properly: <http://www.gnu.org/software/coreutils/>.
4481
4482If you want to complete the configuration process using your problematic
4483'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4484to "yes", and re-run configure.
4485
4486END
4487 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4488 fi
4489fi
4490
42ecbf5e 4491
64ac50ac
RW
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4493$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4494 # Check whether --enable-maintainer-mode was given.
4495if test "${enable_maintainer_mode+set}" = set; then :
4496 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4497else
4498 USE_MAINTAINER_MODE=no
4499fi
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4502$as_echo "$USE_MAINTAINER_MODE" >&6; }
4503 if test $USE_MAINTAINER_MODE = yes; then
4504 MAINTAINER_MODE_TRUE=
4505 MAINTAINER_MODE_FALSE='#'
4506else
4507 MAINTAINER_MODE_TRUE='#'
4508 MAINTAINER_MODE_FALSE=
4509fi
4510
4511 MAINT=$MAINTAINER_MODE_TRUE
4512
4513
4514
b879806f
AM
4515ac_ext=c
4516ac_cpp='$CPP $CPPFLAGS'
4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4522set dummy ${ac_tool_prefix}gcc; ac_word=$2
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4525if ${ac_cv_prog_CC+:} false; then :
b879806f
AM
4526 $as_echo_n "(cached) " >&6
4527else
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530else
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542done
4543 done
4544IFS=$as_save_IFS
d7040cdb 4545
81ecdfbb 4546fi
81ecdfbb 4547fi
b879806f
AM
4548CC=$ac_cv_prog_CC
4549if test -n "$CC"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4551$as_echo "$CC" >&6; }
2469cfa2 4552else
b879806f
AM
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554$as_echo "no" >&6; }
81ecdfbb 4555fi
d7040cdb
SE
4556
4557
b879806f
AM
4558fi
4559if test -z "$ac_cv_prog_CC"; then
4560 ac_ct_CC=$CC
4561 # Extract the first word of "gcc", so it can be a program name with args.
4562set dummy gcc; ac_word=$2
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4565if ${ac_cv_prog_ac_ct_CC+:} false; then :
b879806f 4566 $as_echo_n "(cached) " >&6
e5a52504 4567else
b879806f
AM
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4578 ac_cv_prog_ac_ct_CC="gcc"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582done
4583 done
4584IFS=$as_save_IFS
d7040cdb 4585
81ecdfbb 4586fi
b879806f
AM
4587fi
4588ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589if test -n "$ac_ct_CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4591$as_echo "$ac_ct_CC" >&6; }
4fda8867 4592else
b879806f
AM
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4fda8867
NC
4595fi
4596
b879806f
AM
4597 if test "x$ac_ct_CC" = x; then
4598 CC=""
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601yes:)
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604ac_tool_warned=yes ;;
7fb9f789 4605esac
b879806f
AM
4606 CC=$ac_ct_CC
4607 fi
7fb9f789 4608else
b879806f 4609 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4610fi
4611
b879806f
AM
4612if test -z "$CC"; then
4613 if test -n "$ac_tool_prefix"; then
4614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4615set dummy ${ac_tool_prefix}cc; ac_word=$2
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4618if ${ac_cv_prog_CC+:} false; then :
397841b5
AM
4619 $as_echo_n "(cached) " >&6
4620else
b879806f
AM
4621 if test -n "$CC"; then
4622 ac_cv_prog_CC="$CC" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
397841b5 4626do
b879806f
AM
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4631 ac_cv_prog_CC="${ac_tool_prefix}cc"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636 done
4637IFS=$as_save_IFS
d7040cdb 4638
ce2cded5 4639fi
ce2cded5 4640fi
b879806f
AM
4641CC=$ac_cv_prog_CC
4642if test -n "$CC"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4644$as_echo "$CC" >&6; }
4645else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
81ecdfbb
RW
4648fi
4649
d7040cdb 4650
b879806f 4651 fi
ce2cded5 4652fi
b879806f
AM
4653if test -z "$CC"; then
4654 # Extract the first word of "cc", so it can be a program name with args.
4655set dummy cc; ac_word=$2
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4658if ${ac_cv_prog_CC+:} false; then :
b879806f 4659 $as_echo_n "(cached) " >&6
397841b5 4660else
b879806f
AM
4661 if test -n "$CC"; then
4662 ac_cv_prog_CC="$CC" # Let the user override the test.
4663else
4664 ac_prog_rejected=no
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
397841b5 4667do
b879806f
AM
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4672 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4673 ac_prog_rejected=yes
4674 continue
4675 fi
4676 ac_cv_prog_CC="cc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680done
4681 done
4682IFS=$as_save_IFS
d7040cdb 4683
b879806f
AM
4684if test $ac_prog_rejected = yes; then
4685 # We found a bogon in the path, so make sure we never use it.
4686 set dummy $ac_cv_prog_CC
4687 shift
4688 if test $# != 0; then
4689 # We chose a different compiler from the bogus one.
4690 # However, it has the same basename, so the bogon will be chosen
4691 # first if we set CC to just the basename; use the full file name.
4692 shift
4693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4694 fi
397841b5 4695fi
397841b5 4696fi
b879806f
AM
4697fi
4698CC=$ac_cv_prog_CC
4699if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701$as_echo "$CC" >&6; }
397841b5 4702else
b879806f
AM
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
ce2cded5 4705fi
d7040cdb 4706
397841b5 4707
b879806f
AM
4708fi
4709if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 for ac_prog in cl.exe
4712 do
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4717if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4718 $as_echo_n "(cached) " >&6
d7040cdb 4719else
b879806f
AM
4720 if test -n "$CC"; then
4721 ac_cv_prog_CC="$CC" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
d7040cdb
SE
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
81ecdfbb 4728 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734done
397841b5
AM
4735 done
4736IFS=$as_save_IFS
d7040cdb 4737
252b5132 4738fi
b879806f
AM
4739fi
4740CC=$ac_cv_prog_CC
4741if test -n "$CC"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4743$as_echo "$CC" >&6; }
4744else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
397841b5
AM
4748
4749
b879806f
AM
4750 test -n "$CC" && break
4751 done
4752fi
4753if test -z "$CC"; then
4754 ac_ct_CC=$CC
4755 for ac_prog in cl.exe
4756do
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758set dummy $ac_prog; ac_word=$2
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4761if ${ac_cv_prog_ac_ct_CC+:} false; then :
397841b5
AM
4762 $as_echo_n "(cached) " >&6
4763else
b879806f
AM
4764 if test -n "$ac_ct_CC"; then
4765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
397841b5
AM
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
397841b5 4772 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4774 ac_cv_prog_ac_ct_CC="$ac_prog"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778done
397841b5
AM
4779 done
4780IFS=$as_save_IFS
397841b5 4781
397841b5 4782fi
397841b5 4783fi
b879806f
AM
4784ac_ct_CC=$ac_cv_prog_ac_ct_CC
4785if test -n "$ac_ct_CC"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4787$as_echo "$ac_ct_CC" >&6; }
4788else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
397841b5
AM
4791fi
4792
397841b5 4793
b879806f
AM
4794 test -n "$ac_ct_CC" && break
4795done
397841b5 4796
b879806f
AM
4797 if test "x$ac_ct_CC" = x; then
4798 CC=""
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801yes:)
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804ac_tool_warned=yes ;;
397841b5 4805esac
b879806f
AM
4806 CC=$ac_ct_CC
4807 fi
397841b5
AM
4808fi
4809
397841b5
AM
4810fi
4811
4812
b879806f
AM
4813test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4815as_fn_error $? "no acceptable C compiler found in \$PATH
4816See \`config.log' for more details" "$LINENO" 5; }
397841b5 4817
b879806f
AM
4818# Provide some information about the compiler.
4819$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4820set X $ac_compile
4821ac_compiler=$2
4822for ac_option in --version -v -V -qversion; do
4823 { { ac_try="$ac_compiler $ac_option >&5"
4824case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827esac
4828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4829$as_echo "$ac_try_echo"; } >&5
4830 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4831 ac_status=$?
4832 if test -s conftest.err; then
4833 sed '10a\
4834... rest of stderr output deleted ...
4835 10q' conftest.err >conftest.er1
4836 cat conftest.er1 >&5
b879806f 4837 fi
d0ac1c44 4838 rm -f conftest.er1 conftest.err
b879806f
AM
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; }
4841done
397841b5 4842
b879806f
AM
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4844$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4845if ${ac_cv_c_compiler_gnu+:} false; then :
44350750
NC
4846 $as_echo_n "(cached) " >&6
4847else
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
b879806f 4850
44350750
NC
4851int
4852main ()
4853{
b879806f
AM
4854#ifndef __GNUC__
4855 choke me
4856#endif
4857
4858 ;
44350750
NC
4859 return 0;
4860}
4861_ACEOF
b879806f
AM
4862if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_compiler_gnu=yes
44350750 4864else
b879806f 4865 ac_compiler_gnu=no
44350750 4866fi
b879806f
AM
4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868ac_cv_c_compiler_gnu=$ac_compiler_gnu
4869
44350750 4870fi
b879806f
AM
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4872$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4873if test $ac_compiler_gnu = yes; then
4874 GCC=yes
4875else
4876 GCC=
4877fi
4878ac_test_CFLAGS=${CFLAGS+set}
4879ac_save_CFLAGS=$CFLAGS
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4881$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4882if ${ac_cv_prog_cc_g+:} false; then :
b879806f
AM
4883 $as_echo_n "(cached) " >&6
4884else
4885 ac_save_c_werror_flag=$ac_c_werror_flag
4886 ac_c_werror_flag=yes
4887 ac_cv_prog_cc_g=no
4888 CFLAGS="-g"
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h. */
44350750 4891
b879806f
AM
4892int
4893main ()
4894{
44350750 4895
b879806f
AM
4896 ;
4897 return 0;
4898}
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901 ac_cv_prog_cc_g=yes
4902else
4903 CFLAGS=""
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h. */
4906
4907int
4908main ()
4909{
44350750 4910
b879806f
AM
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
44350750 4916
b879806f
AM
4917else
4918 ac_c_werror_flag=$ac_save_c_werror_flag
4919 CFLAGS="-g"
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h. */
397841b5 4922
b879806f
AM
4923int
4924main ()
4925{
397841b5 4926
b879806f
AM
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931if ac_fn_c_try_compile "$LINENO"; then :
4932 ac_cv_prog_cc_g=yes
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935fi
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 ac_c_werror_flag=$ac_save_c_werror_flag
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4942$as_echo "$ac_cv_prog_cc_g" >&6; }
4943if test "$ac_test_CFLAGS" = set; then
4944 CFLAGS=$ac_save_CFLAGS
4945elif test $ac_cv_prog_cc_g = yes; then
4946 if test "$GCC" = yes; then
4947 CFLAGS="-g -O2"
4948 else
4949 CFLAGS="-g"
4950 fi
4951else
4952 if test "$GCC" = yes; then
4953 CFLAGS="-O2"
4954 else
4955 CFLAGS=
4956 fi
4957fi
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4959$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4960if ${ac_cv_prog_cc_c89+:} false; then :
b879806f
AM
4961 $as_echo_n "(cached) " >&6
4962else
4963 ac_cv_prog_cc_c89=no
4964ac_save_CC=$CC
4965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h. */
4967#include <stdarg.h>
4968#include <stdio.h>
d0ac1c44 4969struct stat;
b879806f
AM
4970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4971struct buf { int x; };
4972FILE * (*rcsopen) (struct buf *, struct stat *, int);
4973static char *e (p, i)
4974 char **p;
4975 int i;
4976{
4977 return p[i];
4978}
4979static char *f (char * (*g) (char **, int), char **p, ...)
4980{
4981 char *s;
4982 va_list v;
4983 va_start (v,p);
4984 s = g (p, va_arg (v,int));
4985 va_end (v);
4986 return s;
4987}
df7b86aa 4988
b879806f
AM
4989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4990 function prototypes and stuff, but not '\xHH' hex character constants.
4991 These don't provoke an error unfortunately, instead are silently treated
4992 as 'x'. The following induces an error, until -std is added to get
4993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4994 array size at least. It's necessary to write '\x00'==0 to get something
4995 that's true only with -std. */
4996int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4997
b879806f
AM
4998/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4999 inside strings and character constants. */
5000#define FOO(x) 'x'
5001int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5002
5003int test (int i, double x);
5004struct s1 {int (*f) (int a);};
5005struct s2 {int (*f) (double a);};
5006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5007int argc;
5008char **argv;
5009int
5010main ()
5011{
5012return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5013 ;
5014 return 0;
5015}
5016_ACEOF
5017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5019do
5020 CC="$ac_save_CC $ac_arg"
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_cv_prog_cc_c89=$ac_arg
397841b5 5023fi
b879806f
AM
5024rm -f core conftest.err conftest.$ac_objext
5025 test "x$ac_cv_prog_cc_c89" != "xno" && break
5026done
5027rm -f conftest.$ac_ext
5028CC=$ac_save_CC
5029
397841b5 5030fi
b879806f
AM
5031# AC_CACHE_VAL
5032case "x$ac_cv_prog_cc_c89" in
5033 x)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035$as_echo "none needed" >&6; } ;;
5036 xno)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038$as_echo "unsupported" >&6; } ;;
5039 *)
5040 CC="$CC $ac_cv_prog_cc_c89"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5042$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5043esac
5044if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 5045
b879806f 5046fi
397841b5
AM
5047
5048ac_ext=c
5049ac_cpp='$CPP $CPPFLAGS'
5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f 5053
d0ac1c44
SM
5054ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5060$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5061if ${am_cv_prog_cc_c_o+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063else
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h. */
5066
5067int
5068main ()
5069{
5070
5071 ;
5072 return 0;
5073}
5074_ACEOF
5075 # Make sure it works both with $CC and with simple cc.
5076 # Following AC_PROG_CC_C_O, we do the test twice because some
5077 # compilers refuse to overwrite an existing .o file with -o,
5078 # though they will create one.
5079 am_cv_prog_cc_c_o=yes
5080 for am_i in 1 2; do
5081 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5082 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } \
5086 && test -f conftest2.$ac_objext; then
5087 : OK
5088 else
5089 am_cv_prog_cc_c_o=no
5090 break
5091 fi
5092 done
5093 rm -f core conftest*
5094 unset am_i
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5097$as_echo "$am_cv_prog_cc_c_o" >&6; }
5098if test "$am_cv_prog_cc_c_o" != yes; then
5099 # Losing compiler, so override with the script.
5100 # FIXME: It is wrong to rewrite CC.
5101 # But if we don't then we get into trouble of one sort or another.
5102 # A longer-term fix would be to have automake use am__CC in this case,
5103 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5104 CC="$am_aux_dir/compile $CC"
5105fi
5106ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112
b879806f
AM
5113ac_ext=cpp
5114ac_cpp='$CXXCPP $CPPFLAGS'
5115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118if test -z "$CXX"; then
5119 if test -n "$CCC"; then
5120 CXX=$CCC
5121 else
5122 if test -n "$ac_tool_prefix"; then
5123 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5124 do
5125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5129if ${ac_cv_prog_CXX+:} false; then :
397841b5
AM
5130 $as_echo_n "(cached) " >&6
5131else
b879806f
AM
5132 if test -n "$CXX"; then
5133 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 5142 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146done
5147 done
5148IFS=$as_save_IFS
5149
5150fi
5151fi
b879806f
AM
5152CXX=$ac_cv_prog_CXX
5153if test -n "$CXX"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5155$as_echo "$CXX" >&6; }
397841b5
AM
5156else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158$as_echo "no" >&6; }
5159fi
5160
5161
b879806f
AM
5162 test -n "$CXX" && break
5163 done
397841b5 5164fi
b879806f
AM
5165if test -z "$CXX"; then
5166 ac_ct_CXX=$CXX
5167 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5168do
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170set dummy $ac_prog; ac_word=$2
397841b5
AM
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5173if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5174 $as_echo_n "(cached) " >&6
252b5132 5175else
b879806f
AM
5176 if test -n "$ac_ct_CXX"; then
5177 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 5178else
ce2cded5
L
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
81ecdfbb 5184 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 5186 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5188 break 2
5189 fi
5190done
81ecdfbb
RW
5191 done
5192IFS=$as_save_IFS
5193
252b5132
RH
5194fi
5195fi
b879806f
AM
5196ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5197if test -n "$ac_ct_CXX"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5199$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 5200else
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
d7040cdb
SE
5203fi
5204
81ecdfbb 5205
b879806f 5206 test -n "$ac_ct_CXX" && break
d7040cdb 5207done
d7040cdb 5208
b879806f
AM
5209 if test "x$ac_ct_CXX" = x; then
5210 CXX="g++"
81ecdfbb
RW
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216ac_tool_warned=yes ;;
5217esac
b879806f 5218 CXX=$ac_ct_CXX
81ecdfbb 5219 fi
d7040cdb
SE
5220fi
5221
b879806f 5222 fi
d7040cdb 5223fi
ce2cded5 5224# Provide some information about the compiler.
b879806f 5225$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
5226set X $ac_compile
5227ac_compiler=$2
5228for ac_option in --version -v -V -qversion; do
5229 { { ac_try="$ac_compiler $ac_option >&5"
5230case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233esac
5234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5235$as_echo "$ac_try_echo"; } >&5
5236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5237 ac_status=$?
81ecdfbb
RW
5238 if test -s conftest.err; then
5239 sed '10a\
5240... rest of stderr output deleted ...
5241 10q' conftest.err >conftest.er1
5242 cat conftest.er1 >&5
81ecdfbb 5243 fi
d0ac1c44 5244 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }
5247done
d7040cdb 5248
b879806f
AM
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5250$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5251if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5252 $as_echo_n "(cached) " >&6
d7040cdb 5253else
81ecdfbb 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5255/* end confdefs.h. */
d7040cdb 5256
ce2cded5
L
5257int
5258main ()
5259{
5260#ifndef __GNUC__
5261 choke me
5262#endif
5263
5264 ;
5265 return 0;
5266}
5267_ACEOF
b879806f 5268if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 5269 ac_compiler_gnu=yes
d7040cdb 5270else
81ecdfbb 5271 ac_compiler_gnu=no
d7040cdb 5272fi
81ecdfbb 5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5274ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 5275
ce2cded5 5276fi
b879806f
AM
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5278$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 5279if test $ac_compiler_gnu = yes; then
b879806f 5280 GXX=yes
81ecdfbb 5281else
b879806f 5282 GXX=
81ecdfbb 5283fi
b879806f
AM
5284ac_test_CXXFLAGS=${CXXFLAGS+set}
5285ac_save_CXXFLAGS=$CXXFLAGS
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5287$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5288if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5289 $as_echo_n "(cached) " >&6
5290else
b879806f
AM
5291 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5292 ac_cxx_werror_flag=yes
5293 ac_cv_prog_cxx_g=no
5294 CXXFLAGS="-g"
81ecdfbb 5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5296/* end confdefs.h. */
d7040cdb 5297
ce2cded5
L
5298int
5299main ()
5300{
d7040cdb 5301
ce2cded5
L
5302 ;
5303 return 0;
5304}
5305_ACEOF
b879806f
AM
5306if ac_fn_cxx_try_compile "$LINENO"; then :
5307 ac_cv_prog_cxx_g=yes
ce2cded5 5308else
b879806f 5309 CXXFLAGS=""
81ecdfbb
RW
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h. */
5312
5313int
5314main ()
5315{
5316
5317 ;
5318 return 0;
5319}
5320_ACEOF
b879806f 5321if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5322
5323else
b879806f
AM
5324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5325 CXXFLAGS="-g"
81ecdfbb
RW
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h. */
5328
5329int
5330main ()
5331{
d7040cdb 5332
81ecdfbb
RW
5333 ;
5334 return 0;
5335}
5336_ACEOF
b879806f
AM
5337if ac_fn_cxx_try_compile "$LINENO"; then :
5338 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5339fi
5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341fi
5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5343fi
81ecdfbb 5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5345 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5346fi
b879806f
AM
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5348$as_echo "$ac_cv_prog_cxx_g" >&6; }
5349if test "$ac_test_CXXFLAGS" = set; then
5350 CXXFLAGS=$ac_save_CXXFLAGS
5351elif test $ac_cv_prog_cxx_g = yes; then
5352 if test "$GXX" = yes; then
5353 CXXFLAGS="-g -O2"
ce2cded5 5354 else
b879806f 5355 CXXFLAGS="-g"
ce2cded5 5356 fi
d7040cdb 5357else
b879806f
AM
5358 if test "$GXX" = yes; then
5359 CXXFLAGS="-O2"
ce2cded5 5360 else
b879806f 5361 CXXFLAGS=
ce2cded5 5362 fi
d7040cdb 5363fi
b879806f
AM
5364ac_ext=c
5365ac_cpp='$CPP $CPPFLAGS'
5366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369
5370depcc="$CXX" am_compiler_list=
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5373$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 5374if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
81ecdfbb 5375 $as_echo_n "(cached) " >&6
d7040cdb 5376else
b879806f
AM
5377 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5378 # We make a subdir and do the tests there. Otherwise we can end up
5379 # making bogus files that we don't know about and never remove. For
5380 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
5381 # making a dummy file named 'D' -- because '-MD' means "put the output
5382 # in D".
6eb7d830 5383 rm -rf conftest.dir
b879806f
AM
5384 mkdir conftest.dir
5385 # Copy depcomp to subdir because otherwise we won't find it if we're
5386 # using a relative directory.
5387 cp "$am_depcomp" conftest.dir
5388 cd conftest.dir
5389 # We will build objects and dependencies in a subdirectory because
5390 # it helps to detect inapplicable dependency modes. For instance
5391 # both Tru64's cc and ICC support -MD to output dependencies as a
5392 # side effect of compilation, but ICC will put the dependencies in
5393 # the current directory while Tru64 will put them in the object
5394 # directory.
5395 mkdir sub
d7040cdb 5396
b879806f
AM
5397 am_cv_CXX_dependencies_compiler_type=none
5398 if test "$am_compiler_list" = ""; then
5399 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5400 fi
5401 am__universal=false
5402 case " $depcc " in #(
5403 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5404 esac
d7040cdb 5405
b879806f
AM
5406 for depmode in $am_compiler_list; do
5407 # Setup a source with many dependencies, because some compilers
5408 # like to wrap large dependency lists on column 80 (with \), and
5409 # we should not choose a depcomp mode which is confused by this.
5410 #
5411 # We need to recreate these files for each test, as the compiler may
5412 # overwrite some of them when testing with obscure command lines.
5413 # This happens at least with the AIX C compiler.
5414 : > sub/conftest.c
5415 for i in 1 2 3 4 5 6; do
5416 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
5417 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5418 # Solaris 10 /bin/sh.
5419 echo '/* dummy */' > sub/conftst$i.h
b879806f
AM
5420 done
5421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5422
d0ac1c44 5423 # We check with '-c' and '-o' for the sake of the "dashmstdout"
b879806f 5424 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
5425 # handle '-M -o', and we need to detect this. Also, some Intel
5426 # versions had trouble with output in subdirs.
b879806f
AM
5427 am__obj=sub/conftest.${OBJEXT-o}
5428 am__minus_obj="-o $am__obj"
5429 case $depmode in
5430 gcc)
5431 # This depmode causes a compiler race in universal mode.
5432 test "$am__universal" = false || continue
5433 ;;
5434 nosideeffect)
d0ac1c44
SM
5435 # After this tag, mechanisms are not by side-effect, so they'll
5436 # only be used when explicitly requested.
b879806f
AM
5437 if test "x$enable_dependency_tracking" = xyes; then
5438 continue
5439 else
5440 break
5441 fi
5442 ;;
6eb7d830 5443 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 5444 # This compiler won't grok '-c -o', but also, the minuso test has
b879806f
AM
5445 # not run yet. These depmodes are late enough in the game, and
5446 # so weak that their functioning should not be impacted.
5447 am__obj=conftest.${OBJEXT-o}
5448 am__minus_obj=
5449 ;;
5450 none) break ;;
5451 esac
5452 if depmode=$depmode \
5453 source=sub/conftest.c object=$am__obj \
5454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5455 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5456 >/dev/null 2>conftest.err &&
5457 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5459 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5461 # icc doesn't choke on unknown options, it will just issue warnings
5462 # or remarks (even with -Werror). So we grep stderr for any message
5463 # that says an option was ignored or not supported.
5464 # When given -MP, icc 7.0 and 7.1 complain thusly:
5465 # icc: Command line warning: ignoring option '-M'; no argument required
5466 # The diagnosis changed in icc 8.0:
5467 # icc: Command line remark: option '-MP' not supported
5468 if (grep 'ignoring option' conftest.err ||
5469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5470 am_cv_CXX_dependencies_compiler_type=$depmode
5471 break
5472 fi
5473 fi
5474 done
5475
5476 cd ..
5477 rm -rf conftest.dir
5478else
5479 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5480fi
d7040cdb 5481
ce2cded5 5482fi
b879806f
AM
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5484$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5485CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5486
b879806f
AM
5487 if
5488 test "x$enable_dependency_tracking" != xno \
5489 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5490 am__fastdepCXX_TRUE=
5491 am__fastdepCXX_FALSE='#'
5492else
5493 am__fastdepCXX_TRUE='#'
5494 am__fastdepCXX_FALSE=
ce2cded5 5495fi
d7040cdb 5496
b879806f 5497
68880f31
CLT
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5499$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5500if ${ac_cv_path_GREP+:} false; then :
68880f31
CLT
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -z "$GREP"; then
5504 ac_path_GREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in grep ggrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5514 as_fn_executable_p "$ac_path_GREP" || continue
68880f31
CLT
5515# Check for GNU ac_path_GREP and select it if it is found.
5516 # Check for GNU $ac_path_GREP
5517case `"$ac_path_GREP" --version 2>&1` in
5518*GNU*)
5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5520*)
5521 ac_count=0
5522 $as_echo_n 0123456789 >"conftest.in"
5523 while :
5524 do
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo 'GREP' >> "conftest.nl"
5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_GREP="$ac_path_GREP"
5535 ac_path_GREP_max=$ac_count
5536 fi
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5539 done
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541esac
5542
5543 $ac_path_GREP_found && break 3
5544 done
5545 done
5546 done
5547IFS=$as_save_IFS
5548 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
68880f31
CLT
5550 fi
5551else
5552 ac_cv_path_GREP=$GREP
5553fi
5554
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5557$as_echo "$ac_cv_path_GREP" >&6; }
5558 GREP="$ac_cv_path_GREP"
5559
5560
ce2cded5
L
5561ac_ext=c
5562ac_cpp='$CPP $CPPFLAGS'
5563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5567$as_echo_n "checking how to run the C preprocessor... " >&6; }
5568# On Suns, sometimes $CPP names a directory.
5569if test -n "$CPP" && test -d "$CPP"; then
5570 CPP=
7357c5b6 5571fi
b879806f 5572if test -z "$CPP"; then
d0ac1c44 5573 if ${ac_cv_prog_CPP+:} false; then :
3cb62297
L
5574 $as_echo_n "(cached) " >&6
5575else
b879806f
AM
5576 # Double quotes because CPP needs to be expanded
5577 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5578 do
5579 ac_preproc_ok=false
5580for ac_c_preproc_warn_flag in '' yes
3cb62297 5581do
b879806f
AM
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h. */
5590#ifdef __STDC__
5591# include <limits.h>
5592#else
5593# include <assert.h>
5594#endif
5595 Syntax error
5596_ACEOF
5597if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5598
3cb62297 5599else
b879806f
AM
5600 # Broken: fails on valid input.
5601continue
7357c5b6 5602fi
d0ac1c44 5603rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5604
b879806f
AM
5605 # OK, works on sane cases. Now check whether nonexistent headers
5606 # can be detected and how.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h. */
5609#include <ac_nonexistent.h>
5610_ACEOF
5611if ac_fn_c_try_cpp "$LINENO"; then :
5612 # Broken: success on invalid input.
5613continue
5614else
5615 # Passes both tests.
5616ac_preproc_ok=:
5617break
5618fi
d0ac1c44 5619rm -f conftest.err conftest.i conftest.$ac_ext
42ecbf5e 5620
3cb62297 5621done
b879806f 5622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5623rm -f conftest.i conftest.err conftest.$ac_ext
b879806f
AM
5624if $ac_preproc_ok; then :
5625 break
7357c5b6 5626fi
ac48eca1 5627
b879806f
AM
5628 done
5629 ac_cv_prog_CPP=$CPP
d7040cdb 5630
b879806f
AM
5631fi
5632 CPP=$ac_cv_prog_CPP
7357c5b6 5633else
b879806f
AM
5634 ac_cv_prog_CPP=$CPP
5635fi
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5637$as_echo "$CPP" >&6; }
5638ac_preproc_ok=false
5639for ac_c_preproc_warn_flag in '' yes
5640do
5641 # Use a header file that comes with gcc, so configuring glibc
5642 # with a fresh cross-compiler works.
5643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644 # <limits.h> exists even on freestanding compilers.
5645 # On the NeXT, cc -E runs the code through the compiler's parser,
5646 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5648/* end confdefs.h. */
b879806f
AM
5649#ifdef __STDC__
5650# include <limits.h>
5651#else
5652# include <assert.h>
3cb62297 5653#endif
b879806f 5654 Syntax error
7357c5b6 5655_ACEOF
b879806f
AM
5656if ac_fn_c_try_cpp "$LINENO"; then :
5657
81ecdfbb 5658else
b879806f
AM
5659 # Broken: fails on valid input.
5660continue
7357c5b6 5661fi
d0ac1c44 5662rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb 5663
b879806f
AM
5664 # OK, works on sane cases. Now check whether nonexistent headers
5665 # can be detected and how.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668#include <ac_nonexistent.h>
5669_ACEOF
5670if ac_fn_c_try_cpp "$LINENO"; then :
5671 # Broken: success on invalid input.
5672continue
3cb62297 5673else
b879806f
AM
5674 # Passes both tests.
5675ac_preproc_ok=:
5676break
7357c5b6 5677fi
d0ac1c44 5678rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5679
b879806f
AM
5680done
5681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5682rm -f conftest.i conftest.err conftest.$ac_ext
b879806f 5683if $ac_preproc_ok; then :
252b5132 5684
3cb62297 5685else
b879806f
AM
5686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5688as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5689See \`config.log' for more details" "$LINENO" 5; }
b879806f 5690fi
42ecbf5e 5691
b879806f
AM
5692ac_ext=c
5693ac_cpp='$CPP $CPPFLAGS'
5694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5697
5698
b879806f
AM
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5700$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5701if ${ac_cv_path_EGREP+:} false; then :
b879806f
AM
5702 $as_echo_n "(cached) " >&6
5703else
5704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5705 then ac_cv_path_EGREP="$GREP -E"
5706 else
5707 if test -z "$EGREP"; then
5708 ac_path_EGREP_found=false
5709 # Loop through the user's path and test for each of PROGNAME-LIST
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_prog in egrep; do
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5718 as_fn_executable_p "$ac_path_EGREP" || continue
b879806f
AM
5719# Check for GNU ac_path_EGREP and select it if it is found.
5720 # Check for GNU $ac_path_EGREP
5721case `"$ac_path_EGREP" --version 2>&1` in
5722*GNU*)
5723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5724*)
5725 ac_count=0
5726 $as_echo_n 0123456789 >"conftest.in"
5727 while :
5728 do
5729 cat "conftest.in" "conftest.in" >"conftest.tmp"
5730 mv "conftest.tmp" "conftest.in"
5731 cp "conftest.in" "conftest.nl"
5732 $as_echo 'EGREP' >> "conftest.nl"
5733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5735 as_fn_arith $ac_count + 1 && ac_count=$as_val
5736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5737 # Best one so far, save it but keep looking for a better one
5738 ac_cv_path_EGREP="$ac_path_EGREP"
5739 ac_path_EGREP_max=$ac_count
5740 fi
5741 # 10*(2^10) chars as input seems more than enough
5742 test $ac_count -gt 10 && break
5743 done
5744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5745esac
5746
5747 $ac_path_EGREP_found && break 3
5748 done
5749 done
5750 done
5751IFS=$as_save_IFS
5752 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5753 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b879806f
AM
5754 fi
5755else
5756 ac_cv_path_EGREP=$EGREP
5757fi
5758
5759 fi
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5762$as_echo "$ac_cv_path_EGREP" >&6; }
5763 EGREP="$ac_cv_path_EGREP"
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5767$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5768if ${ac_cv_header_stdc+:} false; then :
b879806f
AM
5769 $as_echo_n "(cached) " >&6
5770else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5772/* end confdefs.h. */
b879806f
AM
5773#include <stdlib.h>
5774#include <stdarg.h>
5775#include <string.h>
5776#include <float.h>
42ecbf5e 5777
3cb62297
L
5778int
5779main ()
5780{
42ecbf5e 5781
3cb62297
L
5782 ;
5783 return 0;
5784}
5785_ACEOF
b879806f
AM
5786if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_header_stdc=yes
5788else
5789 ac_cv_header_stdc=no
3cb62297
L
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5792
5793if test $ac_cv_header_stdc = yes; then
5794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h. */
5797#include <string.h>
5798
5799_ACEOF
5800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5801 $EGREP "memchr" >/dev/null 2>&1; then :
5802
5803else
5804 ac_cv_header_stdc=no
3cb62297 5805fi
b879806f
AM
5806rm -f conftest*
5807
3cb62297 5808fi
b879806f
AM
5809
5810if test $ac_cv_header_stdc = yes; then
5811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h. */
5814#include <stdlib.h>
5815
5816_ACEOF
5817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5818 $EGREP "free" >/dev/null 2>&1; then :
5819
ce2cded5 5820else
b879806f 5821 ac_cv_header_stdc=no
ce2cded5 5822fi
b879806f 5823rm -f conftest*
42ecbf5e 5824
b879806f 5825fi
e5a52504 5826
b879806f
AM
5827if test $ac_cv_header_stdc = yes; then
5828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5829 if test "$cross_compiling" = yes; then :
5830 :
3cb62297 5831else
b879806f
AM
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834#include <ctype.h>
5835#include <stdlib.h>
5836#if ((' ' & 0x0FF) == 0x020)
5837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5839#else
5840# define ISLOWER(c) \
5841 (('a' <= (c) && (c) <= 'i') \
5842 || ('j' <= (c) && (c) <= 'r') \
5843 || ('s' <= (c) && (c) <= 'z'))
5844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5845#endif
3cb62297
L
5846
5847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848int
5849main ()
5850{
5851 int i;
5852 for (i = 0; i < 256; i++)
5853 if (XOR (islower (i), ISLOWER (i))
5854 || toupper (i) != TOUPPER (i))
5855 return 2;
5856 return 0;
5857}
5858_ACEOF
5859if ac_fn_c_try_run "$LINENO"; then :
5860
5861else
5862 ac_cv_header_stdc=no
5863fi
5864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5865 conftest.$ac_objext conftest.beam conftest.$ac_ext
5866fi
5867
5868fi
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5871$as_echo "$ac_cv_header_stdc" >&6; }
5872if test $ac_cv_header_stdc = yes; then
5873
5874$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5875
5876fi
5877
5878# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5879for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5880 inttypes.h stdint.h unistd.h
5881do :
5882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5883ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5884"
d0ac1c44 5885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3cb62297
L
5886 cat >>confdefs.h <<_ACEOF
5887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5888_ACEOF
5889
5890fi
5891
5892done
5893
5894
5895
5896 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5897if test "x$ac_cv_header_minix_config_h" = xyes; then :
3cb62297
L
5898 MINIX=yes
5899else
5900 MINIX=
5901fi
5902
5903
5904 if test "$MINIX" = yes; then
5905
5906$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5907
5908
5909$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5910
5911
5912$as_echo "#define _MINIX 1" >>confdefs.h
5913
5914 fi
5915
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5918$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5919if ${ac_cv_safe_to_define___extensions__+:} false; then :
3cb62297
L
5920 $as_echo_n "(cached) " >&6
5921else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h. */
5924
d0ac1c44
SM
5925# define __EXTENSIONS__ 1
5926 $ac_includes_default
3cb62297
L
5927int
5928main ()
5929{
5930
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"; then :
5936 ac_cv_safe_to_define___extensions__=yes
5937else
5938 ac_cv_safe_to_define___extensions__=no
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5943$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5944 test $ac_cv_safe_to_define___extensions__ = yes &&
5945 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5946
5947 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5948
5949 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5950
5951 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5952
5953 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5954
5955
5956
5957
5958
3cb62297 5959
b879806f
AM
5960case `pwd` in
5961 *\ * | *\ *)
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5963$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5964esac
3cb62297
L
5965
5966
da2f07f1 5967
b879806f
AM
5968macro_version='2.2.7a'
5969macro_revision='1.3134'
d7040cdb 5970
d7040cdb
SE
5971
5972
d7040cdb 5973
d7040cdb 5974
42ecbf5e 5975
d7040cdb 5976
252b5132 5977
252b5132 5978
252b5132 5979
252b5132
RH
5980
5981
ce2cded5 5982
b214d478 5983ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5984
3725885a
RW
5985# Backslashify metacharacters that are still active within
5986# double-quoted strings.
5987sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5988
5989# Same as above, but do not quote variable references.
5990double_quote_subst='s/\(["`\\]\)/\\\1/g'
5991
5992# Sed substitution to delay expansion of an escaped shell variable in a
5993# double_quote_subst'ed string.
5994delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5995
5996# Sed substitution to delay expansion of an escaped single quote.
5997delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5998
5999# Sed substitution to avoid accidental globbing in evaled expressions
6000no_glob_subst='s/\*/\\\*/g'
6001
6002ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6003ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6004ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6005
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6007$as_echo_n "checking how to print strings... " >&6; }
6008# Test print first, because it will be a builtin if present.
6009if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6010 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6011 ECHO='print -r --'
6012elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6013 ECHO='printf %s\n'
6014else
6015 # Use this function as a fallback that always works.
6016 func_fallback_echo ()
6017 {
6018 eval 'cat <<_LTECHO_EOF
6019$1
6020_LTECHO_EOF'
6021 }
6022 ECHO='func_fallback_echo'
6023fi
6024
6025# func_echo_all arg...
6026# Invoke $ECHO with all args, space-separated.
6027func_echo_all ()
6028{
6029 $ECHO ""
6030}
6031
6032case "$ECHO" in
6033 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6034$as_echo "printf" >&6; } ;;
6035 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6036$as_echo "print -r" >&6; } ;;
6037 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6038$as_echo "cat" >&6; } ;;
6039esac
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
81ecdfbb
RW
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6055$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 6056if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
6057 $as_echo_n "(cached) " >&6
6058else
6059 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6060 for ac_i in 1 2 3 4 5 6 7; do
6061 ac_script="$ac_script$as_nl$ac_script"
6062 done
6063 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6064 { ac_script=; unset ac_script;}
6065 if test -z "$SED"; then
6066 ac_path_SED_found=false
6067 # Loop through the user's path and test for each of PROGNAME-LIST
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
81ecdfbb 6073 for ac_prog in sed gsed; do
7357c5b6 6074 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 6075 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 6076 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
6077# Check for GNU ac_path_SED and select it if it is found.
6078 # Check for GNU $ac_path_SED
6079case `"$ac_path_SED" --version 2>&1` in
6080*GNU*)
6081 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6082*)
6083 ac_count=0
6084 $as_echo_n 0123456789 >"conftest.in"
6085 while :
6086 do
6087 cat "conftest.in" "conftest.in" >"conftest.tmp"
6088 mv "conftest.tmp" "conftest.in"
6089 cp "conftest.in" "conftest.nl"
6090 $as_echo '' >> "conftest.nl"
6091 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6093 as_fn_arith $ac_count + 1 && ac_count=$as_val
6094 if test $ac_count -gt ${ac_path_SED_max-0}; then
6095 # Best one so far, save it but keep looking for a better one
6096 ac_cv_path_SED="$ac_path_SED"
6097 ac_path_SED_max=$ac_count
6098 fi
6099 # 10*(2^10) chars as input seems more than enough
6100 test $ac_count -gt 10 && break
6101 done
6102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6103esac
6104
6105 $ac_path_SED_found && break 3
7357c5b6
AM
6106 done
6107 done
81ecdfbb 6108 done
7357c5b6 6109IFS=$as_save_IFS
81ecdfbb 6110 if test -z "$ac_cv_path_SED"; then
d0ac1c44 6111 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6112 fi
81ecdfbb
RW
6113else
6114 ac_cv_path_SED=$SED
7357c5b6 6115fi
20e95c23 6116
81ecdfbb
RW
6117fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6119$as_echo "$ac_cv_path_SED" >&6; }
6120 SED="$ac_cv_path_SED"
6121 rm -f conftest.sed
20e95c23 6122
7357c5b6
AM
6123test -z "$SED" && SED=sed
6124Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6125
6126
6127
6128
6129
6130
20e95c23 6131
20e95c23 6132
d7040cdb 6133
d7040cdb 6134
7357c5b6 6135
81ecdfbb
RW
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6137$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 6138if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 6139 $as_echo_n "(cached) " >&6
7357c5b6 6140else
81ecdfbb
RW
6141 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6142 then ac_cv_path_FGREP="$GREP -F"
6143 else
6144 if test -z "$FGREP"; then
6145 ac_path_FGREP_found=false
6146 # Loop through the user's path and test for each of PROGNAME-LIST
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_prog in fgrep; do
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 6155 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
6156# Check for GNU ac_path_FGREP and select it if it is found.
6157 # Check for GNU $ac_path_FGREP
6158case `"$ac_path_FGREP" --version 2>&1` in
6159*GNU*)
6160 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6161*)
6162 ac_count=0
6163 $as_echo_n 0123456789 >"conftest.in"
6164 while :
6165 do
6166 cat "conftest.in" "conftest.in" >"conftest.tmp"
6167 mv "conftest.tmp" "conftest.in"
6168 cp "conftest.in" "conftest.nl"
6169 $as_echo 'FGREP' >> "conftest.nl"
6170 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6172 as_fn_arith $ac_count + 1 && ac_count=$as_val
6173 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6174 # Best one so far, save it but keep looking for a better one
6175 ac_cv_path_FGREP="$ac_path_FGREP"
6176 ac_path_FGREP_max=$ac_count
7357c5b6 6177 fi
81ecdfbb
RW
6178 # 10*(2^10) chars as input seems more than enough
6179 test $ac_count -gt 10 && break
6180 done
6181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6182esac
6183
6184 $ac_path_FGREP_found && break 3
6185 done
6186 done
6187 done
6188IFS=$as_save_IFS
6189 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 6190 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
6191 fi
6192else
6193 ac_cv_path_FGREP=$FGREP
6194fi
6195
6196 fi
20e95c23 6197fi
81ecdfbb
RW
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6199$as_echo "$ac_cv_path_FGREP" >&6; }
6200 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6201
6202
6203test -z "$GREP" && GREP=grep
6204
d7040cdb
SE
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
20e95c23 6216
ce2cded5 6217
d7040cdb 6218
7357c5b6
AM
6219
6220
6221
6222
81ecdfbb
RW
6223# Check whether --with-gnu-ld was given.
6224if test "${with_gnu_ld+set}" = set; then :
6225 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6226else
6227 with_gnu_ld=no
81ecdfbb
RW
6228fi
6229
7357c5b6
AM
6230ac_prog=ld
6231if test "$GCC" = yes; then
6232 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6234$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6235 case $host in
6236 *-*-mingw*)
6237 # gcc leaves a trailing carriage return which upsets mingw
6238 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6239 *)
6240 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6241 esac
6242 case $ac_prog in
6243 # Accept absolute paths.
6244 [\\/]* | ?:[\\/]*)
6245 re_direlt='/[^/][^/]*/\.\./'
6246 # Canonicalize the pathname of ld
6247 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6248 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6249 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6250 done
6251 test -z "$LD" && LD="$ac_prog"
6252 ;;
6253 "")
6254 # If it fails, then pretend we aren't using GCC.
6255 ac_prog=ld
6256 ;;
6257 *)
6258 # If it is relative, then search for the first ld in PATH.
6259 with_gnu_ld=unknown
6260 ;;
6261 esac
6262elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6264$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6265else
81ecdfbb
RW
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6267$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6268fi
d0ac1c44 6269if ${lt_cv_path_LD+:} false; then :
81ecdfbb 6270 $as_echo_n "(cached) " >&6
ce2cded5 6271else
7357c5b6
AM
6272 if test -z "$LD"; then
6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274 for ac_dir in $PATH; do
6275 IFS="$lt_save_ifs"
6276 test -z "$ac_dir" && ac_dir=.
6277 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6278 lt_cv_path_LD="$ac_dir/$ac_prog"
6279 # Check to see if the program is GNU ld. I'd rather use --version,
6280 # but apparently some variants of GNU ld only accept -v.
6281 # Break only if it was the GNU/non-GNU ld that we prefer.
6282 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6283 *GNU* | *'with BFD'*)
6284 test "$with_gnu_ld" != no && break
6285 ;;
6286 *)
6287 test "$with_gnu_ld" != yes && break
6288 ;;
6289 esac
6290 fi
6291 done
6292 IFS="$lt_save_ifs"
ce2cded5 6293else
7357c5b6 6294 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6295fi
6296fi
7357c5b6
AM
6297
6298LD="$lt_cv_path_LD"
6299if test -n "$LD"; then
81ecdfbb
RW
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6301$as_echo "$LD" >&6; }
ce2cded5 6302else
81ecdfbb
RW
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
ce2cded5 6305fi
d0ac1c44 6306test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6308$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 6309if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 6310 $as_echo_n "(cached) " >&6
ce2cded5 6311else
7357c5b6
AM
6312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6313case `$LD -v 2>&1 </dev/null` in
6314*GNU* | *'with BFD'*)
6315 lt_cv_prog_gnu_ld=yes
6316 ;;
6317*)
6318 lt_cv_prog_gnu_ld=no
6319 ;;
6320esac
ce2cded5 6321fi
81ecdfbb
RW
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6323$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6324with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6325
6326
6327
6328
6329
6330
6331
6332
6333
81ecdfbb
RW
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6335$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6336if ${lt_cv_path_NM+:} false; then :
81ecdfbb 6337 $as_echo_n "(cached) " >&6
ce2cded5 6338else
7357c5b6
AM
6339 if test -n "$NM"; then
6340 # Let the user override the test.
6341 lt_cv_path_NM="$NM"
ce2cded5 6342else
7357c5b6
AM
6343 lt_nm_to_check="${ac_tool_prefix}nm"
6344 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6345 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6346 fi
7357c5b6
AM
6347 for lt_tmp_nm in $lt_nm_to_check; do
6348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6349 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6350 IFS="$lt_save_ifs"
6351 test -z "$ac_dir" && ac_dir=.
6352 tmp_nm="$ac_dir/$lt_tmp_nm"
6353 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6354 # Check to see if the nm accepts a BSD-compat flag.
6355 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6356 # nm: unknown option "B" ignored
6357 # Tru64's nm complains that /dev/null is an invalid object file
6358 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6359 */dev/null* | *'Invalid file or object type'*)
6360 lt_cv_path_NM="$tmp_nm -B"
6361 break
6362 ;;
6363 *)
6364 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6365 */dev/null*)
6366 lt_cv_path_NM="$tmp_nm -p"
6367 break
6368 ;;
6369 *)
6370 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6371 continue # so that we can try to find one that supports BSD flags
6372 ;;
6373 esac
6374 ;;
6375 esac
6376 fi
6377 done
6378 IFS="$lt_save_ifs"
6379 done
6380 : ${lt_cv_path_NM=no}
ce2cded5
L
6381fi
6382fi
81ecdfbb
RW
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6384$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6385if test "$lt_cv_path_NM" != "no"; then
6386 NM="$lt_cv_path_NM"
ce2cded5 6387else
7357c5b6 6388 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6389 if test -n "$DUMPBIN"; then :
6390 # Let the user override the test.
6391 else
6392 if test -n "$ac_tool_prefix"; then
6393 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6394 do
6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6399if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 6400 $as_echo_n "(cached) " >&6
20e95c23 6401else
7357c5b6
AM
6402 if test -n "$DUMPBIN"; then
6403 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
81ecdfbb 6410 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6412 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6414 break 2
6415 fi
6416done
81ecdfbb
RW
6417 done
6418IFS=$as_save_IFS
d7040cdb 6419
20e95c23 6420fi
ce2cded5 6421fi
7357c5b6
AM
6422DUMPBIN=$ac_cv_prog_DUMPBIN
6423if test -n "$DUMPBIN"; then
81ecdfbb
RW
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6425$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6426else
81ecdfbb
RW
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; }
42ecbf5e
DJ
6429fi
6430
81ecdfbb 6431
7357c5b6
AM
6432 test -n "$DUMPBIN" && break
6433 done
ce2cded5 6434fi
7357c5b6
AM
6435if test -z "$DUMPBIN"; then
6436 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6437 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6438do
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6443if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 6444 $as_echo_n "(cached) " >&6
42ecbf5e 6445else
7357c5b6
AM
6446 if test -n "$ac_ct_DUMPBIN"; then
6447 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
81ecdfbb 6454 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6456 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6458 break 2
6459 fi
6460done
81ecdfbb
RW
6461 done
6462IFS=$as_save_IFS
d7040cdb 6463
ce2cded5
L
6464fi
6465fi
7357c5b6
AM
6466ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6467if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6469$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6470else
81ecdfbb
RW
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
ce2cded5 6473fi
d7040cdb 6474
81ecdfbb 6475
7357c5b6 6476 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6477done
d7040cdb 6478
81ecdfbb
RW
6479 if test "x$ac_ct_DUMPBIN" = x; then
6480 DUMPBIN=":"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483yes:)
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486ac_tool_warned=yes ;;
6487esac
6488 DUMPBIN=$ac_ct_DUMPBIN
6489 fi
ce2cded5 6490fi
7357c5b6 6491
3725885a
RW
6492 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6493 *COFF*)
6494 DUMPBIN="$DUMPBIN -symbols"
6495 ;;
6496 *)
6497 DUMPBIN=:
6498 ;;
6499 esac
6500 fi
7357c5b6
AM
6501
6502 if test "$DUMPBIN" != ":"; then
6503 NM="$DUMPBIN"
6504 fi
ce2cded5 6505fi
7357c5b6
AM
6506test -z "$NM" && NM=nm
6507
6508
6509
6510
6511
6512
81ecdfbb
RW
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6514$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6515if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 6516 $as_echo_n "(cached) " >&6
20e95c23 6517else
7357c5b6
AM
6518 lt_cv_nm_interface="BSD nm"
6519 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6520 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6521 (eval "$ac_compile" 2>conftest.err)
6522 cat conftest.err >&5
3725885a 6523 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6525 cat conftest.err >&5
3725885a 6526 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6527 cat conftest.out >&5
6528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6529 lt_cv_nm_interface="MS dumpbin"
6530 fi
6531 rm -f conftest*
20e95c23 6532fi
81ecdfbb
RW
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6534$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6535
81ecdfbb
RW
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6537$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6538LN_S=$as_ln_s
6539if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6541$as_echo "yes" >&6; }
ce2cded5 6542else
81ecdfbb
RW
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6544$as_echo "no, using $LN_S" >&6; }
d7040cdb 6545fi
20e95c23 6546
7357c5b6 6547# find the maximum length of command line arguments
81ecdfbb
RW
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6549$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6550if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 6551 $as_echo_n "(cached) " >&6
7357c5b6
AM
6552else
6553 i=0
6554 teststring="ABCD"
20e95c23 6555
7357c5b6
AM
6556 case $build_os in
6557 msdosdjgpp*)
6558 # On DJGPP, this test can blow up pretty badly due to problems in libc
6559 # (any single argument exceeding 2000 bytes causes a buffer overrun
6560 # during glob expansion). Even if it were fixed, the result of this
6561 # check would be larger than it should be.
6562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6563 ;;
20e95c23 6564
7357c5b6
AM
6565 gnu*)
6566 # Under GNU Hurd, this test is not required because there is
6567 # no limit to the length of command line arguments.
6568 # Libtool will interpret -1 as no limit whatsoever
6569 lt_cv_sys_max_cmd_len=-1;
6570 ;;
20e95c23 6571
b214d478 6572 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6573 # On Win9x/ME, this test blows up -- it succeeds, but takes
6574 # about 5 minutes as the teststring grows exponentially.
6575 # Worse, since 9x/ME are not pre-emptively multitasking,
6576 # you end up with a "frozen" computer, even though with patience
6577 # the test eventually succeeds (with a max line length of 256k).
6578 # Instead, let's just punt: use the minimum linelength reported by
6579 # all of the supported platforms: 8192 (on NT/2K/XP).
6580 lt_cv_sys_max_cmd_len=8192;
6581 ;;
20e95c23 6582
3725885a
RW
6583 mint*)
6584 # On MiNT this can take a long time and run out of memory.
6585 lt_cv_sys_max_cmd_len=8192;
6586 ;;
6587
7357c5b6
AM
6588 amigaos*)
6589 # On AmigaOS with pdksh, this test takes hours, literally.
6590 # So we just punt and use a minimum line length of 8192.
6591 lt_cv_sys_max_cmd_len=8192;
6592 ;;
20e95c23 6593
7357c5b6
AM
6594 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6595 # This has been around since 386BSD, at least. Likely further.
6596 if test -x /sbin/sysctl; then
6597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6598 elif test -x /usr/sbin/sysctl; then
6599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6600 else
6601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6602 fi
6603 # And add a safety zone
6604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6606 ;;
d7040cdb 6607
7357c5b6
AM
6608 interix*)
6609 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6610 lt_cv_sys_max_cmd_len=196608
6611 ;;
d7040cdb 6612
7357c5b6
AM
6613 osf*)
6614 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6615 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6616 # nice to cause kernel panics so lets avoid the loop below.
6617 # First set a reasonable default.
6618 lt_cv_sys_max_cmd_len=16384
6619 #
6620 if test -x /sbin/sysconfig; then
6621 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6622 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6623 esac
6624 fi
6625 ;;
6626 sco3.2v5*)
6627 lt_cv_sys_max_cmd_len=102400
6628 ;;
6629 sysv5* | sco5v6* | sysv4.2uw2*)
6630 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6631 if test -n "$kargmax"; then
6632 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6633 else
6634 lt_cv_sys_max_cmd_len=32768
6635 fi
ce2cded5
L
6636 ;;
6637 *)
b214d478
SE
6638 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6639 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6642 else
6643 # Make teststring a little bigger before we do anything with it.
6644 # a 1K string should be a reasonable start.
6645 for i in 1 2 3 4 5 6 7 8 ; do
6646 teststring=$teststring$teststring
6647 done
6648 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6649 # If test is not a shell built-in, we'll probably end up computing a
6650 # maximum length that is only half of the actual maximum length, but
6651 # we can't tell.
3725885a
RW
6652 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6653 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6654 test $i != 17 # 1/2 MB should be enough
6655 do
6656 i=`expr $i + 1`
6657 teststring=$teststring$teststring
6658 done
6659 # Only check the string length outside the loop.
6660 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6661 teststring=
6662 # Add a significant safety factor because C++ compilers can tack on
6663 # massive amounts of additional arguments before passing them to the
6664 # linker. It appears as though 1/2 is a usable value.
6665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6666 fi
ce2cded5
L
6667 ;;
6668 esac
d7040cdb 6669
7357c5b6 6670fi
d7040cdb 6671
7357c5b6 6672if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6674$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6675else
81ecdfbb
RW
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6677$as_echo "none" >&6; }
7357c5b6
AM
6678fi
6679max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6680
6681
6682
6683
6684
d7040cdb 6685
7357c5b6
AM
6686: ${CP="cp -f"}
6687: ${MV="mv -f"}
6688: ${RM="rm -f"}
d7040cdb 6689
81ecdfbb
RW
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6691$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6692# Try some XSI features
6693xsi_shell=no
6694( _lt_dummy="a/b/c"
6695 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6696 = c,a/b,, \
6697 && eval 'test $(( 1 + 1 )) -eq 2 \
6698 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6699 && xsi_shell=yes
81ecdfbb
RW
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6701$as_echo "$xsi_shell" >&6; }
d7040cdb 6702
d7040cdb 6703
81ecdfbb
RW
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6705$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6706lt_shell_append=no
6707( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6708 >/dev/null 2>&1 \
6709 && lt_shell_append=yes
81ecdfbb
RW
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6711$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6712
6713
7357c5b6
AM
6714if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6715 lt_unset=unset
6716else
6717 lt_unset=false
6718fi
d7040cdb 6719
d7040cdb 6720
d7040cdb 6721
d7040cdb 6722
d7040cdb 6723
7357c5b6
AM
6724# test EBCDIC or ASCII
6725case `echo X|tr X '\101'` in
6726 A) # ASCII based system
6727 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6728 lt_SP2NL='tr \040 \012'
6729 lt_NL2SP='tr \015\012 \040\040'
6730 ;;
6731 *) # EBCDIC based system
6732 lt_SP2NL='tr \100 \n'
6733 lt_NL2SP='tr \r\n \100\100'
6734 ;;
6735esac
42ecbf5e 6736
d7040cdb
SE
6737
6738
6739
6740
6741
6742
d7040cdb 6743
d7040cdb 6744
81ecdfbb
RW
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6746$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6747if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6748 $as_echo_n "(cached) " >&6
7357c5b6
AM
6749else
6750 lt_cv_ld_reload_flag='-r'
6751fi
81ecdfbb
RW
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6753$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6754reload_flag=$lt_cv_ld_reload_flag
6755case $reload_flag in
6756"" | " "*) ;;
6757*) reload_flag=" $reload_flag" ;;
6758esac
6759reload_cmds='$LD$reload_flag -o $output$reload_objs'
6760case $host_os in
6761 darwin*)
6762 if test "$GCC" = yes; then
6763 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6764 else
6765 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6766 fi
6767 ;;
6768esac
d7040cdb 6769
d7040cdb 6770
d7040cdb 6771
d7040cdb 6772
d7040cdb 6773
d7040cdb 6774
d7040cdb 6775
d7040cdb 6776
d7040cdb 6777
b214d478
SE
6778if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6780set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6783if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6784 $as_echo_n "(cached) " >&6
b214d478
SE
6785else
6786 if test -n "$OBJDUMP"; then
6787 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
81ecdfbb 6794 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6796 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6798 break 2
6799 fi
6800done
81ecdfbb
RW
6801 done
6802IFS=$as_save_IFS
b214d478
SE
6803
6804fi
6805fi
6806OBJDUMP=$ac_cv_prog_OBJDUMP
6807if test -n "$OBJDUMP"; then
81ecdfbb
RW
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6809$as_echo "$OBJDUMP" >&6; }
b214d478 6810else
81ecdfbb
RW
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
b214d478
SE
6813fi
6814
81ecdfbb 6815
b214d478
SE
6816fi
6817if test -z "$ac_cv_prog_OBJDUMP"; then
6818 ac_ct_OBJDUMP=$OBJDUMP
6819 # Extract the first word of "objdump", so it can be a program name with args.
6820set dummy objdump; ac_word=$2
81ecdfbb
RW
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6823if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6824 $as_echo_n "(cached) " >&6
b214d478
SE
6825else
6826 if test -n "$ac_ct_OBJDUMP"; then
6827 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
81ecdfbb 6834 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6836 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6838 break 2
6839 fi
6840done
81ecdfbb
RW
6841 done
6842IFS=$as_save_IFS
b214d478 6843
b214d478
SE
6844fi
6845fi
6846ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6847if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6849$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6850else
81ecdfbb
RW
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
b214d478
SE
6853fi
6854
81ecdfbb
RW
6855 if test "x$ac_ct_OBJDUMP" = x; then
6856 OBJDUMP="false"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862ac_tool_warned=yes ;;
6863esac
6864 OBJDUMP=$ac_ct_OBJDUMP
6865 fi
b214d478
SE
6866else
6867 OBJDUMP="$ac_cv_prog_OBJDUMP"
6868fi
6869
6870test -z "$OBJDUMP" && OBJDUMP=objdump
6871
6872
6873
6874
6875
6876
6877
6878
d7040cdb 6879
81ecdfbb
RW
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6881$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6882if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6883 $as_echo_n "(cached) " >&6
ce2cded5 6884else
7357c5b6
AM
6885 lt_cv_file_magic_cmd='$MAGIC_CMD'
6886lt_cv_file_magic_test_file=
6887lt_cv_deplibs_check_method='unknown'
6888# Need to set the preceding variable on all platforms that support
6889# interlibrary dependencies.
6890# 'none' -- dependencies not supported.
6891# `unknown' -- same as none, but documents that we really don't know.
6892# 'pass_all' -- all dependencies passed with no checks.
6893# 'test_compile' -- check by making test program.
6894# 'file_magic [[regex]]' -- check by looking for files in library path
6895# which responds to the $file_magic_cmd with a given extended regex.
6896# If you have `file' or equivalent on your system and you're not sure
6897# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6898
ce2cded5 6899case $host_os in
7357c5b6
AM
6900aix[4-9]*)
6901 lt_cv_deplibs_check_method=pass_all
ce2cded5 6902 ;;
7357c5b6
AM
6903
6904beos*)
6905 lt_cv_deplibs_check_method=pass_all
ce2cded5 6906 ;;
7357c5b6
AM
6907
6908bsdi[45]*)
6909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6910 lt_cv_file_magic_cmd='/usr/bin/file -L'
6911 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6912 ;;
7357c5b6
AM
6913
6914cygwin*)
6915 # func_win32_libid is a shell function defined in ltmain.sh
6916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6917 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6918 ;;
7357c5b6
AM
6919
6920mingw* | pw32*)
6921 # Base MSYS/MinGW do not provide the 'file' command needed by
6922 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6923 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6924 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6925 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6927 lt_cv_file_magic_cmd='func_win32_libid'
6928 else
6929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6930 lt_cv_file_magic_cmd='$OBJDUMP -f'
6931 fi
ce2cded5 6932 ;;
7357c5b6 6933
3725885a 6934cegcc*)
b214d478
SE
6935 # use the weaker test based on 'objdump'. See mingw*.
6936 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6937 lt_cv_file_magic_cmd='$OBJDUMP -f'
6938 ;;
6939
7357c5b6
AM
6940darwin* | rhapsody*)
6941 lt_cv_deplibs_check_method=pass_all
ce2cded5 6942 ;;
7357c5b6
AM
6943
6944freebsd* | dragonfly*)
6945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6946 case $host_cpu in
6947 i*86 )
6948 # Not sure whether the presence of OpenBSD here was a mistake.
6949 # Let's accept both of them until this is cleared up.
6950 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6951 lt_cv_file_magic_cmd=/usr/bin/file
6952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6953 ;;
6954 esac
6955 else
6956 lt_cv_deplibs_check_method=pass_all
6957 fi
ce2cded5 6958 ;;
7357c5b6
AM
6959
6960gnu*)
6961 lt_cv_deplibs_check_method=pass_all
ce2cded5 6962 ;;
7357c5b6 6963
3725885a
RW
6964haiku*)
6965 lt_cv_deplibs_check_method=pass_all
6966 ;;
6967
7357c5b6
AM
6968hpux10.20* | hpux11*)
6969 lt_cv_file_magic_cmd=/usr/bin/file
6970 case $host_cpu in
6971 ia64*)
6972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6973 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6974 ;;
6975 hppa*64*)
3725885a 6976 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
6977 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6978 ;;
6979 *)
3725885a 6980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6981 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6982 ;;
6983 esac
ce2cded5 6984 ;;
d7040cdb 6985
7357c5b6
AM
6986interix[3-9]*)
6987 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6989 ;;
d7040cdb 6990
7357c5b6
AM
6991irix5* | irix6* | nonstopux*)
6992 case $LD in
6993 *-32|*"-32 ") libmagic=32-bit;;
6994 *-n32|*"-n32 ") libmagic=N32;;
6995 *-64|*"-64 ") libmagic=64-bit;;
6996 *) libmagic=never-match;;
6997 esac
6998 lt_cv_deplibs_check_method=pass_all
6999 ;;
d7040cdb 7000
7357c5b6 7001# This must be Linux ELF.
58e24671 7002linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7003 lt_cv_deplibs_check_method=pass_all
7004 ;;
d7040cdb 7005
7357c5b6
AM
7006netbsd*)
7007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7009 else
7010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7011 fi
ce2cded5 7012 ;;
d7040cdb 7013
7357c5b6
AM
7014newos6*)
7015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7016 lt_cv_file_magic_cmd=/usr/bin/file
7017 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7018 ;;
d7040cdb 7019
7357c5b6
AM
7020*nto* | *qnx*)
7021 lt_cv_deplibs_check_method=pass_all
7022 ;;
d7040cdb 7023
7357c5b6
AM
7024openbsd*)
7025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7027 else
7357c5b6 7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7029 fi
7357c5b6 7030 ;;
d7040cdb 7031
7357c5b6
AM
7032osf3* | osf4* | osf5*)
7033 lt_cv_deplibs_check_method=pass_all
7034 ;;
d7040cdb 7035
7357c5b6
AM
7036rdos*)
7037 lt_cv_deplibs_check_method=pass_all
7038 ;;
d7040cdb 7039
7357c5b6
AM
7040solaris*)
7041 lt_cv_deplibs_check_method=pass_all
7042 ;;
d7040cdb 7043
7357c5b6
AM
7044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7045 lt_cv_deplibs_check_method=pass_all
7046 ;;
d7040cdb 7047
7357c5b6
AM
7048sysv4 | sysv4.3*)
7049 case $host_vendor in
7050 motorola)
7051 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]'
7052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7053 ;;
7054 ncr)
7055 lt_cv_deplibs_check_method=pass_all
7056 ;;
7057 sequent)
7058 lt_cv_file_magic_cmd='/bin/file'
7059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7060 ;;
7061 sni)
7062 lt_cv_file_magic_cmd='/bin/file'
7063 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7064 lt_cv_file_magic_test_file=/lib/libc.so
7065 ;;
7066 siemens)
7067 lt_cv_deplibs_check_method=pass_all
7068 ;;
7069 pc)
7070 lt_cv_deplibs_check_method=pass_all
7071 ;;
7072 esac
7073 ;;
d7040cdb 7074
7357c5b6
AM
7075tpf*)
7076 lt_cv_deplibs_check_method=pass_all
7077 ;;
7078esac
d7040cdb 7079
7357c5b6 7080fi
81ecdfbb
RW
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7082$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7083file_magic_cmd=$lt_cv_file_magic_cmd
7084deplibs_check_method=$lt_cv_deplibs_check_method
7085test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7086
7087
7088
7357c5b6
AM
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7100set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7103if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 7104 $as_echo_n "(cached) " >&6
7357c5b6
AM
7105else
7106 if test -n "$AR"; then
7107 ac_cv_prog_AR="$AR" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
81ecdfbb 7114 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7116 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7118 break 2
ce2cded5
L
7119 fi
7120done
81ecdfbb
RW
7121 done
7122IFS=$as_save_IFS
d7040cdb 7123
42ecbf5e 7124fi
ce2cded5 7125fi
7357c5b6
AM
7126AR=$ac_cv_prog_AR
7127if test -n "$AR"; then
81ecdfbb
RW
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7129$as_echo "$AR" >&6; }
42ecbf5e 7130else
81ecdfbb
RW
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
42ecbf5e
DJ
7133fi
7134
81ecdfbb 7135
7357c5b6
AM
7136fi
7137if test -z "$ac_cv_prog_AR"; then
7138 ac_ct_AR=$AR
7139 # Extract the first word of "ar", so it can be a program name with args.
7140set dummy ar; ac_word=$2
81ecdfbb
RW
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7143if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 7144 $as_echo_n "(cached) " >&6
7357c5b6
AM
7145else
7146 if test -n "$ac_ct_AR"; then
7147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
81ecdfbb 7154 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7156 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7158 break 2
7159 fi
7160done
81ecdfbb
RW
7161 done
7162IFS=$as_save_IFS
42ecbf5e 7163
7357c5b6
AM
7164fi
7165fi
7166ac_ct_AR=$ac_cv_prog_ac_ct_AR
7167if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7169$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7170else
81ecdfbb
RW
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7357c5b6 7173fi
d7040cdb 7174
81ecdfbb
RW
7175 if test "x$ac_ct_AR" = x; then
7176 AR="false"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179yes:)
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184 AR=$ac_ct_AR
7185 fi
7357c5b6
AM
7186else
7187 AR="$ac_cv_prog_AR"
7188fi
d7040cdb 7189
7357c5b6
AM
7190test -z "$AR" && AR=ar
7191test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7192
7193
7194
20e95c23 7195
d7040cdb 7196
d7040cdb
SE
7197
7198
7199
7200
7201
7202
7357c5b6
AM
7203if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7205set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7208if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 7209 $as_echo_n "(cached) " >&6
7357c5b6
AM
7210else
7211 if test -n "$STRIP"; then
7212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
81ecdfbb 7219 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7223 break 2
ce2cded5 7224 fi
7357c5b6 7225done
81ecdfbb
RW
7226 done
7227IFS=$as_save_IFS
d7040cdb 7228
7357c5b6
AM
7229fi
7230fi
7231STRIP=$ac_cv_prog_STRIP
7232if test -n "$STRIP"; then
81ecdfbb
RW
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7234$as_echo "$STRIP" >&6; }
7357c5b6 7235else
81ecdfbb
RW
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7357c5b6
AM
7238fi
7239
81ecdfbb 7240
7357c5b6
AM
7241fi
7242if test -z "$ac_cv_prog_STRIP"; then
7243 ac_ct_STRIP=$STRIP
7244 # Extract the first word of "strip", so it can be a program name with args.
7245set dummy strip; ac_word=$2
81ecdfbb
RW
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7248if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 7249 $as_echo_n "(cached) " >&6
7357c5b6
AM
7250else
7251 if test -n "$ac_ct_STRIP"; then
7252 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
81ecdfbb 7259 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7261 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7263 break 2
ce2cded5 7264 fi
7357c5b6 7265done
81ecdfbb
RW
7266 done
7267IFS=$as_save_IFS
d7040cdb 7268
7357c5b6
AM
7269fi
7270fi
7271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7272if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7274$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7275else
81ecdfbb
RW
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7357c5b6 7278fi
d7040cdb 7279
81ecdfbb
RW
7280 if test "x$ac_ct_STRIP" = x; then
7281 STRIP=":"
7282 else
7283 case $cross_compiling:$ac_tool_warned in
7284yes:)
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287ac_tool_warned=yes ;;
7288esac
7289 STRIP=$ac_ct_STRIP
7290 fi
7357c5b6
AM
7291else
7292 STRIP="$ac_cv_prog_STRIP"
7293fi
d7040cdb 7294
7357c5b6 7295test -z "$STRIP" && STRIP=:
d7040cdb 7296
d7040cdb
SE
7297
7298
7299
d7040cdb 7300
7357c5b6
AM
7301
7302if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7307if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 7308 $as_echo_n "(cached) " >&6
ce2cded5 7309else
7357c5b6
AM
7310 if test -n "$RANLIB"; then
7311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
ce2cded5 7315do
7357c5b6
AM
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
81ecdfbb 7318 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7322 break 2
ce2cded5 7323 fi
7357c5b6 7324done
81ecdfbb
RW
7325 done
7326IFS=$as_save_IFS
7357c5b6 7327
ce2cded5 7328fi
7357c5b6
AM
7329fi
7330RANLIB=$ac_cv_prog_RANLIB
7331if test -n "$RANLIB"; then
81ecdfbb
RW
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7333$as_echo "$RANLIB" >&6; }
ce2cded5 7334else
81ecdfbb
RW
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336$as_echo "no" >&6; }
ce2cded5 7337fi
d7040cdb 7338
81ecdfbb 7339
7357c5b6
AM
7340fi
7341if test -z "$ac_cv_prog_RANLIB"; then
7342 ac_ct_RANLIB=$RANLIB
7343 # Extract the first word of "ranlib", so it can be a program name with args.
7344set dummy ranlib; ac_word=$2
81ecdfbb
RW
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7347if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 7348 $as_echo_n "(cached) " >&6
ce2cded5 7349else
7357c5b6
AM
7350 if test -n "$ac_ct_RANLIB"; then
7351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
81ecdfbb 7358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7360 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7362 break 2
7363 fi
7364done
81ecdfbb
RW
7365 done
7366IFS=$as_save_IFS
7357c5b6 7367
ce2cded5 7368fi
7357c5b6
AM
7369fi
7370ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7371if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7373$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7374else
81ecdfbb
RW
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376$as_echo "no" >&6; }
ce2cded5 7377fi
d7040cdb 7378
81ecdfbb
RW
7379 if test "x$ac_ct_RANLIB" = x; then
7380 RANLIB=":"
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383yes:)
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386ac_tool_warned=yes ;;
7387esac
7388 RANLIB=$ac_ct_RANLIB
7389 fi
7357c5b6
AM
7390else
7391 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7392fi
d7040cdb 7393
7357c5b6 7394test -z "$RANLIB" && RANLIB=:
d7040cdb 7395
7357c5b6
AM
7396
7397
7398
7399
7400
7401# Determine commands to create old-style static archives.
b214d478 7402old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7403old_postinstall_cmds='chmod 644 $oldlib'
7404old_postuninstall_cmds=
7405
7406if test -n "$RANLIB"; then
7407 case $host_os in
7408 openbsd*)
7409 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7410 ;;
7411 *)
7412 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7413 ;;
7414 esac
7415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7416fi
7357c5b6 7417
3725885a
RW
7418case $host_os in
7419 darwin*)
7420 lock_old_archive_extraction=yes ;;
7421 *)
7422 lock_old_archive_extraction=no ;;
7423esac
7424
7425
7426
7427
7428
7429
7357c5b6
AM
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463# If no C compiler was specified, use CC.
7464LTCC=${LTCC-"$CC"}
7465
7466# If no C compiler flags were specified, use CFLAGS.
7467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7468
7469# Allow CC to be a program name with arguments.
7470compiler=$CC
7471
7472
7473# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7475$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7476if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 7477 $as_echo_n "(cached) " >&6
ce2cded5 7478else
d7040cdb 7479
7357c5b6
AM
7480# These are sane defaults that work on at least a few old systems.
7481# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7482
7357c5b6
AM
7483# Character class describing NM global symbol codes.
7484symcode='[BCDEGRST]'
7485
7486# Regexp to match symbols that can be accessed directly from C.
7487sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7488
7489# Define system-specific variables.
7490case $host_os in
7491aix*)
7492 symcode='[BCDT]'
7493 ;;
b214d478 7494cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7495 symcode='[ABCDGISTW]'
7496 ;;
7497hpux*)
7498 if test "$host_cpu" = ia64; then
7499 symcode='[ABCDEGRST]'
ce2cded5 7500 fi
7357c5b6
AM
7501 ;;
7502irix* | nonstopux*)
7503 symcode='[BCDEGRST]'
7504 ;;
7505osf*)
7506 symcode='[BCDEGQRST]'
7507 ;;
7508solaris*)
7509 symcode='[BDRT]'
7510 ;;
7511sco3.2v5*)
7512 symcode='[DT]'
7513 ;;
7514sysv4.2uw2*)
7515 symcode='[DT]'
7516 ;;
7517sysv5* | sco5v6* | unixware* | OpenUNIX*)
7518 symcode='[ABDT]'
7519 ;;
7520sysv4)
7521 symcode='[DFNSTU]'
7522 ;;
7523esac
d7040cdb 7524
7357c5b6
AM
7525# If we're using GNU nm, then use its standard symbol codes.
7526case `$NM -V 2>&1` in
7527*GNU* | *'with BFD'*)
7528 symcode='[ABCDGIRSTW]' ;;
7529esac
d7040cdb 7530
7357c5b6
AM
7531# Transform an extracted symbol line into a proper C declaration.
7532# Some systems (esp. on ia64) link data and code symbols differently,
7533# so use this general approach.
7534lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7535
7536# Transform an extracted symbol line into symbol name and symbol address
7537lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7538lt_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
7539
7540# Handle CRLF in mingw tool chain
7541opt_cr=
7542case $build_os in
7543mingw*)
7544 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7545 ;;
7546esac
d7040cdb 7547
7357c5b6
AM
7548# Try without a prefix underscore, then with it.
7549for ac_symprfx in "" "_"; do
d7040cdb 7550
7357c5b6
AM
7551 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7552 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7553
7357c5b6
AM
7554 # Write the raw and C identifiers.
7555 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7556 # Fake it for dumpbin and say T for any non-static function
7557 # and D for any global variable.
7558 # Also find C++ and __fastcall symbols from MSVC++,
7559 # which start with @ or ?.
7560 lt_cv_sys_global_symbol_pipe="$AWK '"\
7561" {last_section=section; section=\$ 3};"\
7562" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7563" \$ 0!~/External *\|/{next};"\
7564" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7565" {if(hide[section]) next};"\
7566" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7567" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7568" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7569" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7570" ' prfx=^$ac_symprfx"
7571 else
7572 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7573 fi
d7040cdb 7574
7357c5b6
AM
7575 # Check to see that the pipe works correctly.
7576 pipe_works=no
d7040cdb 7577
7357c5b6
AM
7578 rm -f conftest*
7579 cat > conftest.$ac_ext <<_LT_EOF
7580#ifdef __cplusplus
7581extern "C" {
7582#endif
7583char nm_test_var;
7584void nm_test_func(void);
7585void nm_test_func(void){}
7586#ifdef __cplusplus
20e95c23 7587}
7357c5b6
AM
7588#endif
7589int main(){nm_test_var='a';nm_test_func();return(0);}
7590_LT_EOF
7591
81ecdfbb 7592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7593 (eval $ac_compile) 2>&5
20e95c23 7594 ac_status=$?
81ecdfbb
RW
7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; then
7357c5b6
AM
7597 # Now try to grab the symbols.
7598 nlist=conftest.nm
3725885a
RW
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7600 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7601 ac_status=$?
81ecdfbb
RW
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7604 # Try sorting and uniquifying the output.
7605 if sort "$nlist" | uniq > "$nlist"T; then
7606 mv -f "$nlist"T "$nlist"
7607 else
7608 rm -f "$nlist"T
7609 fi
d7040cdb 7610
7357c5b6
AM
7611 # Make sure that we snagged all the symbols we need.
7612 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7613 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7614 cat <<_LT_EOF > conftest.$ac_ext
7615#ifdef __cplusplus
7616extern "C" {
7617#endif
ce2cded5 7618
7357c5b6
AM
7619_LT_EOF
7620 # Now generate the symbol file.
7621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7622
7357c5b6 7623 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7624
7357c5b6
AM
7625/* The mapping between symbol names and symbols. */
7626const struct {
7627 const char *name;
7628 void *address;
7629}
7630lt__PROGRAM__LTX_preloaded_symbols[] =
7631{
7632 { "@PROGRAM@", (void *) 0 },
7633_LT_EOF
7634 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7635 cat <<\_LT_EOF >> conftest.$ac_ext
7636 {0, (void *) 0}
7637};
d7040cdb 7638
7357c5b6
AM
7639/* This works around a problem in FreeBSD linker */
7640#ifdef FREEBSD_WORKAROUND
7641static const void *lt_preloaded_setup() {
7642 return lt__PROGRAM__LTX_preloaded_symbols;
7643}
ce2cded5 7644#endif
42ecbf5e 7645
7357c5b6 7646#ifdef __cplusplus
ce2cded5 7647}
7357c5b6
AM
7648#endif
7649_LT_EOF
7650 # Now try linking the two files.
7651 mv conftest.$ac_objext conftstm.$ac_objext
7652 lt_save_LIBS="$LIBS"
7653 lt_save_CFLAGS="$CFLAGS"
7654 LIBS="conftstm.$ac_objext"
7655 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7657 (eval $ac_link) 2>&5
7658 ac_status=$?
81ecdfbb
RW
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7661 pipe_works=yes
7662 fi
7663 LIBS="$lt_save_LIBS"
7664 CFLAGS="$lt_save_CFLAGS"
7665 else
7666 echo "cannot find nm_test_func in $nlist" >&5
7667 fi
7668 else
7669 echo "cannot find nm_test_var in $nlist" >&5
7670 fi
7671 else
7672 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7673 fi
7674 else
7675 echo "$progname: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 fi
b214d478 7678 rm -rf conftest* conftst*
7357c5b6
AM
7679
7680 # Do not use the global_symbol_pipe unless it works.
7681 if test "$pipe_works" = yes; then
7682 break
7683 else
7684 lt_cv_sys_global_symbol_pipe=
7685 fi
7686done
42ecbf5e 7687
ce2cded5 7688fi
7357c5b6
AM
7689
7690if test -z "$lt_cv_sys_global_symbol_pipe"; then
7691 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7692fi
7357c5b6 7693if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7695$as_echo "failed" >&6; }
7357c5b6 7696else
81ecdfbb
RW
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7698$as_echo "ok" >&6; }
ce2cded5 7699fi
e5a52504 7700
d7040cdb 7701
e5a52504 7702
d7040cdb 7703
d7040cdb 7704
d7040cdb 7705
d7040cdb 7706
d7040cdb 7707
d7040cdb 7708
d7040cdb 7709
d7040cdb 7710
d7040cdb 7711
7357c5b6
AM
7712
7713
7714
b214d478
SE
7715
7716
7717
7718
7719
7357c5b6
AM
7720
7721
81ecdfbb
RW
7722# Check whether --enable-libtool-lock was given.
7723if test "${enable_libtool_lock+set}" = set; then :
7724 enableval=$enable_libtool_lock;
7725fi
7357c5b6 7726
7357c5b6
AM
7727test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7728
7729# Some flags need to be propagated to the compiler or linker for good
7730# libtool support.
7731case $host in
7732ia64-*-hpux*)
7733 # Find out which ABI we are using.
7734 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7736 (eval $ac_compile) 2>&5
7737 ac_status=$?
81ecdfbb
RW
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7357c5b6
AM
7740 case `/usr/bin/file conftest.$ac_objext` in
7741 *ELF-32*)
7742 HPUX_IA64_MODE="32"
7743 ;;
7744 *ELF-64*)
7745 HPUX_IA64_MODE="64"
7746 ;;
7747 esac
7748 fi
7749 rm -rf conftest*
7750 ;;
7751*-*-irix6*)
7752 # Find out which ABI we are using.
3725885a 7753 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7755 (eval $ac_compile) 2>&5
7756 ac_status=$?
81ecdfbb
RW
7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7357c5b6
AM
7759 if test "$lt_cv_prog_gnu_ld" = yes; then
7760 case `/usr/bin/file conftest.$ac_objext` in
7761 *32-bit*)
7762 LD="${LD-ld} -melf32bsmip"
7763 ;;
7764 *N32*)
7765 LD="${LD-ld} -melf32bmipn32"
7766 ;;
7767 *64-bit*)
7768 LD="${LD-ld} -melf64bmip"
7769 ;;
7770 esac
7771 else
7772 case `/usr/bin/file conftest.$ac_objext` in
7773 *32-bit*)
7774 LD="${LD-ld} -32"
7775 ;;
7776 *N32*)
7777 LD="${LD-ld} -n32"
7778 ;;
7779 *64-bit*)
7780 LD="${LD-ld} -64"
7781 ;;
7782 esac
7783 fi
7784 fi
7785 rm -rf conftest*
7786 ;;
7787
cc9afea3 7788x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7789s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7790 # Find out which ABI we are using.
7791 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
81ecdfbb
RW
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7357c5b6
AM
7797 case `/usr/bin/file conftest.o` in
7798 *32-bit*)
7799 case $host in
7800 x86_64-*kfreebsd*-gnu)
7801 LD="${LD-ld} -m elf_i386_fbsd"
7802 ;;
7803 x86_64-*linux*)
6d2920c8
L
7804 case `/usr/bin/file conftest.o` in
7805 *x86-64*)
7806 LD="${LD-ld} -m elf32_x86_64"
7807 ;;
7808 *)
7809 LD="${LD-ld} -m elf_i386"
7810 ;;
7811 esac
7357c5b6 7812 ;;
cc9afea3
AM
7813 powerpc64le-*linux*)
7814 LD="${LD-ld} -m elf32lppclinux"
7815 ;;
7816 powerpc64-*linux*)
7357c5b6
AM
7817 LD="${LD-ld} -m elf32ppclinux"
7818 ;;
7819 s390x-*linux*)
7820 LD="${LD-ld} -m elf_s390"
7821 ;;
7822 sparc64-*linux*)
7823 LD="${LD-ld} -m elf32_sparc"
7824 ;;
7825 esac
7826 ;;
7827 *64-bit*)
7828 case $host in
7829 x86_64-*kfreebsd*-gnu)
7830 LD="${LD-ld} -m elf_x86_64_fbsd"
7831 ;;
7832 x86_64-*linux*)
7833 LD="${LD-ld} -m elf_x86_64"
7834 ;;
cc9afea3
AM
7835 powerpcle-*linux*)
7836 LD="${LD-ld} -m elf64lppc"
7837 ;;
7838 powerpc-*linux*)
7357c5b6
AM
7839 LD="${LD-ld} -m elf64ppc"
7840 ;;
7841 s390*-*linux*|s390*-*tpf*)
7842 LD="${LD-ld} -m elf64_s390"
7843 ;;
7844 sparc*-*linux*)
7845 LD="${LD-ld} -m elf64_sparc"
7846 ;;
7847 esac
7848 ;;
7849 esac
7850 fi
7851 rm -rf conftest*
7852 ;;
7853
7854*-*-sco3.2v5*)
7855 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7856 SAVE_CFLAGS="$CFLAGS"
7857 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7859$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7860if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7861 $as_echo_n "(cached) " >&6
ce2cded5 7862else
7357c5b6
AM
7863 ac_ext=c
7864ac_cpp='$CPP $CPPFLAGS'
7865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7867ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868
81ecdfbb 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7870/* end confdefs.h. */
d7040cdb 7871
7357c5b6
AM
7872int
7873main ()
7874{
7875
7876 ;
7877 return 0;
7878}
ce2cded5 7879_ACEOF
81ecdfbb 7880if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7881 lt_cv_cc_needs_belf=yes
ce2cded5 7882else
81ecdfbb 7883 lt_cv_cc_needs_belf=no
ce2cded5 7884fi
81ecdfbb
RW
7885rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7887 ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7892
b214d478 7893fi
81ecdfbb
RW
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7895$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7896 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7897 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7898 CFLAGS="$SAVE_CFLAGS"
7899 fi
7900 ;;
7901sparc*-*solaris*)
7902 # Find out which ABI we are using.
7903 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7905 (eval $ac_compile) 2>&5
7906 ac_status=$?
81ecdfbb
RW
7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7908 test $ac_status = 0; }; then
b214d478
SE
7909 case `/usr/bin/file conftest.o` in
7910 *64-bit*)
7911 case $lt_cv_prog_gnu_ld in
7912 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7913 *)
7914 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7915 LD="${LD-ld} -64"
7916 fi
7917 ;;
7918 esac
7919 ;;
7920 esac
7921 fi
7922 rm -rf conftest*
7923 ;;
7924esac
7925
7926need_locks="$enable_libtool_lock"
7927
7928
7929 case $host_os in
7930 rhapsody* | darwin*)
7931 if test -n "$ac_tool_prefix"; then
7932 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7933set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7936if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7937 $as_echo_n "(cached) " >&6
b214d478
SE
7938else
7939 if test -n "$DSYMUTIL"; then
7940 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7941else
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
81ecdfbb 7947 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7949 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7951 break 2
7952 fi
7953done
81ecdfbb
RW
7954 done
7955IFS=$as_save_IFS
b214d478
SE
7956
7957fi
7958fi
7959DSYMUTIL=$ac_cv_prog_DSYMUTIL
7960if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7962$as_echo "$DSYMUTIL" >&6; }
b214d478 7963else
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
b214d478
SE
7966fi
7967
81ecdfbb 7968
b214d478
SE
7969fi
7970if test -z "$ac_cv_prog_DSYMUTIL"; then
7971 ac_ct_DSYMUTIL=$DSYMUTIL
7972 # Extract the first word of "dsymutil", so it can be a program name with args.
7973set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7976if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7977 $as_echo_n "(cached) " >&6
b214d478
SE
7978else
7979 if test -n "$ac_ct_DSYMUTIL"; then
7980 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
81ecdfbb 7987 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7989 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7991 break 2
7992 fi
7993done
81ecdfbb
RW
7994 done
7995IFS=$as_save_IFS
b214d478 7996
b214d478
SE
7997fi
7998fi
7999ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8000if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8002$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8003else
81ecdfbb
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
b214d478
SE
8006fi
8007
81ecdfbb
RW
8008 if test "x$ac_ct_DSYMUTIL" = x; then
8009 DSYMUTIL=":"
8010 else
8011 case $cross_compiling:$ac_tool_warned in
8012yes:)
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015ac_tool_warned=yes ;;
8016esac
8017 DSYMUTIL=$ac_ct_DSYMUTIL
8018 fi
b214d478
SE
8019else
8020 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8021fi
8022
8023 if test -n "$ac_tool_prefix"; then
8024 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8025set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8028if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 8029 $as_echo_n "(cached) " >&6
b214d478
SE
8030else
8031 if test -n "$NMEDIT"; then
8032 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
81ecdfbb 8039 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8041 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8043 break 2
8044 fi
8045done
81ecdfbb
RW
8046 done
8047IFS=$as_save_IFS
b214d478
SE
8048
8049fi
8050fi
8051NMEDIT=$ac_cv_prog_NMEDIT
8052if test -n "$NMEDIT"; then
81ecdfbb
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8054$as_echo "$NMEDIT" >&6; }
b214d478 8055else
81ecdfbb
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
b214d478
SE
8058fi
8059
81ecdfbb 8060
b214d478
SE
8061fi
8062if test -z "$ac_cv_prog_NMEDIT"; then
8063 ac_ct_NMEDIT=$NMEDIT
8064 # Extract the first word of "nmedit", so it can be a program name with args.
8065set dummy nmedit; ac_word=$2
81ecdfbb
RW
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8068if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 8069 $as_echo_n "(cached) " >&6
b214d478
SE
8070else
8071 if test -n "$ac_ct_NMEDIT"; then
8072 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8073else
8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075for as_dir in $PATH
8076do
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
81ecdfbb 8079 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8081 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8083 break 2
8084 fi
8085done
81ecdfbb
RW
8086 done
8087IFS=$as_save_IFS
b214d478 8088
b214d478
SE
8089fi
8090fi
8091ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8092if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8094$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8095else
81ecdfbb
RW
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097$as_echo "no" >&6; }
b214d478
SE
8098fi
8099
81ecdfbb
RW
8100 if test "x$ac_ct_NMEDIT" = x; then
8101 NMEDIT=":"
8102 else
8103 case $cross_compiling:$ac_tool_warned in
8104yes:)
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8107ac_tool_warned=yes ;;
8108esac
8109 NMEDIT=$ac_ct_NMEDIT
8110 fi
b214d478
SE
8111else
8112 NMEDIT="$ac_cv_prog_NMEDIT"
8113fi
8114
8115 if test -n "$ac_tool_prefix"; then
8116 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8117set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8120if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8121 $as_echo_n "(cached) " >&6
b214d478
SE
8122else
8123 if test -n "$LIPO"; then
8124 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8125else
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
81ecdfbb 8131 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8133 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8135 break 2
8136 fi
8137done
81ecdfbb
RW
8138 done
8139IFS=$as_save_IFS
b214d478
SE
8140
8141fi
8142fi
8143LIPO=$ac_cv_prog_LIPO
8144if test -n "$LIPO"; then
81ecdfbb
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8146$as_echo "$LIPO" >&6; }
b214d478 8147else
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
b214d478
SE
8150fi
8151
81ecdfbb 8152
b214d478
SE
8153fi
8154if test -z "$ac_cv_prog_LIPO"; then
8155 ac_ct_LIPO=$LIPO
8156 # Extract the first word of "lipo", so it can be a program name with args.
8157set dummy lipo; ac_word=$2
81ecdfbb
RW
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8160if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 8161 $as_echo_n "(cached) " >&6
b214d478
SE
8162else
8163 if test -n "$ac_ct_LIPO"; then
8164 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8165else
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
81ecdfbb 8171 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8173 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8175 break 2
8176 fi
8177done
81ecdfbb
RW
8178 done
8179IFS=$as_save_IFS
b214d478 8180
b214d478
SE
8181fi
8182fi
8183ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8184if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8186$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8187else
81ecdfbb
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
b214d478
SE
8190fi
8191
81ecdfbb
RW
8192 if test "x$ac_ct_LIPO" = x; then
8193 LIPO=":"
8194 else
8195 case $cross_compiling:$ac_tool_warned in
8196yes:)
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8199ac_tool_warned=yes ;;
8200esac
8201 LIPO=$ac_ct_LIPO
8202 fi
b214d478
SE
8203else
8204 LIPO="$ac_cv_prog_LIPO"
8205fi
8206
8207 if test -n "$ac_tool_prefix"; then
8208 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8209set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8212if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 8213 $as_echo_n "(cached) " >&6
b214d478
SE
8214else
8215 if test -n "$OTOOL"; then
8216 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8217else
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
81ecdfbb 8223 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8225 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8227 break 2
8228 fi
8229done
81ecdfbb
RW
8230 done
8231IFS=$as_save_IFS
b214d478
SE
8232
8233fi
8234fi
8235OTOOL=$ac_cv_prog_OTOOL
8236if test -n "$OTOOL"; then
81ecdfbb
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8238$as_echo "$OTOOL" >&6; }
b214d478 8239else
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
b214d478
SE
8242fi
8243
81ecdfbb 8244
b214d478
SE
8245fi
8246if test -z "$ac_cv_prog_OTOOL"; then
8247 ac_ct_OTOOL=$OTOOL
8248 # Extract the first word of "otool", so it can be a program name with args.
8249set dummy otool; ac_word=$2
81ecdfbb
RW
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8252if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 8253 $as_echo_n "(cached) " >&6
b214d478
SE
8254else
8255 if test -n "$ac_ct_OTOOL"; then
8256 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8257else
8258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
81ecdfbb 8263 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8265 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8267 break 2
8268 fi
8269done
81ecdfbb
RW
8270 done
8271IFS=$as_save_IFS
b214d478 8272
b214d478
SE
8273fi
8274fi
8275ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8276if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8278$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8279else
81ecdfbb
RW
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
b214d478
SE
8282fi
8283
81ecdfbb
RW
8284 if test "x$ac_ct_OTOOL" = x; then
8285 OTOOL=":"
8286 else
8287 case $cross_compiling:$ac_tool_warned in
8288yes:)
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8291ac_tool_warned=yes ;;
8292esac
8293 OTOOL=$ac_ct_OTOOL
8294 fi
b214d478
SE
8295else
8296 OTOOL="$ac_cv_prog_OTOOL"
8297fi
8298
8299 if test -n "$ac_tool_prefix"; then
8300 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8301set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8304if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 8305 $as_echo_n "(cached) " >&6
b214d478
SE
8306else
8307 if test -n "$OTOOL64"; then
8308 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
81ecdfbb 8315 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8317 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8319 break 2
8320 fi
8321done
81ecdfbb
RW
8322 done
8323IFS=$as_save_IFS
b214d478
SE
8324
8325fi
8326fi
8327OTOOL64=$ac_cv_prog_OTOOL64
8328if test -n "$OTOOL64"; then
81ecdfbb
RW
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8330$as_echo "$OTOOL64" >&6; }
b214d478 8331else
81ecdfbb
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
b214d478
SE
8334fi
8335
81ecdfbb 8336
b214d478
SE
8337fi
8338if test -z "$ac_cv_prog_OTOOL64"; then
8339 ac_ct_OTOOL64=$OTOOL64
8340 # Extract the first word of "otool64", so it can be a program name with args.
8341set dummy otool64; ac_word=$2
81ecdfbb
RW
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8344if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 8345 $as_echo_n "(cached) " >&6
b214d478
SE
8346else
8347 if test -n "$ac_ct_OTOOL64"; then
8348 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8349else
8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
81ecdfbb 8355 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8357 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8359 break 2
8360 fi
8361done
81ecdfbb
RW
8362 done
8363IFS=$as_save_IFS
b214d478 8364
b214d478
SE
8365fi
8366fi
8367ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8368if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8370$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8371else
81ecdfbb
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373$as_echo "no" >&6; }
b214d478
SE
8374fi
8375
81ecdfbb
RW
8376 if test "x$ac_ct_OTOOL64" = x; then
8377 OTOOL64=":"
8378 else
8379 case $cross_compiling:$ac_tool_warned in
8380yes:)
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383ac_tool_warned=yes ;;
8384esac
8385 OTOOL64=$ac_ct_OTOOL64
8386 fi
b214d478
SE
8387else
8388 OTOOL64="$ac_cv_prog_OTOOL64"
8389fi
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
81ecdfbb
RW
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8418$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8419if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 8420 $as_echo_n "(cached) " >&6
b214d478
SE
8421else
8422 lt_cv_apple_cc_single_mod=no
8423 if test -z "${LT_MULTI_MODULE}"; then
8424 # By default we will add the -single_module flag. You can override
8425 # by either setting the environment variable LT_MULTI_MODULE
8426 # non-empty at configure time, or by adding -multi_module to the
8427 # link flags.
8428 rm -rf libconftest.dylib*
8429 echo "int foo(void){return 1;}" > conftest.c
8430 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8431-dynamiclib -Wl,-single_module conftest.c" >&5
8432 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8433 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8434 _lt_result=$?
8435 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8436 lt_cv_apple_cc_single_mod=yes
8437 else
8438 cat conftest.err >&5
8439 fi
8440 rm -rf libconftest.dylib*
8441 rm -f conftest.*
8442 fi
8443fi
81ecdfbb
RW
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8445$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8447$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8448if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 8449 $as_echo_n "(cached) " >&6
b214d478
SE
8450else
8451 lt_cv_ld_exported_symbols_list=no
8452 save_LDFLAGS=$LDFLAGS
8453 echo "_main" > conftest.sym
8454 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8456/* end confdefs.h. */
8457
8458int
8459main ()
8460{
8461
8462 ;
8463 return 0;
8464}
8465_ACEOF
81ecdfbb 8466if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8467 lt_cv_ld_exported_symbols_list=yes
8468else
81ecdfbb 8469 lt_cv_ld_exported_symbols_list=no
b214d478 8470fi
81ecdfbb
RW
8471rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8473 LDFLAGS="$save_LDFLAGS"
8474
8475fi
81ecdfbb
RW
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8477$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8479$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8480if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
8481 $as_echo_n "(cached) " >&6
8482else
8483 lt_cv_ld_force_load=no
8484 cat > conftest.c << _LT_EOF
8485int forced_loaded() { return 2;}
8486_LT_EOF
8487 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8488 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8489 echo "$AR cru libconftest.a conftest.o" >&5
8490 $AR cru libconftest.a conftest.o 2>&5
8491 cat > conftest.c << _LT_EOF
8492int main() { return 0;}
8493_LT_EOF
8494 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8495 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8496 _lt_result=$?
8497 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8498 lt_cv_ld_force_load=yes
8499 else
8500 cat conftest.err >&5
8501 fi
8502 rm -f conftest.err libconftest.a conftest conftest.c
8503 rm -rf conftest.dSYM
8504
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8507$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8508 case $host_os in
8509 rhapsody* | darwin1.[012])
8510 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8511 darwin1.*)
8512 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8513 darwin*) # darwin 5.x on
8514 # if running on 10.5 or later, the deployment target defaults
8515 # to the OS version, if on x86, and 10.4, the deployment
8516 # target defaults to 10.4. Don't you love it?
8517 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8518 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8520 10.[012][,.]*)
b214d478
SE
8521 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8522 10.*)
8523 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8524 esac
8525 ;;
8526 esac
8527 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8528 _lt_dar_single_mod='$single_module'
8529 fi
8530 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8531 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8532 else
8533 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8534 fi
3725885a 8535 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8536 _lt_dsymutil='~$DSYMUTIL $lib || :'
8537 else
8538 _lt_dsymutil=
8539 fi
8540 ;;
8541 esac
8542
b214d478 8543for ac_header in dlfcn.h
81ecdfbb
RW
8544do :
8545 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8546"
d0ac1c44 8547if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b214d478 8548 cat >>confdefs.h <<_ACEOF
81ecdfbb 8549#define HAVE_DLFCN_H 1
b214d478
SE
8550_ACEOF
8551
8552fi
8553
8554done
8555
8556
8557
3725885a
RW
8558
8559
3cb62297 8560
b214d478
SE
8561# Set options
8562
8563
8564
8565 enable_dlopen=no
8566
8567
8568 enable_win32_dll=no
8569
8570
81ecdfbb
RW
8571 # Check whether --enable-shared was given.
8572if test "${enable_shared+set}" = set; then :
8573 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8574 case $enableval in
8575 yes) enable_shared=yes ;;
8576 no) enable_shared=no ;;
8577 *)
8578 enable_shared=no
8579 # Look at the argument we got. We use all the common list separators.
8580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8581 for pkg in $enableval; do
8582 IFS="$lt_save_ifs"
8583 if test "X$pkg" = "X$p"; then
8584 enable_shared=yes
8585 fi
8586 done
8587 IFS="$lt_save_ifs"
8588 ;;
8589 esac
8590else
8591 enable_shared=yes
81ecdfbb 8592fi
b214d478
SE
8593
8594
8595
8596
8597
8598
8599
8600
81ecdfbb
RW
8601
8602 # Check whether --enable-static was given.
8603if test "${enable_static+set}" = set; then :
8604 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8605 case $enableval in
8606 yes) enable_static=yes ;;
8607 no) enable_static=no ;;
8608 *)
8609 enable_static=no
8610 # Look at the argument we got. We use all the common list separators.
8611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8612 for pkg in $enableval; do
8613 IFS="$lt_save_ifs"
8614 if test "X$pkg" = "X$p"; then
8615 enable_static=yes
8616 fi
8617 done
8618 IFS="$lt_save_ifs"
8619 ;;
8620 esac
8621else
8622 enable_static=yes
81ecdfbb 8623fi
b214d478
SE
8624
8625
8626
8627
8628
8629
8630
8631
8632
81ecdfbb
RW
8633
8634# Check whether --with-pic was given.
8635if test "${with_pic+set}" = set; then :
8636 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8637else
8638 pic_mode=default
81ecdfbb
RW
8639fi
8640
b214d478
SE
8641
8642test -z "$pic_mode" && pic_mode=default
8643
8644
8645
8646
8647
8648
8649
81ecdfbb
RW
8650 # Check whether --enable-fast-install was given.
8651if test "${enable_fast_install+set}" = set; then :
8652 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8653 case $enableval in
8654 yes) enable_fast_install=yes ;;
8655 no) enable_fast_install=no ;;
8656 *)
8657 enable_fast_install=no
8658 # Look at the argument we got. We use all the common list separators.
8659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8660 for pkg in $enableval; do
8661 IFS="$lt_save_ifs"
8662 if test "X$pkg" = "X$p"; then
8663 enable_fast_install=yes
8664 fi
8665 done
8666 IFS="$lt_save_ifs"
7357c5b6
AM
8667 ;;
8668 esac
b214d478
SE
8669else
8670 enable_fast_install=yes
81ecdfbb
RW
8671fi
8672
ce2cded5 8673
ce2cded5
L
8674
8675
ce2cded5 8676
42ecbf5e 8677
d7040cdb 8678
d7040cdb 8679
d7040cdb 8680
d7040cdb 8681
d7040cdb 8682
ce2cded5
L
8683# This can be used to rebuild libtool when needed
8684LIBTOOL_DEPS="$ltmain"
d7040cdb 8685
ce2cded5
L
8686# Always use our own libtool.
8687LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8688
d7040cdb 8689
d7040cdb 8690
d7040cdb 8691
d7040cdb 8692
d7040cdb 8693
d7040cdb 8694
d7040cdb 8695
d7040cdb 8696
d7040cdb 8697
d7040cdb 8698
d7040cdb 8699
d7040cdb 8700
d7040cdb 8701
d7040cdb 8702
d7040cdb 8703
d7040cdb
SE
8704
8705
8706
8707
8708
8709
8710
3725885a 8711
d7040cdb
SE
8712
8713
ce2cded5 8714test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8715
8716
8717
8718
8719
8720
d7040cdb
SE
8721
8722
8723
8724
8725
8726
8727
8728
ce2cded5
L
8729if test -n "${ZSH_VERSION+set}" ; then
8730 setopt NO_GLOB_SUBST
8731fi
d7040cdb 8732
81ecdfbb
RW
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8734$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8735if ${lt_cv_objdir+:} false; then :
81ecdfbb 8736 $as_echo_n "(cached) " >&6
ce2cded5
L
8737else
8738 rm -f .libs 2>/dev/null
8739mkdir .libs 2>/dev/null
8740if test -d .libs; then
8741 lt_cv_objdir=.libs
8742else
8743 # MS-DOS does not allow filenames that begin with a dot.
8744 lt_cv_objdir=_libs
8745fi
8746rmdir .libs 2>/dev/null
8747fi
81ecdfbb
RW
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8749$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8750objdir=$lt_cv_objdir
d7040cdb
SE
8751
8752
8753
8754
8755
ce2cded5
L
8756cat >>confdefs.h <<_ACEOF
8757#define LT_OBJDIR "$lt_cv_objdir/"
8758_ACEOF
d7040cdb
SE
8759
8760
8761
8762
ce2cded5
L
8763case $host_os in
8764aix3*)
8765 # AIX sometimes has problems with the GCC collect2 program. For some
8766 # reason, if we set the COLLECT_NAMES environment variable, the problems
8767 # vanish in a puff of smoke.
8768 if test "X${COLLECT_NAMES+set}" != Xset; then
8769 COLLECT_NAMES=
8770 export COLLECT_NAMES
8771 fi
8772 ;;
8773esac
d7040cdb 8774
ce2cded5
L
8775# Global variables:
8776ofile=libtool
8777can_build_shared=yes
d7040cdb 8778
ce2cded5
L
8779# All known linkers require a `.a' archive for static linking (except MSVC,
8780# which needs '.lib').
8781libext=a
d7040cdb 8782
ce2cded5 8783with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8784
ce2cded5
L
8785old_CC="$CC"
8786old_CFLAGS="$CFLAGS"
d7040cdb 8787
ce2cded5
L
8788# Set sane defaults for various variables
8789test -z "$CC" && CC=cc
8790test -z "$LTCC" && LTCC=$CC
8791test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8792test -z "$LD" && LD=ld
8793test -z "$ac_objext" && ac_objext=o
d7040cdb 8794
ce2cded5
L
8795for cc_temp in $compiler""; do
8796 case $cc_temp in
8797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8799 \-*) ;;
8800 *) break;;
8801 esac
8802done
3725885a 8803cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8804
8805
ce2cded5
L
8806# Only perform the check for file, if the check method requires it
8807test -z "$MAGIC_CMD" && MAGIC_CMD=file
8808case $deplibs_check_method in
8809file_magic*)
8810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8812$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8813if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8814 $as_echo_n "(cached) " >&6
ce2cded5
L
8815else
8816 case $MAGIC_CMD in
8817[\\/*] | ?:[\\/]*)
8818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8819 ;;
8820*)
8821 lt_save_MAGIC_CMD="$MAGIC_CMD"
8822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8824 for ac_dir in $ac_dummy; do
8825 IFS="$lt_save_ifs"
8826 test -z "$ac_dir" && ac_dir=.
8827 if test -f $ac_dir/${ac_tool_prefix}file; then
8828 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8829 if test -n "$file_magic_test_file"; then
8830 case $deplibs_check_method in
8831 "file_magic "*)
8832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8835 $EGREP "$file_magic_regex" > /dev/null; then
8836 :
8837 else
8838 cat <<_LT_EOF 1>&2
d7040cdb 8839
ce2cded5
L
8840*** Warning: the command libtool uses to detect shared libraries,
8841*** $file_magic_cmd, produces output that libtool cannot recognize.
8842*** The result is that libtool may fail to recognize shared libraries
8843*** as such. This will affect the creation of libtool libraries that
8844*** depend on shared libraries, but programs linked with such libtool
8845*** libraries will work regardless of this problem. Nevertheless, you
8846*** may want to report the problem to your system manager and/or to
8847*** bug-libtool@gnu.org
d7040cdb 8848
ce2cded5
L
8849_LT_EOF
8850 fi ;;
8851 esac
8852 fi
8853 break
8854 fi
8855 done
8856 IFS="$lt_save_ifs"
8857 MAGIC_CMD="$lt_save_MAGIC_CMD"
8858 ;;
8859esac
8860fi
d7040cdb 8861
ce2cded5
L
8862MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8865$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8866else
81ecdfbb
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
ce2cded5 8869fi
d7040cdb
SE
8870
8871
8872
8873
8874
ce2cded5
L
8875if test -z "$lt_cv_path_MAGIC_CMD"; then
8876 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8878$as_echo_n "checking for file... " >&6; }
d0ac1c44 8879if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8880 $as_echo_n "(cached) " >&6
ce2cded5
L
8881else
8882 case $MAGIC_CMD in
8883[\\/*] | ?:[\\/]*)
8884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8885 ;;
8886*)
8887 lt_save_MAGIC_CMD="$MAGIC_CMD"
8888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8890 for ac_dir in $ac_dummy; do
8891 IFS="$lt_save_ifs"
8892 test -z "$ac_dir" && ac_dir=.
8893 if test -f $ac_dir/file; then
8894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8895 if test -n "$file_magic_test_file"; then
8896 case $deplibs_check_method in
8897 "file_magic "*)
8898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8901 $EGREP "$file_magic_regex" > /dev/null; then
8902 :
8903 else
8904 cat <<_LT_EOF 1>&2
d7040cdb 8905
ce2cded5
L
8906*** Warning: the command libtool uses to detect shared libraries,
8907*** $file_magic_cmd, produces output that libtool cannot recognize.
8908*** The result is that libtool may fail to recognize shared libraries
8909*** as such. This will affect the creation of libtool libraries that
8910*** depend on shared libraries, but programs linked with such libtool
8911*** libraries will work regardless of this problem. Nevertheless, you
8912*** may want to report the problem to your system manager and/or to
8913*** bug-libtool@gnu.org
d7040cdb 8914
ce2cded5
L
8915_LT_EOF
8916 fi ;;
8917 esac
8918 fi
8919 break
8920 fi
8921 done
8922 IFS="$lt_save_ifs"
8923 MAGIC_CMD="$lt_save_MAGIC_CMD"
8924 ;;
8925esac
8926fi
d7040cdb 8927
ce2cded5
L
8928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8931$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8932else
81ecdfbb
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
ce2cded5 8935fi
d7040cdb
SE
8936
8937
ce2cded5
L
8938 else
8939 MAGIC_CMD=:
8940 fi
8941fi
d7040cdb 8942
ce2cded5
L
8943 fi
8944 ;;
8945esac
d7040cdb 8946
ce2cded5 8947# Use C for the default configuration in the libtool script
d7040cdb 8948
ce2cded5
L
8949lt_save_CC="$CC"
8950ac_ext=c
8951ac_cpp='$CPP $CPPFLAGS'
8952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8955
8956
ce2cded5
L
8957# Source file extension for C test sources.
8958ac_ext=c
d7040cdb 8959
ce2cded5
L
8960# Object file extension for compiled C test sources.
8961objext=o
8962objext=$objext
d7040cdb 8963
ce2cded5
L
8964# Code to be used in simple compile tests
8965lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8966
ce2cded5
L
8967# Code to be used in simple link tests
8968lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8969
8970
8971
8972
8973
8974
8975
ce2cded5
L
8976# If no C compiler was specified, use CC.
8977LTCC=${LTCC-"$CC"}
d7040cdb 8978
ce2cded5
L
8979# If no C compiler flags were specified, use CFLAGS.
8980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8981
ce2cded5
L
8982# Allow CC to be a program name with arguments.
8983compiler=$CC
d7040cdb 8984
ce2cded5
L
8985# Save the default compiler, since it gets overwritten when the other
8986# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8987compiler_DEFAULT=$CC
d7040cdb 8988
ce2cded5
L
8989# save warnings/boilerplate of simple test code
8990ac_outfile=conftest.$ac_objext
8991echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8992eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8993_lt_compiler_boilerplate=`cat conftest.err`
8994$RM conftest*
d7040cdb 8995
ce2cded5
L
8996ac_outfile=conftest.$ac_objext
8997echo "$lt_simple_link_test_code" >conftest.$ac_ext
8998eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8999_lt_linker_boilerplate=`cat conftest.err`
b214d478 9000$RM -r conftest*
d7040cdb
SE
9001
9002
ce2cded5
L
9003## CAVEAT EMPTOR:
9004## There is no encapsulation within the following macros, do not change
9005## the running order or otherwise move them around unless you know exactly
9006## what you are doing...
9007if test -n "$compiler"; then
d7040cdb 9008
ce2cded5 9009lt_prog_compiler_no_builtin_flag=
d7040cdb 9010
ce2cded5 9011if test "$GCC" = yes; then
3725885a
RW
9012 case $cc_basename in
9013 nvcc*)
9014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9015 *)
9016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9017 esac
d7040cdb 9018
81ecdfbb
RW
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9020$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9021if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 9022 $as_echo_n "(cached) " >&6
ce2cded5
L
9023else
9024 lt_cv_prog_compiler_rtti_exceptions=no
9025 ac_outfile=conftest.$ac_objext
9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027 lt_compiler_flag="-fno-rtti -fno-exceptions"
9028 # Insert the option either (1) after the last *FLAGS variable, or
9029 # (2) before a word containing "conftest.", or (3) at the end.
9030 # Note that $ac_compile itself does not contain backslashes and begins
9031 # with a dollar sign (not a hyphen), so the echo should work correctly.
9032 # The option is referenced via a variable to avoid confusing sed.
9033 lt_compile=`echo "$ac_compile" | $SED \
9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036 -e 's:$: $lt_compiler_flag:'`
3725885a 9037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9038 (eval "$lt_compile" 2>conftest.err)
9039 ac_status=$?
9040 cat conftest.err >&5
3725885a 9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9042 if (exit $ac_status) && test -s "$ac_outfile"; then
9043 # The compiler can only warn and ignore the option if not recognized
9044 # So say no if there are warnings other than the usual output.
3725885a 9045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9048 lt_cv_prog_compiler_rtti_exceptions=yes
9049 fi
9050 fi
9051 $RM conftest*
d7040cdb 9052
ce2cded5 9053fi
81ecdfbb
RW
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9055$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9056
ce2cded5
L
9057if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9059else
9060 :
9061fi
d7040cdb 9062
ce2cded5 9063fi
d7040cdb
SE
9064
9065
9066
9067
9068
9069
ce2cded5
L
9070 lt_prog_compiler_wl=
9071lt_prog_compiler_pic=
9072lt_prog_compiler_static=
d7040cdb 9073
81ecdfbb
RW
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9075$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9076
ce2cded5
L
9077 if test "$GCC" = yes; then
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_static='-static'
d7040cdb 9080
ce2cded5
L
9081 case $host_os in
9082 aix*)
9083 # All AIX code is PIC.
9084 if test "$host_cpu" = ia64; then
9085 # AIX 5 now supports IA64 processor
9086 lt_prog_compiler_static='-Bstatic'
9087 fi
52204357 9088 lt_prog_compiler_pic='-fPIC'
ce2cded5 9089 ;;
d7040cdb 9090
ce2cded5 9091 amigaos*)
b214d478
SE
9092 case $host_cpu in
9093 powerpc)
9094 # see comment about AmigaOS4 .so support
9095 lt_prog_compiler_pic='-fPIC'
9096 ;;
9097 m68k)
9098 # FIXME: we need at least 68020 code to build shared libraries, but
9099 # adding the `-m68020' flag to GCC prevents building anything better,
9100 # like `-m68040'.
9101 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9102 ;;
9103 esac
ce2cded5 9104 ;;
d7040cdb 9105
ce2cded5
L
9106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9107 # PIC is the default for these OSes.
9108 ;;
d7040cdb 9109
b214d478 9110 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9111 # This hack is so that the source file can tell whether it is being
9112 # built for inclusion in a dll (and should export symbols for example).
9113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9114 # (--disable-auto-import) libraries
9115 lt_prog_compiler_pic='-DDLL_EXPORT'
9116 ;;
d7040cdb 9117
ce2cded5
L
9118 darwin* | rhapsody*)
9119 # PIC is the default on this platform
9120 # Common symbols not allowed in MH_DYLIB files
9121 lt_prog_compiler_pic='-fno-common'
9122 ;;
d7040cdb 9123
3725885a
RW
9124 haiku*)
9125 # PIC is the default for Haiku.
9126 # The "-static" flag exists, but is broken.
9127 lt_prog_compiler_static=
9128 ;;
9129
ce2cded5 9130 hpux*)
b214d478
SE
9131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9133 # sets the default TLS model and affects inlining.
ce2cded5 9134 case $host_cpu in
b214d478 9135 hppa*64*)
ce2cded5
L
9136 # +Z the default
9137 ;;
9138 *)
9139 lt_prog_compiler_pic='-fPIC'
9140 ;;
9141 esac
9142 ;;
d7040cdb 9143
ce2cded5
L
9144 interix[3-9]*)
9145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9146 # Instead, we relocate shared libraries at runtime.
9147 ;;
d7040cdb 9148
ce2cded5
L
9149 msdosdjgpp*)
9150 # Just because we use GCC doesn't mean we suddenly get shared libraries
9151 # on systems that don't support them.
9152 lt_prog_compiler_can_build_shared=no
9153 enable_shared=no
9154 ;;
d7040cdb 9155
ce2cded5
L
9156 *nto* | *qnx*)
9157 # QNX uses GNU C++, but need to define -shared option too, otherwise
9158 # it will coredump.
9159 lt_prog_compiler_pic='-fPIC -shared'
9160 ;;
d7040cdb 9161
ce2cded5
L
9162 sysv4*MP*)
9163 if test -d /usr/nec; then
9164 lt_prog_compiler_pic=-Kconform_pic
9165 fi
9166 ;;
d7040cdb 9167
ce2cded5
L
9168 *)
9169 lt_prog_compiler_pic='-fPIC'
9170 ;;
9171 esac
3725885a
RW
9172
9173 case $cc_basename in
9174 nvcc*) # Cuda Compiler Driver 2.2
9175 lt_prog_compiler_wl='-Xlinker '
9176 lt_prog_compiler_pic='-Xcompiler -fPIC'
9177 ;;
9178 esac
ce2cded5
L
9179 else
9180 # PORTME Check for flag to pass linker flags through the system compiler.
9181 case $host_os in
9182 aix*)
9183 lt_prog_compiler_wl='-Wl,'
9184 if test "$host_cpu" = ia64; then
9185 # AIX 5 now supports IA64 processor
9186 lt_prog_compiler_static='-Bstatic'
9187 else
9188 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9189 fi
9190 ;;
d7040cdb 9191
b214d478 9192 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9193 # This hack is so that the source file can tell whether it is being
9194 # built for inclusion in a dll (and should export symbols for example).
9195 lt_prog_compiler_pic='-DDLL_EXPORT'
9196 ;;
d7040cdb 9197
ce2cded5
L
9198 hpux9* | hpux10* | hpux11*)
9199 lt_prog_compiler_wl='-Wl,'
9200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9201 # not for PA HP-UX.
9202 case $host_cpu in
9203 hppa*64*|ia64*)
9204 # +Z the default
9205 ;;
9206 *)
9207 lt_prog_compiler_pic='+Z'
9208 ;;
9209 esac
9210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9211 lt_prog_compiler_static='${wl}-a ${wl}archive'
9212 ;;
d7040cdb 9213
ce2cded5
L
9214 irix5* | irix6* | nonstopux*)
9215 lt_prog_compiler_wl='-Wl,'
9216 # PIC (with -KPIC) is the default.
9217 lt_prog_compiler_static='-non_shared'
9218 ;;
d7040cdb 9219
58e24671 9220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9221 case $cc_basename in
b214d478
SE
9222 # old Intel for x86_64 which still supported -KPIC.
9223 ecc*)
ce2cded5
L
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-KPIC'
9226 lt_prog_compiler_static='-static'
9227 ;;
b214d478
SE
9228 # icc used to be incompatible with GCC.
9229 # ICC 10 doesn't accept -KPIC any more.
9230 icc* | ifort*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-fPIC'
9233 lt_prog_compiler_static='-static'
9234 ;;
9235 # Lahey Fortran 8.1.
9236 lf95*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='--shared'
9239 lt_prog_compiler_static='--static'
9240 ;;
3725885a 9241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9242 # Portland Group compilers (*not* the Pentium gcc compiler,
9243 # which looks to be a dead project)
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='-fpic'
9246 lt_prog_compiler_static='-Bstatic'
9247 ;;
9248 ccc*)
9249 lt_prog_compiler_wl='-Wl,'
9250 # All Alpha code is PIC.
9251 lt_prog_compiler_static='-non_shared'
9252 ;;
3725885a
RW
9253 xl* | bgxl* | bgf* | mpixl*)
9254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-qpic'
9257 lt_prog_compiler_static='-qstaticlink'
9258 ;;
ce2cded5
L
9259 *)
9260 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9261 *Sun\ F* | *Sun*Fortran*)
9262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-Bstatic'
3725885a 9265 lt_prog_compiler_wl=''
ce2cded5 9266 ;;
3725885a
RW
9267 *Sun\ C*)
9268 # Sun C 5.9
ce2cded5
L
9269 lt_prog_compiler_pic='-KPIC'
9270 lt_prog_compiler_static='-Bstatic'
3725885a 9271 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9272 ;;
9273 esac
9274 ;;
9275 esac
9276 ;;
d7040cdb 9277
ce2cded5
L
9278 newsos6)
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 ;;
d7040cdb 9282
ce2cded5
L
9283 *nto* | *qnx*)
9284 # QNX uses GNU C++, but need to define -shared option too, otherwise
9285 # it will coredump.
9286 lt_prog_compiler_pic='-fPIC -shared'
9287 ;;
d7040cdb 9288
ce2cded5
L
9289 osf3* | osf4* | osf5*)
9290 lt_prog_compiler_wl='-Wl,'
9291 # All OSF/1 code is PIC.
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
d7040cdb 9294
ce2cded5
L
9295 rdos*)
9296 lt_prog_compiler_static='-non_shared'
9297 ;;
d7040cdb 9298
ce2cded5
L
9299 solaris*)
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 case $cc_basename in
9303 f77* | f90* | f95*)
9304 lt_prog_compiler_wl='-Qoption ld ';;
9305 *)
9306 lt_prog_compiler_wl='-Wl,';;
9307 esac
9308 ;;
d7040cdb 9309
ce2cded5
L
9310 sunos4*)
9311 lt_prog_compiler_wl='-Qoption ld '
9312 lt_prog_compiler_pic='-PIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 ;;
d7040cdb 9315
ce2cded5
L
9316 sysv4 | sysv4.2uw2* | sysv4.3*)
9317 lt_prog_compiler_wl='-Wl,'
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9320 ;;
d7040cdb 9321
ce2cded5
L
9322 sysv4*MP*)
9323 if test -d /usr/nec ;then
9324 lt_prog_compiler_pic='-Kconform_pic'
9325 lt_prog_compiler_static='-Bstatic'
9326 fi
9327 ;;
d7040cdb 9328
ce2cded5
L
9329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 ;;
d7040cdb 9334
ce2cded5
L
9335 unicos*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_can_build_shared=no
9338 ;;
d7040cdb 9339
ce2cded5
L
9340 uts4*)
9341 lt_prog_compiler_pic='-pic'
9342 lt_prog_compiler_static='-Bstatic'
9343 ;;
d7040cdb 9344
ce2cded5
L
9345 *)
9346 lt_prog_compiler_can_build_shared=no
9347 ;;
9348 esac
9349 fi
d7040cdb 9350
ce2cded5
L
9351case $host_os in
9352 # For platforms which do not support PIC, -DPIC is meaningless:
9353 *djgpp*)
9354 lt_prog_compiler_pic=
9355 ;;
9356 *)
9357 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9358 ;;
9359esac
81ecdfbb
RW
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9361$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9362
9363
9364
9365
9366
9367
ce2cded5
L
9368#
9369# Check to make sure the PIC flag actually works.
9370#
9371if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9373$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 9374if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 9375 $as_echo_n "(cached) " >&6
ce2cded5 9376else
b214d478 9377 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9378 ac_outfile=conftest.$ac_objext
9379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9381 # Insert the option either (1) after the last *FLAGS variable, or
9382 # (2) before a word containing "conftest.", or (3) at the end.
9383 # Note that $ac_compile itself does not contain backslashes and begins
9384 # with a dollar sign (not a hyphen), so the echo should work correctly.
9385 # The option is referenced via a variable to avoid confusing sed.
9386 lt_compile=`echo "$ac_compile" | $SED \
9387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9389 -e 's:$: $lt_compiler_flag:'`
3725885a 9390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9391 (eval "$lt_compile" 2>conftest.err)
9392 ac_status=$?
9393 cat conftest.err >&5
3725885a 9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9395 if (exit $ac_status) && test -s "$ac_outfile"; then
9396 # The compiler can only warn and ignore the option if not recognized
9397 # So say no if there are warnings other than the usual output.
3725885a 9398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9401 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9402 fi
9403 fi
9404 $RM conftest*
d7040cdb 9405
ce2cded5 9406fi
81ecdfbb
RW
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9408$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9409
b214d478 9410if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9411 case $lt_prog_compiler_pic in
9412 "" | " "*) ;;
9413 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9414 esac
9415else
9416 lt_prog_compiler_pic=
9417 lt_prog_compiler_can_build_shared=no
9418fi
9419
9420fi
d7040cdb
SE
9421
9422
9423
9424
9425
9426
ce2cded5
L
9427#
9428# Check to make sure the static flag actually works.
9429#
9430wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9432$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 9433if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 9434 $as_echo_n "(cached) " >&6
ce2cded5 9435else
b214d478 9436 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
3725885a 9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9449 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9450 fi
9451 else
b214d478 9452 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9453 fi
9454 fi
b214d478 9455 $RM -r conftest*
ce2cded5 9456 LDFLAGS="$save_LDFLAGS"
d7040cdb 9457
ce2cded5 9458fi
81ecdfbb
RW
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9460$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9461
b214d478 9462if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9463 :
9464else
9465 lt_prog_compiler_static=
9466fi
d7040cdb
SE
9467
9468
9469
9470
9471
9472
9473
81ecdfbb
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9475$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9476if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9477 $as_echo_n "(cached) " >&6
ce2cded5
L
9478else
9479 lt_cv_prog_compiler_c_o=no
9480 $RM -r conftest 2>/dev/null
9481 mkdir conftest
9482 cd conftest
9483 mkdir out
9484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9485
ce2cded5
L
9486 lt_compiler_flag="-o out/conftest2.$ac_objext"
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 lt_compile=`echo "$ac_compile" | $SED \
9492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9494 -e 's:$: $lt_compiler_flag:'`
3725885a 9495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9496 (eval "$lt_compile" 2>out/conftest.err)
9497 ac_status=$?
9498 cat out/conftest.err >&5
3725885a 9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9501 then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings
3725885a 9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_c_o=yes
9508 fi
9509 fi
9510 chmod u+w . 2>&5
9511 $RM conftest*
9512 # SGI C++ compiler will create directory out/ii_files/ for
9513 # template instantiation
9514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9515 $RM out/* && rmdir out
9516 cd ..
9517 $RM -r conftest
9518 $RM conftest*
d7040cdb 9519
ce2cded5 9520fi
81ecdfbb
RW
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9522$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9523
9524
9525
9526
9527
9528
81ecdfbb
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9530$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9531if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9532 $as_echo_n "(cached) " >&6
ce2cded5
L
9533else
9534 lt_cv_prog_compiler_c_o=no
9535 $RM -r conftest 2>/dev/null
9536 mkdir conftest
9537 cd conftest
9538 mkdir out
9539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9540
ce2cded5
L
9541 lt_compiler_flag="-o out/conftest2.$ac_objext"
9542 # Insert the option either (1) after the last *FLAGS variable, or
9543 # (2) before a word containing "conftest.", or (3) at the end.
9544 # Note that $ac_compile itself does not contain backslashes and begins
9545 # with a dollar sign (not a hyphen), so the echo should work correctly.
9546 lt_compile=`echo "$ac_compile" | $SED \
9547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549 -e 's:$: $lt_compiler_flag:'`
3725885a 9550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9551 (eval "$lt_compile" 2>out/conftest.err)
9552 ac_status=$?
9553 cat out/conftest.err >&5
3725885a 9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9556 then
9557 # The compiler can only warn and ignore the option if not recognized
9558 # So say no if there are warnings
3725885a 9559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9562 lt_cv_prog_compiler_c_o=yes
9563 fi
9564 fi
9565 chmod u+w . 2>&5
9566 $RM conftest*
9567 # SGI C++ compiler will create directory out/ii_files/ for
9568 # template instantiation
9569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9570 $RM out/* && rmdir out
9571 cd ..
9572 $RM -r conftest
9573 $RM conftest*
9574
9575fi
81ecdfbb
RW
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9577$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9578
9579
9580
9581
9582hard_links="nottested"
9583if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9584 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9586$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9587 hard_links=yes
9588 $RM conftest*
9589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9590 touch conftest.a
9591 ln conftest.a conftest.b 2>&5 || hard_links=no
9592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9594$as_echo "$hard_links" >&6; }
ce2cded5 9595 if test "$hard_links" = no; then
81ecdfbb
RW
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9597$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9598 need_locks=warn
d7040cdb 9599 fi
d7040cdb 9600else
ce2cded5 9601 need_locks=no
d7040cdb 9602fi
d7040cdb 9603
d7040cdb 9604
d7040cdb 9605
d7040cdb 9606
d7040cdb 9607
d7040cdb 9608
81ecdfbb
RW
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9610$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9611
ce2cded5
L
9612 runpath_var=
9613 allow_undefined_flag=
9614 always_export_symbols=no
9615 archive_cmds=
9616 archive_expsym_cmds=
9617 compiler_needs_object=no
9618 enable_shared_with_static_runtimes=no
9619 export_dynamic_flag_spec=
9620 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9621 hardcode_automatic=no
9622 hardcode_direct=no
9623 hardcode_direct_absolute=no
9624 hardcode_libdir_flag_spec=
9625 hardcode_libdir_flag_spec_ld=
9626 hardcode_libdir_separator=
9627 hardcode_minus_L=no
9628 hardcode_shlibpath_var=unsupported
9629 inherit_rpath=no
9630 link_all_deplibs=unknown
9631 module_cmds=
9632 module_expsym_cmds=
9633 old_archive_from_new_cmds=
9634 old_archive_from_expsyms_cmds=
9635 thread_safe_flag_spec=
9636 whole_archive_flag_spec=
9637 # include_expsyms should be a list of space-separated symbols to be *always*
9638 # included in the symbol list
9639 include_expsyms=
9640 # exclude_expsyms can be an extended regexp of symbols to exclude
9641 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9642 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9643 # as well as any symbol that contains `d'.
b214d478 9644 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9645 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9646 # platforms (ab)use it in PIC code, but their linkers get confused if
9647 # the symbol is explicitly referenced. Since portable code cannot
9648 # rely on this symbol name, it's probably fine to never include it in
9649 # preloaded symbol tables.
b214d478 9650 # Exclude shared library initialization/finalization symbols.
ce2cded5 9651 extract_expsyms_cmds=
d7040cdb 9652
ce2cded5 9653 case $host_os in
b214d478 9654 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9655 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9656 # When not using gcc, we currently assume that we are using
9657 # Microsoft Visual C++.
9658 if test "$GCC" != yes; then
9659 with_gnu_ld=no
9660 fi
d7040cdb 9661 ;;
ce2cded5
L
9662 interix*)
9663 # we just hope/assume this is gcc and not c89 (= MSVC++)
9664 with_gnu_ld=yes
9665 ;;
9666 openbsd*)
9667 with_gnu_ld=no
d7040cdb
SE
9668 ;;
9669 esac
d7040cdb 9670
ce2cded5 9671 ld_shlibs=yes
3725885a
RW
9672
9673 # On some targets, GNU ld is compatible enough with the native linker
9674 # that we're better off using the native interface for both.
9675 lt_use_gnu_ld_interface=no
ce2cded5 9676 if test "$with_gnu_ld" = yes; then
3725885a
RW
9677 case $host_os in
9678 aix*)
9679 # The AIX port of GNU ld has always aspired to compatibility
9680 # with the native linker. However, as the warning in the GNU ld
9681 # block says, versions before 2.19.5* couldn't really create working
9682 # shared libraries, regardless of the interface used.
9683 case `$LD -v 2>&1` in
9684 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9685 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9686 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9687 *)
9688 lt_use_gnu_ld_interface=yes
9689 ;;
9690 esac
9691 ;;
9692 *)
9693 lt_use_gnu_ld_interface=yes
9694 ;;
9695 esac
9696 fi
9697
9698 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9699 # If archive_cmds runs LD, not CC, wlarc should be empty
9700 wlarc='${wl}'
d7040cdb 9701
ce2cded5
L
9702 # Set some defaults for GNU ld with shared library support. These
9703 # are reset later if shared libraries are not supported. Putting them
9704 # here allows them to be overridden if necessary.
9705 runpath_var=LD_RUN_PATH
9706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707 export_dynamic_flag_spec='${wl}--export-dynamic'
9708 # ancient GNU ld didn't support --whole-archive et. al.
9709 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9711 else
9712 whole_archive_flag_spec=
9713 fi
9714 supports_anon_versioning=no
9715 case `$LD -v 2>&1` in
3725885a 9716 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9720 *\ 2.11.*) ;; # other 2.11 versions
9721 *) supports_anon_versioning=yes ;;
9722 esac
d7040cdb 9723
ce2cded5
L
9724 # See if GNU ld supports shared libraries.
9725 case $host_os in
50e7d84b 9726 aix[3-9]*)
ce2cded5
L
9727 # On AIX/PPC, the GNU linker is very broken
9728 if test "$host_cpu" != ia64; then
9729 ld_shlibs=no
9730 cat <<_LT_EOF 1>&2
d7040cdb 9731
3725885a 9732*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9733*** to be unable to reliably create shared libraries on AIX.
9734*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9735*** really care for shared libraries, you may want to install binutils
9736*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9737*** You will then need to restart the configuration process.
d7040cdb 9738
ce2cded5
L
9739_LT_EOF
9740 fi
d7040cdb 9741 ;;
d7040cdb 9742
ce2cded5 9743 amigaos*)
b214d478
SE
9744 case $host_cpu in
9745 powerpc)
9746 # see comment about AmigaOS4 .so support
9747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748 archive_expsym_cmds=''
9749 ;;
9750 m68k)
9751 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)'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_minus_L=yes
9754 ;;
9755 esac
ce2cded5 9756 ;;
d7040cdb 9757
ce2cded5
L
9758 beos*)
9759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9760 allow_undefined_flag=unsupported
9761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9762 # support --undefined. This deserves some investigation. FIXME
9763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 else
9765 ld_shlibs=no
9766 fi
9767 ;;
d7040cdb 9768
b214d478 9769 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9770 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9771 # as there is no search path for DLLs.
9772 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9773 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9774 allow_undefined_flag=unsupported
9775 always_export_symbols=no
9776 enable_shared_with_static_runtimes=yes
9777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9778
9779 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9781 # If the export-symbols file already is a .def file (1st line
9782 # is EXPORTS), use it as is; otherwise, prepend...
9783 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9784 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9785 else
ce2cded5
L
9786 echo EXPORTS > $output_objdir/$soname.def;
9787 cat $export_symbols >> $output_objdir/$soname.def;
9788 fi~
9789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9790 else
9791 ld_shlibs=no
9792 fi
9793 ;;
d7040cdb 9794
3725885a
RW
9795 haiku*)
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 link_all_deplibs=yes
9798 ;;
9799
ce2cded5
L
9800 interix[3-9]*)
9801 hardcode_direct=no
9802 hardcode_shlibpath_var=no
9803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9804 export_dynamic_flag_spec='${wl}-E'
9805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9806 # Instead, shared libraries are loaded at an image base (0x10000000 by
9807 # default) and relocated if they conflict, which is a slow very memory
9808 # consuming and fragmenting process. To avoid this, we pick a random,
9809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9810 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9812 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'
9813 ;;
d7040cdb 9814
58e24671 9815 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9816 tmp_diet=no
9817 if test "$host_os" = linux-dietlibc; then
9818 case $cc_basename in
9819 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9820 esac
9821 fi
9822 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9823 && test "$tmp_diet" = no
9824 then
6e733cce 9825 tmp_addflag=' $pic_flag'
b214d478 9826 tmp_sharedflag='-shared'
ce2cded5
L
9827 case $cc_basename,$host_cpu in
9828 pgcc*) # Portland Group C compiler
3725885a 9829 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
9830 tmp_addflag=' $pic_flag'
9831 ;;
3725885a
RW
9832 pgf77* | pgf90* | pgf95* | pgfortran*)
9833 # Portland Group f77 and f90 compilers
9834 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
9835 tmp_addflag=' $pic_flag -Mnomain' ;;
9836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9837 tmp_addflag=' -i_dynamic' ;;
9838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9839 tmp_addflag=' -i_dynamic -nofor_main' ;;
9840 ifc* | ifort*) # Intel Fortran compiler
9841 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9842 lf95*) # Lahey Fortran 8.1
9843 whole_archive_flag_spec=
9844 tmp_sharedflag='--shared' ;;
3725885a 9845 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9846 tmp_sharedflag='-qmkshrobj'
9847 tmp_addflag= ;;
3725885a
RW
9848 nvcc*) # Cuda Compiler Driver 2.2
9849 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'
9850 compiler_needs_object=yes
9851 ;;
ce2cded5
L
9852 esac
9853 case `$CC -V 2>&1 | sed 5q` in
9854 *Sun\ C*) # Sun C 5.9
3725885a 9855 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
9856 compiler_needs_object=yes
9857 tmp_sharedflag='-G' ;;
9858 *Sun\ F*) # Sun Fortran 8.3
9859 tmp_sharedflag='-G' ;;
ce2cded5
L
9860 esac
9861 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9862
ce2cded5
L
9863 if test "x$supports_anon_versioning" = xyes; then
9864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9866 echo "local: *; };" >> $output_objdir/$libname.ver~
9867 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9868 fi
b214d478
SE
9869
9870 case $cc_basename in
3725885a 9871 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9872 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9873 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9874 hardcode_libdir_flag_spec=
9875 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9876 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9877 if test "x$supports_anon_versioning" = xyes; then
9878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9880 echo "local: *; };" >> $output_objdir/$libname.ver~
9881 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9882 fi
9883 ;;
9884 esac
ce2cded5
L
9885 else
9886 ld_shlibs=no
9887 fi
9888 ;;
d7040cdb 9889
ce2cded5
L
9890 netbsd*)
9891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9893 wlarc=
9894 else
9895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9897 fi
9898 ;;
9899
9900 solaris*)
9901 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9902 ld_shlibs=no
9903 cat <<_LT_EOF 1>&2
9904
9905*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9906*** create shared libraries on Solaris systems. Therefore, libtool
9907*** is disabling shared libraries support. We urge you to upgrade GNU
9908*** binutils to release 2.9.1 or newer. Another option is to modify
9909*** your PATH or compiler configuration so that the native linker is
9910*** used, and then restart.
9911
9912_LT_EOF
9913 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916 else
9917 ld_shlibs=no
9918 fi
9919 ;;
9920
9921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9922 case `$LD -v 2>&1` in
9923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9924 ld_shlibs=no
9925 cat <<_LT_EOF 1>&2
9926
9927*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9928*** reliably create shared libraries on SCO systems. Therefore, libtool
9929*** is disabling shared libraries support. We urge you to upgrade GNU
9930*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9931*** your PATH or compiler configuration so that the native linker is
9932*** used, and then restart.
9933
9934_LT_EOF
9935 ;;
9936 *)
9937 # For security reasons, it is highly recommended that you always
9938 # use absolute paths for naming shared libraries, and exclude the
9939 # DT_RUNPATH tag from executables and libraries. But doing so
9940 # requires that you compile everything twice, which is a pain.
9941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9945 else
9946 ld_shlibs=no
9947 fi
9948 ;;
9949 esac
9950 ;;
9951
9952 sunos4*)
9953 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954 wlarc=
9955 hardcode_direct=yes
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 *)
9960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963 else
9964 ld_shlibs=no
9965 fi
9966 ;;
9967 esac
9968
9969 if test "$ld_shlibs" = no; then
9970 runpath_var=
9971 hardcode_libdir_flag_spec=
9972 export_dynamic_flag_spec=
9973 whole_archive_flag_spec=
9974 fi
9975 else
9976 # PORTME fill in a description of your system's linker (not GNU ld)
9977 case $host_os in
9978 aix3*)
9979 allow_undefined_flag=unsupported
9980 always_export_symbols=yes
9981 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'
9982 # Note: this linker hardcodes the directories in LIBPATH if there
9983 # are no directories specified by -L.
9984 hardcode_minus_L=yes
9985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9986 # Neither direct hardcoding nor static linking is supported with a
9987 # broken collect2.
9988 hardcode_direct=unsupported
9989 fi
9990 ;;
9991
50e7d84b 9992 aix[4-9]*)
ce2cded5
L
9993 if test "$host_cpu" = ia64; then
9994 # On IA64, the linker does run time linking by default, so we don't
9995 # have to do anything special.
9996 aix_use_runtimelinking=no
9997 exp_sym_flag='-Bexport'
9998 no_entry_flag=""
9999 else
10000 # If we're using GNU nm, then we don't want the "-C" option.
10001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10002 # Also, AIX nm treats weak defined symbols like other global
10003 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10004 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10005 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 10006 else
5c14705f 10007 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
10008 fi
10009 aix_use_runtimelinking=no
10010
10011 # Test if we are trying to use run time linking or normal
10012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10013 # need to do runtime linking.
50e7d84b 10014 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10015 for ld_flag in $LDFLAGS; do
10016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10017 aix_use_runtimelinking=yes
10018 break
10019 fi
10020 done
10021 ;;
10022 esac
10023
10024 exp_sym_flag='-bexport'
10025 no_entry_flag='-bnoentry'
10026 fi
10027
10028 # When large executables or shared objects are built, AIX ld can
10029 # have problems creating the table of contents. If linking a library
10030 # or program results in "error TOC overflow" add -mminimal-toc to
10031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10033
10034 archive_cmds=''
10035 hardcode_direct=yes
10036 hardcode_direct_absolute=yes
10037 hardcode_libdir_separator=':'
10038 link_all_deplibs=yes
10039 file_list_spec='${wl}-f,'
10040
10041 if test "$GCC" = yes; then
10042 case $host_os in aix4.[012]|aix4.[012].*)
10043 # We only want to do this on AIX 4.2 and lower, the check
10044 # below for broken collect2 doesn't work under 4.3+
10045 collect2name=`${CC} -print-prog-name=collect2`
10046 if test -f "$collect2name" &&
10047 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10048 then
10049 # We have reworked collect2
10050 :
10051 else
10052 # We have old collect2
10053 hardcode_direct=unsupported
10054 # It fails to find uninstalled libraries when the uninstalled
10055 # path is not listed in the libpath. Setting hardcode_minus_L
10056 # to unsupported forces relinking
10057 hardcode_minus_L=yes
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 hardcode_libdir_separator=
10060 fi
10061 ;;
10062 esac
10063 shared_flag='-shared'
10064 if test "$aix_use_runtimelinking" = yes; then
10065 shared_flag="$shared_flag "'${wl}-G'
10066 fi
10067 else
10068 # not using gcc
10069 if test "$host_cpu" = ia64; then
10070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10071 # chokes on -Wl,-G. The following line is correct:
10072 shared_flag='-G'
10073 else
10074 if test "$aix_use_runtimelinking" = yes; then
10075 shared_flag='${wl}-G'
10076 else
10077 shared_flag='${wl}-bM:SRE'
10078 fi
10079 fi
10080 fi
10081
b214d478 10082 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10083 # It seems that -bexpall does not export symbols beginning with
10084 # underscore (_), so it is better to generate a list of symbols to export.
10085 always_export_symbols=yes
10086 if test "$aix_use_runtimelinking" = yes; then
10087 # Warning - without using the other runtime loading flags (-brtl),
10088 # -berok will link without error, but may produce a broken library.
10089 allow_undefined_flag='-berok'
10090 # Determine the default libpath from the value encoded in an
10091 # empty executable.
81ecdfbb 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10093/* end confdefs.h. */
10094
10095int
10096main ()
10097{
10098
10099 ;
10100 return 0;
10101}
10102_ACEOF
81ecdfbb 10103if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10104
ce2cded5
L
10105lt_aix_libpath_sed='
10106 /Import File Strings/,/^$/ {
10107 /^0/ {
10108 s/^0 *\(.*\)$/\1/
10109 p
10110 }
10111 }'
10112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10113# Check for a 64-bit object if we didn't find anything.
10114if test -z "$aix_libpath"; then
10115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116fi
d7040cdb 10117fi
81ecdfbb
RW
10118rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10121
ce2cded5 10122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10123 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
10124 else
10125 if test "$host_cpu" = ia64; then
10126 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10127 allow_undefined_flag="-z nodefs"
10128 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"
10129 else
10130 # Determine the default libpath from the value encoded in an
10131 # empty executable.
81ecdfbb 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10133/* end confdefs.h. */
d7040cdb 10134
ce2cded5
L
10135int
10136main ()
10137{
d7040cdb 10138
ce2cded5
L
10139 ;
10140 return 0;
10141}
10142_ACEOF
81ecdfbb 10143if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10144
ce2cded5
L
10145lt_aix_libpath_sed='
10146 /Import File Strings/,/^$/ {
10147 /^0/ {
10148 s/^0 *\(.*\)$/\1/
10149 p
10150 }
10151 }'
10152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10153# Check for a 64-bit object if we didn't find anything.
10154if test -z "$aix_libpath"; then
10155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156fi
ce2cded5 10157fi
81ecdfbb
RW
10158rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10160if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10161
ce2cded5
L
10162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10163 # Warning - without using the other run time loading flags,
10164 # -berok will link without error, but may produce a broken library.
10165 no_undefined_flag=' ${wl}-bernotok'
10166 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10167 if test "$with_gnu_ld" = yes; then
10168 # We only use this code for GNU lds that support --whole-archive.
10169 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10170 else
10171 # Exported symbols can be pulled into shared objects from archives
10172 whole_archive_flag_spec='$convenience'
10173 fi
ce2cded5
L
10174 archive_cmds_need_lc=yes
10175 # This is similar to how AIX traditionally builds its shared libraries.
10176 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'
10177 fi
10178 fi
10179 ;;
d7040cdb 10180
ce2cded5 10181 amigaos*)
b214d478
SE
10182 case $host_cpu in
10183 powerpc)
10184 # see comment about AmigaOS4 .so support
10185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186 archive_expsym_cmds=''
10187 ;;
10188 m68k)
10189 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)'
10190 hardcode_libdir_flag_spec='-L$libdir'
10191 hardcode_minus_L=yes
10192 ;;
10193 esac
ce2cded5
L
10194 ;;
10195
10196 bsdi[45]*)
10197 export_dynamic_flag_spec=-rdynamic
10198 ;;
10199
b214d478 10200 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10201 # When not using gcc, we currently assume that we are using
10202 # Microsoft Visual C++.
10203 # hardcode_libdir_flag_spec is actually meaningless, as there is
10204 # no search path for DLLs.
10205 hardcode_libdir_flag_spec=' '
10206 allow_undefined_flag=unsupported
10207 # Tell ltmain to make .lib files, not .a files.
10208 libext=lib
10209 # Tell ltmain to make .dll files, not .so files.
10210 shrext_cmds=".dll"
10211 # FIXME: Setting linknames here is a bad hack.
3725885a 10212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10213 # The linker will automatically build a .lib file if we build a DLL.
10214 old_archive_from_new_cmds='true'
10215 # FIXME: Should let the user specify the lib program.
10216 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10217 fix_srcfile_path='`cygpath -w "$srcfile"`'
10218 enable_shared_with_static_runtimes=yes
10219 ;;
10220
10221 darwin* | rhapsody*)
d7040cdb 10222
b214d478
SE
10223
10224 archive_cmds_need_lc=no
10225 hardcode_direct=no
10226 hardcode_automatic=yes
10227 hardcode_shlibpath_var=unsupported
3725885a
RW
10228 if test "$lt_cv_ld_force_load" = "yes"; then
10229 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\"`'
10230 else
10231 whole_archive_flag_spec=''
10232 fi
b214d478
SE
10233 link_all_deplibs=yes
10234 allow_undefined_flag="$_lt_dar_allow_undefined"
10235 case $cc_basename in
10236 ifort*) _lt_dar_can_shared=yes ;;
10237 *) _lt_dar_can_shared=$GCC ;;
10238 esac
10239 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10240 output_verbose_link_cmd=func_echo_all
b214d478
SE
10241 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10242 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10243 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}"
10244 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}"
10245
10246 else
10247 ld_shlibs=no
10248 fi
10249
ce2cded5 10250 ;;
d7040cdb 10251
ce2cded5
L
10252 dgux*)
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_libdir_flag_spec='-L$libdir'
10255 hardcode_shlibpath_var=no
10256 ;;
d7040cdb 10257
ce2cded5
L
10258 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10259 # support. Future versions do this automatically, but an explicit c++rt0.o
10260 # does not break anything, and helps significantly (at the cost of a little
10261 # extra space).
10262 freebsd2.2*)
10263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10264 hardcode_libdir_flag_spec='-R$libdir'
10265 hardcode_direct=yes
10266 hardcode_shlibpath_var=no
d7040cdb 10267 ;;
d7040cdb 10268
ce2cded5 10269 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 10270 freebsd2.*)
ce2cded5
L
10271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10272 hardcode_direct=yes
10273 hardcode_minus_L=yes
10274 hardcode_shlibpath_var=no
10275 ;;
d7040cdb 10276
ce2cded5
L
10277 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10278 freebsd* | dragonfly*)
10279 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10280 hardcode_libdir_flag_spec='-R$libdir'
10281 hardcode_direct=yes
10282 hardcode_shlibpath_var=no
10283 ;;
d7040cdb 10284
ce2cded5
L
10285 hpux9*)
10286 if test "$GCC" = yes; then
10287 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'
10288 else
10289 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'
10290 fi
10291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292 hardcode_libdir_separator=:
10293 hardcode_direct=yes
d7040cdb 10294
ce2cded5
L
10295 # hardcode_minus_L: Not really in the search PATH,
10296 # but as the default location of the library.
10297 hardcode_minus_L=yes
10298 export_dynamic_flag_spec='${wl}-E'
10299 ;;
d7040cdb 10300
ce2cded5 10301 hpux10*)
3725885a 10302 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10303 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304 else
10305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10306 fi
10307 if test "$with_gnu_ld" = no; then
10308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309 hardcode_libdir_flag_spec_ld='+b $libdir'
10310 hardcode_libdir_separator=:
10311 hardcode_direct=yes
10312 hardcode_direct_absolute=yes
10313 export_dynamic_flag_spec='${wl}-E'
10314 # hardcode_minus_L: Not really in the search PATH,
10315 # but as the default location of the library.
10316 hardcode_minus_L=yes
10317 fi
10318 ;;
d7040cdb 10319
ce2cded5 10320 hpux11*)
3725885a 10321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10322 case $host_cpu in
10323 hppa*64*)
10324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 ;;
10326 ia64*)
b214d478 10327 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10328 ;;
10329 *)
10330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10331 ;;
10332 esac
10333 else
10334 case $host_cpu in
10335 hppa*64*)
10336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 ;;
10338 ia64*)
10339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10340 ;;
10341 *)
3725885a
RW
10342
10343 # Older versions of the 11.00 compiler do not understand -b yet
10344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10346$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 10347if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
10348 $as_echo_n "(cached) " >&6
10349else
10350 lt_cv_prog_compiler__b=no
10351 save_LDFLAGS="$LDFLAGS"
10352 LDFLAGS="$LDFLAGS -b"
10353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10355 # The linker can only warn and ignore the option if not recognized
10356 # So say no if there are warnings
10357 if test -s conftest.err; then
10358 # Append any errors to the config.log.
10359 cat conftest.err 1>&5
10360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10362 if diff conftest.exp conftest.er2 >/dev/null; then
10363 lt_cv_prog_compiler__b=yes
10364 fi
10365 else
10366 lt_cv_prog_compiler__b=yes
10367 fi
10368 fi
10369 $RM -r conftest*
10370 LDFLAGS="$save_LDFLAGS"
10371
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10374$as_echo "$lt_cv_prog_compiler__b" >&6; }
10375
10376if test x"$lt_cv_prog_compiler__b" = xyes; then
10377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10378else
10379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10380fi
10381
ce2cded5
L
10382 ;;
10383 esac
10384 fi
10385 if test "$with_gnu_ld" = no; then
10386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10387 hardcode_libdir_separator=:
d7040cdb 10388
ce2cded5
L
10389 case $host_cpu in
10390 hppa*64*|ia64*)
10391 hardcode_direct=no
10392 hardcode_shlibpath_var=no
10393 ;;
10394 *)
10395 hardcode_direct=yes
10396 hardcode_direct_absolute=yes
10397 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10398
ce2cded5
L
10399 # hardcode_minus_L: Not really in the search PATH,
10400 # but as the default location of the library.
10401 hardcode_minus_L=yes
10402 ;;
10403 esac
10404 fi
10405 ;;
d7040cdb 10406
ce2cded5
L
10407 irix5* | irix6* | nonstopux*)
10408 if test "$GCC" = yes; then
3725885a 10409 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
10410 # Try to use the -exported_symbol ld option, if it does not
10411 # work, assume that -exports_file does not work either and
10412 # implicitly export all symbols.
10413 save_LDFLAGS="$LDFLAGS"
10414 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h. */
ce2cded5
L
10417int foo(void) {}
10418_ACEOF
81ecdfbb 10419if ac_fn_c_try_link "$LINENO"; then :
3725885a 10420 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 10421
ce2cded5 10422fi
81ecdfbb
RW
10423rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10425 LDFLAGS="$save_LDFLAGS"
10426 else
3725885a
RW
10427 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'
10428 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
10429 fi
10430 archive_cmds_need_lc='no'
10431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10432 hardcode_libdir_separator=:
10433 inherit_rpath=yes
10434 link_all_deplibs=yes
10435 ;;
d7040cdb 10436
ce2cded5
L
10437 netbsd*)
10438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10440 else
10441 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10442 fi
10443 hardcode_libdir_flag_spec='-R$libdir'
10444 hardcode_direct=yes
10445 hardcode_shlibpath_var=no
10446 ;;
d7040cdb 10447
ce2cded5
L
10448 newsos6)
10449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450 hardcode_direct=yes
10451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_shlibpath_var=no
10454 ;;
d7040cdb 10455
ce2cded5
L
10456 *nto* | *qnx*)
10457 ;;
d7040cdb 10458
ce2cded5 10459 openbsd*)
b214d478
SE
10460 if test -f /usr/libexec/ld.so; then
10461 hardcode_direct=yes
10462 hardcode_shlibpath_var=no
10463 hardcode_direct_absolute=yes
10464 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10465 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10466 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10468 export_dynamic_flag_spec='${wl}-E'
10469 else
10470 case $host_os in
10471 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10473 hardcode_libdir_flag_spec='-R$libdir'
10474 ;;
10475 *)
10476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478 ;;
10479 esac
10480 fi
10481 else
10482 ld_shlibs=no
ce2cded5
L
10483 fi
10484 ;;
d7040cdb 10485
ce2cded5
L
10486 os2*)
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 hardcode_minus_L=yes
10489 allow_undefined_flag=unsupported
3725885a 10490 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
10491 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10492 ;;
d7040cdb 10493
ce2cded5
L
10494 osf3*)
10495 if test "$GCC" = yes; then
10496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10497 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
10498 else
10499 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10500 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
10501 fi
10502 archive_cmds_need_lc='no'
10503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10504 hardcode_libdir_separator=:
10505 ;;
d7040cdb 10506
ce2cded5
L
10507 osf4* | osf5*) # as osf3* with the addition of -msym flag
10508 if test "$GCC" = yes; then
10509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10510 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
10511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10512 else
10513 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10514 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 10515 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 10516 $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 10517
ce2cded5
L
10518 # Both c and cxx compiler support -rpath directly
10519 hardcode_libdir_flag_spec='-rpath $libdir'
10520 fi
10521 archive_cmds_need_lc='no'
10522 hardcode_libdir_separator=:
10523 ;;
d7040cdb 10524
ce2cded5
L
10525 solaris*)
10526 no_undefined_flag=' -z defs'
10527 if test "$GCC" = yes; then
10528 wlarc='${wl}'
10529 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10531 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10532 else
10533 case `$CC -V 2>&1` in
10534 *"Compilers 5.0"*)
10535 wlarc=''
10536 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10539 ;;
10540 *)
10541 wlarc='${wl}'
10542 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10544 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10545 ;;
10546 esac
10547 fi
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_shlibpath_var=no
10550 case $host_os in
10551 solaris2.[0-5] | solaris2.[0-5].*) ;;
10552 *)
10553 # The compiler driver will combine and reorder linker options,
10554 # but understands `-z linker_flag'. GCC discards it without `$wl',
10555 # but is careful enough not to reorder.
10556 # Supported since Solaris 2.6 (maybe 2.5.1?)
10557 if test "$GCC" = yes; then
10558 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10559 else
10560 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10561 fi
10562 ;;
10563 esac
10564 link_all_deplibs=yes
10565 ;;
d7040cdb 10566
ce2cded5
L
10567 sunos4*)
10568 if test "x$host_vendor" = xsequent; then
10569 # Use $CC to link under sequent, because it throws in some extra .o
10570 # files that make .init and .fini sections work.
10571 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10572 else
10573 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10574 fi
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_direct=yes
10577 hardcode_minus_L=yes
10578 hardcode_shlibpath_var=no
10579 ;;
d7040cdb 10580
ce2cded5
L
10581 sysv4)
10582 case $host_vendor in
10583 sni)
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_direct=yes # is this really true???
10586 ;;
10587 siemens)
10588 ## LD is ld it makes a PLAMLIB
10589 ## CC just makes a GrossModule.
10590 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10591 reload_cmds='$CC -r -o $output$reload_objs'
10592 hardcode_direct=no
10593 ;;
10594 motorola)
10595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10596 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10597 ;;
10598 esac
10599 runpath_var='LD_RUN_PATH'
10600 hardcode_shlibpath_var=no
10601 ;;
d7040cdb 10602
ce2cded5
L
10603 sysv4.3*)
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_shlibpath_var=no
10606 export_dynamic_flag_spec='-Bexport'
10607 ;;
d7040cdb 10608
ce2cded5
L
10609 sysv4*MP*)
10610 if test -d /usr/nec; then
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_shlibpath_var=no
10613 runpath_var=LD_RUN_PATH
10614 hardcode_runpath_var=yes
10615 ld_shlibs=yes
10616 fi
10617 ;;
d7040cdb 10618
ce2cded5
L
10619 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10620 no_undefined_flag='${wl}-z,text'
10621 archive_cmds_need_lc=no
10622 hardcode_shlibpath_var=no
10623 runpath_var='LD_RUN_PATH'
d7040cdb 10624
ce2cded5
L
10625 if test "$GCC" = yes; then
10626 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 else
10629 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 fi
10632 ;;
d7040cdb 10633
ce2cded5
L
10634 sysv5* | sco3.2v5* | sco5v6*)
10635 # Note: We can NOT use -z defs as we might desire, because we do not
10636 # link with -lc, and that would cause any symbols used from libc to
10637 # always be unresolved, which means just about no library would
10638 # ever link correctly. If we're not using GNU ld we use -z text
10639 # though, which does catch some bad symbols but isn't as heavy-handed
10640 # as -z defs.
10641 no_undefined_flag='${wl}-z,text'
10642 allow_undefined_flag='${wl}-z,nodefs'
10643 archive_cmds_need_lc=no
10644 hardcode_shlibpath_var=no
10645 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10646 hardcode_libdir_separator=':'
10647 link_all_deplibs=yes
10648 export_dynamic_flag_spec='${wl}-Bexport'
10649 runpath_var='LD_RUN_PATH'
d7040cdb 10650
ce2cded5
L
10651 if test "$GCC" = yes; then
10652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 else
10655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 fi
10658 ;;
d7040cdb 10659
ce2cded5
L
10660 uts4*)
10661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10662 hardcode_libdir_flag_spec='-L$libdir'
10663 hardcode_shlibpath_var=no
10664 ;;
d7040cdb 10665
ce2cded5
L
10666 *)
10667 ld_shlibs=no
10668 ;;
10669 esac
d7040cdb 10670
ce2cded5
L
10671 if test x$host_vendor = xsni; then
10672 case $host in
10673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10674 export_dynamic_flag_spec='${wl}-Blargedynsym'
10675 ;;
10676 esac
10677 fi
10678 fi
d7040cdb 10679
81ecdfbb
RW
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10681$as_echo "$ld_shlibs" >&6; }
ce2cded5 10682test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10683
ce2cded5 10684with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
ce2cded5
L
10700#
10701# Do we need to explicitly link libc?
10702#
10703case "x$archive_cmds_need_lc" in
10704x|xyes)
10705 # Assume -lc should be added
10706 archive_cmds_need_lc=yes
d7040cdb 10707
ce2cded5
L
10708 if test "$enable_shared" = yes && test "$GCC" = yes; then
10709 case $archive_cmds in
10710 *'~'*)
10711 # FIXME: we may have to deal with multi-command sequences.
10712 ;;
10713 '$CC '*)
10714 # Test whether the compiler implicitly links with -lc since on some
10715 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10716 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10718$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10719if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10720 $as_echo_n "(cached) " >&6
39144654
RW
10721else
10722 $RM conftest*
10723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10724
81ecdfbb 10725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10726 (eval $ac_compile) 2>&5
10727 ac_status=$?
81ecdfbb
RW
10728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10730 soname=conftest
10731 lib=conftest
10732 libobjs=conftest.$ac_objext
10733 deplibs=
10734 wl=$lt_prog_compiler_wl
10735 pic_flag=$lt_prog_compiler_pic
10736 compiler_flags=-v
10737 linker_flags=-v
10738 verstring=
10739 output_objdir=.
10740 libname=conftest
10741 lt_save_allow_undefined_flag=$allow_undefined_flag
10742 allow_undefined_flag=
81ecdfbb 10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10744 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10745 ac_status=$?
81ecdfbb
RW
10746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747 test $ac_status = 0; }
39144654
RW
10748 then
10749 lt_cv_archive_cmds_need_lc=no
10750 else
10751 lt_cv_archive_cmds_need_lc=yes
10752 fi
10753 allow_undefined_flag=$lt_save_allow_undefined_flag
10754 else
10755 cat conftest.err 1>&5
10756 fi
10757 $RM conftest*
10758
10759fi
81ecdfbb
RW
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10761$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10762 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10763 ;;
10764 esac
10765 fi
10766 ;;
10767esac
d7040cdb
SE
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
d7040cdb 10795
d7040cdb 10796
d7040cdb
SE
10797
10798
10799
10800
10801
10802
d7040cdb 10803
d7040cdb 10804
d7040cdb 10805
d7040cdb 10806
d7040cdb 10807
d7040cdb 10808
d7040cdb 10809
d7040cdb 10810
d7040cdb 10811
d7040cdb 10812
d7040cdb 10813
d7040cdb 10814
d7040cdb 10815
d7040cdb 10816
d7040cdb 10817
d7040cdb 10818
d7040cdb 10819
d7040cdb 10820
d7040cdb 10821
d7040cdb 10822
d7040cdb 10823
d7040cdb 10824
d7040cdb 10825
d7040cdb 10826
d7040cdb 10827
d7040cdb 10828
d7040cdb 10829
d7040cdb 10830
ce2cded5
L
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10926$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10927
10928if test "$GCC" = yes; then
ce2cded5
L
10929 case $host_os in
10930 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10931 *) lt_awk_arg="/^libraries:/" ;;
10932 esac
3725885a
RW
10933 case $host_os in
10934 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10935 *) lt_sed_strip_eq="s,=/,/,g" ;;
10936 esac
10937 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10938 case $lt_search_path_spec in
10939 *\;*)
ce2cded5
L
10940 # if the path contains ";" then we assume it to be the separator
10941 # otherwise default to the standard path separator (i.e. ":") - it is
10942 # assumed that no part of a normal pathname contains ";" but that should
10943 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10944 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10945 ;;
10946 *)
10947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10948 ;;
10949 esac
ce2cded5
L
10950 # Ok, now we have the path, separated by spaces, we can step through it
10951 # and add multilib dir if necessary.
10952 lt_tmp_lt_search_path_spec=
10953 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10954 for lt_sys_path in $lt_search_path_spec; do
10955 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10956 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10957 else
10958 test -d "$lt_sys_path" && \
10959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10960 fi
10961 done
3725885a 10962 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10963BEGIN {RS=" "; FS="/|\n";} {
10964 lt_foo="";
10965 lt_count=0;
10966 for (lt_i = NF; lt_i > 0; lt_i--) {
10967 if ($lt_i != "" && $lt_i != ".") {
10968 if ($lt_i == "..") {
10969 lt_count++;
10970 } else {
10971 if (lt_count == 0) {
10972 lt_foo="/" $lt_i lt_foo;
10973 } else {
10974 lt_count--;
10975 }
10976 }
10977 }
10978 }
10979 if (lt_foo != "") { lt_freq[lt_foo]++; }
10980 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10981}'`
3725885a
RW
10982 # AWK program above erroneously prepends '/' to C:/dos/paths
10983 # for these hosts.
10984 case $host_os in
10985 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10986 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10987 esac
10988 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10989else
ce2cded5
L
10990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10991fi
10992library_names_spec=
10993libname_spec='lib$name'
10994soname_spec=
10995shrext_cmds=".so"
10996postinstall_cmds=
10997postuninstall_cmds=
10998finish_cmds=
10999finish_eval=
11000shlibpath_var=
11001shlibpath_overrides_runpath=unknown
11002version_type=none
11003dynamic_linker="$host_os ld.so"
11004sys_lib_dlsearch_path_spec="/lib /usr/lib"
11005need_lib_prefix=unknown
11006hardcode_into_libs=no
11007
11008# when you set need_version to no, make sure it does not cause -set_version
11009# flags to be left without arguments
11010need_version=unknown
11011
11012case $host_os in
11013aix3*)
11014 version_type=linux
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11016 shlibpath_var=LIBPATH
11017
11018 # AIX 3 has no versioning support, so we append a major version to the name.
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 ;;
11021
50e7d84b 11022aix[4-9]*)
ce2cded5
L
11023 version_type=linux
11024 need_lib_prefix=no
11025 need_version=no
11026 hardcode_into_libs=yes
11027 if test "$host_cpu" = ia64; then
11028 # AIX 5 supports IA64
11029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 else
11032 # With GCC up to 2.95.x, collect2 would create an import file
11033 # for dependence libraries. The import file would start with
11034 # the line `#! .'. This would cause the generated library to
11035 # depend on `.', always an invalid library. This was fixed in
11036 # development snapshots of GCC prior to 3.0.
11037 case $host_os in
11038 aix4 | aix4.[01] | aix4.[01].*)
11039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11040 echo ' yes '
11041 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11042 :
11043 else
11044 can_build_shared=no
11045 fi
11046 ;;
11047 esac
11048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11049 # soname into executable. Probably we can add versioning support to
11050 # collect2, so additional links can be useful in future.
11051 if test "$aix_use_runtimelinking" = yes; then
11052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11053 # instead of lib<name>.a to let people know that these are not
11054 # typical AIX shared libraries.
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 else
11057 # We preserve .a as extension for shared libraries through AIX4.2
11058 # and later when we are not doing run time linking.
11059 library_names_spec='${libname}${release}.a $libname.a'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 fi
11062 shlibpath_var=LIBPATH
11063 fi
11064 ;;
11065
11066amigaos*)
b214d478
SE
11067 case $host_cpu in
11068 powerpc)
11069 # Since July 2007 AmigaOS4 officially supports .so libraries.
11070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 ;;
11073 m68k)
ce2cded5
L
11074 library_names_spec='$libname.ixlibrary $libname.a'
11075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11076 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
11077 ;;
11078 esac
ce2cded5
L
11079 ;;
11080
11081beos*)
11082 library_names_spec='${libname}${shared_ext}'
11083 dynamic_linker="$host_os ld.so"
11084 shlibpath_var=LIBRARY_PATH
11085 ;;
11086
11087bsdi[45]*)
11088 version_type=linux
11089 need_version=no
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11096 # the default ld.so.conf also contains /usr/contrib/lib and
11097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11098 # libtool to hard-code these into programs
11099 ;;
11100
b214d478 11101cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11102 version_type=windows
11103 shrext_cmds=".dll"
11104 need_version=no
11105 need_lib_prefix=no
11106
b214d478
SE
11107 case $GCC,$host_os in
11108 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11109 library_names_spec='$libname.dll.a'
11110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11111 postinstall_cmds='base_file=`basename \${file}`~
11112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11113 dldir=$destdir/`dirname \$dlpath`~
11114 test -d \$dldir || mkdir -p \$dldir~
11115 $install_prog $dir/$dlname \$dldir/$dlname~
11116 chmod a+x \$dldir/$dlname~
11117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11119 fi'
11120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11121 dlpath=$dir/\$dldll~
11122 $RM \$dlpath'
11123 shlibpath_overrides_runpath=yes
11124
11125 case $host_os in
11126 cygwin*)
11127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11129
11130 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11131 ;;
b214d478 11132 mingw* | cegcc*)
ce2cded5
L
11133 # MinGW DLLs use traditional 'lib' prefix
11134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11135 ;;
11136 pw32*)
11137 # pw32 DLLs use 'pw' prefix rather than 'lib'
11138 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11139 ;;
11140 esac
11141 ;;
11142
11143 *)
11144 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11145 ;;
11146 esac
11147 dynamic_linker='Win32 ld.exe'
11148 # FIXME: first we should search . and the directory the executable is in
11149 shlibpath_var=PATH
11150 ;;
11151
11152darwin* | rhapsody*)
11153 dynamic_linker="$host_os dyld"
11154 version_type=darwin
11155 need_lib_prefix=no
11156 need_version=no
11157 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11158 soname_spec='${libname}${release}${major}$shared_ext'
11159 shlibpath_overrides_runpath=yes
11160 shlibpath_var=DYLD_LIBRARY_PATH
11161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11162
11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11165 ;;
11166
11167dgux*)
11168 version_type=linux
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 ;;
11175
ce2cded5
L
11176freebsd* | dragonfly*)
11177 # DragonFly does not have aout. When/if they implement a new
11178 # versioning mechanism, adjust this.
11179 if test -x /usr/bin/objformat; then
11180 objformat=`/usr/bin/objformat`
11181 else
11182 case $host_os in
6d2920c8 11183 freebsd[23].*) objformat=aout ;;
ce2cded5
L
11184 *) objformat=elf ;;
11185 esac
11186 fi
11187 version_type=freebsd-$objformat
11188 case $version_type in
11189 freebsd-elf*)
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11191 need_version=no
11192 need_lib_prefix=no
11193 ;;
11194 freebsd-*)
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11196 need_version=yes
11197 ;;
11198 esac
11199 shlibpath_var=LD_LIBRARY_PATH
11200 case $host_os in
6d2920c8 11201 freebsd2.*)
ce2cded5
L
11202 shlibpath_overrides_runpath=yes
11203 ;;
11204 freebsd3.[01]* | freebsdelf3.[01]*)
11205 shlibpath_overrides_runpath=yes
11206 hardcode_into_libs=yes
11207 ;;
11208 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11209 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11210 shlibpath_overrides_runpath=no
11211 hardcode_into_libs=yes
11212 ;;
11213 *) # from 4.6 on, and DragonFly
11214 shlibpath_overrides_runpath=yes
11215 hardcode_into_libs=yes
11216 ;;
11217 esac
11218 ;;
11219
11220gnu*)
11221 version_type=linux
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 hardcode_into_libs=yes
11228 ;;
11229
3725885a
RW
11230haiku*)
11231 version_type=linux
11232 need_lib_prefix=no
11233 need_version=no
11234 dynamic_linker="$host_os runtime_loader"
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11240 hardcode_into_libs=yes
11241 ;;
11242
ce2cded5
L
11243hpux9* | hpux10* | hpux11*)
11244 # Give a soname corresponding to the major version so that dld.sl refuses to
11245 # link against other versions.
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
11249 case $host_cpu in
11250 ia64*)
11251 shrext_cmds='.so'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.so"
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 if test "X$HPUX_IA64_MODE" = X32; then
11259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11260 else
11261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11262 fi
11263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11264 ;;
11265 hppa*64*)
11266 shrext_cmds='.sl'
11267 hardcode_into_libs=yes
11268 dynamic_linker="$host_os dld.sl"
11269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11275 ;;
11276 *)
11277 shrext_cmds='.sl'
11278 dynamic_linker="$host_os dld.sl"
11279 shlibpath_var=SHLIB_PATH
11280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 ;;
11284 esac
3725885a 11285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11286 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11287 # or fails outright, so override atomically:
11288 install_override_mode=555
ce2cded5
L
11289 ;;
11290
11291interix[3-9]*)
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11301 ;;
11302
11303irix5* | irix6* | nonstopux*)
11304 case $host_os in
11305 nonstopux*) version_type=nonstopux ;;
11306 *)
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 version_type=linux
11309 else
11310 version_type=irix
11311 fi ;;
11312 esac
11313 need_lib_prefix=no
11314 need_version=no
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 case $host_os in
11318 irix5* | nonstopux*)
11319 libsuff= shlibsuff=
11320 ;;
11321 *)
11322 case $LD in # libtool.m4 will add one of these switches to LD
11323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11324 libsuff= shlibsuff= libmagic=32-bit;;
11325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11326 libsuff=32 shlibsuff=N32 libmagic=N32;;
11327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11329 *) libsuff= shlibsuff= libmagic=never-match;;
11330 esac
11331 ;;
11332 esac
11333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11334 shlibpath_overrides_runpath=no
11335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11337 hardcode_into_libs=yes
11338 ;;
11339
11340# No shared lib support for Linux oldld, aout, or coff.
11341linux*oldld* | linux*aout* | linux*coff*)
11342 dynamic_linker=no
11343 ;;
11344
11345# This must be Linux ELF.
58e24671 11346linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
39144654 11355
ce2cded5 11356 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 11357 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 11358 $as_echo_n "(cached) " >&6
39144654
RW
11359else
11360 lt_cv_shlibpath_overrides_runpath=no
11361 save_LDFLAGS=$LDFLAGS
11362 save_libdir=$libdir
11363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11366/* end confdefs.h. */
11367
d7040cdb
SE
11368int
11369main ()
11370{
ce2cded5 11371
d7040cdb
SE
11372 ;
11373 return 0;
11374}
11375_ACEOF
81ecdfbb
RW
11376if ac_fn_c_try_link "$LINENO"; then :
11377 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11378 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11379fi
d7040cdb 11380fi
81ecdfbb
RW
11381rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11383 LDFLAGS=$save_LDFLAGS
11384 libdir=$save_libdir
11385
11386fi
11387
11388 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11389
ce2cded5
L
11390 # This implies no fast_install, which is unacceptable.
11391 # Some rework will be needed to allow for fast_install
11392 # before this can be enabled.
11393 hardcode_into_libs=yes
d7040cdb 11394
ce2cded5
L
11395 # Append ld.so.conf contents to the search path
11396 if test -f /etc/ld.so.conf; then
3725885a 11397 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
11398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11399 fi
d7040cdb 11400
ce2cded5
L
11401 # We used to test for /lib/ld.so.1 and disable shared libraries on
11402 # powerpc, because MkLinux only supported shared libraries with the
11403 # GNU dynamic linker. Since this was broken with cross compilers,
11404 # most powerpc-linux boxes support dynamic linking these days and
11405 # people can always --disable-shared, the test was removed, and we
11406 # assume the GNU/Linux dynamic linker is in use.
11407 dynamic_linker='GNU/Linux ld.so'
11408 ;;
d7040cdb 11409
ce2cded5
L
11410netbsd*)
11411 version_type=sunos
11412 need_lib_prefix=no
11413 need_version=no
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 dynamic_linker='NetBSD (a.out) ld.so'
11418 else
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 dynamic_linker='NetBSD ld.elf_so'
11422 fi
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11426 ;;
d7040cdb 11427
ce2cded5
L
11428newsos6)
11429 version_type=linux
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=yes
11433 ;;
d7040cdb 11434
ce2cded5
L
11435*nto* | *qnx*)
11436 version_type=qnx
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 hardcode_into_libs=yes
11444 dynamic_linker='ldqnx.so'
11445 ;;
d7040cdb 11446
ce2cded5
L
11447openbsd*)
11448 version_type=sunos
11449 sys_lib_dlsearch_path_spec="/usr/lib"
11450 need_lib_prefix=no
11451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11452 case $host_os in
11453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11454 *) need_version=no ;;
11455 esac
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11460 case $host_os in
11461 openbsd2.[89] | openbsd2.[89].*)
11462 shlibpath_overrides_runpath=no
11463 ;;
11464 *)
11465 shlibpath_overrides_runpath=yes
11466 ;;
11467 esac
11468 else
11469 shlibpath_overrides_runpath=yes
11470 fi
11471 ;;
d7040cdb 11472
ce2cded5
L
11473os2*)
11474 libname_spec='$name'
11475 shrext_cmds=".dll"
11476 need_lib_prefix=no
11477 library_names_spec='$libname${shared_ext} $libname.a'
11478 dynamic_linker='OS/2 ld.exe'
11479 shlibpath_var=LIBPATH
11480 ;;
d7040cdb 11481
ce2cded5
L
11482osf3* | osf4* | osf5*)
11483 version_type=osf
11484 need_lib_prefix=no
11485 need_version=no
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11491 ;;
d7040cdb 11492
ce2cded5
L
11493rdos*)
11494 dynamic_linker=no
11495 ;;
d7040cdb 11496
ce2cded5
L
11497solaris*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 # ldd complains unless libraries are executable
11507 postinstall_cmds='chmod +x $lib'
11508 ;;
d7040cdb 11509
ce2cded5
L
11510sunos4*)
11511 version_type=sunos
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11516 if test "$with_gnu_ld" = yes; then
11517 need_lib_prefix=no
11518 fi
11519 need_version=yes
11520 ;;
d7040cdb 11521
ce2cded5
L
11522sysv4 | sysv4.3*)
11523 version_type=linux
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 case $host_vendor in
11528 sni)
11529 shlibpath_overrides_runpath=no
11530 need_lib_prefix=no
11531 runpath_var=LD_RUN_PATH
11532 ;;
11533 siemens)
11534 need_lib_prefix=no
11535 ;;
11536 motorola)
11537 need_lib_prefix=no
11538 need_version=no
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11541 ;;
11542 esac
11543 ;;
d7040cdb 11544
ce2cded5
L
11545sysv4*MP*)
11546 if test -d /usr/nec ;then
11547 version_type=linux
11548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11549 soname_spec='$libname${shared_ext}.$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 fi
11552 ;;
d7040cdb 11553
ce2cded5
L
11554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555 version_type=freebsd-elf
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 if test "$with_gnu_ld" = yes; then
11564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11565 else
11566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11567 case $host_os in
11568 sco3.2v5*)
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11570 ;;
11571 esac
11572 fi
11573 sys_lib_dlsearch_path_spec='/usr/lib'
11574 ;;
d7040cdb 11575
ce2cded5
L
11576tpf*)
11577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
b214d478 11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11585 ;;
d7040cdb 11586
ce2cded5
L
11587uts4*)
11588 version_type=linux
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 ;;
d7040cdb 11593
ce2cded5
L
11594*)
11595 dynamic_linker=no
11596 ;;
11597esac
81ecdfbb
RW
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11600test "$dynamic_linker" = no && can_build_shared=no
11601
11602variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603if test "$GCC" = yes; then
11604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11605fi
11606
b214d478
SE
11607if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11608 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11609fi
11610if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11611 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11612fi
11613
d7040cdb
SE
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
d7040cdb 11625
d7040cdb 11626
d7040cdb 11627
d7040cdb 11628
d7040cdb
SE
11629
11630
11631
11632
d7040cdb 11633
d7040cdb
SE
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
d7040cdb
SE
11647
11648
11649
11650
d7040cdb
SE
11651
11652
11653
11654
d7040cdb 11655
d7040cdb 11656
d7040cdb 11657
d7040cdb 11658
d7040cdb 11659
d7040cdb 11660
d7040cdb 11661
d7040cdb
SE
11662
11663
11664
11665
11666
d7040cdb 11667
d7040cdb 11668
d7040cdb 11669
d7040cdb 11670
d7040cdb 11671
d7040cdb 11672
d7040cdb
SE
11673
11674
11675
11676
11677
d7040cdb
SE
11678
11679
d7040cdb 11680
d7040cdb 11681
d7040cdb 11682
d7040cdb 11683
ce2cded5
L
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
3725885a
RW
11694
11695
11696
11697
11698
ce2cded5
L
11699
11700
11701
11702
11703
11704
81ecdfbb
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11706$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11707hardcode_action=
11708if test -n "$hardcode_libdir_flag_spec" ||
11709 test -n "$runpath_var" ||
11710 test "X$hardcode_automatic" = "Xyes" ; then
11711
11712 # We can hardcode non-existent directories.
11713 if test "$hardcode_direct" != no &&
11714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11715 # have to relink, otherwise we might link with an installed library
11716 # when we should be linking with a yet-to-be-installed one
11717 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11718 test "$hardcode_minus_L" != no; then
11719 # Linking always hardcodes the temporary library directory.
11720 hardcode_action=relink
11721 else
11722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11723 hardcode_action=immediate
d7040cdb 11724 fi
d7040cdb 11725else
ce2cded5
L
11726 # We cannot hardcode anything, or else we can only hardcode existing
11727 # directories.
11728 hardcode_action=unsupported
d7040cdb 11729fi
81ecdfbb
RW
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11731$as_echo "$hardcode_action" >&6; }
d7040cdb 11732
ce2cded5
L
11733if test "$hardcode_action" = relink ||
11734 test "$inherit_rpath" = yes; then
11735 # Fast installation is not supported
11736 enable_fast_install=no
11737elif test "$shlibpath_overrides_runpath" = yes ||
11738 test "$enable_shared" = no; then
11739 # Fast installation is not necessary
11740 enable_fast_install=needless
d7040cdb
SE
11741fi
11742
d7040cdb 11743
d7040cdb 11744
d7040cdb 11745
d7040cdb 11746
d7040cdb 11747
ce2cded5
L
11748 if test "x$enable_dlopen" != xyes; then
11749 enable_dlopen=unknown
11750 enable_dlopen_self=unknown
11751 enable_dlopen_self_static=unknown
d7040cdb 11752else
ce2cded5
L
11753 lt_cv_dlopen=no
11754 lt_cv_dlopen_libs=
d7040cdb 11755
ce2cded5
L
11756 case $host_os in
11757 beos*)
11758 lt_cv_dlopen="load_add_on"
11759 lt_cv_dlopen_libs=
11760 lt_cv_dlopen_self=yes
11761 ;;
d7040cdb 11762
b214d478 11763 mingw* | pw32* | cegcc*)
ce2cded5
L
11764 lt_cv_dlopen="LoadLibrary"
11765 lt_cv_dlopen_libs=
11766 ;;
11767
11768 cygwin*)
11769 lt_cv_dlopen="dlopen"
11770 lt_cv_dlopen_libs=
11771 ;;
11772
11773 darwin*)
11774 # if libdl is installed we need to link against it
81ecdfbb
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11776$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11777if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11778 $as_echo_n "(cached) " >&6
d7040cdb 11779else
ce2cded5
L
11780 ac_check_lib_save_LIBS=$LIBS
11781LIBS="-ldl $LIBS"
81ecdfbb 11782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11783/* end confdefs.h. */
11784
81ecdfbb
RW
11785/* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
ce2cded5
L
11788#ifdef __cplusplus
11789extern "C"
11790#endif
ce2cded5
L
11791char dlopen ();
11792int
11793main ()
11794{
81ecdfbb 11795return dlopen ();
ce2cded5
L
11796 ;
11797 return 0;
11798}
11799_ACEOF
81ecdfbb 11800if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11801 ac_cv_lib_dl_dlopen=yes
11802else
81ecdfbb 11803 ac_cv_lib_dl_dlopen=no
d7040cdb 11804fi
81ecdfbb
RW
11805rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11807LIBS=$ac_check_lib_save_LIBS
d7040cdb 11808fi
81ecdfbb
RW
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11810$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11811if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11813else
d7040cdb 11814
ce2cded5
L
11815 lt_cv_dlopen="dyld"
11816 lt_cv_dlopen_libs=
11817 lt_cv_dlopen_self=yes
11818
d7040cdb 11819fi
ce2cded5
L
11820
11821 ;;
11822
11823 *)
81ecdfbb 11824 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11825if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11826 lt_cv_dlopen="shl_load"
11827else
81ecdfbb
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11829$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11830if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11831 $as_echo_n "(cached) " >&6
ce2cded5
L
11832else
11833 ac_check_lib_save_LIBS=$LIBS
11834LIBS="-ldld $LIBS"
81ecdfbb 11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11836/* end confdefs.h. */
d7040cdb 11837
81ecdfbb
RW
11838/* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
ce2cded5
L
11841#ifdef __cplusplus
11842extern "C"
11843#endif
ce2cded5
L
11844char shl_load ();
11845int
11846main ()
11847{
81ecdfbb 11848return shl_load ();
ce2cded5
L
11849 ;
11850 return 0;
11851}
11852_ACEOF
81ecdfbb 11853if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11854 ac_cv_lib_dld_shl_load=yes
11855else
81ecdfbb 11856 ac_cv_lib_dld_shl_load=no
ce2cded5 11857fi
81ecdfbb
RW
11858rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11860LIBS=$ac_check_lib_save_LIBS
11861fi
81ecdfbb
RW
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11863$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11864if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b214d478 11865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11866else
81ecdfbb 11867 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11868if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11869 lt_cv_dlopen="dlopen"
11870else
81ecdfbb
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11873if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11874 $as_echo_n "(cached) " >&6
d7040cdb 11875else
ce2cded5
L
11876 ac_check_lib_save_LIBS=$LIBS
11877LIBS="-ldl $LIBS"
81ecdfbb 11878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11879/* end confdefs.h. */
11880
81ecdfbb
RW
11881/* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
ce2cded5
L
11884#ifdef __cplusplus
11885extern "C"
11886#endif
ce2cded5 11887char dlopen ();
d7040cdb
SE
11888int
11889main ()
11890{
81ecdfbb 11891return dlopen ();
d7040cdb
SE
11892 ;
11893 return 0;
11894}
11895_ACEOF
81ecdfbb 11896if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11897 ac_cv_lib_dl_dlopen=yes
d7040cdb 11898else
81ecdfbb 11899 ac_cv_lib_dl_dlopen=no
d7040cdb 11900fi
81ecdfbb
RW
11901rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11903LIBS=$ac_check_lib_save_LIBS
d7040cdb 11904fi
81ecdfbb
RW
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11907if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11909else
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11911$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11912if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11913 $as_echo_n "(cached) " >&6
d7040cdb 11914else
ce2cded5
L
11915 ac_check_lib_save_LIBS=$LIBS
11916LIBS="-lsvld $LIBS"
81ecdfbb 11917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11918/* end confdefs.h. */
d7040cdb 11919
81ecdfbb
RW
11920/* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
ce2cded5
L
11923#ifdef __cplusplus
11924extern "C"
11925#endif
ce2cded5 11926char dlopen ();
d7040cdb
SE
11927int
11928main ()
11929{
81ecdfbb 11930return dlopen ();
d7040cdb
SE
11931 ;
11932 return 0;
11933}
11934_ACEOF
81ecdfbb 11935if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11936 ac_cv_lib_svld_dlopen=yes
d7040cdb 11937else
81ecdfbb 11938 ac_cv_lib_svld_dlopen=no
d7040cdb 11939fi
81ecdfbb
RW
11940rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11942LIBS=$ac_check_lib_save_LIBS
d7040cdb 11943fi
81ecdfbb
RW
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11945$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11946if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11948else
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11950$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11951if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11952 $as_echo_n "(cached) " >&6
ce2cded5
L
11953else
11954 ac_check_lib_save_LIBS=$LIBS
11955LIBS="-ldld $LIBS"
81ecdfbb 11956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11957/* end confdefs.h. */
11958
81ecdfbb
RW
11959/* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
ce2cded5
L
11962#ifdef __cplusplus
11963extern "C"
11964#endif
ce2cded5 11965char dld_link ();
d7040cdb
SE
11966int
11967main ()
11968{
81ecdfbb 11969return dld_link ();
d7040cdb
SE
11970 ;
11971 return 0;
11972}
11973_ACEOF
81ecdfbb 11974if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11975 ac_cv_lib_dld_dld_link=yes
d7040cdb 11976else
81ecdfbb 11977 ac_cv_lib_dld_dld_link=no
d7040cdb 11978fi
81ecdfbb
RW
11979rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11981LIBS=$ac_check_lib_save_LIBS
11982fi
81ecdfbb
RW
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11984$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11985if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b214d478 11986 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11987fi
11988
11989
11990fi
11991
11992
11993fi
11994
11995
11996fi
11997
11998
11999fi
12000
12001
12002fi
12003
12004 ;;
12005 esac
12006
12007 if test "x$lt_cv_dlopen" != xno; then
12008 enable_dlopen=yes
12009 else
12010 enable_dlopen=no
12011 fi
12012
12013 case $lt_cv_dlopen in
12014 dlopen)
12015 save_CPPFLAGS="$CPPFLAGS"
12016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12017
12018 save_LDFLAGS="$LDFLAGS"
12019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12020
12021 save_LIBS="$LIBS"
12022 LIBS="$lt_cv_dlopen_libs $LIBS"
12023
81ecdfbb
RW
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12025$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12026if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 12027 $as_echo_n "(cached) " >&6
ce2cded5
L
12028else
12029 if test "$cross_compiling" = yes; then :
12030 lt_cv_dlopen_self=cross
12031else
12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033 lt_status=$lt_dlunknown
12034 cat > conftest.$ac_ext <<_LT_EOF
87279e3c 12035#line 12035 "configure"
ce2cded5
L
12036#include "confdefs.h"
12037
12038#if HAVE_DLFCN_H
12039#include <dlfcn.h>
12040#endif
12041
12042#include <stdio.h>
12043
12044#ifdef RTLD_GLOBAL
12045# define LT_DLGLOBAL RTLD_GLOBAL
12046#else
12047# ifdef DL_GLOBAL
12048# define LT_DLGLOBAL DL_GLOBAL
12049# else
12050# define LT_DLGLOBAL 0
12051# endif
12052#endif
12053
12054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055 find out it does not work in some platform. */
12056#ifndef LT_DLLAZY_OR_NOW
12057# ifdef RTLD_LAZY
12058# define LT_DLLAZY_OR_NOW RTLD_LAZY
12059# else
12060# ifdef DL_LAZY
12061# define LT_DLLAZY_OR_NOW DL_LAZY
12062# else
12063# ifdef RTLD_NOW
12064# define LT_DLLAZY_OR_NOW RTLD_NOW
12065# else
12066# ifdef DL_NOW
12067# define LT_DLLAZY_OR_NOW DL_NOW
12068# else
12069# define LT_DLLAZY_OR_NOW 0
12070# endif
12071# endif
12072# endif
12073# endif
12074#endif
12075
3725885a
RW
12076/* When -fvisbility=hidden is used, assume the code has been annotated
12077 correspondingly for the symbols needed. */
12078#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12079void fnord () __attribute__((visibility("default")));
12080#endif
12081
12082void fnord () { int i=42; }
ce2cded5 12083int main ()
d7040cdb 12084{
ce2cded5
L
12085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12086 int status = $lt_dlunknown;
12087
12088 if (self)
12089 {
12090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12091 else
12092 {
12093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12094 else puts (dlerror ());
12095 }
ce2cded5
L
12096 /* dlclose (self); */
12097 }
12098 else
12099 puts (dlerror ());
12100
b214d478 12101 return status;
d7040cdb 12102}
ce2cded5 12103_LT_EOF
81ecdfbb 12104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12105 (eval $ac_link) 2>&5
d7040cdb 12106 ac_status=$?
81ecdfbb
RW
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12109 (./conftest; exit; ) >&5 2>/dev/null
12110 lt_status=$?
12111 case x$lt_status in
12112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12115 esac
12116 else :
12117 # compilation failed
12118 lt_cv_dlopen_self=no
12119 fi
12120fi
12121rm -fr conftest*
12122
12123
12124fi
81ecdfbb
RW
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12126$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12127
12128 if test "x$lt_cv_dlopen_self" = xyes; then
12129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12131$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 12132if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 12133 $as_echo_n "(cached) " >&6
ce2cded5
L
12134else
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self_static=cross
12137else
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
87279e3c 12141#line 12141 "configure"
ce2cded5
L
12142#include "confdefs.h"
12143
12144#if HAVE_DLFCN_H
12145#include <dlfcn.h>
12146#endif
12147
12148#include <stdio.h>
12149
12150#ifdef RTLD_GLOBAL
12151# define LT_DLGLOBAL RTLD_GLOBAL
12152#else
12153# ifdef DL_GLOBAL
12154# define LT_DLGLOBAL DL_GLOBAL
12155# else
12156# define LT_DLGLOBAL 0
12157# endif
12158#endif
12159
12160/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162#ifndef LT_DLLAZY_OR_NOW
12163# ifdef RTLD_LAZY
12164# define LT_DLLAZY_OR_NOW RTLD_LAZY
12165# else
12166# ifdef DL_LAZY
12167# define LT_DLLAZY_OR_NOW DL_LAZY
12168# else
12169# ifdef RTLD_NOW
12170# define LT_DLLAZY_OR_NOW RTLD_NOW
12171# else
12172# ifdef DL_NOW
12173# define LT_DLLAZY_OR_NOW DL_NOW
12174# else
12175# define LT_DLLAZY_OR_NOW 0
12176# endif
12177# endif
12178# endif
12179# endif
12180#endif
12181
3cb62297
L
12182/* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185void fnord () __attribute__((visibility("default")));
12186#endif
12187
12188void fnord () { int i=42; }
12189int main ()
12190{
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12193
12194 if (self)
12195 {
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 else
12198 {
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12201 }
12202 /* dlclose (self); */
12203 }
12204 else
12205 puts (dlerror ());
12206
12207 return status;
12208}
12209_LT_EOF
12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211 (eval $ac_link) 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215 (./conftest; exit; ) >&5 2>/dev/null
12216 lt_status=$?
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12221 esac
12222 else :
12223 # compilation failed
12224 lt_cv_dlopen_self_static=no
12225 fi
12226fi
12227rm -fr conftest*
12228
12229
12230fi
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12232$as_echo "$lt_cv_dlopen_self_static" >&6; }
12233 fi
12234
12235 CPPFLAGS="$save_CPPFLAGS"
12236 LDFLAGS="$save_LDFLAGS"
12237 LIBS="$save_LIBS"
12238 ;;
12239 esac
12240
12241 case $lt_cv_dlopen_self in
12242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12243 *) enable_dlopen_self=unknown ;;
12244 esac
12245
12246 case $lt_cv_dlopen_self_static in
12247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12248 *) enable_dlopen_self_static=unknown ;;
12249 esac
12250fi
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268striplib=
12269old_striplib=
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12271$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12272if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276$as_echo "yes" >&6; }
12277else
12278# FIXME - insert some real tests, host_os isn't really good enough
12279 case $host_os in
12280 darwin*)
12281 if test -n "$STRIP" ; then
12282 striplib="$STRIP -x"
12283 old_striplib="$STRIP -S"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285$as_echo "yes" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289 fi
12290 ;;
12291 *)
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294 ;;
12295 esac
12296fi
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 # Report which library types will actually be built
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12311$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12313$as_echo "$can_build_shared" >&6; }
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12316$as_echo_n "checking whether to build shared libraries... " >&6; }
12317 test "$can_build_shared" = "no" && enable_shared=no
12318
12319 # On AIX, shared libraries and static libraries use the same namespace, and
12320 # are all built from PIC.
12321 case $host_os in
12322 aix3*)
12323 test "$enable_shared" = yes && enable_static=no
12324 if test -n "$RANLIB"; then
12325 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12326 postinstall_cmds='$RANLIB $lib'
12327 fi
12328 ;;
12329
12330 aix[4-9]*)
12331 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12332 test "$enable_shared" = yes && enable_static=no
12333 fi
12334 ;;
12335 esac
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12337$as_echo "$enable_shared" >&6; }
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12340$as_echo_n "checking whether to build static libraries... " >&6; }
12341 # Make sure either enable_shared or enable_static is yes.
12342 test "$enable_shared" = yes || enable_static=yes
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12344$as_echo "$enable_static" >&6; }
12345
12346
12347
12348
12349fi
12350ac_ext=c
12351ac_cpp='$CPP $CPPFLAGS'
12352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355
12356CC="$lt_save_CC"
12357
12358 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12359 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12360 (test "X$CXX" != "Xg++"))) ; then
12361 ac_ext=cpp
12362ac_cpp='$CXXCPP $CPPFLAGS'
12363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12367$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12368if test -z "$CXXCPP"; then
d0ac1c44 12369 if ${ac_cv_prog_CXXCPP+:} false; then :
3cb62297
L
12370 $as_echo_n "(cached) " >&6
12371else
12372 # Double quotes because CXXCPP needs to be expanded
12373 for CXXCPP in "$CXX -E" "/lib/cpp"
12374 do
12375 ac_preproc_ok=false
12376for ac_cxx_preproc_warn_flag in '' yes
12377do
12378 # Use a header file that comes with gcc, so configuring glibc
12379 # with a fresh cross-compiler works.
12380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12381 # <limits.h> exists even on freestanding compilers.
12382 # On the NeXT, cc -E runs the code through the compiler's parser,
12383 # not just through cpp. "Syntax error" is here to catch this case.
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h. */
12386#ifdef __STDC__
12387# include <limits.h>
12388#else
12389# include <assert.h>
12390#endif
12391 Syntax error
12392_ACEOF
12393if ac_fn_cxx_try_cpp "$LINENO"; then :
12394
12395else
12396 # Broken: fails on valid input.
12397continue
12398fi
d0ac1c44 12399rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12400
12401 # OK, works on sane cases. Now check whether nonexistent headers
12402 # can be detected and how.
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404/* end confdefs.h. */
12405#include <ac_nonexistent.h>
12406_ACEOF
12407if ac_fn_cxx_try_cpp "$LINENO"; then :
12408 # Broken: success on invalid input.
12409continue
12410else
12411 # Passes both tests.
12412ac_preproc_ok=:
12413break
12414fi
d0ac1c44 12415rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12416
12417done
12418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12419rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12420if $ac_preproc_ok; then :
12421 break
12422fi
12423
12424 done
12425 ac_cv_prog_CXXCPP=$CXXCPP
12426
12427fi
12428 CXXCPP=$ac_cv_prog_CXXCPP
12429else
12430 ac_cv_prog_CXXCPP=$CXXCPP
12431fi
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12433$as_echo "$CXXCPP" >&6; }
12434ac_preproc_ok=false
12435for ac_cxx_preproc_warn_flag in '' yes
12436do
12437 # Use a header file that comes with gcc, so configuring glibc
12438 # with a fresh cross-compiler works.
12439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12440 # <limits.h> exists even on freestanding compilers.
12441 # On the NeXT, cc -E runs the code through the compiler's parser,
12442 # not just through cpp. "Syntax error" is here to catch this case.
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444/* end confdefs.h. */
12445#ifdef __STDC__
12446# include <limits.h>
12447#else
12448# include <assert.h>
12449#endif
12450 Syntax error
12451_ACEOF
12452if ac_fn_cxx_try_cpp "$LINENO"; then :
12453
12454else
12455 # Broken: fails on valid input.
12456continue
12457fi
d0ac1c44 12458rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12459
12460 # OK, works on sane cases. Now check whether nonexistent headers
12461 # can be detected and how.
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463/* end confdefs.h. */
12464#include <ac_nonexistent.h>
12465_ACEOF
12466if ac_fn_cxx_try_cpp "$LINENO"; then :
12467 # Broken: success on invalid input.
12468continue
12469else
12470 # Passes both tests.
12471ac_preproc_ok=:
12472break
12473fi
d0ac1c44 12474rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12475
12476done
12477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12478rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12479if $ac_preproc_ok; then :
12480
12481else
12482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12484as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12485See \`config.log' for more details" "$LINENO" 5; }
3cb62297
L
12486fi
12487
12488ac_ext=c
12489ac_cpp='$CPP $CPPFLAGS'
12490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12492ac_compiler_gnu=$ac_cv_c_compiler_gnu
12493
12494else
12495 _lt_caught_CXX_error=yes
12496fi
12497
12498ac_ext=cpp
12499ac_cpp='$CXXCPP $CPPFLAGS'
12500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12503
12504archive_cmds_need_lc_CXX=no
12505allow_undefined_flag_CXX=
12506always_export_symbols_CXX=no
12507archive_expsym_cmds_CXX=
12508compiler_needs_object_CXX=no
12509export_dynamic_flag_spec_CXX=
12510hardcode_direct_CXX=no
12511hardcode_direct_absolute_CXX=no
12512hardcode_libdir_flag_spec_CXX=
12513hardcode_libdir_flag_spec_ld_CXX=
12514hardcode_libdir_separator_CXX=
12515hardcode_minus_L_CXX=no
12516hardcode_shlibpath_var_CXX=unsupported
12517hardcode_automatic_CXX=no
12518inherit_rpath_CXX=no
12519module_cmds_CXX=
12520module_expsym_cmds_CXX=
12521link_all_deplibs_CXX=unknown
12522old_archive_cmds_CXX=$old_archive_cmds
12523reload_flag_CXX=$reload_flag
12524reload_cmds_CXX=$reload_cmds
12525no_undefined_flag_CXX=
12526whole_archive_flag_spec_CXX=
12527enable_shared_with_static_runtimes_CXX=no
12528
12529# Source file extension for C++ test sources.
12530ac_ext=cpp
12531
12532# Object file extension for compiled C++ test sources.
12533objext=o
12534objext_CXX=$objext
12535
12536# No sense in running all these tests if we already determined that
12537# the CXX compiler isn't working. Some variables (like enable_shared)
12538# are currently assumed to apply to all compilers on this platform,
12539# and will be corrupted by setting them based on a non-working compiler.
12540if test "$_lt_caught_CXX_error" != yes; then
12541 # Code to be used in simple compile tests
12542 lt_simple_compile_test_code="int some_variable = 0;"
12543
12544 # Code to be used in simple link tests
12545 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12546
12547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12548
12549
12550
12551
12552
12553
12554# If no C compiler was specified, use CC.
12555LTCC=${LTCC-"$CC"}
12556
12557# If no C compiler flags were specified, use CFLAGS.
12558LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12559
12560# Allow CC to be a program name with arguments.
12561compiler=$CC
12562
12563
12564 # save warnings/boilerplate of simple test code
12565 ac_outfile=conftest.$ac_objext
12566echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12567eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12568_lt_compiler_boilerplate=`cat conftest.err`
12569$RM conftest*
12570
12571 ac_outfile=conftest.$ac_objext
12572echo "$lt_simple_link_test_code" >conftest.$ac_ext
12573eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12574_lt_linker_boilerplate=`cat conftest.err`
12575$RM -r conftest*
12576
12577
12578 # Allow CC to be a program name with arguments.
12579 lt_save_CC=$CC
12580 lt_save_LD=$LD
12581 lt_save_GCC=$GCC
12582 GCC=$GXX
12583 lt_save_with_gnu_ld=$with_gnu_ld
12584 lt_save_path_LD=$lt_cv_path_LD
12585 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12586 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12587 else
12588 $as_unset lt_cv_prog_gnu_ld
12589 fi
12590 if test -n "${lt_cv_path_LDCXX+set}"; then
12591 lt_cv_path_LD=$lt_cv_path_LDCXX
12592 else
12593 $as_unset lt_cv_path_LD
12594 fi
12595 test -z "${LDCXX+set}" || LD=$LDCXX
12596 CC=${CXX-"c++"}
12597 compiler=$CC
12598 compiler_CXX=$CC
12599 for cc_temp in $compiler""; do
12600 case $cc_temp in
12601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12603 \-*) ;;
12604 *) break;;
12605 esac
12606done
12607cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12608
12609
12610 if test -n "$compiler"; then
12611 # We don't want -fno-exception when compiling C++ code, so set the
12612 # no_builtin_flag separately
12613 if test "$GXX" = yes; then
12614 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12615 else
12616 lt_prog_compiler_no_builtin_flag_CXX=
12617 fi
12618
12619 if test "$GXX" = yes; then
12620 # Set up default GNU C++ configuration
12621
12622
12623
12624# Check whether --with-gnu-ld was given.
12625if test "${with_gnu_ld+set}" = set; then :
12626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12627else
12628 with_gnu_ld=no
12629fi
12630
12631ac_prog=ld
12632if test "$GCC" = yes; then
12633 # Check if gcc -print-prog-name=ld gives a path.
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12635$as_echo_n "checking for ld used by $CC... " >&6; }
12636 case $host in
12637 *-*-mingw*)
12638 # gcc leaves a trailing carriage return which upsets mingw
12639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12640 *)
12641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12642 esac
12643 case $ac_prog in
12644 # Accept absolute paths.
12645 [\\/]* | ?:[\\/]*)
12646 re_direlt='/[^/][^/]*/\.\./'
12647 # Canonicalize the pathname of ld
12648 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12649 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12650 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12651 done
12652 test -z "$LD" && LD="$ac_prog"
12653 ;;
12654 "")
12655 # If it fails, then pretend we aren't using GCC.
12656 ac_prog=ld
12657 ;;
12658 *)
12659 # If it is relative, then search for the first ld in PATH.
12660 with_gnu_ld=unknown
12661 ;;
12662 esac
12663elif test "$with_gnu_ld" = yes; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12665$as_echo_n "checking for GNU ld... " >&6; }
12666else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12668$as_echo_n "checking for non-GNU ld... " >&6; }
12669fi
d0ac1c44 12670if ${lt_cv_path_LD+:} false; then :
3cb62297
L
12671 $as_echo_n "(cached) " >&6
12672else
12673 if test -z "$LD"; then
12674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12675 for ac_dir in $PATH; do
12676 IFS="$lt_save_ifs"
12677 test -z "$ac_dir" && ac_dir=.
12678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12679 lt_cv_path_LD="$ac_dir/$ac_prog"
12680 # Check to see if the program is GNU ld. I'd rather use --version,
12681 # but apparently some variants of GNU ld only accept -v.
12682 # Break only if it was the GNU/non-GNU ld that we prefer.
12683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12684 *GNU* | *'with BFD'*)
12685 test "$with_gnu_ld" != no && break
12686 ;;
12687 *)
12688 test "$with_gnu_ld" != yes && break
12689 ;;
12690 esac
12691 fi
12692 done
12693 IFS="$lt_save_ifs"
12694else
12695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12696fi
12697fi
12698
12699LD="$lt_cv_path_LD"
12700if test -n "$LD"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12702$as_echo "$LD" >&6; }
12703else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706fi
d0ac1c44 12707test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3cb62297
L
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12709$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 12710if ${lt_cv_prog_gnu_ld+:} false; then :
3cb62297
L
12711 $as_echo_n "(cached) " >&6
12712else
12713 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12714case `$LD -v 2>&1 </dev/null` in
12715*GNU* | *'with BFD'*)
12716 lt_cv_prog_gnu_ld=yes
12717 ;;
12718*)
12719 lt_cv_prog_gnu_ld=no
12720 ;;
12721esac
12722fi
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12724$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12725with_gnu_ld=$lt_cv_prog_gnu_ld
12726
12727
12728
12729
12730
12731
12732
12733 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12734 # archiving commands below assume that GNU ld is being used.
12735 if test "$with_gnu_ld" = yes; then
6e733cce
L
12736 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 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
12738
12739 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12741
12742 # If archive_cmds runs LD, not CC, wlarc should be empty
12743 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12744 # investigate it a little bit more. (MM)
12745 wlarc='${wl}'
12746
12747 # ancient GNU ld didn't support --whole-archive et. al.
12748 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12749 $GREP 'no-whole-archive' > /dev/null; then
12750 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12751 else
12752 whole_archive_flag_spec_CXX=
12753 fi
12754 else
12755 with_gnu_ld=no
12756 wlarc=
12757
12758 # A generic and very simple default shared library creation
12759 # command for GNU C++ for the case where it uses the native
12760 # linker, instead of GNU ld. If possible, this setting should
12761 # overridden to take advantage of the native linker features on
12762 # the platform it is being used on.
12763 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12764 fi
12765
12766 # Commands to make compiler produce verbose output that lists
12767 # what "hidden" libraries, object files and flags are used when
12768 # linking a shared library.
12769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12770
12771 else
12772 GXX=no
12773 with_gnu_ld=no
12774 wlarc=
12775 fi
12776
12777 # PORTME: fill in a description of your system's C++ link characteristics
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12779$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12780 ld_shlibs_CXX=yes
12781 case $host_os in
12782 aix3*)
12783 # FIXME: insert proper C++ library support
12784 ld_shlibs_CXX=no
12785 ;;
12786 aix[4-9]*)
12787 if test "$host_cpu" = ia64; then
12788 # On IA64, the linker does run time linking by default, so we don't
12789 # have to do anything special.
12790 aix_use_runtimelinking=no
12791 exp_sym_flag='-Bexport'
12792 no_entry_flag=""
12793 else
12794 aix_use_runtimelinking=no
12795
12796 # Test if we are trying to use run time linking or normal
12797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12798 # need to do runtime linking.
12799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12800 for ld_flag in $LDFLAGS; do
12801 case $ld_flag in
12802 *-brtl*)
12803 aix_use_runtimelinking=yes
12804 break
12805 ;;
12806 esac
12807 done
12808 ;;
12809 esac
12810
12811 exp_sym_flag='-bexport'
12812 no_entry_flag='-bnoentry'
12813 fi
12814
12815 # When large executables or shared objects are built, AIX ld can
12816 # have problems creating the table of contents. If linking a library
12817 # or program results in "error TOC overflow" add -mminimal-toc to
12818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12820
12821 archive_cmds_CXX=''
12822 hardcode_direct_CXX=yes
12823 hardcode_direct_absolute_CXX=yes
12824 hardcode_libdir_separator_CXX=':'
12825 link_all_deplibs_CXX=yes
12826 file_list_spec_CXX='${wl}-f,'
12827
12828 if test "$GXX" = yes; then
12829 case $host_os in aix4.[012]|aix4.[012].*)
12830 # We only want to do this on AIX 4.2 and lower, the check
12831 # below for broken collect2 doesn't work under 4.3+
12832 collect2name=`${CC} -print-prog-name=collect2`
12833 if test -f "$collect2name" &&
12834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12835 then
12836 # We have reworked collect2
12837 :
12838 else
12839 # We have old collect2
12840 hardcode_direct_CXX=unsupported
12841 # It fails to find uninstalled libraries when the uninstalled
12842 # path is not listed in the libpath. Setting hardcode_minus_L
12843 # to unsupported forces relinking
12844 hardcode_minus_L_CXX=yes
12845 hardcode_libdir_flag_spec_CXX='-L$libdir'
12846 hardcode_libdir_separator_CXX=
12847 fi
12848 esac
12849 shared_flag='-shared'
12850 if test "$aix_use_runtimelinking" = yes; then
12851 shared_flag="$shared_flag "'${wl}-G'
12852 fi
12853 else
12854 # not using gcc
12855 if test "$host_cpu" = ia64; then
12856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12857 # chokes on -Wl,-G. The following line is correct:
12858 shared_flag='-G'
12859 else
12860 if test "$aix_use_runtimelinking" = yes; then
12861 shared_flag='${wl}-G'
12862 else
12863 shared_flag='${wl}-bM:SRE'
12864 fi
12865 fi
12866 fi
12867
12868 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12869 # It seems that -bexpall does not export symbols beginning with
12870 # underscore (_), so it is better to generate a list of symbols to
12871 # export.
12872 always_export_symbols_CXX=yes
12873 if test "$aix_use_runtimelinking" = yes; then
12874 # Warning - without using the other runtime loading flags (-brtl),
12875 # -berok will link without error, but may produce a broken library.
12876 allow_undefined_flag_CXX='-berok'
12877 # Determine the default libpath from the value encoded in an empty
12878 # executable.
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880/* end confdefs.h. */
12881
12882int
12883main ()
12884{
12885
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890if ac_fn_cxx_try_link "$LINENO"; then :
12891
12892lt_aix_libpath_sed='
12893 /Import File Strings/,/^$/ {
12894 /^0/ {
12895 s/^0 *\(.*\)$/\1/
12896 p
12897 }
12898 }'
12899aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12900# Check for a 64-bit object if we didn't find anything.
12901if test -z "$aix_libpath"; then
12902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12903fi
12904fi
12905rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12908
12909 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12910
12911 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"
12912 else
12913 if test "$host_cpu" = ia64; then
12914 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12915 allow_undefined_flag_CXX="-z nodefs"
12916 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"
12917 else
12918 # Determine the default libpath from the value encoded in an
12919 # empty executable.
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921/* end confdefs.h. */
12922
12923int
12924main ()
12925{
12926
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931if ac_fn_cxx_try_link "$LINENO"; then :
12932
12933lt_aix_libpath_sed='
12934 /Import File Strings/,/^$/ {
12935 /^0/ {
12936 s/^0 *\(.*\)$/\1/
12937 p
12938 }
12939 }'
12940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12941# Check for a 64-bit object if we didn't find anything.
12942if test -z "$aix_libpath"; then
12943 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12944fi
12945fi
12946rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12949
12950 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12951 # Warning - without using the other run time loading flags,
12952 # -berok will link without error, but may produce a broken library.
12953 no_undefined_flag_CXX=' ${wl}-bernotok'
12954 allow_undefined_flag_CXX=' ${wl}-berok'
12955 if test "$with_gnu_ld" = yes; then
12956 # We only use this code for GNU lds that support --whole-archive.
12957 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12958 else
12959 # Exported symbols can be pulled into shared objects from archives
12960 whole_archive_flag_spec_CXX='$convenience'
12961 fi
12962 archive_cmds_need_lc_CXX=yes
12963 # This is similar to how AIX traditionally builds its shared
12964 # libraries.
12965 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'
12966 fi
12967 fi
12968 ;;
12969
12970 beos*)
12971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12972 allow_undefined_flag_CXX=unsupported
12973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12974 # support --undefined. This deserves some investigation. FIXME
12975 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 else
12977 ld_shlibs_CXX=no
12978 fi
12979 ;;
12980
12981 chorus*)
12982 case $cc_basename in
12983 *)
12984 # FIXME: insert proper C++ library support
12985 ld_shlibs_CXX=no
12986 ;;
12987 esac
12988 ;;
12989
12990 cygwin* | mingw* | pw32* | cegcc*)
12991 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12992 # as there is no search path for DLLs.
12993 hardcode_libdir_flag_spec_CXX='-L$libdir'
12994 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12995 allow_undefined_flag_CXX=unsupported
12996 always_export_symbols_CXX=no
12997 enable_shared_with_static_runtimes_CXX=yes
12998
12999 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13000 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'
13001 # If the export-symbols file already is a .def file (1st line
13002 # is EXPORTS), use it as is; otherwise, prepend...
13003 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13004 cp $export_symbols $output_objdir/$soname.def;
13005 else
13006 echo EXPORTS > $output_objdir/$soname.def;
13007 cat $export_symbols >> $output_objdir/$soname.def;
13008 fi~
13009 $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'
13010 else
13011 ld_shlibs_CXX=no
13012 fi
13013 ;;
13014 darwin* | rhapsody*)
13015
13016
13017 archive_cmds_need_lc_CXX=no
13018 hardcode_direct_CXX=no
13019 hardcode_automatic_CXX=yes
13020 hardcode_shlibpath_var_CXX=unsupported
13021 if test "$lt_cv_ld_force_load" = "yes"; then
13022 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\"`'
13023 else
13024 whole_archive_flag_spec_CXX=''
13025 fi
13026 link_all_deplibs_CXX=yes
13027 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13028 case $cc_basename in
13029 ifort*) _lt_dar_can_shared=yes ;;
13030 *) _lt_dar_can_shared=$GCC ;;
13031 esac
13032 if test "$_lt_dar_can_shared" = "yes"; then
13033 output_verbose_link_cmd=func_echo_all
13034 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}"
13035 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13036 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}"
13037 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}"
13038 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13039 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}"
13040 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}"
13041 fi
13042
13043 else
13044 ld_shlibs_CXX=no
13045 fi
13046
13047 ;;
13048
13049 dgux*)
13050 case $cc_basename in
13051 ec++*)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13054 ;;
13055 ghcx*)
13056 # Green Hills C++ Compiler
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060 *)
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13063 ;;
13064 esac
13065 ;;
13066
6d2920c8 13067 freebsd2.*)
3cb62297
L
13068 # C++ shared libraries reported to be fairly broken before
13069 # switch to ELF
13070 ld_shlibs_CXX=no
13071 ;;
13072
13073 freebsd-elf*)
13074 archive_cmds_need_lc_CXX=no
13075 ;;
13076
13077 freebsd* | dragonfly*)
13078 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13079 # conventions
13080 ld_shlibs_CXX=yes
13081 ;;
13082
13083 gnu*)
13084 ;;
13085
13086 haiku*)
13087 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 link_all_deplibs_CXX=yes
13089 ;;
13090
13091 hpux9*)
13092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13093 hardcode_libdir_separator_CXX=:
13094 export_dynamic_flag_spec_CXX='${wl}-E'
13095 hardcode_direct_CXX=yes
13096 hardcode_minus_L_CXX=yes # Not in the search PATH,
13097 # but as the default
13098 # location of the library.
13099
13100 case $cc_basename in
13101 CC*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13104 ;;
13105 aCC*)
13106 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'
13107 # Commands to make compiler produce verbose output that lists
13108 # what "hidden" libraries, object files and flags are used when
13109 # linking a shared library.
13110 #
13111 # There doesn't appear to be a way to prevent this compiler from
13112 # explicitly linking system object files so we need to strip them
13113 # from the output so that they don't get included in the library
13114 # dependencies.
13115 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"'
13116 ;;
13117 *)
13118 if test "$GXX" = yes; then
13119 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'
13120 else
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13123 fi
13124 ;;
13125 esac
13126 ;;
13127
13128 hpux10*|hpux11*)
13129 if test $with_gnu_ld = no; then
13130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13131 hardcode_libdir_separator_CXX=:
13132
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13135 ;;
13136 *)
13137 export_dynamic_flag_spec_CXX='${wl}-E'
13138 ;;
13139 esac
13140 fi
13141 case $host_cpu in
13142 hppa*64*|ia64*)
13143 hardcode_direct_CXX=no
13144 hardcode_shlibpath_var_CXX=no
13145 ;;
13146 *)
13147 hardcode_direct_CXX=yes
13148 hardcode_direct_absolute_CXX=yes
13149 hardcode_minus_L_CXX=yes # Not in the search PATH,
13150 # but as the default
13151 # location of the library.
13152 ;;
13153 esac
13154
13155 case $cc_basename in
13156 CC*)
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 ;;
13160 aCC*)
13161 case $host_cpu in
13162 hppa*64*)
13163 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164 ;;
13165 ia64*)
13166 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 ;;
13168 *)
13169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13170 ;;
13171 esac
13172 # Commands to make compiler produce verbose output that lists
13173 # what "hidden" libraries, object files and flags are used when
13174 # linking a shared library.
13175 #
13176 # There doesn't appear to be a way to prevent this compiler from
13177 # explicitly linking system object files so we need to strip them
13178 # from the output so that they don't get included in the library
13179 # dependencies.
13180 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"'
13181 ;;
13182 *)
13183 if test "$GXX" = yes; then
13184 if test $with_gnu_ld = no; then
13185 case $host_cpu in
13186 hppa*64*)
13187 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188 ;;
13189 ia64*)
13190 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191 ;;
13192 *)
13193 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'
13194 ;;
13195 esac
13196 fi
13197 else
13198 # FIXME: insert proper C++ library support
13199 ld_shlibs_CXX=no
13200 fi
13201 ;;
13202 esac
13203 ;;
13204
13205 interix[3-9]*)
13206 hardcode_direct_CXX=no
13207 hardcode_shlibpath_var_CXX=no
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209 export_dynamic_flag_spec_CXX='${wl}-E'
13210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13211 # Instead, shared libraries are loaded at an image base (0x10000000 by
13212 # default) and relocated if they conflict, which is a slow very memory
13213 # consuming and fragmenting process. To avoid this, we pick a random,
13214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13216 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'
13217 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'
13218 ;;
13219 irix5* | irix6*)
13220 case $cc_basename in
13221 CC*)
13222 # SGI C++
13223 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'
13224
13225 # Archives containing C++ object files must be created using
13226 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13227 # necessary to make sure instantiated templates are included
13228 # in the archive.
13229 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13230 ;;
13231 *)
13232 if test "$GXX" = yes; then
13233 if test "$with_gnu_ld" = no; then
13234 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'
13235 else
13236 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'
13237 fi
13238 fi
13239 link_all_deplibs_CXX=yes
13240 ;;
13241 esac
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243 hardcode_libdir_separator_CXX=:
13244 inherit_rpath_CXX=yes
13245 ;;
13246
13247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13248 case $cc_basename in
13249 KCC*)
13250 # Kuck and Associates, Inc. (KAI) C++ Compiler
13251
13252 # KCC will only create a shared library if the output file
13253 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13254 # to its proper name (with version) after linking.
13255 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'
13256 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'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13260 #
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13264 # dependencies.
13265 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"'
13266
13267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13269
13270 # Archives containing C++ object files must be created using
13271 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13272 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13273 ;;
13274 icpc* | ecpc* )
13275 # Intel C++
13276 with_gnu_ld=yes
13277 # version 8.0 and above of icpc choke on multiply defined symbols
13278 # if we add $predep_objects and $postdep_objects, however 7.1 and
13279 # earlier do not add the objects themselves.
13280 case `$CC -V 2>&1` in
13281 *"Version 7."*)
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283 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'
13284 ;;
13285 *) # Version 8.0 or newer
13286 tmp_idyn=
13287 case $host_cpu in
13288 ia64*) tmp_idyn=' -i_dynamic';;
13289 esac
13290 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 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'
13292 ;;
13293 esac
13294 archive_cmds_need_lc_CXX=no
13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13297 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13298 ;;
13299 pgCC* | pgcpp*)
13300 # Portland Group C++ compiler
13301 case `$CC -V` in
13302 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13303 prelink_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13306 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13307 old_archive_cmds_CXX='tpldir=Template.dir~
13308 rm -rf $tpldir~
13309 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13310 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13311 $RANLIB $oldlib'
13312 archive_cmds_CXX='tpldir=Template.dir~
13313 rm -rf $tpldir~
13314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13316 archive_expsym_cmds_CXX='tpldir=Template.dir~
13317 rm -rf $tpldir~
13318 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13319 $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'
13320 ;;
13321 *) # Version 6 and above use weak symbols
13322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323 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'
13324 ;;
13325 esac
13326
13327 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329 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'
13330 ;;
13331 cxx*)
13332 # Compaq C++
13333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 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'
13335
13336 runpath_var=LD_RUN_PATH
13337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13338 hardcode_libdir_separator_CXX=:
13339
13340 # Commands to make compiler produce verbose output that lists
13341 # what "hidden" libraries, object files and flags are used when
13342 # linking a shared library.
13343 #
13344 # There doesn't appear to be a way to prevent this compiler from
13345 # explicitly linking system object files so we need to strip them
13346 # from the output so that they don't get included in the library
13347 # dependencies.
13348 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'
13349 ;;
13350 xl* | mpixl* | bgxl*)
13351 # IBM XL 8.0 on PPC, with GNU ld
13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13354 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 if test "x$supports_anon_versioning" = xyes; then
13356 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13358 echo "local: *; };" >> $output_objdir/$libname.ver~
13359 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13360 fi
13361 ;;
13362 *)
13363 case `$CC -V 2>&1 | sed 5q` in
13364 *Sun\ C*)
13365 # Sun C++ 5.9
13366 no_undefined_flag_CXX=' -zdefs'
13367 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368 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'
13369 hardcode_libdir_flag_spec_CXX='-R$libdir'
13370 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'
13371 compiler_needs_object_CXX=yes
13372
13373 # Not sure whether something based on
13374 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13375 # would be better.
13376 output_verbose_link_cmd='func_echo_all'
13377
13378 # Archives containing C++ object files must be created using
13379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13381 # in the archive.
13382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13383 ;;
13384 esac
13385 ;;
13386 esac
13387 ;;
13388
13389 lynxos*)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13392 ;;
13393
13394 m88k*)
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13397 ;;
13398
13399 mvs*)
13400 case $cc_basename in
13401 cxx*)
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13404 ;;
13405 *)
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13408 ;;
13409 esac
13410 ;;
13411
13412 netbsd*)
13413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13414 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13415 wlarc=
13416 hardcode_libdir_flag_spec_CXX='-R$libdir'
13417 hardcode_direct_CXX=yes
13418 hardcode_shlibpath_var_CXX=no
13419 fi
13420 # Workaround some broken pre-1.5 toolchains
13421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13422 ;;
13423
13424 *nto* | *qnx*)
13425 ld_shlibs_CXX=yes
13426 ;;
13427
13428 openbsd2*)
13429 # C++ shared libraries are fairly broken
13430 ld_shlibs_CXX=no
13431 ;;
13432
13433 openbsd*)
13434 if test -f /usr/libexec/ld.so; then
13435 hardcode_direct_CXX=yes
13436 hardcode_shlibpath_var_CXX=no
13437 hardcode_direct_absolute_CXX=yes
13438 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13441 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13442 export_dynamic_flag_spec_CXX='${wl}-E'
13443 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13444 fi
13445 output_verbose_link_cmd=func_echo_all
13446 else
13447 ld_shlibs_CXX=no
13448 fi
13449 ;;
13450
13451 osf3* | osf4* | osf5*)
13452 case $cc_basename in
13453 KCC*)
13454 # Kuck and Associates, Inc. (KAI) C++ Compiler
13455
13456 # KCC will only create a shared library if the output file
13457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13458 # to its proper name (with version) after linking.
13459 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'
13460
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462 hardcode_libdir_separator_CXX=:
13463
13464 # Archives containing C++ object files must be created using
13465 # the KAI C++ compiler.
13466 case $host in
13467 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13468 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13469 esac
13470 ;;
13471 RCC*)
13472 # Rational C++ 2.4.1
13473 # FIXME: insert proper C++ library support
13474 ld_shlibs_CXX=no
13475 ;;
13476 cxx*)
13477 case $host in
13478 osf3*)
13479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480 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'
13481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13482 ;;
13483 *)
13484 allow_undefined_flag_CXX=' -expect_unresolved \*'
13485 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'
13486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13487 echo "-hidden">> $lib.exp~
13488 $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~
13489 $RM $lib.exp'
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491 ;;
13492 esac
13493
13494 hardcode_libdir_separator_CXX=:
13495
13496 # Commands to make compiler produce verbose output that lists
13497 # what "hidden" libraries, object files and flags are used when
13498 # linking a shared library.
13499 #
13500 # There doesn't appear to be a way to prevent this compiler from
13501 # explicitly linking system object files so we need to strip them
13502 # from the output so that they don't get included in the library
13503 # dependencies.
13504 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"'
13505 ;;
13506 *)
13507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509 case $host in
13510 osf3*)
13511 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'
13512 ;;
13513 *)
13514 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'
13515 ;;
13516 esac
13517
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_CXX=:
13520
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13525
13526 else
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13529 fi
13530 ;;
13531 esac
13532 ;;
13533
13534 psos*)
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13537 ;;
13538
13539 sunos4*)
13540 case $cc_basename in
13541 CC*)
13542 # Sun C++ 4.x
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13545 ;;
13546 lcc*)
13547 # Lucid
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551 *)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555 esac
13556 ;;
13557
13558 solaris*)
13559 case $cc_basename in
13560 CC*)
13561 # Sun C++ 4.2, 5.x and Centerline C++
13562 archive_cmds_need_lc_CXX=yes
13563 no_undefined_flag_CXX=' -zdefs'
13564 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13565 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566 $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'
13567
13568 hardcode_libdir_flag_spec_CXX='-R$libdir'
13569 hardcode_shlibpath_var_CXX=no
13570 case $host_os in
13571 solaris2.[0-5] | solaris2.[0-5].*) ;;
13572 *)
13573 # The compiler driver will combine and reorder linker options,
13574 # but understands `-z linker_flag'.
13575 # Supported since Solaris 2.6 (maybe 2.5.1?)
13576 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13577 ;;
13578 esac
13579 link_all_deplibs_CXX=yes
13580
13581 output_verbose_link_cmd='func_echo_all'
13582
13583 # Archives containing C++ object files must be created using
13584 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13585 # necessary to make sure instantiated templates are included
13586 # in the archive.
13587 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13588 ;;
13589 gcx*)
13590 # Green Hills C++ Compiler
13591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592
13593 # The C++ compiler must be used to create the archive.
13594 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13595 ;;
13596 *)
13597 # GNU C++ compiler with Solaris linker
13598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13599 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13600 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13601 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13604
13605 # Commands to make compiler produce verbose output that lists
13606 # what "hidden" libraries, object files and flags are used when
13607 # linking a shared library.
13608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13609 else
13610 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13611 # platform.
13612 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13613 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13615
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13620 fi
13621
13622 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623 case $host_os in
13624 solaris2.[0-5] | solaris2.[0-5].*) ;;
13625 *)
13626 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13627 ;;
13628 esac
13629 fi
13630 ;;
13631 esac
13632 ;;
13633
13634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635 no_undefined_flag_CXX='${wl}-z,text'
13636 archive_cmds_need_lc_CXX=no
13637 hardcode_shlibpath_var_CXX=no
13638 runpath_var='LD_RUN_PATH'
13639
13640 case $cc_basename in
13641 CC*)
13642 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 ;;
13645 *)
13646 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 ;;
13649 esac
13650 ;;
13651
13652 sysv5* | sco3.2v5* | sco5v6*)
13653 # Note: We can NOT use -z defs as we might desire, because we do not
13654 # link with -lc, and that would cause any symbols used from libc to
13655 # always be unresolved, which means just about no library would
13656 # ever link correctly. If we're not using GNU ld we use -z text
13657 # though, which does catch some bad symbols but isn't as heavy-handed
13658 # as -z defs.
13659 no_undefined_flag_CXX='${wl}-z,text'
13660 allow_undefined_flag_CXX='${wl}-z,nodefs'
13661 archive_cmds_need_lc_CXX=no
13662 hardcode_shlibpath_var_CXX=no
13663 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13664 hardcode_libdir_separator_CXX=':'
13665 link_all_deplibs_CXX=yes
13666 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13667 runpath_var='LD_RUN_PATH'
13668
13669 case $cc_basename in
13670 CC*)
13671 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13674 '"$old_archive_cmds_CXX"
13675 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13676 '"$reload_cmds_CXX"
13677 ;;
13678 *)
13679 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 ;;
13682 esac
13683 ;;
13684
13685 tandem*)
13686 case $cc_basename in
13687 NCC*)
13688 # NonStop-UX NCC 3.20
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13691 ;;
13692 *)
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13695 ;;
13696 esac
13697 ;;
13698
13699 vxworks*)
13700 # FIXME: insert proper C++ library support
13701 ld_shlibs_CXX=no
13702 ;;
13703
13704 *)
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 esac
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13711$as_echo "$ld_shlibs_CXX" >&6; }
13712 test "$ld_shlibs_CXX" = no && can_build_shared=no
13713
13714 GCC_CXX="$GXX"
13715 LD_CXX="$LD"
13716
13717 ## CAVEAT EMPTOR:
13718 ## There is no encapsulation within the following macros, do not change
13719 ## the running order or otherwise move them around unless you know exactly
13720 ## what you are doing...
13721 # Dependencies to place before and after the object being linked:
13722predep_objects_CXX=
13723postdep_objects_CXX=
13724predeps_CXX=
13725postdeps_CXX=
13726compiler_lib_search_path_CXX=
13727
13728cat > conftest.$ac_ext <<_LT_EOF
13729class Foo
13730{
13731public:
13732 Foo (void) { a = 0; }
13733private:
13734 int a;
13735};
13736_LT_EOF
13737
13738if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13739 (eval $ac_compile) 2>&5
13740 ac_status=$?
13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13742 test $ac_status = 0; }; then
13743 # Parse the compiler output and extract the necessary
13744 # objects, libraries and library flags.
13745
13746 # Sentinel used to keep track of whether or not we are before
13747 # the conftest object file.
13748 pre_test_object_deps_done=no
13749
13750 for p in `eval "$output_verbose_link_cmd"`; do
13751 case $p in
13752
13753 -L* | -R* | -l*)
13754 # Some compilers place space between "-{L,R}" and the path.
13755 # Remove the space.
13756 if test $p = "-L" ||
13757 test $p = "-R"; then
13758 prev=$p
13759 continue
13760 else
13761 prev=
13762 fi
13763
13764 if test "$pre_test_object_deps_done" = no; then
13765 case $p in
13766 -L* | -R*)
13767 # Internal compiler library paths should come after those
13768 # provided the user. The postdeps already come after the
13769 # user supplied libs so there is no need to process them.
13770 if test -z "$compiler_lib_search_path_CXX"; then
13771 compiler_lib_search_path_CXX="${prev}${p}"
13772 else
13773 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13774 fi
13775 ;;
13776 # The "-l" case would never come before the object being
13777 # linked, so don't bother handling this case.
13778 esac
13779 else
13780 if test -z "$postdeps_CXX"; then
13781 postdeps_CXX="${prev}${p}"
13782 else
13783 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13784 fi
13785 fi
13786 ;;
13787
13788 *.$objext)
13789 # This assumes that the test object file only shows up
13790 # once in the compiler output.
13791 if test "$p" = "conftest.$objext"; then
13792 pre_test_object_deps_done=yes
13793 continue
13794 fi
13795
13796 if test "$pre_test_object_deps_done" = no; then
13797 if test -z "$predep_objects_CXX"; then
13798 predep_objects_CXX="$p"
13799 else
13800 predep_objects_CXX="$predep_objects_CXX $p"
13801 fi
13802 else
13803 if test -z "$postdep_objects_CXX"; then
13804 postdep_objects_CXX="$p"
13805 else
13806 postdep_objects_CXX="$postdep_objects_CXX $p"
13807 fi
13808 fi
13809 ;;
13810
13811 *) ;; # Ignore the rest.
13812
13813 esac
13814 done
13815
13816 # Clean up.
13817 rm -f a.out a.exe
13818else
13819 echo "libtool.m4: error: problem compiling CXX test program"
13820fi
13821
13822$RM -f confest.$objext
13823
13824# PORTME: override above test on systems where it is broken
13825case $host_os in
13826interix[3-9]*)
13827 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13828 # hack all around it, let's just trust "g++" to DTRT.
13829 predep_objects_CXX=
13830 postdep_objects_CXX=
13831 postdeps_CXX=
13832 ;;
13833
13834linux*)
13835 case `$CC -V 2>&1 | sed 5q` in
13836 *Sun\ C*)
13837 # Sun C++ 5.9
13838
13839 # The more standards-conforming stlport4 library is
13840 # incompatible with the Cstd library. Avoid specifying
13841 # it if it's in CXXFLAGS. Ignore libCrun as
13842 # -library=stlport4 depends on it.
13843 case " $CXX $CXXFLAGS " in
13844 *" -library=stlport4 "*)
13845 solaris_use_stlport4=yes
13846 ;;
13847 esac
13848
13849 if test "$solaris_use_stlport4" != yes; then
13850 postdeps_CXX='-library=Cstd -library=Crun'
13851 fi
13852 ;;
13853 esac
13854 ;;
13855
13856solaris*)
13857 case $cc_basename in
13858 CC*)
13859 # The more standards-conforming stlport4 library is
13860 # incompatible with the Cstd library. Avoid specifying
13861 # it if it's in CXXFLAGS. Ignore libCrun as
13862 # -library=stlport4 depends on it.
13863 case " $CXX $CXXFLAGS " in
13864 *" -library=stlport4 "*)
13865 solaris_use_stlport4=yes
13866 ;;
13867 esac
13868
13869 # Adding this requires a known-good setup of shared libraries for
13870 # Sun compiler versions before 5.6, else PIC objects from an old
13871 # archive will be linked into the output, leading to subtle bugs.
13872 if test "$solaris_use_stlport4" != yes; then
13873 postdeps_CXX='-library=Cstd -library=Crun'
13874 fi
13875 ;;
13876 esac
13877 ;;
13878esac
13879
13880
13881case " $postdeps_CXX " in
13882*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13883esac
13884 compiler_lib_search_dirs_CXX=
13885if test -n "${compiler_lib_search_path_CXX}"; then
13886 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13887fi
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919 lt_prog_compiler_wl_CXX=
13920lt_prog_compiler_pic_CXX=
13921lt_prog_compiler_static_CXX=
13922
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13924$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13925
13926 # C++ specific cases for pic, static, wl, etc.
13927 if test "$GXX" = yes; then
13928 lt_prog_compiler_wl_CXX='-Wl,'
13929 lt_prog_compiler_static_CXX='-static'
13930
13931 case $host_os in
13932 aix*)
13933 # All AIX code is PIC.
13934 if test "$host_cpu" = ia64; then
13935 # AIX 5 now supports IA64 processor
13936 lt_prog_compiler_static_CXX='-Bstatic'
13937 fi
52204357 13938 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13939 ;;
13940
13941 amigaos*)
13942 case $host_cpu in
13943 powerpc)
13944 # see comment about AmigaOS4 .so support
13945 lt_prog_compiler_pic_CXX='-fPIC'
13946 ;;
13947 m68k)
13948 # FIXME: we need at least 68020 code to build shared libraries, but
13949 # adding the `-m68020' flag to GCC prevents building anything better,
13950 # like `-m68040'.
13951 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13952 ;;
13953 esac
13954 ;;
13955
13956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13957 # PIC is the default for these OSes.
13958 ;;
13959 mingw* | cygwin* | os2* | pw32* | cegcc*)
13960 # This hack is so that the source file can tell whether it is being
13961 # built for inclusion in a dll (and should export symbols for example).
13962 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13963 # (--disable-auto-import) libraries
13964 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13965 ;;
13966 darwin* | rhapsody*)
13967 # PIC is the default on this platform
13968 # Common symbols not allowed in MH_DYLIB files
13969 lt_prog_compiler_pic_CXX='-fno-common'
13970 ;;
13971 *djgpp*)
13972 # DJGPP does not support shared libraries at all
13973 lt_prog_compiler_pic_CXX=
13974 ;;
13975 haiku*)
13976 # PIC is the default for Haiku.
13977 # The "-static" flag exists, but is broken.
13978 lt_prog_compiler_static_CXX=
13979 ;;
13980 interix[3-9]*)
13981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13982 # Instead, we relocate shared libraries at runtime.
13983 ;;
13984 sysv4*MP*)
13985 if test -d /usr/nec; then
13986 lt_prog_compiler_pic_CXX=-Kconform_pic
13987 fi
13988 ;;
13989 hpux*)
13990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13992 # sets the default TLS model and affects inlining.
13993 case $host_cpu in
13994 hppa*64*)
13995 ;;
13996 *)
13997 lt_prog_compiler_pic_CXX='-fPIC'
13998 ;;
13999 esac
14000 ;;
14001 *qnx* | *nto*)
14002 # QNX uses GNU C++, but need to define -shared option too, otherwise
14003 # it will coredump.
14004 lt_prog_compiler_pic_CXX='-fPIC -shared'
14005 ;;
14006 *)
14007 lt_prog_compiler_pic_CXX='-fPIC'
14008 ;;
14009 esac
14010 else
14011 case $host_os in
14012 aix[4-9]*)
14013 # All AIX code is PIC.
14014 if test "$host_cpu" = ia64; then
14015 # AIX 5 now supports IA64 processor
14016 lt_prog_compiler_static_CXX='-Bstatic'
14017 else
14018 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14019 fi
14020 ;;
14021 chorus*)
14022 case $cc_basename in
14023 cxch68*)
14024 # Green Hills C++ Compiler
14025 # _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"
14026 ;;
14027 esac
14028 ;;
14029 dgux*)
14030 case $cc_basename in
14031 ec++*)
14032 lt_prog_compiler_pic_CXX='-KPIC'
14033 ;;
14034 ghcx*)
14035 # Green Hills C++ Compiler
14036 lt_prog_compiler_pic_CXX='-pic'
14037 ;;
14038 *)
14039 ;;
14040 esac
14041 ;;
14042 freebsd* | dragonfly*)
14043 # FreeBSD uses GNU C++
14044 ;;
14045 hpux9* | hpux10* | hpux11*)
14046 case $cc_basename in
14047 CC*)
14048 lt_prog_compiler_wl_CXX='-Wl,'
14049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14050 if test "$host_cpu" != ia64; then
14051 lt_prog_compiler_pic_CXX='+Z'
14052 fi
14053 ;;
14054 aCC*)
14055 lt_prog_compiler_wl_CXX='-Wl,'
14056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14057 case $host_cpu in
14058 hppa*64*|ia64*)
14059 # +Z the default
14060 ;;
14061 *)
14062 lt_prog_compiler_pic_CXX='+Z'
14063 ;;
14064 esac
14065 ;;
14066 *)
14067 ;;
14068 esac
14069 ;;
14070 interix*)
14071 # This is c89, which is MS Visual C++ (no shared libs)
14072 # Anyone wants to do a port?
14073 ;;
14074 irix5* | irix6* | nonstopux*)
14075 case $cc_basename in
14076 CC*)
14077 lt_prog_compiler_wl_CXX='-Wl,'
14078 lt_prog_compiler_static_CXX='-non_shared'
14079 # CC pic flag -KPIC is the default.
14080 ;;
14081 *)
14082 ;;
14083 esac
14084 ;;
14085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14086 case $cc_basename in
14087 KCC*)
14088 # KAI C++ Compiler
14089 lt_prog_compiler_wl_CXX='--backend -Wl,'
14090 lt_prog_compiler_pic_CXX='-fPIC'
14091 ;;
14092 ecpc* )
14093 # old Intel C++ for x86_64 which still supported -KPIC.
14094 lt_prog_compiler_wl_CXX='-Wl,'
14095 lt_prog_compiler_pic_CXX='-KPIC'
14096 lt_prog_compiler_static_CXX='-static'
14097 ;;
14098 icpc* )
14099 # Intel C++, used to be incompatible with GCC.
14100 # ICC 10 doesn't accept -KPIC any more.
14101 lt_prog_compiler_wl_CXX='-Wl,'
14102 lt_prog_compiler_pic_CXX='-fPIC'
14103 lt_prog_compiler_static_CXX='-static'
14104 ;;
14105 pgCC* | pgcpp*)
14106 # Portland Group C++ compiler
14107 lt_prog_compiler_wl_CXX='-Wl,'
14108 lt_prog_compiler_pic_CXX='-fpic'
14109 lt_prog_compiler_static_CXX='-Bstatic'
14110 ;;
14111 cxx*)
14112 # Compaq C++
14113 # Make sure the PIC flag is empty. It appears that all Alpha
14114 # Linux and Compaq Tru64 Unix objects are PIC.
14115 lt_prog_compiler_pic_CXX=
14116 lt_prog_compiler_static_CXX='-non_shared'
14117 ;;
14118 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14119 # IBM XL 8.0, 9.0 on PPC and BlueGene
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 lt_prog_compiler_pic_CXX='-qpic'
14122 lt_prog_compiler_static_CXX='-qstaticlink'
14123 ;;
14124 *)
14125 case `$CC -V 2>&1 | sed 5q` in
14126 *Sun\ C*)
14127 # Sun C++ 5.9
14128 lt_prog_compiler_pic_CXX='-KPIC'
14129 lt_prog_compiler_static_CXX='-Bstatic'
14130 lt_prog_compiler_wl_CXX='-Qoption ld '
14131 ;;
14132 esac
14133 ;;
14134 esac
14135 ;;
14136 lynxos*)
14137 ;;
14138 m88k*)
14139 ;;
14140 mvs*)
14141 case $cc_basename in
14142 cxx*)
14143 lt_prog_compiler_pic_CXX='-W c,exportall'
14144 ;;
14145 *)
14146 ;;
14147 esac
14148 ;;
14149 netbsd*)
14150 ;;
14151 *qnx* | *nto*)
14152 # QNX uses GNU C++, but need to define -shared option too, otherwise
14153 # it will coredump.
14154 lt_prog_compiler_pic_CXX='-fPIC -shared'
14155 ;;
14156 osf3* | osf4* | osf5*)
14157 case $cc_basename in
14158 KCC*)
14159 lt_prog_compiler_wl_CXX='--backend -Wl,'
14160 ;;
14161 RCC*)
14162 # Rational C++ 2.4.1
14163 lt_prog_compiler_pic_CXX='-pic'
14164 ;;
14165 cxx*)
14166 # Digital/Compaq C++
14167 lt_prog_compiler_wl_CXX='-Wl,'
14168 # Make sure the PIC flag is empty. It appears that all Alpha
14169 # Linux and Compaq Tru64 Unix objects are PIC.
14170 lt_prog_compiler_pic_CXX=
14171 lt_prog_compiler_static_CXX='-non_shared'
14172 ;;
14173 *)
14174 ;;
14175 esac
14176 ;;
14177 psos*)
14178 ;;
14179 solaris*)
14180 case $cc_basename in
14181 CC*)
14182 # Sun C++ 4.2, 5.x and Centerline C++
14183 lt_prog_compiler_pic_CXX='-KPIC'
14184 lt_prog_compiler_static_CXX='-Bstatic'
14185 lt_prog_compiler_wl_CXX='-Qoption ld '
14186 ;;
14187 gcx*)
14188 # Green Hills C++ Compiler
14189 lt_prog_compiler_pic_CXX='-PIC'
14190 ;;
14191 *)
14192 ;;
14193 esac
14194 ;;
14195 sunos4*)
14196 case $cc_basename in
14197 CC*)
14198 # Sun C++ 4.x
14199 lt_prog_compiler_pic_CXX='-pic'
14200 lt_prog_compiler_static_CXX='-Bstatic'
14201 ;;
14202 lcc*)
14203 # Lucid
14204 lt_prog_compiler_pic_CXX='-pic'
14205 ;;
14206 *)
14207 ;;
14208 esac
14209 ;;
14210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14211 case $cc_basename in
14212 CC*)
14213 lt_prog_compiler_wl_CXX='-Wl,'
14214 lt_prog_compiler_pic_CXX='-KPIC'
14215 lt_prog_compiler_static_CXX='-Bstatic'
14216 ;;
14217 esac
14218 ;;
14219 tandem*)
14220 case $cc_basename in
14221 NCC*)
14222 # NonStop-UX NCC 3.20
14223 lt_prog_compiler_pic_CXX='-KPIC'
14224 ;;
14225 *)
14226 ;;
14227 esac
14228 ;;
14229 vxworks*)
14230 ;;
14231 *)
14232 lt_prog_compiler_can_build_shared_CXX=no
14233 ;;
14234 esac
14235 fi
14236
14237case $host_os in
14238 # For platforms which do not support PIC, -DPIC is meaningless:
14239 *djgpp*)
14240 lt_prog_compiler_pic_CXX=
14241 ;;
14242 *)
14243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14244 ;;
14245esac
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14247$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14248
14249
14250
14251#
14252# Check to make sure the PIC flag actually works.
14253#
14254if test -n "$lt_prog_compiler_pic_CXX"; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14256$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
d0ac1c44 14257if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
3cb62297
L
14258 $as_echo_n "(cached) " >&6
14259else
14260 lt_cv_prog_compiler_pic_works_CXX=no
14261 ac_outfile=conftest.$ac_objext
14262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14263 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14264 # Insert the option either (1) after the last *FLAGS variable, or
14265 # (2) before a word containing "conftest.", or (3) at the end.
14266 # Note that $ac_compile itself does not contain backslashes and begins
14267 # with a dollar sign (not a hyphen), so the echo should work correctly.
14268 # The option is referenced via a variable to avoid confusing sed.
14269 lt_compile=`echo "$ac_compile" | $SED \
14270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14272 -e 's:$: $lt_compiler_flag:'`
14273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14274 (eval "$lt_compile" 2>conftest.err)
14275 ac_status=$?
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 if (exit $ac_status) && test -s "$ac_outfile"; then
14279 # The compiler can only warn and ignore the option if not recognized
14280 # So say no if there are warnings other than the usual output.
14281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14284 lt_cv_prog_compiler_pic_works_CXX=yes
14285 fi
14286 fi
14287 $RM conftest*
14288
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14291$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14292
14293if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14294 case $lt_prog_compiler_pic_CXX in
14295 "" | " "*) ;;
14296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14297 esac
14298else
14299 lt_prog_compiler_pic_CXX=
14300 lt_prog_compiler_can_build_shared_CXX=no
14301fi
14302
14303fi
14304
14305
14306
14307#
14308# Check to make sure the static flag actually works.
14309#
14310wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14312$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 14313if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
3cb62297
L
14314 $as_echo_n "(cached) " >&6
14315else
14316 lt_cv_prog_compiler_static_works_CXX=no
14317 save_LDFLAGS="$LDFLAGS"
14318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14321 # The linker can only warn and ignore the option if not recognized
14322 # So say no if there are warnings
14323 if test -s conftest.err; then
14324 # Append any errors to the config.log.
14325 cat conftest.err 1>&5
14326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14328 if diff conftest.exp conftest.er2 >/dev/null; then
14329 lt_cv_prog_compiler_static_works_CXX=yes
14330 fi
14331 else
14332 lt_cv_prog_compiler_static_works_CXX=yes
14333 fi
14334 fi
14335 $RM -r conftest*
14336 LDFLAGS="$save_LDFLAGS"
14337
14338fi
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14340$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14341
14342if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14343 :
14344else
14345 lt_prog_compiler_static_CXX=
14346fi
14347
14348
14349
14350
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14352$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14353if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14354 $as_echo_n "(cached) " >&6
14355else
14356 lt_cv_prog_compiler_c_o_CXX=no
14357 $RM -r conftest 2>/dev/null
14358 mkdir conftest
14359 cd conftest
14360 mkdir out
14361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14362
14363 lt_compiler_flag="-o out/conftest2.$ac_objext"
14364 # Insert the option either (1) after the last *FLAGS variable, or
14365 # (2) before a word containing "conftest.", or (3) at the end.
14366 # Note that $ac_compile itself does not contain backslashes and begins
14367 # with a dollar sign (not a hyphen), so the echo should work correctly.
14368 lt_compile=`echo "$ac_compile" | $SED \
14369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14371 -e 's:$: $lt_compiler_flag:'`
14372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14373 (eval "$lt_compile" 2>out/conftest.err)
14374 ac_status=$?
14375 cat out/conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14378 then
14379 # The compiler can only warn and ignore the option if not recognized
14380 # So say no if there are warnings
14381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14384 lt_cv_prog_compiler_c_o_CXX=yes
14385 fi
14386 fi
14387 chmod u+w . 2>&5
14388 $RM conftest*
14389 # SGI C++ compiler will create directory out/ii_files/ for
14390 # template instantiation
14391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14392 $RM out/* && rmdir out
14393 cd ..
14394 $RM -r conftest
14395 $RM conftest*
14396
14397fi
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14399$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14400
14401
14402
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14405if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14406 $as_echo_n "(cached) " >&6
14407else
14408 lt_cv_prog_compiler_c_o_CXX=no
14409 $RM -r conftest 2>/dev/null
14410 mkdir conftest
14411 cd conftest
14412 mkdir out
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414
14415 lt_compiler_flag="-o out/conftest2.$ac_objext"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
14424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425 (eval "$lt_compile" 2>out/conftest.err)
14426 ac_status=$?
14427 cat out/conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14430 then
14431 # The compiler can only warn and ignore the option if not recognized
14432 # So say no if there are warnings
14433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_c_o_CXX=yes
14437 fi
14438 fi
14439 chmod u+w . 2>&5
14440 $RM conftest*
14441 # SGI C++ compiler will create directory out/ii_files/ for
14442 # template instantiation
14443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14444 $RM out/* && rmdir out
14445 cd ..
14446 $RM -r conftest
14447 $RM conftest*
14448
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14451$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14452
14453
14454
14455
14456hard_links="nottested"
14457if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14458 # do not overwrite the value of need_locks provided by the user
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14460$as_echo_n "checking if we can lock with hard links... " >&6; }
14461 hard_links=yes
14462 $RM conftest*
14463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14464 touch conftest.a
14465 ln conftest.a conftest.b 2>&5 || hard_links=no
14466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14468$as_echo "$hard_links" >&6; }
14469 if test "$hard_links" = no; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14471$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14472 need_locks=warn
14473 fi
14474else
14475 need_locks=no
14476fi
14477
14478
14479
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14481$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14482
14483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14484 case $host_os in
14485 aix[4-9]*)
14486 # If we're using GNU nm, then we don't want the "-C" option.
14487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14488 # Also, AIX nm treats weak defined symbols like other global defined
14489 # symbols, whereas GNU nm marks them as "W".
14490 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14491 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'
14492 else
5c14705f 14493 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
14494 fi
14495 ;;
14496 pw32*)
14497 export_symbols_cmds_CXX="$ltdll_cmds"
14498 ;;
14499 cygwin* | mingw* | cegcc*)
14500 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'
14501 ;;
14502 *)
14503 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14504 ;;
14505 esac
14506 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14507
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14509$as_echo "$ld_shlibs_CXX" >&6; }
14510test "$ld_shlibs_CXX" = no && can_build_shared=no
14511
14512with_gnu_ld_CXX=$with_gnu_ld
14513
14514
14515
14516
14517
14518
14519#
14520# Do we need to explicitly link libc?
14521#
14522case "x$archive_cmds_need_lc_CXX" in
14523x|xyes)
14524 # Assume -lc should be added
14525 archive_cmds_need_lc_CXX=yes
14526
14527 if test "$enable_shared" = yes && test "$GCC" = yes; then
14528 case $archive_cmds_CXX in
14529 *'~'*)
14530 # FIXME: we may have to deal with multi-command sequences.
14531 ;;
14532 '$CC '*)
14533 # Test whether the compiler implicitly links with -lc since on some
14534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14535 # to ld, don't add -lc before -lgcc.
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14537$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 14538if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
3cb62297
L
14539 $as_echo_n "(cached) " >&6
14540else
14541 $RM conftest*
14542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14543
14544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14545 (eval $ac_compile) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; } 2>conftest.err; then
14549 soname=conftest
14550 lib=conftest
14551 libobjs=conftest.$ac_objext
14552 deplibs=
14553 wl=$lt_prog_compiler_wl_CXX
14554 pic_flag=$lt_prog_compiler_pic_CXX
14555 compiler_flags=-v
14556 linker_flags=-v
14557 verstring=
14558 output_objdir=.
14559 libname=conftest
14560 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14561 allow_undefined_flag_CXX=
14562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14563 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14564 ac_status=$?
14565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14566 test $ac_status = 0; }
14567 then
14568 lt_cv_archive_cmds_need_lc_CXX=no
14569 else
14570 lt_cv_archive_cmds_need_lc_CXX=yes
14571 fi
14572 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14573 else
14574 cat conftest.err 1>&5
14575 fi
14576 $RM conftest*
14577
14578fi
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14580$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14581 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14582 ;;
14583 esac
14584 fi
14585 ;;
14586esac
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14652$as_echo_n "checking dynamic linker characteristics... " >&6; }
14653
14654library_names_spec=
14655libname_spec='lib$name'
14656soname_spec=
14657shrext_cmds=".so"
14658postinstall_cmds=
14659postuninstall_cmds=
14660finish_cmds=
14661finish_eval=
14662shlibpath_var=
14663shlibpath_overrides_runpath=unknown
14664version_type=none
14665dynamic_linker="$host_os ld.so"
14666sys_lib_dlsearch_path_spec="/lib /usr/lib"
14667need_lib_prefix=unknown
14668hardcode_into_libs=no
14669
14670# when you set need_version to no, make sure it does not cause -set_version
14671# flags to be left without arguments
14672need_version=unknown
14673
14674case $host_os in
14675aix3*)
14676 version_type=linux
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14678 shlibpath_var=LIBPATH
14679
14680 # AIX 3 has no versioning support, so we append a major version to the name.
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 ;;
14683
14684aix[4-9]*)
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 hardcode_into_libs=yes
14689 if test "$host_cpu" = ia64; then
14690 # AIX 5 supports IA64
14691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 else
14694 # With GCC up to 2.95.x, collect2 would create an import file
14695 # for dependence libraries. The import file would start with
14696 # the line `#! .'. This would cause the generated library to
14697 # depend on `.', always an invalid library. This was fixed in
14698 # development snapshots of GCC prior to 3.0.
14699 case $host_os in
14700 aix4 | aix4.[01] | aix4.[01].*)
14701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14702 echo ' yes '
14703 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14704 :
14705 else
14706 can_build_shared=no
14707 fi
14708 ;;
14709 esac
14710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14711 # soname into executable. Probably we can add versioning support to
14712 # collect2, so additional links can be useful in future.
14713 if test "$aix_use_runtimelinking" = yes; then
14714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14715 # instead of lib<name>.a to let people know that these are not
14716 # typical AIX shared libraries.
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 else
14719 # We preserve .a as extension for shared libraries through AIX4.2
14720 # and later when we are not doing run time linking.
14721 library_names_spec='${libname}${release}.a $libname.a'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 fi
14724 shlibpath_var=LIBPATH
14725 fi
14726 ;;
14727
14728amigaos*)
14729 case $host_cpu in
14730 powerpc)
14731 # Since July 2007 AmigaOS4 officially supports .so libraries.
14732 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 ;;
14735 m68k)
14736 library_names_spec='$libname.ixlibrary $libname.a'
14737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14738 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'
14739 ;;
14740 esac
14741 ;;
14742
14743beos*)
14744 library_names_spec='${libname}${shared_ext}'
14745 dynamic_linker="$host_os ld.so"
14746 shlibpath_var=LIBRARY_PATH
14747 ;;
14748
14749bsdi[45]*)
14750 version_type=linux
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14758 # the default ld.so.conf also contains /usr/contrib/lib and
14759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14760 # libtool to hard-code these into programs
14761 ;;
14762
14763cygwin* | mingw* | pw32* | cegcc*)
14764 version_type=windows
14765 shrext_cmds=".dll"
14766 need_version=no
14767 need_lib_prefix=no
14768
14769 case $GCC,$host_os in
14770 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14771 library_names_spec='$libname.dll.a'
14772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14773 postinstall_cmds='base_file=`basename \${file}`~
14774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14775 dldir=$destdir/`dirname \$dlpath`~
14776 test -d \$dldir || mkdir -p \$dldir~
14777 $install_prog $dir/$dlname \$dldir/$dlname~
14778 chmod a+x \$dldir/$dlname~
14779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14781 fi'
14782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14783 dlpath=$dir/\$dldll~
14784 $RM \$dlpath'
14785 shlibpath_overrides_runpath=yes
14786
14787 case $host_os in
14788 cygwin*)
14789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14791
14792 ;;
14793 mingw* | cegcc*)
14794 # MinGW DLLs use traditional 'lib' prefix
14795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14796 ;;
14797 pw32*)
14798 # pw32 DLLs use 'pw' prefix rather than 'lib'
14799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800 ;;
14801 esac
14802 ;;
14803
14804 *)
14805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14806 ;;
14807 esac
14808 dynamic_linker='Win32 ld.exe'
14809 # FIXME: first we should search . and the directory the executable is in
14810 shlibpath_var=PATH
14811 ;;
14812
14813darwin* | rhapsody*)
14814 dynamic_linker="$host_os dyld"
14815 version_type=darwin
14816 need_lib_prefix=no
14817 need_version=no
14818 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14819 soname_spec='${libname}${release}${major}$shared_ext'
14820 shlibpath_overrides_runpath=yes
14821 shlibpath_var=DYLD_LIBRARY_PATH
14822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14823
14824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14825 ;;
14826
14827dgux*)
14828 version_type=linux
14829 need_lib_prefix=no
14830 need_version=no
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 ;;
14835
3cb62297
L
14836freebsd* | dragonfly*)
14837 # DragonFly does not have aout. When/if they implement a new
14838 # versioning mechanism, adjust this.
14839 if test -x /usr/bin/objformat; then
14840 objformat=`/usr/bin/objformat`
14841 else
14842 case $host_os in
6d2920c8 14843 freebsd[23].*) objformat=aout ;;
3cb62297
L
14844 *) objformat=elf ;;
14845 esac
14846 fi
14847 version_type=freebsd-$objformat
14848 case $version_type in
14849 freebsd-elf*)
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14851 need_version=no
14852 need_lib_prefix=no
14853 ;;
14854 freebsd-*)
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14856 need_version=yes
14857 ;;
14858 esac
14859 shlibpath_var=LD_LIBRARY_PATH
14860 case $host_os in
6d2920c8 14861 freebsd2.*)
3cb62297
L
14862 shlibpath_overrides_runpath=yes
14863 ;;
14864 freebsd3.[01]* | freebsdelf3.[01]*)
14865 shlibpath_overrides_runpath=yes
14866 hardcode_into_libs=yes
14867 ;;
14868 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14869 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14870 shlibpath_overrides_runpath=no
14871 hardcode_into_libs=yes
14872 ;;
14873 *) # from 4.6 on, and DragonFly
14874 shlibpath_overrides_runpath=yes
14875 hardcode_into_libs=yes
14876 ;;
14877 esac
14878 ;;
14879
14880gnu*)
14881 version_type=linux
14882 need_lib_prefix=no
14883 need_version=no
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 hardcode_into_libs=yes
14888 ;;
14889
14890haiku*)
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 dynamic_linker="$host_os runtime_loader"
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14900 hardcode_into_libs=yes
14901 ;;
14902
14903hpux9* | hpux10* | hpux11*)
14904 # Give a soname corresponding to the major version so that dld.sl refuses to
14905 # link against other versions.
14906 version_type=sunos
14907 need_lib_prefix=no
14908 need_version=no
14909 case $host_cpu in
14910 ia64*)
14911 shrext_cmds='.so'
14912 hardcode_into_libs=yes
14913 dynamic_linker="$host_os dld.so"
14914 shlibpath_var=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 if test "X$HPUX_IA64_MODE" = X32; then
14919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14920 else
14921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14922 fi
14923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14924 ;;
14925 hppa*64*)
14926 shrext_cmds='.sl'
14927 hardcode_into_libs=yes
14928 dynamic_linker="$host_os dld.sl"
14929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14935 ;;
14936 *)
14937 shrext_cmds='.sl'
14938 dynamic_linker="$host_os dld.sl"
14939 shlibpath_var=SHLIB_PATH
14940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 ;;
14944 esac
14945 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14946 postinstall_cmds='chmod 555 $lib'
14947 # or fails outright, so override atomically:
14948 install_override_mode=555
14949 ;;
14950
14951interix[3-9]*)
14952 version_type=linux
14953 need_lib_prefix=no
14954 need_version=no
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=no
14960 hardcode_into_libs=yes
14961 ;;
14962
14963irix5* | irix6* | nonstopux*)
14964 case $host_os in
14965 nonstopux*) version_type=nonstopux ;;
14966 *)
14967 if test "$lt_cv_prog_gnu_ld" = yes; then
14968 version_type=linux
14969 else
14970 version_type=irix
14971 fi ;;
14972 esac
14973 need_lib_prefix=no
14974 need_version=no
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14977 case $host_os in
14978 irix5* | nonstopux*)
14979 libsuff= shlibsuff=
14980 ;;
14981 *)
14982 case $LD in # libtool.m4 will add one of these switches to LD
14983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14984 libsuff= shlibsuff= libmagic=32-bit;;
14985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14986 libsuff=32 shlibsuff=N32 libmagic=N32;;
14987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14989 *) libsuff= shlibsuff= libmagic=never-match;;
14990 esac
14991 ;;
14992 esac
14993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14994 shlibpath_overrides_runpath=no
14995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14997 hardcode_into_libs=yes
14998 ;;
14999
15000# No shared lib support for Linux oldld, aout, or coff.
15001linux*oldld* | linux*aout* | linux*coff*)
15002 dynamic_linker=no
15003 ;;
15004
15005# This must be Linux ELF.
15006linux* | k*bsd*-gnu | kopensolaris*-gnu)
15007 version_type=linux
15008 need_lib_prefix=no
15009 need_version=no
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath=no
15015
15016 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 15017 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
3cb62297
L
15018 $as_echo_n "(cached) " >&6
15019else
15020 lt_cv_shlibpath_overrides_runpath=no
15021 save_LDFLAGS=$LDFLAGS
15022 save_libdir=$libdir
15023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026/* end confdefs.h. */
15027
15028int
15029main ()
15030{
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036if ac_fn_cxx_try_link "$LINENO"; then :
15037 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15038 lt_cv_shlibpath_overrides_runpath=yes
15039fi
15040fi
15041rm -f core conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043 LDFLAGS=$save_LDFLAGS
15044 libdir=$save_libdir
15045
15046fi
15047
15048 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15049
15050 # This implies no fast_install, which is unacceptable.
15051 # Some rework will be needed to allow for fast_install
15052 # before this can be enabled.
15053 hardcode_into_libs=yes
15054
15055 # Append ld.so.conf contents to the search path
15056 if test -f /etc/ld.so.conf; then
15057 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' ' '`
15058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15059 fi
15060
15061 # We used to test for /lib/ld.so.1 and disable shared libraries on
15062 # powerpc, because MkLinux only supported shared libraries with the
15063 # GNU dynamic linker. Since this was broken with cross compilers,
15064 # most powerpc-linux boxes support dynamic linking these days and
15065 # people can always --disable-shared, the test was removed, and we
15066 # assume the GNU/Linux dynamic linker is in use.
15067 dynamic_linker='GNU/Linux ld.so'
15068 ;;
15069
15070netbsd*)
15071 version_type=sunos
15072 need_lib_prefix=no
15073 need_version=no
15074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15077 dynamic_linker='NetBSD (a.out) ld.so'
15078 else
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 dynamic_linker='NetBSD ld.elf_so'
15082 fi
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=yes
15085 hardcode_into_libs=yes
15086 ;;
15087
15088newsos6)
15089 version_type=linux
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=yes
15093 ;;
15094
15095*nto* | *qnx*)
15096 version_type=qnx
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 shlibpath_overrides_runpath=no
15103 hardcode_into_libs=yes
15104 dynamic_linker='ldqnx.so'
15105 ;;
15106
15107openbsd*)
15108 version_type=sunos
15109 sys_lib_dlsearch_path_spec="/usr/lib"
15110 need_lib_prefix=no
15111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15112 case $host_os in
15113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15114 *) need_version=no ;;
15115 esac
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120 case $host_os in
15121 openbsd2.[89] | openbsd2.[89].*)
15122 shlibpath_overrides_runpath=no
15123 ;;
15124 *)
15125 shlibpath_overrides_runpath=yes
15126 ;;
15127 esac
15128 else
15129 shlibpath_overrides_runpath=yes
15130 fi
15131 ;;
15132
15133os2*)
15134 libname_spec='$name'
15135 shrext_cmds=".dll"
15136 need_lib_prefix=no
15137 library_names_spec='$libname${shared_ext} $libname.a'
15138 dynamic_linker='OS/2 ld.exe'
15139 shlibpath_var=LIBPATH
15140 ;;
15141
15142osf3* | osf4* | osf5*)
15143 version_type=osf
15144 need_lib_prefix=no
15145 need_version=no
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15151 ;;
15152
15153rdos*)
15154 dynamic_linker=no
15155 ;;
15156
15157solaris*)
15158 version_type=linux
15159 need_lib_prefix=no
15160 need_version=no
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=yes
15165 hardcode_into_libs=yes
15166 # ldd complains unless libraries are executable
15167 postinstall_cmds='chmod +x $lib'
15168 ;;
15169
15170sunos4*)
15171 version_type=sunos
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes
15176 if test "$with_gnu_ld" = yes; then
15177 need_lib_prefix=no
15178 fi
15179 need_version=yes
15180 ;;
15181
15182sysv4 | sysv4.3*)
15183 version_type=linux
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 case $host_vendor in
15188 sni)
15189 shlibpath_overrides_runpath=no
15190 need_lib_prefix=no
15191 runpath_var=LD_RUN_PATH
15192 ;;
15193 siemens)
15194 need_lib_prefix=no
15195 ;;
15196 motorola)
15197 need_lib_prefix=no
15198 need_version=no
15199 shlibpath_overrides_runpath=no
15200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15201 ;;
15202 esac
15203 ;;
15204
15205sysv4*MP*)
15206 if test -d /usr/nec ;then
15207 version_type=linux
15208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15209 soname_spec='$libname${shared_ext}.$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 fi
15212 ;;
15213
15214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15215 version_type=freebsd-elf
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes
15222 hardcode_into_libs=yes
15223 if test "$with_gnu_ld" = yes; then
15224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15225 else
15226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15227 case $host_os in
15228 sco3.2v5*)
15229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15230 ;;
15231 esac
15232 fi
15233 sys_lib_dlsearch_path_spec='/usr/lib'
15234 ;;
15235
15236tpf*)
15237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15238 version_type=linux
15239 need_lib_prefix=no
15240 need_version=no
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=no
15244 hardcode_into_libs=yes
15245 ;;
15246
15247uts4*)
15248 version_type=linux
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 ;;
15253
15254*)
15255 dynamic_linker=no
15256 ;;
15257esac
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15259$as_echo "$dynamic_linker" >&6; }
15260test "$dynamic_linker" = no && can_build_shared=no
15261
15262variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15263if test "$GCC" = yes; then
15264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15265fi
15266
15267if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15269fi
15270if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15272fi
15273
3725885a 15274
ce2cded5 15275
ce2cded5 15276
ce2cded5 15277
d7040cdb 15278
ce2cded5 15279
ce2cded5 15280
ce2cded5 15281
d7040cdb 15282
ce2cded5
L
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
ce2cded5
L
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
b879806f
AM
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15312$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15313hardcode_action_CXX=
15314if test -n "$hardcode_libdir_flag_spec_CXX" ||
15315 test -n "$runpath_var_CXX" ||
15316 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15317
15318 # We can hardcode non-existent directories.
15319 if test "$hardcode_direct_CXX" != no &&
15320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321 # have to relink, otherwise we might link with an installed library
15322 # when we should be linking with a yet-to-be-installed one
15323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15324 test "$hardcode_minus_L_CXX" != no; then
15325 # Linking always hardcodes the temporary library directory.
15326 hardcode_action_CXX=relink
15327 else
15328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329 hardcode_action_CXX=immediate
15330 fi
15331else
15332 # We cannot hardcode anything, or else we can only hardcode existing
15333 # directories.
15334 hardcode_action_CXX=unsupported
15335fi
15336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15337$as_echo "$hardcode_action_CXX" >&6; }
15338
15339if test "$hardcode_action_CXX" = relink ||
15340 test "$inherit_rpath_CXX" = yes; then
15341 # Fast installation is not supported
15342 enable_fast_install=no
15343elif test "$shlibpath_overrides_runpath" = yes ||
15344 test "$enable_shared" = no; then
15345 # Fast installation is not necessary
15346 enable_fast_install=needless
15347fi
15348
15349
15350
15351
15352
15353
15354
15355 fi # test -n "$compiler"
15356
15357 CC=$lt_save_CC
15358 LDCXX=$LD
15359 LD=$lt_save_LD
15360 GCC=$lt_save_GCC
15361 with_gnu_ld=$lt_save_with_gnu_ld
15362 lt_cv_path_LDCXX=$lt_cv_path_LD
15363 lt_cv_path_LD=$lt_save_path_LD
15364 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15365 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15366fi # test "$_lt_caught_CXX_error" != yes
15367
15368ac_ext=c
15369ac_cpp='$CPP $CPPFLAGS'
15370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15372ac_compiler_gnu=$ac_cv_c_compiler_gnu
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386 ac_config_commands="$ac_config_commands libtool"
15387
15388
15389
15390
15391# Only expand once:
15392
15393
15394
15395# The tests for host and target for $enable_largefile require
15396# canonical names.
15397
15398
15399
15400# As the $enable_largefile decision depends on --enable-plugins we must set it
15401# even in directories otherwise not depending on the $plugins option.
15402
15403
15404 maybe_plugins=no
15405 for ac_header in dlfcn.h
15406do :
15407 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15408"
d0ac1c44 15409if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
15410 cat >>confdefs.h <<_ACEOF
15411#define HAVE_DLFCN_H 1
15412_ACEOF
15413 maybe_plugins=yes
15414fi
15415
15416done
15417
15418 for ac_header in windows.h
15419do :
15420 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15421"
d0ac1c44 15422if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
15423 cat >>confdefs.h <<_ACEOF
15424#define HAVE_WINDOWS_H 1
15425_ACEOF
15426 maybe_plugins=yes
15427fi
15428
15429done
15430
15431
15432 # Check whether --enable-plugins was given.
15433if test "${enable_plugins+set}" = set; then :
15434 enableval=$enable_plugins; case "${enableval}" in
15435 no) plugins=no ;;
15436 *) plugins=yes
15437 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 15438 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
15439 fi ;;
15440 esac
15441else
15442 plugins=$maybe_plugins
15443
15444fi
15445
2974be62 15446 if test "$plugins" = "yes"; then
3cba8b6c
L
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15448$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 15449if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15450 $as_echo_n "(cached) " >&6
15451else
15452 ac_func_search_save_LIBS=$LIBS
15453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h. */
15455
15456/* Override any GCC internal prototype to avoid an error.
15457 Use char because int might match the return type of a GCC
15458 builtin and then its argument prototype would still apply. */
15459#ifdef __cplusplus
15460extern "C"
15461#endif
3cba8b6c 15462char dlsym ();
2974be62
AM
15463int
15464main ()
15465{
3cba8b6c 15466return dlsym ();
2974be62
AM
15467 ;
15468 return 0;
15469}
15470_ACEOF
15471for ac_lib in '' dl; do
15472 if test -z "$ac_lib"; then
15473 ac_res="none required"
15474 else
15475 ac_res=-l$ac_lib
15476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15477 fi
15478 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 15479 ac_cv_search_dlsym=$ac_res
2974be62
AM
15480fi
15481rm -f core conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext
d0ac1c44 15483 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15484 break
15485fi
15486done
d0ac1c44 15487if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15488
15489else
3cba8b6c 15490 ac_cv_search_dlsym=no
2974be62
AM
15491fi
15492rm conftest.$ac_ext
15493LIBS=$ac_func_search_save_LIBS
15494fi
3cba8b6c
L
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15496$as_echo "$ac_cv_search_dlsym" >&6; }
15497ac_res=$ac_cv_search_dlsym
2974be62
AM
15498if test "$ac_res" != no; then :
15499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15500
15501fi
15502
15503 fi
b879806f
AM
15504
15505
15506case "${host}" in
15507 sparc-*-solaris*|i[3-7]86-*-solaris*)
15508 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15509 # are mutually exclusive; and without procfs support, the bfd/ elf module
15510 # cannot provide certain routines such as elfcore_write_prpsinfo
15511 # or elfcore_write_prstatus. So unless the user explicitly requested
15512 # large-file support through the --enable-largefile switch, disable
15513 # large-file support in favor of procfs support.
15514 test "${target}" = "${host}" -a "x$plugins" = xno \
15515 && : ${enable_largefile="no"}
15516 ;;
15517esac
15518
15519# Check whether --enable-largefile was given.
15520if test "${enable_largefile+set}" = set; then :
15521 enableval=$enable_largefile;
15522fi
15523
15524if test "$enable_largefile" != no; then
15525
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15527$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 15528if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
15529 $as_echo_n "(cached) " >&6
15530else
15531 ac_cv_sys_largefile_CC=no
15532 if test "$GCC" != yes; then
15533 ac_save_CC=$CC
15534 while :; do
15535 # IRIX 6.2 and later do not support large files by default,
15536 # so use the C compiler's -n32 option if that helps.
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538/* end confdefs.h. */
15539#include <sys/types.h>
15540 /* Check that off_t can represent 2**63 - 1 correctly.
15541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15542 since some C++ compilers masquerading as C compilers
15543 incorrectly reject 9223372036854775807. */
e0b2a78c 15544#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15546 && LARGE_OFF_T % 2147483647 == 1)
15547 ? 1 : -1];
15548int
15549main ()
15550{
15551
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556 if ac_fn_c_try_compile "$LINENO"; then :
15557 break
15558fi
15559rm -f core conftest.err conftest.$ac_objext
15560 CC="$CC -n32"
15561 if ac_fn_c_try_compile "$LINENO"; then :
15562 ac_cv_sys_largefile_CC=' -n32'; break
15563fi
15564rm -f core conftest.err conftest.$ac_objext
15565 break
15566 done
15567 CC=$ac_save_CC
15568 rm -f conftest.$ac_ext
15569 fi
15570fi
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15572$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15573 if test "$ac_cv_sys_largefile_CC" != no; then
15574 CC=$CC$ac_cv_sys_largefile_CC
15575 fi
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15578$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 15579if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
15580 $as_echo_n "(cached) " >&6
15581else
15582 while :; do
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h. */
15585#include <sys/types.h>
15586 /* Check that off_t can represent 2**63 - 1 correctly.
15587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15588 since some C++ compilers masquerading as C compilers
15589 incorrectly reject 9223372036854775807. */
e0b2a78c 15590#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15592 && LARGE_OFF_T % 2147483647 == 1)
15593 ? 1 : -1];
15594int
15595main ()
15596{
15597
15598 ;
15599 return 0;
15600}
15601_ACEOF
15602if ac_fn_c_try_compile "$LINENO"; then :
15603 ac_cv_sys_file_offset_bits=no; break
15604fi
15605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607/* end confdefs.h. */
15608#define _FILE_OFFSET_BITS 64
15609#include <sys/types.h>
15610 /* Check that off_t can represent 2**63 - 1 correctly.
15611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15612 since some C++ compilers masquerading as C compilers
15613 incorrectly reject 9223372036854775807. */
e0b2a78c 15614#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15616 && LARGE_OFF_T % 2147483647 == 1)
15617 ? 1 : -1];
15618int
15619main ()
15620{
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626if ac_fn_c_try_compile "$LINENO"; then :
15627 ac_cv_sys_file_offset_bits=64; break
15628fi
15629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 ac_cv_sys_file_offset_bits=unknown
15631 break
15632done
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15635$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15636case $ac_cv_sys_file_offset_bits in #(
15637 no | unknown) ;;
15638 *)
15639cat >>confdefs.h <<_ACEOF
15640#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15641_ACEOF
15642;;
15643esac
15644rm -rf conftest*
15645 if test $ac_cv_sys_file_offset_bits = unknown; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15647$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 15648if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
15649 $as_echo_n "(cached) " >&6
15650else
15651 while :; do
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h. */
15654#include <sys/types.h>
15655 /* Check that off_t can represent 2**63 - 1 correctly.
15656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15657 since some C++ compilers masquerading as C compilers
15658 incorrectly reject 9223372036854775807. */
e0b2a78c 15659#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15661 && LARGE_OFF_T % 2147483647 == 1)
15662 ? 1 : -1];
15663int
15664main ()
15665{
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671if ac_fn_c_try_compile "$LINENO"; then :
15672 ac_cv_sys_large_files=no; break
15673fi
15674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676/* end confdefs.h. */
15677#define _LARGE_FILES 1
15678#include <sys/types.h>
15679 /* Check that off_t can represent 2**63 - 1 correctly.
15680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15681 since some C++ compilers masquerading as C compilers
15682 incorrectly reject 9223372036854775807. */
e0b2a78c 15683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15685 && LARGE_OFF_T % 2147483647 == 1)
15686 ? 1 : -1];
15687int
15688main ()
15689{
15690
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695if ac_fn_c_try_compile "$LINENO"; then :
15696 ac_cv_sys_large_files=1; break
15697fi
15698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 ac_cv_sys_large_files=unknown
15700 break
15701done
15702fi
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15704$as_echo "$ac_cv_sys_large_files" >&6; }
15705case $ac_cv_sys_large_files in #(
15706 no | unknown) ;;
15707 *)
15708cat >>confdefs.h <<_ACEOF
15709#define _LARGE_FILES $ac_cv_sys_large_files
15710_ACEOF
15711;;
15712esac
15713rm -rf conftest*
15714 fi
d0ac1c44
SM
15715
15716
b879806f
AM
15717fi
15718
15719
15720
15721
15722# Check whether --with-lib-path was given.
15723if test "${with_lib_path+set}" = set; then :
15724 withval=$with_lib_path; LIB_PATH=$withval
15725fi
15726
15727# Check whether --enable-targets was given.
15728if test "${enable_targets+set}" = set; then :
15729 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 15730 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15731 ;;
b879806f
AM
15732 no) enable_targets= ;;
15733 *) enable_targets=$enableval ;;
15734esac
15735fi
15736# Check whether --enable-64-bit-bfd was given.
15737if test "${enable_64_bit_bfd+set}" = set; then :
15738 enableval=$enable_64_bit_bfd; case "${enableval}" in
15739 yes) want64=true ;;
15740 no) want64=false ;;
d0ac1c44 15741 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
b879806f
AM
15742esac
15743else
15744 want64=false
15745fi
15746
15747
15748# Check whether --with-sysroot was given.
15749if test "${with_sysroot+set}" = set; then :
15750 withval=$with_sysroot;
15751 case ${with_sysroot} in
15752 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15753 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15754 esac
15755
15756 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15757 use_sysroot=yes
15758
15759 if test "x$prefix" = xNONE; then
15760 test_prefix=/usr/local
15761 else
15762 test_prefix=$prefix
15763 fi
15764 if test "x$exec_prefix" = xNONE; then
15765 test_exec_prefix=$test_prefix
15766 else
15767 test_exec_prefix=$exec_prefix
15768 fi
15769 case ${TARGET_SYSTEM_ROOT} in
15770 "${test_prefix}"|"${test_prefix}/"*|\
15771 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15772 '${prefix}'|'${prefix}/'*|\
15773 '${exec_prefix}'|'${exec_prefix}/'*)
15774 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15775 TARGET_SYSTEM_ROOT_DEFINE="$t"
15776 ;;
15777 esac
15778
15779else
15780
15781 use_sysroot=no
15782 TARGET_SYSTEM_ROOT=
15783 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15784
15785fi
15786
15787
15788
15789
15790
15791# Check whether --enable-gold was given.
15792if test "${enable_gold+set}" = set; then :
15793 enableval=$enable_gold; case "${enableval}" in
15794 default)
15795 install_as_default=no
15796 installed_linker=ld.bfd
15797 ;;
15798 yes|no)
15799 install_as_default=yes
15800 installed_linker=ld.bfd
15801 ;;
15802 *)
d0ac1c44 15803 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
b879806f
AM
15804 ;;
15805 esac
15806else
15807 install_as_default=yes
15808 installed_linker=ld.bfd
15809fi
15810
15811
15812
15813
15814# Check whether --enable-got was given.
15815if test "${enable_got+set}" = set; then :
15816 enableval=$enable_got; case "${enableval}" in
15817 target | single | negative | multigot) got_handling=$enableval ;;
d0ac1c44 15818 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15819esac
15820else
15821 got_handling=target
15822fi
15823
15824
15825case "${got_handling}" in
15826 target)
15827
15828$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15829 ;;
15830 single)
15831
15832$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15833 ;;
15834 negative)
15835
15836$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15837 ;;
15838 multigot)
15839
15840$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15841 ;;
d0ac1c44 15842 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15843esac
15844
6c3bc0f8
NC
15845# PR gas/19109
15846# Decide the default method for compressing debug sections.
15847ac_default_compressed_debug_sections=unset
15848# Provide a configure time option to override our default.
15849# Check whether --enable-compressed_debug_sections was given.
15850if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15851 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15852 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15853 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15854esac
15855fi
15856
6734f10a
SB
15857# Decide setting DT_RUNPATH instead of DT_RPATH by default
15858ac_default_new_dtags=unset
15859# Provide a configure time option to override our default.
15860# Check whether --enable-new_dtags was given.
15861if test "${enable_new_dtags+set}" = set; then :
15862 enableval=$enable_new_dtags; case "${enableval}" in
15863 yes) ac_default_new_dtags=1 ;;
15864 no) ac_default_new_dtags=0 ;;
15865esac
15866fi
15867
647e4d46
L
15868# Decide if -z relro should be enabled in ELF linker by default.
15869ac_default_ld_z_relro=unset
15870# Provide a configure time option to override our default.
15871# Check whether --enable-relro was given.
15872if test "${enable_relro+set}" = set; then :
15873 enableval=$enable_relro; case "${enableval}" in
15874 yes) ac_default_ld_z_relro=1 ;;
15875 no) ac_default_ld_z_relro=0 ;;
15876esac
15877fi
15878
f6aec96d
L
15879# Decide if -z separate-code should be enabled in ELF linker by default.
15880ac_default_ld_z_separate_code=unset
15881# Check whether --enable-separate-code was given.
15882if test "${enable_separate_code+set}" = set; then :
15883 enableval=$enable_separate_code; case "${enableval}" in
15884 yes) ac_default_ld_z_separate_code=1 ;;
15885 no) ac_default_ld_z_separate_code=0 ;;
15886esac
15887fi
15888
15889
2760f24c
RG
15890# Decide which "--hash-style" to use by default
15891# Provide a configure time option to override our default.
15892# Check whether --enable-default-hash-style was given.
15893if test "${enable_default_hash_style+set}" = set; then :
15894 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15895 sysv | gnu | both) ;;
d0ac1c44 15896 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
2760f24c
RG
15897esac
15898else
15899 case "${target}" in
15900 # Enable gnu hash only on GNU targets, but not mips
15901 mips*-*-*) enable_default_hash_style=sysv ;;
15902 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15903 *) enable_default_hash_style=sysv ;;
15904esac
15905fi
15906
15907
15908case "${enable_default_hash_style}" in
15909 sysv | both) ac_default_emit_sysv_hash=1 ;;
15910 *) ac_default_emit_sysv_hash=0 ;;
15911esac
15912
15913case "${enable_default_hash_style}" in
15914 gnu | both) ac_default_emit_gnu_hash=1 ;;
15915 *) ac_default_emit_gnu_hash=0 ;;
15916esac
15917
b879806f
AM
15918
15919# Set the 'development' global.
15920. $srcdir/../bfd/development.sh
15921
c5da1932
VZ
15922# Set acp_cpp_for_build variable
15923ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15924
9780e045 15925# Default set of GCC warnings to enable.
b879806f 15926GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15927GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15928
15929# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h. */
15932__GNUC__
15933_ACEOF
15934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15935 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
ce2cded5 15936
3cb62297 15937else
b879806f 15938 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15939fi
b879806f 15940rm -f conftest*
ce2cded5 15941
ce2cded5 15942
9780e045
NC
15943# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h. */
15946__GNUC__
15947_ACEOF
15948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15949 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
15950
15951else
15952 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15953fi
15954rm -f conftest*
15955
15956
6757cf57
TS
15957# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15958WARN_WRITE_STRINGS=""
15959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h. */
15961__GNUC__
15962_ACEOF
15963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15964 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
15965
15966else
15967 WARN_WRITE_STRINGS="-Wwrite-strings"
15968fi
15969rm -f conftest*
15970
9780e045 15971
96fe4562 15972# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
15973
15974# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h. */
15977__GNUC__
15978_ACEOF
15979if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15980 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15981
15982else
15983 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15984fi
15985rm -f conftest*
15986
15987
15988# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990/* end confdefs.h. */
15991__GNUC__
15992_ACEOF
15993if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15994 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15995
15996else
15997 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15998fi
15999rm -f conftest*
16000
16001
b879806f
AM
16002# Check whether --enable-werror was given.
16003if test "${enable_werror+set}" = set; then :
16004 enableval=$enable_werror; case "${enableval}" in
16005 yes | y) ERROR_ON_WARNING="yes" ;;
16006 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 16007 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
b879806f
AM
16008 esac
16009fi
ce2cded5
L
16010
16011
b879806f
AM
16012# Disable -Wformat by default when using gcc on mingw
16013case "${host}" in
16014 *-*-mingw32*)
16015 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16016 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 16017 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
16018 fi
16019 ;;
16020 *) ;;
16021esac
ce2cded5 16022
b879806f
AM
16023# Enable -Werror by default when using gcc. Turn it off for releases.
16024if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16025 ERROR_ON_WARNING=yes
16026fi
d7040cdb 16027
b879806f
AM
16028NO_WERROR=
16029if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 16030 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 16031 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
16032 NO_WERROR="-Wno-error"
16033fi
3cb62297 16034
b879806f
AM
16035if test "${GCC}" = yes ; then
16036 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 16037 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 16038fi
67310ccd 16039
b879806f
AM
16040# Check whether --enable-build-warnings was given.
16041if test "${enable_build_warnings+set}" = set; then :
16042 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
16043 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16044 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
16045 no) if test "${GCC}" = yes ; then
16046 WARN_CFLAGS="-w"
c5da1932 16047 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
16048 fi;;
16049 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16050 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16051 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 16052 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16053 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16054 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16055 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16056 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
16057esac
16058fi
67310ccd 16059
d7040cdb 16060
b879806f
AM
16061if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16062 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16063fi
d7040cdb 16064
d7040cdb 16065
d7040cdb 16066
d7040cdb 16067
ce2cded5
L
16068
16069
6757cf57 16070
c5da1932 16071
b879806f
AM
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16073$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 16074if ${am_cv_val_LC_MESSAGES+:} false; then :
b879806f
AM
16075 $as_echo_n "(cached) " >&6
16076else
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h. */
16079#include <locale.h>
16080int
16081main ()
16082{
16083return LC_MESSAGES
16084 ;
16085 return 0;
16086}
16087_ACEOF
16088if ac_fn_c_try_link "$LINENO"; then :
16089 am_cv_val_LC_MESSAGES=yes
16090else
16091 am_cv_val_LC_MESSAGES=no
16092fi
16093rm -f core conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16095fi
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16097$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16098 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 16099
b879806f 16100$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 16101
b879806f 16102 fi
ce2cded5 16103
ce2cded5 16104
b879806f 16105ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
16106
16107
b879806f 16108# PR 14072
ce2cded5 16109
ce2cded5 16110
b879806f 16111if test -z "$target" ; then
d0ac1c44 16112 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
b879806f
AM
16113fi
16114if test -z "$host" ; then
d0ac1c44 16115 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
b879806f 16116fi
d7040cdb 16117
b879806f 16118# host-specific stuff:
d7040cdb 16119
e184813f 16120ALL_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
16121# If we haven't got the data from the intl directory,
16122# assume NLS is disabled.
16123USE_NLS=no
16124LIBINTL=
16125LIBINTL_DEP=
16126INCINTL=
16127XGETTEXT=
16128GMSGFMT=
16129POSUB=
16130
16131if test -f ../intl/config.intl; then
16132 . ../intl/config.intl
16133fi
81ecdfbb
RW
16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16135$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 16136if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138$as_echo "no" >&6; }
d7040cdb 16139else
81ecdfbb
RW
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16141$as_echo "yes" >&6; }
d7040cdb 16142
81ecdfbb 16143$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
16144
16145
81ecdfbb
RW
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16147$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
16148 # Look for .po and .gmo files in the source directory.
16149 CATALOGS=
16150 XLINGUAS=
16151 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16152 # If there aren't any .gmo files the shell will give us the
16153 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16154 # weeded out.
16155 case "$cat" in *\**)
16156 continue;;
16157 esac
16158 # The quadruple backslash is collapsed to a double backslash
16159 # by the backticks, then collapsed again by the double quotes,
16160 # leaving us with one backslash in the sed expression (right
16161 # before the dot that mustn't act as a wildcard).
16162 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16163 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16164 # The user is allowed to set LINGUAS to a list of languages to
16165 # install catalogs for. If it's empty that means "all of them."
16166 if test "x$LINGUAS" = x; then
16167 CATALOGS="$CATALOGS $cat"
16168 XLINGUAS="$XLINGUAS $lang"
16169 else
16170 case "$LINGUAS" in *$lang*)
16171 CATALOGS="$CATALOGS $cat"
16172 XLINGUAS="$XLINGUAS $lang"
16173 ;;
16174 esac
16175 fi
16176 done
16177 LINGUAS="$XLINGUAS"
81ecdfbb
RW
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16179$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
16180
16181
16182 DATADIRNAME=share
16183
16184 INSTOBJEXT=.mo
16185
16186 GENCAT=gencat
16187
16188 CATOBJEXT=.gmo
16189
16190fi
16191
16192 MKINSTALLDIRS=
16193 if test -n "$ac_aux_dir"; then
16194 case "$ac_aux_dir" in
16195 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16196 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16197 esac
16198 fi
16199 if test -z "$MKINSTALLDIRS"; then
16200 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16201 fi
16202
16203
16204
81ecdfbb
RW
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16206$as_echo_n "checking whether NLS is requested... " >&6; }
16207 # Check whether --enable-nls was given.
16208if test "${enable_nls+set}" = set; then :
16209 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
16210else
16211 USE_NLS=yes
81ecdfbb
RW
16212fi
16213
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16215$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
16216
16217
16218
16219
16220
16221
16222# Prepare PATH_SEPARATOR.
16223# The user is always right.
16224if test "${PATH_SEPARATOR+set}" != set; then
16225 echo "#! /bin/sh" >conf$$.sh
16226 echo "exit 0" >>conf$$.sh
16227 chmod +x conf$$.sh
16228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16229 PATH_SEPARATOR=';'
16230 else
16231 PATH_SEPARATOR=:
16232 fi
16233 rm -f conf$$.sh
16234fi
16235
16236# Find out how to test for executable files. Don't use a zero-byte file,
16237# as systems may use methods other than mode bits to determine executability.
16238cat >conf$$.file <<_ASEOF
16239#! /bin/sh
16240exit 0
16241_ASEOF
16242chmod +x conf$$.file
16243if test -x conf$$.file >/dev/null 2>&1; then
16244 ac_executable_p="test -x"
16245else
16246 ac_executable_p="test -f"
16247fi
16248rm -f conf$$.file
16249
16250# Extract the first word of "msgfmt", so it can be a program name with args.
16251set dummy msgfmt; ac_word=$2
81ecdfbb
RW
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16253$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16254if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 16255 $as_echo_n "(cached) " >&6
d7040cdb
SE
16256else
16257 case "$MSGFMT" in
16258 [\\/]* | ?:[\\/]*)
16259 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16260 ;;
16261 *)
16262 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16263 for ac_dir in $PATH; do
16264 IFS="$ac_save_IFS"
16265 test -z "$ac_dir" && ac_dir=.
16266 for ac_exec_ext in '' $ac_executable_extensions; do
16267 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16268 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16269 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16270 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16271 break 2
16272 fi
16273 fi
16274 done
16275 done
16276 IFS="$ac_save_IFS"
16277 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16278 ;;
16279esac
16280fi
16281MSGFMT="$ac_cv_path_MSGFMT"
16282if test "$MSGFMT" != ":"; then
81ecdfbb
RW
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16284$as_echo "$MSGFMT" >&6; }
d7040cdb 16285else
81ecdfbb
RW
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287$as_echo "no" >&6; }
d7040cdb
SE
16288fi
16289
16290 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16291set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
16292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16294if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 16295 $as_echo_n "(cached) " >&6
d7040cdb
SE
16296else
16297 case $GMSGFMT in
16298 [\\/]* | ?:[\\/]*)
16299 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16300 ;;
16301 *)
16302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303for as_dir in $PATH
16304do
16305 IFS=$as_save_IFS
16306 test -z "$as_dir" && as_dir=.
81ecdfbb 16307 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16309 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16311 break 2
16312 fi
16313done
81ecdfbb
RW
16314 done
16315IFS=$as_save_IFS
d7040cdb
SE
16316
16317 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16318 ;;
16319esac
16320fi
16321GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16322if test -n "$GMSGFMT"; then
81ecdfbb
RW
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16324$as_echo "$GMSGFMT" >&6; }
d7040cdb 16325else
81ecdfbb
RW
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327$as_echo "no" >&6; }
20e95c23 16328fi
42ecbf5e 16329
20e95c23 16330
252b5132 16331
81ecdfbb 16332
d7040cdb
SE
16333# Prepare PATH_SEPARATOR.
16334# The user is always right.
16335if test "${PATH_SEPARATOR+set}" != set; then
16336 echo "#! /bin/sh" >conf$$.sh
16337 echo "exit 0" >>conf$$.sh
16338 chmod +x conf$$.sh
16339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16340 PATH_SEPARATOR=';'
16341 else
16342 PATH_SEPARATOR=:
16343 fi
16344 rm -f conf$$.sh
20e95c23 16345fi
252b5132 16346
d7040cdb
SE
16347# Find out how to test for executable files. Don't use a zero-byte file,
16348# as systems may use methods other than mode bits to determine executability.
16349cat >conf$$.file <<_ASEOF
16350#! /bin/sh
16351exit 0
16352_ASEOF
16353chmod +x conf$$.file
16354if test -x conf$$.file >/dev/null 2>&1; then
16355 ac_executable_p="test -x"
20e95c23 16356else
d7040cdb
SE
16357 ac_executable_p="test -f"
16358fi
16359rm -f conf$$.file
20e95c23 16360
d7040cdb
SE
16361# Extract the first word of "xgettext", so it can be a program name with args.
16362set dummy xgettext; ac_word=$2
81ecdfbb
RW
16363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16364$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16365if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 16366 $as_echo_n "(cached) " >&6
252b5132 16367else
d7040cdb
SE
16368 case "$XGETTEXT" in
16369 [\\/]* | ?:[\\/]*)
16370 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16371 ;;
16372 *)
16373 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16374 for ac_dir in $PATH; do
16375 IFS="$ac_save_IFS"
16376 test -z "$ac_dir" && ac_dir=.
16377 for ac_exec_ext in '' $ac_executable_extensions; do
16378 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16379 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16380 (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
16381 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16382 break 2
16383 fi
16384 fi
16385 done
16386 done
16387 IFS="$ac_save_IFS"
16388 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16389 ;;
16390esac
252b5132 16391fi
d7040cdb
SE
16392XGETTEXT="$ac_cv_path_XGETTEXT"
16393if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16395$as_echo "$XGETTEXT" >&6; }
d5fbea21 16396else
81ecdfbb
RW
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398$as_echo "no" >&6; }
d5fbea21
DJ
16399fi
16400
d7040cdb 16401 rm -f messages.po
d5fbea21 16402
20e95c23 16403
d7040cdb
SE
16404# Prepare PATH_SEPARATOR.
16405# The user is always right.
16406if test "${PATH_SEPARATOR+set}" != set; then
16407 echo "#! /bin/sh" >conf$$.sh
16408 echo "exit 0" >>conf$$.sh
16409 chmod +x conf$$.sh
16410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16411 PATH_SEPARATOR=';'
16412 else
16413 PATH_SEPARATOR=:
16414 fi
16415 rm -f conf$$.sh
16416fi
20e95c23 16417
d7040cdb
SE
16418# Find out how to test for executable files. Don't use a zero-byte file,
16419# as systems may use methods other than mode bits to determine executability.
16420cat >conf$$.file <<_ASEOF
16421#! /bin/sh
16422exit 0
16423_ASEOF
16424chmod +x conf$$.file
16425if test -x conf$$.file >/dev/null 2>&1; then
16426 ac_executable_p="test -x"
16427else
16428 ac_executable_p="test -f"
16429fi
16430rm -f conf$$.file
20e95c23 16431
d7040cdb
SE
16432# Extract the first word of "msgmerge", so it can be a program name with args.
16433set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16435$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16436if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 16437 $as_echo_n "(cached) " >&6
d7040cdb
SE
16438else
16439 case "$MSGMERGE" in
16440 [\\/]* | ?:[\\/]*)
16441 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16442 ;;
16443 *)
16444 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16445 for ac_dir in $PATH; do
16446 IFS="$ac_save_IFS"
16447 test -z "$ac_dir" && ac_dir=.
16448 for ac_exec_ext in '' $ac_executable_extensions; do
16449 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16450 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16451 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16452 break 2
16453 fi
16454 fi
16455 done
16456 done
16457 IFS="$ac_save_IFS"
16458 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16459 ;;
16460esac
16461fi
16462MSGMERGE="$ac_cv_path_MSGMERGE"
16463if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16465$as_echo "$MSGMERGE" >&6; }
d7040cdb 16466else
81ecdfbb
RW
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468$as_echo "no" >&6; }
d7040cdb 16469fi
20e95c23
DJ
16470
16471
d7040cdb
SE
16472 if test "$GMSGFMT" != ":"; then
16473 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16474 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16475 : ;
16476 else
16477 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16479$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16480 GMSGFMT=":"
16481 fi
16482 fi
20e95c23 16483
d7040cdb
SE
16484 if test "$XGETTEXT" != ":"; then
16485 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16486 (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
16487 : ;
16488 else
81ecdfbb
RW
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16490$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16491 XGETTEXT=":"
16492 fi
16493 rm -f messages.po
20e95c23 16494 fi
42ecbf5e 16495
81ecdfbb 16496 ac_config_commands="$ac_config_commands default-1"
252b5132 16497
42ecbf5e 16498
252b5132 16499
42ecbf5e
DJ
16500
16501
d7040cdb 16502for ac_prog in 'bison -y' byacc
20e95c23 16503do
d7040cdb
SE
16504 # Extract the first word of "$ac_prog", so it can be a program name with args.
16505set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16508if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 16509 $as_echo_n "(cached) " >&6
20e95c23 16510else
d7040cdb
SE
16511 if test -n "$YACC"; then
16512 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16513else
d7040cdb
SE
16514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515for as_dir in $PATH
16516do
16517 IFS=$as_save_IFS
16518 test -z "$as_dir" && as_dir=.
81ecdfbb 16519 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16521 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16523 break 2
16524 fi
16525done
81ecdfbb
RW
16526 done
16527IFS=$as_save_IFS
42ecbf5e 16528
42ecbf5e 16529fi
e5a52504 16530fi
d7040cdb
SE
16531YACC=$ac_cv_prog_YACC
16532if test -n "$YACC"; then
81ecdfbb
RW
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16534$as_echo "$YACC" >&6; }
42ecbf5e 16535else
81ecdfbb
RW
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537$as_echo "no" >&6; }
42ecbf5e 16538fi
252b5132 16539
81ecdfbb 16540
d7040cdb 16541 test -n "$YACC" && break
42ecbf5e 16542done
d7040cdb 16543test -n "$YACC" || YACC="yacc"
d15b04bd 16544
d7040cdb
SE
16545for ac_prog in flex lex
16546do
16547 # Extract the first word of "$ac_prog", so it can be a program name with args.
16548set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16550$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16551if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 16552 $as_echo_n "(cached) " >&6
d15b04bd 16553else
d7040cdb
SE
16554 if test -n "$LEX"; then
16555 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16556else
16557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16558for as_dir in $PATH
16559do
16560 IFS=$as_save_IFS
16561 test -z "$as_dir" && as_dir=.
81ecdfbb 16562 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16564 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16566 break 2
16567 fi
16568done
81ecdfbb
RW
16569 done
16570IFS=$as_save_IFS
d7040cdb
SE
16571
16572fi
16573fi
16574LEX=$ac_cv_prog_LEX
16575if test -n "$LEX"; then
81ecdfbb
RW
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16577$as_echo "$LEX" >&6; }
d7040cdb 16578else
81ecdfbb
RW
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580$as_echo "no" >&6; }
d15b04bd 16581fi
e5a52504 16582
81ecdfbb 16583
d7040cdb
SE
16584 test -n "$LEX" && break
16585done
16586test -n "$LEX" || LEX=":"
42ecbf5e 16587
3d961d0d
AM
16588case "$LEX" in
16589 :|*"missing "*) ;;
16590 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16591%%
16592a { ECHO; }
16593b { REJECT; }
16594c { yymore (); }
16595d { yyless (1); }
d0ac1c44
SM
16596e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16597 yyless ((input () != 0)); }
81ecdfbb
RW
16598f { unput (yytext[0]); }
16599. { BEGIN INITIAL; }
16600%%
16601#ifdef YYTEXT_POINTER
16602extern char *yytext;
d7040cdb 16603#endif
42ecbf5e 16604int
81ecdfbb 16605main (void)
42ecbf5e 16606{
81ecdfbb 16607 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16608}
16609_ACEOF
81ecdfbb
RW
16610{ { ac_try="$LEX conftest.l"
16611case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16616$as_echo "$ac_try_echo"; } >&5
16617 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16618 ac_status=$?
81ecdfbb
RW
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; }
16621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16622$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 16623if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 16624 $as_echo_n "(cached) " >&6
42ecbf5e 16625else
42ecbf5e 16626
81ecdfbb
RW
16627if test -f lex.yy.c; then
16628 ac_cv_prog_lex_root=lex.yy
16629elif test -f lexyy.c; then
16630 ac_cv_prog_lex_root=lexyy
16631else
d0ac1c44 16632 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16633fi
42ecbf5e 16634fi
81ecdfbb
RW
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16636$as_echo "$ac_cv_prog_lex_root" >&6; }
16637LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16638
81ecdfbb
RW
16639if test -z "${LEXLIB+set}"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16641$as_echo_n "checking lex library... " >&6; }
d0ac1c44 16642if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 16643 $as_echo_n "(cached) " >&6
252b5132 16644else
20e95c23 16645
81ecdfbb
RW
16646 ac_save_LIBS=$LIBS
16647 ac_cv_lib_lex='none needed'
16648 for ac_lib in '' -lfl -ll; do
16649 LIBS="$ac_lib $ac_save_LIBS"
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651/* end confdefs.h. */
16652`cat $LEX_OUTPUT_ROOT.c`
16653_ACEOF
16654if ac_fn_c_try_link "$LINENO"; then :
16655 ac_cv_lib_lex=$ac_lib
20e95c23 16656fi
81ecdfbb
RW
16657rm -f core conftest.err conftest.$ac_objext \
16658 conftest$ac_exeext conftest.$ac_ext
16659 test "$ac_cv_lib_lex" != 'none needed' && break
16660 done
16661 LIBS=$ac_save_LIBS
20e95c23
DJ
16662
16663fi
81ecdfbb
RW
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16665$as_echo "$ac_cv_lib_lex" >&6; }
16666 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16667fi
20e95c23 16668
20e95c23 16669
81ecdfbb
RW
16670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16671$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 16672if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 16673 $as_echo_n "(cached) " >&6
d7040cdb
SE
16674else
16675 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16676# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16677# not all implementations provide the %pointer and %array declarations.
16678ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16679ac_save_LIBS=$LIBS
81ecdfbb
RW
16680LIBS="$LEXLIB $ac_save_LIBS"
16681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682/* end confdefs.h. */
d0ac1c44
SM
16683
16684 #define YYTEXT_POINTER 1
d7040cdb 16685`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16686_ACEOF
81ecdfbb 16687if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16688 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16689fi
81ecdfbb
RW
16690rm -f core conftest.err conftest.$ac_objext \
16691 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16692LIBS=$ac_save_LIBS
d7040cdb
SE
16693
16694fi
81ecdfbb
RW
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16696$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16697if test $ac_cv_prog_lex_yytext_pointer = yes; then
16698
81ecdfbb 16699$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16700
16701fi
81ecdfbb 16702rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16703 ;;
16704esac
d7040cdb
SE
16705if test "$LEX" = :; then
16706 LEX=${am_missing_run}flex
16707fi
16708
81ecdfbb
RW
16709
16710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16711$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16712 # Check whether --enable-maintainer-mode was given.
16713if test "${enable_maintainer_mode+set}" = set; then :
16714 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16715else
d7040cdb 16716 USE_MAINTAINER_MODE=no
81ecdfbb 16717fi
d7040cdb 16718
81ecdfbb
RW
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16720$as_echo "$USE_MAINTAINER_MODE" >&6; }
16721 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16722 MAINTAINER_MODE_TRUE=
16723 MAINTAINER_MODE_FALSE='#'
16724else
16725 MAINTAINER_MODE_TRUE='#'
16726 MAINTAINER_MODE_FALSE=
252b5132 16727fi
252b5132 16728
d7040cdb
SE
16729 MAINT=$MAINTAINER_MODE_TRUE
16730
16731
81ecdfbb 16732 if false; then
d7040cdb
SE
16733 GENINSRC_NEVER_TRUE=
16734 GENINSRC_NEVER_FALSE='#'
16735else
16736 GENINSRC_NEVER_TRUE='#'
16737 GENINSRC_NEVER_FALSE=
252b5132
RH
16738fi
16739
81ecdfbb
RW
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16741$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 16742if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 16743 $as_echo_n "(cached) " >&6
eccbf555
AM
16744else
16745 echo abfoo >t1
16746 echo cdfoo >t2
da17fe9d 16747 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16748 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16749 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16750 :
16751 else
16752 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16753 fi
16754 fi
16755 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16756 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16757 :
16758 else
16759 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16760 fi
16761 fi
16762 rm t1 t2
16763
16764fi
81ecdfbb
RW
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16766$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16767do_compare="$gcc_cv_prog_cmp_skip"
16768
16769
d7040cdb
SE
16770
16771. ${srcdir}/configure.host
16772
16773
16774
16775
58797674 16776for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16777do :
16778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42ecbf5e 16781 cat >>confdefs.h <<_ACEOF
81ecdfbb 16782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16783_ACEOF
16784
16785fi
16786
252b5132
RH
16787done
16788
5d3236ee
DK
16789for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16790do :
16791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5d3236ee
DK
16794 cat >>confdefs.h <<_ACEOF
16795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796_ACEOF
16797
16798fi
16799
16800done
16801
208a4923
NC
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16803$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
d0ac1c44 16804if ${gcc_cv_header_string+:} false; then :
208a4923
NC
16805 $as_echo_n "(cached) " >&6
16806else
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h. */
16809#include <string.h>
16810#include <strings.h>
16811int
16812main ()
16813{
16814
16815 ;
16816 return 0;
16817}
16818_ACEOF
16819if ac_fn_c_try_compile "$LINENO"; then :
16820 gcc_cv_header_string=yes
16821else
16822 gcc_cv_header_string=no
16823fi
16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825fi
16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16827$as_echo "$gcc_cv_header_string" >&6; }
16828if test $gcc_cv_header_string = yes; then
16829
16830$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16831
16832fi
16833
44350750 16834for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16835do :
16836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16838if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42ecbf5e 16839 cat >>confdefs.h <<_ACEOF
81ecdfbb 16840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16841_ACEOF
252b5132 16842
252b5132
RH
16843fi
16844done
16845
88ba72a2 16846for ac_func in open lseek close
5d3236ee
DK
16847do :
16848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16850if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5d3236ee
DK
16851 cat >>confdefs.h <<_ACEOF
16852#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16853_ACEOF
16854
16855fi
16856done
16857
252b5132 16858ac_header_dirent=no
42ecbf5e 16859for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16860 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16862$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 16863if eval \${$as_ac_Header+:} false; then :
81ecdfbb
RW
16864 $as_echo_n "(cached) " >&6
16865else
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16867/* end confdefs.h. */
252b5132
RH
16868#include <sys/types.h>
16869#include <$ac_hdr>
42ecbf5e
DJ
16870
16871int
16872main ()
16873{
16874if ((DIR *) 0)
16875return 0;
16876 ;
16877 return 0;
16878}
16879_ACEOF
81ecdfbb 16880if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16881 eval "$as_ac_Header=yes"
16882else
81ecdfbb 16883 eval "$as_ac_Header=no"
42ecbf5e 16884fi
81ecdfbb 16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16886fi
81ecdfbb
RW
16887eval ac_res=\$$as_ac_Header
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16889$as_echo "$ac_res" >&6; }
d0ac1c44 16890if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42ecbf5e 16891 cat >>confdefs.h <<_ACEOF
81ecdfbb 16892#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16893_ACEOF
16894
16895ac_header_dirent=$ac_hdr; break
d15b04bd 16896fi
42ecbf5e 16897
d15b04bd
L
16898done
16899# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16900if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16902$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 16903if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 16904 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16905else
16906 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16908/* end confdefs.h. */
16909
81ecdfbb
RW
16910/* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16913#ifdef __cplusplus
16914extern "C"
16915#endif
42ecbf5e
DJ
16916char opendir ();
16917int
16918main ()
16919{
81ecdfbb 16920return opendir ();
42ecbf5e
DJ
16921 ;
16922 return 0;
16923}
16924_ACEOF
81ecdfbb
RW
16925for ac_lib in '' dir; do
16926 if test -z "$ac_lib"; then
16927 ac_res="none required"
16928 else
16929 ac_res=-l$ac_lib
42ecbf5e 16930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16931 fi
16932 if ac_fn_c_try_link "$LINENO"; then :
16933 ac_cv_search_opendir=$ac_res
16934fi
16935rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext
d0ac1c44 16937 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
16938 break
16939fi
16940done
d0ac1c44 16941if ${ac_cv_search_opendir+:} false; then :
e5a52504 16942
42ecbf5e 16943else
81ecdfbb 16944 ac_cv_search_opendir=no
252b5132 16945fi
81ecdfbb 16946rm conftest.$ac_ext
42ecbf5e
DJ
16947LIBS=$ac_func_search_save_LIBS
16948fi
81ecdfbb
RW
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16950$as_echo "$ac_cv_search_opendir" >&6; }
16951ac_res=$ac_cv_search_opendir
16952if test "$ac_res" != no; then :
16953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16954
d15b04bd 16955fi
252b5132
RH
16956
16957else
81ecdfbb
RW
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16959$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 16960if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 16961 $as_echo_n "(cached) " >&6
252b5132 16962else
42ecbf5e 16963 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16965/* end confdefs.h. */
16966
81ecdfbb
RW
16967/* Override any GCC internal prototype to avoid an error.
16968 Use char because int might match the return type of a GCC
16969 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16970#ifdef __cplusplus
16971extern "C"
16972#endif
42ecbf5e
DJ
16973char opendir ();
16974int
16975main ()
16976{
81ecdfbb 16977return opendir ();
42ecbf5e
DJ
16978 ;
16979 return 0;
16980}
16981_ACEOF
81ecdfbb
RW
16982for ac_lib in '' x; do
16983 if test -z "$ac_lib"; then
16984 ac_res="none required"
16985 else
16986 ac_res=-l$ac_lib
42ecbf5e 16987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16988 fi
16989 if ac_fn_c_try_link "$LINENO"; then :
16990 ac_cv_search_opendir=$ac_res
16991fi
16992rm -f core conftest.err conftest.$ac_objext \
16993 conftest$ac_exeext
d0ac1c44 16994 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
16995 break
16996fi
16997done
d0ac1c44 16998if ${ac_cv_search_opendir+:} false; then :
252b5132 16999
42ecbf5e 17000else
81ecdfbb 17001 ac_cv_search_opendir=no
252b5132 17002fi
81ecdfbb 17003rm conftest.$ac_ext
42ecbf5e 17004LIBS=$ac_func_search_save_LIBS
252b5132 17005fi
81ecdfbb
RW
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17007$as_echo "$ac_cv_search_opendir" >&6; }
17008ac_res=$ac_cv_search_opendir
17009if test "$ac_res" != no; then :
17010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 17011
d15b04bd 17012fi
252b5132
RH
17013
17014fi
17015
17016
d0ac1c44
SM
17017
17018
17019
17020 for ac_header in $ac_header_list
2aec968d
L
17021do :
17022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0ac1c44
SM
17023ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17024"
17025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2aec968d
L
17026 cat >>confdefs.h <<_ACEOF
17027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028_ACEOF
17029
17030fi
17031
17032done
17033
d0ac1c44
SM
17034
17035
17036
17037
17038
17039
17040
2aec968d
L
17041for ac_func in getpagesize
17042do :
17043 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d0ac1c44 17044if test "x$ac_cv_func_getpagesize" = xyes; then :
2aec968d
L
17045 cat >>confdefs.h <<_ACEOF
17046#define HAVE_GETPAGESIZE 1
17047_ACEOF
17048
17049fi
17050done
17051
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17053$as_echo_n "checking for working mmap... " >&6; }
d0ac1c44 17054if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
2aec968d
L
17055 $as_echo_n "(cached) " >&6
17056else
17057 if test "$cross_compiling" = yes; then :
17058 ac_cv_func_mmap_fixed_mapped=no
17059else
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061/* end confdefs.h. */
17062$ac_includes_default
17063/* malloc might have been renamed as rpl_malloc. */
17064#undef malloc
17065
17066/* Thanks to Mike Haertel and Jim Avera for this test.
17067 Here is a matrix of mmap possibilities:
17068 mmap private not fixed
17069 mmap private fixed at somewhere currently unmapped
17070 mmap private fixed at somewhere already mapped
17071 mmap shared not fixed
17072 mmap shared fixed at somewhere currently unmapped
17073 mmap shared fixed at somewhere already mapped
17074 For private mappings, we should verify that changes cannot be read()
17075 back from the file, nor mmap's back from the file at a different
17076 address. (There have been systems where private was not correctly
17077 implemented like the infamous i386 svr4.0, and systems where the
17078 VM page cache was not coherent with the file system buffer cache
17079 like early versions of FreeBSD and possibly contemporary NetBSD.)
17080 For shared mappings, we should conversely verify that changes get
17081 propagated back to all the places they're supposed to be.
17082
17083 Grep wants private fixed already mapped.
17084 The main things grep needs to know about mmap are:
17085 * does it exist and is it safe to write into the mmap'd area
17086 * how to use it (BSD variants) */
17087
17088#include <fcntl.h>
17089#include <sys/mman.h>
17090
17091#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17092char *malloc ();
17093#endif
17094
17095/* This mess was copied from the GNU getpagesize.h. */
17096#ifndef HAVE_GETPAGESIZE
2aec968d
L
17097# ifdef _SC_PAGESIZE
17098# define getpagesize() sysconf(_SC_PAGESIZE)
17099# else /* no _SC_PAGESIZE */
17100# ifdef HAVE_SYS_PARAM_H
17101# include <sys/param.h>
17102# ifdef EXEC_PAGESIZE
17103# define getpagesize() EXEC_PAGESIZE
17104# else /* no EXEC_PAGESIZE */
17105# ifdef NBPG
17106# define getpagesize() NBPG * CLSIZE
17107# ifndef CLSIZE
17108# define CLSIZE 1
17109# endif /* no CLSIZE */
17110# else /* no NBPG */
17111# ifdef NBPC
17112# define getpagesize() NBPC
17113# else /* no NBPC */
17114# ifdef PAGESIZE
17115# define getpagesize() PAGESIZE
17116# endif /* PAGESIZE */
17117# endif /* no NBPC */
17118# endif /* no NBPG */
17119# endif /* no EXEC_PAGESIZE */
17120# else /* no HAVE_SYS_PARAM_H */
17121# define getpagesize() 8192 /* punt totally */
17122# endif /* no HAVE_SYS_PARAM_H */
17123# endif /* no _SC_PAGESIZE */
17124
17125#endif /* no HAVE_GETPAGESIZE */
17126
17127int
17128main ()
17129{
17130 char *data, *data2, *data3;
d0ac1c44 17131 const char *cdata2;
2aec968d 17132 int i, pagesize;
d0ac1c44 17133 int fd, fd2;
2aec968d
L
17134
17135 pagesize = getpagesize ();
17136
17137 /* First, make a file with some known garbage in it. */
17138 data = (char *) malloc (pagesize);
17139 if (!data)
17140 return 1;
17141 for (i = 0; i < pagesize; ++i)
17142 *(data + i) = rand ();
17143 umask (0);
17144 fd = creat ("conftest.mmap", 0600);
17145 if (fd < 0)
d0ac1c44 17146 return 2;
2aec968d 17147 if (write (fd, data, pagesize) != pagesize)
d0ac1c44 17148 return 3;
2aec968d
L
17149 close (fd);
17150
d0ac1c44
SM
17151 /* Next, check that the tail of a page is zero-filled. File must have
17152 non-zero length, otherwise we risk SIGBUS for entire page. */
17153 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17154 if (fd2 < 0)
17155 return 4;
17156 cdata2 = "";
17157 if (write (fd2, cdata2, 1) != 1)
17158 return 5;
17159 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17160 if (data2 == MAP_FAILED)
17161 return 6;
17162 for (i = 0; i < pagesize; ++i)
17163 if (*(data2 + i))
17164 return 7;
17165 close (fd2);
17166 if (munmap (data2, pagesize))
17167 return 8;
17168
2aec968d
L
17169 /* Next, try to mmap the file at a fixed address which already has
17170 something else allocated at it. If we can, also make sure that
17171 we see the same garbage. */
17172 fd = open ("conftest.mmap", O_RDWR);
17173 if (fd < 0)
d0ac1c44 17174 return 9;
2aec968d
L
17175 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17176 MAP_PRIVATE | MAP_FIXED, fd, 0L))
d0ac1c44 17177 return 10;
2aec968d
L
17178 for (i = 0; i < pagesize; ++i)
17179 if (*(data + i) != *(data2 + i))
d0ac1c44 17180 return 11;
2aec968d
L
17181
17182 /* Finally, make sure that changes to the mapped area do not
17183 percolate back to the file as seen by read(). (This is a bug on
17184 some variants of i386 svr4.0.) */
17185 for (i = 0; i < pagesize; ++i)
17186 *(data2 + i) = *(data2 + i) + 1;
17187 data3 = (char *) malloc (pagesize);
17188 if (!data3)
d0ac1c44 17189 return 12;
2aec968d 17190 if (read (fd, data3, pagesize) != pagesize)
d0ac1c44 17191 return 13;
2aec968d
L
17192 for (i = 0; i < pagesize; ++i)
17193 if (*(data + i) != *(data3 + i))
d0ac1c44 17194 return 14;
2aec968d
L
17195 close (fd);
17196 return 0;
17197}
17198_ACEOF
17199if ac_fn_c_try_run "$LINENO"; then :
17200 ac_cv_func_mmap_fixed_mapped=yes
17201else
17202 ac_cv_func_mmap_fixed_mapped=no
17203fi
17204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17205 conftest.$ac_objext conftest.beam conftest.$ac_ext
17206fi
17207
17208fi
17209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17210$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17211if test $ac_cv_func_mmap_fixed_mapped = yes; then
17212
17213$as_echo "#define HAVE_MMAP 1" >>confdefs.h
17214
17215fi
d0ac1c44 17216rm -f conftest.mmap conftest.txt
2aec968d
L
17217
17218
5d3236ee
DK
17219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17220$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 17221if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17222 $as_echo_n "(cached) " >&6
17223else
17224 ac_func_search_save_LIBS=$LIBS
17225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226/* end confdefs.h. */
17227
17228/* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17231#ifdef __cplusplus
17232extern "C"
17233#endif
17234char dlopen ();
17235int
17236main ()
17237{
17238return dlopen ();
17239 ;
17240 return 0;
17241}
17242_ACEOF
17243for ac_lib in '' dl; do
17244 if test -z "$ac_lib"; then
17245 ac_res="none required"
17246 else
17247 ac_res=-l$ac_lib
17248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17249 fi
17250 if ac_fn_c_try_link "$LINENO"; then :
17251 ac_cv_search_dlopen=$ac_res
17252fi
17253rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext
d0ac1c44 17255 if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17256 break
17257fi
17258done
d0ac1c44 17259if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17260
17261else
17262 ac_cv_search_dlopen=no
17263fi
17264rm conftest.$ac_ext
17265LIBS=$ac_func_search_save_LIBS
17266fi
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17268$as_echo "$ac_cv_search_dlopen" >&6; }
17269ac_res=$ac_cv_search_dlopen
17270if test "$ac_res" != no; then :
17271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17272
3917d5d5
DK
17273fi
17274
b879806f 17275 if test x$plugins = xyes; then
5d3236ee
DK
17276 ENABLE_PLUGINS_TRUE=
17277 ENABLE_PLUGINS_FALSE='#'
17278else
17279 ENABLE_PLUGINS_TRUE='#'
17280 ENABLE_PLUGINS_FALSE=
17281fi
17282
17283
02ecc8e9
L
17284# Check whether --enable-initfini-array was given.
17285if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
17286 enableval=$enable_initfini_array; case "${enableval}" in
17287 yes|no) ;;
d0ac1c44 17288 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
26e3a0c9 17289 esac
02ecc8e9 17290else
26e3a0c9 17291 enable_initfini_array=yes
02ecc8e9
L
17292fi
17293
17294
17295if test $enable_initfini_array = yes; then
17296
17297$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
17298
17299fi
17300
81ecdfbb
RW
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17302$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 17303if ${ld_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 17304 $as_echo_n "(cached) " >&6
34875e64 17305else
81ecdfbb 17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17307/* end confdefs.h. */
34875e64 17308#include <unistd.h>
42ecbf5e
DJ
17309int
17310main ()
17311{
34875e64 17312extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
17313 ;
17314 return 0;
17315}
17316_ACEOF
81ecdfbb 17317if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
17318 ld_cv_decl_getopt_unistd_h=yes
17319else
81ecdfbb 17320 ld_cv_decl_getopt_unistd_h=no
34875e64 17321fi
81ecdfbb 17322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
17323fi
17324
81ecdfbb
RW
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17326$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 17327if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 17328
81ecdfbb 17329$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
17330
17331fi
42ecbf5e 17332
252b5132
RH
17333
17334case "${host}" in
a8100d5b 17335*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 17336
81ecdfbb 17337$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
17338 ;;
17339esac
17340
81ecdfbb 17341ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
d0ac1c44 17342if test "x$ac_cv_have_decl_strstr" = xyes; then :
81ecdfbb 17343 ac_have_decl=1
252b5132 17344else
81ecdfbb
RW
17345 ac_have_decl=0
17346fi
502bdb00 17347
81ecdfbb
RW
17348cat >>confdefs.h <<_ACEOF
17349#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 17350_ACEOF
81ecdfbb 17351ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
d0ac1c44 17352if test "x$ac_cv_have_decl_free" = xyes; then :
81ecdfbb 17353 ac_have_decl=1
252b5132 17354else
81ecdfbb 17355 ac_have_decl=0
252b5132
RH
17356fi
17357
502bdb00 17358cat >>confdefs.h <<_ACEOF
81ecdfbb 17359#define HAVE_DECL_FREE $ac_have_decl
502bdb00 17360_ACEOF
81ecdfbb 17361ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
d0ac1c44 17362if test "x$ac_cv_have_decl_sbrk" = xyes; then :
81ecdfbb
RW
17363 ac_have_decl=1
17364else
17365 ac_have_decl=0
17366fi
42ecbf5e 17367
81ecdfbb
RW
17368cat >>confdefs.h <<_ACEOF
17369#define HAVE_DECL_SBRK $ac_have_decl
17370_ACEOF
17371ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d0ac1c44 17372if test "x$ac_cv_have_decl_getenv" = xyes; then :
81ecdfbb
RW
17373 ac_have_decl=1
17374else
17375 ac_have_decl=0
17376fi
502bdb00 17377
81ecdfbb
RW
17378cat >>confdefs.h <<_ACEOF
17379#define HAVE_DECL_GETENV $ac_have_decl
17380_ACEOF
17381ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 17382if test "x$ac_cv_have_decl_environ" = xyes; then :
81ecdfbb 17383 ac_have_decl=1
502bdb00 17384else
81ecdfbb
RW
17385 ac_have_decl=0
17386fi
17387
17388cat >>confdefs.h <<_ACEOF
17389#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 17390_ACEOF
252b5132 17391
252b5132 17392
1ff6de03
NA
17393# Link in zlib if we can. This allows us to read and write
17394# compressed CTF sections.
17395
17396 # Use the system's zlib library.
17397 zlibdir="-L\$(top_builddir)/../zlib"
17398 zlibinc="-I\$(top_srcdir)/../zlib"
17399
17400# Check whether --with-system-zlib was given.
17401if test "${with_system_zlib+set}" = set; then :
17402 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17403 zlibdir=
17404 zlibinc=
17405 fi
17406
17407fi
17408
17409
17410
17411
17412
597e2591
ILT
17413# When converting linker scripts into strings for use in emulation
17414# files, use astring.sed if the compiler supports ANSI string
17415# concatenation, or ostring.sed otherwise. This is to support the
17416# broken Microsoft MSVC compiler, which limits the length of string
17417# constants, while still supporting pre-ANSI compilers which do not
17418# support string concatenation.
81ecdfbb
RW
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17420$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
d0ac1c44 17421if ${ld_cv_string_concatenation+:} false; then :
81ecdfbb 17422 $as_echo_n "(cached) " >&6
42ecbf5e 17423else
81ecdfbb 17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17425/* end confdefs.h. */
81ecdfbb 17426
314e9a4e
L
17427int
17428main ()
17429{
81ecdfbb 17430char *a = "a" "a";
314e9a4e
L
17431 ;
17432 return 0;
17433}
17434_ACEOF
81ecdfbb
RW
17435if ac_fn_c_try_compile "$LINENO"; then :
17436 ld_cv_string_concatenation=yes
314e9a4e 17437else
81ecdfbb 17438 ld_cv_string_concatenation=no
314e9a4e 17439fi
81ecdfbb 17440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17441fi
81ecdfbb
RW
17442
17443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17444$as_echo "$ld_cv_string_concatenation" >&6; }
17445if test "$ld_cv_string_concatenation" = "yes"; then
17446 STRINGIFY=astring.sed
17447else
17448 STRINGIFY=ostring.sed
314e9a4e 17449fi
81ecdfbb
RW
17450
17451
17452# target-specific stuff:
17453
17454all_targets=
17455EMUL=
17456all_emuls=
17457all_emul_extras=
17458all_libpath=
50ff67e6 17459TDIRS=
81ecdfbb 17460
bf9ef603 17461# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17462# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17463if test x${want64} = xfalse; then
17464 # The cast to long int works around a bug in the HP C Compiler
17465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17467# This bug is HP SR number 8606223364.
17468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17469$as_echo_n "checking size of void *... " >&6; }
d0ac1c44 17470if ${ac_cv_sizeof_void_p+:} false; then :
bf9ef603
RM
17471 $as_echo_n "(cached) " >&6
17472else
17473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17474
17475else
17476 if test "$ac_cv_type_void_p" = yes; then
17477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
17479as_fn_error 77 "cannot compute sizeof (void *)
17480See \`config.log' for more details" "$LINENO" 5; }
bf9ef603
RM
17481 else
17482 ac_cv_sizeof_void_p=0
17483 fi
17484fi
17485
17486fi
17487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17488$as_echo "$ac_cv_sizeof_void_p" >&6; }
17489
17490
17491
17492cat >>confdefs.h <<_ACEOF
17493#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17494_ACEOF
17495
17496
17497 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17498 want64=true
17499 fi
17500fi
17501
c58212ea
L
17502elf_list_options=FALSE
17503elf_shlib_list_options=FALSE
17504elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17505for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17506do
17507 if test "$targ_alias" = "all"; then
17508 all_targets=true
82d8e420
L
17509 elf_list_options=TRUE
17510 elf_shlib_list_options=TRUE
17511 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17512 else
17513 # Canonicalize the secondary target names.
17514 result=`$ac_config_sub $targ_alias 2>/dev/null`
17515 if test -n "$result"; then
17516 targ=$result
17517 else
17518 targ=$targ_alias
17519 fi
17520
17521 . ${srcdir}/configure.tgt
17522
17523 if test "$targ" = "$target"; then
17524 EMUL=$targ_emul
17525 fi
17526
17527 if test x${want64} = xfalse; then
17528 . ${srcdir}/../bfd/config.bfd
17529 fi
17530
17531 if test x${want64} = xtrue; then
17532 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17533 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17534 fi
17535
17536 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17537 case " $all_emuls " in
8c3fff59
AM
17538 *" e${i}.o "*) ;;
17539 *)
17540 all_emuls="$all_emuls e${i}.o"
17541 eval result=\$tdir_$i
17542 test -z "$result" && result=$targ_alias
50ff67e6
AM
17543 TDIRS="$TDIRS
17544tdir_$i=$result"
c58212ea
L
17545 case "${i}" in
17546 *elf*)
17547 elf_list_options=TRUE
68880f31
CLT
17548 ;;
17549 *)
075a2b89 17550 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
68880f31
CLT
17551 elf_list_options=TRUE
17552 fi
17553 ;;
17554 esac
17555 if test "$elf_list_options" = "TRUE"; then
c40e31a1
AM
17556 source_sh()
17557 {
17558 . $1
17559 }
17560 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea
L
17561 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17562 elf_shlib_list_options=TRUE
17563 fi
17564 if test x${PLT_UNWIND} = xyes; then
17565 elf_plt_unwind_list_options=TRUE
17566 fi
68880f31 17567 fi
c58212ea 17568 ;;
81ecdfbb
RW
17569 esac
17570 done
17571
17572 for i in $targ_emul $targ_extra_libpath; do
17573 case " $all_libpath " in
17574 *" ${i} "*) ;;
17575 *)
17576 if test -z "$all_libpath"; then
17577 all_libpath=${i}
17578 else
17579 all_libpath="$all_libpath ${i}"
17580 fi
17581 ;;
17582 esac
17583 done
17584
17585 for i in $targ_extra_ofiles; do
17586 case " $all_emul_extras " in
17587 *" ${i} "*) ;;
17588 *)
17589 all_emul_extras="$all_emul_extras ${i}"
17590 ;;
17591 esac
17592 done
5063daf7 17593
81ecdfbb
RW
17594 fi
17595done
17596
621ff761 17597if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17598
17599$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17600
17601fi
17602
6734f10a
SB
17603if test "${ac_default_new_dtags}" = unset; then
17604 ac_default_new_dtags=0
17605fi
17606
17607cat >>confdefs.h <<_ACEOF
17608#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17609_ACEOF
17610
17611
647e4d46
L
17612if test "${ac_default_ld_z_relro}" = unset; then
17613 ac_default_ld_z_relro=0
17614fi
17615
17616cat >>confdefs.h <<_ACEOF
17617#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17618_ACEOF
17619
17620
f6aec96d
L
17621if test "${ac_default_ld_z_separate_code}" = unset; then
17622 ac_default_ld_z_separate_code=0
17623fi
17624
17625cat >>confdefs.h <<_ACEOF
17626#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17627_ACEOF
17628
17629
81ecdfbb 17630
2760f24c
RG
17631cat >>confdefs.h <<_ACEOF
17632#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17633_ACEOF
17634
17635
17636
17637cat >>confdefs.h <<_ACEOF
17638#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17639_ACEOF
17640
17641
17642
81ecdfbb 17643
c58212ea
L
17644
17645
17646
50ff67e6 17647
81ecdfbb
RW
17648
17649
17650if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17651 if test x${want64} = xtrue; then
17652 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17653 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17654 else
17655 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17656 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17657 fi
42ecbf5e
DJ
17658else
17659 EMULATION_OFILES=$all_emuls
17660 EMUL_EXTRA_OFILES=$all_emul_extras
17661fi
17662
17663
17664
17665
17666EMULATION_LIBPATH=$all_libpath
17667
17668
17669if test x${enable_static} = xno; then
9165f454 17670 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 17671 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
42ecbf5e
DJ
17672else
17673 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 17674 TESTCTFLIB="../libctf/.libs/libctf.a"
42ecbf5e
DJ
17675fi
17676
17677
87279e3c 17678
42ecbf5e
DJ
17679target_vendor=${target_vendor=$host_vendor}
17680case "$target_vendor" in
17681 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17682 *) EXTRA_SHLIB_EXTENSION= ;;
17683esac
17684
17685case "$target_os" in
17686 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17687esac
17688
17689if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17690
17691cat >>confdefs.h <<_ACEOF
17692#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17693_ACEOF
17694
17695fi
17696
33589acb
AM
17697ac_config_commands="$ac_config_commands default"
17698
17699
108a6f8e
CD
17700
17701
17702
17703
31dd3154 17704
81ecdfbb 17705ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17706
42ecbf5e
DJ
17707cat >confcache <<\_ACEOF
17708# This file is a shell script that caches the results of configure
17709# tests run on this system so they can be shared between configure
17710# scripts and configure runs, see configure's option --config-cache.
17711# It is not useful on other systems. If it contains results you don't
17712# want to keep, you may remove or edit it.
17713#
17714# config.status only pays attention to the cache file if you give it
17715# the --recheck option to rerun configure.
17716#
17717# `ac_cv_env_foo' variables (set or unset) will be overridden when
17718# loading this file, other *unset* `ac_cv_foo' will be assigned the
17719# following values.
17720
17721_ACEOF
17722
17723# The following way of writing the cache mishandles newlines in values,
17724# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17725# So, we kill variables containing newlines.
42ecbf5e
DJ
17726# Ultrix sh set writes to stderr and can't be redirected directly,
17727# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17728(
17729 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17730 eval ac_val=\$$ac_var
17731 case $ac_val in #(
17732 *${as_nl}*)
17733 case $ac_var in #(
17734 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17735$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17736 esac
17737 case $ac_var in #(
17738 _ | IFS | as_nl) ;; #(
17739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17740 *) { eval $ac_var=; unset $ac_var;} ;;
17741 esac ;;
17742 esac
17743 done
17744
42ecbf5e 17745 (set) 2>&1 |
81ecdfbb
RW
17746 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17747 *${as_nl}ac_space=\ *)
17748 # `set' does not quote correctly, so add quotes: double-quote
17749 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17750 sed -n \
17751 "s/'/'\\\\''/g;
17752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17753 ;; #(
42ecbf5e
DJ
17754 *)
17755 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17757 ;;
81ecdfbb
RW
17758 esac |
17759 sort
17760) |
42ecbf5e 17761 sed '
81ecdfbb 17762 /^ac_cv_env_/b end
42ecbf5e 17763 t clear
81ecdfbb 17764 :clear
42ecbf5e
DJ
17765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17766 t end
81ecdfbb
RW
17767 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17768 :end' >>confcache
17769if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17770 if test -w "$cache_file"; then
d0ac1c44 17771 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17773$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
17774 if test ! -f "$cache_file" || test -h "$cache_file"; then
17775 cat confcache >"$cache_file"
17776 else
17777 case $cache_file in #(
17778 */* | ?:*)
17779 mv -f confcache "$cache_file"$$ &&
17780 mv -f "$cache_file"$$ "$cache_file" ;; #(
17781 *)
17782 mv -f confcache "$cache_file" ;;
17783 esac
17784 fi
17785 fi
42ecbf5e 17786 else
81ecdfbb
RW
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17788$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17789 fi
17790fi
17791rm -f confcache
17792
17793test "x$prefix" = xNONE && prefix=$ac_default_prefix
17794# Let make expand exec_prefix.
17795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17796
42ecbf5e
DJ
17797DEFS=-DHAVE_CONFIG_H
17798
17799ac_libobjs=
17800ac_ltlibobjs=
d0ac1c44 17801U=
42ecbf5e
DJ
17802for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17803 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17805 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17807 # will be set to the directory where LIBOBJS objects are built.
17808 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17809 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17810done
17811LIBOBJS=$ac_libobjs
17812
17813LTLIBOBJS=$ac_ltlibobjs
17814
17815
d0ac1c44
SM
17816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17817$as_echo_n "checking that generated files are newer than configure... " >&6; }
17818 if test -n "$am_sleep_pid"; then
17819 # Hide warnings about reused PIDs.
17820 wait $am_sleep_pid 2>/dev/null
17821 fi
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17823$as_echo "done" >&6; }
42ecbf5e 17824if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 17825 as_fn_error $? "conditional \"AMDEP\" was never defined.
81ecdfbb 17826Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17827fi
17828if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 17829 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb
RW
17830Usually this means the macro was only invoked conditionally." "$LINENO" 5
17831fi
17832 if test -n "$EXEEXT"; then
17833 am__EXEEXT_TRUE=
17834 am__EXEEXT_FALSE='#'
17835else
17836 am__EXEEXT_TRUE='#'
17837 am__EXEEXT_FALSE=
42ecbf5e 17838fi
81ecdfbb 17839
64ac50ac 17840if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17841 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
64ac50ac
RW
17842Usually this means the macro was only invoked conditionally." "$LINENO" 5
17843fi
3cb62297 17844if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 17845 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
3cb62297
L
17846Usually this means the macro was only invoked conditionally." "$LINENO" 5
17847fi
42ecbf5e 17848if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17849 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 17850Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17851fi
d5fbea21 17852if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 17853 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 17854Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17855fi
5d3236ee 17856if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
d0ac1c44 17857 as_fn_error $? "conditional \"ENABLE_PLUGINS\" was never defined.
5d3236ee
DK
17858Usually this means the macro was only invoked conditionally." "$LINENO" 5
17859fi
42ecbf5e 17860
d0ac1c44 17861: "${CONFIG_STATUS=./config.status}"
81ecdfbb 17862ac_write_fail=0
42ecbf5e
DJ
17863ac_clean_files_save=$ac_clean_files
17864ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17865{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17866$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17867as_write_fail=0
17868cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17869#! $SHELL
17870# Generated by $as_me.
17871# Run this file to recreate the current configuration.
17872# Compiler output produced by configure, useful for debugging
17873# configure, is in config.log if it exists.
17874
17875debug=false
17876ac_cs_recheck=false
17877ac_cs_silent=false
42ecbf5e 17878
81ecdfbb
RW
17879SHELL=\${CONFIG_SHELL-$SHELL}
17880export SHELL
17881_ASEOF
17882cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17883## -------------------- ##
17884## M4sh Initialization. ##
17885## -------------------- ##
42ecbf5e 17886
81ecdfbb
RW
17887# Be more Bourne compatible
17888DUALCASE=1; export DUALCASE # for MKS sh
17889if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17890 emulate sh
17891 NULLCMD=:
81ecdfbb 17892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17893 # is contrary to our usage. Disable this feature.
17894 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17895 setopt NO_GLOB_SUBST
17896else
17897 case `(set -o) 2>/dev/null` in #(
17898 *posix*) :
17899 set -o posix ;; #(
17900 *) :
17901 ;;
17902esac
42ecbf5e 17903fi
42ecbf5e 17904
81ecdfbb
RW
17905
17906as_nl='
17907'
17908export as_nl
17909# Printing a long string crashes Solaris 7 /usr/bin/printf.
17910as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17913# Prefer a ksh shell builtin over an external printf program on Solaris,
17914# but without wasting forks for bash or zsh.
17915if test -z "$BASH_VERSION$ZSH_VERSION" \
17916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17917 as_echo='print -r --'
17918 as_echo_n='print -rn --'
17919elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17920 as_echo='printf %s\n'
17921 as_echo_n='printf %s'
17922else
17923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17925 as_echo_n='/usr/ucb/echo -n'
17926 else
17927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17928 as_echo_n_body='eval
17929 arg=$1;
17930 case $arg in #(
17931 *"$as_nl"*)
17932 expr "X$arg" : "X\\(.*\\)$as_nl";
17933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17934 esac;
17935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17936 '
17937 export as_echo_n_body
17938 as_echo_n='sh -c $as_echo_n_body as_echo'
17939 fi
17940 export as_echo_body
17941 as_echo='sh -c $as_echo_body as_echo'
17942fi
17943
17944# The user is always right.
17945if test "${PATH_SEPARATOR+set}" != set; then
17946 PATH_SEPARATOR=:
17947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17949 PATH_SEPARATOR=';'
17950 }
42ecbf5e
DJ
17951fi
17952
17953
81ecdfbb
RW
17954# IFS
17955# We need space, tab and new line, in precisely that order. Quoting is
17956# there to prevent editors from complaining about space-tab.
17957# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17958# splitting by setting IFS to empty value.)
17959IFS=" "" $as_nl"
17960
17961# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 17962as_myself=
81ecdfbb
RW
17963case $0 in #((
17964 *[\\/]* ) as_myself=$0 ;;
17965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17966for as_dir in $PATH
17967do
17968 IFS=$as_save_IFS
17969 test -z "$as_dir" && as_dir=.
17970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17971 done
17972IFS=$as_save_IFS
17973
17974 ;;
17975esac
17976# We did not find ourselves, most probably we were run as `sh COMMAND'
17977# in which case we are not to be found in the path.
17978if test "x$as_myself" = x; then
17979 as_myself=$0
17980fi
17981if test ! -f "$as_myself"; then
17982 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17983 exit 1
17984fi
17985
17986# Unset variables that we do not need and which cause bugs (e.g. in
17987# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17988# suppresses any "Segmentation fault" message there. '((' could
17989# trigger a bug in pdksh 5.2.14.
17990for as_var in BASH_ENV ENV MAIL MAILPATH
17991do eval test x\${$as_var+set} = xset \
17992 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17993done
42ecbf5e
DJ
17994PS1='$ '
17995PS2='> '
17996PS4='+ '
17997
17998# NLS nuisances.
81ecdfbb
RW
17999LC_ALL=C
18000export LC_ALL
18001LANGUAGE=C
18002export LANGUAGE
18003
18004# CDPATH.
18005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18006
18007
d0ac1c44
SM
18008# as_fn_error STATUS ERROR [LINENO LOG_FD]
18009# ----------------------------------------
81ecdfbb
RW
18010# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18011# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 18012# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
18013as_fn_error ()
18014{
d0ac1c44
SM
18015 as_status=$1; test $as_status -eq 0 && as_status=1
18016 if test "$4"; then
18017 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18018 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 18019 fi
d0ac1c44 18020 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
18021 as_fn_exit $as_status
18022} # as_fn_error
18023
18024
18025# as_fn_set_status STATUS
18026# -----------------------
18027# Set $? to STATUS, without forking.
18028as_fn_set_status ()
18029{
18030 return $1
18031} # as_fn_set_status
18032
18033# as_fn_exit STATUS
18034# -----------------
18035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18036as_fn_exit ()
18037{
18038 set +e
18039 as_fn_set_status $1
18040 exit $1
18041} # as_fn_exit
18042
18043# as_fn_unset VAR
18044# ---------------
18045# Portably unset VAR.
18046as_fn_unset ()
18047{
18048 { eval $1=; unset $1;}
18049}
18050as_unset=as_fn_unset
18051# as_fn_append VAR VALUE
18052# ----------------------
18053# Append the text in VALUE to the end of the definition contained in VAR. Take
18054# advantage of any shell optimizations that allow amortized linear growth over
18055# repeated appends, instead of the typical quadratic growth present in naive
18056# implementations.
18057if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18058 eval 'as_fn_append ()
18059 {
18060 eval $1+=\$2
18061 }'
18062else
18063 as_fn_append ()
18064 {
18065 eval $1=\$$1\$2
18066 }
18067fi # as_fn_append
18068
18069# as_fn_arith ARG...
18070# ------------------
18071# Perform arithmetic evaluation on the ARGs, and store the result in the
18072# global $as_val. Take advantage of shells that can avoid forks. The arguments
18073# must be portable across $(()) and expr.
18074if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18075 eval 'as_fn_arith ()
18076 {
18077 as_val=$(( $* ))
18078 }'
18079else
18080 as_fn_arith ()
18081 {
18082 as_val=`expr "$@" || test $? -eq 1`
18083 }
18084fi # as_fn_arith
18085
42ecbf5e 18086
81ecdfbb
RW
18087if expr a : '\(a\)' >/dev/null 2>&1 &&
18088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
18089 as_expr=expr
18090else
18091 as_expr=false
18092fi
18093
81ecdfbb 18094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
18095 as_basename=basename
18096else
18097 as_basename=false
18098fi
18099
81ecdfbb
RW
18100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18101 as_dirname=dirname
18102else
18103 as_dirname=false
18104fi
42ecbf5e 18105
81ecdfbb 18106as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
18107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18108 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
18109 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18110$as_echo X/"$0" |
18111 sed '/^.*\/\([^/][^/]*\)\/*$/{
18112 s//\1/
18113 q
18114 }
18115 /^X\/\(\/\/\)$/{
18116 s//\1/
18117 q
18118 }
18119 /^X\/\(\/\).*/{
18120 s//\1/
18121 q
18122 }
18123 s/.*/./; q'`
42ecbf5e 18124
42ecbf5e
DJ
18125# Avoid depending upon Character Ranges.
18126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18129as_cr_digits='0123456789'
18130as_cr_alnum=$as_cr_Letters$as_cr_digits
18131
81ecdfbb
RW
18132ECHO_C= ECHO_N= ECHO_T=
18133case `echo -n x` in #(((((
18134-n*)
18135 case `echo 'xy\c'` in
18136 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18137 xy) ECHO_C='\c';;
18138 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18139 ECHO_T=' ';;
18140 esac;;
18141*)
18142 ECHO_N='-n';;
42ecbf5e 18143esac
252b5132 18144
81ecdfbb
RW
18145rm -f conf$$ conf$$.exe conf$$.file
18146if test -d conf$$.dir; then
18147 rm -f conf$$.dir/conf$$.file
42ecbf5e 18148else
81ecdfbb
RW
18149 rm -f conf$$.dir
18150 mkdir conf$$.dir 2>/dev/null
42ecbf5e 18151fi
81ecdfbb
RW
18152if (echo >conf$$.file) 2>/dev/null; then
18153 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 18154 as_ln_s='ln -s'
81ecdfbb
RW
18155 # ... but there are two gotchas:
18156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 18158 # In both cases, we have to default to `cp -pR'.
81ecdfbb 18159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 18160 as_ln_s='cp -pR'
81ecdfbb
RW
18161 elif ln conf$$.file conf$$ 2>/dev/null; then
18162 as_ln_s=ln
18163 else
d0ac1c44 18164 as_ln_s='cp -pR'
252b5132 18165 fi
e5a52504 18166else
d0ac1c44 18167 as_ln_s='cp -pR'
e5a52504 18168fi
81ecdfbb
RW
18169rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18170rmdir conf$$.dir 2>/dev/null
18171
18172
18173# as_fn_mkdir_p
18174# -------------
18175# Create "$as_dir" as a directory, including parents if necessary.
18176as_fn_mkdir_p ()
18177{
18178
18179 case $as_dir in #(
18180 -*) as_dir=./$as_dir;;
18181 esac
18182 test -d "$as_dir" || eval $as_mkdir_p || {
18183 as_dirs=
18184 while :; do
18185 case $as_dir in #(
18186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18187 *) as_qdir=$as_dir;;
18188 esac
18189 as_dirs="'$as_qdir' $as_dirs"
18190 as_dir=`$as_dirname -- "$as_dir" ||
18191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18192 X"$as_dir" : 'X\(//\)[^/]' \| \
18193 X"$as_dir" : 'X\(//\)$' \| \
18194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18195$as_echo X"$as_dir" |
18196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18197 s//\1/
18198 q
18199 }
18200 /^X\(\/\/\)[^/].*/{
18201 s//\1/
18202 q
18203 }
18204 /^X\(\/\/\)$/{
18205 s//\1/
18206 q
18207 }
18208 /^X\(\/\).*/{
18209 s//\1/
18210 q
18211 }
18212 s/.*/./; q'`
18213 test -d "$as_dir" && break
18214 done
18215 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 18216 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 18217
252b5132 18218
81ecdfbb 18219} # as_fn_mkdir_p
42ecbf5e 18220if mkdir -p . 2>/dev/null; then
81ecdfbb 18221 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
18222else
18223 test -d ./-p && rmdir ./-p
18224 as_mkdir_p=false
18225fi
252b5132 18226
d0ac1c44
SM
18227
18228# as_fn_executable_p FILE
18229# -----------------------
18230# Test if FILE is an executable regular file.
18231as_fn_executable_p ()
18232{
18233 test -f "$1" && test -x "$1"
18234} # as_fn_executable_p
18235as_test_x='test -x'
18236as_executable_p=as_fn_executable_p
252b5132 18237
42ecbf5e
DJ
18238# Sed expression to map a string onto a valid CPP name.
18239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 18240
42ecbf5e
DJ
18241# Sed expression to map a string onto a valid variable name.
18242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 18243
e5a52504 18244
42ecbf5e 18245exec 6>&1
81ecdfbb
RW
18246## ----------------------------------- ##
18247## Main body of $CONFIG_STATUS script. ##
18248## ----------------------------------- ##
18249_ASEOF
18250test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 18251
81ecdfbb
RW
18252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18253# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 18254# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
18255# values after options handling.
18256ac_log="
bb695960 18257This file was extended by ld $as_me 2.33.50, which was
d0ac1c44 18258generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
18259
18260 CONFIG_FILES = $CONFIG_FILES
18261 CONFIG_HEADERS = $CONFIG_HEADERS
18262 CONFIG_LINKS = $CONFIG_LINKS
18263 CONFIG_COMMANDS = $CONFIG_COMMANDS
18264 $ $0 $@
e5a52504 18265
81ecdfbb
RW
18266on `(hostname || uname -n) 2>/dev/null | sed 1q`
18267"
18268
42ecbf5e
DJ
18269_ACEOF
18270
81ecdfbb
RW
18271case $ac_config_files in *"
18272"*) set x $ac_config_files; shift; ac_config_files=$*;;
18273esac
e5a52504 18274
81ecdfbb
RW
18275case $ac_config_headers in *"
18276"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18277esac
42ecbf5e 18278
42ecbf5e 18279
81ecdfbb
RW
18280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18281# Files that config.status was made for.
18282config_files="$ac_config_files"
18283config_headers="$ac_config_headers"
18284config_commands="$ac_config_commands"
42ecbf5e 18285
81ecdfbb 18286_ACEOF
42ecbf5e 18287
81ecdfbb 18288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18289ac_cs_usage="\
81ecdfbb
RW
18290\`$as_me' instantiates files and other configuration actions
18291from templates according to the current configuration. Unless the files
18292and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 18293
81ecdfbb 18294Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
18295
18296 -h, --help print this help, then exit
81ecdfbb 18297 -V, --version print version number and configuration settings, then exit
d0ac1c44 18298 --config print configuration, then exit
81ecdfbb
RW
18299 -q, --quiet, --silent
18300 do not print progress messages
42ecbf5e
DJ
18301 -d, --debug don't remove temporary files
18302 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
18303 --file=FILE[:TEMPLATE]
18304 instantiate the configuration file FILE
18305 --header=FILE[:TEMPLATE]
18306 instantiate the configuration header FILE
42ecbf5e
DJ
18307
18308Configuration files:
18309$config_files
18310
18311Configuration headers:
18312$config_headers
18313
18314Configuration commands:
18315$config_commands
18316
81ecdfbb 18317Report bugs to the package provider."
42ecbf5e 18318
81ecdfbb
RW
18319_ACEOF
18320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18321ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 18322ac_cs_version="\\
bb695960 18323ld config.status 2.33.50
d0ac1c44
SM
18324configured by $0, generated by GNU Autoconf 2.69,
18325 with options \\"\$ac_cs_config\\"
42ecbf5e 18326
d0ac1c44 18327Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
18328This config.status script is free software; the Free Software Foundation
18329gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
18330
18331ac_pwd='$ac_pwd'
18332srcdir='$srcdir'
18333INSTALL='$INSTALL'
18334MKDIR_P='$MKDIR_P'
18335AWK='$AWK'
18336test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
18337_ACEOF
18338
81ecdfbb
RW
18339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
18341ac_need_defaults=:
18342while test $# != 0
18343do
18344 case $1 in
d0ac1c44 18345 --*=?*)
81ecdfbb
RW
18346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 18348 ac_shift=:
252b5132 18349 ;;
d0ac1c44
SM
18350 --*=)
18351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18352 ac_optarg=
18353 ac_shift=:
18354 ;;
81ecdfbb 18355 *)
42ecbf5e
DJ
18356 ac_option=$1
18357 ac_optarg=$2
18358 ac_shift=shift
252b5132 18359 ;;
42ecbf5e 18360 esac
252b5132 18361
42ecbf5e
DJ
18362 case $ac_option in
18363 # Handling of the options.
42ecbf5e
DJ
18364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18365 ac_cs_recheck=: ;;
81ecdfbb
RW
18366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18367 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
18368 --config | --confi | --conf | --con | --co | --c )
18369 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 18370 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
18371 debug=: ;;
18372 --file | --fil | --fi | --f )
18373 $ac_shift
81ecdfbb
RW
18374 case $ac_optarg in
18375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 18376 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
18377 esac
18378 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
18379 ac_need_defaults=false;;
18380 --header | --heade | --head | --hea )
18381 $ac_shift
81ecdfbb
RW
18382 case $ac_optarg in
18383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18384 esac
18385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 18386 ac_need_defaults=false;;
81ecdfbb
RW
18387 --he | --h)
18388 # Conflict between --help and --header
d0ac1c44 18389 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
18390Try \`$0 --help' for more information.";;
18391 --help | --hel | -h )
18392 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
18393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18395 ac_cs_silent=: ;;
252b5132 18396
42ecbf5e 18397 # This is an error.
d0ac1c44 18398 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 18399Try \`$0 --help' for more information." ;;
252b5132 18400
81ecdfbb
RW
18401 *) as_fn_append ac_config_targets " $1"
18402 ac_need_defaults=false ;;
252b5132 18403
42ecbf5e
DJ
18404 esac
18405 shift
18406done
d15b04bd 18407
42ecbf5e 18408ac_configure_extra_args=
e5a52504 18409
42ecbf5e
DJ
18410if $ac_cs_silent; then
18411 exec 6>/dev/null
18412 ac_configure_extra_args="$ac_configure_extra_args --silent"
18413fi
e5a52504 18414
42ecbf5e 18415_ACEOF
81ecdfbb 18416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 18417if \$ac_cs_recheck; then
d0ac1c44 18418 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
18419 shift
18420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18421 CONFIG_SHELL='$SHELL'
18422 export CONFIG_SHELL
18423 exec "\$@"
42ecbf5e
DJ
18424fi
18425
18426_ACEOF
81ecdfbb
RW
18427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18428exec 5>>config.log
18429{
18430 echo
18431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18432## Running $as_me. ##
18433_ASBOX
18434 $as_echo "$ac_log"
18435} >&5
42ecbf5e 18436
81ecdfbb
RW
18437_ACEOF
18438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 18439#
81ecdfbb 18440# INIT-COMMANDS
252b5132 18441#
42ecbf5e 18442AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
18443
18444
18445# The HP-UX ksh and POSIX shell print the target directory to stdout
18446# if CDPATH is set.
18447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18448
18449sed_quote_subst='$sed_quote_subst'
18450double_quote_subst='$double_quote_subst'
18451delay_variable_subst='$delay_variable_subst'
3725885a
RW
18452macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18453macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18454enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18455enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18456pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18457enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18458SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18459ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18460host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18461host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18462host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18463build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18464build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18465build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18466SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18467Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18468GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18469EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18470FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18471LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18472NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18473LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18474max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18475ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18476exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18477lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18478lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18479lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18480reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18481reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18482OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18483deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18484file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18485AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18486AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18487STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18488RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18489old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18490old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18491old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18492lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18493CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18494CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18495compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18496GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18497lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18498lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18499lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18500lt_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"`'
18501objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18502MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18503lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18504lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18505lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18506lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18507lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18508need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18509DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18510NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18511LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18512OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18513OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18514libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18515shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18516extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18517archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18518enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18519export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18520whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18521compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18522old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18523old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18524archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18525archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18526module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18527module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18528with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18529allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18530no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18531hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18532hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18533hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18534hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18535hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18536hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18537hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18538hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18539inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18540link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18541fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18542always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18543export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18544exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18545include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18546prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18547file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18548variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18549need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18550need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18551version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18552runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18553shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18554shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18555libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18556library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18557soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18558install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18559postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18560postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18561finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18562finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18563hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18564sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18565sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18566hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18567enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18568enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18569enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18570old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18571striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18572compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18573predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18574postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18575predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18576postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18577compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18578LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18579reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18580reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18581old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18582compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18583GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18584lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18585lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18586lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18587lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18588lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18589archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18590enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18591export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18592whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18593compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18594old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18595old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18596archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18597archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18598module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18599module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18600with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18601allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18602no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18603hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18604hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18605hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18606hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18607hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18608hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18609hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18610hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18611inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18612link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18613fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18614always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18615export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18616exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18617include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18618prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18619file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18620hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18621compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18622predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18623postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18624predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18625postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18626compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18627
18628LTCC='$LTCC'
18629LTCFLAGS='$LTCFLAGS'
18630compiler='$compiler_DEFAULT'
18631
3725885a
RW
18632# A function that is used when there is no print builtin or printf.
18633func_fallback_echo ()
18634{
18635 eval 'cat <<_LTECHO_EOF
18636\$1
18637_LTECHO_EOF'
18638}
18639
d7040cdb 18640# Quote evaled strings.
3725885a
RW
18641for var in SHELL \
18642ECHO \
18643SED \
d7040cdb
SE
18644GREP \
18645EGREP \
18646FGREP \
18647LD \
18648NM \
18649LN_S \
18650lt_SP2NL \
18651lt_NL2SP \
18652reload_flag \
b214d478 18653OBJDUMP \
d7040cdb
SE
18654deplibs_check_method \
18655file_magic_cmd \
18656AR \
18657AR_FLAGS \
18658STRIP \
18659RANLIB \
18660CC \
18661CFLAGS \
18662compiler \
18663lt_cv_sys_global_symbol_pipe \
18664lt_cv_sys_global_symbol_to_cdecl \
18665lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18666lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18667lt_prog_compiler_no_builtin_flag \
18668lt_prog_compiler_wl \
18669lt_prog_compiler_pic \
18670lt_prog_compiler_static \
18671lt_cv_prog_compiler_c_o \
18672need_locks \
b214d478
SE
18673DSYMUTIL \
18674NMEDIT \
18675LIPO \
18676OTOOL \
18677OTOOL64 \
d7040cdb
SE
18678shrext_cmds \
18679export_dynamic_flag_spec \
18680whole_archive_flag_spec \
18681compiler_needs_object \
18682with_gnu_ld \
18683allow_undefined_flag \
18684no_undefined_flag \
18685hardcode_libdir_flag_spec \
18686hardcode_libdir_flag_spec_ld \
18687hardcode_libdir_separator \
18688fix_srcfile_path \
18689exclude_expsyms \
18690include_expsyms \
18691file_list_spec \
18692variables_saved_for_relink \
18693libname_spec \
18694library_names_spec \
18695soname_spec \
3725885a 18696install_override_mode \
d7040cdb
SE
18697finish_eval \
18698old_striplib \
3cb62297
L
18699striplib \
18700compiler_lib_search_dirs \
18701predep_objects \
18702postdep_objects \
18703predeps \
18704postdeps \
18705compiler_lib_search_path \
18706LD_CXX \
18707reload_flag_CXX \
18708compiler_CXX \
18709lt_prog_compiler_no_builtin_flag_CXX \
18710lt_prog_compiler_wl_CXX \
18711lt_prog_compiler_pic_CXX \
18712lt_prog_compiler_static_CXX \
18713lt_cv_prog_compiler_c_o_CXX \
18714export_dynamic_flag_spec_CXX \
18715whole_archive_flag_spec_CXX \
18716compiler_needs_object_CXX \
18717with_gnu_ld_CXX \
18718allow_undefined_flag_CXX \
18719no_undefined_flag_CXX \
18720hardcode_libdir_flag_spec_CXX \
18721hardcode_libdir_flag_spec_ld_CXX \
18722hardcode_libdir_separator_CXX \
18723fix_srcfile_path_CXX \
18724exclude_expsyms_CXX \
18725include_expsyms_CXX \
18726file_list_spec_CXX \
18727compiler_lib_search_dirs_CXX \
18728predep_objects_CXX \
18729postdep_objects_CXX \
18730predeps_CXX \
18731postdeps_CXX \
18732compiler_lib_search_path_CXX; do
3725885a 18733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18734 *[\\\\\\\`\\"\\\$]*)
3725885a 18735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18736 ;;
18737 *)
18738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18739 ;;
18740 esac
18741done
18742
18743# Double-quote double-evaled strings.
18744for var in reload_cmds \
18745old_postinstall_cmds \
18746old_postuninstall_cmds \
18747old_archive_cmds \
18748extract_expsyms_cmds \
18749old_archive_from_new_cmds \
18750old_archive_from_expsyms_cmds \
18751archive_cmds \
18752archive_expsym_cmds \
18753module_cmds \
18754module_expsym_cmds \
18755export_symbols_cmds \
18756prelink_cmds \
18757postinstall_cmds \
18758postuninstall_cmds \
18759finish_cmds \
18760sys_lib_search_path_spec \
3cb62297
L
18761sys_lib_dlsearch_path_spec \
18762reload_cmds_CXX \
18763old_archive_cmds_CXX \
18764old_archive_from_new_cmds_CXX \
18765old_archive_from_expsyms_cmds_CXX \
18766archive_cmds_CXX \
18767archive_expsym_cmds_CXX \
18768module_cmds_CXX \
18769module_expsym_cmds_CXX \
18770export_symbols_cmds_CXX \
18771prelink_cmds_CXX; do
3725885a 18772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18773 *[\\\\\\\`\\"\\\$]*)
3725885a 18774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18775 ;;
18776 *)
18777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18778 ;;
18779 esac
18780done
18781
d7040cdb
SE
18782ac_aux_dir='$ac_aux_dir'
18783xsi_shell='$xsi_shell'
18784lt_shell_append='$lt_shell_append'
18785
18786# See if we are running on zsh, and set the options which allow our
18787# commands through without removal of \ escapes INIT.
18788if test -n "\${ZSH_VERSION+set}" ; then
18789 setopt NO_GLOB_SUBST
18790fi
18791
18792
18793 PACKAGE='$PACKAGE'
18794 VERSION='$VERSION'
18795 TIMESTAMP='$TIMESTAMP'
18796 RM='$RM'
18797 ofile='$ofile'
18798
18799
18800
3cb62297
L
18801
18802
20e95c23
DJ
18803# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18804 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18805 # from automake.
18806 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18807 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18808 LINGUAS="${LINGUAS-%UNSET%}"
18809
42ecbf5e 18810
33589acb 18811
42ecbf5e
DJ
18812_ACEOF
18813
81ecdfbb 18814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18815
81ecdfbb 18816# Handling of arguments.
42ecbf5e 18817for ac_config_target in $ac_config_targets
252b5132 18818do
81ecdfbb
RW
18819 case $ac_config_target in
18820 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18821 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18822 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 18823 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33589acb 18824 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
18825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18826 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18827
d0ac1c44 18828 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18829 esac
18830done
18831
81ecdfbb 18832
42ecbf5e
DJ
18833# If the user did not use the arguments to specify the items to instantiate,
18834# then the envvar interface is used. Set only those that are not.
18835# We use the long form for the default assignment because of an extremely
18836# bizarre bug on SunOS 4.1.3.
18837if $ac_need_defaults; then
18838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18841fi
18842
18843# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18844# simply because there is no reason against having it here, and in addition,
42ecbf5e 18845# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18846# Hook for its removal unless debugging.
18847# Note that there is a small window in which the directory will not be cleaned:
18848# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18849$debug ||
18850{
d0ac1c44 18851 tmp= ac_tmp=
81ecdfbb 18852 trap 'exit_status=$?
d0ac1c44
SM
18853 : "${ac_tmp:=$tmp}"
18854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
18855' 0
18856 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18857}
42ecbf5e 18858# Create a (secure) tmp directory for tmp files.
e5a52504 18859
42ecbf5e 18860{
81ecdfbb 18861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 18862 test -d "$tmp"
42ecbf5e
DJ
18863} ||
18864{
81ecdfbb
RW
18865 tmp=./conf$$-$RANDOM
18866 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
18867} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18868ac_tmp=$tmp
81ecdfbb
RW
18869
18870# Set up the scripts for CONFIG_FILES section.
18871# No need to generate them if there are no CONFIG_FILES.
18872# This happens for instance with `./config.status config.h'.
18873if test -n "$CONFIG_FILES"; then
18874
50ff67e6 18875
81ecdfbb
RW
18876ac_cr=`echo X | tr X '\015'`
18877# On cygwin, bash can eat \r inside `` if the user requested igncr.
18878# But we know of no other shell where ac_cr would be empty at this
18879# point, so we can use a bashism as a fallback.
18880if test "x$ac_cr" = x; then
18881 eval ac_cr=\$\'\\r\'
18882fi
18883ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18884if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 18885 ac_cs_awk_cr='\\r'
81ecdfbb
RW
18886else
18887 ac_cs_awk_cr=$ac_cr
18888fi
18889
d0ac1c44 18890echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
18891_ACEOF
18892
e5a52504 18893
81ecdfbb
RW
18894{
18895 echo "cat >conf$$subs.awk <<_ACEOF" &&
18896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18897 echo "_ACEOF"
18898} >conf$$subs.sh ||
d0ac1c44
SM
18899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18900ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
18901ac_delim='%!_!# '
18902for ac_last_try in false false false false false :; do
18903 . ./conf$$subs.sh ||
d0ac1c44 18904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18905
18906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18907 if test $ac_delim_n = $ac_delim_num; then
18908 break
18909 elif $ac_last_try; then
d0ac1c44 18910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18911 else
18912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18913 fi
18914done
18915rm -f conf$$subs.sh
18916
18917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18918cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
18919_ACEOF
18920sed -n '
18921h
18922s/^/S["/; s/!.*/"]=/
18923p
18924g
18925s/^[^!]*!//
18926:repl
18927t repl
18928s/'"$ac_delim"'$//
18929t delim
18930:nl
18931h
d0ac1c44 18932s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18933t more1
18934s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18935p
18936n
18937b repl
18938:more1
18939s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18940p
18941g
18942s/.\{148\}//
18943t nl
18944:delim
18945h
d0ac1c44 18946s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18947t more2
18948s/["\\]/\\&/g; s/^/"/; s/$/"/
18949p
18950b
18951:more2
18952s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18953p
18954g
18955s/.\{148\}//
18956t delim
18957' <conf$$subs.awk | sed '
18958/^[^""]/{
18959 N
18960 s/\n//
18961}
18962' >>$CONFIG_STATUS || ac_write_fail=1
18963rm -f conf$$subs.awk
18964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18965_ACAWK
d0ac1c44 18966cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
18967 for (key in S) S_is_set[key] = 1
18968 FS = "\a"
50ff67e6 18969
81ecdfbb
RW
18970}
18971{
18972 line = $ 0
18973 nfields = split(line, field, "@")
18974 substed = 0
18975 len = length(field[1])
18976 for (i = 2; i < nfields; i++) {
18977 key = field[i]
18978 keylen = length(key)
18979 if (S_is_set[key]) {
18980 value = S[key]
18981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18982 len += length(value) + length(field[++i])
18983 substed = 1
18984 } else
18985 len += 1 + keylen
18986 }
50ff67e6 18987
81ecdfbb
RW
18988 print line
18989}
50ff67e6 18990
81ecdfbb
RW
18991_ACAWK
18992_ACEOF
18993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18994if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18996else
18997 cat
d0ac1c44
SM
18998fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e 19000_ACEOF
d15b04bd 19001
d0ac1c44
SM
19002# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19003# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19004# trailing colons and then remove the whole line if VPATH becomes empty
19005# (actually we leave an empty line to preserve line numbers).
19006if test "x$srcdir" = x.; then
d0ac1c44
SM
19007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19008h
19009s///
19010s/^/:/
19011s/[ ]*$/:/
19012s/:\$(srcdir):/:/g
19013s/:\${srcdir}:/:/g
19014s/:@srcdir@:/:/g
19015s/^:*//
81ecdfbb 19016s/:*$//
d0ac1c44
SM
19017x
19018s/\(=[ ]*\).*/\1/
19019G
19020s/\n//
81ecdfbb
RW
19021s/^[^=]*=[ ]*$//
19022}'
19023fi
19024
19025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19026fi # test -n "$CONFIG_FILES"
42ecbf5e 19027
81ecdfbb
RW
19028# Set up the scripts for CONFIG_HEADERS section.
19029# No need to generate them if there are no CONFIG_HEADERS.
19030# This happens for instance with `./config.status Makefile'.
19031if test -n "$CONFIG_HEADERS"; then
d0ac1c44 19032cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
19033BEGIN {
19034_ACEOF
42ecbf5e 19035
81ecdfbb
RW
19036# Transform confdefs.h into an awk script `defines.awk', embedded as
19037# here-document in config.status, that substitutes the proper values into
19038# config.h.in to produce config.h.
252b5132 19039
81ecdfbb
RW
19040# Create a delimiter string that does not exist in confdefs.h, to ease
19041# handling of long lines.
19042ac_delim='%!_!# '
19043for ac_last_try in false false :; do
d0ac1c44
SM
19044 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19045 if test -z "$ac_tt"; then
81ecdfbb
RW
19046 break
19047 elif $ac_last_try; then
d0ac1c44 19048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
19049 else
19050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19051 fi
19052done
19053
19054# For the awk script, D is an array of macro values keyed by name,
19055# likewise P contains macro parameters if any. Preserve backslash
19056# newline sequences.
19057
19058ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19059sed -n '
19060s/.\{148\}/&'"$ac_delim"'/g
19061t rset
19062:rset
19063s/^[ ]*#[ ]*define[ ][ ]*/ /
19064t def
19065d
19066:def
19067s/\\$//
19068t bsnl
19069s/["\\]/\\&/g
19070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19071D["\1"]=" \3"/p
19072s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19073d
19074:bsnl
19075s/["\\]/\\&/g
19076s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19077D["\1"]=" \3\\\\\\n"\\/p
19078t cont
19079s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19080t cont
19081d
19082:cont
19083n
19084s/.\{148\}/&'"$ac_delim"'/g
19085t clear
19086:clear
19087s/\\$//
19088t bsnlc
19089s/["\\]/\\&/g; s/^/"/; s/$/"/p
19090d
19091:bsnlc
19092s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19093b cont
19094' <confdefs.h | sed '
19095s/'"$ac_delim"'/"\\\
19096"/g' >>$CONFIG_STATUS || ac_write_fail=1
19097
19098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19099 for (key in D) D_is_set[key] = 1
19100 FS = "\a"
19101}
19102/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19103 line = \$ 0
19104 split(line, arg, " ")
19105 if (arg[1] == "#") {
19106 defundef = arg[2]
19107 mac1 = arg[3]
19108 } else {
19109 defundef = substr(arg[1], 2)
19110 mac1 = arg[2]
19111 }
19112 split(mac1, mac2, "(") #)
19113 macro = mac2[1]
19114 prefix = substr(line, 1, index(line, defundef) - 1)
19115 if (D_is_set[macro]) {
19116 # Preserve the white space surrounding the "#".
19117 print prefix "define", macro P[macro] D[macro]
19118 next
19119 } else {
19120 # Replace #undef with comments. This is necessary, for example,
19121 # in the case of _POSIX_SOURCE, which is predefined and required
19122 # on some systems where configure will not decide to define it.
19123 if (defundef == "undef") {
19124 print "/*", prefix defundef, macro, "*/"
19125 next
19126 }
19127 }
19128}
19129{ print }
19130_ACAWK
42ecbf5e 19131_ACEOF
81ecdfbb 19132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 19133 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 19134fi # test -n "$CONFIG_HEADERS"
42ecbf5e 19135
81ecdfbb
RW
19136
19137eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19138shift
19139for ac_tag
19140do
19141 case $ac_tag in
19142 :[FHLC]) ac_mode=$ac_tag; continue;;
19143 esac
19144 case $ac_mode$ac_tag in
19145 :[FHL]*:*);;
d0ac1c44 19146 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19147 :[FH]-) ac_tag=-:-;;
19148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19149 esac
19150 ac_save_IFS=$IFS
19151 IFS=:
19152 set x $ac_tag
19153 IFS=$ac_save_IFS
19154 shift
19155 ac_file=$1
19156 shift
19157
19158 case $ac_mode in
19159 :L) ac_source=$1;;
19160 :[FH])
19161 ac_file_inputs=
19162 for ac_f
19163 do
19164 case $ac_f in
d0ac1c44 19165 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19166 *) # Look for the file first in the build tree, then in the source tree
19167 # (if the path is not absolute). The absolute path cannot be DOS-style,
19168 # because $ac_f cannot contain `:'.
19169 test -f "$ac_f" ||
19170 case $ac_f in
19171 [\\/$]*) false;;
19172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19173 esac ||
d0ac1c44 19174 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19175 esac
19176 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19177 as_fn_append ac_file_inputs " '$ac_f'"
19178 done
19179
19180 # Let's still pretend it is `configure' which instantiates (i.e., don't
19181 # use $as_me), people would be surprised to read:
19182 # /* config.h. Generated by config.status. */
19183 configure_input='Generated from '`
19184 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19185 `' by configure.'
19186 if test x"$ac_file" != x-; then
19187 configure_input="$ac_file. $configure_input"
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19189$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 19190 fi
81ecdfbb
RW
19191 # Neutralize special characters interpreted by sed in replacement strings.
19192 case $configure_input in #(
19193 *\&* | *\|* | *\\* )
19194 ac_sed_conf_input=`$as_echo "$configure_input" |
19195 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19196 *) ac_sed_conf_input=$configure_input;;
19197 esac
252b5132 19198
81ecdfbb 19199 case $ac_tag in
d0ac1c44
SM
19200 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19202 esac
19203 ;;
252b5132
RH
19204 esac
19205
81ecdfbb 19206 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
19207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X"$ac_file" : 'X\(//\)[^/]' \| \
19209 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19211$as_echo X"$ac_file" |
19212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19213 s//\1/
19214 q
19215 }
19216 /^X\(\/\/\)[^/].*/{
19217 s//\1/
19218 q
19219 }
19220 /^X\(\/\/\)$/{
19221 s//\1/
19222 q
19223 }
19224 /^X\(\/\).*/{
19225 s//\1/
19226 q
19227 }
19228 s/.*/./; q'`
19229 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
19230 ac_builddir=.
19231
81ecdfbb
RW
19232case "$ac_dir" in
19233.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19234*)
19235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19236 # A ".." for each directory in $ac_dir_suffix.
19237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19238 case $ac_top_builddir_sub in
19239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19241 esac ;;
19242esac
19243ac_abs_top_builddir=$ac_pwd
19244ac_abs_builddir=$ac_pwd$ac_dir_suffix
19245# for backward compatibility:
19246ac_top_builddir=$ac_top_build_prefix
252b5132 19247
42ecbf5e 19248case $srcdir in
81ecdfbb 19249 .) # We are building in place.
42ecbf5e 19250 ac_srcdir=.
81ecdfbb
RW
19251 ac_top_srcdir=$ac_top_builddir_sub
19252 ac_abs_top_srcdir=$ac_pwd ;;
19253 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 19254 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19255 ac_top_srcdir=$srcdir
19256 ac_abs_top_srcdir=$srcdir ;;
19257 *) # Relative name.
19258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19259 ac_top_srcdir=$ac_top_build_prefix$srcdir
19260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 19261esac
81ecdfbb 19262ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 19263
252b5132 19264
81ecdfbb
RW
19265 case $ac_mode in
19266 :F)
19267 #
19268 # CONFIG_FILE
19269 #
e5a52504 19270
42ecbf5e
DJ
19271 case $INSTALL in
19272 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
19273 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19274 esac
19275 ac_MKDIR_P=$MKDIR_P
19276 case $MKDIR_P in
19277 [\\/$]* | ?:[\\/]* ) ;;
19278 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 19279 esac
81ecdfbb 19280_ACEOF
e5a52504 19281
81ecdfbb
RW
19282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19283# If the template does not know about datarootdir, expand it.
19284# FIXME: This hack should be removed a few years after 2.60.
19285ac_datarootdir_hack=; ac_datarootdir_seen=
19286ac_sed_dataroot='
19287/datarootdir/ {
19288 p
19289 q
19290}
19291/@datadir@/p
19292/@docdir@/p
19293/@infodir@/p
19294/@localedir@/p
19295/@mandir@/p'
19296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19297*datarootdir*) ac_datarootdir_seen=yes;;
19298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19301_ACEOF
19302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19303 ac_datarootdir_hack='
19304 s&@datadir@&$datadir&g
19305 s&@docdir@&$docdir&g
19306 s&@infodir@&$infodir&g
19307 s&@localedir@&$localedir&g
19308 s&@mandir@&$mandir&g
19309 s&\\\${datarootdir}&$datarootdir&g' ;;
19310esac
42ecbf5e 19311_ACEOF
81ecdfbb
RW
19312
19313# Neutralize VPATH when `$srcdir' = `.'.
19314# Shell code in configure.ac might set extrasub.
19315# FIXME: do we really want to maintain this feature?
19316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
19318$extrasub
19319_ACEOF
81ecdfbb 19320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
19321:t
19322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19323s|@configure_input@|$ac_sed_conf_input|;t t
19324s&@top_builddir@&$ac_top_builddir_sub&;t t
19325s&@top_build_prefix@&$ac_top_build_prefix&;t t
19326s&@srcdir@&$ac_srcdir&;t t
19327s&@abs_srcdir@&$ac_abs_srcdir&;t t
19328s&@top_srcdir@&$ac_top_srcdir&;t t
19329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19330s&@builddir@&$ac_builddir&;t t
19331s&@abs_builddir@&$ac_abs_builddir&;t t
19332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19333s&@INSTALL@&$ac_INSTALL&;t t
19334s&@MKDIR_P@&$ac_MKDIR_P&;t t
19335$ac_datarootdir_hack
19336"
50ff67e6 19337eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
d0ac1c44 19338 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19339
19340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19341 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19343 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19345which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19346$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19347which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19348
d0ac1c44 19349 rm -f "$ac_tmp/stdin"
42ecbf5e 19350 case $ac_file in
d0ac1c44
SM
19351 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19352 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19353 esac \
d0ac1c44 19354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19355 ;;
19356 :H)
19357 #
19358 # CONFIG_HEADER
19359 #
42ecbf5e 19360 if test x"$ac_file" != x-; then
81ecdfbb
RW
19361 {
19362 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19363 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19364 } >"$ac_tmp/config.h" \
19365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19366 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19368$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 19369 else
81ecdfbb 19370 rm -f "$ac_file"
d0ac1c44
SM
19371 mv "$ac_tmp/config.h" "$ac_file" \
19372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 19373 fi
42ecbf5e 19374 else
81ecdfbb 19375 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19376 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19377 || as_fn_error $? "could not create -" "$LINENO" 5
e5a52504 19378 fi
81ecdfbb
RW
19379# Compute "$ac_file"'s index in $config_headers.
19380_am_arg="$ac_file"
42ecbf5e
DJ
19381_am_stamp_count=1
19382for _am_header in $config_headers :; do
19383 case $_am_header in
81ecdfbb 19384 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
19385 break ;;
19386 * )
19387 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19388 esac
19389done
81ecdfbb
RW
19390echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19391$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19392 X"$_am_arg" : 'X\(//\)[^/]' \| \
19393 X"$_am_arg" : 'X\(//\)$' \| \
19394 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19395$as_echo X"$_am_arg" |
19396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19397 s//\1/
19398 q
19399 }
19400 /^X\(\/\/\)[^/].*/{
19401 s//\1/
19402 q
19403 }
19404 /^X\(\/\/\)$/{
19405 s//\1/
19406 q
19407 }
19408 /^X\(\/\).*/{
19409 s//\1/
19410 q
19411 }
19412 s/.*/./; q'`/stamp-h$_am_stamp_count
19413 ;;
42ecbf5e 19414
81ecdfbb
RW
19415 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19416$as_echo "$as_me: executing $ac_file commands" >&6;}
19417 ;;
19418 esac
42ecbf5e
DJ
19419
19420
81ecdfbb
RW
19421 case $ac_file$ac_mode in
19422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 19423 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
19424 # are listed without --file. Let's play safe and only enable the eval
19425 # if we detect the quoting.
19426 case $CONFIG_FILES in
19427 *\'*) eval set x "$CONFIG_FILES" ;;
19428 *) set x $CONFIG_FILES ;;
19429 esac
19430 shift
19431 for mf
19432 do
19433 # Strip MF so we end up with the name of the file.
19434 mf=`echo "$mf" | sed -e 's/:.*$//'`
19435 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 19436 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
19437 # some people rename them; so instead we look at the file content.
19438 # Grep'ing the first line is not enough: some people post-process
19439 # each Makefile.in and add a new line on top of each file to say so.
19440 # Grep'ing the whole file is not good either: AIX grep has a line
19441 # limit of 2048, but all sed's we know have understand at least 4000.
19442 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19443 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
19444$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19445 X"$mf" : 'X\(//\)[^/]' \| \
19446 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
19447 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19448$as_echo X"$mf" |
19449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19450 s//\1/
19451 q
19452 }
19453 /^X\(\/\/\)[^/].*/{
19454 s//\1/
19455 q
19456 }
19457 /^X\(\/\/\)$/{
19458 s//\1/
19459 q
19460 }
19461 /^X\(\/\).*/{
19462 s//\1/
19463 q
19464 }
19465 s/.*/./; q'`
19466 else
19467 continue
19468 fi
19469 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 19470 # from the Makefile without running 'make'.
81ecdfbb
RW
19471 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19472 test -z "$DEPDIR" && continue
19473 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 19474 test -z "$am__include" && continue
81ecdfbb 19475 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
19476 # Find all dependency output files, they are included files with
19477 # $(DEPDIR) in their names. We invoke sed twice because it is the
19478 # simplest approach to changing $(DEPDIR) to its actual value in the
19479 # expansion.
19480 for file in `sed -n "
19481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 19482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
19483 # Make sure the directory exists.
19484 test -f "$dirpart/$file" && continue
19485 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19486$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19487 X"$file" : 'X\(//\)[^/]' \| \
19488 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19489 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19490$as_echo X"$file" |
19491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19492 s//\1/
19493 q
19494 }
19495 /^X\(\/\/\)[^/].*/{
19496 s//\1/
19497 q
19498 }
19499 /^X\(\/\/\)$/{
19500 s//\1/
19501 q
19502 }
19503 /^X\(\/\).*/{
19504 s//\1/
19505 q
19506 }
19507 s/.*/./; q'`
19508 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19509 # echo "creating $dirpart/$file"
19510 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19511 done
42ecbf5e 19512 done
81ecdfbb 19513}
d7040cdb 19514 ;;
81ecdfbb 19515 "libtool":C)
d7040cdb
SE
19516
19517 # See if we are running on zsh, and set the options which allow our
19518 # commands through without removal of \ escapes.
19519 if test -n "${ZSH_VERSION+set}" ; then
19520 setopt NO_GLOB_SUBST
19521 fi
19522
19523 cfgfile="${ofile}T"
19524 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19525 $RM "$cfgfile"
19526
19527 cat <<_LT_EOF >> "$cfgfile"
19528#! $SHELL
19529
19530# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19531# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19532# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19533# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19534#
b214d478 19535# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19536# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19537# Written by Gordon Matzigkeit, 1996
d7040cdb 19538#
b214d478 19539# This file is part of GNU Libtool.
d7040cdb 19540#
b214d478
SE
19541# GNU Libtool is free software; you can redistribute it and/or
19542# modify it under the terms of the GNU General Public License as
19543# published by the Free Software Foundation; either version 2 of
19544# the License, or (at your option) any later version.
d7040cdb 19545#
b214d478
SE
19546# As a special exception to the GNU General Public License,
19547# if you distribute this file as part of a program or library that
19548# is built using GNU Libtool, you may include this file under the
19549# same distribution terms that you use for the rest of that program.
d7040cdb 19550#
b214d478
SE
19551# GNU Libtool is distributed in the hope that it will be useful,
19552# but WITHOUT ANY WARRANTY; without even the implied warranty of
19553# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19554# GNU General Public License for more details.
d7040cdb 19555#
b214d478
SE
19556# You should have received a copy of the GNU General Public License
19557# along with GNU Libtool; see the file COPYING. If not, a copy
19558# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19559# obtained by writing to the Free Software Foundation, Inc.,
19560# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19561
19562
19563# The names of the tagged configurations supported by this script.
3cb62297 19564available_tags="CXX "
d7040cdb
SE
19565
19566# ### BEGIN LIBTOOL CONFIG
19567
19568# Which release of libtool.m4 was used?
19569macro_version=$macro_version
19570macro_revision=$macro_revision
19571
19572# Whether or not to build shared libraries.
19573build_libtool_libs=$enable_shared
19574
19575# Whether or not to build static libraries.
19576build_old_libs=$enable_static
19577
19578# What type of objects to build.
19579pic_mode=$pic_mode
19580
19581# Whether or not to optimize for fast installation.
19582fast_install=$enable_fast_install
19583
3725885a
RW
19584# Shell to use when invoking shell scripts.
19585SHELL=$lt_SHELL
19586
19587# An echo program that protects backslashes.
19588ECHO=$lt_ECHO
19589
d7040cdb
SE
19590# The host system.
19591host_alias=$host_alias
19592host=$host
19593host_os=$host_os
19594
19595# The build system.
19596build_alias=$build_alias
19597build=$build
19598build_os=$build_os
19599
19600# A sed program that does not truncate output.
19601SED=$lt_SED
19602
19603# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19604Xsed="\$SED -e 1s/^X//"
19605
19606# A grep program that handles long lines.
19607GREP=$lt_GREP
19608
19609# An ERE matcher.
19610EGREP=$lt_EGREP
19611
19612# A literal string matcher.
19613FGREP=$lt_FGREP
19614
19615# A BSD- or MS-compatible name lister.
19616NM=$lt_NM
19617
19618# Whether we need soft or hard links.
19619LN_S=$lt_LN_S
19620
19621# What is the maximum length of a command?
19622max_cmd_len=$max_cmd_len
19623
19624# Object file suffix (normally "o").
19625objext=$ac_objext
19626
19627# Executable file suffix (normally "").
19628exeext=$exeext
19629
19630# whether the shell understands "unset".
19631lt_unset=$lt_unset
19632
19633# turn spaces into newlines.
19634SP2NL=$lt_lt_SP2NL
19635
19636# turn newlines into spaces.
19637NL2SP=$lt_lt_NL2SP
19638
b214d478
SE
19639# An object symbol dumper.
19640OBJDUMP=$lt_OBJDUMP
19641
d7040cdb
SE
19642# Method to check whether dependent libraries are shared objects.
19643deplibs_check_method=$lt_deplibs_check_method
19644
19645# Command to use when deplibs_check_method == "file_magic".
19646file_magic_cmd=$lt_file_magic_cmd
19647
19648# The archiver.
19649AR=$lt_AR
19650AR_FLAGS=$lt_AR_FLAGS
19651
19652# A symbol stripping program.
19653STRIP=$lt_STRIP
19654
19655# Commands used to install an old-style archive.
19656RANLIB=$lt_RANLIB
19657old_postinstall_cmds=$lt_old_postinstall_cmds
19658old_postuninstall_cmds=$lt_old_postuninstall_cmds
19659
3725885a
RW
19660# Whether to use a lock for old archive extraction.
19661lock_old_archive_extraction=$lock_old_archive_extraction
19662
d7040cdb
SE
19663# A C compiler.
19664LTCC=$lt_CC
19665
19666# LTCC compiler flags.
19667LTCFLAGS=$lt_CFLAGS
19668
19669# Take the output of nm and produce a listing of raw symbols and C names.
19670global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19671
19672# Transform the output of nm in a proper C declaration.
19673global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19674
19675# Transform the output of nm in a C name address pair.
19676global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19677
b214d478
SE
19678# Transform the output of nm in a C name address pair when lib prefix is needed.
19679global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19680
d7040cdb
SE
19681# The name of the directory that contains temporary libtool files.
19682objdir=$objdir
19683
d7040cdb
SE
19684# Used to examine libraries when file_magic_cmd begins with "file".
19685MAGIC_CMD=$MAGIC_CMD
19686
19687# Must we lock files when doing compilation?
19688need_locks=$lt_need_locks
19689
b214d478
SE
19690# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19691DSYMUTIL=$lt_DSYMUTIL
19692
19693# Tool to change global to local symbols on Mac OS X.
19694NMEDIT=$lt_NMEDIT
19695
19696# Tool to manipulate fat objects and archives on Mac OS X.
19697LIPO=$lt_LIPO
19698
19699# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19700OTOOL=$lt_OTOOL
19701
19702# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19703OTOOL64=$lt_OTOOL64
19704
d7040cdb
SE
19705# Old archive suffix (normally "a").
19706libext=$libext
19707
19708# Shared library suffix (normally ".so").
19709shrext_cmds=$lt_shrext_cmds
19710
19711# The commands to extract the exported symbol list from a shared archive.
19712extract_expsyms_cmds=$lt_extract_expsyms_cmds
19713
19714# Variables whose values should be saved in libtool wrapper scripts and
19715# restored at link time.
19716variables_saved_for_relink=$lt_variables_saved_for_relink
19717
19718# Do we need the "lib" prefix for modules?
19719need_lib_prefix=$need_lib_prefix
19720
19721# Do we need a version for libraries?
19722need_version=$need_version
19723
19724# Library versioning type.
19725version_type=$version_type
19726
19727# Shared library runtime path variable.
19728runpath_var=$runpath_var
19729
19730# Shared library path variable.
19731shlibpath_var=$shlibpath_var
19732
19733# Is shlibpath searched before the hard-coded library search path?
19734shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19735
19736# Format of library name prefix.
19737libname_spec=$lt_libname_spec
19738
19739# List of archive names. First name is the real one, the rest are links.
19740# The last name is the one that the linker finds with -lNAME
19741library_names_spec=$lt_library_names_spec
19742
19743# The coded name of the library, if different from the real name.
19744soname_spec=$lt_soname_spec
19745
3725885a
RW
19746# Permission mode override for installation of shared libraries.
19747install_override_mode=$lt_install_override_mode
19748
d7040cdb
SE
19749# Command to use after installation of a shared archive.
19750postinstall_cmds=$lt_postinstall_cmds
19751
19752# Command to use after uninstallation of a shared archive.
19753postuninstall_cmds=$lt_postuninstall_cmds
19754
19755# Commands used to finish a libtool library installation in a directory.
19756finish_cmds=$lt_finish_cmds
19757
19758# As "finish_cmds", except a single script fragment to be evaled but
19759# not shown.
19760finish_eval=$lt_finish_eval
19761
19762# Whether we should hardcode library paths into libraries.
19763hardcode_into_libs=$hardcode_into_libs
19764
19765# Compile-time system search path for libraries.
19766sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19767
19768# Run-time system search path for libraries.
19769sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19770
19771# Whether dlopen is supported.
19772dlopen_support=$enable_dlopen
19773
19774# Whether dlopen of programs is supported.
19775dlopen_self=$enable_dlopen_self
19776
19777# Whether dlopen of statically linked programs is supported.
19778dlopen_self_static=$enable_dlopen_self_static
19779
19780# Commands to strip libraries.
19781old_striplib=$lt_old_striplib
19782striplib=$lt_striplib
19783
19784
19785# The linker used to build libraries.
19786LD=$lt_LD
19787
3725885a
RW
19788# How to create reloadable object files.
19789reload_flag=$lt_reload_flag
19790reload_cmds=$lt_reload_cmds
19791
d7040cdb
SE
19792# Commands used to build an old-style archive.
19793old_archive_cmds=$lt_old_archive_cmds
19794
19795# A language specific compiler.
19796CC=$lt_compiler
19797
19798# Is the compiler the GNU compiler?
19799with_gcc=$GCC
19800
19801# Compiler flag to turn off builtin functions.
19802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19803
19804# How to pass a linker flag through the compiler.
19805wl=$lt_lt_prog_compiler_wl
19806
19807# Additional compiler flags for building library objects.
19808pic_flag=$lt_lt_prog_compiler_pic
19809
19810# Compiler flag to prevent dynamic linking.
19811link_static_flag=$lt_lt_prog_compiler_static
19812
19813# Does compiler simultaneously support -c and -o options?
19814compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19815
19816# Whether or not to add -lc for building shared libraries.
19817build_libtool_need_lc=$archive_cmds_need_lc
19818
19819# Whether or not to disallow shared libs when runtime libs are static.
19820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19821
19822# Compiler flag to allow reflexive dlopens.
19823export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19824
19825# Compiler flag to generate shared objects directly from archives.
19826whole_archive_flag_spec=$lt_whole_archive_flag_spec
19827
19828# Whether the compiler copes with passing no objects directly.
19829compiler_needs_object=$lt_compiler_needs_object
19830
19831# Create an old-style archive from a shared archive.
19832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19833
19834# Create a temporary old-style archive to link instead of a shared archive.
19835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19836
19837# Commands used to build a shared archive.
19838archive_cmds=$lt_archive_cmds
19839archive_expsym_cmds=$lt_archive_expsym_cmds
19840
19841# Commands used to build a loadable module if different from building
19842# a shared archive.
19843module_cmds=$lt_module_cmds
19844module_expsym_cmds=$lt_module_expsym_cmds
19845
19846# Whether we are building with GNU ld or not.
19847with_gnu_ld=$lt_with_gnu_ld
19848
19849# Flag that allows shared libraries with undefined symbols to be built.
19850allow_undefined_flag=$lt_allow_undefined_flag
19851
19852# Flag that enforces no undefined symbols.
19853no_undefined_flag=$lt_no_undefined_flag
19854
19855# Flag to hardcode \$libdir into a binary during linking.
19856# This must work even if \$libdir does not exist
19857hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19858
19859# If ld is used when linking, flag to hardcode \$libdir into a binary
19860# during linking. This must work even if \$libdir does not exist.
19861hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19862
19863# Whether we need a single "-rpath" flag with a separated argument.
19864hardcode_libdir_separator=$lt_hardcode_libdir_separator
19865
19866# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19867# DIR into the resulting binary.
19868hardcode_direct=$hardcode_direct
19869
19870# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19871# DIR into the resulting binary and the resulting library dependency is
19872# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19873# library is relocated.
19874hardcode_direct_absolute=$hardcode_direct_absolute
19875
19876# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19877# into the resulting binary.
19878hardcode_minus_L=$hardcode_minus_L
19879
19880# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19881# into the resulting binary.
19882hardcode_shlibpath_var=$hardcode_shlibpath_var
19883
19884# Set to "yes" if building a shared library automatically hardcodes DIR
19885# into the library and all subsequent libraries and executables linked
19886# against it.
19887hardcode_automatic=$hardcode_automatic
19888
19889# Set to yes if linker adds runtime paths of dependent libraries
19890# to runtime path list.
19891inherit_rpath=$inherit_rpath
19892
19893# Whether libtool must link a program against all its dependency libraries.
19894link_all_deplibs=$link_all_deplibs
19895
19896# Fix the shell variable \$srcfile for the compiler.
19897fix_srcfile_path=$lt_fix_srcfile_path
19898
19899# Set to "yes" if exported symbols are required.
19900always_export_symbols=$always_export_symbols
19901
19902# The commands to list exported symbols.
19903export_symbols_cmds=$lt_export_symbols_cmds
19904
19905# Symbols that should not be listed in the preloaded symbols.
19906exclude_expsyms=$lt_exclude_expsyms
19907
19908# Symbols that must always be exported.
19909include_expsyms=$lt_include_expsyms
19910
19911# Commands necessary for linking programs (against libraries) with templates.
19912prelink_cmds=$lt_prelink_cmds
19913
19914# Specify filename containing input files.
19915file_list_spec=$lt_file_list_spec
19916
19917# How to hardcode a shared library path into an executable.
19918hardcode_action=$hardcode_action
19919
3cb62297
L
19920# The directories searched by this compiler when creating a shared library.
19921compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19922
19923# Dependencies to place before and after the objects being linked to
19924# create a shared library.
19925predep_objects=$lt_predep_objects
19926postdep_objects=$lt_postdep_objects
19927predeps=$lt_predeps
19928postdeps=$lt_postdeps
19929
19930# The library search path used internally by the compiler when linking
19931# a shared library.
19932compiler_lib_search_path=$lt_compiler_lib_search_path
19933
d7040cdb
SE
19934# ### END LIBTOOL CONFIG
19935
19936_LT_EOF
19937
19938 case $host_os in
19939 aix3*)
19940 cat <<\_LT_EOF >> "$cfgfile"
19941# AIX sometimes has problems with the GCC collect2 program. For some
19942# reason, if we set the COLLECT_NAMES environment variable, the problems
19943# vanish in a puff of smoke.
19944if test "X${COLLECT_NAMES+set}" != Xset; then
19945 COLLECT_NAMES=
19946 export COLLECT_NAMES
19947fi
19948_LT_EOF
19949 ;;
19950 esac
19951
19952
19953ltmain="$ac_aux_dir/ltmain.sh"
19954
19955
19956 # We use sed instead of cat because bash on DJGPP gets confused if
19957 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19958 # text mode, it properly converts lines to CR/LF. This bash problem
19959 # is reportedly fixed, but why not run on old versions too?
19960 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19961 || (rm -f "$cfgfile"; exit 1)
19962
19963 case $xsi_shell in
19964 yes)
19965 cat << \_LT_EOF >> "$cfgfile"
b214d478 19966
d7040cdb
SE
19967# func_dirname file append nondir_replacement
19968# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19969# otherwise set result to NONDIR_REPLACEMENT.
19970func_dirname ()
19971{
19972 case ${1} in
19973 */*) func_dirname_result="${1%/*}${2}" ;;
19974 * ) func_dirname_result="${3}" ;;
19975 esac
19976}
19977
19978# func_basename file
19979func_basename ()
19980{
19981 func_basename_result="${1##*/}"
19982}
19983
b214d478
SE
19984# func_dirname_and_basename file append nondir_replacement
19985# perform func_basename and func_dirname in a single function
19986# call:
19987# dirname: Compute the dirname of FILE. If nonempty,
19988# add APPEND to the result, otherwise set result
19989# to NONDIR_REPLACEMENT.
19990# value returned in "$func_dirname_result"
19991# basename: Compute filename of FILE.
19992# value retuned in "$func_basename_result"
19993# Implementation must be kept synchronized with func_dirname
19994# and func_basename. For efficiency, we do not delegate to
19995# those functions but instead duplicate the functionality here.
19996func_dirname_and_basename ()
19997{
19998 case ${1} in
19999 */*) func_dirname_result="${1%/*}${2}" ;;
20000 * ) func_dirname_result="${3}" ;;
20001 esac
20002 func_basename_result="${1##*/}"
20003}
20004
d7040cdb
SE
20005# func_stripname prefix suffix name
20006# strip PREFIX and SUFFIX off of NAME.
20007# PREFIX and SUFFIX must not contain globbing or regex special
20008# characters, hashes, percent signs, but SUFFIX may contain a leading
20009# dot (in which case that matches only a dot).
20010func_stripname ()
20011{
20012 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20013 # positional parameters, so assign one to ordinary parameter first.
20014 func_stripname_result=${3}
20015 func_stripname_result=${func_stripname_result#"${1}"}
20016 func_stripname_result=${func_stripname_result%"${2}"}
20017}
20018
20019# func_opt_split
20020func_opt_split ()
20021{
20022 func_opt_split_opt=${1%%=*}
20023 func_opt_split_arg=${1#*=}
20024}
20025
20026# func_lo2o object
20027func_lo2o ()
20028{
20029 case ${1} in
20030 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20031 *) func_lo2o_result=${1} ;;
20032 esac
20033}
b214d478
SE
20034
20035# func_xform libobj-or-source
20036func_xform ()
20037{
20038 func_xform_result=${1%.*}.lo
20039}
20040
20041# func_arith arithmetic-term...
20042func_arith ()
20043{
20044 func_arith_result=$(( $* ))
20045}
20046
20047# func_len string
20048# STRING may not start with a hyphen.
20049func_len ()
20050{
20051 func_len_result=${#1}
20052}
20053
d7040cdb
SE
20054_LT_EOF
20055 ;;
20056 *) # Bourne compatible functions.
20057 cat << \_LT_EOF >> "$cfgfile"
b214d478 20058
d7040cdb
SE
20059# func_dirname file append nondir_replacement
20060# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20061# otherwise set result to NONDIR_REPLACEMENT.
20062func_dirname ()
20063{
20064 # Extract subdirectory from the argument.
3725885a 20065 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
20066 if test "X$func_dirname_result" = "X${1}"; then
20067 func_dirname_result="${3}"
20068 else
20069 func_dirname_result="$func_dirname_result${2}"
20070 fi
20071}
20072
20073# func_basename file
20074func_basename ()
20075{
3725885a 20076 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
20077}
20078
b214d478 20079
d7040cdb
SE
20080# func_stripname prefix suffix name
20081# strip PREFIX and SUFFIX off of NAME.
20082# PREFIX and SUFFIX must not contain globbing or regex special
20083# characters, hashes, percent signs, but SUFFIX may contain a leading
20084# dot (in which case that matches only a dot).
20085# func_strip_suffix prefix name
20086func_stripname ()
20087{
20088 case ${2} in
3725885a
RW
20089 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20090 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
20091 esac
20092}
20093
20094# sed scripts:
20095my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20096my_sed_long_arg='1s/^-[^=]*=//'
20097
20098# func_opt_split
20099func_opt_split ()
20100{
3725885a
RW
20101 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20102 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
20103}
20104
20105# func_lo2o object
20106func_lo2o ()
20107{
3725885a 20108 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 20109}
b214d478
SE
20110
20111# func_xform libobj-or-source
20112func_xform ()
20113{
3725885a 20114 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
20115}
20116
20117# func_arith arithmetic-term...
20118func_arith ()
20119{
20120 func_arith_result=`expr "$@"`
20121}
20122
20123# func_len string
20124# STRING may not start with a hyphen.
20125func_len ()
20126{
20127 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20128}
20129
d7040cdb
SE
20130_LT_EOF
20131esac
20132
20133case $lt_shell_append in
20134 yes)
20135 cat << \_LT_EOF >> "$cfgfile"
20136
20137# func_append var value
20138# Append VALUE to the end of shell variable VAR.
20139func_append ()
20140{
20141 eval "$1+=\$2"
20142}
20143_LT_EOF
20144 ;;
20145 *)
20146 cat << \_LT_EOF >> "$cfgfile"
20147
20148# func_append var value
20149# Append VALUE to the end of shell variable VAR.
20150func_append ()
20151{
20152 eval "$1=\$$1\$2"
20153}
b214d478 20154
d7040cdb
SE
20155_LT_EOF
20156 ;;
20157 esac
20158
20159
20160 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20161 || (rm -f "$cfgfile"; exit 1)
20162
20163 mv -f "$cfgfile" "$ofile" ||
20164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20165 chmod +x "$ofile"
20166
3cb62297
L
20167
20168 cat <<_LT_EOF >> "$ofile"
20169
20170# ### BEGIN LIBTOOL TAG CONFIG: CXX
20171
20172# The linker used to build libraries.
20173LD=$lt_LD_CXX
20174
20175# How to create reloadable object files.
20176reload_flag=$lt_reload_flag_CXX
20177reload_cmds=$lt_reload_cmds_CXX
20178
20179# Commands used to build an old-style archive.
20180old_archive_cmds=$lt_old_archive_cmds_CXX
20181
20182# A language specific compiler.
20183CC=$lt_compiler_CXX
20184
20185# Is the compiler the GNU compiler?
20186with_gcc=$GCC_CXX
20187
20188# Compiler flag to turn off builtin functions.
20189no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20190
20191# How to pass a linker flag through the compiler.
20192wl=$lt_lt_prog_compiler_wl_CXX
20193
20194# Additional compiler flags for building library objects.
20195pic_flag=$lt_lt_prog_compiler_pic_CXX
20196
20197# Compiler flag to prevent dynamic linking.
20198link_static_flag=$lt_lt_prog_compiler_static_CXX
20199
20200# Does compiler simultaneously support -c and -o options?
20201compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20202
20203# Whether or not to add -lc for building shared libraries.
20204build_libtool_need_lc=$archive_cmds_need_lc_CXX
20205
20206# Whether or not to disallow shared libs when runtime libs are static.
20207allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20208
20209# Compiler flag to allow reflexive dlopens.
20210export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20211
20212# Compiler flag to generate shared objects directly from archives.
20213whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20214
20215# Whether the compiler copes with passing no objects directly.
20216compiler_needs_object=$lt_compiler_needs_object_CXX
20217
20218# Create an old-style archive from a shared archive.
20219old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20220
20221# Create a temporary old-style archive to link instead of a shared archive.
20222old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20223
20224# Commands used to build a shared archive.
20225archive_cmds=$lt_archive_cmds_CXX
20226archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20227
20228# Commands used to build a loadable module if different from building
20229# a shared archive.
20230module_cmds=$lt_module_cmds_CXX
20231module_expsym_cmds=$lt_module_expsym_cmds_CXX
20232
20233# Whether we are building with GNU ld or not.
20234with_gnu_ld=$lt_with_gnu_ld_CXX
20235
20236# Flag that allows shared libraries with undefined symbols to be built.
20237allow_undefined_flag=$lt_allow_undefined_flag_CXX
20238
20239# Flag that enforces no undefined symbols.
20240no_undefined_flag=$lt_no_undefined_flag_CXX
20241
20242# Flag to hardcode \$libdir into a binary during linking.
20243# This must work even if \$libdir does not exist
20244hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20245
20246# If ld is used when linking, flag to hardcode \$libdir into a binary
20247# during linking. This must work even if \$libdir does not exist.
20248hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20249
20250# Whether we need a single "-rpath" flag with a separated argument.
20251hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20252
20253# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20254# DIR into the resulting binary.
20255hardcode_direct=$hardcode_direct_CXX
20256
20257# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20258# DIR into the resulting binary and the resulting library dependency is
20259# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20260# library is relocated.
20261hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20262
20263# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20264# into the resulting binary.
20265hardcode_minus_L=$hardcode_minus_L_CXX
20266
20267# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20268# into the resulting binary.
20269hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20270
20271# Set to "yes" if building a shared library automatically hardcodes DIR
20272# into the library and all subsequent libraries and executables linked
20273# against it.
20274hardcode_automatic=$hardcode_automatic_CXX
20275
20276# Set to yes if linker adds runtime paths of dependent libraries
20277# to runtime path list.
20278inherit_rpath=$inherit_rpath_CXX
20279
20280# Whether libtool must link a program against all its dependency libraries.
20281link_all_deplibs=$link_all_deplibs_CXX
20282
20283# Fix the shell variable \$srcfile for the compiler.
20284fix_srcfile_path=$lt_fix_srcfile_path_CXX
20285
20286# Set to "yes" if exported symbols are required.
20287always_export_symbols=$always_export_symbols_CXX
20288
20289# The commands to list exported symbols.
20290export_symbols_cmds=$lt_export_symbols_cmds_CXX
20291
20292# Symbols that should not be listed in the preloaded symbols.
20293exclude_expsyms=$lt_exclude_expsyms_CXX
20294
20295# Symbols that must always be exported.
20296include_expsyms=$lt_include_expsyms_CXX
20297
20298# Commands necessary for linking programs (against libraries) with templates.
20299prelink_cmds=$lt_prelink_cmds_CXX
20300
20301# Specify filename containing input files.
20302file_list_spec=$lt_file_list_spec_CXX
20303
20304# How to hardcode a shared library path into an executable.
20305hardcode_action=$hardcode_action_CXX
20306
20307# The directories searched by this compiler when creating a shared library.
20308compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20309
20310# Dependencies to place before and after the objects being linked to
20311# create a shared library.
20312predep_objects=$lt_predep_objects_CXX
20313postdep_objects=$lt_postdep_objects_CXX
20314predeps=$lt_predeps_CXX
20315postdeps=$lt_postdeps_CXX
20316
20317# The library search path used internally by the compiler when linking
20318# a shared library.
20319compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20320
20321# ### END LIBTOOL TAG CONFIG: CXX
20322_LT_EOF
20323
42ecbf5e 20324 ;;
81ecdfbb 20325 "default-1":C)
20e95c23
DJ
20326 for ac_file in $CONFIG_FILES; do
20327 # Support "outfile[:infile[:infile...]]"
20328 case "$ac_file" in
20329 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20330 esac
20331 # PO directories have a Makefile.in generated from Makefile.in.in.
20332 case "$ac_file" in */Makefile.in)
20333 # Adjust a relative srcdir.
20334 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 20335 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
20336 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20337 # In autoconf-2.13 it is called $ac_given_srcdir.
20338 # In autoconf-2.50 it is called $srcdir.
20339 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20340 case "$ac_given_srcdir" in
20341 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20342 /*) top_srcdir="$ac_given_srcdir" ;;
20343 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20344 esac
20345 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20346 rm -f "$ac_dir/POTFILES"
20347 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20348 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20349 POMAKEFILEDEPS="POTFILES.in"
20350 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20351 # on $ac_dir but don't depend on user-specified configuration
20352 # parameters.
20353 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20354 # The LINGUAS file contains the set of available languages.
20355 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 20356 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
20357 fi
20358 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20359 # Hide the ALL_LINGUAS assigment from automake.
20360 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20361 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20362 else
37a42ee9 20363 # The set of available languages was given in configure.ac.
20e95c23
DJ
20364 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20365 fi
20366 case "$ac_given_srcdir" in
20367 .) srcdirpre= ;;
20368 *) srcdirpre='$(srcdir)/' ;;
20369 esac
20370 POFILES=
20371 GMOFILES=
20372 UPDATEPOFILES=
20373 DUMMYPOFILES=
20374 for lang in $ALL_LINGUAS; do
20375 POFILES="$POFILES $srcdirpre$lang.po"
20376 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20377 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20378 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20379 done
20380 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20381 # environment variable.
20382 INST_LINGUAS=
20383 if test -n "$ALL_LINGUAS"; then
20384 for presentlang in $ALL_LINGUAS; do
20385 useit=no
20386 if test "%UNSET%" != "$LINGUAS"; then
20387 desiredlanguages="$LINGUAS"
20388 else
20389 desiredlanguages="$ALL_LINGUAS"
20390 fi
20391 for desiredlang in $desiredlanguages; do
20392 # Use the presentlang catalog if desiredlang is
20393 # a. equal to presentlang, or
20394 # b. a variant of presentlang (because in this case,
20395 # presentlang can be used as a fallback for messages
20396 # which are not translated in the desiredlang catalog).
20397 case "$desiredlang" in
20398 "$presentlang"*) useit=yes;;
20399 esac
20400 done
20401 if test $useit = yes; then
20402 INST_LINGUAS="$INST_LINGUAS $presentlang"
20403 fi
20404 done
20405 fi
20406 CATALOGS=
20407 if test -n "$INST_LINGUAS"; then
20408 for lang in $INST_LINGUAS; do
20409 CATALOGS="$CATALOGS $lang.gmo"
20410 done
20411 fi
20412 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20413 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"
20414 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20415 if test -f "$f"; then
20416 case "$f" in
20417 *.orig | *.bak | *~) ;;
20418 *) cat "$f" >> "$ac_dir/Makefile" ;;
20419 esac
20420 fi
20421 done
20422 fi
20423 ;;
20424 esac
20425 done ;;
33589acb
AM
20426 "default":C)
20427case "$srcdir" in
20428 .) srcdirpre= ;;
20429 *) srcdirpre='$(srcdir)/' ;;
20430esac
20431POFILES=
20432GMOFILES=
20433for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20434 if test $lang != dummy; then
20435 POFILES="$POFILES $srcdirpre$lang.po"
20436 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20437 fi
20438done
20439sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20440 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20441 -e "s,@POFILES@,$POFILES," \
20442 -e "s,@GMOFILES@,$GMOFILES," \
20443 po/Makefile.in > po/Makefile ;;
81ecdfbb 20444
42ecbf5e 20445 esac
81ecdfbb 20446done # for ac_tag
42ecbf5e 20447
42ecbf5e 20448
81ecdfbb 20449as_fn_exit 0
42ecbf5e 20450_ACEOF
42ecbf5e
DJ
20451ac_clean_files=$ac_clean_files_save
20452
81ecdfbb 20453test $ac_write_fail = 0 ||
d0ac1c44 20454 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20455
42ecbf5e
DJ
20456
20457# configure is writing to config.log, and then calls config.status.
20458# config.status does its own redirection, appending to config.log.
20459# Unfortunately, on DOS this fails, as config.log is still kept open
20460# by configure, so config.status won't be able to write to it; its
20461# output is simply discarded. So we exec the FD to /dev/null,
20462# effectively closing config.log, so it can be properly (re)opened and
20463# appended to by config.status. When coming back to configure, we
20464# need to make the FD available again.
20465if test "$no_create" != yes; then
20466 ac_cs_success=:
20467 ac_config_status_args=
20468 test "$silent" = yes &&
20469 ac_config_status_args="$ac_config_status_args --quiet"
20470 exec 5>/dev/null
20471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20472 exec 5>>config.log
20473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20474 # would make configure fail if this is the last instruction.
d0ac1c44 20475 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20476fi
20477if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20479$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20480fi
252b5132 20481
This page took 2.183305 seconds and 4 git commands to generate.