bfd, ld, libctf: skip zero-refcount strings in CTF string reporting
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
573fe3fb 3# Generated by GNU Autoconf 2.69 for ld 2.36.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'
573fe3fb
NC
590PACKAGE_VERSION='2.36.50'
591PACKAGE_STRING='ld 2.36.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
81ecdfbb 652NATIVE_LIB_DIRS
81ecdfbb
RW
653HDEFINES
654do_compare
655GENINSRC_NEVER_FALSE
656GENINSRC_NEVER_TRUE
81ecdfbb
RW
657LEXLIB
658LEX_OUTPUT_ROOT
659LEX
660YFLAGS
661YACC
662MSGMERGE
663MSGFMT
664MKINSTALLDIRS
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
670POSUB
671GMSGFMT
672XGETTEXT
673INCINTL
674LIBINTL_DEP
675LIBINTL
676USE_NLS
6757cf57 677WARN_WRITE_STRINGS
b879806f 678NO_WERROR
c5da1932 679WARN_CFLAGS_FOR_BUILD
b879806f 680WARN_CFLAGS
7cdfc346 681enable_libctf
094e34f2
NA
682ENABLE_LIBCTF_FALSE
683ENABLE_LIBCTF_TRUE
b879806f
AM
684installed_linker
685install_as_default
686TARGET_SYSTEM_ROOT_DEFINE
687TARGET_SYSTEM_ROOT
688use_sysroot
c8693053 689LARGEFILE_CPPFLAGS
3cb62297 690CXXCPP
81ecdfbb
RW
691OTOOL64
692OTOOL
693LIPO
694NMEDIT
695DSYMUTIL
81ecdfbb
RW
696RANLIB
697AR
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705SED
706LIBTOOL
b879806f 707EGREP
b879806f 708CPP
68880f31 709GREP
3cb62297
L
710am__fastdepCXX_FALSE
711am__fastdepCXX_TRUE
712CXXDEPMODE
713ac_ct_CXX
714CXXFLAGS
715CXX
64ac50ac
RW
716MAINT
717MAINTAINER_MODE_FALSE
718MAINTAINER_MODE_TRUE
d0ac1c44
SM
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
81ecdfbb
RW
723am__fastdepCC_FALSE
724am__fastdepCC_TRUE
725CCDEPMODE
6eb7d830 726am__nodep
81ecdfbb
RW
727AMDEPBACKSLASH
728AMDEP_FALSE
729AMDEP_TRUE
730am__quote
731am__include
732DEPDIR
733am__untar
734am__tar
735AMTAR
736am__leading_dot
737SET_MAKE
738AWK
739mkdir_p
740MKDIR_P
741INSTALL_STRIP_PROGRAM
742STRIP
743install_sh
744MAKEINFO
745AUTOHEADER
746AUTOMAKE
747AUTOCONF
748ACLOCAL
749VERSION
750PACKAGE
751CYGPATH_W
752am__isrc
753INSTALL_DATA
754INSTALL_SCRIPT
755INSTALL_PROGRAM
756OBJEXT
757EXEEXT
758ac_ct_CC
759CPPFLAGS
760LDFLAGS
761CFLAGS
762CC
763target_os
764target_vendor
765target_cpu
766target
767host_os
768host_vendor
769host_cpu
770host
771build_os
772build_vendor
773build_cpu
774build
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_URL
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
50ff67e6 813ac_subst_files=''
81ecdfbb
RW
814ac_user_opts='
815enable_option_checking
816enable_dependency_tracking
d0ac1c44 817enable_silent_rules
64ac50ac 818enable_maintainer_mode
b879806f
AM
819enable_shared
820enable_static
821with_pic
822enable_fast_install
823with_gnu_ld
824enable_libtool_lock
825enable_plugins
826enable_largefile
81ecdfbb
RW
827with_lib_path
828enable_targets
829enable_64_bit_bfd
830with_sysroot
4fda8867 831enable_gold
81ecdfbb 832enable_got
6c3bc0f8 833enable_compressed_debug_sections
6734f10a 834enable_new_dtags
647e4d46 835enable_relro
b32632c4 836enable_textrel_check
f6aec96d 837enable_separate_code
23ae20f5 838enable_error_handling_script
2760f24c 839enable_default_hash_style
094e34f2 840enable_libctf
81ecdfbb
RW
841enable_werror
842enable_build_warnings
81ecdfbb 843enable_nls
02ecc8e9 844enable_initfini_array
1ff6de03 845with_system_zlib
81ecdfbb
RW
846'
847 ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
3cb62297
L
855CXX
856CXXFLAGS
857CCC
b879806f 858CPP
3cb62297 859CXXCPP
81ecdfbb
RW
860YACC
861YFLAGS'
862
252b5132
RH
863
864# Initialize some variables set by options.
42ecbf5e
DJ
865ac_init_help=
866ac_init_version=false
81ecdfbb
RW
867ac_unrecognized_opts=
868ac_unrecognized_sep=
252b5132
RH
869# The variables have the same names as the options, with
870# dashes changed to underlines.
42ecbf5e 871cache_file=/dev/null
252b5132 872exec_prefix=NONE
252b5132 873no_create=
252b5132
RH
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
252b5132
RH
882verbose=
883x_includes=NONE
884x_libraries=NONE
42ecbf5e
DJ
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 891# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
252b5132
RH
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
252b5132
RH
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
2e98a7bd 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
252b5132 911
252b5132 912ac_prev=
81ecdfbb 913ac_dashdash=
252b5132
RH
914for ac_option
915do
252b5132
RH
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
81ecdfbb 918 eval $ac_prev=\$ac_option
252b5132
RH
919 ac_prev=
920 continue
921 fi
922
81ecdfbb 923 case $ac_option in
d0ac1c44
SM
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
81ecdfbb 927 esac
252b5132
RH
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
81ecdfbb
RW
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
252b5132
RH
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 938 bindir=$ac_optarg ;;
252b5132
RH
939
940 -build | --build | --buil | --bui | --bu)
42ecbf5e 941 ac_prev=build_alias ;;
252b5132 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 943 build_alias=$ac_optarg ;;
252b5132
RH
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
252b5132 954
81ecdfbb 955 -datadir | --datadir | --datadi | --datad)
252b5132 956 ac_prev=datadir ;;
81ecdfbb 957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 958 datadir=$ac_optarg ;;
252b5132 959
81ecdfbb
RW
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
252b5132 967 -disable-* | --disable-*)
81ecdfbb 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 969 # Reject names that are not valid shell variable names.
81ecdfbb 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 971 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
252b5132
RH
992
993 -enable-* | --enable-*)
81ecdfbb 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 995 # Reject names that are not valid shell variable names.
81ecdfbb 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 997 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
252b5132 1006 esac
81ecdfbb 1007 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1016 exec_prefix=$ac_optarg ;;
252b5132
RH
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
42ecbf5e
DJ
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
252b5132
RH
1028
1029 -host | --host | --hos | --ho)
42ecbf5e 1030 ac_prev=host_alias ;;
252b5132 1031 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1032 host_alias=$ac_optarg ;;
252b5132 1033
81ecdfbb
RW
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
252b5132
RH
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1045 includedir=$ac_optarg ;;
252b5132
RH
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1050 infodir=$ac_optarg ;;
252b5132
RH
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1055 libdir=$ac_optarg ;;
252b5132
RH
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1062 libexecdir=$ac_optarg ;;
252b5132 1063
81ecdfbb
RW
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
252b5132 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1070 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1074 localstatedir=$ac_optarg ;;
252b5132
RH
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1079 mandir=$ac_optarg ;;
252b5132
RH
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1086 | --no-cr | --no-c | -n)
252b5132
RH
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1100 oldincludedir=$ac_optarg ;;
252b5132
RH
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1105 prefix=$ac_optarg ;;
252b5132
RH
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1112 program_prefix=$ac_optarg ;;
252b5132
RH
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1119 program_suffix=$ac_optarg ;;
252b5132
RH
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1136 program_transform_name=$ac_optarg ;;
252b5132 1137
81ecdfbb
RW
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
252b5132
RH
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
42ecbf5e 1156 sbindir=$ac_optarg ;;
252b5132
RH
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
42ecbf5e 1167 sharedstatedir=$ac_optarg ;;
252b5132
RH
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
42ecbf5e 1172 site=$ac_optarg ;;
85fbca6a 1173
252b5132
RH
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1177 srcdir=$ac_optarg ;;
252b5132
RH
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1184 sysconfdir=$ac_optarg ;;
252b5132
RH
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1187 ac_prev=target_alias ;;
252b5132 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1189 target_alias=$ac_optarg ;;
252b5132
RH
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
42ecbf5e
DJ
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
252b5132
RH
1196
1197 -with-* | --with-*)
81ecdfbb 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1199 # Reject names that are not valid shell variable names.
81ecdfbb 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1201 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
252b5132 1210 esac
81ecdfbb 1211 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1212
1213 -without-* | --without-*)
81ecdfbb 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1215 # Reject names that are not valid shell variable names.
81ecdfbb 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1217 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
252b5132
RH
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1238 x_includes=$ac_optarg ;;
252b5132
RH
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1245 x_libraries=$ac_optarg ;;
252b5132 1246
d0ac1c44
SM
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
252b5132
RH
1249 ;;
1250
42ecbf5e
DJ
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1257 esac
1258 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1259 export $ac_envvar ;;
1260
252b5132 1261 *)
42ecbf5e 1262 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
42ecbf5e 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1274 as_fn_error $? "missing argument to $ac_option"
252b5132 1275fi
252b5132 1276
81ecdfbb
RW
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
d0ac1c44 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1282 esac
81ecdfbb 1283fi
252b5132 1284
81ecdfbb
RW
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e0b2a78c 1289 libdir localedir mandir
252b5132 1290do
81ecdfbb
RW
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
42ecbf5e 1299 case $ac_val in
81ecdfbb
RW
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1302 esac
d0ac1c44 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1304done
1305
42ecbf5e
DJ
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
42ecbf5e
DJ
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
e5a52504 1321
42ecbf5e
DJ
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
252b5132 1326
252b5132 1327
81ecdfbb
RW
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1331 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1333 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1334
1335
252b5132
RH
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
81ecdfbb
RW
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
252b5132 1363 srcdir=$ac_confdir
81ecdfbb 1364 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
81ecdfbb
RW
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
d0ac1c44 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
252b5132 1394
42ecbf5e
DJ
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
573fe3fb 1402\`configure' configures ld 2.36.50 to adapt to many kinds of systems.
252b5132 1403
42ecbf5e 1404Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1405
42ecbf5e
DJ
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1408
42ecbf5e 1409Defaults for the options are specified in brackets.
ac48eca1 1410
42ecbf5e
DJ
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
d0ac1c44 1416 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
42ecbf5e
DJ
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1424 [$ac_default_prefix]
42ecbf5e 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1426 [PREFIX]
ac48eca1 1427
42ecbf5e
DJ
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
ac48eca1 1432
42ecbf5e 1433For better control, use the options below.
ac48eca1 1434
42ecbf5e 1435Fine tuning of the installation directories:
81ecdfbb
RW
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1455_ACEOF
ac48eca1 1456
42ecbf5e 1457 cat <<\_ACEOF
252b5132 1458
42ecbf5e
DJ
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1463
42ecbf5e
DJ
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468_ACEOF
252b5132 1469fi
252b5132 1470
42ecbf5e 1471if test -n "$ac_init_help"; then
2e98a7bd 1472 case $ac_init_help in
573fe3fb 1473 short | recursive ) echo "Configuration of ld 2.36.50:";;
2e98a7bd 1474 esac
42ecbf5e 1475 cat <<\_ACEOF
e5a52504 1476
42ecbf5e 1477Optional Features:
81ecdfbb 1478 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
b879806f
AM
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-plugins Enable support for plugins
1496 --disable-largefile omit support for large files
ce2cded5
L
1497 --enable-targets alternative target configurations
1498 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1499 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1500 --enable-got=<type> GOT handling scheme (target, single, negative,
1501 multigot)
4894d80b
L
1502 --enable-compressed-debug-sections={all,ld,none}
1503 compress debug sections by default]
6734f10a 1504 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1505 --enable-relro enable -z relro in ELF linker by default
b32632c4
L
1506 --enable-textrel-check=[yes|no|warning|error]
1507 enable DT_TEXTREL check in ELF linker
f6aec96d 1508 --enable-separate-code enable -z separate-code in ELF linker by default
23ae20f5
NC
1509 --enable-error-handling-script
1510 enable/disable support for the
1511 --error-handling-script option
2760f24c
RG
1512 --enable-default-hash-style={sysv,gnu,both}
1513 use this default hash style
094e34f2 1514 --enable-libctf Handle .ctf type-info sections [default=yes]
ce2cded5
L
1515 --enable-werror treat compile warnings as errors
1516 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1517 --disable-nls do not use Native Language Support
26e3a0c9 1518 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1519
1520Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1523 --with-pic try to use only PIC/non-PIC objects [default=use
1524 both]
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1526 --with-lib-path=dir1:dir2... set default LIB_PATH
1527 --with-sysroot=DIR Search for usr/lib et al within DIR.
1ff6de03 1528 --with-system-zlib use installed libz
42ecbf5e
DJ
1529
1530Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
81ecdfbb 1535 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1537 you have headers in a nonstandard directory <include dir>
3cb62297
L
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
b879806f 1540 CPP C preprocessor
3cb62297 1541 CXXCPP C++ preprocessor
d0ac1c44
SM
1542 YACC The `Yet Another Compiler Compiler' implementation to use.
1543 Defaults to the first program found out of: `bison -y', `byacc',
1544 `yacc'.
81ecdfbb
RW
1545 YFLAGS The list of arguments that will be passed by default to $YACC.
1546 This script will default YFLAGS to the empty string to avoid a
1547 default value of `-d' given by some make applications.
42ecbf5e
DJ
1548
1549Use these variables to override the choices made by `configure' or to help
1550it to find libraries and programs with nonstandard names/locations.
1551
81ecdfbb 1552Report bugs to the package provider.
42ecbf5e 1553_ACEOF
81ecdfbb 1554ac_status=$?
42ecbf5e
DJ
1555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
42ecbf5e 1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
42ecbf5e
DJ
1563 ac_builddir=.
1564
81ecdfbb
RW
1565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575esac
1576ac_abs_top_builddir=$ac_pwd
1577ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578# for backward compatibility:
1579ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1580
1581case $srcdir in
81ecdfbb 1582 .) # We are building in place.
42ecbf5e 1583 ac_srcdir=.
81ecdfbb
RW
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1587 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1594esac
81ecdfbb
RW
1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1605 else
81ecdfbb
RW
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1609 done
a2d91340
AC
1610fi
1611
81ecdfbb 1612test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1613if $ac_init_version; then
1614 cat <<\_ACEOF
573fe3fb 1615ld configure 2.36.50
d0ac1c44 1616generated by GNU Autoconf 2.69
a2d91340 1617
d0ac1c44 1618Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1619This configure script is free software; the Free Software Foundation
1620gives unlimited permission to copy, distribute and modify it.
1621_ACEOF
81ecdfbb 1622 exit
42ecbf5e 1623fi
a2d91340 1624
81ecdfbb
RW
1625## ------------------------ ##
1626## Autoconf initialization. ##
1627## ------------------------ ##
a2d91340 1628
81ecdfbb
RW
1629# ac_fn_c_try_compile LINENO
1630# --------------------------
1631# Try to compile conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_compile ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1659
81ecdfbb
RW
1660 ac_retval=1
1661fi
d0ac1c44
SM
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
81ecdfbb
RW
1664
1665} # ac_fn_c_try_compile
1666
1667# ac_fn_c_try_link LINENO
1668# -----------------------
1669# Try to link conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_link ()
42ecbf5e 1671{
81ecdfbb
RW
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
d0ac1c44 1694 test -x conftest$ac_exeext
81ecdfbb
RW
1695 }; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1700
81ecdfbb
RW
1701 ac_retval=1
1702fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
42ecbf5e 1710
81ecdfbb 1711} # ac_fn_c_try_link
42ecbf5e 1712
b879806f
AM
1713# ac_fn_cxx_try_compile LINENO
1714# ----------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_cxx_try_compile ()
81ecdfbb
RW
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
81ecdfbb
RW
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
b879806f 1727 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1737 test ! -s conftest.err
b879806f 1738 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
b879806f 1744 ac_retval=1
81ecdfbb 1745fi
d0ac1c44
SM
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
81ecdfbb 1748
b879806f 1749} # ac_fn_cxx_try_compile
81ecdfbb 1750
b879806f
AM
1751# ac_fn_c_try_cpp LINENO
1752# ----------------------
1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_cpp ()
3cb62297
L
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
b879806f 1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1772 test $ac_status = 0; } > conftest.i && {
b879806f 1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1774 test ! -s conftest.err
b879806f 1775 }; then :
3cb62297
L
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
b879806f 1781 ac_retval=1
3cb62297 1782fi
d0ac1c44
SM
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
3cb62297 1785
b879806f 1786} # ac_fn_c_try_cpp
3cb62297 1787
81ecdfbb
RW
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1796 if eval \${$3+:} false; then :
81ecdfbb
RW
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1799if eval \${$3+:} false; then :
81ecdfbb
RW
1800 $as_echo_n "(cached) " >&6
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806 # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1816else
1817 ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1832else
1833 ac_header_preproc=no
1834fi
d0ac1c44 1835rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So? What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 yes:no: )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ;;
1847 no:yes:* )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ;;
1859esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1862if eval \${$3+:} false; then :
81ecdfbb
RW
1863 $as_echo_n "(cached) " >&6
1864else
1865 eval "$3=\$ac_header_compiler"
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870fi
d0ac1c44 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1872
1873} # ac_fn_c_check_header_mongrel
1874
1875# ac_fn_c_try_run LINENO
1876# ----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878# that executables *can* be run.
1879ac_fn_c_try_run ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1903 ac_retval=0
1904else
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=$ac_status
1910fi
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
81ecdfbb
RW
1914
1915} # ac_fn_c_try_run
1916
1917# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918# -------------------------------------------------------
1919# Tests whether HEADER exists and can be compiled using the include files in
1920# INCLUDES, setting the cache variable VAR accordingly.
1921ac_fn_c_check_header_compile ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1926if eval \${$3+:} false; then :
81ecdfbb
RW
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
d0ac1c44 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1945
1946} # ac_fn_c_check_header_compile
1947
1948# ac_fn_c_check_func LINENO FUNC VAR
1949# ----------------------------------
1950# Tests whether FUNC exists, setting the cache variable VAR accordingly
1951ac_fn_c_check_func ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1956if eval \${$3+:} false; then :
81ecdfbb
RW
1957 $as_echo_n "(cached) " >&6
1958else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1963#define $2 innocuous_$2
1964
1965/* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $2 (); below.
1967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968 <limits.h> exists even on freestanding compilers. */
1969
1970#ifdef __STDC__
1971# include <limits.h>
1972#else
1973# include <assert.h>
1974#endif
1975
1976#undef $2
1977
1978/* Override any GCC internal prototype to avoid an error.
1979 Use char because int might match the return type of a GCC
1980 builtin and then its argument prototype would still apply. */
1981#ifdef __cplusplus
1982extern "C"
1983#endif
1984char $2 ();
1985/* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988#if defined __stub_$2 || defined __stub___$2
1989choke me
1990#endif
1991
1992int
1993main ()
1994{
1995return $2 ();
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_link "$LINENO"; then :
2001 eval "$3=yes"
2002else
2003 eval "$3=no"
2004fi
2005rm -f core conftest.err conftest.$ac_objext \
2006 conftest$ac_exeext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
d0ac1c44 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2012
2013} # ac_fn_c_check_func
2014
3cb62297
L
2015# ac_fn_cxx_try_cpp LINENO
2016# ------------------------
2017# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2018ac_fn_cxx_try_cpp ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if { { ac_try="$ac_cpp conftest.$ac_ext"
2022case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025esac
2026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027$as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2029 ac_status=$?
2030 if test -s conftest.err; then
2031 grep -v '^ *+' conftest.err >conftest.er1
2032 cat conftest.er1 >&5
2033 mv -f conftest.er1 conftest.err
2034 fi
2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2036 test $ac_status = 0; } > conftest.i && {
3cb62297
L
2037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2038 test ! -s conftest.err
2039 }; then :
2040 ac_retval=0
2041else
2042 $as_echo "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045 ac_retval=1
2046fi
d0ac1c44
SM
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
3cb62297
L
2049
2050} # ac_fn_cxx_try_cpp
2051
2052# ac_fn_cxx_try_link LINENO
2053# -------------------------
2054# Try to link conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_cxx_try_link ()
2056{
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 rm -f conftest.$ac_objext conftest$ac_exeext
2059 if { { ac_try="$ac_link"
2060case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_link") 2>conftest.err
2067 ac_status=$?
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2072 fi
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && {
2075 test -z "$ac_cxx_werror_flag" ||
2076 test ! -s conftest.err
2077 } && test -s conftest$ac_exeext && {
2078 test "$cross_compiling" = yes ||
d0ac1c44 2079 test -x conftest$ac_exeext
3cb62297
L
2080 }; then :
2081 ac_retval=0
2082else
2083 $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_retval=1
2087fi
2088 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2089 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2090 # interfere with the next link command; also delete a directory that is
2091 # left behind by Apple's compiler. We do this before executing the actions.
2092 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 as_fn_set_status $ac_retval
3cb62297
L
2095
2096} # ac_fn_cxx_try_link
2097
d0ac1c44
SM
2098# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2099# ---------------------------------------------
2100# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2101# accordingly.
81ecdfbb
RW
2102ac_fn_c_check_decl ()
2103{
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2105 as_decl_name=`echo $2|sed 's/ *(.*//'`
2106 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2108$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2109if eval \${$3+:} false; then :
81ecdfbb
RW
2110 $as_echo_n "(cached) " >&6
2111else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h. */
2114$4
2115int
2116main ()
2117{
360cfc9c
AM
2118#ifndef $as_decl_name
2119#ifdef __cplusplus
2120 (void) $as_decl_use;
2121#else
2122 (void) $as_decl_name;
2123#endif
81ecdfbb
RW
2124#endif
2125
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_compile "$LINENO"; then :
2131 eval "$3=yes"
2132else
2133 eval "$3=no"
2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136fi
2137eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
d0ac1c44 2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2141
2142} # ac_fn_c_check_decl
2143
2144# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2145# --------------------------------------------
2146# Tries to find the compile-time value of EXPR in a program that includes
2147# INCLUDES, setting VAR accordingly. Returns whether the value could be
2148# computed
2149ac_fn_c_compute_int ()
2150{
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 if test "$cross_compiling" = yes; then
2153 # Depending upon the size, compute the lo and hi bounds.
2154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h. */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
2161test_array [0] = 0;
2162return test_array [0];
81ecdfbb
RW
2163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_lo=0 ac_mid=0
2170 while :; do
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2178test_array [0] = 0;
2179return test_array [0];
81ecdfbb
RW
2180
2181 ;
2182 return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2192 fi
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201int
2202main ()
2203{
2204static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2205test_array [0] = 0;
2206return test_array [0];
81ecdfbb
RW
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=-1 ac_mid=-1
2214 while :; do
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$4
2218int
2219main ()
2220{
2221static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2222test_array [0] = 0;
2223return test_array [0];
81ecdfbb
RW
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 ac_lo=$ac_mid; break
2231else
2232 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2233 if test $ac_mid -le $ac_hi; then
2234 ac_lo= ac_hi=
2235 break
2236 fi
2237 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 done
2241else
2242 ac_lo= ac_hi=
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247# Binary search between lo and hi bounds.
2248while test "x$ac_lo" != "x$ac_hi"; do
2249 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h. */
2252$4
2253int
2254main ()
2255{
2256static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2257test_array [0] = 0;
2258return test_array [0];
81ecdfbb
RW
2259
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270done
2271case $ac_lo in #((
2272?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273'') ac_retval=1 ;;
2274esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$4
2279static long int longval () { return $2; }
2280static unsigned long int ulongval () { return $2; }
2281#include <stdio.h>
2282#include <stdlib.h>
2283int
2284main ()
2285{
2286
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2291 {
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2296 }
2297 else
2298 {
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2303 }
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312if ac_fn_c_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314else
2315 ac_retval=1
2316fi
2317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319rm -f conftest.val
2320
2321 fi
d0ac1c44
SM
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 as_fn_set_status $ac_retval
81ecdfbb
RW
2324
2325} # ac_fn_c_compute_int
2326cat >config.log <<_ACEOF
2327This file contains any messages produced by compilers while
2328running configure, to aid debugging if configure makes a mistake.
2329
573fe3fb 2330It was created by ld $as_me 2.36.50, which was
d0ac1c44 2331generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2332
2333 $ $0 $@
2334
2335_ACEOF
2336exec 5>>config.log
2337{
2338cat <<_ASUNAME
2339## --------- ##
2340## Platform. ##
2341## --------- ##
2342
2343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2344uname -m = `(uname -m) 2>/dev/null || echo unknown`
2345uname -r = `(uname -r) 2>/dev/null || echo unknown`
2346uname -s = `(uname -s) 2>/dev/null || echo unknown`
2347uname -v = `(uname -v) 2>/dev/null || echo unknown`
2348
2349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2350/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2351
2352/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2353/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2355/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2356/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2357/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2358/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2359
2360_ASUNAME
2361
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2367 $as_echo "PATH: $as_dir"
2368 done
2369IFS=$as_save_IFS
252b5132 2370
42ecbf5e 2371} >&5
5d64ca4e 2372
42ecbf5e 2373cat >&5 <<_ACEOF
5d64ca4e 2374
5d64ca4e 2375
42ecbf5e
DJ
2376## ----------- ##
2377## Core tests. ##
2378## ----------- ##
5d64ca4e 2379
42ecbf5e 2380_ACEOF
2469cfa2 2381
42ecbf5e
DJ
2382
2383# Keep a trace of the command line.
2384# Strip out --no-create and --no-recursion so they do not pile up.
2385# Strip out --silent because we don't want to record it for future runs.
2386# Also quote any args containing shell meta-characters.
2387# Make two passes to allow for proper duplicate-argument suppression.
2388ac_configure_args=
2389ac_configure_args0=
2390ac_configure_args1=
42ecbf5e
DJ
2391ac_must_keep_next=false
2392for ac_pass in 1 2
2393do
2394 for ac_arg
2395 do
2396 case $ac_arg in
2397 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2399 | -silent | --silent | --silen | --sile | --sil)
2400 continue ;;
81ecdfbb
RW
2401 *\'*)
2402 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2403 esac
2404 case $ac_pass in
81ecdfbb 2405 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2406 2)
81ecdfbb 2407 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2408 if test $ac_must_keep_next = true; then
2409 ac_must_keep_next=false # Got value, back to normal.
2410 else
2411 case $ac_arg in
2412 *=* | --config-cache | -C | -disable-* | --disable-* \
2413 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2414 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2415 | -with-* | --with-* | -without-* | --without-* | --x)
2416 case "$ac_configure_args0 " in
2417 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2418 esac
2419 ;;
2420 -* ) ac_must_keep_next=true ;;
2421 esac
2422 fi
81ecdfbb 2423 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2424 ;;
2425 esac
2426 done
2427done
81ecdfbb
RW
2428{ ac_configure_args0=; unset ac_configure_args0;}
2429{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2430
2431# When interrupted or exit'd, cleanup temporary files, and complete
2432# config.log. We remove comments because anyway the quotes in there
2433# would cause problems or look ugly.
81ecdfbb
RW
2434# WARNING: Use '\'' to represent an apostrophe within the trap.
2435# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2436trap 'exit_status=$?
2437 # Save into config.log some information that might help in debugging.
2438 {
2439 echo
2440
d0ac1c44 2441 $as_echo "## ---------------- ##
42ecbf5e 2442## Cache variables. ##
d0ac1c44 2443## ---------------- ##"
42ecbf5e
DJ
2444 echo
2445 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2446(
2447 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2448 eval ac_val=\$$ac_var
2449 case $ac_val in #(
2450 *${as_nl}*)
2451 case $ac_var in #(
2452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2453$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454 esac
2455 case $ac_var in #(
2456 _ | IFS | as_nl) ;; #(
2457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2458 *) { eval $ac_var=; unset $ac_var;} ;;
2459 esac ;;
2460 esac
2461 done
42ecbf5e 2462 (set) 2>&1 |
81ecdfbb
RW
2463 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2464 *${as_nl}ac_space=\ *)
42ecbf5e 2465 sed -n \
81ecdfbb
RW
2466 "s/'\''/'\''\\\\'\'''\''/g;
2467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468 ;; #(
42ecbf5e 2469 *)
81ecdfbb 2470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2471 ;;
81ecdfbb
RW
2472 esac |
2473 sort
2474)
42ecbf5e
DJ
2475 echo
2476
d0ac1c44 2477 $as_echo "## ----------------- ##
42ecbf5e 2478## Output variables. ##
d0ac1c44 2479## ----------------- ##"
42ecbf5e
DJ
2480 echo
2481 for ac_var in $ac_subst_vars
2482 do
81ecdfbb
RW
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2488 done | sort
2489 echo
2490
2491 if test -n "$ac_subst_files"; then
d0ac1c44 2492 $as_echo "## ------------------- ##
81ecdfbb 2493## File substitutions. ##
d0ac1c44 2494## ------------------- ##"
42ecbf5e
DJ
2495 echo
2496 for ac_var in $ac_subst_files
2497 do
81ecdfbb
RW
2498 eval ac_val=\$$ac_var
2499 case $ac_val in
2500 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 esac
2502 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2503 done | sort
2504 echo
2505 fi
2506
2507 if test -s confdefs.h; then
d0ac1c44 2508 $as_echo "## ----------- ##
42ecbf5e 2509## confdefs.h. ##
d0ac1c44 2510## ----------- ##"
42ecbf5e 2511 echo
81ecdfbb 2512 cat confdefs.h
42ecbf5e
DJ
2513 echo
2514 fi
2515 test "$ac_signal" != 0 &&
81ecdfbb
RW
2516 $as_echo "$as_me: caught signal $ac_signal"
2517 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2518 } >&5
81ecdfbb
RW
2519 rm -f core *.core core.conftest.* &&
2520 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2521 exit $exit_status
81ecdfbb 2522' 0
42ecbf5e 2523for ac_signal in 1 2 13 15; do
81ecdfbb 2524 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2525done
2526ac_signal=0
2527
2528# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2529rm -f -r conftest* confdefs.h
2530
2531$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2532
2533# Predefined preprocessor variables.
2534
2535cat >>confdefs.h <<_ACEOF
2536#define PACKAGE_NAME "$PACKAGE_NAME"
2537_ACEOF
2538
42ecbf5e
DJ
2539cat >>confdefs.h <<_ACEOF
2540#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2541_ACEOF
2542
42ecbf5e
DJ
2543cat >>confdefs.h <<_ACEOF
2544#define PACKAGE_VERSION "$PACKAGE_VERSION"
2545_ACEOF
2546
42ecbf5e
DJ
2547cat >>confdefs.h <<_ACEOF
2548#define PACKAGE_STRING "$PACKAGE_STRING"
2549_ACEOF
2550
42ecbf5e
DJ
2551cat >>confdefs.h <<_ACEOF
2552#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2553_ACEOF
2554
81ecdfbb
RW
2555cat >>confdefs.h <<_ACEOF
2556#define PACKAGE_URL "$PACKAGE_URL"
2557_ACEOF
2558
42ecbf5e
DJ
2559
2560# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2561# Prefer an explicitly selected file to automatically selected ones.
2562ac_site_file1=NONE
2563ac_site_file2=NONE
2564if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2565 # We do not want a PATH search for config.site.
2566 case $CONFIG_SITE in #((
2567 -*) ac_site_file1=./$CONFIG_SITE;;
2568 */*) ac_site_file1=$CONFIG_SITE;;
2569 *) ac_site_file1=./$CONFIG_SITE;;
2570 esac
81ecdfbb
RW
2571elif test "x$prefix" != xNONE; then
2572 ac_site_file1=$prefix/share/config.site
2573 ac_site_file2=$prefix/etc/config.site
2574else
2575 ac_site_file1=$ac_default_prefix/share/config.site
2576 ac_site_file2=$ac_default_prefix/etc/config.site
2577fi
2578for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2579do
2580 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2581 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2583$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2584 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2585 . "$ac_site_file" \
2586 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588as_fn_error $? "failed to load site script $ac_site_file
2589See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2590 fi
2591done
2592
2593if test -r "$cache_file"; then
d0ac1c44
SM
2594 # Some versions of bash will fail to source /dev/null (special files
2595 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2596 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2599 case $cache_file in
81ecdfbb
RW
2600 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601 *) . "./$cache_file";;
42ecbf5e
DJ
2602 esac
2603 fi
2604else
81ecdfbb
RW
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2607 >$cache_file
2608fi
2609
d0ac1c44
SM
2610as_fn_append ac_header_list " stdlib.h"
2611as_fn_append ac_header_list " unistd.h"
2612as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2613# Check that the precious variables saved in the cache have kept the same
2614# value.
2615ac_cache_corrupted=false
81ecdfbb 2616for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2621 case $ac_old_set,$ac_new_set in
2622 set,)
81ecdfbb
RW
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2624$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2625 ac_cache_corrupted=: ;;
2626 ,set)
81ecdfbb
RW
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2628$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2629 ac_cache_corrupted=: ;;
2630 ,);;
2631 *)
2632 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2633 # differences in whitespace do not lead to failure.
2634 ac_old_val_w=`echo x $ac_old_val`
2635 ac_new_val_w=`echo x $ac_new_val`
2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2638$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2639 ac_cache_corrupted=:
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2642$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2643 eval $ac_var=\$ac_old_val
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2646$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2648$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2649 fi;;
2650 esac
2651 # Pass precious variables to config.status.
2652 if test "$ac_new_set" = set; then
2653 case $ac_new_val in
81ecdfbb 2654 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2655 *) ac_arg=$ac_var=$ac_new_val ;;
2656 esac
2657 case " $ac_configure_args " in
2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2660 esac
2661 fi
2662done
2663if $ac_cache_corrupted; then
81ecdfbb
RW
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2668 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2669fi
81ecdfbb
RW
2670## -------------------- ##
2671## Main body of script. ##
2672## -------------------- ##
42ecbf5e
DJ
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680
2681
42ecbf5e 2682
da594c4a 2683
42ecbf5e
DJ
2684
2685
2686ac_aux_dir=
81ecdfbb 2687for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2688 if test -f "$ac_dir/install-sh"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/install-sh -c"
2691 break
2692 elif test -f "$ac_dir/install.sh"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/install.sh -c"
2695 break
2696 elif test -f "$ac_dir/shtool"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/shtool install -c"
2699 break
2700 fi
42ecbf5e
DJ
2701done
2702if test -z "$ac_aux_dir"; then
d0ac1c44 2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2704fi
81ecdfbb
RW
2705
2706# These three variables are undocumented and unsupported,
2707# and are intended to be withdrawn in a future Autoconf release.
2708# They can cause serious problems if a builder's source tree is in a directory
2709# whose full name contains unusual characters.
2710ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2713
42ecbf5e
DJ
2714
2715# Make sure we can run config.sub.
81ecdfbb 2716$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2718
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2721if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2722 $as_echo_n "(cached) " >&6
2723else
2724 ac_build_alias=$build_alias
2725test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727test "x$ac_build_alias" = x &&
d0ac1c44 2728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2729ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2731
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734$as_echo "$ac_cv_build" >&6; }
2735case $ac_cv_build in
2736*-*-*) ;;
d0ac1c44 2737*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2738esac
42ecbf5e 2739build=$ac_cv_build
81ecdfbb
RW
2740ac_save_IFS=$IFS; IFS='-'
2741set x $ac_cv_build
2742shift
2743build_cpu=$1
2744build_vendor=$2
2745shift; shift
2746# Remember, the first character of IFS is used to create $*,
2747# except with old shells:
2748build_os=$*
2749IFS=$ac_save_IFS
2750case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2751
2752
81ecdfbb
RW
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2755if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2756 $as_echo_n "(cached) " >&6
2757else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
42ecbf5e 2760else
81ecdfbb 2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2763fi
42ecbf5e
DJ
2764
2765fi
81ecdfbb
RW
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767$as_echo "$ac_cv_host" >&6; }
2768case $ac_cv_host in
2769*-*-*) ;;
d0ac1c44 2770*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2771esac
42ecbf5e 2772host=$ac_cv_host
81ecdfbb
RW
2773ac_save_IFS=$IFS; IFS='-'
2774set x $ac_cv_host
2775shift
2776host_cpu=$1
2777host_vendor=$2
2778shift; shift
2779# Remember, the first character of IFS is used to create $*,
2780# except with old shells:
2781host_os=$*
2782IFS=$ac_save_IFS
2783case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2784
2785
81ecdfbb
RW
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2788if ${ac_cv_target+:} false; then :
81ecdfbb 2789 $as_echo_n "(cached) " >&6
42ecbf5e 2790else
81ecdfbb
RW
2791 if test "x$target_alias" = x; then
2792 ac_cv_target=$ac_cv_host
2793else
2794 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2796fi
42ecbf5e
DJ
2797
2798fi
81ecdfbb
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800$as_echo "$ac_cv_target" >&6; }
2801case $ac_cv_target in
2802*-*-*) ;;
d0ac1c44 2803*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2804esac
42ecbf5e 2805target=$ac_cv_target
81ecdfbb
RW
2806ac_save_IFS=$IFS; IFS='-'
2807set x $ac_cv_target
2808shift
2809target_cpu=$1
2810target_vendor=$2
2811shift; shift
2812# Remember, the first character of IFS is used to create $*,
2813# except with old shells:
2814target_os=$*
2815IFS=$ac_save_IFS
2816case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2817
2818
2819# The aliases save the names the user supplied, while $host etc.
2820# will get canonicalized.
2821test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2823 NONENONEs,x,x, &&
2824 program_prefix=${target_alias}-
02ecc8e9 2825
d0ac1c44
SM
2826# Expand $ac_aux_dir to an absolute path.
2827am_aux_dir=`cd "$ac_aux_dir" && pwd`
2828
42ecbf5e
DJ
2829ac_ext=c
2830ac_cpp='$CPP $CPPFLAGS'
2831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2839if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2840 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2841else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
81ecdfbb 2850 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2854 break 2
2855 fi
2856done
81ecdfbb
RW
2857 done
2858IFS=$as_save_IFS
42ecbf5e
DJ
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
81ecdfbb
RW
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
42ecbf5e 2866else
81ecdfbb
RW
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
42ecbf5e
DJ
2869fi
2870
81ecdfbb 2871
42ecbf5e
DJ
2872fi
2873if test -z "$ac_cv_prog_CC"; then
2874 ac_ct_CC=$CC
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876set dummy gcc; ac_word=$2
81ecdfbb
RW
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2879if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2880 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2881else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
81ecdfbb 2890 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2892 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2894 break 2
2895 fi
2896done
81ecdfbb
RW
2897 done
2898IFS=$as_save_IFS
42ecbf5e
DJ
2899
2900fi
2901fi
2902ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2906else
81ecdfbb
RW
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
42ecbf5e
DJ
2909fi
2910
81ecdfbb
RW
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915yes:)
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918ac_tool_warned=yes ;;
2919esac
2920 CC=$ac_ct_CC
2921 fi
42ecbf5e
DJ
2922else
2923 CC="$ac_cv_prog_CC"
2924fi
2925
2926if test -z "$CC"; then
81ecdfbb
RW
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2929set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2932if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2933 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2934else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
81ecdfbb 2943 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2947 break 2
2948 fi
2949done
81ecdfbb
RW
2950 done
2951IFS=$as_save_IFS
42ecbf5e
DJ
2952
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
81ecdfbb
RW
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
42ecbf5e 2959else
81ecdfbb
RW
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
42ecbf5e
DJ
2962fi
2963
42ecbf5e 2964
81ecdfbb 2965 fi
42ecbf5e
DJ
2966fi
2967if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969set dummy cc; ac_word=$2
81ecdfbb
RW
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2972if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2973 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2974else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978 ac_prog_rejected=no
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
81ecdfbb 2984 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e
DJ
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
81ecdfbb 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2992 break 2
2993 fi
2994done
81ecdfbb
RW
2995 done
2996IFS=$as_save_IFS
42ecbf5e
DJ
2997
2998if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009fi
3010fi
3011fi
3012CC=$ac_cv_prog_CC
3013if test -n "$CC"; then
81ecdfbb
RW
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015$as_echo "$CC" >&6; }
42ecbf5e 3016else
81ecdfbb
RW
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018$as_echo "no" >&6; }
42ecbf5e
DJ
3019fi
3020
81ecdfbb 3021
42ecbf5e
DJ
3022fi
3023if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
81ecdfbb 3025 for ac_prog in cl.exe
42ecbf5e
DJ
3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3031if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3032 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
81ecdfbb 3042 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3046 break 2
3047 fi
3048done
81ecdfbb
RW
3049 done
3050IFS=$as_save_IFS
42ecbf5e
DJ
3051
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
81ecdfbb
RW
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057$as_echo "$CC" >&6; }
42ecbf5e 3058else
81ecdfbb
RW
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
42ecbf5e
DJ
3061fi
3062
81ecdfbb 3063
42ecbf5e
DJ
3064 test -n "$CC" && break
3065 done
3066fi
3067if test -z "$CC"; then
3068 ac_ct_CC=$CC
81ecdfbb 3069 for ac_prog in cl.exe
42ecbf5e
DJ
3070do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3075if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3076 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3077else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
81ecdfbb 3086 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3088 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3090 break 2
3091 fi
3092done
81ecdfbb
RW
3093 done
3094IFS=$as_save_IFS
42ecbf5e
DJ
3095
3096fi
3097fi
3098ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3102else
81ecdfbb
RW
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
42ecbf5e
DJ
3105fi
3106
81ecdfbb 3107
42ecbf5e
DJ
3108 test -n "$ac_ct_CC" && break
3109done
3110
81ecdfbb
RW
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115yes:)
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118ac_tool_warned=yes ;;
3119esac
3120 CC=$ac_ct_CC
3121 fi
42ecbf5e
DJ
3122fi
3123
3124fi
3125
3126
81ecdfbb
RW
3127test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3129as_fn_error $? "no acceptable C compiler found in \$PATH
3130See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
3131
3132# Provide some information about the compiler.
81ecdfbb
RW
3133$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3134set X $ac_compile
3135ac_compiler=$2
3136for ac_option in --version -v -V -qversion; do
3137 { { ac_try="$ac_compiler $ac_option >&5"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3145 ac_status=$?
81ecdfbb
RW
3146 if test -s conftest.err; then
3147 sed '10a\
3148... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
81ecdfbb 3151 fi
d0ac1c44 3152 rm -f conftest.er1 conftest.err
81ecdfbb
RW
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155done
42ecbf5e 3156
81ecdfbb 3157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168ac_clean_files_save=$ac_clean_files
d0ac1c44 3169ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
42ecbf5e
DJ
3170# Try to create an executable without -o first, disregard a.out.
3171# It will help us diagnose broken compilers, and finding out an intuition
3172# of exeext.
d0ac1c44
SM
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3174$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
3175ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176
3177# The possible output files:
3178ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179
3180ac_rmfiles=
3181for ac_file in $ac_files
3182do
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 esac
3187done
3188rm -f $ac_rmfiles
3189
3190if { { ac_try="$ac_link_default"
3191case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194esac
3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196$as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link_default") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203# in a Makefile. We should not override ac_cv_exeext if it was cached,
3204# so that the user can short-circuit this test for compilers unknown to
3205# Autoconf.
3206for ac_file in $ac_files ''
42ecbf5e
DJ
3207do
3208 test -f "$ac_file" || continue
3209 case $ac_file in
81ecdfbb 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3211 ;;
3212 [ab].out )
3213 # We found the default executable, but exeext='' is most
3214 # certainly right.
3215 break;;
3216 *.* )
81ecdfbb
RW
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 then :; else
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 fi
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3225 # actually working.
42ecbf5e
DJ
3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
81ecdfbb
RW
3231test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
42ecbf5e 3233else
81ecdfbb
RW
3234 ac_file=''
3235fi
81ecdfbb 3236if test -z "$ac_file"; then :
d0ac1c44
SM
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239$as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
81ecdfbb
RW
3242{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3244as_fn_error 77 "C compiler cannot create executables
3245See \`config.log' for more details" "$LINENO" 5; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
42ecbf5e 3249fi
d0ac1c44
SM
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251$as_echo_n "checking for C compiler default output file name... " >&6; }
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253$as_echo "$ac_file" >&6; }
42ecbf5e 3254ac_exeext=$ac_cv_exeext
42ecbf5e 3255
d0ac1c44 3256rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
42ecbf5e 3257ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3259$as_echo_n "checking for suffix of executables... " >&6; }
3260if { { ac_try="$ac_link"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
42ecbf5e 3268 ac_status=$?
81ecdfbb
RW
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
42ecbf5e
DJ
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
81ecdfbb 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3280 break;;
3281 * ) break;;
3282 esac
3283done
3284else
81ecdfbb
RW
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3287as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3288See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e 3289fi
d0ac1c44 3290rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3292$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3293
3294rm -f conftest.$ac_ext
3295EXEEXT=$ac_cv_exeext
3296ac_exeext=$EXEEXT
d0ac1c44
SM
3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h. */
3299#include <stdio.h>
3300int
3301main ()
3302{
3303FILE *f = fopen ("conftest.out", "w");
3304 return ferror (f) || fclose (f) != 0;
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310ac_clean_files="$ac_clean_files conftest.out"
3311# Check that the compiler produces executables we can run. If not, either
3312# the compiler is broken, or we cross compile.
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3314$as_echo_n "checking whether we are cross compiling... " >&6; }
3315if test "$cross_compiling" != yes; then
3316 { { ac_try="$ac_link"
3317case "(($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_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327 if { ac_try='./conftest$ac_cv_exeext'
3328 { { case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; }; then
3338 cross_compiling=no
3339 else
3340 if test "$cross_compiling" = maybe; then
3341 cross_compiling=yes
3342 else
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345as_fn_error $? "cannot run C compiled programs.
3346If you meant to cross compile, use \`--host'.
3347See \`config.log' for more details" "$LINENO" 5; }
3348 fi
3349 fi
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3352$as_echo "$cross_compiling" >&6; }
3353
3354rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3355ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3357$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3358if ${ac_cv_objext+:} false; then :
81ecdfbb 3359 $as_echo_n "(cached) " >&6
42ecbf5e 3360else
81ecdfbb 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3362/* end confdefs.h. */
3363
3364int
3365main ()
3366{
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372rm -f conftest.o conftest.obj
81ecdfbb
RW
3373if { { ac_try="$ac_compile"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compile") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 for ac_file in conftest.o conftest.obj conftest.*; do
3385 test -f "$ac_file" || continue;
42ecbf5e 3386 case $ac_file in
81ecdfbb 3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 break;;
3390 esac
3391done
3392else
81ecdfbb 3393 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
81ecdfbb
RW
3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3398as_fn_error $? "cannot compute suffix of object files: cannot compile
3399See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e 3400fi
42ecbf5e
DJ
3401rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402fi
81ecdfbb
RW
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3404$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3405OBJEXT=$ac_cv_objext
3406ac_objext=$OBJEXT
81ecdfbb
RW
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3408$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3409if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3410 $as_echo_n "(cached) " >&6
42ecbf5e 3411else
81ecdfbb 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418#ifndef __GNUC__
3419 choke me
3420#endif
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
81ecdfbb 3426if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3427 ac_compiler_gnu=yes
3428else
81ecdfbb 3429 ac_compiler_gnu=no
42ecbf5e 3430fi
81ecdfbb 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3432ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433
3434fi
81ecdfbb
RW
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3436$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3437if test $ac_compiler_gnu = yes; then
3438 GCC=yes
3439else
3440 GCC=
3441fi
42ecbf5e
DJ
3442ac_test_CFLAGS=${CFLAGS+set}
3443ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3445$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3446if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3447 $as_echo_n "(cached) " >&6
3448else
3449 ac_save_c_werror_flag=$ac_c_werror_flag
3450 ac_c_werror_flag=yes
3451 ac_cv_prog_cc_g=no
3452 CFLAGS="-g"
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3454/* end confdefs.h. */
3455
3456int
3457main ()
3458{
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
81ecdfbb 3464if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3465 ac_cv_prog_cc_g=yes
3466else
81ecdfbb
RW
3467 CFLAGS=""
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h. */
3470
3471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479if ac_fn_c_try_compile "$LINENO"; then :
3480
3481else
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3483 CFLAGS="-g"
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
42ecbf5e 3490
81ecdfbb
RW
3491 ;
3492 return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_cv_prog_cc_g=yes
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3501fi
81ecdfbb
RW
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3504fi
81ecdfbb
RW
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3506$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3507if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3511 CFLAGS="-g -O2"
3512 else
3513 CFLAGS="-g"
3514 fi
3515else
3516 if test "$GCC" = yes; then
3517 CFLAGS="-O2"
3518 else
3519 CFLAGS=
3520 fi
3521fi
81ecdfbb
RW
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3524if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3525 $as_echo_n "(cached) " >&6
42ecbf5e 3526else
81ecdfbb 3527 ac_cv_prog_cc_c89=no
42ecbf5e 3528ac_save_CC=$CC
81ecdfbb 3529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3530/* end confdefs.h. */
3531#include <stdarg.h>
3532#include <stdio.h>
d0ac1c44 3533struct stat;
42ecbf5e
DJ
3534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535struct buf { int x; };
3536FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537static char *e (p, i)
3538 char **p;
3539 int i;
3540{
3541 return p[i];
3542}
3543static char *f (char * (*g) (char **, int), char **p, ...)
3544{
3545 char *s;
3546 va_list v;
3547 va_start (v,p);
3548 s = g (p, va_arg (v,int));
3549 va_end (v);
3550 return s;
3551}
3552
3553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3556 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3559 that's true only with -std. */
42ecbf5e
DJ
3560int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
81ecdfbb
RW
3562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3564#define FOO(x) 'x'
3565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
42ecbf5e
DJ
3567int test (int i, double x);
3568struct s1 {int (*f) (int a);};
3569struct s2 {int (*f) (double a);};
3570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571int argc;
3572char **argv;
3573int
3574main ()
3575{
3576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 ;
3578 return 0;
3579}
3580_ACEOF
81ecdfbb
RW
3581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3583do
3584 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3587fi
81ecdfbb
RW
3588rm -f core conftest.err conftest.$ac_objext
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3590done
81ecdfbb 3591rm -f conftest.$ac_ext
42ecbf5e
DJ
3592CC=$ac_save_CC
3593
3594fi
81ecdfbb
RW
3595# AC_CACHE_VAL
3596case "x$ac_cv_prog_cc_c89" in
3597 x)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599$as_echo "none needed" >&6; } ;;
3600 xno)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602$as_echo "unsupported" >&6; } ;;
42ecbf5e 3603 *)
81ecdfbb
RW
3604 CC="$CC $ac_cv_prog_cc_c89"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3607esac
81ecdfbb 3608if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3609
42ecbf5e
DJ
3610fi
3611
42ecbf5e
DJ
3612ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
d0ac1c44
SM
3618ac_ext=c
3619ac_cpp='$CPP $CPPFLAGS'
3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3624$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3625if ${am_cv_prog_cc_c_o+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630
3631int
3632main ()
3633{
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639 # Make sure it works both with $CC and with simple cc.
3640 # Following AC_PROG_CC_C_O, we do the test twice because some
3641 # compilers refuse to overwrite an existing .o file with -o,
3642 # though they will create one.
3643 am_cv_prog_cc_c_o=yes
3644 for am_i in 1 2; do
3645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } \
3650 && test -f conftest2.$ac_objext; then
3651 : OK
3652 else
3653 am_cv_prog_cc_c_o=no
3654 break
3655 fi
3656 done
3657 rm -f core conftest*
3658 unset am_i
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3661$as_echo "$am_cv_prog_cc_c_o" >&6; }
3662if test "$am_cv_prog_cc_c_o" != yes; then
3663 # Losing compiler, so override with the script.
3664 # FIXME: It is wrong to rewrite CC.
3665 # But if we don't then we get into trouble of one sort or another.
3666 # A longer-term fix would be to have automake use am__CC in this case,
3667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3668 CC="$am_aux_dir/compile $CC"
3669fi
3670ac_ext=c
3671ac_cpp='$CPP $CPPFLAGS'
3672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675
3676
42ecbf5e 3677
81ecdfbb
RW
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3679$as_echo_n "checking for library containing strerror... " >&6; }
d0ac1c44 3680if ${ac_cv_search_strerror+:} false; then :
81ecdfbb 3681 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3682else
3683 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3685/* end confdefs.h. */
3686
81ecdfbb
RW
3687/* Override any GCC internal prototype to avoid an error.
3688 Use char because int might match the return type of a GCC
3689 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3690#ifdef __cplusplus
3691extern "C"
3692#endif
42ecbf5e
DJ
3693char strerror ();
3694int
3695main ()
3696{
81ecdfbb 3697return strerror ();
42ecbf5e
DJ
3698 ;
3699 return 0;
3700}
3701_ACEOF
81ecdfbb
RW
3702for ac_lib in '' cposix; do
3703 if test -z "$ac_lib"; then
3704 ac_res="none required"
3705 else
3706 ac_res=-l$ac_lib
42ecbf5e 3707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3708 fi
3709 if ac_fn_c_try_link "$LINENO"; then :
3710 ac_cv_search_strerror=$ac_res
3711fi
3712rm -f core conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext
d0ac1c44 3714 if ${ac_cv_search_strerror+:} false; then :
81ecdfbb
RW
3715 break
3716fi
3717done
d0ac1c44 3718if ${ac_cv_search_strerror+:} false; then :
42ecbf5e 3719
42ecbf5e 3720else
81ecdfbb 3721 ac_cv_search_strerror=no
42ecbf5e 3722fi
81ecdfbb 3723rm conftest.$ac_ext
42ecbf5e
DJ
3724LIBS=$ac_func_search_save_LIBS
3725fi
81ecdfbb
RW
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3727$as_echo "$ac_cv_search_strerror" >&6; }
3728ac_res=$ac_cv_search_strerror
3729if test "$ac_res" != no; then :
3730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3731
3732fi
e5a52504
MM
3733
3734
d0ac1c44 3735am__api_version='1.15'
81ecdfbb 3736
e5a52504
MM
3737# Find a good install program. We prefer a C program (faster),
3738# so one script is as good as another. But avoid the broken or
3739# incompatible versions:
3740# SysV /etc/install, /usr/sbin/install
3741# SunOS /usr/etc/install
3742# IRIX /sbin/install
3743# AIX /bin/install
42ecbf5e 3744# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3745# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3746# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3747# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3748# OS/2's system install, which has a completely different semantic
e5a52504 3749# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3750# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3752$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3753if test -z "$INSTALL"; then
d0ac1c44 3754if ${ac_cv_path_install+:} false; then :
81ecdfbb 3755 $as_echo_n "(cached) " >&6
e5a52504 3756else
42ecbf5e
DJ
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3762 # Account for people who put trailing slashes in PATH elements.
3763case $as_dir/ in #((
3764 ./ | .// | /[cC]/* | \
42ecbf5e 3765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3767 /usr/ucb/* ) ;;
3768 *)
3769 # OSF1 and SCO ODT 3.0 have their own names for install.
3770 # Don't use installbsd from OSF since it installs stuff as root
3771 # by default.
3772 for ac_prog in ginstall scoinst install; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3774 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 3775 if test $ac_prog = install &&
42ecbf5e 3776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3777 # AIX install. It has an incompatible calling convention.
3778 :
42ecbf5e
DJ
3779 elif test $ac_prog = install &&
3780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3781 # program-specific install script used by HP pwplus--don't use.
3782 :
252b5132 3783 else
58c85be7
RW
3784 rm -rf conftest.one conftest.two conftest.dir
3785 echo one > conftest.one
3786 echo two > conftest.two
3787 mkdir conftest.dir
3788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3789 test -s conftest.one && test -s conftest.two &&
3790 test -s conftest.dir/conftest.one &&
3791 test -s conftest.dir/conftest.two
3792 then
3793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3794 break 3
3795 fi
252b5132
RH
3796 fi
3797 fi
3798 done
42ecbf5e
DJ
3799 done
3800 ;;
3801esac
81ecdfbb
RW
3802
3803 done
3804IFS=$as_save_IFS
42ecbf5e 3805
58c85be7 3806rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3807
3808fi
3809 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3810 INSTALL=$ac_cv_path_install
252b5132 3811 else
58c85be7
RW
3812 # As a last resort, use the slow shell script. Don't cache a
3813 # value for INSTALL within a source directory, because that will
252b5132 3814 # break other packages using the cache if that directory is
58c85be7 3815 # removed, or if the value is a relative name.
42ecbf5e 3816 INSTALL=$ac_install_sh
252b5132
RH
3817 fi
3818fi
81ecdfbb
RW
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3820$as_echo "$INSTALL" >&6; }
252b5132
RH
3821
3822# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3823# It thinks the first close brace ends the variable substitution.
3824test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3825
42ecbf5e 3826test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3827
3828test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3829
81ecdfbb
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3831$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
3832# Reject unsafe characters in $srcdir or the absolute working directory
3833# name. Accept space and tab only in the latter.
3834am_lf='
3835'
3836case `pwd` in
3837 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 3838 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
3839esac
3840case $srcdir in
3841 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 3842 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
3843esac
3844
d0ac1c44 3845# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
3846# arguments. Must try -L first in case configure is actually a
3847# symlink; some systems play weird games with the mod time of symlinks
3848# (eg FreeBSD returns the mod time of the symlink's containing
3849# directory).
3850if (
d0ac1c44
SM
3851 am_has_slept=no
3852 for am_try in 1 2; do
3853 echo "timestamp, slept: $am_has_slept" > conftest.file
3854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3855 if test "$*" = "X"; then
3856 # -L didn't work.
3857 set X `ls -t "$srcdir/configure" conftest.file`
3858 fi
3859 if test "$*" != "X $srcdir/configure conftest.file" \
3860 && test "$*" != "X conftest.file $srcdir/configure"; then
3861
3862 # If neither matched, then we have a broken ls. This can happen
3863 # if, for instance, CONFIG_SHELL is bash and it inherits a
3864 # broken ls alias from the environment. This has actually
3865 # happened. Such a system could not be considered "sane".
3866 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3867 alias in your environment" "$LINENO" 5
3868 fi
3869 if test "$2" = conftest.file || test $am_try -eq 2; then
3870 break
3871 fi
3872 # Just in case.
3873 sleep 1
3874 am_has_slept=yes
3875 done
42ecbf5e 3876 test "$2" = conftest.file
252b5132
RH
3877 )
3878then
3879 # Ok.
3880 :
3881else
d0ac1c44 3882 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3883Check your system clock" "$LINENO" 5
252b5132 3884fi
81ecdfbb
RW
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886$as_echo "yes" >&6; }
d0ac1c44
SM
3887# If we didn't sleep, we still need to ensure time stamps of config.status and
3888# generated files are strictly newer.
3889am_sleep_pid=
3890if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3891 ( sleep 1 ) &
3892 am_sleep_pid=$!
3893fi
3894
3895rm -f conftest.file
3896
252b5132 3897test "$program_prefix" != NONE &&
81ecdfbb 3898 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3899# Use a double $ so make ignores it.
3900test "$program_suffix" != NONE &&
81ecdfbb
RW
3901 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3902# Double any \ or $.
42ecbf5e 3903# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3904ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3905program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 3906
81ecdfbb
RW
3907if test x"${MISSING+set}" != xset; then
3908 case $am_aux_dir in
3909 *\ * | *\ *)
3910 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3911 *)
3912 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3913 esac
3914fi
42ecbf5e 3915# Use eval to expand $SHELL
d0ac1c44
SM
3916if eval "$MISSING --is-lightweight"; then
3917 am_missing_run="$MISSING "
42ecbf5e
DJ
3918else
3919 am_missing_run=
d0ac1c44
SM
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3921$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3922fi
3923
d0ac1c44 3924if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3925 case $am_aux_dir in
3926 *\ * | *\ *)
3927 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3928 *)
3929 install_sh="\${SHELL} $am_aux_dir/install-sh"
3930 esac
3931fi
3932
d0ac1c44
SM
3933# Installed binaries are usually stripped using 'strip' when the user
3934# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3935# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3936# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3937if test "$cross_compiling" != no; then
3938 if test -n "$ac_tool_prefix"; then
3939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3940set dummy ${ac_tool_prefix}strip; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3943if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3944 $as_echo_n "(cached) " >&6
3945else
3946 if test -n "$STRIP"; then
3947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961 done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966STRIP=$ac_cv_prog_STRIP
3967if test -n "$STRIP"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3969$as_echo "$STRIP" >&6; }
3970else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976fi
3977if test -z "$ac_cv_prog_STRIP"; then
3978 ac_ct_STRIP=$STRIP
3979 # Extract the first word of "strip", so it can be a program name with args.
3980set dummy strip; ac_word=$2
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3983if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3984 $as_echo_n "(cached) " >&6
3985else
3986 if test -n "$ac_ct_STRIP"; then
3987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3988else
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3996 ac_cv_prog_ac_ct_STRIP="strip"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000done
4001 done
4002IFS=$as_save_IFS
4003
4004fi
4005fi
4006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4007if test -n "$ac_ct_STRIP"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4009$as_echo "$ac_ct_STRIP" >&6; }
4010else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
4013fi
4014
4015 if test "x$ac_ct_STRIP" = x; then
4016 STRIP=":"
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019yes:)
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022ac_tool_warned=yes ;;
4023esac
4024 STRIP=$ac_ct_STRIP
4025 fi
4026else
4027 STRIP="$ac_cv_prog_STRIP"
4028fi
4029
4030fi
4031INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4032
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4034$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4035if test -z "$MKDIR_P"; then
d0ac1c44 4036 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
4037 $as_echo_n "(cached) " >&6
4038else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in mkdir gmkdir; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4046 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
4047 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4048 'mkdir (GNU coreutils) '* | \
4049 'mkdir (coreutils) '* | \
4050 'mkdir (fileutils) '4.1*)
4051 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4052 break 3;;
4053 esac
4054 done
4055 done
42ecbf5e 4056 done
81ecdfbb
RW
4057IFS=$as_save_IFS
4058
4059fi
4060
d0ac1c44 4061 test -d ./--version && rmdir ./--version
81ecdfbb
RW
4062 if test "${ac_cv_path_mkdir+set}" = set; then
4063 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 4064 else
81ecdfbb
RW
4065 # As a last resort, use the slow shell script. Don't cache a
4066 # value for MKDIR_P within a source directory, because that will
4067 # break other packages using the cache if that directory is
4068 # removed, or if the value is a relative name.
81ecdfbb 4069 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
4070 fi
4071fi
81ecdfbb
RW
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4073$as_echo "$MKDIR_P" >&6; }
4074
42ecbf5e
DJ
4075for ac_prog in gawk mawk nawk awk
4076do
4077 # Extract the first word of "$ac_prog", so it can be a program name with args.
4078set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4081if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 4082 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4083else
4084 if test -n "$AWK"; then
4085 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
81ecdfbb 4092 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 4094 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
4096 break 2
4097 fi
4098done
81ecdfbb
RW
4099 done
4100IFS=$as_save_IFS
42ecbf5e
DJ
4101
4102fi
4103fi
4104AWK=$ac_cv_prog_AWK
4105if test -n "$AWK"; then
81ecdfbb
RW
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4107$as_echo "$AWK" >&6; }
42ecbf5e 4108else
81ecdfbb
RW
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
42ecbf5e 4111fi
252b5132 4112
81ecdfbb 4113
42ecbf5e
DJ
4114 test -n "$AWK" && break
4115done
252b5132 4116
81ecdfbb
RW
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4118$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4119set x ${MAKE-make}
4120ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 4121if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 4122 $as_echo_n "(cached) " >&6
252b5132 4123else
42ecbf5e 4124 cat >conftest.make <<\_ACEOF
81ecdfbb 4125SHELL = /bin/sh
252b5132 4126all:
81ecdfbb 4127 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 4128_ACEOF
d0ac1c44 4129# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
4130case `${MAKE-make} -f conftest.make 2>/dev/null` in
4131 *@@@%%%=?*=@@@%%%*)
4132 eval ac_cv_prog_make_${ac_make}_set=yes;;
4133 *)
4134 eval ac_cv_prog_make_${ac_make}_set=no;;
4135esac
42ecbf5e 4136rm -f conftest.make
252b5132 4137fi
81ecdfbb
RW
4138if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4140$as_echo "yes" >&6; }
252b5132
RH
4141 SET_MAKE=
4142else
81ecdfbb
RW
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
252b5132
RH
4145 SET_MAKE="MAKE=${MAKE-make}"
4146fi
4147
42ecbf5e
DJ
4148rm -rf .tst 2>/dev/null
4149mkdir .tst 2>/dev/null
4150if test -d .tst; then
4151 am__leading_dot=.
4152else
4153 am__leading_dot=_
4154fi
4155rmdir .tst 2>/dev/null
4156
4157DEPDIR="${am__leading_dot}deps"
4158
81ecdfbb 4159ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
4160
4161
4162am_make=${MAKE-make}
4163cat > confinc << 'END'
4164am__doit:
81ecdfbb 4165 @echo this is the am__doit target
42ecbf5e
DJ
4166.PHONY: am__doit
4167END
4168# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4170$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
4171am__include="#"
4172am__quote=
4173_am_result=none
4174# First try GNU make style include.
4175echo "include confinc" > confmf
d0ac1c44 4176# Ignore all kinds of additional output from 'make'.
81ecdfbb
RW
4177case `$am_make -s -f confmf 2> /dev/null` in #(
4178*the\ am__doit\ target*)
4179 am__include=include
4180 am__quote=
4181 _am_result=GNU
4182 ;;
4183esac
42ecbf5e
DJ
4184# Now try BSD make style include.
4185if test "$am__include" = "#"; then
4186 echo '.include "confinc"' > confmf
81ecdfbb
RW
4187 case `$am_make -s -f confmf 2> /dev/null` in #(
4188 *the\ am__doit\ target*)
4189 am__include=.include
4190 am__quote="\""
4191 _am_result=BSD
4192 ;;
4193 esac
42ecbf5e
DJ
4194fi
4195
4196
81ecdfbb
RW
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4198$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4199rm -f confinc confmf
4200
81ecdfbb
RW
4201# Check whether --enable-dependency-tracking was given.
4202if test "${enable_dependency_tracking+set}" = set; then :
4203 enableval=$enable_dependency_tracking;
4204fi
42ecbf5e 4205
42ecbf5e
DJ
4206if test "x$enable_dependency_tracking" != xno; then
4207 am_depcomp="$ac_aux_dir/depcomp"
4208 AMDEPBACKSLASH='\'
6eb7d830 4209 am__nodep='_no'
42ecbf5e 4210fi
81ecdfbb 4211 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4212 AMDEP_TRUE=
4213 AMDEP_FALSE='#'
4214else
4215 AMDEP_TRUE='#'
4216 AMDEP_FALSE=
4217fi
4218
e5a52504 4219
d0ac1c44
SM
4220# Check whether --enable-silent-rules was given.
4221if test "${enable_silent_rules+set}" = set; then :
4222 enableval=$enable_silent_rules;
4223fi
4224
4225case $enable_silent_rules in # (((
4226 yes) AM_DEFAULT_VERBOSITY=0;;
4227 no) AM_DEFAULT_VERBOSITY=1;;
4228 *) AM_DEFAULT_VERBOSITY=1;;
4229esac
4230am_make=${MAKE-make}
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4232$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4233if ${am_cv_make_support_nested_variables+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235else
4236 if $as_echo 'TRUE=$(BAR$(V))
4237BAR0=false
4238BAR1=true
4239V=1
4240am__doit:
4241 @$(TRUE)
4242.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4243 am_cv_make_support_nested_variables=yes
4244else
4245 am_cv_make_support_nested_variables=no
4246fi
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4249$as_echo "$am_cv_make_support_nested_variables" >&6; }
4250if test $am_cv_make_support_nested_variables = yes; then
4251 AM_V='$(V)'
4252 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4253else
4254 AM_V=$AM_DEFAULT_VERBOSITY
4255 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4256fi
4257AM_BACKSLASH='\'
4258
81ecdfbb
RW
4259if test "`cd $srcdir && pwd`" != "`pwd`"; then
4260 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4261 # is not polluted with repeated "-I."
4262 am__isrc=' -I$(srcdir)'
4263 # test to see if srcdir already configured
4264 if test -f $srcdir/config.status; then
d0ac1c44 4265 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 4266 fi
42ecbf5e 4267fi
252b5132 4268
42ecbf5e
DJ
4269# test whether we have cygpath
4270if test -z "$CYGPATH_W"; then
4271 if (cygpath --version) >/dev/null 2>/dev/null; then
4272 CYGPATH_W='cygpath -w'
4273 else
4274 CYGPATH_W=echo
4275 fi
252b5132 4276fi
42ecbf5e
DJ
4277
4278
4279# Define the identity of the package.
2e98a7bd 4280 PACKAGE='ld'
573fe3fb 4281 VERSION='2.36.50'
42ecbf5e
DJ
4282
4283
4284cat >>confdefs.h <<_ACEOF
e5a52504 4285#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4286_ACEOF
4287
252b5132 4288
42ecbf5e 4289cat >>confdefs.h <<_ACEOF
e5a52504 4290#define VERSION "$VERSION"
42ecbf5e
DJ
4291_ACEOF
4292
4293# Some tools Automake needs.
4294
4295ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4296
4297
4298AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4299
4300
4301AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4302
4303
4304AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4305
e5a52504 4306
42ecbf5e 4307MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4308
d0ac1c44
SM
4309# For better backward compatibility. To be removed once Automake 1.9.x
4310# dies out for good. For more background, see:
4311# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4312# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4313mkdir_p='$(MKDIR_P)'
4314
4315# We need awk for the "check" target (and possibly the TAP driver). The
4316# system "awk" is bad on some platforms.
6eb7d830
AM
4317# Always define AMTAR for backward compatibility. Yes, it's still used
4318# in the wild :-( We should find a proper way to deprecate it ...
4319AMTAR='$${TAR-tar}'
42ecbf5e 4320
d0ac1c44
SM
4321
4322# We'll loop over all known methods to create a tar archive until one works.
4323_am_tools='gnutar pax cpio none'
4324
6eb7d830 4325am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e
DJ
4326
4327
4328
4329
d0ac1c44 4330
42ecbf5e
DJ
4331depcc="$CC" am_compiler_list=
4332
81ecdfbb
RW
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4334$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4335if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 4336 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4337else
4338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4339 # We make a subdir and do the tests there. Otherwise we can end up
4340 # making bogus files that we don't know about and never remove. For
4341 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4342 # making a dummy file named 'D' -- because '-MD' means "put the output
4343 # in D".
6eb7d830 4344 rm -rf conftest.dir
42ecbf5e
DJ
4345 mkdir conftest.dir
4346 # Copy depcomp to subdir because otherwise we won't find it if we're
4347 # using a relative directory.
4348 cp "$am_depcomp" conftest.dir
4349 cd conftest.dir
4350 # We will build objects and dependencies in a subdirectory because
4351 # it helps to detect inapplicable dependency modes. For instance
4352 # both Tru64's cc and ICC support -MD to output dependencies as a
4353 # side effect of compilation, but ICC will put the dependencies in
4354 # the current directory while Tru64 will put them in the object
4355 # directory.
4356 mkdir sub
4357
4358 am_cv_CC_dependencies_compiler_type=none
4359 if test "$am_compiler_list" = ""; then
4360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4361 fi
81ecdfbb
RW
4362 am__universal=false
4363 case " $depcc " in #(
4364 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4365 esac
4366
42ecbf5e
DJ
4367 for depmode in $am_compiler_list; do
4368 # Setup a source with many dependencies, because some compilers
4369 # like to wrap large dependency lists on column 80 (with \), and
4370 # we should not choose a depcomp mode which is confused by this.
4371 #
4372 # We need to recreate these files for each test, as the compiler may
4373 # overwrite some of them when testing with obscure command lines.
4374 # This happens at least with the AIX C compiler.
4375 : > sub/conftest.c
4376 for i in 1 2 3 4 5 6; do
4377 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4378 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4379 # Solaris 10 /bin/sh.
4380 echo '/* dummy */' > sub/conftst$i.h
42ecbf5e
DJ
4381 done
4382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4383
d0ac1c44 4384 # We check with '-c' and '-o' for the sake of the "dashmstdout"
81ecdfbb 4385 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4386 # handle '-M -o', and we need to detect this. Also, some Intel
4387 # versions had trouble with output in subdirs.
81ecdfbb
RW
4388 am__obj=sub/conftest.${OBJEXT-o}
4389 am__minus_obj="-o $am__obj"
42ecbf5e 4390 case $depmode in
81ecdfbb
RW
4391 gcc)
4392 # This depmode causes a compiler race in universal mode.
4393 test "$am__universal" = false || continue
4394 ;;
42ecbf5e 4395 nosideeffect)
d0ac1c44
SM
4396 # After this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested.
42ecbf5e
DJ
4398 if test "x$enable_dependency_tracking" = xyes; then
4399 continue
4400 else
4401 break
4402 fi
4403 ;;
6eb7d830 4404 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4405 # This compiler won't grok '-c -o', but also, the minuso test has
81ecdfbb
RW
4406 # not run yet. These depmodes are late enough in the game, and
4407 # so weak that their functioning should not be impacted.
4408 am__obj=conftest.${OBJEXT-o}
4409 am__minus_obj=
4410 ;;
42ecbf5e
DJ
4411 none) break ;;
4412 esac
42ecbf5e 4413 if depmode=$depmode \
81ecdfbb 4414 source=sub/conftest.c object=$am__obj \
42ecbf5e 4415 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4416 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4417 >/dev/null 2>conftest.err &&
81ecdfbb 4418 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4419 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4420 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4421 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4422 # icc doesn't choke on unknown options, it will just issue warnings
4423 # or remarks (even with -Werror). So we grep stderr for any message
4424 # that says an option was ignored or not supported.
4425 # When given -MP, icc 7.0 and 7.1 complain thusly:
4426 # icc: Command line warning: ignoring option '-M'; no argument required
4427 # The diagnosis changed in icc 8.0:
4428 # icc: Command line remark: option '-MP' not supported
4429 if (grep 'ignoring option' conftest.err ||
4430 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4431 am_cv_CC_dependencies_compiler_type=$depmode
4432 break
4433 fi
4434 fi
4435 done
2469cfa2 4436
42ecbf5e
DJ
4437 cd ..
4438 rm -rf conftest.dir
2469cfa2 4439else
42ecbf5e
DJ
4440 am_cv_CC_dependencies_compiler_type=none
4441fi
4442
2469cfa2 4443fi
81ecdfbb
RW
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4445$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4446CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4447
81ecdfbb 4448 if
42ecbf5e
DJ
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_TRUE=
4452 am__fastdepCC_FALSE='#'
2469cfa2 4453else
42ecbf5e
DJ
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
2469cfa2 4456fi
2469cfa2 4457
2469cfa2 4458
e5a52504 4459
d0ac1c44
SM
4460# POSIX will say in a future version that running "rm -f" with no argument
4461# is OK; and we want to be able to make that assumption in our Makefile
4462# recipes. So use an aggressive probe to check that the usage we want is
4463# actually supported "in the wild" to an acceptable degree.
4464# See automake bug#10828.
4465# To make any issue more visible, cause the running configure to be aborted
4466# by default if the 'rm' program in use doesn't match our expectations; the
4467# user can still override this though.
4468if rm -f && rm -fr && rm -rf; then : OK; else
4469 cat >&2 <<'END'
4470Oops!
4471
4472Your 'rm' program seems unable to run without file operands specified
4473on the command line, even when the '-f' option is present. This is contrary
4474to the behaviour of most rm programs out there, and not conforming with
4475the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4476
4477Please tell bug-automake@gnu.org about your system, including the value
4478of your $PATH and any error possibly output before this message. This
4479can help us improve future automake versions.
4480
4481END
4482 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4483 echo 'Configuration will proceed anyway, since you have set the' >&2
4484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4485 echo >&2
4486 else
4487 cat >&2 <<'END'
4488Aborting the configuration process, to ensure you take notice of the issue.
4489
4490You can download and install GNU coreutils to get an 'rm' implementation
4491that behaves properly: <http://www.gnu.org/software/coreutils/>.
4492
4493If you want to complete the configuration process using your problematic
4494'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4495to "yes", and re-run configure.
4496
4497END
4498 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4499 fi
4500fi
4501
42ecbf5e 4502
64ac50ac
RW
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4504$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4505 # Check whether --enable-maintainer-mode was given.
4506if test "${enable_maintainer_mode+set}" = set; then :
4507 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4508else
4509 USE_MAINTAINER_MODE=no
4510fi
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4513$as_echo "$USE_MAINTAINER_MODE" >&6; }
4514 if test $USE_MAINTAINER_MODE = yes; then
4515 MAINTAINER_MODE_TRUE=
4516 MAINTAINER_MODE_FALSE='#'
4517else
4518 MAINTAINER_MODE_TRUE='#'
4519 MAINTAINER_MODE_FALSE=
4520fi
4521
4522 MAINT=$MAINTAINER_MODE_TRUE
4523
4524
4525
b879806f
AM
4526ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4533set dummy ${ac_tool_prefix}gcc; ac_word=$2
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4536if ${ac_cv_prog_CC+:} false; then :
b879806f
AM
4537 $as_echo_n "(cached) " >&6
4538else
4539 if test -n "$CC"; then
4540 ac_cv_prog_CC="$CC" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553done
4554 done
4555IFS=$as_save_IFS
d7040cdb 4556
81ecdfbb 4557fi
81ecdfbb 4558fi
b879806f
AM
4559CC=$ac_cv_prog_CC
4560if test -n "$CC"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4562$as_echo "$CC" >&6; }
2469cfa2 4563else
b879806f
AM
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565$as_echo "no" >&6; }
81ecdfbb 4566fi
d7040cdb
SE
4567
4568
b879806f
AM
4569fi
4570if test -z "$ac_cv_prog_CC"; then
4571 ac_ct_CC=$CC
4572 # Extract the first word of "gcc", so it can be a program name with args.
4573set dummy gcc; ac_word=$2
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4576if ${ac_cv_prog_ac_ct_CC+:} false; then :
b879806f 4577 $as_echo_n "(cached) " >&6
e5a52504 4578else
b879806f
AM
4579 if test -n "$ac_ct_CC"; then
4580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4589 ac_cv_prog_ac_ct_CC="gcc"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593done
4594 done
4595IFS=$as_save_IFS
d7040cdb 4596
81ecdfbb 4597fi
b879806f
AM
4598fi
4599ac_ct_CC=$ac_cv_prog_ac_ct_CC
4600if test -n "$ac_ct_CC"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4602$as_echo "$ac_ct_CC" >&6; }
4fda8867 4603else
b879806f
AM
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4fda8867
NC
4606fi
4607
b879806f
AM
4608 if test "x$ac_ct_CC" = x; then
4609 CC=""
4610 else
4611 case $cross_compiling:$ac_tool_warned in
4612yes:)
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615ac_tool_warned=yes ;;
7fb9f789 4616esac
b879806f
AM
4617 CC=$ac_ct_CC
4618 fi
7fb9f789 4619else
b879806f 4620 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4621fi
4622
b879806f
AM
4623if test -z "$CC"; then
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4626set dummy ${ac_tool_prefix}cc; ac_word=$2
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4629if ${ac_cv_prog_CC+:} false; then :
397841b5
AM
4630 $as_echo_n "(cached) " >&6
4631else
b879806f
AM
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
397841b5 4637do
b879806f
AM
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4642 ac_cv_prog_CC="${ac_tool_prefix}cc"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647 done
4648IFS=$as_save_IFS
d7040cdb 4649
ce2cded5 4650fi
ce2cded5 4651fi
b879806f
AM
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655$as_echo "$CC" >&6; }
4656else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658$as_echo "no" >&6; }
81ecdfbb
RW
4659fi
4660
d7040cdb 4661
b879806f 4662 fi
ce2cded5 4663fi
b879806f
AM
4664if test -z "$CC"; then
4665 # Extract the first word of "cc", so it can be a program name with args.
4666set dummy cc; ac_word=$2
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4669if ${ac_cv_prog_CC+:} false; then :
b879806f 4670 $as_echo_n "(cached) " >&6
397841b5 4671else
b879806f
AM
4672 if test -n "$CC"; then
4673 ac_cv_prog_CC="$CC" # Let the user override the test.
4674else
4675 ac_prog_rejected=no
4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
397841b5 4678do
b879806f
AM
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4684 ac_prog_rejected=yes
4685 continue
4686 fi
4687 ac_cv_prog_CC="cc"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691done
4692 done
4693IFS=$as_save_IFS
d7040cdb 4694
b879806f
AM
4695if test $ac_prog_rejected = yes; then
4696 # We found a bogon in the path, so make sure we never use it.
4697 set dummy $ac_cv_prog_CC
4698 shift
4699 if test $# != 0; then
4700 # We chose a different compiler from the bogus one.
4701 # However, it has the same basename, so the bogon will be chosen
4702 # first if we set CC to just the basename; use the full file name.
4703 shift
4704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4705 fi
397841b5 4706fi
397841b5 4707fi
b879806f
AM
4708fi
4709CC=$ac_cv_prog_CC
4710if test -n "$CC"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4712$as_echo "$CC" >&6; }
397841b5 4713else
b879806f
AM
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
ce2cded5 4716fi
d7040cdb 4717
397841b5 4718
b879806f
AM
4719fi
4720if test -z "$CC"; then
4721 if test -n "$ac_tool_prefix"; then
4722 for ac_prog in cl.exe
4723 do
4724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4728if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4729 $as_echo_n "(cached) " >&6
d7040cdb 4730else
b879806f
AM
4731 if test -n "$CC"; then
4732 ac_cv_prog_CC="$CC" # Let the user override the test.
4733else
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
d7040cdb
SE
4736do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
81ecdfbb 4739 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745done
397841b5
AM
4746 done
4747IFS=$as_save_IFS
d7040cdb 4748
252b5132 4749fi
b879806f
AM
4750fi
4751CC=$ac_cv_prog_CC
4752if test -n "$CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4754$as_echo "$CC" >&6; }
4755else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757$as_echo "no" >&6; }
4758fi
397841b5
AM
4759
4760
b879806f
AM
4761 test -n "$CC" && break
4762 done
4763fi
4764if test -z "$CC"; then
4765 ac_ct_CC=$CC
4766 for ac_prog in cl.exe
4767do
4768 # Extract the first word of "$ac_prog", so it can be a program name with args.
4769set dummy $ac_prog; ac_word=$2
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4772if ${ac_cv_prog_ac_ct_CC+:} false; then :
397841b5
AM
4773 $as_echo_n "(cached) " >&6
4774else
b879806f
AM
4775 if test -n "$ac_ct_CC"; then
4776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
397841b5
AM
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
397841b5 4783 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4785 ac_cv_prog_ac_ct_CC="$ac_prog"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789done
397841b5
AM
4790 done
4791IFS=$as_save_IFS
397841b5 4792
397841b5 4793fi
397841b5 4794fi
b879806f
AM
4795ac_ct_CC=$ac_cv_prog_ac_ct_CC
4796if test -n "$ac_ct_CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4798$as_echo "$ac_ct_CC" >&6; }
4799else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
397841b5
AM
4802fi
4803
397841b5 4804
b879806f
AM
4805 test -n "$ac_ct_CC" && break
4806done
397841b5 4807
b879806f
AM
4808 if test "x$ac_ct_CC" = x; then
4809 CC=""
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812yes:)
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815ac_tool_warned=yes ;;
397841b5 4816esac
b879806f
AM
4817 CC=$ac_ct_CC
4818 fi
397841b5
AM
4819fi
4820
397841b5
AM
4821fi
4822
4823
b879806f
AM
4824test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4826as_fn_error $? "no acceptable C compiler found in \$PATH
4827See \`config.log' for more details" "$LINENO" 5; }
397841b5 4828
b879806f
AM
4829# Provide some information about the compiler.
4830$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4831set X $ac_compile
4832ac_compiler=$2
4833for ac_option in --version -v -V -qversion; do
4834 { { ac_try="$ac_compiler $ac_option >&5"
4835case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838esac
4839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4840$as_echo "$ac_try_echo"; } >&5
4841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4842 ac_status=$?
4843 if test -s conftest.err; then
4844 sed '10a\
4845... rest of stderr output deleted ...
4846 10q' conftest.err >conftest.er1
4847 cat conftest.er1 >&5
b879806f 4848 fi
d0ac1c44 4849 rm -f conftest.er1 conftest.err
b879806f
AM
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }
4852done
397841b5 4853
b879806f
AM
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4855$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4856if ${ac_cv_c_compiler_gnu+:} false; then :
44350750
NC
4857 $as_echo_n "(cached) " >&6
4858else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h. */
b879806f 4861
44350750
NC
4862int
4863main ()
4864{
b879806f
AM
4865#ifndef __GNUC__
4866 choke me
4867#endif
4868
4869 ;
44350750
NC
4870 return 0;
4871}
4872_ACEOF
b879806f
AM
4873if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_compiler_gnu=yes
44350750 4875else
b879806f 4876 ac_compiler_gnu=no
44350750 4877fi
b879806f
AM
4878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879ac_cv_c_compiler_gnu=$ac_compiler_gnu
4880
44350750 4881fi
b879806f
AM
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4883$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4884if test $ac_compiler_gnu = yes; then
4885 GCC=yes
4886else
4887 GCC=
4888fi
4889ac_test_CFLAGS=${CFLAGS+set}
4890ac_save_CFLAGS=$CFLAGS
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4892$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4893if ${ac_cv_prog_cc_g+:} false; then :
b879806f
AM
4894 $as_echo_n "(cached) " >&6
4895else
4896 ac_save_c_werror_flag=$ac_c_werror_flag
4897 ac_c_werror_flag=yes
4898 ac_cv_prog_cc_g=no
4899 CFLAGS="-g"
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h. */
44350750 4902
b879806f
AM
4903int
4904main ()
4905{
44350750 4906
b879806f
AM
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911if ac_fn_c_try_compile "$LINENO"; then :
4912 ac_cv_prog_cc_g=yes
4913else
4914 CFLAGS=""
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h. */
4917
4918int
4919main ()
4920{
44350750 4921
b879806f
AM
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926if ac_fn_c_try_compile "$LINENO"; then :
44350750 4927
b879806f
AM
4928else
4929 ac_c_werror_flag=$ac_save_c_werror_flag
4930 CFLAGS="-g"
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h. */
397841b5 4933
b879806f
AM
4934int
4935main ()
4936{
397841b5 4937
b879806f
AM
4938 ;
4939 return 0;
4940}
4941_ACEOF
4942if ac_fn_c_try_compile "$LINENO"; then :
4943 ac_cv_prog_cc_g=yes
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946fi
4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948fi
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 ac_c_werror_flag=$ac_save_c_werror_flag
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4953$as_echo "$ac_cv_prog_cc_g" >&6; }
4954if test "$ac_test_CFLAGS" = set; then
4955 CFLAGS=$ac_save_CFLAGS
4956elif test $ac_cv_prog_cc_g = yes; then
4957 if test "$GCC" = yes; then
4958 CFLAGS="-g -O2"
4959 else
4960 CFLAGS="-g"
4961 fi
4962else
4963 if test "$GCC" = yes; then
4964 CFLAGS="-O2"
4965 else
4966 CFLAGS=
4967 fi
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4970$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4971if ${ac_cv_prog_cc_c89+:} false; then :
b879806f
AM
4972 $as_echo_n "(cached) " >&6
4973else
4974 ac_cv_prog_cc_c89=no
4975ac_save_CC=$CC
4976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h. */
4978#include <stdarg.h>
4979#include <stdio.h>
d0ac1c44 4980struct stat;
b879806f
AM
4981/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4982struct buf { int x; };
4983FILE * (*rcsopen) (struct buf *, struct stat *, int);
4984static char *e (p, i)
4985 char **p;
4986 int i;
4987{
4988 return p[i];
4989}
4990static char *f (char * (*g) (char **, int), char **p, ...)
4991{
4992 char *s;
4993 va_list v;
4994 va_start (v,p);
4995 s = g (p, va_arg (v,int));
4996 va_end (v);
4997 return s;
4998}
df7b86aa 4999
b879806f
AM
5000/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5001 function prototypes and stuff, but not '\xHH' hex character constants.
5002 These don't provoke an error unfortunately, instead are silently treated
5003 as 'x'. The following induces an error, until -std is added to get
5004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5005 array size at least. It's necessary to write '\x00'==0 to get something
5006 that's true only with -std. */
5007int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 5008
b879806f
AM
5009/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5010 inside strings and character constants. */
5011#define FOO(x) 'x'
5012int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5013
5014int test (int i, double x);
5015struct s1 {int (*f) (int a);};
5016struct s2 {int (*f) (double a);};
5017int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5018int argc;
5019char **argv;
5020int
5021main ()
5022{
5023return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5030do
5031 CC="$ac_save_CC $ac_arg"
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 ac_cv_prog_cc_c89=$ac_arg
397841b5 5034fi
b879806f
AM
5035rm -f core conftest.err conftest.$ac_objext
5036 test "x$ac_cv_prog_cc_c89" != "xno" && break
5037done
5038rm -f conftest.$ac_ext
5039CC=$ac_save_CC
5040
397841b5 5041fi
b879806f
AM
5042# AC_CACHE_VAL
5043case "x$ac_cv_prog_cc_c89" in
5044 x)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5046$as_echo "none needed" >&6; } ;;
5047 xno)
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5049$as_echo "unsupported" >&6; } ;;
5050 *)
5051 CC="$CC $ac_cv_prog_cc_c89"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5053$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5054esac
5055if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 5056
b879806f 5057fi
397841b5
AM
5058
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f 5064
d0ac1c44
SM
5065ac_ext=c
5066ac_cpp='$CPP $CPPFLAGS'
5067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5071$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5072if ${am_cv_prog_cc_c_o+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074else
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h. */
5077
5078int
5079main ()
5080{
5081
5082 ;
5083 return 0;
5084}
5085_ACEOF
5086 # Make sure it works both with $CC and with simple cc.
5087 # Following AC_PROG_CC_C_O, we do the test twice because some
5088 # compilers refuse to overwrite an existing .o file with -o,
5089 # though they will create one.
5090 am_cv_prog_cc_c_o=yes
5091 for am_i in 1 2; do
5092 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5093 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } \
5097 && test -f conftest2.$ac_objext; then
5098 : OK
5099 else
5100 am_cv_prog_cc_c_o=no
5101 break
5102 fi
5103 done
5104 rm -f core conftest*
5105 unset am_i
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5108$as_echo "$am_cv_prog_cc_c_o" >&6; }
5109if test "$am_cv_prog_cc_c_o" != yes; then
5110 # Losing compiler, so override with the script.
5111 # FIXME: It is wrong to rewrite CC.
5112 # But if we don't then we get into trouble of one sort or another.
5113 # A longer-term fix would be to have automake use am__CC in this case,
5114 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5115 CC="$am_aux_dir/compile $CC"
5116fi
5117ac_ext=c
5118ac_cpp='$CPP $CPPFLAGS'
5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122
5123
b879806f
AM
5124ac_ext=cpp
5125ac_cpp='$CXXCPP $CPPFLAGS'
5126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129if test -z "$CXX"; then
5130 if test -n "$CCC"; then
5131 CXX=$CCC
5132 else
5133 if test -n "$ac_tool_prefix"; then
5134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5135 do
5136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5140if ${ac_cv_prog_CXX+:} false; then :
397841b5
AM
5141 $as_echo_n "(cached) " >&6
5142else
b879806f
AM
5143 if test -n "$CXX"; then
5144 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 5153 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157done
5158 done
5159IFS=$as_save_IFS
5160
5161fi
5162fi
b879806f
AM
5163CXX=$ac_cv_prog_CXX
5164if test -n "$CXX"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5166$as_echo "$CXX" >&6; }
397841b5
AM
5167else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
5170fi
5171
5172
b879806f
AM
5173 test -n "$CXX" && break
5174 done
397841b5 5175fi
b879806f
AM
5176if test -z "$CXX"; then
5177 ac_ct_CXX=$CXX
5178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5179do
5180 # Extract the first word of "$ac_prog", so it can be a program name with args.
5181set dummy $ac_prog; ac_word=$2
397841b5
AM
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5184if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5185 $as_echo_n "(cached) " >&6
252b5132 5186else
b879806f
AM
5187 if test -n "$ac_ct_CXX"; then
5188 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 5189else
ce2cded5
L
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
81ecdfbb 5195 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 5197 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5199 break 2
5200 fi
5201done
81ecdfbb
RW
5202 done
5203IFS=$as_save_IFS
5204
252b5132
RH
5205fi
5206fi
b879806f
AM
5207ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5208if test -n "$ac_ct_CXX"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5210$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 5211else
81ecdfbb
RW
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
d7040cdb
SE
5214fi
5215
81ecdfbb 5216
b879806f 5217 test -n "$ac_ct_CXX" && break
d7040cdb 5218done
d7040cdb 5219
b879806f
AM
5220 if test "x$ac_ct_CXX" = x; then
5221 CXX="g++"
81ecdfbb
RW
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224yes:)
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227ac_tool_warned=yes ;;
5228esac
b879806f 5229 CXX=$ac_ct_CXX
81ecdfbb 5230 fi
d7040cdb
SE
5231fi
5232
b879806f 5233 fi
d7040cdb 5234fi
ce2cded5 5235# Provide some information about the compiler.
b879806f 5236$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
5237set X $ac_compile
5238ac_compiler=$2
5239for ac_option in --version -v -V -qversion; do
5240 { { ac_try="$ac_compiler $ac_option >&5"
5241case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5244esac
5245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5246$as_echo "$ac_try_echo"; } >&5
5247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5248 ac_status=$?
81ecdfbb
RW
5249 if test -s conftest.err; then
5250 sed '10a\
5251... rest of stderr output deleted ...
5252 10q' conftest.err >conftest.er1
5253 cat conftest.er1 >&5
81ecdfbb 5254 fi
d0ac1c44 5255 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257 test $ac_status = 0; }
5258done
d7040cdb 5259
b879806f
AM
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5261$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5262if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5263 $as_echo_n "(cached) " >&6
d7040cdb 5264else
81ecdfbb 5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5266/* end confdefs.h. */
d7040cdb 5267
ce2cded5
L
5268int
5269main ()
5270{
5271#ifndef __GNUC__
5272 choke me
5273#endif
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
b879806f 5279if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 5280 ac_compiler_gnu=yes
d7040cdb 5281else
81ecdfbb 5282 ac_compiler_gnu=no
d7040cdb 5283fi
81ecdfbb 5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5285ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 5286
ce2cded5 5287fi
b879806f
AM
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5289$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 5290if test $ac_compiler_gnu = yes; then
b879806f 5291 GXX=yes
81ecdfbb 5292else
b879806f 5293 GXX=
81ecdfbb 5294fi
b879806f
AM
5295ac_test_CXXFLAGS=${CXXFLAGS+set}
5296ac_save_CXXFLAGS=$CXXFLAGS
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5298$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5299if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5300 $as_echo_n "(cached) " >&6
5301else
b879806f
AM
5302 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5303 ac_cxx_werror_flag=yes
5304 ac_cv_prog_cxx_g=no
5305 CXXFLAGS="-g"
81ecdfbb 5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5307/* end confdefs.h. */
d7040cdb 5308
ce2cded5
L
5309int
5310main ()
5311{
d7040cdb 5312
ce2cded5
L
5313 ;
5314 return 0;
5315}
5316_ACEOF
b879806f
AM
5317if ac_fn_cxx_try_compile "$LINENO"; then :
5318 ac_cv_prog_cxx_g=yes
ce2cded5 5319else
b879806f 5320 CXXFLAGS=""
81ecdfbb
RW
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h. */
5323
5324int
5325main ()
5326{
5327
5328 ;
5329 return 0;
5330}
5331_ACEOF
b879806f 5332if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5333
5334else
b879806f
AM
5335 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5336 CXXFLAGS="-g"
81ecdfbb
RW
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
5339
5340int
5341main ()
5342{
d7040cdb 5343
81ecdfbb
RW
5344 ;
5345 return 0;
5346}
5347_ACEOF
b879806f
AM
5348if ac_fn_cxx_try_compile "$LINENO"; then :
5349 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5350fi
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352fi
5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5354fi
81ecdfbb 5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5357fi
b879806f
AM
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5359$as_echo "$ac_cv_prog_cxx_g" >&6; }
5360if test "$ac_test_CXXFLAGS" = set; then
5361 CXXFLAGS=$ac_save_CXXFLAGS
5362elif test $ac_cv_prog_cxx_g = yes; then
5363 if test "$GXX" = yes; then
5364 CXXFLAGS="-g -O2"
ce2cded5 5365 else
b879806f 5366 CXXFLAGS="-g"
ce2cded5 5367 fi
d7040cdb 5368else
b879806f
AM
5369 if test "$GXX" = yes; then
5370 CXXFLAGS="-O2"
ce2cded5 5371 else
b879806f 5372 CXXFLAGS=
ce2cded5 5373 fi
d7040cdb 5374fi
b879806f
AM
5375ac_ext=c
5376ac_cpp='$CPP $CPPFLAGS'
5377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379ac_compiler_gnu=$ac_cv_c_compiler_gnu
5380
5381depcc="$CXX" am_compiler_list=
5382
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5384$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 5385if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
81ecdfbb 5386 $as_echo_n "(cached) " >&6
d7040cdb 5387else
b879806f
AM
5388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5389 # We make a subdir and do the tests there. Otherwise we can end up
5390 # making bogus files that we don't know about and never remove. For
5391 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
5392 # making a dummy file named 'D' -- because '-MD' means "put the output
5393 # in D".
6eb7d830 5394 rm -rf conftest.dir
b879806f
AM
5395 mkdir conftest.dir
5396 # Copy depcomp to subdir because otherwise we won't find it if we're
5397 # using a relative directory.
5398 cp "$am_depcomp" conftest.dir
5399 cd conftest.dir
5400 # We will build objects and dependencies in a subdirectory because
5401 # it helps to detect inapplicable dependency modes. For instance
5402 # both Tru64's cc and ICC support -MD to output dependencies as a
5403 # side effect of compilation, but ICC will put the dependencies in
5404 # the current directory while Tru64 will put them in the object
5405 # directory.
5406 mkdir sub
d7040cdb 5407
b879806f
AM
5408 am_cv_CXX_dependencies_compiler_type=none
5409 if test "$am_compiler_list" = ""; then
5410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5411 fi
5412 am__universal=false
5413 case " $depcc " in #(
5414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5415 esac
d7040cdb 5416
b879806f
AM
5417 for depmode in $am_compiler_list; do
5418 # Setup a source with many dependencies, because some compilers
5419 # like to wrap large dependency lists on column 80 (with \), and
5420 # we should not choose a depcomp mode which is confused by this.
5421 #
5422 # We need to recreate these files for each test, as the compiler may
5423 # overwrite some of them when testing with obscure command lines.
5424 # This happens at least with the AIX C compiler.
5425 : > sub/conftest.c
5426 for i in 1 2 3 4 5 6; do
5427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
5428 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5429 # Solaris 10 /bin/sh.
5430 echo '/* dummy */' > sub/conftst$i.h
b879806f
AM
5431 done
5432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5433
d0ac1c44 5434 # We check with '-c' and '-o' for the sake of the "dashmstdout"
b879806f 5435 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
5436 # handle '-M -o', and we need to detect this. Also, some Intel
5437 # versions had trouble with output in subdirs.
b879806f
AM
5438 am__obj=sub/conftest.${OBJEXT-o}
5439 am__minus_obj="-o $am__obj"
5440 case $depmode in
5441 gcc)
5442 # This depmode causes a compiler race in universal mode.
5443 test "$am__universal" = false || continue
5444 ;;
5445 nosideeffect)
d0ac1c44
SM
5446 # After this tag, mechanisms are not by side-effect, so they'll
5447 # only be used when explicitly requested.
b879806f
AM
5448 if test "x$enable_dependency_tracking" = xyes; then
5449 continue
5450 else
5451 break
5452 fi
5453 ;;
6eb7d830 5454 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 5455 # This compiler won't grok '-c -o', but also, the minuso test has
b879806f
AM
5456 # not run yet. These depmodes are late enough in the game, and
5457 # so weak that their functioning should not be impacted.
5458 am__obj=conftest.${OBJEXT-o}
5459 am__minus_obj=
5460 ;;
5461 none) break ;;
5462 esac
5463 if depmode=$depmode \
5464 source=sub/conftest.c object=$am__obj \
5465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5467 >/dev/null 2>conftest.err &&
5468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5472 # icc doesn't choke on unknown options, it will just issue warnings
5473 # or remarks (even with -Werror). So we grep stderr for any message
5474 # that says an option was ignored or not supported.
5475 # When given -MP, icc 7.0 and 7.1 complain thusly:
5476 # icc: Command line warning: ignoring option '-M'; no argument required
5477 # The diagnosis changed in icc 8.0:
5478 # icc: Command line remark: option '-MP' not supported
5479 if (grep 'ignoring option' conftest.err ||
5480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5481 am_cv_CXX_dependencies_compiler_type=$depmode
5482 break
5483 fi
5484 fi
5485 done
5486
5487 cd ..
5488 rm -rf conftest.dir
5489else
5490 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5491fi
d7040cdb 5492
ce2cded5 5493fi
b879806f
AM
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5495$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5496CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5497
b879806f
AM
5498 if
5499 test "x$enable_dependency_tracking" != xno \
5500 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5501 am__fastdepCXX_TRUE=
5502 am__fastdepCXX_FALSE='#'
5503else
5504 am__fastdepCXX_TRUE='#'
5505 am__fastdepCXX_FALSE=
ce2cded5 5506fi
d7040cdb 5507
b879806f 5508
68880f31
CLT
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5510$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5511if ${ac_cv_path_GREP+:} false; then :
68880f31
CLT
5512 $as_echo_n "(cached) " >&6
5513else
5514 if test -z "$GREP"; then
5515 ac_path_GREP_found=false
5516 # Loop through the user's path and test for each of PROGNAME-LIST
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5519do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_prog in grep ggrep; do
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5525 as_fn_executable_p "$ac_path_GREP" || continue
68880f31
CLT
5526# Check for GNU ac_path_GREP and select it if it is found.
5527 # Check for GNU $ac_path_GREP
5528case `"$ac_path_GREP" --version 2>&1` in
5529*GNU*)
5530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5531*)
5532 ac_count=0
5533 $as_echo_n 0123456789 >"conftest.in"
5534 while :
5535 do
5536 cat "conftest.in" "conftest.in" >"conftest.tmp"
5537 mv "conftest.tmp" "conftest.in"
5538 cp "conftest.in" "conftest.nl"
5539 $as_echo 'GREP' >> "conftest.nl"
5540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5542 as_fn_arith $ac_count + 1 && ac_count=$as_val
5543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5544 # Best one so far, save it but keep looking for a better one
5545 ac_cv_path_GREP="$ac_path_GREP"
5546 ac_path_GREP_max=$ac_count
5547 fi
5548 # 10*(2^10) chars as input seems more than enough
5549 test $ac_count -gt 10 && break
5550 done
5551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5552esac
5553
5554 $ac_path_GREP_found && break 3
5555 done
5556 done
5557 done
5558IFS=$as_save_IFS
5559 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
68880f31
CLT
5561 fi
5562else
5563 ac_cv_path_GREP=$GREP
5564fi
5565
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5568$as_echo "$ac_cv_path_GREP" >&6; }
5569 GREP="$ac_cv_path_GREP"
5570
5571
ce2cded5
L
5572ac_ext=c
5573ac_cpp='$CPP $CPPFLAGS'
5574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5578$as_echo_n "checking how to run the C preprocessor... " >&6; }
5579# On Suns, sometimes $CPP names a directory.
5580if test -n "$CPP" && test -d "$CPP"; then
5581 CPP=
7357c5b6 5582fi
b879806f 5583if test -z "$CPP"; then
d0ac1c44 5584 if ${ac_cv_prog_CPP+:} false; then :
3cb62297
L
5585 $as_echo_n "(cached) " >&6
5586else
b879806f
AM
5587 # Double quotes because CPP needs to be expanded
5588 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5589 do
5590 ac_preproc_ok=false
5591for ac_c_preproc_warn_flag in '' yes
3cb62297 5592do
b879806f
AM
5593 # Use a header file that comes with gcc, so configuring glibc
5594 # with a fresh cross-compiler works.
5595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596 # <limits.h> exists even on freestanding compilers.
5597 # On the NeXT, cc -E runs the code through the compiler's parser,
5598 # not just through cpp. "Syntax error" is here to catch this case.
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h. */
5601#ifdef __STDC__
5602# include <limits.h>
5603#else
5604# include <assert.h>
5605#endif
5606 Syntax error
5607_ACEOF
5608if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5609
3cb62297 5610else
b879806f
AM
5611 # Broken: fails on valid input.
5612continue
7357c5b6 5613fi
d0ac1c44 5614rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5615
b879806f
AM
5616 # OK, works on sane cases. Now check whether nonexistent headers
5617 # can be detected and how.
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620#include <ac_nonexistent.h>
5621_ACEOF
5622if ac_fn_c_try_cpp "$LINENO"; then :
5623 # Broken: success on invalid input.
5624continue
5625else
5626 # Passes both tests.
5627ac_preproc_ok=:
5628break
5629fi
d0ac1c44 5630rm -f conftest.err conftest.i conftest.$ac_ext
42ecbf5e 5631
3cb62297 5632done
b879806f 5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5634rm -f conftest.i conftest.err conftest.$ac_ext
b879806f
AM
5635if $ac_preproc_ok; then :
5636 break
7357c5b6 5637fi
ac48eca1 5638
b879806f
AM
5639 done
5640 ac_cv_prog_CPP=$CPP
d7040cdb 5641
b879806f
AM
5642fi
5643 CPP=$ac_cv_prog_CPP
7357c5b6 5644else
b879806f
AM
5645 ac_cv_prog_CPP=$CPP
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5648$as_echo "$CPP" >&6; }
5649ac_preproc_ok=false
5650for ac_c_preproc_warn_flag in '' yes
5651do
5652 # Use a header file that comes with gcc, so configuring glibc
5653 # with a fresh cross-compiler works.
5654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655 # <limits.h> exists even on freestanding compilers.
5656 # On the NeXT, cc -E runs the code through the compiler's parser,
5657 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5659/* end confdefs.h. */
b879806f
AM
5660#ifdef __STDC__
5661# include <limits.h>
5662#else
5663# include <assert.h>
3cb62297 5664#endif
b879806f 5665 Syntax error
7357c5b6 5666_ACEOF
b879806f
AM
5667if ac_fn_c_try_cpp "$LINENO"; then :
5668
81ecdfbb 5669else
b879806f
AM
5670 # Broken: fails on valid input.
5671continue
7357c5b6 5672fi
d0ac1c44 5673rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb 5674
b879806f
AM
5675 # OK, works on sane cases. Now check whether nonexistent headers
5676 # can be detected and how.
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h. */
5679#include <ac_nonexistent.h>
5680_ACEOF
5681if ac_fn_c_try_cpp "$LINENO"; then :
5682 # Broken: success on invalid input.
5683continue
3cb62297 5684else
b879806f
AM
5685 # Passes both tests.
5686ac_preproc_ok=:
5687break
7357c5b6 5688fi
d0ac1c44 5689rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5690
b879806f
AM
5691done
5692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5693rm -f conftest.i conftest.err conftest.$ac_ext
b879806f 5694if $ac_preproc_ok; then :
252b5132 5695
3cb62297 5696else
b879806f
AM
5697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5699as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5700See \`config.log' for more details" "$LINENO" 5; }
b879806f 5701fi
42ecbf5e 5702
b879806f
AM
5703ac_ext=c
5704ac_cpp='$CPP $CPPFLAGS'
5705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5708
5709
b879806f
AM
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5711$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5712if ${ac_cv_path_EGREP+:} false; then :
b879806f
AM
5713 $as_echo_n "(cached) " >&6
5714else
5715 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5716 then ac_cv_path_EGREP="$GREP -E"
5717 else
5718 if test -z "$EGREP"; then
5719 ac_path_EGREP_found=false
5720 # Loop through the user's path and test for each of PROGNAME-LIST
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_prog in egrep; do
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5729 as_fn_executable_p "$ac_path_EGREP" || continue
b879806f
AM
5730# Check for GNU ac_path_EGREP and select it if it is found.
5731 # Check for GNU $ac_path_EGREP
5732case `"$ac_path_EGREP" --version 2>&1` in
5733*GNU*)
5734 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5735*)
5736 ac_count=0
5737 $as_echo_n 0123456789 >"conftest.in"
5738 while :
5739 do
5740 cat "conftest.in" "conftest.in" >"conftest.tmp"
5741 mv "conftest.tmp" "conftest.in"
5742 cp "conftest.in" "conftest.nl"
5743 $as_echo 'EGREP' >> "conftest.nl"
5744 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746 as_fn_arith $ac_count + 1 && ac_count=$as_val
5747 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5748 # Best one so far, save it but keep looking for a better one
5749 ac_cv_path_EGREP="$ac_path_EGREP"
5750 ac_path_EGREP_max=$ac_count
5751 fi
5752 # 10*(2^10) chars as input seems more than enough
5753 test $ac_count -gt 10 && break
5754 done
5755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756esac
5757
5758 $ac_path_EGREP_found && break 3
5759 done
5760 done
5761 done
5762IFS=$as_save_IFS
5763 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5764 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b879806f
AM
5765 fi
5766else
5767 ac_cv_path_EGREP=$EGREP
5768fi
5769
5770 fi
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5773$as_echo "$ac_cv_path_EGREP" >&6; }
5774 EGREP="$ac_cv_path_EGREP"
5775
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5778$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5779if ${ac_cv_header_stdc+:} false; then :
b879806f
AM
5780 $as_echo_n "(cached) " >&6
5781else
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5783/* end confdefs.h. */
b879806f
AM
5784#include <stdlib.h>
5785#include <stdarg.h>
5786#include <string.h>
5787#include <float.h>
42ecbf5e 5788
3cb62297
L
5789int
5790main ()
5791{
42ecbf5e 5792
3cb62297
L
5793 ;
5794 return 0;
5795}
5796_ACEOF
b879806f
AM
5797if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_header_stdc=yes
5799else
5800 ac_cv_header_stdc=no
3cb62297
L
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5803
5804if test $ac_cv_header_stdc = yes; then
5805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h. */
5808#include <string.h>
5809
5810_ACEOF
5811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5812 $EGREP "memchr" >/dev/null 2>&1; then :
5813
5814else
5815 ac_cv_header_stdc=no
3cb62297 5816fi
b879806f
AM
5817rm -f conftest*
5818
3cb62297 5819fi
b879806f
AM
5820
5821if test $ac_cv_header_stdc = yes; then
5822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h. */
5825#include <stdlib.h>
5826
5827_ACEOF
5828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5829 $EGREP "free" >/dev/null 2>&1; then :
5830
ce2cded5 5831else
b879806f 5832 ac_cv_header_stdc=no
ce2cded5 5833fi
b879806f 5834rm -f conftest*
42ecbf5e 5835
b879806f 5836fi
e5a52504 5837
b879806f
AM
5838if test $ac_cv_header_stdc = yes; then
5839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5840 if test "$cross_compiling" = yes; then :
5841 :
3cb62297 5842else
b879806f
AM
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845#include <ctype.h>
5846#include <stdlib.h>
5847#if ((' ' & 0x0FF) == 0x020)
5848# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5849# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5850#else
5851# define ISLOWER(c) \
5852 (('a' <= (c) && (c) <= 'i') \
5853 || ('j' <= (c) && (c) <= 'r') \
5854 || ('s' <= (c) && (c) <= 'z'))
5855# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5856#endif
3cb62297
L
5857
5858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5859int
5860main ()
5861{
5862 int i;
5863 for (i = 0; i < 256; i++)
5864 if (XOR (islower (i), ISLOWER (i))
5865 || toupper (i) != TOUPPER (i))
5866 return 2;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_run "$LINENO"; then :
5871
5872else
5873 ac_cv_header_stdc=no
5874fi
5875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5876 conftest.$ac_objext conftest.beam conftest.$ac_ext
5877fi
5878
5879fi
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5882$as_echo "$ac_cv_header_stdc" >&6; }
5883if test $ac_cv_header_stdc = yes; then
5884
5885$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5886
5887fi
5888
5889# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5890for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5891 inttypes.h stdint.h unistd.h
5892do :
5893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5894ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5895"
d0ac1c44 5896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3cb62297
L
5897 cat >>confdefs.h <<_ACEOF
5898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5899_ACEOF
5900
5901fi
5902
5903done
5904
5905
5906
5907 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5908if test "x$ac_cv_header_minix_config_h" = xyes; then :
3cb62297
L
5909 MINIX=yes
5910else
5911 MINIX=
5912fi
5913
5914
5915 if test "$MINIX" = yes; then
5916
5917$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5918
5919
5920$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5921
5922
5923$as_echo "#define _MINIX 1" >>confdefs.h
5924
5925 fi
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5929$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5930if ${ac_cv_safe_to_define___extensions__+:} false; then :
3cb62297
L
5931 $as_echo_n "(cached) " >&6
5932else
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h. */
5935
d0ac1c44
SM
5936# define __EXTENSIONS__ 1
5937 $ac_includes_default
3cb62297
L
5938int
5939main ()
5940{
5941
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946if ac_fn_c_try_compile "$LINENO"; then :
5947 ac_cv_safe_to_define___extensions__=yes
5948else
5949 ac_cv_safe_to_define___extensions__=no
5950fi
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5954$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5955 test $ac_cv_safe_to_define___extensions__ = yes &&
5956 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5957
5958 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5959
5960 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5961
5962 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5963
5964 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5965
5966
5967
5968
5969
3cb62297 5970
b879806f
AM
5971case `pwd` in
5972 *\ * | *\ *)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5974$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5975esac
3cb62297
L
5976
5977
da2f07f1 5978
b879806f
AM
5979macro_version='2.2.7a'
5980macro_revision='1.3134'
d7040cdb 5981
d7040cdb
SE
5982
5983
d7040cdb 5984
d7040cdb 5985
42ecbf5e 5986
d7040cdb 5987
252b5132 5988
252b5132 5989
252b5132 5990
252b5132
RH
5991
5992
ce2cded5 5993
b214d478 5994ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5995
3725885a
RW
5996# Backslashify metacharacters that are still active within
5997# double-quoted strings.
5998sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5999
6000# Same as above, but do not quote variable references.
6001double_quote_subst='s/\(["`\\]\)/\\\1/g'
6002
6003# Sed substitution to delay expansion of an escaped shell variable in a
6004# double_quote_subst'ed string.
6005delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6006
6007# Sed substitution to delay expansion of an escaped single quote.
6008delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6009
6010# Sed substitution to avoid accidental globbing in evaled expressions
6011no_glob_subst='s/\*/\\\*/g'
6012
6013ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6014ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6015ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6018$as_echo_n "checking how to print strings... " >&6; }
6019# Test print first, because it will be a builtin if present.
6020if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6021 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6022 ECHO='print -r --'
6023elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6024 ECHO='printf %s\n'
6025else
6026 # Use this function as a fallback that always works.
6027 func_fallback_echo ()
6028 {
6029 eval 'cat <<_LTECHO_EOF
6030$1
6031_LTECHO_EOF'
6032 }
6033 ECHO='func_fallback_echo'
6034fi
6035
6036# func_echo_all arg...
6037# Invoke $ECHO with all args, space-separated.
6038func_echo_all ()
6039{
6040 $ECHO ""
6041}
6042
6043case "$ECHO" in
6044 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6045$as_echo "printf" >&6; } ;;
6046 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6047$as_echo "print -r" >&6; } ;;
6048 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6049$as_echo "cat" >&6; } ;;
6050esac
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
81ecdfbb
RW
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6066$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 6067if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
6068 $as_echo_n "(cached) " >&6
6069else
6070 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6071 for ac_i in 1 2 3 4 5 6 7; do
6072 ac_script="$ac_script$as_nl$ac_script"
6073 done
6074 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6075 { ac_script=; unset ac_script;}
6076 if test -z "$SED"; then
6077 ac_path_SED_found=false
6078 # Loop through the user's path and test for each of PROGNAME-LIST
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6080for as_dir in $PATH
6081do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
81ecdfbb 6084 for ac_prog in sed gsed; do
7357c5b6 6085 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 6086 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 6087 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
6088# Check for GNU ac_path_SED and select it if it is found.
6089 # Check for GNU $ac_path_SED
6090case `"$ac_path_SED" --version 2>&1` in
6091*GNU*)
6092 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6093*)
6094 ac_count=0
6095 $as_echo_n 0123456789 >"conftest.in"
6096 while :
6097 do
6098 cat "conftest.in" "conftest.in" >"conftest.tmp"
6099 mv "conftest.tmp" "conftest.in"
6100 cp "conftest.in" "conftest.nl"
6101 $as_echo '' >> "conftest.nl"
6102 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6104 as_fn_arith $ac_count + 1 && ac_count=$as_val
6105 if test $ac_count -gt ${ac_path_SED_max-0}; then
6106 # Best one so far, save it but keep looking for a better one
6107 ac_cv_path_SED="$ac_path_SED"
6108 ac_path_SED_max=$ac_count
6109 fi
6110 # 10*(2^10) chars as input seems more than enough
6111 test $ac_count -gt 10 && break
6112 done
6113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6114esac
6115
6116 $ac_path_SED_found && break 3
7357c5b6
AM
6117 done
6118 done
81ecdfbb 6119 done
7357c5b6 6120IFS=$as_save_IFS
81ecdfbb 6121 if test -z "$ac_cv_path_SED"; then
d0ac1c44 6122 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6123 fi
81ecdfbb
RW
6124else
6125 ac_cv_path_SED=$SED
7357c5b6 6126fi
20e95c23 6127
81ecdfbb
RW
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6130$as_echo "$ac_cv_path_SED" >&6; }
6131 SED="$ac_cv_path_SED"
6132 rm -f conftest.sed
20e95c23 6133
7357c5b6
AM
6134test -z "$SED" && SED=sed
6135Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6136
6137
6138
6139
6140
6141
20e95c23 6142
20e95c23 6143
d7040cdb 6144
d7040cdb 6145
7357c5b6 6146
81ecdfbb
RW
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6148$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 6149if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 6150 $as_echo_n "(cached) " >&6
7357c5b6 6151else
81ecdfbb
RW
6152 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6153 then ac_cv_path_FGREP="$GREP -F"
6154 else
6155 if test -z "$FGREP"; then
6156 ac_path_FGREP_found=false
6157 # Loop through the user's path and test for each of PROGNAME-LIST
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_prog in fgrep; do
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 6166 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
6167# Check for GNU ac_path_FGREP and select it if it is found.
6168 # Check for GNU $ac_path_FGREP
6169case `"$ac_path_FGREP" --version 2>&1` in
6170*GNU*)
6171 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6172*)
6173 ac_count=0
6174 $as_echo_n 0123456789 >"conftest.in"
6175 while :
6176 do
6177 cat "conftest.in" "conftest.in" >"conftest.tmp"
6178 mv "conftest.tmp" "conftest.in"
6179 cp "conftest.in" "conftest.nl"
6180 $as_echo 'FGREP' >> "conftest.nl"
6181 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6183 as_fn_arith $ac_count + 1 && ac_count=$as_val
6184 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6185 # Best one so far, save it but keep looking for a better one
6186 ac_cv_path_FGREP="$ac_path_FGREP"
6187 ac_path_FGREP_max=$ac_count
7357c5b6 6188 fi
81ecdfbb
RW
6189 # 10*(2^10) chars as input seems more than enough
6190 test $ac_count -gt 10 && break
6191 done
6192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6193esac
6194
6195 $ac_path_FGREP_found && break 3
6196 done
6197 done
6198 done
6199IFS=$as_save_IFS
6200 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 6201 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
6202 fi
6203else
6204 ac_cv_path_FGREP=$FGREP
6205fi
6206
6207 fi
20e95c23 6208fi
81ecdfbb
RW
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6210$as_echo "$ac_cv_path_FGREP" >&6; }
6211 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6212
6213
6214test -z "$GREP" && GREP=grep
6215
d7040cdb
SE
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
20e95c23 6227
ce2cded5 6228
d7040cdb 6229
7357c5b6
AM
6230
6231
6232
6233
81ecdfbb
RW
6234# Check whether --with-gnu-ld was given.
6235if test "${with_gnu_ld+set}" = set; then :
6236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6237else
6238 with_gnu_ld=no
81ecdfbb
RW
6239fi
6240
7357c5b6
AM
6241ac_prog=ld
6242if test "$GCC" = yes; then
6243 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6245$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6246 case $host in
6247 *-*-mingw*)
6248 # gcc leaves a trailing carriage return which upsets mingw
6249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6250 *)
6251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6252 esac
6253 case $ac_prog in
6254 # Accept absolute paths.
6255 [\\/]* | ?:[\\/]*)
6256 re_direlt='/[^/][^/]*/\.\./'
6257 # Canonicalize the pathname of ld
6258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6261 done
6262 test -z "$LD" && LD="$ac_prog"
6263 ;;
6264 "")
6265 # If it fails, then pretend we aren't using GCC.
6266 ac_prog=ld
6267 ;;
6268 *)
6269 # If it is relative, then search for the first ld in PATH.
6270 with_gnu_ld=unknown
6271 ;;
6272 esac
6273elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6275$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6276else
81ecdfbb
RW
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6278$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6279fi
d0ac1c44 6280if ${lt_cv_path_LD+:} false; then :
81ecdfbb 6281 $as_echo_n "(cached) " >&6
ce2cded5 6282else
7357c5b6
AM
6283 if test -z "$LD"; then
6284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6285 for ac_dir in $PATH; do
6286 IFS="$lt_save_ifs"
6287 test -z "$ac_dir" && ac_dir=.
6288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6289 lt_cv_path_LD="$ac_dir/$ac_prog"
6290 # Check to see if the program is GNU ld. I'd rather use --version,
6291 # but apparently some variants of GNU ld only accept -v.
6292 # Break only if it was the GNU/non-GNU ld that we prefer.
6293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6294 *GNU* | *'with BFD'*)
6295 test "$with_gnu_ld" != no && break
6296 ;;
6297 *)
6298 test "$with_gnu_ld" != yes && break
6299 ;;
6300 esac
6301 fi
6302 done
6303 IFS="$lt_save_ifs"
ce2cded5 6304else
7357c5b6 6305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6306fi
6307fi
7357c5b6
AM
6308
6309LD="$lt_cv_path_LD"
6310if test -n "$LD"; then
81ecdfbb
RW
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6312$as_echo "$LD" >&6; }
ce2cded5 6313else
81ecdfbb
RW
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
ce2cded5 6316fi
d0ac1c44 6317test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6319$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 6320if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 6321 $as_echo_n "(cached) " >&6
ce2cded5 6322else
7357c5b6
AM
6323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6324case `$LD -v 2>&1 </dev/null` in
6325*GNU* | *'with BFD'*)
6326 lt_cv_prog_gnu_ld=yes
6327 ;;
6328*)
6329 lt_cv_prog_gnu_ld=no
6330 ;;
6331esac
ce2cded5 6332fi
81ecdfbb
RW
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6334$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6335with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6336
6337
6338
6339
6340
6341
6342
6343
6344
81ecdfbb
RW
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6346$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6347if ${lt_cv_path_NM+:} false; then :
81ecdfbb 6348 $as_echo_n "(cached) " >&6
ce2cded5 6349else
7357c5b6
AM
6350 if test -n "$NM"; then
6351 # Let the user override the test.
6352 lt_cv_path_NM="$NM"
ce2cded5 6353else
7357c5b6
AM
6354 lt_nm_to_check="${ac_tool_prefix}nm"
6355 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6356 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6357 fi
7357c5b6
AM
6358 for lt_tmp_nm in $lt_nm_to_check; do
6359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6360 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6361 IFS="$lt_save_ifs"
6362 test -z "$ac_dir" && ac_dir=.
6363 tmp_nm="$ac_dir/$lt_tmp_nm"
6364 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6365 # Check to see if the nm accepts a BSD-compat flag.
6366 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6367 # nm: unknown option "B" ignored
6368 # Tru64's nm complains that /dev/null is an invalid object file
6369 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6370 */dev/null* | *'Invalid file or object type'*)
6371 lt_cv_path_NM="$tmp_nm -B"
6372 break
6373 ;;
6374 *)
6375 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6376 */dev/null*)
6377 lt_cv_path_NM="$tmp_nm -p"
6378 break
6379 ;;
6380 *)
6381 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6382 continue # so that we can try to find one that supports BSD flags
6383 ;;
6384 esac
6385 ;;
6386 esac
6387 fi
6388 done
6389 IFS="$lt_save_ifs"
6390 done
6391 : ${lt_cv_path_NM=no}
ce2cded5
L
6392fi
6393fi
81ecdfbb
RW
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6395$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6396if test "$lt_cv_path_NM" != "no"; then
6397 NM="$lt_cv_path_NM"
ce2cded5 6398else
7357c5b6 6399 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6400 if test -n "$DUMPBIN"; then :
6401 # Let the user override the test.
6402 else
6403 if test -n "$ac_tool_prefix"; then
6404 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6405 do
6406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6410if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 6411 $as_echo_n "(cached) " >&6
20e95c23 6412else
7357c5b6
AM
6413 if test -n "$DUMPBIN"; then
6414 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
81ecdfbb 6421 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6423 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6425 break 2
6426 fi
6427done
81ecdfbb
RW
6428 done
6429IFS=$as_save_IFS
d7040cdb 6430
20e95c23 6431fi
ce2cded5 6432fi
7357c5b6
AM
6433DUMPBIN=$ac_cv_prog_DUMPBIN
6434if test -n "$DUMPBIN"; then
81ecdfbb
RW
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6436$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6437else
81ecdfbb
RW
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
42ecbf5e
DJ
6440fi
6441
81ecdfbb 6442
7357c5b6
AM
6443 test -n "$DUMPBIN" && break
6444 done
ce2cded5 6445fi
7357c5b6
AM
6446if test -z "$DUMPBIN"; then
6447 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6448 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6449do
6450 # Extract the first word of "$ac_prog", so it can be a program name with args.
6451set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6454if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 6455 $as_echo_n "(cached) " >&6
42ecbf5e 6456else
7357c5b6
AM
6457 if test -n "$ac_ct_DUMPBIN"; then
6458 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
81ecdfbb 6465 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6467 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6469 break 2
6470 fi
6471done
81ecdfbb
RW
6472 done
6473IFS=$as_save_IFS
d7040cdb 6474
ce2cded5
L
6475fi
6476fi
7357c5b6
AM
6477ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6478if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6480$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6481else
81ecdfbb
RW
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
ce2cded5 6484fi
d7040cdb 6485
81ecdfbb 6486
7357c5b6 6487 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6488done
d7040cdb 6489
81ecdfbb
RW
6490 if test "x$ac_ct_DUMPBIN" = x; then
6491 DUMPBIN=":"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494yes:)
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497ac_tool_warned=yes ;;
6498esac
6499 DUMPBIN=$ac_ct_DUMPBIN
6500 fi
ce2cded5 6501fi
7357c5b6 6502
3725885a
RW
6503 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6504 *COFF*)
6505 DUMPBIN="$DUMPBIN -symbols"
6506 ;;
6507 *)
6508 DUMPBIN=:
6509 ;;
6510 esac
6511 fi
7357c5b6
AM
6512
6513 if test "$DUMPBIN" != ":"; then
6514 NM="$DUMPBIN"
6515 fi
ce2cded5 6516fi
7357c5b6
AM
6517test -z "$NM" && NM=nm
6518
6519
6520
6521
6522
6523
81ecdfbb
RW
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6525$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6526if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 6527 $as_echo_n "(cached) " >&6
20e95c23 6528else
7357c5b6
AM
6529 lt_cv_nm_interface="BSD nm"
6530 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6531 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6532 (eval "$ac_compile" 2>conftest.err)
6533 cat conftest.err >&5
3725885a 6534 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6535 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6536 cat conftest.err >&5
3725885a 6537 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6538 cat conftest.out >&5
6539 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6540 lt_cv_nm_interface="MS dumpbin"
6541 fi
6542 rm -f conftest*
20e95c23 6543fi
81ecdfbb
RW
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6545$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6546
81ecdfbb
RW
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6548$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6549LN_S=$as_ln_s
6550if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6552$as_echo "yes" >&6; }
ce2cded5 6553else
81ecdfbb
RW
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6555$as_echo "no, using $LN_S" >&6; }
d7040cdb 6556fi
20e95c23 6557
7357c5b6 6558# find the maximum length of command line arguments
81ecdfbb
RW
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6560$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6561if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 6562 $as_echo_n "(cached) " >&6
7357c5b6
AM
6563else
6564 i=0
6565 teststring="ABCD"
20e95c23 6566
7357c5b6
AM
6567 case $build_os in
6568 msdosdjgpp*)
6569 # On DJGPP, this test can blow up pretty badly due to problems in libc
6570 # (any single argument exceeding 2000 bytes causes a buffer overrun
6571 # during glob expansion). Even if it were fixed, the result of this
6572 # check would be larger than it should be.
6573 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6574 ;;
20e95c23 6575
7357c5b6
AM
6576 gnu*)
6577 # Under GNU Hurd, this test is not required because there is
6578 # no limit to the length of command line arguments.
6579 # Libtool will interpret -1 as no limit whatsoever
6580 lt_cv_sys_max_cmd_len=-1;
6581 ;;
20e95c23 6582
b214d478 6583 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6584 # On Win9x/ME, this test blows up -- it succeeds, but takes
6585 # about 5 minutes as the teststring grows exponentially.
6586 # Worse, since 9x/ME are not pre-emptively multitasking,
6587 # you end up with a "frozen" computer, even though with patience
6588 # the test eventually succeeds (with a max line length of 256k).
6589 # Instead, let's just punt: use the minimum linelength reported by
6590 # all of the supported platforms: 8192 (on NT/2K/XP).
6591 lt_cv_sys_max_cmd_len=8192;
6592 ;;
20e95c23 6593
3725885a
RW
6594 mint*)
6595 # On MiNT this can take a long time and run out of memory.
6596 lt_cv_sys_max_cmd_len=8192;
6597 ;;
6598
7357c5b6
AM
6599 amigaos*)
6600 # On AmigaOS with pdksh, this test takes hours, literally.
6601 # So we just punt and use a minimum line length of 8192.
6602 lt_cv_sys_max_cmd_len=8192;
6603 ;;
20e95c23 6604
7357c5b6
AM
6605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6606 # This has been around since 386BSD, at least. Likely further.
6607 if test -x /sbin/sysctl; then
6608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6609 elif test -x /usr/sbin/sysctl; then
6610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6611 else
6612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6613 fi
6614 # And add a safety zone
6615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6617 ;;
d7040cdb 6618
7357c5b6
AM
6619 interix*)
6620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6621 lt_cv_sys_max_cmd_len=196608
6622 ;;
d7040cdb 6623
7357c5b6
AM
6624 osf*)
6625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6627 # nice to cause kernel panics so lets avoid the loop below.
6628 # First set a reasonable default.
6629 lt_cv_sys_max_cmd_len=16384
6630 #
6631 if test -x /sbin/sysconfig; then
6632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6634 esac
6635 fi
6636 ;;
6637 sco3.2v5*)
6638 lt_cv_sys_max_cmd_len=102400
6639 ;;
6640 sysv5* | sco5v6* | sysv4.2uw2*)
6641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6642 if test -n "$kargmax"; then
6643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6644 else
6645 lt_cv_sys_max_cmd_len=32768
6646 fi
ce2cded5
L
6647 ;;
6648 *)
b214d478
SE
6649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6650 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6653 else
6654 # Make teststring a little bigger before we do anything with it.
6655 # a 1K string should be a reasonable start.
6656 for i in 1 2 3 4 5 6 7 8 ; do
6657 teststring=$teststring$teststring
6658 done
6659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6660 # If test is not a shell built-in, we'll probably end up computing a
6661 # maximum length that is only half of the actual maximum length, but
6662 # we can't tell.
3725885a
RW
6663 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6664 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6665 test $i != 17 # 1/2 MB should be enough
6666 do
6667 i=`expr $i + 1`
6668 teststring=$teststring$teststring
6669 done
6670 # Only check the string length outside the loop.
6671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6672 teststring=
6673 # Add a significant safety factor because C++ compilers can tack on
6674 # massive amounts of additional arguments before passing them to the
6675 # linker. It appears as though 1/2 is a usable value.
6676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6677 fi
ce2cded5
L
6678 ;;
6679 esac
d7040cdb 6680
7357c5b6 6681fi
d7040cdb 6682
7357c5b6 6683if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6685$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6686else
81ecdfbb
RW
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6688$as_echo "none" >&6; }
7357c5b6
AM
6689fi
6690max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6691
6692
6693
6694
6695
d7040cdb 6696
7357c5b6
AM
6697: ${CP="cp -f"}
6698: ${MV="mv -f"}
6699: ${RM="rm -f"}
d7040cdb 6700
81ecdfbb
RW
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6702$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6703# Try some XSI features
6704xsi_shell=no
6705( _lt_dummy="a/b/c"
6706 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6707 = c,a/b,, \
6708 && eval 'test $(( 1 + 1 )) -eq 2 \
6709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6710 && xsi_shell=yes
81ecdfbb
RW
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6712$as_echo "$xsi_shell" >&6; }
d7040cdb 6713
d7040cdb 6714
81ecdfbb
RW
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6716$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6717lt_shell_append=no
6718( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6719 >/dev/null 2>&1 \
6720 && lt_shell_append=yes
81ecdfbb
RW
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6722$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6723
6724
7357c5b6
AM
6725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6726 lt_unset=unset
6727else
6728 lt_unset=false
6729fi
d7040cdb 6730
d7040cdb 6731
d7040cdb 6732
d7040cdb 6733
d7040cdb 6734
7357c5b6
AM
6735# test EBCDIC or ASCII
6736case `echo X|tr X '\101'` in
6737 A) # ASCII based system
6738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6739 lt_SP2NL='tr \040 \012'
6740 lt_NL2SP='tr \015\012 \040\040'
6741 ;;
6742 *) # EBCDIC based system
6743 lt_SP2NL='tr \100 \n'
6744 lt_NL2SP='tr \r\n \100\100'
6745 ;;
6746esac
42ecbf5e 6747
d7040cdb
SE
6748
6749
6750
6751
6752
6753
d7040cdb 6754
d7040cdb 6755
81ecdfbb
RW
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6757$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6758if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6759 $as_echo_n "(cached) " >&6
7357c5b6
AM
6760else
6761 lt_cv_ld_reload_flag='-r'
6762fi
81ecdfbb
RW
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6764$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6765reload_flag=$lt_cv_ld_reload_flag
6766case $reload_flag in
6767"" | " "*) ;;
6768*) reload_flag=" $reload_flag" ;;
6769esac
6770reload_cmds='$LD$reload_flag -o $output$reload_objs'
6771case $host_os in
6772 darwin*)
6773 if test "$GCC" = yes; then
6774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6775 else
6776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6777 fi
6778 ;;
6779esac
d7040cdb 6780
d7040cdb 6781
d7040cdb 6782
d7040cdb 6783
d7040cdb 6784
d7040cdb 6785
d7040cdb 6786
d7040cdb 6787
d7040cdb 6788
b214d478
SE
6789if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6794if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6795 $as_echo_n "(cached) " >&6
b214d478
SE
6796else
6797 if test -n "$OBJDUMP"; then
6798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
81ecdfbb 6805 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6809 break 2
6810 fi
6811done
81ecdfbb
RW
6812 done
6813IFS=$as_save_IFS
b214d478
SE
6814
6815fi
6816fi
6817OBJDUMP=$ac_cv_prog_OBJDUMP
6818if test -n "$OBJDUMP"; then
81ecdfbb
RW
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6820$as_echo "$OBJDUMP" >&6; }
b214d478 6821else
81ecdfbb
RW
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
b214d478
SE
6824fi
6825
81ecdfbb 6826
b214d478
SE
6827fi
6828if test -z "$ac_cv_prog_OBJDUMP"; then
6829 ac_ct_OBJDUMP=$OBJDUMP
6830 # Extract the first word of "objdump", so it can be a program name with args.
6831set dummy objdump; ac_word=$2
81ecdfbb
RW
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6834if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6835 $as_echo_n "(cached) " >&6
b214d478
SE
6836else
6837 if test -n "$ac_ct_OBJDUMP"; then
6838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
81ecdfbb 6845 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6847 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6849 break 2
6850 fi
6851done
81ecdfbb
RW
6852 done
6853IFS=$as_save_IFS
b214d478 6854
b214d478
SE
6855fi
6856fi
6857ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6858if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6860$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6861else
81ecdfbb
RW
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
b214d478
SE
6864fi
6865
81ecdfbb
RW
6866 if test "x$ac_ct_OBJDUMP" = x; then
6867 OBJDUMP="false"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875 OBJDUMP=$ac_ct_OBJDUMP
6876 fi
b214d478
SE
6877else
6878 OBJDUMP="$ac_cv_prog_OBJDUMP"
6879fi
6880
6881test -z "$OBJDUMP" && OBJDUMP=objdump
6882
6883
6884
6885
6886
6887
6888
6889
d7040cdb 6890
81ecdfbb
RW
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6892$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6893if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6894 $as_echo_n "(cached) " >&6
ce2cded5 6895else
7357c5b6
AM
6896 lt_cv_file_magic_cmd='$MAGIC_CMD'
6897lt_cv_file_magic_test_file=
6898lt_cv_deplibs_check_method='unknown'
6899# Need to set the preceding variable on all platforms that support
6900# interlibrary dependencies.
6901# 'none' -- dependencies not supported.
6902# `unknown' -- same as none, but documents that we really don't know.
6903# 'pass_all' -- all dependencies passed with no checks.
6904# 'test_compile' -- check by making test program.
6905# 'file_magic [[regex]]' -- check by looking for files in library path
6906# which responds to the $file_magic_cmd with a given extended regex.
6907# If you have `file' or equivalent on your system and you're not sure
6908# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6909
ce2cded5 6910case $host_os in
7357c5b6
AM
6911aix[4-9]*)
6912 lt_cv_deplibs_check_method=pass_all
ce2cded5 6913 ;;
7357c5b6
AM
6914
6915beos*)
6916 lt_cv_deplibs_check_method=pass_all
ce2cded5 6917 ;;
7357c5b6
AM
6918
6919bsdi[45]*)
6920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6921 lt_cv_file_magic_cmd='/usr/bin/file -L'
6922 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6923 ;;
7357c5b6
AM
6924
6925cygwin*)
6926 # func_win32_libid is a shell function defined in ltmain.sh
6927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6928 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6929 ;;
7357c5b6
AM
6930
6931mingw* | pw32*)
6932 # Base MSYS/MinGW do not provide the 'file' command needed by
6933 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6934 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6935 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6936 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6938 lt_cv_file_magic_cmd='func_win32_libid'
6939 else
6940 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6941 lt_cv_file_magic_cmd='$OBJDUMP -f'
6942 fi
ce2cded5 6943 ;;
7357c5b6 6944
3725885a 6945cegcc*)
b214d478
SE
6946 # use the weaker test based on 'objdump'. See mingw*.
6947 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6948 lt_cv_file_magic_cmd='$OBJDUMP -f'
6949 ;;
6950
7357c5b6
AM
6951darwin* | rhapsody*)
6952 lt_cv_deplibs_check_method=pass_all
ce2cded5 6953 ;;
7357c5b6
AM
6954
6955freebsd* | dragonfly*)
6956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6957 case $host_cpu in
6958 i*86 )
6959 # Not sure whether the presence of OpenBSD here was a mistake.
6960 # Let's accept both of them until this is cleared up.
6961 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6962 lt_cv_file_magic_cmd=/usr/bin/file
6963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6964 ;;
6965 esac
6966 else
6967 lt_cv_deplibs_check_method=pass_all
6968 fi
ce2cded5 6969 ;;
7357c5b6
AM
6970
6971gnu*)
6972 lt_cv_deplibs_check_method=pass_all
ce2cded5 6973 ;;
7357c5b6 6974
3725885a
RW
6975haiku*)
6976 lt_cv_deplibs_check_method=pass_all
6977 ;;
6978
7357c5b6
AM
6979hpux10.20* | hpux11*)
6980 lt_cv_file_magic_cmd=/usr/bin/file
6981 case $host_cpu in
6982 ia64*)
6983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6985 ;;
6986 hppa*64*)
3725885a 6987 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
6988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6989 ;;
6990 *)
3725885a 6991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6993 ;;
6994 esac
ce2cded5 6995 ;;
d7040cdb 6996
7357c5b6
AM
6997interix[3-9]*)
6998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7000 ;;
d7040cdb 7001
7357c5b6
AM
7002irix5* | irix6* | nonstopux*)
7003 case $LD in
7004 *-32|*"-32 ") libmagic=32-bit;;
7005 *-n32|*"-n32 ") libmagic=N32;;
7006 *-64|*"-64 ") libmagic=64-bit;;
7007 *) libmagic=never-match;;
7008 esac
7009 lt_cv_deplibs_check_method=pass_all
7010 ;;
d7040cdb 7011
7357c5b6 7012# This must be Linux ELF.
58e24671 7013linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
d7040cdb 7016
7357c5b6
AM
7017netbsd*)
7018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7020 else
7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7022 fi
ce2cded5 7023 ;;
d7040cdb 7024
7357c5b6
AM
7025newos6*)
7026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7027 lt_cv_file_magic_cmd=/usr/bin/file
7028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7029 ;;
d7040cdb 7030
7357c5b6
AM
7031*nto* | *qnx*)
7032 lt_cv_deplibs_check_method=pass_all
7033 ;;
d7040cdb 7034
7357c5b6
AM
7035openbsd*)
7036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7038 else
7357c5b6 7039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7040 fi
7357c5b6 7041 ;;
d7040cdb 7042
7357c5b6
AM
7043osf3* | osf4* | osf5*)
7044 lt_cv_deplibs_check_method=pass_all
7045 ;;
d7040cdb 7046
7357c5b6
AM
7047rdos*)
7048 lt_cv_deplibs_check_method=pass_all
7049 ;;
d7040cdb 7050
7357c5b6
AM
7051solaris*)
7052 lt_cv_deplibs_check_method=pass_all
7053 ;;
d7040cdb 7054
7357c5b6
AM
7055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7056 lt_cv_deplibs_check_method=pass_all
7057 ;;
d7040cdb 7058
7357c5b6
AM
7059sysv4 | sysv4.3*)
7060 case $host_vendor in
7061 motorola)
7062 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]'
7063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7064 ;;
7065 ncr)
7066 lt_cv_deplibs_check_method=pass_all
7067 ;;
7068 sequent)
7069 lt_cv_file_magic_cmd='/bin/file'
7070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7071 ;;
7072 sni)
7073 lt_cv_file_magic_cmd='/bin/file'
7074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7075 lt_cv_file_magic_test_file=/lib/libc.so
7076 ;;
7077 siemens)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080 pc)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083 esac
7084 ;;
d7040cdb 7085
7357c5b6
AM
7086tpf*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089esac
d7040cdb 7090
7357c5b6 7091fi
81ecdfbb
RW
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7093$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7094file_magic_cmd=$lt_cv_file_magic_cmd
7095deplibs_check_method=$lt_cv_deplibs_check_method
7096test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7097
7098
7099
7357c5b6
AM
7100
7101
7102
7103
7104
7105
7106
7107
7108
a4966cd9
L
7109plugin_option=
7110plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7111for plugin in $plugin_names; do
7112 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7113 if test x$plugin_so = x$plugin; then
7114 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7115 fi
7116 if test x$plugin_so != x$plugin; then
7117 plugin_option="--plugin $plugin_so"
7118 break
7119 fi
7120done
7121
7357c5b6
AM
7122if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7124set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7127if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 7128 $as_echo_n "(cached) " >&6
7357c5b6
AM
7129else
7130 if test -n "$AR"; then
7131 ac_cv_prog_AR="$AR" # Let the user override the test.
7132else
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
81ecdfbb 7138 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7140 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7142 break 2
ce2cded5
L
7143 fi
7144done
81ecdfbb
RW
7145 done
7146IFS=$as_save_IFS
d7040cdb 7147
42ecbf5e 7148fi
ce2cded5 7149fi
7357c5b6
AM
7150AR=$ac_cv_prog_AR
7151if test -n "$AR"; then
81ecdfbb
RW
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7153$as_echo "$AR" >&6; }
42ecbf5e 7154else
81ecdfbb
RW
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156$as_echo "no" >&6; }
42ecbf5e
DJ
7157fi
7158
81ecdfbb 7159
7357c5b6
AM
7160fi
7161if test -z "$ac_cv_prog_AR"; then
7162 ac_ct_AR=$AR
7163 # Extract the first word of "ar", so it can be a program name with args.
7164set dummy ar; ac_word=$2
81ecdfbb
RW
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7167if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 7168 $as_echo_n "(cached) " >&6
7357c5b6
AM
7169else
7170 if test -n "$ac_ct_AR"; then
7171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7172else
7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
81ecdfbb 7178 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7180 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7182 break 2
7183 fi
7184done
81ecdfbb
RW
7185 done
7186IFS=$as_save_IFS
42ecbf5e 7187
7357c5b6
AM
7188fi
7189fi
7190ac_ct_AR=$ac_cv_prog_ac_ct_AR
7191if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7193$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7194else
81ecdfbb
RW
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196$as_echo "no" >&6; }
7357c5b6 7197fi
d7040cdb 7198
81ecdfbb
RW
7199 if test "x$ac_ct_AR" = x; then
7200 AR="false"
7201 else
7202 case $cross_compiling:$ac_tool_warned in
7203yes:)
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206ac_tool_warned=yes ;;
7207esac
7208 AR=$ac_ct_AR
7209 fi
7357c5b6
AM
7210else
7211 AR="$ac_cv_prog_AR"
7212fi
d7040cdb 7213
7357c5b6 7214test -z "$AR" && AR=ar
a4966cd9
L
7215if test -n "$plugin_option"; then
7216 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
7217 touch conftest.c
7218 $AR $plugin_option rc conftest.a conftest.c
7219 if test "$?" != 0; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7221$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7222 else
7223 AR="$AR $plugin_option"
7224 fi
7225 rm -f conftest.*
a4966cd9
L
7226 fi
7227fi
7357c5b6 7228test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7229
7230
7231
20e95c23 7232
d7040cdb 7233
d7040cdb
SE
7234
7235
7236
7237
7238
7239
7357c5b6
AM
7240if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7245if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 7246 $as_echo_n "(cached) " >&6
7357c5b6
AM
7247else
7248 if test -n "$STRIP"; then
7249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
81ecdfbb 7256 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7260 break 2
ce2cded5 7261 fi
7357c5b6 7262done
81ecdfbb
RW
7263 done
7264IFS=$as_save_IFS
d7040cdb 7265
7357c5b6
AM
7266fi
7267fi
7268STRIP=$ac_cv_prog_STRIP
7269if test -n "$STRIP"; then
81ecdfbb
RW
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7271$as_echo "$STRIP" >&6; }
7357c5b6 7272else
81ecdfbb
RW
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
7357c5b6
AM
7275fi
7276
81ecdfbb 7277
7357c5b6
AM
7278fi
7279if test -z "$ac_cv_prog_STRIP"; then
7280 ac_ct_STRIP=$STRIP
7281 # Extract the first word of "strip", so it can be a program name with args.
7282set dummy strip; ac_word=$2
81ecdfbb
RW
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7285if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 7286 $as_echo_n "(cached) " >&6
7357c5b6
AM
7287else
7288 if test -n "$ac_ct_STRIP"; then
7289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
81ecdfbb 7296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7298 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7300 break 2
ce2cded5 7301 fi
7357c5b6 7302done
81ecdfbb
RW
7303 done
7304IFS=$as_save_IFS
d7040cdb 7305
7357c5b6
AM
7306fi
7307fi
7308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7309if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7311$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7312else
81ecdfbb
RW
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7357c5b6 7315fi
d7040cdb 7316
81ecdfbb
RW
7317 if test "x$ac_ct_STRIP" = x; then
7318 STRIP=":"
7319 else
7320 case $cross_compiling:$ac_tool_warned in
7321yes:)
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324ac_tool_warned=yes ;;
7325esac
7326 STRIP=$ac_ct_STRIP
7327 fi
7357c5b6
AM
7328else
7329 STRIP="$ac_cv_prog_STRIP"
7330fi
d7040cdb 7331
7357c5b6 7332test -z "$STRIP" && STRIP=:
d7040cdb 7333
d7040cdb
SE
7334
7335
7336
d7040cdb 7337
7357c5b6
AM
7338
7339if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7344if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 7345 $as_echo_n "(cached) " >&6
ce2cded5 7346else
7357c5b6
AM
7347 if test -n "$RANLIB"; then
7348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
ce2cded5 7352do
7357c5b6
AM
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
81ecdfbb 7355 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7359 break 2
ce2cded5 7360 fi
7357c5b6 7361done
81ecdfbb
RW
7362 done
7363IFS=$as_save_IFS
7357c5b6 7364
ce2cded5 7365fi
7357c5b6
AM
7366fi
7367RANLIB=$ac_cv_prog_RANLIB
7368if test -n "$RANLIB"; then
81ecdfbb
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7370$as_echo "$RANLIB" >&6; }
ce2cded5 7371else
81ecdfbb
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
ce2cded5 7374fi
d7040cdb 7375
81ecdfbb 7376
7357c5b6
AM
7377fi
7378if test -z "$ac_cv_prog_RANLIB"; then
7379 ac_ct_RANLIB=$RANLIB
7380 # Extract the first word of "ranlib", so it can be a program name with args.
7381set dummy ranlib; ac_word=$2
81ecdfbb
RW
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 7385 $as_echo_n "(cached) " >&6
ce2cded5 7386else
7357c5b6
AM
7387 if test -n "$ac_ct_RANLIB"; then
7388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
81ecdfbb 7395 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7397 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7399 break 2
7400 fi
7401done
81ecdfbb
RW
7402 done
7403IFS=$as_save_IFS
7357c5b6 7404
ce2cded5 7405fi
7357c5b6
AM
7406fi
7407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7410$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7411else
81ecdfbb
RW
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
ce2cded5 7414fi
d7040cdb 7415
81ecdfbb
RW
7416 if test "x$ac_ct_RANLIB" = x; then
7417 RANLIB=":"
7418 else
7419 case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425 RANLIB=$ac_ct_RANLIB
7426 fi
7357c5b6
AM
7427else
7428 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7429fi
d7040cdb 7430
7357c5b6 7431test -z "$RANLIB" && RANLIB=:
a4966cd9
L
7432if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7433 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7434 RANLIB="$RANLIB $plugin_option"
7435 fi
7436fi
d7040cdb 7437
7357c5b6
AM
7438
7439
7440
7441
7442
7443# Determine commands to create old-style static archives.
b214d478 7444old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7445old_postinstall_cmds='chmod 644 $oldlib'
7446old_postuninstall_cmds=
7447
7448if test -n "$RANLIB"; then
7449 case $host_os in
7450 openbsd*)
7451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7452 ;;
7453 *)
7454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7455 ;;
7456 esac
7457 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7458fi
7357c5b6 7459
3725885a
RW
7460case $host_os in
7461 darwin*)
7462 lock_old_archive_extraction=yes ;;
7463 *)
7464 lock_old_archive_extraction=no ;;
7465esac
7466
7467
7468
7469
7470
7471
7357c5b6
AM
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505# If no C compiler was specified, use CC.
7506LTCC=${LTCC-"$CC"}
7507
7508# If no C compiler flags were specified, use CFLAGS.
7509LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7510
7511# Allow CC to be a program name with arguments.
7512compiler=$CC
7513
7514
7515# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7517$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7518if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 7519 $as_echo_n "(cached) " >&6
ce2cded5 7520else
d7040cdb 7521
7357c5b6
AM
7522# These are sane defaults that work on at least a few old systems.
7523# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7524
7357c5b6
AM
7525# Character class describing NM global symbol codes.
7526symcode='[BCDEGRST]'
7527
7528# Regexp to match symbols that can be accessed directly from C.
7529sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7530
7531# Define system-specific variables.
7532case $host_os in
7533aix*)
7534 symcode='[BCDT]'
7535 ;;
b214d478 7536cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7537 symcode='[ABCDGISTW]'
7538 ;;
7539hpux*)
7540 if test "$host_cpu" = ia64; then
7541 symcode='[ABCDEGRST]'
ce2cded5 7542 fi
7357c5b6
AM
7543 ;;
7544irix* | nonstopux*)
7545 symcode='[BCDEGRST]'
7546 ;;
7547osf*)
7548 symcode='[BCDEGQRST]'
7549 ;;
7550solaris*)
7551 symcode='[BDRT]'
7552 ;;
7553sco3.2v5*)
7554 symcode='[DT]'
7555 ;;
7556sysv4.2uw2*)
7557 symcode='[DT]'
7558 ;;
7559sysv5* | sco5v6* | unixware* | OpenUNIX*)
7560 symcode='[ABDT]'
7561 ;;
7562sysv4)
7563 symcode='[DFNSTU]'
7564 ;;
7565esac
d7040cdb 7566
7357c5b6
AM
7567# If we're using GNU nm, then use its standard symbol codes.
7568case `$NM -V 2>&1` in
7569*GNU* | *'with BFD'*)
7570 symcode='[ABCDGIRSTW]' ;;
7571esac
d7040cdb 7572
7357c5b6
AM
7573# Transform an extracted symbol line into a proper C declaration.
7574# Some systems (esp. on ia64) link data and code symbols differently,
7575# so use this general approach.
7576lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7577
7578# Transform an extracted symbol line into symbol name and symbol address
7579lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7580lt_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
7581
7582# Handle CRLF in mingw tool chain
7583opt_cr=
7584case $build_os in
7585mingw*)
7586 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7587 ;;
7588esac
d7040cdb 7589
7357c5b6
AM
7590# Try without a prefix underscore, then with it.
7591for ac_symprfx in "" "_"; do
d7040cdb 7592
7357c5b6
AM
7593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7594 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7595
7357c5b6
AM
7596 # Write the raw and C identifiers.
7597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7598 # Fake it for dumpbin and say T for any non-static function
7599 # and D for any global variable.
7600 # Also find C++ and __fastcall symbols from MSVC++,
7601 # which start with @ or ?.
7602 lt_cv_sys_global_symbol_pipe="$AWK '"\
7603" {last_section=section; section=\$ 3};"\
7604" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7605" \$ 0!~/External *\|/{next};"\
7606" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7607" {if(hide[section]) next};"\
7608" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7609" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7610" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7611" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7612" ' prfx=^$ac_symprfx"
7613 else
7614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7615 fi
d7040cdb 7616
7357c5b6
AM
7617 # Check to see that the pipe works correctly.
7618 pipe_works=no
d7040cdb 7619
7357c5b6
AM
7620 rm -f conftest*
7621 cat > conftest.$ac_ext <<_LT_EOF
7622#ifdef __cplusplus
7623extern "C" {
7624#endif
7625char nm_test_var;
7626void nm_test_func(void);
7627void nm_test_func(void){}
7628#ifdef __cplusplus
20e95c23 7629}
7357c5b6
AM
7630#endif
7631int main(){nm_test_var='a';nm_test_func();return(0);}
7632_LT_EOF
7633
81ecdfbb 7634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7635 (eval $ac_compile) 2>&5
20e95c23 7636 ac_status=$?
81ecdfbb
RW
7637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638 test $ac_status = 0; }; then
7357c5b6
AM
7639 # Now try to grab the symbols.
7640 nlist=conftest.nm
3725885a
RW
7641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7642 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7643 ac_status=$?
81ecdfbb
RW
7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7646 # Try sorting and uniquifying the output.
7647 if sort "$nlist" | uniq > "$nlist"T; then
7648 mv -f "$nlist"T "$nlist"
7649 else
7650 rm -f "$nlist"T
7651 fi
d7040cdb 7652
7357c5b6
AM
7653 # Make sure that we snagged all the symbols we need.
7654 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7655 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7656 cat <<_LT_EOF > conftest.$ac_ext
7657#ifdef __cplusplus
7658extern "C" {
7659#endif
ce2cded5 7660
7357c5b6
AM
7661_LT_EOF
7662 # Now generate the symbol file.
7663 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7664
7357c5b6 7665 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7666
7357c5b6
AM
7667/* The mapping between symbol names and symbols. */
7668const struct {
7669 const char *name;
7670 void *address;
7671}
7672lt__PROGRAM__LTX_preloaded_symbols[] =
7673{
7674 { "@PROGRAM@", (void *) 0 },
7675_LT_EOF
7676 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7677 cat <<\_LT_EOF >> conftest.$ac_ext
7678 {0, (void *) 0}
7679};
d7040cdb 7680
7357c5b6
AM
7681/* This works around a problem in FreeBSD linker */
7682#ifdef FREEBSD_WORKAROUND
7683static const void *lt_preloaded_setup() {
7684 return lt__PROGRAM__LTX_preloaded_symbols;
7685}
ce2cded5 7686#endif
42ecbf5e 7687
7357c5b6 7688#ifdef __cplusplus
ce2cded5 7689}
7357c5b6
AM
7690#endif
7691_LT_EOF
7692 # Now try linking the two files.
7693 mv conftest.$ac_objext conftstm.$ac_objext
7694 lt_save_LIBS="$LIBS"
7695 lt_save_CFLAGS="$CFLAGS"
7696 LIBS="conftstm.$ac_objext"
7697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7699 (eval $ac_link) 2>&5
7700 ac_status=$?
81ecdfbb
RW
7701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7702 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7703 pipe_works=yes
7704 fi
7705 LIBS="$lt_save_LIBS"
7706 CFLAGS="$lt_save_CFLAGS"
7707 else
7708 echo "cannot find nm_test_func in $nlist" >&5
7709 fi
7710 else
7711 echo "cannot find nm_test_var in $nlist" >&5
7712 fi
7713 else
7714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7715 fi
7716 else
7717 echo "$progname: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7719 fi
b214d478 7720 rm -rf conftest* conftst*
7357c5b6
AM
7721
7722 # Do not use the global_symbol_pipe unless it works.
7723 if test "$pipe_works" = yes; then
7724 break
7725 else
7726 lt_cv_sys_global_symbol_pipe=
7727 fi
7728done
42ecbf5e 7729
ce2cded5 7730fi
7357c5b6
AM
7731
7732if test -z "$lt_cv_sys_global_symbol_pipe"; then
7733 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7734fi
7357c5b6 7735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7737$as_echo "failed" >&6; }
7357c5b6 7738else
81ecdfbb
RW
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740$as_echo "ok" >&6; }
ce2cded5 7741fi
e5a52504 7742
d7040cdb 7743
e5a52504 7744
d7040cdb 7745
d7040cdb 7746
d7040cdb 7747
d7040cdb 7748
d7040cdb 7749
d7040cdb 7750
d7040cdb 7751
d7040cdb 7752
d7040cdb 7753
7357c5b6
AM
7754
7755
7756
b214d478
SE
7757
7758
7759
7760
7761
7357c5b6
AM
7762
7763
81ecdfbb
RW
7764# Check whether --enable-libtool-lock was given.
7765if test "${enable_libtool_lock+set}" = set; then :
7766 enableval=$enable_libtool_lock;
7767fi
7357c5b6 7768
7357c5b6
AM
7769test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7770
7771# Some flags need to be propagated to the compiler or linker for good
7772# libtool support.
7773case $host in
7774ia64-*-hpux*)
7775 # Find out which ABI we are using.
7776 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
81ecdfbb
RW
7780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7357c5b6
AM
7782 case `/usr/bin/file conftest.$ac_objext` in
7783 *ELF-32*)
7784 HPUX_IA64_MODE="32"
7785 ;;
7786 *ELF-64*)
7787 HPUX_IA64_MODE="64"
7788 ;;
7789 esac
7790 fi
7791 rm -rf conftest*
7792 ;;
7793*-*-irix6*)
7794 # Find out which ABI we are using.
3725885a 7795 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7797 (eval $ac_compile) 2>&5
7798 ac_status=$?
81ecdfbb
RW
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }; then
7357c5b6
AM
7801 if test "$lt_cv_prog_gnu_ld" = yes; then
7802 case `/usr/bin/file conftest.$ac_objext` in
7803 *32-bit*)
7804 LD="${LD-ld} -melf32bsmip"
7805 ;;
7806 *N32*)
7807 LD="${LD-ld} -melf32bmipn32"
7808 ;;
7809 *64-bit*)
7810 LD="${LD-ld} -melf64bmip"
7811 ;;
7812 esac
7813 else
7814 case `/usr/bin/file conftest.$ac_objext` in
7815 *32-bit*)
7816 LD="${LD-ld} -32"
7817 ;;
7818 *N32*)
7819 LD="${LD-ld} -n32"
7820 ;;
7821 *64-bit*)
7822 LD="${LD-ld} -64"
7823 ;;
7824 esac
7825 fi
7826 fi
7827 rm -rf conftest*
7828 ;;
7829
cc9afea3 7830x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7831s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7832 # Find out which ABI we are using.
7833 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7835 (eval $ac_compile) 2>&5
7836 ac_status=$?
81ecdfbb
RW
7837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; }; then
7357c5b6
AM
7839 case `/usr/bin/file conftest.o` in
7840 *32-bit*)
7841 case $host in
7842 x86_64-*kfreebsd*-gnu)
7843 LD="${LD-ld} -m elf_i386_fbsd"
7844 ;;
7845 x86_64-*linux*)
6d2920c8
L
7846 case `/usr/bin/file conftest.o` in
7847 *x86-64*)
7848 LD="${LD-ld} -m elf32_x86_64"
7849 ;;
7850 *)
7851 LD="${LD-ld} -m elf_i386"
7852 ;;
7853 esac
7357c5b6 7854 ;;
cc9afea3
AM
7855 powerpc64le-*linux*)
7856 LD="${LD-ld} -m elf32lppclinux"
7857 ;;
7858 powerpc64-*linux*)
7357c5b6
AM
7859 LD="${LD-ld} -m elf32ppclinux"
7860 ;;
7861 s390x-*linux*)
7862 LD="${LD-ld} -m elf_s390"
7863 ;;
7864 sparc64-*linux*)
7865 LD="${LD-ld} -m elf32_sparc"
7866 ;;
7867 esac
7868 ;;
7869 *64-bit*)
7870 case $host in
7871 x86_64-*kfreebsd*-gnu)
7872 LD="${LD-ld} -m elf_x86_64_fbsd"
7873 ;;
7874 x86_64-*linux*)
7875 LD="${LD-ld} -m elf_x86_64"
7876 ;;
cc9afea3
AM
7877 powerpcle-*linux*)
7878 LD="${LD-ld} -m elf64lppc"
7879 ;;
7880 powerpc-*linux*)
7357c5b6
AM
7881 LD="${LD-ld} -m elf64ppc"
7882 ;;
7883 s390*-*linux*|s390*-*tpf*)
7884 LD="${LD-ld} -m elf64_s390"
7885 ;;
7886 sparc*-*linux*)
7887 LD="${LD-ld} -m elf64_sparc"
7888 ;;
7889 esac
7890 ;;
7891 esac
7892 fi
7893 rm -rf conftest*
7894 ;;
7895
7896*-*-sco3.2v5*)
7897 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7898 SAVE_CFLAGS="$CFLAGS"
7899 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7901$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7902if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7903 $as_echo_n "(cached) " >&6
ce2cded5 7904else
7357c5b6
AM
7905 ac_ext=c
7906ac_cpp='$CPP $CPPFLAGS'
7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
81ecdfbb 7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7912/* end confdefs.h. */
d7040cdb 7913
7357c5b6
AM
7914int
7915main ()
7916{
7917
7918 ;
7919 return 0;
7920}
ce2cded5 7921_ACEOF
81ecdfbb 7922if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7923 lt_cv_cc_needs_belf=yes
ce2cded5 7924else
81ecdfbb 7925 lt_cv_cc_needs_belf=no
ce2cded5 7926fi
81ecdfbb
RW
7927rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7929 ac_ext=c
7930ac_cpp='$CPP $CPPFLAGS'
7931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7934
b214d478 7935fi
81ecdfbb
RW
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7937$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7940 CFLAGS="$SAVE_CFLAGS"
7941 fi
7942 ;;
7943sparc*-*solaris*)
7944 # Find out which ABI we are using.
7945 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7947 (eval $ac_compile) 2>&5
7948 ac_status=$?
81ecdfbb
RW
7949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950 test $ac_status = 0; }; then
b214d478
SE
7951 case `/usr/bin/file conftest.o` in
7952 *64-bit*)
7953 case $lt_cv_prog_gnu_ld in
7954 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7955 *)
7956 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7957 LD="${LD-ld} -64"
7958 fi
7959 ;;
7960 esac
7961 ;;
7962 esac
7963 fi
7964 rm -rf conftest*
7965 ;;
7966esac
7967
7968need_locks="$enable_libtool_lock"
7969
7970
7971 case $host_os in
7972 rhapsody* | darwin*)
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7975set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7978if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7979 $as_echo_n "(cached) " >&6
b214d478
SE
7980else
7981 if test -n "$DSYMUTIL"; then
7982 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7983else
7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
81ecdfbb 7989 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7991 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7993 break 2
7994 fi
7995done
81ecdfbb
RW
7996 done
7997IFS=$as_save_IFS
b214d478
SE
7998
7999fi
8000fi
8001DSYMUTIL=$ac_cv_prog_DSYMUTIL
8002if test -n "$DSYMUTIL"; then
81ecdfbb
RW
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8004$as_echo "$DSYMUTIL" >&6; }
b214d478 8005else
81ecdfbb
RW
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007$as_echo "no" >&6; }
b214d478
SE
8008fi
8009
81ecdfbb 8010
b214d478
SE
8011fi
8012if test -z "$ac_cv_prog_DSYMUTIL"; then
8013 ac_ct_DSYMUTIL=$DSYMUTIL
8014 # Extract the first word of "dsymutil", so it can be a program name with args.
8015set dummy dsymutil; ac_word=$2
81ecdfbb
RW
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8018if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 8019 $as_echo_n "(cached) " >&6
b214d478
SE
8020else
8021 if test -n "$ac_ct_DSYMUTIL"; then
8022 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8023else
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
81ecdfbb 8029 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8031 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8033 break 2
8034 fi
8035done
81ecdfbb
RW
8036 done
8037IFS=$as_save_IFS
b214d478 8038
b214d478
SE
8039fi
8040fi
8041ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8042if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8044$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8045else
81ecdfbb
RW
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047$as_echo "no" >&6; }
b214d478
SE
8048fi
8049
81ecdfbb
RW
8050 if test "x$ac_ct_DSYMUTIL" = x; then
8051 DSYMUTIL=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054yes:)
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057ac_tool_warned=yes ;;
8058esac
8059 DSYMUTIL=$ac_ct_DSYMUTIL
8060 fi
b214d478
SE
8061else
8062 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8063fi
8064
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8067set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8070if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 8071 $as_echo_n "(cached) " >&6
b214d478
SE
8072else
8073 if test -n "$NMEDIT"; then
8074 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
81ecdfbb 8081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8083 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8085 break 2
8086 fi
8087done
81ecdfbb
RW
8088 done
8089IFS=$as_save_IFS
b214d478
SE
8090
8091fi
8092fi
8093NMEDIT=$ac_cv_prog_NMEDIT
8094if test -n "$NMEDIT"; then
81ecdfbb
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8096$as_echo "$NMEDIT" >&6; }
b214d478 8097else
81ecdfbb
RW
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
b214d478
SE
8100fi
8101
81ecdfbb 8102
b214d478
SE
8103fi
8104if test -z "$ac_cv_prog_NMEDIT"; then
8105 ac_ct_NMEDIT=$NMEDIT
8106 # Extract the first word of "nmedit", so it can be a program name with args.
8107set dummy nmedit; ac_word=$2
81ecdfbb
RW
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8110if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 8111 $as_echo_n "(cached) " >&6
b214d478
SE
8112else
8113 if test -n "$ac_ct_NMEDIT"; then
8114 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
81ecdfbb 8121 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8123 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8125 break 2
8126 fi
8127done
81ecdfbb
RW
8128 done
8129IFS=$as_save_IFS
b214d478 8130
b214d478
SE
8131fi
8132fi
8133ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8134if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8136$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8137else
81ecdfbb
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
b214d478
SE
8140fi
8141
81ecdfbb
RW
8142 if test "x$ac_ct_NMEDIT" = x; then
8143 NMEDIT=":"
8144 else
8145 case $cross_compiling:$ac_tool_warned in
8146yes:)
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149ac_tool_warned=yes ;;
8150esac
8151 NMEDIT=$ac_ct_NMEDIT
8152 fi
b214d478
SE
8153else
8154 NMEDIT="$ac_cv_prog_NMEDIT"
8155fi
8156
8157 if test -n "$ac_tool_prefix"; then
8158 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8159set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8162if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8163 $as_echo_n "(cached) " >&6
b214d478
SE
8164else
8165 if test -n "$LIPO"; then
8166 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
81ecdfbb 8173 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8175 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8177 break 2
8178 fi
8179done
81ecdfbb
RW
8180 done
8181IFS=$as_save_IFS
b214d478
SE
8182
8183fi
8184fi
8185LIPO=$ac_cv_prog_LIPO
8186if test -n "$LIPO"; then
81ecdfbb
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8188$as_echo "$LIPO" >&6; }
b214d478 8189else
81ecdfbb
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
b214d478
SE
8192fi
8193
81ecdfbb 8194
b214d478
SE
8195fi
8196if test -z "$ac_cv_prog_LIPO"; then
8197 ac_ct_LIPO=$LIPO
8198 # Extract the first word of "lipo", so it can be a program name with args.
8199set dummy lipo; ac_word=$2
81ecdfbb
RW
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8202if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 8203 $as_echo_n "(cached) " >&6
b214d478
SE
8204else
8205 if test -n "$ac_ct_LIPO"; then
8206 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
81ecdfbb 8213 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8215 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8217 break 2
8218 fi
8219done
81ecdfbb
RW
8220 done
8221IFS=$as_save_IFS
b214d478 8222
b214d478
SE
8223fi
8224fi
8225ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8226if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8228$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8229else
81ecdfbb
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
b214d478
SE
8232fi
8233
81ecdfbb
RW
8234 if test "x$ac_ct_LIPO" = x; then
8235 LIPO=":"
8236 else
8237 case $cross_compiling:$ac_tool_warned in
8238yes:)
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8241ac_tool_warned=yes ;;
8242esac
8243 LIPO=$ac_ct_LIPO
8244 fi
b214d478
SE
8245else
8246 LIPO="$ac_cv_prog_LIPO"
8247fi
8248
8249 if test -n "$ac_tool_prefix"; then
8250 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8251set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8254if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 8255 $as_echo_n "(cached) " >&6
b214d478
SE
8256else
8257 if test -n "$OTOOL"; then
8258 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
81ecdfbb 8265 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8267 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8269 break 2
8270 fi
8271done
81ecdfbb
RW
8272 done
8273IFS=$as_save_IFS
b214d478
SE
8274
8275fi
8276fi
8277OTOOL=$ac_cv_prog_OTOOL
8278if test -n "$OTOOL"; then
81ecdfbb
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8280$as_echo "$OTOOL" >&6; }
b214d478 8281else
81ecdfbb
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
b214d478
SE
8284fi
8285
81ecdfbb 8286
b214d478
SE
8287fi
8288if test -z "$ac_cv_prog_OTOOL"; then
8289 ac_ct_OTOOL=$OTOOL
8290 # Extract the first word of "otool", so it can be a program name with args.
8291set dummy otool; ac_word=$2
81ecdfbb
RW
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8294if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 8295 $as_echo_n "(cached) " >&6
b214d478
SE
8296else
8297 if test -n "$ac_ct_OTOOL"; then
8298 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
81ecdfbb 8305 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8307 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8309 break 2
8310 fi
8311done
81ecdfbb
RW
8312 done
8313IFS=$as_save_IFS
b214d478 8314
b214d478
SE
8315fi
8316fi
8317ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8318if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8320$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8321else
81ecdfbb
RW
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
b214d478
SE
8324fi
8325
81ecdfbb
RW
8326 if test "x$ac_ct_OTOOL" = x; then
8327 OTOOL=":"
8328 else
8329 case $cross_compiling:$ac_tool_warned in
8330yes:)
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8333ac_tool_warned=yes ;;
8334esac
8335 OTOOL=$ac_ct_OTOOL
8336 fi
b214d478
SE
8337else
8338 OTOOL="$ac_cv_prog_OTOOL"
8339fi
8340
8341 if test -n "$ac_tool_prefix"; then
8342 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8343set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8346if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 8347 $as_echo_n "(cached) " >&6
b214d478
SE
8348else
8349 if test -n "$OTOOL64"; then
8350 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
81ecdfbb 8357 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8359 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8361 break 2
8362 fi
8363done
81ecdfbb
RW
8364 done
8365IFS=$as_save_IFS
b214d478
SE
8366
8367fi
8368fi
8369OTOOL64=$ac_cv_prog_OTOOL64
8370if test -n "$OTOOL64"; then
81ecdfbb
RW
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8372$as_echo "$OTOOL64" >&6; }
b214d478 8373else
81ecdfbb
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
b214d478
SE
8376fi
8377
81ecdfbb 8378
b214d478
SE
8379fi
8380if test -z "$ac_cv_prog_OTOOL64"; then
8381 ac_ct_OTOOL64=$OTOOL64
8382 # Extract the first word of "otool64", so it can be a program name with args.
8383set dummy otool64; ac_word=$2
81ecdfbb
RW
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8386if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 8387 $as_echo_n "(cached) " >&6
b214d478
SE
8388else
8389 if test -n "$ac_ct_OTOOL64"; then
8390 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8391else
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
81ecdfbb 8397 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8399 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8401 break 2
8402 fi
8403done
81ecdfbb
RW
8404 done
8405IFS=$as_save_IFS
b214d478 8406
b214d478
SE
8407fi
8408fi
8409ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8410if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8412$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8413else
81ecdfbb
RW
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
b214d478
SE
8416fi
8417
81ecdfbb
RW
8418 if test "x$ac_ct_OTOOL64" = x; then
8419 OTOOL64=":"
8420 else
8421 case $cross_compiling:$ac_tool_warned in
8422yes:)
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425ac_tool_warned=yes ;;
8426esac
8427 OTOOL64=$ac_ct_OTOOL64
8428 fi
b214d478
SE
8429else
8430 OTOOL64="$ac_cv_prog_OTOOL64"
8431fi
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
81ecdfbb
RW
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8460$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8461if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 8462 $as_echo_n "(cached) " >&6
b214d478
SE
8463else
8464 lt_cv_apple_cc_single_mod=no
8465 if test -z "${LT_MULTI_MODULE}"; then
8466 # By default we will add the -single_module flag. You can override
8467 # by either setting the environment variable LT_MULTI_MODULE
8468 # non-empty at configure time, or by adding -multi_module to the
8469 # link flags.
8470 rm -rf libconftest.dylib*
8471 echo "int foo(void){return 1;}" > conftest.c
8472 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8473-dynamiclib -Wl,-single_module conftest.c" >&5
8474 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8475 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8476 _lt_result=$?
8477 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8478 lt_cv_apple_cc_single_mod=yes
8479 else
8480 cat conftest.err >&5
8481 fi
8482 rm -rf libconftest.dylib*
8483 rm -f conftest.*
8484 fi
8485fi
81ecdfbb
RW
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8487$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8489$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8490if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 8491 $as_echo_n "(cached) " >&6
b214d478
SE
8492else
8493 lt_cv_ld_exported_symbols_list=no
8494 save_LDFLAGS=$LDFLAGS
8495 echo "_main" > conftest.sym
8496 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8498/* end confdefs.h. */
8499
8500int
8501main ()
8502{
8503
8504 ;
8505 return 0;
8506}
8507_ACEOF
81ecdfbb 8508if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8509 lt_cv_ld_exported_symbols_list=yes
8510else
81ecdfbb 8511 lt_cv_ld_exported_symbols_list=no
b214d478 8512fi
81ecdfbb
RW
8513rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8515 LDFLAGS="$save_LDFLAGS"
8516
8517fi
81ecdfbb
RW
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8519$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8521$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8522if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
8523 $as_echo_n "(cached) " >&6
8524else
8525 lt_cv_ld_force_load=no
8526 cat > conftest.c << _LT_EOF
8527int forced_loaded() { return 2;}
8528_LT_EOF
8529 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8530 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8531 echo "$AR cru libconftest.a conftest.o" >&5
8532 $AR cru libconftest.a conftest.o 2>&5
8533 cat > conftest.c << _LT_EOF
8534int main() { return 0;}
8535_LT_EOF
8536 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8537 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8538 _lt_result=$?
8539 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8540 lt_cv_ld_force_load=yes
8541 else
8542 cat conftest.err >&5
8543 fi
8544 rm -f conftest.err libconftest.a conftest conftest.c
8545 rm -rf conftest.dSYM
8546
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8549$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8550 case $host_os in
8551 rhapsody* | darwin1.[012])
8552 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8553 darwin1.*)
8554 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8555 darwin*) # darwin 5.x on
8556 # if running on 10.5 or later, the deployment target defaults
8557 # to the OS version, if on x86, and 10.4, the deployment
8558 # target defaults to 10.4. Don't you love it?
8559 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8560 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8561 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8562 10.[012][,.]*)
b214d478
SE
8563 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8564 10.*)
8565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8566 esac
8567 ;;
8568 esac
8569 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8570 _lt_dar_single_mod='$single_module'
8571 fi
8572 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8573 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8574 else
8575 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8576 fi
3725885a 8577 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8578 _lt_dsymutil='~$DSYMUTIL $lib || :'
8579 else
8580 _lt_dsymutil=
8581 fi
8582 ;;
8583 esac
8584
b214d478 8585for ac_header in dlfcn.h
81ecdfbb
RW
8586do :
8587 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8588"
d0ac1c44 8589if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b214d478 8590 cat >>confdefs.h <<_ACEOF
81ecdfbb 8591#define HAVE_DLFCN_H 1
b214d478
SE
8592_ACEOF
8593
8594fi
8595
8596done
8597
8598
8599
3725885a
RW
8600
8601
3cb62297 8602
b214d478
SE
8603# Set options
8604
8605
8606
8607 enable_dlopen=no
8608
8609
8610 enable_win32_dll=no
8611
8612
81ecdfbb
RW
8613 # Check whether --enable-shared was given.
8614if test "${enable_shared+set}" = set; then :
8615 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8616 case $enableval in
8617 yes) enable_shared=yes ;;
8618 no) enable_shared=no ;;
8619 *)
8620 enable_shared=no
8621 # Look at the argument we got. We use all the common list separators.
8622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8623 for pkg in $enableval; do
8624 IFS="$lt_save_ifs"
8625 if test "X$pkg" = "X$p"; then
8626 enable_shared=yes
8627 fi
8628 done
8629 IFS="$lt_save_ifs"
8630 ;;
8631 esac
8632else
8633 enable_shared=yes
81ecdfbb 8634fi
b214d478
SE
8635
8636
8637
8638
8639
8640
8641
8642
81ecdfbb
RW
8643
8644 # Check whether --enable-static was given.
8645if test "${enable_static+set}" = set; then :
8646 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8647 case $enableval in
8648 yes) enable_static=yes ;;
8649 no) enable_static=no ;;
8650 *)
8651 enable_static=no
8652 # Look at the argument we got. We use all the common list separators.
8653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8654 for pkg in $enableval; do
8655 IFS="$lt_save_ifs"
8656 if test "X$pkg" = "X$p"; then
8657 enable_static=yes
8658 fi
8659 done
8660 IFS="$lt_save_ifs"
8661 ;;
8662 esac
8663else
8664 enable_static=yes
81ecdfbb 8665fi
b214d478
SE
8666
8667
8668
8669
8670
8671
8672
8673
8674
81ecdfbb
RW
8675
8676# Check whether --with-pic was given.
8677if test "${with_pic+set}" = set; then :
8678 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8679else
8680 pic_mode=default
81ecdfbb
RW
8681fi
8682
b214d478
SE
8683
8684test -z "$pic_mode" && pic_mode=default
8685
8686
8687
8688
8689
8690
8691
81ecdfbb
RW
8692 # Check whether --enable-fast-install was given.
8693if test "${enable_fast_install+set}" = set; then :
8694 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8695 case $enableval in
8696 yes) enable_fast_install=yes ;;
8697 no) enable_fast_install=no ;;
8698 *)
8699 enable_fast_install=no
8700 # Look at the argument we got. We use all the common list separators.
8701 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8702 for pkg in $enableval; do
8703 IFS="$lt_save_ifs"
8704 if test "X$pkg" = "X$p"; then
8705 enable_fast_install=yes
8706 fi
8707 done
8708 IFS="$lt_save_ifs"
7357c5b6
AM
8709 ;;
8710 esac
b214d478
SE
8711else
8712 enable_fast_install=yes
81ecdfbb
RW
8713fi
8714
ce2cded5 8715
ce2cded5
L
8716
8717
ce2cded5 8718
42ecbf5e 8719
d7040cdb 8720
d7040cdb 8721
d7040cdb 8722
d7040cdb 8723
d7040cdb 8724
ce2cded5
L
8725# This can be used to rebuild libtool when needed
8726LIBTOOL_DEPS="$ltmain"
d7040cdb 8727
ce2cded5
L
8728# Always use our own libtool.
8729LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8730
d7040cdb 8731
d7040cdb 8732
d7040cdb 8733
d7040cdb 8734
d7040cdb 8735
d7040cdb 8736
d7040cdb 8737
d7040cdb 8738
d7040cdb 8739
d7040cdb 8740
d7040cdb 8741
d7040cdb 8742
d7040cdb 8743
d7040cdb 8744
d7040cdb 8745
d7040cdb
SE
8746
8747
8748
8749
8750
8751
8752
3725885a 8753
d7040cdb
SE
8754
8755
ce2cded5 8756test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8757
8758
8759
8760
8761
8762
d7040cdb
SE
8763
8764
8765
8766
8767
8768
8769
8770
ce2cded5
L
8771if test -n "${ZSH_VERSION+set}" ; then
8772 setopt NO_GLOB_SUBST
8773fi
d7040cdb 8774
81ecdfbb
RW
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8776$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8777if ${lt_cv_objdir+:} false; then :
81ecdfbb 8778 $as_echo_n "(cached) " >&6
ce2cded5
L
8779else
8780 rm -f .libs 2>/dev/null
8781mkdir .libs 2>/dev/null
8782if test -d .libs; then
8783 lt_cv_objdir=.libs
8784else
8785 # MS-DOS does not allow filenames that begin with a dot.
8786 lt_cv_objdir=_libs
8787fi
8788rmdir .libs 2>/dev/null
8789fi
81ecdfbb
RW
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8791$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8792objdir=$lt_cv_objdir
d7040cdb
SE
8793
8794
8795
8796
8797
ce2cded5
L
8798cat >>confdefs.h <<_ACEOF
8799#define LT_OBJDIR "$lt_cv_objdir/"
8800_ACEOF
d7040cdb
SE
8801
8802
8803
8804
ce2cded5
L
8805case $host_os in
8806aix3*)
8807 # AIX sometimes has problems with the GCC collect2 program. For some
8808 # reason, if we set the COLLECT_NAMES environment variable, the problems
8809 # vanish in a puff of smoke.
8810 if test "X${COLLECT_NAMES+set}" != Xset; then
8811 COLLECT_NAMES=
8812 export COLLECT_NAMES
8813 fi
8814 ;;
8815esac
d7040cdb 8816
ce2cded5
L
8817# Global variables:
8818ofile=libtool
8819can_build_shared=yes
d7040cdb 8820
ce2cded5
L
8821# All known linkers require a `.a' archive for static linking (except MSVC,
8822# which needs '.lib').
8823libext=a
d7040cdb 8824
ce2cded5 8825with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8826
ce2cded5
L
8827old_CC="$CC"
8828old_CFLAGS="$CFLAGS"
d7040cdb 8829
ce2cded5
L
8830# Set sane defaults for various variables
8831test -z "$CC" && CC=cc
8832test -z "$LTCC" && LTCC=$CC
8833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8834test -z "$LD" && LD=ld
8835test -z "$ac_objext" && ac_objext=o
d7040cdb 8836
ce2cded5
L
8837for cc_temp in $compiler""; do
8838 case $cc_temp in
8839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8841 \-*) ;;
8842 *) break;;
8843 esac
8844done
3725885a 8845cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8846
8847
ce2cded5
L
8848# Only perform the check for file, if the check method requires it
8849test -z "$MAGIC_CMD" && MAGIC_CMD=file
8850case $deplibs_check_method in
8851file_magic*)
8852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8854$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8855if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8856 $as_echo_n "(cached) " >&6
ce2cded5
L
8857else
8858 case $MAGIC_CMD in
8859[\\/*] | ?:[\\/]*)
8860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8861 ;;
8862*)
8863 lt_save_MAGIC_CMD="$MAGIC_CMD"
8864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8866 for ac_dir in $ac_dummy; do
8867 IFS="$lt_save_ifs"
8868 test -z "$ac_dir" && ac_dir=.
8869 if test -f $ac_dir/${ac_tool_prefix}file; then
8870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8871 if test -n "$file_magic_test_file"; then
8872 case $deplibs_check_method in
8873 "file_magic "*)
8874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8877 $EGREP "$file_magic_regex" > /dev/null; then
8878 :
8879 else
8880 cat <<_LT_EOF 1>&2
d7040cdb 8881
ce2cded5
L
8882*** Warning: the command libtool uses to detect shared libraries,
8883*** $file_magic_cmd, produces output that libtool cannot recognize.
8884*** The result is that libtool may fail to recognize shared libraries
8885*** as such. This will affect the creation of libtool libraries that
8886*** depend on shared libraries, but programs linked with such libtool
8887*** libraries will work regardless of this problem. Nevertheless, you
8888*** may want to report the problem to your system manager and/or to
8889*** bug-libtool@gnu.org
d7040cdb 8890
ce2cded5
L
8891_LT_EOF
8892 fi ;;
8893 esac
8894 fi
8895 break
8896 fi
8897 done
8898 IFS="$lt_save_ifs"
8899 MAGIC_CMD="$lt_save_MAGIC_CMD"
8900 ;;
8901esac
8902fi
d7040cdb 8903
ce2cded5
L
8904MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8905if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8907$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8908else
81ecdfbb
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
ce2cded5 8911fi
d7040cdb
SE
8912
8913
8914
8915
8916
ce2cded5
L
8917if test -z "$lt_cv_path_MAGIC_CMD"; then
8918 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8920$as_echo_n "checking for file... " >&6; }
d0ac1c44 8921if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8922 $as_echo_n "(cached) " >&6
ce2cded5
L
8923else
8924 case $MAGIC_CMD in
8925[\\/*] | ?:[\\/]*)
8926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8927 ;;
8928*)
8929 lt_save_MAGIC_CMD="$MAGIC_CMD"
8930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8932 for ac_dir in $ac_dummy; do
8933 IFS="$lt_save_ifs"
8934 test -z "$ac_dir" && ac_dir=.
8935 if test -f $ac_dir/file; then
8936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8937 if test -n "$file_magic_test_file"; then
8938 case $deplibs_check_method in
8939 "file_magic "*)
8940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8943 $EGREP "$file_magic_regex" > /dev/null; then
8944 :
8945 else
8946 cat <<_LT_EOF 1>&2
d7040cdb 8947
ce2cded5
L
8948*** Warning: the command libtool uses to detect shared libraries,
8949*** $file_magic_cmd, produces output that libtool cannot recognize.
8950*** The result is that libtool may fail to recognize shared libraries
8951*** as such. This will affect the creation of libtool libraries that
8952*** depend on shared libraries, but programs linked with such libtool
8953*** libraries will work regardless of this problem. Nevertheless, you
8954*** may want to report the problem to your system manager and/or to
8955*** bug-libtool@gnu.org
d7040cdb 8956
ce2cded5
L
8957_LT_EOF
8958 fi ;;
8959 esac
8960 fi
8961 break
8962 fi
8963 done
8964 IFS="$lt_save_ifs"
8965 MAGIC_CMD="$lt_save_MAGIC_CMD"
8966 ;;
8967esac
8968fi
d7040cdb 8969
ce2cded5
L
8970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8971if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8973$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8974else
81ecdfbb
RW
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
ce2cded5 8977fi
d7040cdb
SE
8978
8979
ce2cded5
L
8980 else
8981 MAGIC_CMD=:
8982 fi
8983fi
d7040cdb 8984
ce2cded5
L
8985 fi
8986 ;;
8987esac
d7040cdb 8988
ce2cded5 8989# Use C for the default configuration in the libtool script
d7040cdb 8990
ce2cded5
L
8991lt_save_CC="$CC"
8992ac_ext=c
8993ac_cpp='$CPP $CPPFLAGS'
8994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8996ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8997
8998
ce2cded5
L
8999# Source file extension for C test sources.
9000ac_ext=c
d7040cdb 9001
ce2cded5
L
9002# Object file extension for compiled C test sources.
9003objext=o
9004objext=$objext
d7040cdb 9005
ce2cded5
L
9006# Code to be used in simple compile tests
9007lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 9008
ce2cded5
L
9009# Code to be used in simple link tests
9010lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
9011
9012
9013
9014
9015
9016
9017
ce2cded5
L
9018# If no C compiler was specified, use CC.
9019LTCC=${LTCC-"$CC"}
d7040cdb 9020
ce2cded5
L
9021# If no C compiler flags were specified, use CFLAGS.
9022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 9023
ce2cded5
L
9024# Allow CC to be a program name with arguments.
9025compiler=$CC
d7040cdb 9026
ce2cded5
L
9027# Save the default compiler, since it gets overwritten when the other
9028# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9029compiler_DEFAULT=$CC
d7040cdb 9030
ce2cded5
L
9031# save warnings/boilerplate of simple test code
9032ac_outfile=conftest.$ac_objext
9033echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035_lt_compiler_boilerplate=`cat conftest.err`
9036$RM conftest*
d7040cdb 9037
ce2cded5
L
9038ac_outfile=conftest.$ac_objext
9039echo "$lt_simple_link_test_code" >conftest.$ac_ext
9040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9041_lt_linker_boilerplate=`cat conftest.err`
b214d478 9042$RM -r conftest*
d7040cdb
SE
9043
9044
ce2cded5
L
9045## CAVEAT EMPTOR:
9046## There is no encapsulation within the following macros, do not change
9047## the running order or otherwise move them around unless you know exactly
9048## what you are doing...
9049if test -n "$compiler"; then
d7040cdb 9050
ce2cded5 9051lt_prog_compiler_no_builtin_flag=
d7040cdb 9052
ce2cded5 9053if test "$GCC" = yes; then
3725885a
RW
9054 case $cc_basename in
9055 nvcc*)
9056 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9057 *)
9058 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9059 esac
d7040cdb 9060
81ecdfbb
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9062$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9063if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 9064 $as_echo_n "(cached) " >&6
ce2cded5
L
9065else
9066 lt_cv_prog_compiler_rtti_exceptions=no
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069 lt_compiler_flag="-fno-rtti -fno-exceptions"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 # The option is referenced via a variable to avoid confusing sed.
9075 lt_compile=`echo "$ac_compile" | $SED \
9076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078 -e 's:$: $lt_compiler_flag:'`
3725885a 9079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9080 (eval "$lt_compile" 2>conftest.err)
9081 ac_status=$?
9082 cat conftest.err >&5
3725885a 9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9084 if (exit $ac_status) && test -s "$ac_outfile"; then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings other than the usual output.
3725885a 9087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090 lt_cv_prog_compiler_rtti_exceptions=yes
9091 fi
9092 fi
9093 $RM conftest*
d7040cdb 9094
ce2cded5 9095fi
81ecdfbb
RW
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9097$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9098
ce2cded5
L
9099if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9100 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9101else
9102 :
9103fi
d7040cdb 9104
ce2cded5 9105fi
d7040cdb
SE
9106
9107
9108
9109
9110
9111
ce2cded5
L
9112 lt_prog_compiler_wl=
9113lt_prog_compiler_pic=
9114lt_prog_compiler_static=
d7040cdb 9115
81ecdfbb
RW
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9117$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9118
ce2cded5
L
9119 if test "$GCC" = yes; then
9120 lt_prog_compiler_wl='-Wl,'
9121 lt_prog_compiler_static='-static'
d7040cdb 9122
ce2cded5
L
9123 case $host_os in
9124 aix*)
9125 # All AIX code is PIC.
9126 if test "$host_cpu" = ia64; then
9127 # AIX 5 now supports IA64 processor
9128 lt_prog_compiler_static='-Bstatic'
9129 fi
52204357 9130 lt_prog_compiler_pic='-fPIC'
ce2cded5 9131 ;;
d7040cdb 9132
ce2cded5 9133 amigaos*)
b214d478
SE
9134 case $host_cpu in
9135 powerpc)
9136 # see comment about AmigaOS4 .so support
9137 lt_prog_compiler_pic='-fPIC'
9138 ;;
9139 m68k)
9140 # FIXME: we need at least 68020 code to build shared libraries, but
9141 # adding the `-m68020' flag to GCC prevents building anything better,
9142 # like `-m68040'.
9143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9144 ;;
9145 esac
ce2cded5 9146 ;;
d7040cdb 9147
ce2cded5
L
9148 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9149 # PIC is the default for these OSes.
9150 ;;
d7040cdb 9151
b214d478 9152 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9153 # This hack is so that the source file can tell whether it is being
9154 # built for inclusion in a dll (and should export symbols for example).
9155 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9156 # (--disable-auto-import) libraries
9157 lt_prog_compiler_pic='-DDLL_EXPORT'
9158 ;;
d7040cdb 9159
ce2cded5
L
9160 darwin* | rhapsody*)
9161 # PIC is the default on this platform
9162 # Common symbols not allowed in MH_DYLIB files
9163 lt_prog_compiler_pic='-fno-common'
9164 ;;
d7040cdb 9165
3725885a
RW
9166 haiku*)
9167 # PIC is the default for Haiku.
9168 # The "-static" flag exists, but is broken.
9169 lt_prog_compiler_static=
9170 ;;
9171
ce2cded5 9172 hpux*)
b214d478
SE
9173 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9174 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9175 # sets the default TLS model and affects inlining.
ce2cded5 9176 case $host_cpu in
b214d478 9177 hppa*64*)
ce2cded5
L
9178 # +Z the default
9179 ;;
9180 *)
9181 lt_prog_compiler_pic='-fPIC'
9182 ;;
9183 esac
9184 ;;
d7040cdb 9185
ce2cded5
L
9186 interix[3-9]*)
9187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9188 # Instead, we relocate shared libraries at runtime.
9189 ;;
d7040cdb 9190
ce2cded5
L
9191 msdosdjgpp*)
9192 # Just because we use GCC doesn't mean we suddenly get shared libraries
9193 # on systems that don't support them.
9194 lt_prog_compiler_can_build_shared=no
9195 enable_shared=no
9196 ;;
d7040cdb 9197
ce2cded5
L
9198 *nto* | *qnx*)
9199 # QNX uses GNU C++, but need to define -shared option too, otherwise
9200 # it will coredump.
9201 lt_prog_compiler_pic='-fPIC -shared'
9202 ;;
d7040cdb 9203
ce2cded5
L
9204 sysv4*MP*)
9205 if test -d /usr/nec; then
9206 lt_prog_compiler_pic=-Kconform_pic
9207 fi
9208 ;;
d7040cdb 9209
ce2cded5
L
9210 *)
9211 lt_prog_compiler_pic='-fPIC'
9212 ;;
9213 esac
3725885a
RW
9214
9215 case $cc_basename in
9216 nvcc*) # Cuda Compiler Driver 2.2
9217 lt_prog_compiler_wl='-Xlinker '
9218 lt_prog_compiler_pic='-Xcompiler -fPIC'
9219 ;;
9220 esac
ce2cded5
L
9221 else
9222 # PORTME Check for flag to pass linker flags through the system compiler.
9223 case $host_os in
9224 aix*)
9225 lt_prog_compiler_wl='-Wl,'
9226 if test "$host_cpu" = ia64; then
9227 # AIX 5 now supports IA64 processor
9228 lt_prog_compiler_static='-Bstatic'
9229 else
9230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9231 fi
9232 ;;
d7040cdb 9233
b214d478 9234 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9235 # This hack is so that the source file can tell whether it is being
9236 # built for inclusion in a dll (and should export symbols for example).
9237 lt_prog_compiler_pic='-DDLL_EXPORT'
9238 ;;
d7040cdb 9239
ce2cded5
L
9240 hpux9* | hpux10* | hpux11*)
9241 lt_prog_compiler_wl='-Wl,'
9242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9243 # not for PA HP-UX.
9244 case $host_cpu in
9245 hppa*64*|ia64*)
9246 # +Z the default
9247 ;;
9248 *)
9249 lt_prog_compiler_pic='+Z'
9250 ;;
9251 esac
9252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9253 lt_prog_compiler_static='${wl}-a ${wl}archive'
9254 ;;
d7040cdb 9255
ce2cded5
L
9256 irix5* | irix6* | nonstopux*)
9257 lt_prog_compiler_wl='-Wl,'
9258 # PIC (with -KPIC) is the default.
9259 lt_prog_compiler_static='-non_shared'
9260 ;;
d7040cdb 9261
58e24671 9262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9263 case $cc_basename in
b214d478
SE
9264 # old Intel for x86_64 which still supported -KPIC.
9265 ecc*)
ce2cded5
L
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-static'
9269 ;;
b214d478
SE
9270 # icc used to be incompatible with GCC.
9271 # ICC 10 doesn't accept -KPIC any more.
9272 icc* | ifort*)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fPIC'
9275 lt_prog_compiler_static='-static'
9276 ;;
9277 # Lahey Fortran 8.1.
9278 lf95*)
9279 lt_prog_compiler_wl='-Wl,'
9280 lt_prog_compiler_pic='--shared'
9281 lt_prog_compiler_static='--static'
9282 ;;
3725885a 9283 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9284 # Portland Group compilers (*not* the Pentium gcc compiler,
9285 # which looks to be a dead project)
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_pic='-fpic'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290 ccc*)
9291 lt_prog_compiler_wl='-Wl,'
9292 # All Alpha code is PIC.
9293 lt_prog_compiler_static='-non_shared'
9294 ;;
3725885a
RW
9295 xl* | bgxl* | bgf* | mpixl*)
9296 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_pic='-qpic'
9299 lt_prog_compiler_static='-qstaticlink'
9300 ;;
ce2cded5
L
9301 *)
9302 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9303 *Sun\ F* | *Sun*Fortran*)
9304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
3725885a 9307 lt_prog_compiler_wl=''
ce2cded5 9308 ;;
3725885a
RW
9309 *Sun\ C*)
9310 # Sun C 5.9
ce2cded5
L
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
3725885a 9313 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9314 ;;
9315 esac
9316 ;;
9317 esac
9318 ;;
d7040cdb 9319
ce2cded5
L
9320 newsos6)
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 ;;
d7040cdb 9324
ce2cded5
L
9325 *nto* | *qnx*)
9326 # QNX uses GNU C++, but need to define -shared option too, otherwise
9327 # it will coredump.
9328 lt_prog_compiler_pic='-fPIC -shared'
9329 ;;
d7040cdb 9330
ce2cded5
L
9331 osf3* | osf4* | osf5*)
9332 lt_prog_compiler_wl='-Wl,'
9333 # All OSF/1 code is PIC.
9334 lt_prog_compiler_static='-non_shared'
9335 ;;
d7040cdb 9336
ce2cded5
L
9337 rdos*)
9338 lt_prog_compiler_static='-non_shared'
9339 ;;
d7040cdb 9340
ce2cded5
L
9341 solaris*)
9342 lt_prog_compiler_pic='-KPIC'
9343 lt_prog_compiler_static='-Bstatic'
9344 case $cc_basename in
9345 f77* | f90* | f95*)
9346 lt_prog_compiler_wl='-Qoption ld ';;
9347 *)
9348 lt_prog_compiler_wl='-Wl,';;
9349 esac
9350 ;;
d7040cdb 9351
ce2cded5
L
9352 sunos4*)
9353 lt_prog_compiler_wl='-Qoption ld '
9354 lt_prog_compiler_pic='-PIC'
9355 lt_prog_compiler_static='-Bstatic'
9356 ;;
d7040cdb 9357
ce2cded5
L
9358 sysv4 | sysv4.2uw2* | sysv4.3*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 ;;
d7040cdb 9363
ce2cded5
L
9364 sysv4*MP*)
9365 if test -d /usr/nec ;then
9366 lt_prog_compiler_pic='-Kconform_pic'
9367 lt_prog_compiler_static='-Bstatic'
9368 fi
9369 ;;
d7040cdb 9370
ce2cded5
L
9371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_pic='-KPIC'
9374 lt_prog_compiler_static='-Bstatic'
9375 ;;
d7040cdb 9376
ce2cded5
L
9377 unicos*)
9378 lt_prog_compiler_wl='-Wl,'
9379 lt_prog_compiler_can_build_shared=no
9380 ;;
d7040cdb 9381
ce2cded5
L
9382 uts4*)
9383 lt_prog_compiler_pic='-pic'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
d7040cdb 9386
ce2cded5
L
9387 *)
9388 lt_prog_compiler_can_build_shared=no
9389 ;;
9390 esac
9391 fi
d7040cdb 9392
ce2cded5
L
9393case $host_os in
9394 # For platforms which do not support PIC, -DPIC is meaningless:
9395 *djgpp*)
9396 lt_prog_compiler_pic=
9397 ;;
9398 *)
9399 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9400 ;;
9401esac
81ecdfbb
RW
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9403$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9404
9405
9406
9407
9408
9409
ce2cded5
L
9410#
9411# Check to make sure the PIC flag actually works.
9412#
9413if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9415$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 9416if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 9417 $as_echo_n "(cached) " >&6
ce2cded5 9418else
b214d478 9419 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9420 ac_outfile=conftest.$ac_objext
9421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9423 # Insert the option either (1) after the last *FLAGS variable, or
9424 # (2) before a word containing "conftest.", or (3) at the end.
9425 # Note that $ac_compile itself does not contain backslashes and begins
9426 # with a dollar sign (not a hyphen), so the echo should work correctly.
9427 # The option is referenced via a variable to avoid confusing sed.
9428 lt_compile=`echo "$ac_compile" | $SED \
9429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431 -e 's:$: $lt_compiler_flag:'`
3725885a 9432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9433 (eval "$lt_compile" 2>conftest.err)
9434 ac_status=$?
9435 cat conftest.err >&5
3725885a 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9437 if (exit $ac_status) && test -s "$ac_outfile"; then
9438 # The compiler can only warn and ignore the option if not recognized
9439 # So say no if there are warnings other than the usual output.
3725885a 9440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9443 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9444 fi
9445 fi
9446 $RM conftest*
d7040cdb 9447
ce2cded5 9448fi
81ecdfbb
RW
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9450$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9451
b214d478 9452if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9453 case $lt_prog_compiler_pic in
9454 "" | " "*) ;;
9455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9456 esac
9457else
9458 lt_prog_compiler_pic=
9459 lt_prog_compiler_can_build_shared=no
9460fi
9461
9462fi
d7040cdb
SE
9463
9464
9465
9466
9467
9468
ce2cded5
L
9469#
9470# Check to make sure the static flag actually works.
9471#
9472wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9474$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 9475if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 9476 $as_echo_n "(cached) " >&6
ce2cded5 9477else
b214d478 9478 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9479 save_LDFLAGS="$LDFLAGS"
9480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9483 # The linker can only warn and ignore the option if not recognized
9484 # So say no if there are warnings
9485 if test -s conftest.err; then
9486 # Append any errors to the config.log.
9487 cat conftest.err 1>&5
3725885a 9488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9490 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9491 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9492 fi
9493 else
b214d478 9494 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9495 fi
9496 fi
b214d478 9497 $RM -r conftest*
ce2cded5 9498 LDFLAGS="$save_LDFLAGS"
d7040cdb 9499
ce2cded5 9500fi
81ecdfbb
RW
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9502$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9503
b214d478 9504if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9505 :
9506else
9507 lt_prog_compiler_static=
9508fi
d7040cdb
SE
9509
9510
9511
9512
9513
9514
9515
81ecdfbb
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9517$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9518if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9519 $as_echo_n "(cached) " >&6
ce2cded5
L
9520else
9521 lt_cv_prog_compiler_c_o=no
9522 $RM -r conftest 2>/dev/null
9523 mkdir conftest
9524 cd conftest
9525 mkdir out
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9527
ce2cded5
L
9528 lt_compiler_flag="-o out/conftest2.$ac_objext"
9529 # Insert the option either (1) after the last *FLAGS variable, or
9530 # (2) before a word containing "conftest.", or (3) at the end.
9531 # Note that $ac_compile itself does not contain backslashes and begins
9532 # with a dollar sign (not a hyphen), so the echo should work correctly.
9533 lt_compile=`echo "$ac_compile" | $SED \
9534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9536 -e 's:$: $lt_compiler_flag:'`
3725885a 9537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9538 (eval "$lt_compile" 2>out/conftest.err)
9539 ac_status=$?
9540 cat out/conftest.err >&5
3725885a 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9543 then
9544 # The compiler can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
3725885a 9546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_c_o=yes
9550 fi
9551 fi
9552 chmod u+w . 2>&5
9553 $RM conftest*
9554 # SGI C++ compiler will create directory out/ii_files/ for
9555 # template instantiation
9556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9557 $RM out/* && rmdir out
9558 cd ..
9559 $RM -r conftest
9560 $RM conftest*
d7040cdb 9561
ce2cded5 9562fi
81ecdfbb
RW
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9564$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9565
9566
9567
9568
9569
9570
81ecdfbb
RW
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9572$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9573if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9574 $as_echo_n "(cached) " >&6
ce2cded5
L
9575else
9576 lt_cv_prog_compiler_c_o=no
9577 $RM -r conftest 2>/dev/null
9578 mkdir conftest
9579 cd conftest
9580 mkdir out
9581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9582
ce2cded5
L
9583 lt_compiler_flag="-o out/conftest2.$ac_objext"
9584 # Insert the option either (1) after the last *FLAGS variable, or
9585 # (2) before a word containing "conftest.", or (3) at the end.
9586 # Note that $ac_compile itself does not contain backslashes and begins
9587 # with a dollar sign (not a hyphen), so the echo should work correctly.
9588 lt_compile=`echo "$ac_compile" | $SED \
9589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9591 -e 's:$: $lt_compiler_flag:'`
3725885a 9592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9593 (eval "$lt_compile" 2>out/conftest.err)
9594 ac_status=$?
9595 cat out/conftest.err >&5
3725885a 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9598 then
9599 # The compiler can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
3725885a 9601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9604 lt_cv_prog_compiler_c_o=yes
9605 fi
9606 fi
9607 chmod u+w . 2>&5
9608 $RM conftest*
9609 # SGI C++ compiler will create directory out/ii_files/ for
9610 # template instantiation
9611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9612 $RM out/* && rmdir out
9613 cd ..
9614 $RM -r conftest
9615 $RM conftest*
9616
9617fi
81ecdfbb
RW
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9619$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9620
9621
9622
9623
9624hard_links="nottested"
9625if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9626 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9628$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9629 hard_links=yes
9630 $RM conftest*
9631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9632 touch conftest.a
9633 ln conftest.a conftest.b 2>&5 || hard_links=no
9634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9636$as_echo "$hard_links" >&6; }
ce2cded5 9637 if test "$hard_links" = no; then
81ecdfbb
RW
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9639$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9640 need_locks=warn
d7040cdb 9641 fi
d7040cdb 9642else
ce2cded5 9643 need_locks=no
d7040cdb 9644fi
d7040cdb 9645
d7040cdb 9646
d7040cdb 9647
d7040cdb 9648
d7040cdb 9649
d7040cdb 9650
81ecdfbb
RW
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9652$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9653
ce2cded5
L
9654 runpath_var=
9655 allow_undefined_flag=
9656 always_export_symbols=no
9657 archive_cmds=
9658 archive_expsym_cmds=
9659 compiler_needs_object=no
9660 enable_shared_with_static_runtimes=no
9661 export_dynamic_flag_spec=
9662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9663 hardcode_automatic=no
9664 hardcode_direct=no
9665 hardcode_direct_absolute=no
9666 hardcode_libdir_flag_spec=
9667 hardcode_libdir_flag_spec_ld=
9668 hardcode_libdir_separator=
9669 hardcode_minus_L=no
9670 hardcode_shlibpath_var=unsupported
9671 inherit_rpath=no
9672 link_all_deplibs=unknown
9673 module_cmds=
9674 module_expsym_cmds=
9675 old_archive_from_new_cmds=
9676 old_archive_from_expsyms_cmds=
9677 thread_safe_flag_spec=
9678 whole_archive_flag_spec=
9679 # include_expsyms should be a list of space-separated symbols to be *always*
9680 # included in the symbol list
9681 include_expsyms=
9682 # exclude_expsyms can be an extended regexp of symbols to exclude
9683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9685 # as well as any symbol that contains `d'.
b214d478 9686 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9688 # platforms (ab)use it in PIC code, but their linkers get confused if
9689 # the symbol is explicitly referenced. Since portable code cannot
9690 # rely on this symbol name, it's probably fine to never include it in
9691 # preloaded symbol tables.
b214d478 9692 # Exclude shared library initialization/finalization symbols.
ce2cded5 9693 extract_expsyms_cmds=
d7040cdb 9694
ce2cded5 9695 case $host_os in
b214d478 9696 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9698 # When not using gcc, we currently assume that we are using
9699 # Microsoft Visual C++.
9700 if test "$GCC" != yes; then
9701 with_gnu_ld=no
9702 fi
d7040cdb 9703 ;;
ce2cded5
L
9704 interix*)
9705 # we just hope/assume this is gcc and not c89 (= MSVC++)
9706 with_gnu_ld=yes
9707 ;;
9708 openbsd*)
9709 with_gnu_ld=no
d7040cdb
SE
9710 ;;
9711 esac
d7040cdb 9712
ce2cded5 9713 ld_shlibs=yes
3725885a
RW
9714
9715 # On some targets, GNU ld is compatible enough with the native linker
9716 # that we're better off using the native interface for both.
9717 lt_use_gnu_ld_interface=no
ce2cded5 9718 if test "$with_gnu_ld" = yes; then
3725885a
RW
9719 case $host_os in
9720 aix*)
9721 # The AIX port of GNU ld has always aspired to compatibility
9722 # with the native linker. However, as the warning in the GNU ld
9723 # block says, versions before 2.19.5* couldn't really create working
9724 # shared libraries, regardless of the interface used.
9725 case `$LD -v 2>&1` in
9726 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9727 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9728 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9729 *)
9730 lt_use_gnu_ld_interface=yes
9731 ;;
9732 esac
9733 ;;
9734 *)
9735 lt_use_gnu_ld_interface=yes
9736 ;;
9737 esac
9738 fi
9739
9740 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9741 # If archive_cmds runs LD, not CC, wlarc should be empty
9742 wlarc='${wl}'
d7040cdb 9743
ce2cded5
L
9744 # Set some defaults for GNU ld with shared library support. These
9745 # are reset later if shared libraries are not supported. Putting them
9746 # here allows them to be overridden if necessary.
9747 runpath_var=LD_RUN_PATH
9748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9749 export_dynamic_flag_spec='${wl}--export-dynamic'
9750 # ancient GNU ld didn't support --whole-archive et. al.
9751 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9752 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9753 else
9754 whole_archive_flag_spec=
9755 fi
9756 supports_anon_versioning=no
9757 case `$LD -v 2>&1` in
3725885a 9758 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9762 *\ 2.11.*) ;; # other 2.11 versions
9763 *) supports_anon_versioning=yes ;;
9764 esac
d7040cdb 9765
ce2cded5
L
9766 # See if GNU ld supports shared libraries.
9767 case $host_os in
50e7d84b 9768 aix[3-9]*)
ce2cded5
L
9769 # On AIX/PPC, the GNU linker is very broken
9770 if test "$host_cpu" != ia64; then
9771 ld_shlibs=no
9772 cat <<_LT_EOF 1>&2
d7040cdb 9773
3725885a 9774*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9775*** to be unable to reliably create shared libraries on AIX.
9776*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9777*** really care for shared libraries, you may want to install binutils
9778*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9779*** You will then need to restart the configuration process.
d7040cdb 9780
ce2cded5
L
9781_LT_EOF
9782 fi
d7040cdb 9783 ;;
d7040cdb 9784
ce2cded5 9785 amigaos*)
b214d478
SE
9786 case $host_cpu in
9787 powerpc)
9788 # see comment about AmigaOS4 .so support
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds=''
9791 ;;
9792 m68k)
9793 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)'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_minus_L=yes
9796 ;;
9797 esac
ce2cded5 9798 ;;
d7040cdb 9799
ce2cded5
L
9800 beos*)
9801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9802 allow_undefined_flag=unsupported
9803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9804 # support --undefined. This deserves some investigation. FIXME
9805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806 else
9807 ld_shlibs=no
9808 fi
9809 ;;
d7040cdb 9810
b214d478 9811 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9812 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9813 # as there is no search path for DLLs.
9814 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9815 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9816 allow_undefined_flag=unsupported
9817 always_export_symbols=no
9818 enable_shared_with_static_runtimes=yes
9819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9820
9821 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9823 # If the export-symbols file already is a .def file (1st line
9824 # is EXPORTS), use it as is; otherwise, prepend...
9825 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9826 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9827 else
ce2cded5
L
9828 echo EXPORTS > $output_objdir/$soname.def;
9829 cat $export_symbols >> $output_objdir/$soname.def;
9830 fi~
9831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
d7040cdb 9836
3725885a
RW
9837 haiku*)
9838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839 link_all_deplibs=yes
9840 ;;
9841
ce2cded5
L
9842 interix[3-9]*)
9843 hardcode_direct=no
9844 hardcode_shlibpath_var=no
9845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9846 export_dynamic_flag_spec='${wl}-E'
9847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9848 # Instead, shared libraries are loaded at an image base (0x10000000 by
9849 # default) and relocated if they conflict, which is a slow very memory
9850 # consuming and fragmenting process. To avoid this, we pick a random,
9851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9854 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'
9855 ;;
d7040cdb 9856
58e24671 9857 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9858 tmp_diet=no
9859 if test "$host_os" = linux-dietlibc; then
9860 case $cc_basename in
9861 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9862 esac
9863 fi
9864 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9865 && test "$tmp_diet" = no
9866 then
6e733cce 9867 tmp_addflag=' $pic_flag'
b214d478 9868 tmp_sharedflag='-shared'
ce2cded5
L
9869 case $cc_basename,$host_cpu in
9870 pgcc*) # Portland Group C compiler
3725885a 9871 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
9872 tmp_addflag=' $pic_flag'
9873 ;;
3725885a
RW
9874 pgf77* | pgf90* | pgf95* | pgfortran*)
9875 # Portland Group f77 and f90 compilers
9876 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
9877 tmp_addflag=' $pic_flag -Mnomain' ;;
9878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9879 tmp_addflag=' -i_dynamic' ;;
9880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9881 tmp_addflag=' -i_dynamic -nofor_main' ;;
9882 ifc* | ifort*) # Intel Fortran compiler
9883 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9884 lf95*) # Lahey Fortran 8.1
9885 whole_archive_flag_spec=
9886 tmp_sharedflag='--shared' ;;
3725885a 9887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9888 tmp_sharedflag='-qmkshrobj'
9889 tmp_addflag= ;;
3725885a
RW
9890 nvcc*) # Cuda Compiler Driver 2.2
9891 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'
9892 compiler_needs_object=yes
9893 ;;
ce2cded5
L
9894 esac
9895 case `$CC -V 2>&1 | sed 5q` in
9896 *Sun\ C*) # Sun C 5.9
3725885a 9897 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
9898 compiler_needs_object=yes
9899 tmp_sharedflag='-G' ;;
9900 *Sun\ F*) # Sun Fortran 8.3
9901 tmp_sharedflag='-G' ;;
ce2cded5
L
9902 esac
9903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9904
ce2cded5
L
9905 if test "x$supports_anon_versioning" = xyes; then
9906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9908 echo "local: *; };" >> $output_objdir/$libname.ver~
9909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9910 fi
b214d478
SE
9911
9912 case $cc_basename in
3725885a 9913 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9914 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9915 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9916 hardcode_libdir_flag_spec=
9917 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9918 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9919 if test "x$supports_anon_versioning" = xyes; then
9920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9922 echo "local: *; };" >> $output_objdir/$libname.ver~
9923 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9924 fi
9925 ;;
9926 esac
ce2cded5
L
9927 else
9928 ld_shlibs=no
9929 fi
9930 ;;
d7040cdb 9931
ce2cded5
L
9932 netbsd*)
9933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9934 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9935 wlarc=
9936 else
9937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9939 fi
9940 ;;
9941
9942 solaris*)
9943 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9944 ld_shlibs=no
9945 cat <<_LT_EOF 1>&2
9946
9947*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9948*** create shared libraries on Solaris systems. Therefore, libtool
9949*** is disabling shared libraries support. We urge you to upgrade GNU
9950*** binutils to release 2.9.1 or newer. Another option is to modify
9951*** your PATH or compiler configuration so that the native linker is
9952*** used, and then restart.
9953
9954_LT_EOF
9955 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9958 else
9959 ld_shlibs=no
9960 fi
9961 ;;
9962
9963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9964 case `$LD -v 2>&1` in
9965 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9966 ld_shlibs=no
9967 cat <<_LT_EOF 1>&2
9968
9969*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9970*** reliably create shared libraries on SCO systems. Therefore, libtool
9971*** is disabling shared libraries support. We urge you to upgrade GNU
9972*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9973*** your PATH or compiler configuration so that the native linker is
9974*** used, and then restart.
9975
9976_LT_EOF
9977 ;;
9978 *)
9979 # For security reasons, it is highly recommended that you always
9980 # use absolute paths for naming shared libraries, and exclude the
9981 # DT_RUNPATH tag from executables and libraries. But doing so
9982 # requires that you compile everything twice, which is a pain.
9983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991 esac
9992 ;;
9993
9994 sunos4*)
9995 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9996 wlarc=
9997 hardcode_direct=yes
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 *)
10002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10005 else
10006 ld_shlibs=no
10007 fi
10008 ;;
10009 esac
10010
10011 if test "$ld_shlibs" = no; then
10012 runpath_var=
10013 hardcode_libdir_flag_spec=
10014 export_dynamic_flag_spec=
10015 whole_archive_flag_spec=
10016 fi
10017 else
10018 # PORTME fill in a description of your system's linker (not GNU ld)
10019 case $host_os in
10020 aix3*)
10021 allow_undefined_flag=unsupported
10022 always_export_symbols=yes
10023 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'
10024 # Note: this linker hardcodes the directories in LIBPATH if there
10025 # are no directories specified by -L.
10026 hardcode_minus_L=yes
10027 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10028 # Neither direct hardcoding nor static linking is supported with a
10029 # broken collect2.
10030 hardcode_direct=unsupported
10031 fi
10032 ;;
10033
50e7d84b 10034 aix[4-9]*)
ce2cded5
L
10035 if test "$host_cpu" = ia64; then
10036 # On IA64, the linker does run time linking by default, so we don't
10037 # have to do anything special.
10038 aix_use_runtimelinking=no
10039 exp_sym_flag='-Bexport'
10040 no_entry_flag=""
10041 else
10042 # If we're using GNU nm, then we don't want the "-C" option.
10043 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10044 # Also, AIX nm treats weak defined symbols like other global
10045 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10046 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10047 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 10048 else
5c14705f 10049 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
10050 fi
10051 aix_use_runtimelinking=no
10052
10053 # Test if we are trying to use run time linking or normal
10054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10055 # need to do runtime linking.
50e7d84b 10056 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10057 for ld_flag in $LDFLAGS; do
10058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10059 aix_use_runtimelinking=yes
10060 break
10061 fi
10062 done
10063 ;;
10064 esac
10065
10066 exp_sym_flag='-bexport'
10067 no_entry_flag='-bnoentry'
10068 fi
10069
10070 # When large executables or shared objects are built, AIX ld can
10071 # have problems creating the table of contents. If linking a library
10072 # or program results in "error TOC overflow" add -mminimal-toc to
10073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10075
10076 archive_cmds=''
10077 hardcode_direct=yes
10078 hardcode_direct_absolute=yes
10079 hardcode_libdir_separator=':'
10080 link_all_deplibs=yes
10081 file_list_spec='${wl}-f,'
10082
10083 if test "$GCC" = yes; then
10084 case $host_os in aix4.[012]|aix4.[012].*)
10085 # We only want to do this on AIX 4.2 and lower, the check
10086 # below for broken collect2 doesn't work under 4.3+
10087 collect2name=`${CC} -print-prog-name=collect2`
10088 if test -f "$collect2name" &&
10089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10090 then
10091 # We have reworked collect2
10092 :
10093 else
10094 # We have old collect2
10095 hardcode_direct=unsupported
10096 # It fails to find uninstalled libraries when the uninstalled
10097 # path is not listed in the libpath. Setting hardcode_minus_L
10098 # to unsupported forces relinking
10099 hardcode_minus_L=yes
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_libdir_separator=
10102 fi
10103 ;;
10104 esac
10105 shared_flag='-shared'
10106 if test "$aix_use_runtimelinking" = yes; then
10107 shared_flag="$shared_flag "'${wl}-G'
10108 fi
10109 else
10110 # not using gcc
10111 if test "$host_cpu" = ia64; then
10112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10113 # chokes on -Wl,-G. The following line is correct:
10114 shared_flag='-G'
10115 else
10116 if test "$aix_use_runtimelinking" = yes; then
10117 shared_flag='${wl}-G'
10118 else
10119 shared_flag='${wl}-bM:SRE'
10120 fi
10121 fi
10122 fi
10123
b214d478 10124 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10125 # It seems that -bexpall does not export symbols beginning with
10126 # underscore (_), so it is better to generate a list of symbols to export.
10127 always_export_symbols=yes
10128 if test "$aix_use_runtimelinking" = yes; then
10129 # Warning - without using the other runtime loading flags (-brtl),
10130 # -berok will link without error, but may produce a broken library.
10131 allow_undefined_flag='-berok'
10132 # Determine the default libpath from the value encoded in an
10133 # empty executable.
81ecdfbb 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10135/* end confdefs.h. */
10136
10137int
10138main ()
10139{
10140
10141 ;
10142 return 0;
10143}
10144_ACEOF
81ecdfbb 10145if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10146
ce2cded5
L
10147lt_aix_libpath_sed='
10148 /Import File Strings/,/^$/ {
10149 /^0/ {
10150 s/^0 *\(.*\)$/\1/
10151 p
10152 }
10153 }'
10154aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10155# Check for a 64-bit object if we didn't find anything.
10156if test -z "$aix_libpath"; then
10157 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10158fi
d7040cdb 10159fi
81ecdfbb
RW
10160rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10162if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10163
ce2cded5 10164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10165 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
10166 else
10167 if test "$host_cpu" = ia64; then
10168 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10169 allow_undefined_flag="-z nodefs"
10170 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"
10171 else
10172 # Determine the default libpath from the value encoded in an
10173 # empty executable.
81ecdfbb 10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10175/* end confdefs.h. */
d7040cdb 10176
ce2cded5
L
10177int
10178main ()
10179{
d7040cdb 10180
ce2cded5
L
10181 ;
10182 return 0;
10183}
10184_ACEOF
81ecdfbb 10185if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10186
ce2cded5
L
10187lt_aix_libpath_sed='
10188 /Import File Strings/,/^$/ {
10189 /^0/ {
10190 s/^0 *\(.*\)$/\1/
10191 p
10192 }
10193 }'
10194aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195# Check for a 64-bit object if we didn't find anything.
10196if test -z "$aix_libpath"; then
10197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10198fi
ce2cded5 10199fi
81ecdfbb
RW
10200rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10202if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10203
ce2cded5
L
10204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10205 # Warning - without using the other run time loading flags,
10206 # -berok will link without error, but may produce a broken library.
10207 no_undefined_flag=' ${wl}-bernotok'
10208 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10209 if test "$with_gnu_ld" = yes; then
10210 # We only use this code for GNU lds that support --whole-archive.
10211 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10212 else
10213 # Exported symbols can be pulled into shared objects from archives
10214 whole_archive_flag_spec='$convenience'
10215 fi
ce2cded5
L
10216 archive_cmds_need_lc=yes
10217 # This is similar to how AIX traditionally builds its shared libraries.
10218 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'
10219 fi
10220 fi
10221 ;;
d7040cdb 10222
ce2cded5 10223 amigaos*)
b214d478
SE
10224 case $host_cpu in
10225 powerpc)
10226 # see comment about AmigaOS4 .so support
10227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10228 archive_expsym_cmds=''
10229 ;;
10230 m68k)
10231 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)'
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_minus_L=yes
10234 ;;
10235 esac
ce2cded5
L
10236 ;;
10237
10238 bsdi[45]*)
10239 export_dynamic_flag_spec=-rdynamic
10240 ;;
10241
b214d478 10242 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10243 # When not using gcc, we currently assume that we are using
10244 # Microsoft Visual C++.
10245 # hardcode_libdir_flag_spec is actually meaningless, as there is
10246 # no search path for DLLs.
10247 hardcode_libdir_flag_spec=' '
10248 allow_undefined_flag=unsupported
10249 # Tell ltmain to make .lib files, not .a files.
10250 libext=lib
10251 # Tell ltmain to make .dll files, not .so files.
10252 shrext_cmds=".dll"
10253 # FIXME: Setting linknames here is a bad hack.
3725885a 10254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10255 # The linker will automatically build a .lib file if we build a DLL.
10256 old_archive_from_new_cmds='true'
10257 # FIXME: Should let the user specify the lib program.
10258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10259 fix_srcfile_path='`cygpath -w "$srcfile"`'
10260 enable_shared_with_static_runtimes=yes
10261 ;;
10262
10263 darwin* | rhapsody*)
d7040cdb 10264
b214d478
SE
10265
10266 archive_cmds_need_lc=no
10267 hardcode_direct=no
10268 hardcode_automatic=yes
10269 hardcode_shlibpath_var=unsupported
3725885a
RW
10270 if test "$lt_cv_ld_force_load" = "yes"; then
10271 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\"`'
10272 else
10273 whole_archive_flag_spec=''
10274 fi
b214d478
SE
10275 link_all_deplibs=yes
10276 allow_undefined_flag="$_lt_dar_allow_undefined"
10277 case $cc_basename in
10278 ifort*) _lt_dar_can_shared=yes ;;
10279 *) _lt_dar_can_shared=$GCC ;;
10280 esac
10281 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10282 output_verbose_link_cmd=func_echo_all
b214d478
SE
10283 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10284 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10285 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}"
10286 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}"
10287
10288 else
10289 ld_shlibs=no
10290 fi
10291
ce2cded5 10292 ;;
d7040cdb 10293
ce2cded5
L
10294 dgux*)
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_shlibpath_var=no
10298 ;;
d7040cdb 10299
ce2cded5
L
10300 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10301 # support. Future versions do this automatically, but an explicit c++rt0.o
10302 # does not break anything, and helps significantly (at the cost of a little
10303 # extra space).
10304 freebsd2.2*)
10305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10306 hardcode_libdir_flag_spec='-R$libdir'
10307 hardcode_direct=yes
10308 hardcode_shlibpath_var=no
d7040cdb 10309 ;;
d7040cdb 10310
ce2cded5 10311 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 10312 freebsd2.*)
ce2cded5
L
10313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10314 hardcode_direct=yes
10315 hardcode_minus_L=yes
10316 hardcode_shlibpath_var=no
10317 ;;
d7040cdb 10318
ce2cded5
L
10319 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10320 freebsd* | dragonfly*)
10321 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10322 hardcode_libdir_flag_spec='-R$libdir'
10323 hardcode_direct=yes
10324 hardcode_shlibpath_var=no
10325 ;;
d7040cdb 10326
ce2cded5
L
10327 hpux9*)
10328 if test "$GCC" = yes; then
10329 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'
10330 else
10331 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'
10332 fi
10333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10334 hardcode_libdir_separator=:
10335 hardcode_direct=yes
d7040cdb 10336
ce2cded5
L
10337 # hardcode_minus_L: Not really in the search PATH,
10338 # but as the default location of the library.
10339 hardcode_minus_L=yes
10340 export_dynamic_flag_spec='${wl}-E'
10341 ;;
d7040cdb 10342
ce2cded5 10343 hpux10*)
3725885a 10344 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10345 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10346 else
10347 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10348 fi
10349 if test "$with_gnu_ld" = no; then
10350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10351 hardcode_libdir_flag_spec_ld='+b $libdir'
10352 hardcode_libdir_separator=:
10353 hardcode_direct=yes
10354 hardcode_direct_absolute=yes
10355 export_dynamic_flag_spec='${wl}-E'
10356 # hardcode_minus_L: Not really in the search PATH,
10357 # but as the default location of the library.
10358 hardcode_minus_L=yes
10359 fi
10360 ;;
d7040cdb 10361
ce2cded5 10362 hpux11*)
3725885a 10363 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10364 case $host_cpu in
10365 hppa*64*)
10366 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 ia64*)
b214d478 10369 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10370 ;;
10371 *)
10372 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10373 ;;
10374 esac
10375 else
10376 case $host_cpu in
10377 hppa*64*)
10378 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 ia64*)
10381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382 ;;
10383 *)
3725885a
RW
10384
10385 # Older versions of the 11.00 compiler do not understand -b yet
10386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10388$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 10389if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
10390 $as_echo_n "(cached) " >&6
10391else
10392 lt_cv_prog_compiler__b=no
10393 save_LDFLAGS="$LDFLAGS"
10394 LDFLAGS="$LDFLAGS -b"
10395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10397 # The linker can only warn and ignore the option if not recognized
10398 # So say no if there are warnings
10399 if test -s conftest.err; then
10400 # Append any errors to the config.log.
10401 cat conftest.err 1>&5
10402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10404 if diff conftest.exp conftest.er2 >/dev/null; then
10405 lt_cv_prog_compiler__b=yes
10406 fi
10407 else
10408 lt_cv_prog_compiler__b=yes
10409 fi
10410 fi
10411 $RM -r conftest*
10412 LDFLAGS="$save_LDFLAGS"
10413
10414fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10416$as_echo "$lt_cv_prog_compiler__b" >&6; }
10417
10418if test x"$lt_cv_prog_compiler__b" = xyes; then
10419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10420else
10421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10422fi
10423
ce2cded5
L
10424 ;;
10425 esac
10426 fi
10427 if test "$with_gnu_ld" = no; then
10428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_separator=:
d7040cdb 10430
ce2cded5
L
10431 case $host_cpu in
10432 hppa*64*|ia64*)
10433 hardcode_direct=no
10434 hardcode_shlibpath_var=no
10435 ;;
10436 *)
10437 hardcode_direct=yes
10438 hardcode_direct_absolute=yes
10439 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10440
ce2cded5
L
10441 # hardcode_minus_L: Not really in the search PATH,
10442 # but as the default location of the library.
10443 hardcode_minus_L=yes
10444 ;;
10445 esac
10446 fi
10447 ;;
d7040cdb 10448
ce2cded5
L
10449 irix5* | irix6* | nonstopux*)
10450 if test "$GCC" = yes; then
3725885a 10451 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
10452 # Try to use the -exported_symbol ld option, if it does not
10453 # work, assume that -exports_file does not work either and
10454 # implicitly export all symbols.
10455 save_LDFLAGS="$LDFLAGS"
10456 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h. */
ce2cded5
L
10459int foo(void) {}
10460_ACEOF
81ecdfbb 10461if ac_fn_c_try_link "$LINENO"; then :
3725885a 10462 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 10463
ce2cded5 10464fi
81ecdfbb
RW
10465rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10467 LDFLAGS="$save_LDFLAGS"
10468 else
3725885a
RW
10469 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'
10470 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
10471 fi
10472 archive_cmds_need_lc='no'
10473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10474 hardcode_libdir_separator=:
10475 inherit_rpath=yes
10476 link_all_deplibs=yes
10477 ;;
d7040cdb 10478
ce2cded5
L
10479 netbsd*)
10480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10482 else
10483 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10484 fi
10485 hardcode_libdir_flag_spec='-R$libdir'
10486 hardcode_direct=yes
10487 hardcode_shlibpath_var=no
10488 ;;
d7040cdb 10489
ce2cded5
L
10490 newsos6)
10491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492 hardcode_direct=yes
10493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10494 hardcode_libdir_separator=:
10495 hardcode_shlibpath_var=no
10496 ;;
d7040cdb 10497
ce2cded5
L
10498 *nto* | *qnx*)
10499 ;;
d7040cdb 10500
ce2cded5 10501 openbsd*)
b214d478
SE
10502 if test -f /usr/libexec/ld.so; then
10503 hardcode_direct=yes
10504 hardcode_shlibpath_var=no
10505 hardcode_direct_absolute=yes
10506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10507 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10508 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10510 export_dynamic_flag_spec='${wl}-E'
10511 else
10512 case $host_os in
10513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10515 hardcode_libdir_flag_spec='-R$libdir'
10516 ;;
10517 *)
10518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10520 ;;
10521 esac
10522 fi
10523 else
10524 ld_shlibs=no
ce2cded5
L
10525 fi
10526 ;;
d7040cdb 10527
ce2cded5
L
10528 os2*)
10529 hardcode_libdir_flag_spec='-L$libdir'
10530 hardcode_minus_L=yes
10531 allow_undefined_flag=unsupported
3725885a 10532 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
10533 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10534 ;;
d7040cdb 10535
ce2cded5
L
10536 osf3*)
10537 if test "$GCC" = yes; then
10538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10539 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
10540 else
10541 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10542 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
10543 fi
10544 archive_cmds_need_lc='no'
10545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10546 hardcode_libdir_separator=:
10547 ;;
d7040cdb 10548
ce2cded5
L
10549 osf4* | osf5*) # as osf3* with the addition of -msym flag
10550 if test "$GCC" = yes; then
10551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10552 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
10553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10554 else
10555 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10556 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 10557 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 10558 $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 10559
ce2cded5
L
10560 # Both c and cxx compiler support -rpath directly
10561 hardcode_libdir_flag_spec='-rpath $libdir'
10562 fi
10563 archive_cmds_need_lc='no'
10564 hardcode_libdir_separator=:
10565 ;;
d7040cdb 10566
ce2cded5
L
10567 solaris*)
10568 no_undefined_flag=' -z defs'
10569 if test "$GCC" = yes; then
10570 wlarc='${wl}'
10571 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10573 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10574 else
10575 case `$CC -V 2>&1` in
10576 *"Compilers 5.0"*)
10577 wlarc=''
10578 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10580 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10581 ;;
10582 *)
10583 wlarc='${wl}'
10584 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10586 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10587 ;;
10588 esac
10589 fi
10590 hardcode_libdir_flag_spec='-R$libdir'
10591 hardcode_shlibpath_var=no
10592 case $host_os in
10593 solaris2.[0-5] | solaris2.[0-5].*) ;;
10594 *)
10595 # The compiler driver will combine and reorder linker options,
10596 # but understands `-z linker_flag'. GCC discards it without `$wl',
10597 # but is careful enough not to reorder.
10598 # Supported since Solaris 2.6 (maybe 2.5.1?)
10599 if test "$GCC" = yes; then
10600 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10601 else
10602 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10603 fi
10604 ;;
10605 esac
10606 link_all_deplibs=yes
10607 ;;
d7040cdb 10608
ce2cded5
L
10609 sunos4*)
10610 if test "x$host_vendor" = xsequent; then
10611 # Use $CC to link under sequent, because it throws in some extra .o
10612 # files that make .init and .fini sections work.
10613 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10614 else
10615 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10616 fi
10617 hardcode_libdir_flag_spec='-L$libdir'
10618 hardcode_direct=yes
10619 hardcode_minus_L=yes
10620 hardcode_shlibpath_var=no
10621 ;;
d7040cdb 10622
ce2cded5
L
10623 sysv4)
10624 case $host_vendor in
10625 sni)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_direct=yes # is this really true???
10628 ;;
10629 siemens)
10630 ## LD is ld it makes a PLAMLIB
10631 ## CC just makes a GrossModule.
10632 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10633 reload_cmds='$CC -r -o $output$reload_objs'
10634 hardcode_direct=no
10635 ;;
10636 motorola)
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10639 ;;
10640 esac
10641 runpath_var='LD_RUN_PATH'
10642 hardcode_shlibpath_var=no
10643 ;;
d7040cdb 10644
ce2cded5
L
10645 sysv4.3*)
10646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_shlibpath_var=no
10648 export_dynamic_flag_spec='-Bexport'
10649 ;;
d7040cdb 10650
ce2cded5
L
10651 sysv4*MP*)
10652 if test -d /usr/nec; then
10653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654 hardcode_shlibpath_var=no
10655 runpath_var=LD_RUN_PATH
10656 hardcode_runpath_var=yes
10657 ld_shlibs=yes
10658 fi
10659 ;;
d7040cdb 10660
ce2cded5
L
10661 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10662 no_undefined_flag='${wl}-z,text'
10663 archive_cmds_need_lc=no
10664 hardcode_shlibpath_var=no
10665 runpath_var='LD_RUN_PATH'
d7040cdb 10666
ce2cded5
L
10667 if test "$GCC" = yes; then
10668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 else
10671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 fi
10674 ;;
d7040cdb 10675
ce2cded5
L
10676 sysv5* | sco3.2v5* | sco5v6*)
10677 # Note: We can NOT use -z defs as we might desire, because we do not
10678 # link with -lc, and that would cause any symbols used from libc to
10679 # always be unresolved, which means just about no library would
10680 # ever link correctly. If we're not using GNU ld we use -z text
10681 # though, which does catch some bad symbols but isn't as heavy-handed
10682 # as -z defs.
10683 no_undefined_flag='${wl}-z,text'
10684 allow_undefined_flag='${wl}-z,nodefs'
10685 archive_cmds_need_lc=no
10686 hardcode_shlibpath_var=no
10687 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10688 hardcode_libdir_separator=':'
10689 link_all_deplibs=yes
10690 export_dynamic_flag_spec='${wl}-Bexport'
10691 runpath_var='LD_RUN_PATH'
d7040cdb 10692
ce2cded5
L
10693 if test "$GCC" = yes; then
10694 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696 else
10697 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10699 fi
10700 ;;
d7040cdb 10701
ce2cded5
L
10702 uts4*)
10703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 hardcode_shlibpath_var=no
10706 ;;
d7040cdb 10707
ce2cded5
L
10708 *)
10709 ld_shlibs=no
10710 ;;
10711 esac
d7040cdb 10712
ce2cded5
L
10713 if test x$host_vendor = xsni; then
10714 case $host in
10715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10716 export_dynamic_flag_spec='${wl}-Blargedynsym'
10717 ;;
10718 esac
10719 fi
10720 fi
d7040cdb 10721
81ecdfbb
RW
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10723$as_echo "$ld_shlibs" >&6; }
ce2cded5 10724test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10725
ce2cded5 10726with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
ce2cded5
L
10742#
10743# Do we need to explicitly link libc?
10744#
10745case "x$archive_cmds_need_lc" in
10746x|xyes)
10747 # Assume -lc should be added
10748 archive_cmds_need_lc=yes
d7040cdb 10749
ce2cded5
L
10750 if test "$enable_shared" = yes && test "$GCC" = yes; then
10751 case $archive_cmds in
10752 *'~'*)
10753 # FIXME: we may have to deal with multi-command sequences.
10754 ;;
10755 '$CC '*)
10756 # Test whether the compiler implicitly links with -lc since on some
10757 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10758 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10760$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10761if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10762 $as_echo_n "(cached) " >&6
39144654
RW
10763else
10764 $RM conftest*
10765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10766
81ecdfbb 10767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10768 (eval $ac_compile) 2>&5
10769 ac_status=$?
81ecdfbb
RW
10770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10771 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10772 soname=conftest
10773 lib=conftest
10774 libobjs=conftest.$ac_objext
10775 deplibs=
10776 wl=$lt_prog_compiler_wl
10777 pic_flag=$lt_prog_compiler_pic
10778 compiler_flags=-v
10779 linker_flags=-v
10780 verstring=
10781 output_objdir=.
10782 libname=conftest
10783 lt_save_allow_undefined_flag=$allow_undefined_flag
10784 allow_undefined_flag=
81ecdfbb 10785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10786 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10787 ac_status=$?
81ecdfbb
RW
10788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10789 test $ac_status = 0; }
39144654
RW
10790 then
10791 lt_cv_archive_cmds_need_lc=no
10792 else
10793 lt_cv_archive_cmds_need_lc=yes
10794 fi
10795 allow_undefined_flag=$lt_save_allow_undefined_flag
10796 else
10797 cat conftest.err 1>&5
10798 fi
10799 $RM conftest*
10800
10801fi
81ecdfbb
RW
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10803$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10804 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10805 ;;
10806 esac
10807 fi
10808 ;;
10809esac
d7040cdb
SE
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
d7040cdb 10837
d7040cdb 10838
d7040cdb
SE
10839
10840
10841
10842
10843
10844
d7040cdb 10845
d7040cdb 10846
d7040cdb 10847
d7040cdb 10848
d7040cdb 10849
d7040cdb 10850
d7040cdb 10851
d7040cdb 10852
d7040cdb 10853
d7040cdb 10854
d7040cdb 10855
d7040cdb 10856
d7040cdb 10857
d7040cdb 10858
d7040cdb 10859
d7040cdb 10860
d7040cdb 10861
d7040cdb 10862
d7040cdb 10863
d7040cdb 10864
d7040cdb 10865
d7040cdb 10866
d7040cdb 10867
d7040cdb 10868
d7040cdb 10869
d7040cdb 10870
d7040cdb 10871
d7040cdb 10872
ce2cded5
L
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
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10968$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10969
10970if test "$GCC" = yes; then
ce2cded5
L
10971 case $host_os in
10972 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10973 *) lt_awk_arg="/^libraries:/" ;;
10974 esac
3725885a
RW
10975 case $host_os in
10976 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10977 *) lt_sed_strip_eq="s,=/,/,g" ;;
10978 esac
10979 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10980 case $lt_search_path_spec in
10981 *\;*)
ce2cded5
L
10982 # if the path contains ";" then we assume it to be the separator
10983 # otherwise default to the standard path separator (i.e. ":") - it is
10984 # assumed that no part of a normal pathname contains ";" but that should
10985 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10986 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10987 ;;
10988 *)
10989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10990 ;;
10991 esac
ce2cded5
L
10992 # Ok, now we have the path, separated by spaces, we can step through it
10993 # and add multilib dir if necessary.
10994 lt_tmp_lt_search_path_spec=
10995 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10996 for lt_sys_path in $lt_search_path_spec; do
10997 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10999 else
11000 test -d "$lt_sys_path" && \
11001 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11002 fi
11003 done
3725885a 11004 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
11005BEGIN {RS=" "; FS="/|\n";} {
11006 lt_foo="";
11007 lt_count=0;
11008 for (lt_i = NF; lt_i > 0; lt_i--) {
11009 if ($lt_i != "" && $lt_i != ".") {
11010 if ($lt_i == "..") {
11011 lt_count++;
11012 } else {
11013 if (lt_count == 0) {
11014 lt_foo="/" $lt_i lt_foo;
11015 } else {
11016 lt_count--;
11017 }
11018 }
11019 }
11020 }
11021 if (lt_foo != "") { lt_freq[lt_foo]++; }
11022 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11023}'`
3725885a
RW
11024 # AWK program above erroneously prepends '/' to C:/dos/paths
11025 # for these hosts.
11026 case $host_os in
11027 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11028 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11029 esac
11030 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 11031else
ce2cded5
L
11032 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11033fi
11034library_names_spec=
11035libname_spec='lib$name'
11036soname_spec=
11037shrext_cmds=".so"
11038postinstall_cmds=
11039postuninstall_cmds=
11040finish_cmds=
11041finish_eval=
11042shlibpath_var=
11043shlibpath_overrides_runpath=unknown
11044version_type=none
11045dynamic_linker="$host_os ld.so"
11046sys_lib_dlsearch_path_spec="/lib /usr/lib"
11047need_lib_prefix=unknown
11048hardcode_into_libs=no
11049
11050# when you set need_version to no, make sure it does not cause -set_version
11051# flags to be left without arguments
11052need_version=unknown
11053
11054case $host_os in
11055aix3*)
11056 version_type=linux
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11058 shlibpath_var=LIBPATH
11059
11060 # AIX 3 has no versioning support, so we append a major version to the name.
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 ;;
11063
50e7d84b 11064aix[4-9]*)
ce2cded5
L
11065 version_type=linux
11066 need_lib_prefix=no
11067 need_version=no
11068 hardcode_into_libs=yes
11069 if test "$host_cpu" = ia64; then
11070 # AIX 5 supports IA64
11071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 else
11074 # With GCC up to 2.95.x, collect2 would create an import file
11075 # for dependence libraries. The import file would start with
11076 # the line `#! .'. This would cause the generated library to
11077 # depend on `.', always an invalid library. This was fixed in
11078 # development snapshots of GCC prior to 3.0.
11079 case $host_os in
11080 aix4 | aix4.[01] | aix4.[01].*)
11081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11082 echo ' yes '
11083 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11084 :
11085 else
11086 can_build_shared=no
11087 fi
11088 ;;
11089 esac
11090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11091 # soname into executable. Probably we can add versioning support to
11092 # collect2, so additional links can be useful in future.
11093 if test "$aix_use_runtimelinking" = yes; then
11094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11095 # instead of lib<name>.a to let people know that these are not
11096 # typical AIX shared libraries.
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 else
11099 # We preserve .a as extension for shared libraries through AIX4.2
11100 # and later when we are not doing run time linking.
11101 library_names_spec='${libname}${release}.a $libname.a'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 fi
11104 shlibpath_var=LIBPATH
11105 fi
11106 ;;
11107
11108amigaos*)
b214d478
SE
11109 case $host_cpu in
11110 powerpc)
11111 # Since July 2007 AmigaOS4 officially supports .so libraries.
11112 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 ;;
11115 m68k)
ce2cded5
L
11116 library_names_spec='$libname.ixlibrary $libname.a'
11117 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11118 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
11119 ;;
11120 esac
ce2cded5
L
11121 ;;
11122
11123beos*)
11124 library_names_spec='${libname}${shared_ext}'
11125 dynamic_linker="$host_os ld.so"
11126 shlibpath_var=LIBRARY_PATH
11127 ;;
11128
11129bsdi[45]*)
11130 version_type=linux
11131 need_version=no
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11137 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11138 # the default ld.so.conf also contains /usr/contrib/lib and
11139 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11140 # libtool to hard-code these into programs
11141 ;;
11142
b214d478 11143cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11144 version_type=windows
11145 shrext_cmds=".dll"
11146 need_version=no
11147 need_lib_prefix=no
11148
b214d478
SE
11149 case $GCC,$host_os in
11150 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11151 library_names_spec='$libname.dll.a'
11152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11153 postinstall_cmds='base_file=`basename \${file}`~
11154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11155 dldir=$destdir/`dirname \$dlpath`~
11156 test -d \$dldir || mkdir -p \$dldir~
11157 $install_prog $dir/$dlname \$dldir/$dlname~
11158 chmod a+x \$dldir/$dlname~
11159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11161 fi'
11162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11163 dlpath=$dir/\$dldll~
11164 $RM \$dlpath'
11165 shlibpath_overrides_runpath=yes
11166
11167 case $host_os in
11168 cygwin*)
11169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11171
11172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11173 ;;
b214d478 11174 mingw* | cegcc*)
ce2cded5
L
11175 # MinGW DLLs use traditional 'lib' prefix
11176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11177 ;;
11178 pw32*)
11179 # pw32 DLLs use 'pw' prefix rather than 'lib'
11180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11181 ;;
11182 esac
11183 ;;
11184
11185 *)
11186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11187 ;;
11188 esac
11189 dynamic_linker='Win32 ld.exe'
11190 # FIXME: first we should search . and the directory the executable is in
11191 shlibpath_var=PATH
11192 ;;
11193
11194darwin* | rhapsody*)
11195 dynamic_linker="$host_os dyld"
11196 version_type=darwin
11197 need_lib_prefix=no
11198 need_version=no
11199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11200 soname_spec='${libname}${release}${major}$shared_ext'
11201 shlibpath_overrides_runpath=yes
11202 shlibpath_var=DYLD_LIBRARY_PATH
11203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11204
11205 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11207 ;;
11208
11209dgux*)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 ;;
11217
ce2cded5
L
11218freebsd* | dragonfly*)
11219 # DragonFly does not have aout. When/if they implement a new
11220 # versioning mechanism, adjust this.
11221 if test -x /usr/bin/objformat; then
11222 objformat=`/usr/bin/objformat`
11223 else
11224 case $host_os in
6d2920c8 11225 freebsd[23].*) objformat=aout ;;
ce2cded5
L
11226 *) objformat=elf ;;
11227 esac
11228 fi
11229 version_type=freebsd-$objformat
11230 case $version_type in
11231 freebsd-elf*)
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11233 need_version=no
11234 need_lib_prefix=no
11235 ;;
11236 freebsd-*)
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11238 need_version=yes
11239 ;;
11240 esac
11241 shlibpath_var=LD_LIBRARY_PATH
11242 case $host_os in
6d2920c8 11243 freebsd2.*)
ce2cded5
L
11244 shlibpath_overrides_runpath=yes
11245 ;;
11246 freebsd3.[01]* | freebsdelf3.[01]*)
11247 shlibpath_overrides_runpath=yes
11248 hardcode_into_libs=yes
11249 ;;
11250 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11251 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11252 shlibpath_overrides_runpath=no
11253 hardcode_into_libs=yes
11254 ;;
11255 *) # from 4.6 on, and DragonFly
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11258 ;;
11259 esac
11260 ;;
11261
3725885a
RW
11262haiku*)
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 dynamic_linker="$host_os runtime_loader"
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 shlibpath_var=LIBRARY_PATH
11270 shlibpath_overrides_runpath=yes
11271 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11272 hardcode_into_libs=yes
11273 ;;
11274
ce2cded5
L
11275hpux9* | hpux10* | hpux11*)
11276 # Give a soname corresponding to the major version so that dld.sl refuses to
11277 # link against other versions.
11278 version_type=sunos
11279 need_lib_prefix=no
11280 need_version=no
11281 case $host_cpu in
11282 ia64*)
11283 shrext_cmds='.so'
11284 hardcode_into_libs=yes
11285 dynamic_linker="$host_os dld.so"
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 if test "X$HPUX_IA64_MODE" = X32; then
11291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11292 else
11293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11294 fi
11295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11296 ;;
11297 hppa*64*)
11298 shrext_cmds='.sl'
11299 hardcode_into_libs=yes
11300 dynamic_linker="$host_os dld.sl"
11301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11307 ;;
11308 *)
11309 shrext_cmds='.sl'
11310 dynamic_linker="$host_os dld.sl"
11311 shlibpath_var=SHLIB_PATH
11312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 ;;
11316 esac
3725885a 11317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11318 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11319 # or fails outright, so override atomically:
11320 install_override_mode=555
ce2cded5
L
11321 ;;
11322
11323interix[3-9]*)
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath=no
11332 hardcode_into_libs=yes
11333 ;;
11334
11335irix5* | irix6* | nonstopux*)
11336 case $host_os in
11337 nonstopux*) version_type=nonstopux ;;
11338 *)
11339 if test "$lt_cv_prog_gnu_ld" = yes; then
11340 version_type=linux
11341 else
11342 version_type=irix
11343 fi ;;
11344 esac
11345 need_lib_prefix=no
11346 need_version=no
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11349 case $host_os in
11350 irix5* | nonstopux*)
11351 libsuff= shlibsuff=
11352 ;;
11353 *)
11354 case $LD in # libtool.m4 will add one of these switches to LD
11355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356 libsuff= shlibsuff= libmagic=32-bit;;
11357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358 libsuff=32 shlibsuff=N32 libmagic=N32;;
11359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361 *) libsuff= shlibsuff= libmagic=never-match;;
11362 esac
11363 ;;
11364 esac
11365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366 shlibpath_overrides_runpath=no
11367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369 hardcode_into_libs=yes
11370 ;;
11371
11372# No shared lib support for Linux oldld, aout, or coff.
11373linux*oldld* | linux*aout* | linux*coff*)
11374 dynamic_linker=no
11375 ;;
11376
11377# This must be Linux ELF.
f4782128 11378linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
ce2cded5
L
11379 version_type=linux
11380 need_lib_prefix=no
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
39144654 11387
ce2cded5 11388 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 11389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 11390 $as_echo_n "(cached) " >&6
39144654
RW
11391else
11392 lt_cv_shlibpath_overrides_runpath=no
11393 save_LDFLAGS=$LDFLAGS
11394 save_libdir=$libdir
11395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11398/* end confdefs.h. */
11399
d7040cdb
SE
11400int
11401main ()
11402{
ce2cded5 11403
d7040cdb
SE
11404 ;
11405 return 0;
11406}
11407_ACEOF
81ecdfbb
RW
11408if ac_fn_c_try_link "$LINENO"; then :
11409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11410 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11411fi
d7040cdb 11412fi
81ecdfbb
RW
11413rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11415 LDFLAGS=$save_LDFLAGS
11416 libdir=$save_libdir
11417
11418fi
11419
11420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11421
ce2cded5
L
11422 # This implies no fast_install, which is unacceptable.
11423 # Some rework will be needed to allow for fast_install
11424 # before this can be enabled.
11425 hardcode_into_libs=yes
d7040cdb 11426
ce2cded5
L
11427 # Append ld.so.conf contents to the search path
11428 if test -f /etc/ld.so.conf; then
3725885a 11429 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
11430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11431 fi
d7040cdb 11432
ce2cded5
L
11433 # We used to test for /lib/ld.so.1 and disable shared libraries on
11434 # powerpc, because MkLinux only supported shared libraries with the
11435 # GNU dynamic linker. Since this was broken with cross compilers,
11436 # most powerpc-linux boxes support dynamic linking these days and
11437 # people can always --disable-shared, the test was removed, and we
11438 # assume the GNU/Linux dynamic linker is in use.
11439 dynamic_linker='GNU/Linux ld.so'
11440 ;;
d7040cdb 11441
ce2cded5
L
11442netbsd*)
11443 version_type=sunos
11444 need_lib_prefix=no
11445 need_version=no
11446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11449 dynamic_linker='NetBSD (a.out) ld.so'
11450 else
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 dynamic_linker='NetBSD ld.elf_so'
11454 fi
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 hardcode_into_libs=yes
11458 ;;
d7040cdb 11459
ce2cded5
L
11460newsos6)
11461 version_type=linux
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=yes
11465 ;;
d7040cdb 11466
ce2cded5
L
11467*nto* | *qnx*)
11468 version_type=qnx
11469 need_lib_prefix=no
11470 need_version=no
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=no
11475 hardcode_into_libs=yes
11476 dynamic_linker='ldqnx.so'
11477 ;;
d7040cdb 11478
ce2cded5
L
11479openbsd*)
11480 version_type=sunos
11481 sys_lib_dlsearch_path_spec="/usr/lib"
11482 need_lib_prefix=no
11483 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11484 case $host_os in
11485 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11486 *) need_version=no ;;
11487 esac
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11492 case $host_os in
11493 openbsd2.[89] | openbsd2.[89].*)
11494 shlibpath_overrides_runpath=no
11495 ;;
11496 *)
11497 shlibpath_overrides_runpath=yes
11498 ;;
11499 esac
11500 else
11501 shlibpath_overrides_runpath=yes
11502 fi
11503 ;;
d7040cdb 11504
ce2cded5
L
11505os2*)
11506 libname_spec='$name'
11507 shrext_cmds=".dll"
11508 need_lib_prefix=no
11509 library_names_spec='$libname${shared_ext} $libname.a'
11510 dynamic_linker='OS/2 ld.exe'
11511 shlibpath_var=LIBPATH
11512 ;;
d7040cdb 11513
ce2cded5
L
11514osf3* | osf4* | osf5*)
11515 version_type=osf
11516 need_lib_prefix=no
11517 need_version=no
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11522 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11523 ;;
d7040cdb 11524
ce2cded5
L
11525rdos*)
11526 dynamic_linker=no
11527 ;;
d7040cdb 11528
ce2cded5
L
11529solaris*)
11530 version_type=linux
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537 hardcode_into_libs=yes
11538 # ldd complains unless libraries are executable
11539 postinstall_cmds='chmod +x $lib'
11540 ;;
d7040cdb 11541
ce2cded5
L
11542sunos4*)
11543 version_type=sunos
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=yes
11548 if test "$with_gnu_ld" = yes; then
11549 need_lib_prefix=no
11550 fi
11551 need_version=yes
11552 ;;
d7040cdb 11553
ce2cded5
L
11554sysv4 | sysv4.3*)
11555 version_type=linux
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 case $host_vendor in
11560 sni)
11561 shlibpath_overrides_runpath=no
11562 need_lib_prefix=no
11563 runpath_var=LD_RUN_PATH
11564 ;;
11565 siemens)
11566 need_lib_prefix=no
11567 ;;
11568 motorola)
11569 need_lib_prefix=no
11570 need_version=no
11571 shlibpath_overrides_runpath=no
11572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11573 ;;
11574 esac
11575 ;;
d7040cdb 11576
ce2cded5
L
11577sysv4*MP*)
11578 if test -d /usr/nec ;then
11579 version_type=linux
11580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11581 soname_spec='$libname${shared_ext}.$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 fi
11584 ;;
d7040cdb 11585
ce2cded5
L
11586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11587 version_type=freebsd-elf
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11595 if test "$with_gnu_ld" = yes; then
11596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11597 else
11598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11599 case $host_os in
11600 sco3.2v5*)
11601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11602 ;;
11603 esac
11604 fi
11605 sys_lib_dlsearch_path_spec='/usr/lib'
11606 ;;
d7040cdb 11607
ce2cded5
L
11608tpf*)
11609 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11610 version_type=linux
11611 need_lib_prefix=no
11612 need_version=no
b214d478 11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11616 hardcode_into_libs=yes
11617 ;;
d7040cdb 11618
ce2cded5
L
11619uts4*)
11620 version_type=linux
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 ;;
d7040cdb 11625
ce2cded5
L
11626*)
11627 dynamic_linker=no
11628 ;;
11629esac
81ecdfbb
RW
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11631$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11632test "$dynamic_linker" = no && can_build_shared=no
11633
11634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11635if test "$GCC" = yes; then
11636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11637fi
11638
b214d478
SE
11639if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11640 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11641fi
11642if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11643 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11644fi
11645
d7040cdb
SE
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
d7040cdb 11657
d7040cdb 11658
d7040cdb 11659
d7040cdb 11660
d7040cdb
SE
11661
11662
11663
11664
d7040cdb 11665
d7040cdb
SE
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
d7040cdb
SE
11679
11680
11681
11682
d7040cdb
SE
11683
11684
11685
11686
d7040cdb 11687
d7040cdb 11688
d7040cdb 11689
d7040cdb 11690
d7040cdb 11691
d7040cdb 11692
d7040cdb 11693
d7040cdb
SE
11694
11695
11696
11697
11698
d7040cdb 11699
d7040cdb 11700
d7040cdb 11701
d7040cdb 11702
d7040cdb 11703
d7040cdb 11704
d7040cdb
SE
11705
11706
11707
11708
11709
d7040cdb
SE
11710
11711
d7040cdb 11712
d7040cdb 11713
d7040cdb 11714
d7040cdb 11715
ce2cded5
L
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
3725885a
RW
11726
11727
11728
11729
11730
ce2cded5
L
11731
11732
11733
11734
11735
11736
81ecdfbb
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11738$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11739hardcode_action=
11740if test -n "$hardcode_libdir_flag_spec" ||
11741 test -n "$runpath_var" ||
11742 test "X$hardcode_automatic" = "Xyes" ; then
11743
11744 # We can hardcode non-existent directories.
11745 if test "$hardcode_direct" != no &&
11746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11747 # have to relink, otherwise we might link with an installed library
11748 # when we should be linking with a yet-to-be-installed one
11749 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11750 test "$hardcode_minus_L" != no; then
11751 # Linking always hardcodes the temporary library directory.
11752 hardcode_action=relink
11753 else
11754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11755 hardcode_action=immediate
d7040cdb 11756 fi
d7040cdb 11757else
ce2cded5
L
11758 # We cannot hardcode anything, or else we can only hardcode existing
11759 # directories.
11760 hardcode_action=unsupported
d7040cdb 11761fi
81ecdfbb
RW
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11763$as_echo "$hardcode_action" >&6; }
d7040cdb 11764
ce2cded5
L
11765if test "$hardcode_action" = relink ||
11766 test "$inherit_rpath" = yes; then
11767 # Fast installation is not supported
11768 enable_fast_install=no
11769elif test "$shlibpath_overrides_runpath" = yes ||
11770 test "$enable_shared" = no; then
11771 # Fast installation is not necessary
11772 enable_fast_install=needless
d7040cdb
SE
11773fi
11774
d7040cdb 11775
d7040cdb 11776
d7040cdb 11777
d7040cdb 11778
d7040cdb 11779
ce2cded5
L
11780 if test "x$enable_dlopen" != xyes; then
11781 enable_dlopen=unknown
11782 enable_dlopen_self=unknown
11783 enable_dlopen_self_static=unknown
d7040cdb 11784else
ce2cded5
L
11785 lt_cv_dlopen=no
11786 lt_cv_dlopen_libs=
d7040cdb 11787
ce2cded5
L
11788 case $host_os in
11789 beos*)
11790 lt_cv_dlopen="load_add_on"
11791 lt_cv_dlopen_libs=
11792 lt_cv_dlopen_self=yes
11793 ;;
d7040cdb 11794
b214d478 11795 mingw* | pw32* | cegcc*)
ce2cded5
L
11796 lt_cv_dlopen="LoadLibrary"
11797 lt_cv_dlopen_libs=
11798 ;;
11799
11800 cygwin*)
11801 lt_cv_dlopen="dlopen"
11802 lt_cv_dlopen_libs=
11803 ;;
11804
11805 darwin*)
11806 # if libdl is installed we need to link against it
81ecdfbb
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11808$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11809if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11810 $as_echo_n "(cached) " >&6
d7040cdb 11811else
ce2cded5
L
11812 ac_check_lib_save_LIBS=$LIBS
11813LIBS="-ldl $LIBS"
81ecdfbb 11814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11815/* end confdefs.h. */
11816
81ecdfbb
RW
11817/* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
ce2cded5
L
11820#ifdef __cplusplus
11821extern "C"
11822#endif
ce2cded5
L
11823char dlopen ();
11824int
11825main ()
11826{
81ecdfbb 11827return dlopen ();
ce2cded5
L
11828 ;
11829 return 0;
11830}
11831_ACEOF
81ecdfbb 11832if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11833 ac_cv_lib_dl_dlopen=yes
11834else
81ecdfbb 11835 ac_cv_lib_dl_dlopen=no
d7040cdb 11836fi
81ecdfbb
RW
11837rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11839LIBS=$ac_check_lib_save_LIBS
d7040cdb 11840fi
81ecdfbb
RW
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11842$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11843if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11845else
d7040cdb 11846
ce2cded5
L
11847 lt_cv_dlopen="dyld"
11848 lt_cv_dlopen_libs=
11849 lt_cv_dlopen_self=yes
11850
d7040cdb 11851fi
ce2cded5
L
11852
11853 ;;
11854
11855 *)
81ecdfbb 11856 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11857if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11858 lt_cv_dlopen="shl_load"
11859else
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11861$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11862if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11863 $as_echo_n "(cached) " >&6
ce2cded5
L
11864else
11865 ac_check_lib_save_LIBS=$LIBS
11866LIBS="-ldld $LIBS"
81ecdfbb 11867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11868/* end confdefs.h. */
d7040cdb 11869
81ecdfbb
RW
11870/* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
ce2cded5
L
11873#ifdef __cplusplus
11874extern "C"
11875#endif
ce2cded5
L
11876char shl_load ();
11877int
11878main ()
11879{
81ecdfbb 11880return shl_load ();
ce2cded5
L
11881 ;
11882 return 0;
11883}
11884_ACEOF
81ecdfbb 11885if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11886 ac_cv_lib_dld_shl_load=yes
11887else
81ecdfbb 11888 ac_cv_lib_dld_shl_load=no
ce2cded5 11889fi
81ecdfbb
RW
11890rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11892LIBS=$ac_check_lib_save_LIBS
11893fi
81ecdfbb
RW
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11895$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11896if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b214d478 11897 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11898else
81ecdfbb 11899 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11900if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11901 lt_cv_dlopen="dlopen"
11902else
81ecdfbb
RW
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11904$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11905if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11906 $as_echo_n "(cached) " >&6
d7040cdb 11907else
ce2cded5
L
11908 ac_check_lib_save_LIBS=$LIBS
11909LIBS="-ldl $LIBS"
81ecdfbb 11910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11911/* end confdefs.h. */
11912
81ecdfbb
RW
11913/* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
ce2cded5
L
11916#ifdef __cplusplus
11917extern "C"
11918#endif
ce2cded5 11919char dlopen ();
d7040cdb
SE
11920int
11921main ()
11922{
81ecdfbb 11923return dlopen ();
d7040cdb
SE
11924 ;
11925 return 0;
11926}
11927_ACEOF
81ecdfbb 11928if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11929 ac_cv_lib_dl_dlopen=yes
d7040cdb 11930else
81ecdfbb 11931 ac_cv_lib_dl_dlopen=no
d7040cdb 11932fi
81ecdfbb
RW
11933rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11935LIBS=$ac_check_lib_save_LIBS
d7040cdb 11936fi
81ecdfbb
RW
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11938$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11939if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11941else
81ecdfbb
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11943$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11944if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11945 $as_echo_n "(cached) " >&6
d7040cdb 11946else
ce2cded5
L
11947 ac_check_lib_save_LIBS=$LIBS
11948LIBS="-lsvld $LIBS"
81ecdfbb 11949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11950/* end confdefs.h. */
d7040cdb 11951
81ecdfbb
RW
11952/* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
ce2cded5
L
11955#ifdef __cplusplus
11956extern "C"
11957#endif
ce2cded5 11958char dlopen ();
d7040cdb
SE
11959int
11960main ()
11961{
81ecdfbb 11962return dlopen ();
d7040cdb
SE
11963 ;
11964 return 0;
11965}
11966_ACEOF
81ecdfbb 11967if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11968 ac_cv_lib_svld_dlopen=yes
d7040cdb 11969else
81ecdfbb 11970 ac_cv_lib_svld_dlopen=no
d7040cdb 11971fi
81ecdfbb
RW
11972rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11974LIBS=$ac_check_lib_save_LIBS
d7040cdb 11975fi
81ecdfbb
RW
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11977$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11978if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11980else
81ecdfbb
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11982$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11983if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11984 $as_echo_n "(cached) " >&6
ce2cded5
L
11985else
11986 ac_check_lib_save_LIBS=$LIBS
11987LIBS="-ldld $LIBS"
81ecdfbb 11988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11989/* end confdefs.h. */
11990
81ecdfbb
RW
11991/* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
ce2cded5
L
11994#ifdef __cplusplus
11995extern "C"
11996#endif
ce2cded5 11997char dld_link ();
d7040cdb
SE
11998int
11999main ()
12000{
81ecdfbb 12001return dld_link ();
d7040cdb
SE
12002 ;
12003 return 0;
12004}
12005_ACEOF
81ecdfbb 12006if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 12007 ac_cv_lib_dld_dld_link=yes
d7040cdb 12008else
81ecdfbb 12009 ac_cv_lib_dld_dld_link=no
d7040cdb 12010fi
81ecdfbb
RW
12011rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
12013LIBS=$ac_check_lib_save_LIBS
12014fi
81ecdfbb
RW
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12016$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 12017if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b214d478 12018 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
12019fi
12020
12021
12022fi
12023
12024
12025fi
12026
12027
12028fi
12029
12030
12031fi
12032
12033
12034fi
12035
12036 ;;
12037 esac
12038
12039 if test "x$lt_cv_dlopen" != xno; then
12040 enable_dlopen=yes
12041 else
12042 enable_dlopen=no
12043 fi
12044
12045 case $lt_cv_dlopen in
12046 dlopen)
12047 save_CPPFLAGS="$CPPFLAGS"
12048 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12049
12050 save_LDFLAGS="$LDFLAGS"
12051 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12052
12053 save_LIBS="$LIBS"
12054 LIBS="$lt_cv_dlopen_libs $LIBS"
12055
81ecdfbb
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12057$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12058if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 12059 $as_echo_n "(cached) " >&6
ce2cded5
L
12060else
12061 if test "$cross_compiling" = yes; then :
12062 lt_cv_dlopen_self=cross
12063else
12064 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12065 lt_status=$lt_dlunknown
12066 cat > conftest.$ac_ext <<_LT_EOF
83b33c6c 12067#line 12067 "configure"
ce2cded5
L
12068#include "confdefs.h"
12069
12070#if HAVE_DLFCN_H
12071#include <dlfcn.h>
12072#endif
12073
12074#include <stdio.h>
12075
12076#ifdef RTLD_GLOBAL
12077# define LT_DLGLOBAL RTLD_GLOBAL
12078#else
12079# ifdef DL_GLOBAL
12080# define LT_DLGLOBAL DL_GLOBAL
12081# else
12082# define LT_DLGLOBAL 0
12083# endif
12084#endif
12085
12086/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12087 find out it does not work in some platform. */
12088#ifndef LT_DLLAZY_OR_NOW
12089# ifdef RTLD_LAZY
12090# define LT_DLLAZY_OR_NOW RTLD_LAZY
12091# else
12092# ifdef DL_LAZY
12093# define LT_DLLAZY_OR_NOW DL_LAZY
12094# else
12095# ifdef RTLD_NOW
12096# define LT_DLLAZY_OR_NOW RTLD_NOW
12097# else
12098# ifdef DL_NOW
12099# define LT_DLLAZY_OR_NOW DL_NOW
12100# else
12101# define LT_DLLAZY_OR_NOW 0
12102# endif
12103# endif
12104# endif
12105# endif
12106#endif
12107
3725885a
RW
12108/* When -fvisbility=hidden is used, assume the code has been annotated
12109 correspondingly for the symbols needed. */
12110#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12111void fnord () __attribute__((visibility("default")));
12112#endif
12113
12114void fnord () { int i=42; }
ce2cded5 12115int main ()
d7040cdb 12116{
ce2cded5
L
12117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12118 int status = $lt_dlunknown;
12119
12120 if (self)
12121 {
12122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12123 else
12124 {
12125 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12126 else puts (dlerror ());
12127 }
ce2cded5
L
12128 /* dlclose (self); */
12129 }
12130 else
12131 puts (dlerror ());
12132
b214d478 12133 return status;
d7040cdb 12134}
ce2cded5 12135_LT_EOF
81ecdfbb 12136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12137 (eval $ac_link) 2>&5
d7040cdb 12138 ac_status=$?
81ecdfbb
RW
12139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12140 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12141 (./conftest; exit; ) >&5 2>/dev/null
12142 lt_status=$?
12143 case x$lt_status in
12144 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12145 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12146 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12147 esac
12148 else :
12149 # compilation failed
12150 lt_cv_dlopen_self=no
12151 fi
12152fi
12153rm -fr conftest*
12154
12155
12156fi
81ecdfbb
RW
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12158$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12159
12160 if test "x$lt_cv_dlopen_self" = xyes; then
12161 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12163$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 12164if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 12165 $as_echo_n "(cached) " >&6
ce2cded5
L
12166else
12167 if test "$cross_compiling" = yes; then :
12168 lt_cv_dlopen_self_static=cross
12169else
12170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12171 lt_status=$lt_dlunknown
12172 cat > conftest.$ac_ext <<_LT_EOF
83b33c6c 12173#line 12173 "configure"
ce2cded5
L
12174#include "confdefs.h"
12175
12176#if HAVE_DLFCN_H
12177#include <dlfcn.h>
12178#endif
12179
12180#include <stdio.h>
12181
12182#ifdef RTLD_GLOBAL
12183# define LT_DLGLOBAL RTLD_GLOBAL
12184#else
12185# ifdef DL_GLOBAL
12186# define LT_DLGLOBAL DL_GLOBAL
12187# else
12188# define LT_DLGLOBAL 0
12189# endif
12190#endif
12191
12192/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12193 find out it does not work in some platform. */
12194#ifndef LT_DLLAZY_OR_NOW
12195# ifdef RTLD_LAZY
12196# define LT_DLLAZY_OR_NOW RTLD_LAZY
12197# else
12198# ifdef DL_LAZY
12199# define LT_DLLAZY_OR_NOW DL_LAZY
12200# else
12201# ifdef RTLD_NOW
12202# define LT_DLLAZY_OR_NOW RTLD_NOW
12203# else
12204# ifdef DL_NOW
12205# define LT_DLLAZY_OR_NOW DL_NOW
12206# else
12207# define LT_DLLAZY_OR_NOW 0
12208# endif
12209# endif
12210# endif
12211# endif
12212#endif
12213
3cb62297
L
12214/* When -fvisbility=hidden is used, assume the code has been annotated
12215 correspondingly for the symbols needed. */
12216#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12217void fnord () __attribute__((visibility("default")));
12218#endif
12219
12220void fnord () { int i=42; }
12221int main ()
12222{
12223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12224 int status = $lt_dlunknown;
12225
12226 if (self)
12227 {
12228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12229 else
12230 {
12231 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12232 else puts (dlerror ());
12233 }
12234 /* dlclose (self); */
12235 }
12236 else
12237 puts (dlerror ());
12238
12239 return status;
12240}
12241_LT_EOF
12242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12243 (eval $ac_link) 2>&5
12244 ac_status=$?
12245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12246 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12247 (./conftest; exit; ) >&5 2>/dev/null
12248 lt_status=$?
12249 case x$lt_status in
12250 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12251 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12252 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12253 esac
12254 else :
12255 # compilation failed
12256 lt_cv_dlopen_self_static=no
12257 fi
12258fi
12259rm -fr conftest*
12260
12261
12262fi
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12264$as_echo "$lt_cv_dlopen_self_static" >&6; }
12265 fi
12266
12267 CPPFLAGS="$save_CPPFLAGS"
12268 LDFLAGS="$save_LDFLAGS"
12269 LIBS="$save_LIBS"
12270 ;;
12271 esac
12272
12273 case $lt_cv_dlopen_self in
12274 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12275 *) enable_dlopen_self=unknown ;;
12276 esac
12277
12278 case $lt_cv_dlopen_self_static in
12279 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12280 *) enable_dlopen_self_static=unknown ;;
12281 esac
12282fi
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300striplib=
12301old_striplib=
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12303$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12304if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12305 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12306 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308$as_echo "yes" >&6; }
12309else
12310# FIXME - insert some real tests, host_os isn't really good enough
12311 case $host_os in
12312 darwin*)
12313 if test -n "$STRIP" ; then
12314 striplib="$STRIP -x"
12315 old_striplib="$STRIP -S"
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317$as_echo "yes" >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320$as_echo "no" >&6; }
12321 fi
12322 ;;
12323 *)
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
12326 ;;
12327 esac
12328fi
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341 # Report which library types will actually be built
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12343$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12345$as_echo "$can_build_shared" >&6; }
12346
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12348$as_echo_n "checking whether to build shared libraries... " >&6; }
12349 test "$can_build_shared" = "no" && enable_shared=no
12350
12351 # On AIX, shared libraries and static libraries use the same namespace, and
12352 # are all built from PIC.
12353 case $host_os in
12354 aix3*)
12355 test "$enable_shared" = yes && enable_static=no
12356 if test -n "$RANLIB"; then
12357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12358 postinstall_cmds='$RANLIB $lib'
12359 fi
12360 ;;
12361
12362 aix[4-9]*)
12363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12364 test "$enable_shared" = yes && enable_static=no
12365 fi
12366 ;;
12367 esac
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12369$as_echo "$enable_shared" >&6; }
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12372$as_echo_n "checking whether to build static libraries... " >&6; }
12373 # Make sure either enable_shared or enable_static is yes.
12374 test "$enable_shared" = yes || enable_static=yes
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12376$as_echo "$enable_static" >&6; }
12377
12378
12379
12380
12381fi
12382ac_ext=c
12383ac_cpp='$CPP $CPPFLAGS'
12384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12386ac_compiler_gnu=$ac_cv_c_compiler_gnu
12387
12388CC="$lt_save_CC"
12389
12390 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12391 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12392 (test "X$CXX" != "Xg++"))) ; then
12393 ac_ext=cpp
12394ac_cpp='$CXXCPP $CPPFLAGS'
12395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12399$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12400if test -z "$CXXCPP"; then
d0ac1c44 12401 if ${ac_cv_prog_CXXCPP+:} false; then :
3cb62297
L
12402 $as_echo_n "(cached) " >&6
12403else
12404 # Double quotes because CXXCPP needs to be expanded
12405 for CXXCPP in "$CXX -E" "/lib/cpp"
12406 do
12407 ac_preproc_ok=false
12408for ac_cxx_preproc_warn_flag in '' yes
12409do
12410 # Use a header file that comes with gcc, so configuring glibc
12411 # with a fresh cross-compiler works.
12412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12413 # <limits.h> exists even on freestanding compilers.
12414 # On the NeXT, cc -E runs the code through the compiler's parser,
12415 # not just through cpp. "Syntax error" is here to catch this case.
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h. */
12418#ifdef __STDC__
12419# include <limits.h>
12420#else
12421# include <assert.h>
12422#endif
12423 Syntax error
12424_ACEOF
12425if ac_fn_cxx_try_cpp "$LINENO"; then :
12426
12427else
12428 # Broken: fails on valid input.
12429continue
12430fi
d0ac1c44 12431rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12432
12433 # OK, works on sane cases. Now check whether nonexistent headers
12434 # can be detected and how.
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436/* end confdefs.h. */
12437#include <ac_nonexistent.h>
12438_ACEOF
12439if ac_fn_cxx_try_cpp "$LINENO"; then :
12440 # Broken: success on invalid input.
12441continue
12442else
12443 # Passes both tests.
12444ac_preproc_ok=:
12445break
12446fi
d0ac1c44 12447rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12448
12449done
12450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12451rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12452if $ac_preproc_ok; then :
12453 break
12454fi
12455
12456 done
12457 ac_cv_prog_CXXCPP=$CXXCPP
12458
12459fi
12460 CXXCPP=$ac_cv_prog_CXXCPP
12461else
12462 ac_cv_prog_CXXCPP=$CXXCPP
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12465$as_echo "$CXXCPP" >&6; }
12466ac_preproc_ok=false
12467for ac_cxx_preproc_warn_flag in '' yes
12468do
12469 # Use a header file that comes with gcc, so configuring glibc
12470 # with a fresh cross-compiler works.
12471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472 # <limits.h> exists even on freestanding compilers.
12473 # On the NeXT, cc -E runs the code through the compiler's parser,
12474 # not just through cpp. "Syntax error" is here to catch this case.
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h. */
12477#ifdef __STDC__
12478# include <limits.h>
12479#else
12480# include <assert.h>
12481#endif
12482 Syntax error
12483_ACEOF
12484if ac_fn_cxx_try_cpp "$LINENO"; then :
12485
12486else
12487 # Broken: fails on valid input.
12488continue
12489fi
d0ac1c44 12490rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12491
12492 # OK, works on sane cases. Now check whether nonexistent headers
12493 # can be detected and how.
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h. */
12496#include <ac_nonexistent.h>
12497_ACEOF
12498if ac_fn_cxx_try_cpp "$LINENO"; then :
12499 # Broken: success on invalid input.
12500continue
12501else
12502 # Passes both tests.
12503ac_preproc_ok=:
12504break
12505fi
d0ac1c44 12506rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12507
12508done
12509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12510rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12511if $ac_preproc_ok; then :
12512
12513else
12514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12516as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12517See \`config.log' for more details" "$LINENO" 5; }
3cb62297
L
12518fi
12519
12520ac_ext=c
12521ac_cpp='$CPP $CPPFLAGS'
12522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524ac_compiler_gnu=$ac_cv_c_compiler_gnu
12525
12526else
12527 _lt_caught_CXX_error=yes
12528fi
12529
12530ac_ext=cpp
12531ac_cpp='$CXXCPP $CPPFLAGS'
12532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12535
12536archive_cmds_need_lc_CXX=no
12537allow_undefined_flag_CXX=
12538always_export_symbols_CXX=no
12539archive_expsym_cmds_CXX=
12540compiler_needs_object_CXX=no
12541export_dynamic_flag_spec_CXX=
12542hardcode_direct_CXX=no
12543hardcode_direct_absolute_CXX=no
12544hardcode_libdir_flag_spec_CXX=
12545hardcode_libdir_flag_spec_ld_CXX=
12546hardcode_libdir_separator_CXX=
12547hardcode_minus_L_CXX=no
12548hardcode_shlibpath_var_CXX=unsupported
12549hardcode_automatic_CXX=no
12550inherit_rpath_CXX=no
12551module_cmds_CXX=
12552module_expsym_cmds_CXX=
12553link_all_deplibs_CXX=unknown
12554old_archive_cmds_CXX=$old_archive_cmds
12555reload_flag_CXX=$reload_flag
12556reload_cmds_CXX=$reload_cmds
12557no_undefined_flag_CXX=
12558whole_archive_flag_spec_CXX=
12559enable_shared_with_static_runtimes_CXX=no
12560
12561# Source file extension for C++ test sources.
12562ac_ext=cpp
12563
12564# Object file extension for compiled C++ test sources.
12565objext=o
12566objext_CXX=$objext
12567
12568# No sense in running all these tests if we already determined that
12569# the CXX compiler isn't working. Some variables (like enable_shared)
12570# are currently assumed to apply to all compilers on this platform,
12571# and will be corrupted by setting them based on a non-working compiler.
12572if test "$_lt_caught_CXX_error" != yes; then
12573 # Code to be used in simple compile tests
12574 lt_simple_compile_test_code="int some_variable = 0;"
12575
12576 # Code to be used in simple link tests
12577 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12578
12579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12580
12581
12582
12583
12584
12585
12586# If no C compiler was specified, use CC.
12587LTCC=${LTCC-"$CC"}
12588
12589# If no C compiler flags were specified, use CFLAGS.
12590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12591
12592# Allow CC to be a program name with arguments.
12593compiler=$CC
12594
12595
12596 # save warnings/boilerplate of simple test code
12597 ac_outfile=conftest.$ac_objext
12598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600_lt_compiler_boilerplate=`cat conftest.err`
12601$RM conftest*
12602
12603 ac_outfile=conftest.$ac_objext
12604echo "$lt_simple_link_test_code" >conftest.$ac_ext
12605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12606_lt_linker_boilerplate=`cat conftest.err`
12607$RM -r conftest*
12608
12609
12610 # Allow CC to be a program name with arguments.
12611 lt_save_CC=$CC
12612 lt_save_LD=$LD
12613 lt_save_GCC=$GCC
12614 GCC=$GXX
12615 lt_save_with_gnu_ld=$with_gnu_ld
12616 lt_save_path_LD=$lt_cv_path_LD
12617 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12618 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12619 else
12620 $as_unset lt_cv_prog_gnu_ld
12621 fi
12622 if test -n "${lt_cv_path_LDCXX+set}"; then
12623 lt_cv_path_LD=$lt_cv_path_LDCXX
12624 else
12625 $as_unset lt_cv_path_LD
12626 fi
12627 test -z "${LDCXX+set}" || LD=$LDCXX
12628 CC=${CXX-"c++"}
12629 compiler=$CC
12630 compiler_CXX=$CC
12631 for cc_temp in $compiler""; do
12632 case $cc_temp in
12633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12635 \-*) ;;
12636 *) break;;
12637 esac
12638done
12639cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12640
12641
12642 if test -n "$compiler"; then
12643 # We don't want -fno-exception when compiling C++ code, so set the
12644 # no_builtin_flag separately
12645 if test "$GXX" = yes; then
12646 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12647 else
12648 lt_prog_compiler_no_builtin_flag_CXX=
12649 fi
12650
12651 if test "$GXX" = yes; then
12652 # Set up default GNU C++ configuration
12653
12654
12655
12656# Check whether --with-gnu-ld was given.
12657if test "${with_gnu_ld+set}" = set; then :
12658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12659else
12660 with_gnu_ld=no
12661fi
12662
12663ac_prog=ld
12664if test "$GCC" = yes; then
12665 # Check if gcc -print-prog-name=ld gives a path.
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12667$as_echo_n "checking for ld used by $CC... " >&6; }
12668 case $host in
12669 *-*-mingw*)
12670 # gcc leaves a trailing carriage return which upsets mingw
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12672 *)
12673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12674 esac
12675 case $ac_prog in
12676 # Accept absolute paths.
12677 [\\/]* | ?:[\\/]*)
12678 re_direlt='/[^/][^/]*/\.\./'
12679 # Canonicalize the pathname of ld
12680 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12681 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12682 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12683 done
12684 test -z "$LD" && LD="$ac_prog"
12685 ;;
12686 "")
12687 # If it fails, then pretend we aren't using GCC.
12688 ac_prog=ld
12689 ;;
12690 *)
12691 # If it is relative, then search for the first ld in PATH.
12692 with_gnu_ld=unknown
12693 ;;
12694 esac
12695elif test "$with_gnu_ld" = yes; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12697$as_echo_n "checking for GNU ld... " >&6; }
12698else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12700$as_echo_n "checking for non-GNU ld... " >&6; }
12701fi
d0ac1c44 12702if ${lt_cv_path_LD+:} false; then :
3cb62297
L
12703 $as_echo_n "(cached) " >&6
12704else
12705 if test -z "$LD"; then
12706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12707 for ac_dir in $PATH; do
12708 IFS="$lt_save_ifs"
12709 test -z "$ac_dir" && ac_dir=.
12710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12711 lt_cv_path_LD="$ac_dir/$ac_prog"
12712 # Check to see if the program is GNU ld. I'd rather use --version,
12713 # but apparently some variants of GNU ld only accept -v.
12714 # Break only if it was the GNU/non-GNU ld that we prefer.
12715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12716 *GNU* | *'with BFD'*)
12717 test "$with_gnu_ld" != no && break
12718 ;;
12719 *)
12720 test "$with_gnu_ld" != yes && break
12721 ;;
12722 esac
12723 fi
12724 done
12725 IFS="$lt_save_ifs"
12726else
12727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12728fi
12729fi
12730
12731LD="$lt_cv_path_LD"
12732if test -n "$LD"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12734$as_echo "$LD" >&6; }
12735else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737$as_echo "no" >&6; }
12738fi
d0ac1c44 12739test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3cb62297
L
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 12742if ${lt_cv_prog_gnu_ld+:} false; then :
3cb62297
L
12743 $as_echo_n "(cached) " >&6
12744else
12745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12746case `$LD -v 2>&1 </dev/null` in
12747*GNU* | *'with BFD'*)
12748 lt_cv_prog_gnu_ld=yes
12749 ;;
12750*)
12751 lt_cv_prog_gnu_ld=no
12752 ;;
12753esac
12754fi
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12756$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12757with_gnu_ld=$lt_cv_prog_gnu_ld
12758
12759
12760
12761
12762
12763
12764
12765 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12766 # archiving commands below assume that GNU ld is being used.
12767 if test "$with_gnu_ld" = yes; then
6e733cce
L
12768 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769 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
12770
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12773
12774 # If archive_cmds runs LD, not CC, wlarc should be empty
12775 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12776 # investigate it a little bit more. (MM)
12777 wlarc='${wl}'
12778
12779 # ancient GNU ld didn't support --whole-archive et. al.
12780 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12781 $GREP 'no-whole-archive' > /dev/null; then
12782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12783 else
12784 whole_archive_flag_spec_CXX=
12785 fi
12786 else
12787 with_gnu_ld=no
12788 wlarc=
12789
12790 # A generic and very simple default shared library creation
12791 # command for GNU C++ for the case where it uses the native
12792 # linker, instead of GNU ld. If possible, this setting should
12793 # overridden to take advantage of the native linker features on
12794 # the platform it is being used on.
12795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12796 fi
12797
12798 # Commands to make compiler produce verbose output that lists
12799 # what "hidden" libraries, object files and flags are used when
12800 # linking a shared library.
12801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12802
12803 else
12804 GXX=no
12805 with_gnu_ld=no
12806 wlarc=
12807 fi
12808
12809 # PORTME: fill in a description of your system's C++ link characteristics
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12811$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12812 ld_shlibs_CXX=yes
12813 case $host_os in
12814 aix3*)
12815 # FIXME: insert proper C++ library support
12816 ld_shlibs_CXX=no
12817 ;;
12818 aix[4-9]*)
12819 if test "$host_cpu" = ia64; then
12820 # On IA64, the linker does run time linking by default, so we don't
12821 # have to do anything special.
12822 aix_use_runtimelinking=no
12823 exp_sym_flag='-Bexport'
12824 no_entry_flag=""
12825 else
12826 aix_use_runtimelinking=no
12827
12828 # Test if we are trying to use run time linking or normal
12829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12830 # need to do runtime linking.
12831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12832 for ld_flag in $LDFLAGS; do
12833 case $ld_flag in
12834 *-brtl*)
12835 aix_use_runtimelinking=yes
12836 break
12837 ;;
12838 esac
12839 done
12840 ;;
12841 esac
12842
12843 exp_sym_flag='-bexport'
12844 no_entry_flag='-bnoentry'
12845 fi
12846
12847 # When large executables or shared objects are built, AIX ld can
12848 # have problems creating the table of contents. If linking a library
12849 # or program results in "error TOC overflow" add -mminimal-toc to
12850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12852
12853 archive_cmds_CXX=''
12854 hardcode_direct_CXX=yes
12855 hardcode_direct_absolute_CXX=yes
12856 hardcode_libdir_separator_CXX=':'
12857 link_all_deplibs_CXX=yes
12858 file_list_spec_CXX='${wl}-f,'
12859
12860 if test "$GXX" = yes; then
12861 case $host_os in aix4.[012]|aix4.[012].*)
12862 # We only want to do this on AIX 4.2 and lower, the check
12863 # below for broken collect2 doesn't work under 4.3+
12864 collect2name=`${CC} -print-prog-name=collect2`
12865 if test -f "$collect2name" &&
12866 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12867 then
12868 # We have reworked collect2
12869 :
12870 else
12871 # We have old collect2
12872 hardcode_direct_CXX=unsupported
12873 # It fails to find uninstalled libraries when the uninstalled
12874 # path is not listed in the libpath. Setting hardcode_minus_L
12875 # to unsupported forces relinking
12876 hardcode_minus_L_CXX=yes
12877 hardcode_libdir_flag_spec_CXX='-L$libdir'
12878 hardcode_libdir_separator_CXX=
12879 fi
12880 esac
12881 shared_flag='-shared'
12882 if test "$aix_use_runtimelinking" = yes; then
12883 shared_flag="$shared_flag "'${wl}-G'
12884 fi
12885 else
12886 # not using gcc
12887 if test "$host_cpu" = ia64; then
12888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12889 # chokes on -Wl,-G. The following line is correct:
12890 shared_flag='-G'
12891 else
12892 if test "$aix_use_runtimelinking" = yes; then
12893 shared_flag='${wl}-G'
12894 else
12895 shared_flag='${wl}-bM:SRE'
12896 fi
12897 fi
12898 fi
12899
12900 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12901 # It seems that -bexpall does not export symbols beginning with
12902 # underscore (_), so it is better to generate a list of symbols to
12903 # export.
12904 always_export_symbols_CXX=yes
12905 if test "$aix_use_runtimelinking" = yes; then
12906 # Warning - without using the other runtime loading flags (-brtl),
12907 # -berok will link without error, but may produce a broken library.
12908 allow_undefined_flag_CXX='-berok'
12909 # Determine the default libpath from the value encoded in an empty
12910 # executable.
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h. */
12913
12914int
12915main ()
12916{
12917
12918 ;
12919 return 0;
12920}
12921_ACEOF
12922if ac_fn_cxx_try_link "$LINENO"; then :
12923
12924lt_aix_libpath_sed='
12925 /Import File Strings/,/^$/ {
12926 /^0/ {
12927 s/^0 *\(.*\)$/\1/
12928 p
12929 }
12930 }'
12931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12932# Check for a 64-bit object if we didn't find anything.
12933if test -z "$aix_libpath"; then
12934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12935fi
12936fi
12937rm -f core conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12940
12941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12942
12943 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"
12944 else
12945 if test "$host_cpu" = ia64; then
12946 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12947 allow_undefined_flag_CXX="-z nodefs"
12948 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"
12949 else
12950 # Determine the default libpath from the value encoded in an
12951 # empty executable.
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h. */
12954
12955int
12956main ()
12957{
12958
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963if ac_fn_cxx_try_link "$LINENO"; then :
12964
12965lt_aix_libpath_sed='
12966 /Import File Strings/,/^$/ {
12967 /^0/ {
12968 s/^0 *\(.*\)$/\1/
12969 p
12970 }
12971 }'
12972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12973# Check for a 64-bit object if we didn't find anything.
12974if test -z "$aix_libpath"; then
12975 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12976fi
12977fi
12978rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12981
12982 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12983 # Warning - without using the other run time loading flags,
12984 # -berok will link without error, but may produce a broken library.
12985 no_undefined_flag_CXX=' ${wl}-bernotok'
12986 allow_undefined_flag_CXX=' ${wl}-berok'
12987 if test "$with_gnu_ld" = yes; then
12988 # We only use this code for GNU lds that support --whole-archive.
12989 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12990 else
12991 # Exported symbols can be pulled into shared objects from archives
12992 whole_archive_flag_spec_CXX='$convenience'
12993 fi
12994 archive_cmds_need_lc_CXX=yes
12995 # This is similar to how AIX traditionally builds its shared
12996 # libraries.
12997 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'
12998 fi
12999 fi
13000 ;;
13001
13002 beos*)
13003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13004 allow_undefined_flag_CXX=unsupported
13005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13006 # support --undefined. This deserves some investigation. FIXME
13007 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13008 else
13009 ld_shlibs_CXX=no
13010 fi
13011 ;;
13012
13013 chorus*)
13014 case $cc_basename in
13015 *)
13016 # FIXME: insert proper C++ library support
13017 ld_shlibs_CXX=no
13018 ;;
13019 esac
13020 ;;
13021
13022 cygwin* | mingw* | pw32* | cegcc*)
13023 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13024 # as there is no search path for DLLs.
13025 hardcode_libdir_flag_spec_CXX='-L$libdir'
13026 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13027 allow_undefined_flag_CXX=unsupported
13028 always_export_symbols_CXX=no
13029 enable_shared_with_static_runtimes_CXX=yes
13030
13031 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13032 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'
13033 # If the export-symbols file already is a .def file (1st line
13034 # is EXPORTS), use it as is; otherwise, prepend...
13035 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13036 cp $export_symbols $output_objdir/$soname.def;
13037 else
13038 echo EXPORTS > $output_objdir/$soname.def;
13039 cat $export_symbols >> $output_objdir/$soname.def;
13040 fi~
13041 $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'
13042 else
13043 ld_shlibs_CXX=no
13044 fi
13045 ;;
13046 darwin* | rhapsody*)
13047
13048
13049 archive_cmds_need_lc_CXX=no
13050 hardcode_direct_CXX=no
13051 hardcode_automatic_CXX=yes
13052 hardcode_shlibpath_var_CXX=unsupported
13053 if test "$lt_cv_ld_force_load" = "yes"; then
13054 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\"`'
13055 else
13056 whole_archive_flag_spec_CXX=''
13057 fi
13058 link_all_deplibs_CXX=yes
13059 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13060 case $cc_basename in
13061 ifort*) _lt_dar_can_shared=yes ;;
13062 *) _lt_dar_can_shared=$GCC ;;
13063 esac
13064 if test "$_lt_dar_can_shared" = "yes"; then
13065 output_verbose_link_cmd=func_echo_all
13066 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}"
13067 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13068 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}"
13069 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}"
13070 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13071 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}"
13072 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}"
13073 fi
13074
13075 else
13076 ld_shlibs_CXX=no
13077 fi
13078
13079 ;;
13080
13081 dgux*)
13082 case $cc_basename in
13083 ec++*)
13084 # FIXME: insert proper C++ library support
13085 ld_shlibs_CXX=no
13086 ;;
13087 ghcx*)
13088 # Green Hills C++ Compiler
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13091 ;;
13092 *)
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 esac
13097 ;;
13098
6d2920c8 13099 freebsd2.*)
3cb62297
L
13100 # C++ shared libraries reported to be fairly broken before
13101 # switch to ELF
13102 ld_shlibs_CXX=no
13103 ;;
13104
13105 freebsd-elf*)
13106 archive_cmds_need_lc_CXX=no
13107 ;;
13108
13109 freebsd* | dragonfly*)
13110 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13111 # conventions
13112 ld_shlibs_CXX=yes
13113 ;;
13114
13115 gnu*)
13116 ;;
13117
13118 haiku*)
13119 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 link_all_deplibs_CXX=yes
13121 ;;
13122
13123 hpux9*)
13124 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13125 hardcode_libdir_separator_CXX=:
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13127 hardcode_direct_CXX=yes
13128 hardcode_minus_L_CXX=yes # Not in the search PATH,
13129 # but as the default
13130 # location of the library.
13131
13132 case $cc_basename in
13133 CC*)
13134 # FIXME: insert proper C++ library support
13135 ld_shlibs_CXX=no
13136 ;;
13137 aCC*)
13138 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'
13139 # Commands to make compiler produce verbose output that lists
13140 # what "hidden" libraries, object files and flags are used when
13141 # linking a shared library.
13142 #
13143 # There doesn't appear to be a way to prevent this compiler from
13144 # explicitly linking system object files so we need to strip them
13145 # from the output so that they don't get included in the library
13146 # dependencies.
13147 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"'
13148 ;;
13149 *)
13150 if test "$GXX" = yes; then
13151 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'
13152 else
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13155 fi
13156 ;;
13157 esac
13158 ;;
13159
13160 hpux10*|hpux11*)
13161 if test $with_gnu_ld = no; then
13162 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13163 hardcode_libdir_separator_CXX=:
13164
13165 case $host_cpu in
13166 hppa*64*|ia64*)
13167 ;;
13168 *)
13169 export_dynamic_flag_spec_CXX='${wl}-E'
13170 ;;
13171 esac
13172 fi
13173 case $host_cpu in
13174 hppa*64*|ia64*)
13175 hardcode_direct_CXX=no
13176 hardcode_shlibpath_var_CXX=no
13177 ;;
13178 *)
13179 hardcode_direct_CXX=yes
13180 hardcode_direct_absolute_CXX=yes
13181 hardcode_minus_L_CXX=yes # Not in the search PATH,
13182 # but as the default
13183 # location of the library.
13184 ;;
13185 esac
13186
13187 case $cc_basename in
13188 CC*)
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13191 ;;
13192 aCC*)
13193 case $host_cpu in
13194 hppa*64*)
13195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13196 ;;
13197 ia64*)
13198 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13199 ;;
13200 *)
13201 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13202 ;;
13203 esac
13204 # Commands to make compiler produce verbose output that lists
13205 # what "hidden" libraries, object files and flags are used when
13206 # linking a shared library.
13207 #
13208 # There doesn't appear to be a way to prevent this compiler from
13209 # explicitly linking system object files so we need to strip them
13210 # from the output so that they don't get included in the library
13211 # dependencies.
13212 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"'
13213 ;;
13214 *)
13215 if test "$GXX" = yes; then
13216 if test $with_gnu_ld = no; then
13217 case $host_cpu in
13218 hppa*64*)
13219 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13220 ;;
13221 ia64*)
13222 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13223 ;;
13224 *)
13225 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'
13226 ;;
13227 esac
13228 fi
13229 else
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13232 fi
13233 ;;
13234 esac
13235 ;;
13236
13237 interix[3-9]*)
13238 hardcode_direct_CXX=no
13239 hardcode_shlibpath_var_CXX=no
13240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241 export_dynamic_flag_spec_CXX='${wl}-E'
13242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13243 # Instead, shared libraries are loaded at an image base (0x10000000 by
13244 # default) and relocated if they conflict, which is a slow very memory
13245 # consuming and fragmenting process. To avoid this, we pick a random,
13246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13248 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'
13249 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'
13250 ;;
13251 irix5* | irix6*)
13252 case $cc_basename in
13253 CC*)
13254 # SGI C++
13255 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'
13256
13257 # Archives containing C++ object files must be created using
13258 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13259 # necessary to make sure instantiated templates are included
13260 # in the archive.
13261 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13262 ;;
13263 *)
13264 if test "$GXX" = yes; then
13265 if test "$with_gnu_ld" = no; then
13266 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'
13267 else
13268 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'
13269 fi
13270 fi
13271 link_all_deplibs_CXX=yes
13272 ;;
13273 esac
13274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13275 hardcode_libdir_separator_CXX=:
13276 inherit_rpath_CXX=yes
13277 ;;
13278
13279 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13280 case $cc_basename in
13281 KCC*)
13282 # Kuck and Associates, Inc. (KAI) C++ Compiler
13283
13284 # KCC will only create a shared library if the output file
13285 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13286 # to its proper name (with version) after linking.
13287 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'
13288 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'
13289 # Commands to make compiler produce verbose output that lists
13290 # what "hidden" libraries, object files and flags are used when
13291 # linking a shared library.
13292 #
13293 # There doesn't appear to be a way to prevent this compiler from
13294 # explicitly linking system object files so we need to strip them
13295 # from the output so that they don't get included in the library
13296 # dependencies.
13297 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"'
13298
13299 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13300 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13301
13302 # Archives containing C++ object files must be created using
13303 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13304 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13305 ;;
13306 icpc* | ecpc* )
13307 # Intel C++
13308 with_gnu_ld=yes
13309 # version 8.0 and above of icpc choke on multiply defined symbols
13310 # if we add $predep_objects and $postdep_objects, however 7.1 and
13311 # earlier do not add the objects themselves.
13312 case `$CC -V 2>&1` in
13313 *"Version 7."*)
13314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13315 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'
13316 ;;
13317 *) # Version 8.0 or newer
13318 tmp_idyn=
13319 case $host_cpu in
13320 ia64*) tmp_idyn=' -i_dynamic';;
13321 esac
13322 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13323 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'
13324 ;;
13325 esac
13326 archive_cmds_need_lc_CXX=no
13327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13330 ;;
13331 pgCC* | pgcpp*)
13332 # Portland Group C++ compiler
13333 case `$CC -V` in
13334 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13335 prelink_cmds_CXX='tpldir=Template.dir~
13336 rm -rf $tpldir~
13337 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13338 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13339 old_archive_cmds_CXX='tpldir=Template.dir~
13340 rm -rf $tpldir~
13341 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13342 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13343 $RANLIB $oldlib'
13344 archive_cmds_CXX='tpldir=Template.dir~
13345 rm -rf $tpldir~
13346 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13347 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13348 archive_expsym_cmds_CXX='tpldir=Template.dir~
13349 rm -rf $tpldir~
13350 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13351 $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'
13352 ;;
13353 *) # Version 6 and above use weak symbols
13354 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13355 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'
13356 ;;
13357 esac
13358
13359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13361 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'
13362 ;;
13363 cxx*)
13364 # Compaq C++
13365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 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'
13367
13368 runpath_var=LD_RUN_PATH
13369 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13370 hardcode_libdir_separator_CXX=:
13371
13372 # Commands to make compiler produce verbose output that lists
13373 # what "hidden" libraries, object files and flags are used when
13374 # linking a shared library.
13375 #
13376 # There doesn't appear to be a way to prevent this compiler from
13377 # explicitly linking system object files so we need to strip them
13378 # from the output so that they don't get included in the library
13379 # dependencies.
13380 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'
13381 ;;
13382 xl* | mpixl* | bgxl*)
13383 # IBM XL 8.0 on PPC, with GNU ld
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 if test "x$supports_anon_versioning" = xyes; then
13388 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13390 echo "local: *; };" >> $output_objdir/$libname.ver~
13391 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13392 fi
13393 ;;
13394 *)
13395 case `$CC -V 2>&1 | sed 5q` in
13396 *Sun\ C*)
13397 # Sun C++ 5.9
13398 no_undefined_flag_CXX=' -zdefs'
13399 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13400 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'
13401 hardcode_libdir_flag_spec_CXX='-R$libdir'
13402 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'
13403 compiler_needs_object_CXX=yes
13404
13405 # Not sure whether something based on
13406 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13407 # would be better.
13408 output_verbose_link_cmd='func_echo_all'
13409
13410 # Archives containing C++ object files must be created using
13411 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13412 # necessary to make sure instantiated templates are included
13413 # in the archive.
13414 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13415 ;;
13416 esac
13417 ;;
13418 esac
13419 ;;
13420
13421 lynxos*)
13422 # FIXME: insert proper C++ library support
13423 ld_shlibs_CXX=no
13424 ;;
13425
13426 m88k*)
13427 # FIXME: insert proper C++ library support
13428 ld_shlibs_CXX=no
13429 ;;
13430
13431 mvs*)
13432 case $cc_basename in
13433 cxx*)
13434 # FIXME: insert proper C++ library support
13435 ld_shlibs_CXX=no
13436 ;;
13437 *)
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13440 ;;
13441 esac
13442 ;;
13443
13444 netbsd*)
13445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13446 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13447 wlarc=
13448 hardcode_libdir_flag_spec_CXX='-R$libdir'
13449 hardcode_direct_CXX=yes
13450 hardcode_shlibpath_var_CXX=no
13451 fi
13452 # Workaround some broken pre-1.5 toolchains
13453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13454 ;;
13455
13456 *nto* | *qnx*)
13457 ld_shlibs_CXX=yes
13458 ;;
13459
13460 openbsd2*)
13461 # C++ shared libraries are fairly broken
13462 ld_shlibs_CXX=no
13463 ;;
13464
13465 openbsd*)
13466 if test -f /usr/libexec/ld.so; then
13467 hardcode_direct_CXX=yes
13468 hardcode_shlibpath_var_CXX=no
13469 hardcode_direct_absolute_CXX=yes
13470 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13473 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13474 export_dynamic_flag_spec_CXX='${wl}-E'
13475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13476 fi
13477 output_verbose_link_cmd=func_echo_all
13478 else
13479 ld_shlibs_CXX=no
13480 fi
13481 ;;
13482
13483 osf3* | osf4* | osf5*)
13484 case $cc_basename in
13485 KCC*)
13486 # Kuck and Associates, Inc. (KAI) C++ Compiler
13487
13488 # KCC will only create a shared library if the output file
13489 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13490 # to its proper name (with version) after linking.
13491 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'
13492
13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13494 hardcode_libdir_separator_CXX=:
13495
13496 # Archives containing C++ object files must be created using
13497 # the KAI C++ compiler.
13498 case $host in
13499 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13500 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13501 esac
13502 ;;
13503 RCC*)
13504 # Rational C++ 2.4.1
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13507 ;;
13508 cxx*)
13509 case $host in
13510 osf3*)
13511 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13512 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'
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13514 ;;
13515 *)
13516 allow_undefined_flag_CXX=' -expect_unresolved \*'
13517 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'
13518 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13519 echo "-hidden">> $lib.exp~
13520 $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~
13521 $RM $lib.exp'
13522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13523 ;;
13524 esac
13525
13526 hardcode_libdir_separator_CXX=:
13527
13528 # Commands to make compiler produce verbose output that lists
13529 # what "hidden" libraries, object files and flags are used when
13530 # linking a shared library.
13531 #
13532 # There doesn't appear to be a way to prevent this compiler from
13533 # explicitly linking system object files so we need to strip them
13534 # from the output so that they don't get included in the library
13535 # dependencies.
13536 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"'
13537 ;;
13538 *)
13539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13540 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13541 case $host in
13542 osf3*)
13543 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'
13544 ;;
13545 *)
13546 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'
13547 ;;
13548 esac
13549
13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13551 hardcode_libdir_separator_CXX=:
13552
13553 # Commands to make compiler produce verbose output that lists
13554 # what "hidden" libraries, object files and flags are used when
13555 # linking a shared library.
13556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13557
13558 else
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13561 fi
13562 ;;
13563 esac
13564 ;;
13565
13566 psos*)
13567 # FIXME: insert proper C++ library support
13568 ld_shlibs_CXX=no
13569 ;;
13570
13571 sunos4*)
13572 case $cc_basename in
13573 CC*)
13574 # Sun C++ 4.x
13575 # FIXME: insert proper C++ library support
13576 ld_shlibs_CXX=no
13577 ;;
13578 lcc*)
13579 # Lucid
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13582 ;;
13583 *)
13584 # FIXME: insert proper C++ library support
13585 ld_shlibs_CXX=no
13586 ;;
13587 esac
13588 ;;
13589
13590 solaris*)
13591 case $cc_basename in
13592 CC*)
13593 # Sun C++ 4.2, 5.x and Centerline C++
13594 archive_cmds_need_lc_CXX=yes
13595 no_undefined_flag_CXX=' -zdefs'
13596 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13597 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13598 $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'
13599
13600 hardcode_libdir_flag_spec_CXX='-R$libdir'
13601 hardcode_shlibpath_var_CXX=no
13602 case $host_os in
13603 solaris2.[0-5] | solaris2.[0-5].*) ;;
13604 *)
13605 # The compiler driver will combine and reorder linker options,
13606 # but understands `-z linker_flag'.
13607 # Supported since Solaris 2.6 (maybe 2.5.1?)
13608 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13609 ;;
13610 esac
13611 link_all_deplibs_CXX=yes
13612
13613 output_verbose_link_cmd='func_echo_all'
13614
13615 # Archives containing C++ object files must be created using
13616 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13617 # necessary to make sure instantiated templates are included
13618 # in the archive.
13619 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13620 ;;
13621 gcx*)
13622 # Green Hills C++ Compiler
13623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13624
13625 # The C++ compiler must be used to create the archive.
13626 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13627 ;;
13628 *)
13629 # GNU C++ compiler with Solaris linker
13630 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13631 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13632 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13633 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13634 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13635 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13636
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13641 else
13642 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13643 # platform.
13644 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13645 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13646 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13647
13648 # Commands to make compiler produce verbose output that lists
13649 # what "hidden" libraries, object files and flags are used when
13650 # linking a shared library.
13651 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13652 fi
13653
13654 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13655 case $host_os in
13656 solaris2.[0-5] | solaris2.[0-5].*) ;;
13657 *)
13658 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13659 ;;
13660 esac
13661 fi
13662 ;;
13663 esac
13664 ;;
13665
13666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13667 no_undefined_flag_CXX='${wl}-z,text'
13668 archive_cmds_need_lc_CXX=no
13669 hardcode_shlibpath_var_CXX=no
13670 runpath_var='LD_RUN_PATH'
13671
13672 case $cc_basename in
13673 CC*)
13674 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 ;;
13677 *)
13678 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 ;;
13681 esac
13682 ;;
13683
13684 sysv5* | sco3.2v5* | sco5v6*)
13685 # Note: We can NOT use -z defs as we might desire, because we do not
13686 # link with -lc, and that would cause any symbols used from libc to
13687 # always be unresolved, which means just about no library would
13688 # ever link correctly. If we're not using GNU ld we use -z text
13689 # though, which does catch some bad symbols but isn't as heavy-handed
13690 # as -z defs.
13691 no_undefined_flag_CXX='${wl}-z,text'
13692 allow_undefined_flag_CXX='${wl}-z,nodefs'
13693 archive_cmds_need_lc_CXX=no
13694 hardcode_shlibpath_var_CXX=no
13695 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13696 hardcode_libdir_separator_CXX=':'
13697 link_all_deplibs_CXX=yes
13698 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13699 runpath_var='LD_RUN_PATH'
13700
13701 case $cc_basename in
13702 CC*)
13703 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13706 '"$old_archive_cmds_CXX"
13707 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13708 '"$reload_cmds_CXX"
13709 ;;
13710 *)
13711 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13712 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13713 ;;
13714 esac
13715 ;;
13716
13717 tandem*)
13718 case $cc_basename in
13719 NCC*)
13720 # NonStop-UX NCC 3.20
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13723 ;;
13724 *)
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13727 ;;
13728 esac
13729 ;;
13730
13731 vxworks*)
13732 # FIXME: insert proper C++ library support
13733 ld_shlibs_CXX=no
13734 ;;
13735
13736 *)
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13739 ;;
13740 esac
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13743$as_echo "$ld_shlibs_CXX" >&6; }
13744 test "$ld_shlibs_CXX" = no && can_build_shared=no
13745
13746 GCC_CXX="$GXX"
13747 LD_CXX="$LD"
13748
13749 ## CAVEAT EMPTOR:
13750 ## There is no encapsulation within the following macros, do not change
13751 ## the running order or otherwise move them around unless you know exactly
13752 ## what you are doing...
13753 # Dependencies to place before and after the object being linked:
13754predep_objects_CXX=
13755postdep_objects_CXX=
13756predeps_CXX=
13757postdeps_CXX=
13758compiler_lib_search_path_CXX=
13759
13760cat > conftest.$ac_ext <<_LT_EOF
13761class Foo
13762{
13763public:
13764 Foo (void) { a = 0; }
13765private:
13766 int a;
13767};
13768_LT_EOF
13769
13770if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13771 (eval $ac_compile) 2>&5
13772 ac_status=$?
13773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13774 test $ac_status = 0; }; then
13775 # Parse the compiler output and extract the necessary
13776 # objects, libraries and library flags.
13777
13778 # Sentinel used to keep track of whether or not we are before
13779 # the conftest object file.
13780 pre_test_object_deps_done=no
13781
13782 for p in `eval "$output_verbose_link_cmd"`; do
13783 case $p in
13784
13785 -L* | -R* | -l*)
13786 # Some compilers place space between "-{L,R}" and the path.
13787 # Remove the space.
13788 if test $p = "-L" ||
13789 test $p = "-R"; then
13790 prev=$p
13791 continue
13792 else
13793 prev=
13794 fi
13795
13796 if test "$pre_test_object_deps_done" = no; then
13797 case $p in
13798 -L* | -R*)
13799 # Internal compiler library paths should come after those
13800 # provided the user. The postdeps already come after the
13801 # user supplied libs so there is no need to process them.
13802 if test -z "$compiler_lib_search_path_CXX"; then
13803 compiler_lib_search_path_CXX="${prev}${p}"
13804 else
13805 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13806 fi
13807 ;;
13808 # The "-l" case would never come before the object being
13809 # linked, so don't bother handling this case.
13810 esac
13811 else
13812 if test -z "$postdeps_CXX"; then
13813 postdeps_CXX="${prev}${p}"
13814 else
13815 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13816 fi
13817 fi
13818 ;;
13819
13820 *.$objext)
13821 # This assumes that the test object file only shows up
13822 # once in the compiler output.
13823 if test "$p" = "conftest.$objext"; then
13824 pre_test_object_deps_done=yes
13825 continue
13826 fi
13827
13828 if test "$pre_test_object_deps_done" = no; then
13829 if test -z "$predep_objects_CXX"; then
13830 predep_objects_CXX="$p"
13831 else
13832 predep_objects_CXX="$predep_objects_CXX $p"
13833 fi
13834 else
13835 if test -z "$postdep_objects_CXX"; then
13836 postdep_objects_CXX="$p"
13837 else
13838 postdep_objects_CXX="$postdep_objects_CXX $p"
13839 fi
13840 fi
13841 ;;
13842
13843 *) ;; # Ignore the rest.
13844
13845 esac
13846 done
13847
13848 # Clean up.
13849 rm -f a.out a.exe
13850else
13851 echo "libtool.m4: error: problem compiling CXX test program"
13852fi
13853
13854$RM -f confest.$objext
13855
13856# PORTME: override above test on systems where it is broken
13857case $host_os in
13858interix[3-9]*)
13859 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13860 # hack all around it, let's just trust "g++" to DTRT.
13861 predep_objects_CXX=
13862 postdep_objects_CXX=
13863 postdeps_CXX=
13864 ;;
13865
13866linux*)
13867 case `$CC -V 2>&1 | sed 5q` in
13868 *Sun\ C*)
13869 # Sun C++ 5.9
13870
13871 # The more standards-conforming stlport4 library is
13872 # incompatible with the Cstd library. Avoid specifying
13873 # it if it's in CXXFLAGS. Ignore libCrun as
13874 # -library=stlport4 depends on it.
13875 case " $CXX $CXXFLAGS " in
13876 *" -library=stlport4 "*)
13877 solaris_use_stlport4=yes
13878 ;;
13879 esac
13880
13881 if test "$solaris_use_stlport4" != yes; then
13882 postdeps_CXX='-library=Cstd -library=Crun'
13883 fi
13884 ;;
13885 esac
13886 ;;
13887
13888solaris*)
13889 case $cc_basename in
13890 CC*)
13891 # The more standards-conforming stlport4 library is
13892 # incompatible with the Cstd library. Avoid specifying
13893 # it if it's in CXXFLAGS. Ignore libCrun as
13894 # -library=stlport4 depends on it.
13895 case " $CXX $CXXFLAGS " in
13896 *" -library=stlport4 "*)
13897 solaris_use_stlport4=yes
13898 ;;
13899 esac
13900
13901 # Adding this requires a known-good setup of shared libraries for
13902 # Sun compiler versions before 5.6, else PIC objects from an old
13903 # archive will be linked into the output, leading to subtle bugs.
13904 if test "$solaris_use_stlport4" != yes; then
13905 postdeps_CXX='-library=Cstd -library=Crun'
13906 fi
13907 ;;
13908 esac
13909 ;;
13910esac
13911
13912
13913case " $postdeps_CXX " in
13914*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13915esac
13916 compiler_lib_search_dirs_CXX=
13917if test -n "${compiler_lib_search_path_CXX}"; then
13918 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13919fi
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 lt_prog_compiler_wl_CXX=
13952lt_prog_compiler_pic_CXX=
13953lt_prog_compiler_static_CXX=
13954
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13956$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13957
13958 # C++ specific cases for pic, static, wl, etc.
13959 if test "$GXX" = yes; then
13960 lt_prog_compiler_wl_CXX='-Wl,'
13961 lt_prog_compiler_static_CXX='-static'
13962
13963 case $host_os in
13964 aix*)
13965 # All AIX code is PIC.
13966 if test "$host_cpu" = ia64; then
13967 # AIX 5 now supports IA64 processor
13968 lt_prog_compiler_static_CXX='-Bstatic'
13969 fi
52204357 13970 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13971 ;;
13972
13973 amigaos*)
13974 case $host_cpu in
13975 powerpc)
13976 # see comment about AmigaOS4 .so support
13977 lt_prog_compiler_pic_CXX='-fPIC'
13978 ;;
13979 m68k)
13980 # FIXME: we need at least 68020 code to build shared libraries, but
13981 # adding the `-m68020' flag to GCC prevents building anything better,
13982 # like `-m68040'.
13983 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13984 ;;
13985 esac
13986 ;;
13987
13988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13989 # PIC is the default for these OSes.
13990 ;;
13991 mingw* | cygwin* | os2* | pw32* | cegcc*)
13992 # This hack is so that the source file can tell whether it is being
13993 # built for inclusion in a dll (and should export symbols for example).
13994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13995 # (--disable-auto-import) libraries
13996 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13997 ;;
13998 darwin* | rhapsody*)
13999 # PIC is the default on this platform
14000 # Common symbols not allowed in MH_DYLIB files
14001 lt_prog_compiler_pic_CXX='-fno-common'
14002 ;;
14003 *djgpp*)
14004 # DJGPP does not support shared libraries at all
14005 lt_prog_compiler_pic_CXX=
14006 ;;
14007 haiku*)
14008 # PIC is the default for Haiku.
14009 # The "-static" flag exists, but is broken.
14010 lt_prog_compiler_static_CXX=
14011 ;;
14012 interix[3-9]*)
14013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14014 # Instead, we relocate shared libraries at runtime.
14015 ;;
14016 sysv4*MP*)
14017 if test -d /usr/nec; then
14018 lt_prog_compiler_pic_CXX=-Kconform_pic
14019 fi
14020 ;;
14021 hpux*)
14022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14024 # sets the default TLS model and affects inlining.
14025 case $host_cpu in
14026 hppa*64*)
14027 ;;
14028 *)
14029 lt_prog_compiler_pic_CXX='-fPIC'
14030 ;;
14031 esac
14032 ;;
14033 *qnx* | *nto*)
14034 # QNX uses GNU C++, but need to define -shared option too, otherwise
14035 # it will coredump.
14036 lt_prog_compiler_pic_CXX='-fPIC -shared'
14037 ;;
14038 *)
14039 lt_prog_compiler_pic_CXX='-fPIC'
14040 ;;
14041 esac
14042 else
14043 case $host_os in
14044 aix[4-9]*)
14045 # All AIX code is PIC.
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 now supports IA64 processor
14048 lt_prog_compiler_static_CXX='-Bstatic'
14049 else
14050 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14051 fi
14052 ;;
14053 chorus*)
14054 case $cc_basename in
14055 cxch68*)
14056 # Green Hills C++ Compiler
14057 # _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"
14058 ;;
14059 esac
14060 ;;
14061 dgux*)
14062 case $cc_basename in
14063 ec++*)
14064 lt_prog_compiler_pic_CXX='-KPIC'
14065 ;;
14066 ghcx*)
14067 # Green Hills C++ Compiler
14068 lt_prog_compiler_pic_CXX='-pic'
14069 ;;
14070 *)
14071 ;;
14072 esac
14073 ;;
14074 freebsd* | dragonfly*)
14075 # FreeBSD uses GNU C++
14076 ;;
14077 hpux9* | hpux10* | hpux11*)
14078 case $cc_basename in
14079 CC*)
14080 lt_prog_compiler_wl_CXX='-Wl,'
14081 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14082 if test "$host_cpu" != ia64; then
14083 lt_prog_compiler_pic_CXX='+Z'
14084 fi
14085 ;;
14086 aCC*)
14087 lt_prog_compiler_wl_CXX='-Wl,'
14088 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14089 case $host_cpu in
14090 hppa*64*|ia64*)
14091 # +Z the default
14092 ;;
14093 *)
14094 lt_prog_compiler_pic_CXX='+Z'
14095 ;;
14096 esac
14097 ;;
14098 *)
14099 ;;
14100 esac
14101 ;;
14102 interix*)
14103 # This is c89, which is MS Visual C++ (no shared libs)
14104 # Anyone wants to do a port?
14105 ;;
14106 irix5* | irix6* | nonstopux*)
14107 case $cc_basename in
14108 CC*)
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_static_CXX='-non_shared'
14111 # CC pic flag -KPIC is the default.
14112 ;;
14113 *)
14114 ;;
14115 esac
14116 ;;
14117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14118 case $cc_basename in
14119 KCC*)
14120 # KAI C++ Compiler
14121 lt_prog_compiler_wl_CXX='--backend -Wl,'
14122 lt_prog_compiler_pic_CXX='-fPIC'
14123 ;;
14124 ecpc* )
14125 # old Intel C++ for x86_64 which still supported -KPIC.
14126 lt_prog_compiler_wl_CXX='-Wl,'
14127 lt_prog_compiler_pic_CXX='-KPIC'
14128 lt_prog_compiler_static_CXX='-static'
14129 ;;
14130 icpc* )
14131 # Intel C++, used to be incompatible with GCC.
14132 # ICC 10 doesn't accept -KPIC any more.
14133 lt_prog_compiler_wl_CXX='-Wl,'
14134 lt_prog_compiler_pic_CXX='-fPIC'
14135 lt_prog_compiler_static_CXX='-static'
14136 ;;
14137 pgCC* | pgcpp*)
14138 # Portland Group C++ compiler
14139 lt_prog_compiler_wl_CXX='-Wl,'
14140 lt_prog_compiler_pic_CXX='-fpic'
14141 lt_prog_compiler_static_CXX='-Bstatic'
14142 ;;
14143 cxx*)
14144 # Compaq C++
14145 # Make sure the PIC flag is empty. It appears that all Alpha
14146 # Linux and Compaq Tru64 Unix objects are PIC.
14147 lt_prog_compiler_pic_CXX=
14148 lt_prog_compiler_static_CXX='-non_shared'
14149 ;;
14150 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14151 # IBM XL 8.0, 9.0 on PPC and BlueGene
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 lt_prog_compiler_pic_CXX='-qpic'
14154 lt_prog_compiler_static_CXX='-qstaticlink'
14155 ;;
14156 *)
14157 case `$CC -V 2>&1 | sed 5q` in
14158 *Sun\ C*)
14159 # Sun C++ 5.9
14160 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_static_CXX='-Bstatic'
14162 lt_prog_compiler_wl_CXX='-Qoption ld '
14163 ;;
14164 esac
14165 ;;
14166 esac
14167 ;;
14168 lynxos*)
14169 ;;
14170 m88k*)
14171 ;;
14172 mvs*)
14173 case $cc_basename in
14174 cxx*)
14175 lt_prog_compiler_pic_CXX='-W c,exportall'
14176 ;;
14177 *)
14178 ;;
14179 esac
14180 ;;
14181 netbsd*)
14182 ;;
14183 *qnx* | *nto*)
14184 # QNX uses GNU C++, but need to define -shared option too, otherwise
14185 # it will coredump.
14186 lt_prog_compiler_pic_CXX='-fPIC -shared'
14187 ;;
14188 osf3* | osf4* | osf5*)
14189 case $cc_basename in
14190 KCC*)
14191 lt_prog_compiler_wl_CXX='--backend -Wl,'
14192 ;;
14193 RCC*)
14194 # Rational C++ 2.4.1
14195 lt_prog_compiler_pic_CXX='-pic'
14196 ;;
14197 cxx*)
14198 # Digital/Compaq C++
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 # Make sure the PIC flag is empty. It appears that all Alpha
14201 # Linux and Compaq Tru64 Unix objects are PIC.
14202 lt_prog_compiler_pic_CXX=
14203 lt_prog_compiler_static_CXX='-non_shared'
14204 ;;
14205 *)
14206 ;;
14207 esac
14208 ;;
14209 psos*)
14210 ;;
14211 solaris*)
14212 case $cc_basename in
14213 CC*)
14214 # Sun C++ 4.2, 5.x and Centerline C++
14215 lt_prog_compiler_pic_CXX='-KPIC'
14216 lt_prog_compiler_static_CXX='-Bstatic'
14217 lt_prog_compiler_wl_CXX='-Qoption ld '
14218 ;;
14219 gcx*)
14220 # Green Hills C++ Compiler
14221 lt_prog_compiler_pic_CXX='-PIC'
14222 ;;
14223 *)
14224 ;;
14225 esac
14226 ;;
14227 sunos4*)
14228 case $cc_basename in
14229 CC*)
14230 # Sun C++ 4.x
14231 lt_prog_compiler_pic_CXX='-pic'
14232 lt_prog_compiler_static_CXX='-Bstatic'
14233 ;;
14234 lcc*)
14235 # Lucid
14236 lt_prog_compiler_pic_CXX='-pic'
14237 ;;
14238 *)
14239 ;;
14240 esac
14241 ;;
14242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14243 case $cc_basename in
14244 CC*)
14245 lt_prog_compiler_wl_CXX='-Wl,'
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 lt_prog_compiler_static_CXX='-Bstatic'
14248 ;;
14249 esac
14250 ;;
14251 tandem*)
14252 case $cc_basename in
14253 NCC*)
14254 # NonStop-UX NCC 3.20
14255 lt_prog_compiler_pic_CXX='-KPIC'
14256 ;;
14257 *)
14258 ;;
14259 esac
14260 ;;
14261 vxworks*)
14262 ;;
14263 *)
14264 lt_prog_compiler_can_build_shared_CXX=no
14265 ;;
14266 esac
14267 fi
14268
14269case $host_os in
14270 # For platforms which do not support PIC, -DPIC is meaningless:
14271 *djgpp*)
14272 lt_prog_compiler_pic_CXX=
14273 ;;
14274 *)
14275 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14276 ;;
14277esac
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14279$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14280
14281
14282
14283#
14284# Check to make sure the PIC flag actually works.
14285#
14286if test -n "$lt_prog_compiler_pic_CXX"; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14288$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
d0ac1c44 14289if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
3cb62297
L
14290 $as_echo_n "(cached) " >&6
14291else
14292 lt_cv_prog_compiler_pic_works_CXX=no
14293 ac_outfile=conftest.$ac_objext
14294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14295 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14296 # Insert the option either (1) after the last *FLAGS variable, or
14297 # (2) before a word containing "conftest.", or (3) at the end.
14298 # Note that $ac_compile itself does not contain backslashes and begins
14299 # with a dollar sign (not a hyphen), so the echo should work correctly.
14300 # The option is referenced via a variable to avoid confusing sed.
14301 lt_compile=`echo "$ac_compile" | $SED \
14302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14304 -e 's:$: $lt_compiler_flag:'`
14305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14306 (eval "$lt_compile" 2>conftest.err)
14307 ac_status=$?
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 if (exit $ac_status) && test -s "$ac_outfile"; then
14311 # The compiler can only warn and ignore the option if not recognized
14312 # So say no if there are warnings other than the usual output.
14313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14316 lt_cv_prog_compiler_pic_works_CXX=yes
14317 fi
14318 fi
14319 $RM conftest*
14320
14321fi
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14323$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14324
14325if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14326 case $lt_prog_compiler_pic_CXX in
14327 "" | " "*) ;;
14328 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14329 esac
14330else
14331 lt_prog_compiler_pic_CXX=
14332 lt_prog_compiler_can_build_shared_CXX=no
14333fi
14334
14335fi
14336
14337
14338
14339#
14340# Check to make sure the static flag actually works.
14341#
14342wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14344$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 14345if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
3cb62297
L
14346 $as_echo_n "(cached) " >&6
14347else
14348 lt_cv_prog_compiler_static_works_CXX=no
14349 save_LDFLAGS="$LDFLAGS"
14350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14353 # The linker can only warn and ignore the option if not recognized
14354 # So say no if there are warnings
14355 if test -s conftest.err; then
14356 # Append any errors to the config.log.
14357 cat conftest.err 1>&5
14358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14360 if diff conftest.exp conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_static_works_CXX=yes
14362 fi
14363 else
14364 lt_cv_prog_compiler_static_works_CXX=yes
14365 fi
14366 fi
14367 $RM -r conftest*
14368 LDFLAGS="$save_LDFLAGS"
14369
14370fi
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14372$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14373
14374if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14375 :
14376else
14377 lt_prog_compiler_static_CXX=
14378fi
14379
14380
14381
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14384$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14385if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14386 $as_echo_n "(cached) " >&6
14387else
14388 lt_cv_prog_compiler_c_o_CXX=no
14389 $RM -r conftest 2>/dev/null
14390 mkdir conftest
14391 cd conftest
14392 mkdir out
14393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14394
14395 lt_compiler_flag="-o out/conftest2.$ac_objext"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 lt_compile=`echo "$ac_compile" | $SED \
14401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14403 -e 's:$: $lt_compiler_flag:'`
14404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14405 (eval "$lt_compile" 2>out/conftest.err)
14406 ac_status=$?
14407 cat out/conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14410 then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings
14413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14416 lt_cv_prog_compiler_c_o_CXX=yes
14417 fi
14418 fi
14419 chmod u+w . 2>&5
14420 $RM conftest*
14421 # SGI C++ compiler will create directory out/ii_files/ for
14422 # template instantiation
14423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14424 $RM out/* && rmdir out
14425 cd ..
14426 $RM -r conftest
14427 $RM conftest*
14428
14429fi
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14431$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14432
14433
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14437if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14438 $as_echo_n "(cached) " >&6
14439else
14440 lt_cv_prog_compiler_c_o_CXX=no
14441 $RM -r conftest 2>/dev/null
14442 mkdir conftest
14443 cd conftest
14444 mkdir out
14445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14446
14447 lt_compiler_flag="-o out/conftest2.$ac_objext"
14448 # Insert the option either (1) after the last *FLAGS variable, or
14449 # (2) before a word containing "conftest.", or (3) at the end.
14450 # Note that $ac_compile itself does not contain backslashes and begins
14451 # with a dollar sign (not a hyphen), so the echo should work correctly.
14452 lt_compile=`echo "$ac_compile" | $SED \
14453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14455 -e 's:$: $lt_compiler_flag:'`
14456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14457 (eval "$lt_compile" 2>out/conftest.err)
14458 ac_status=$?
14459 cat out/conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14462 then
14463 # The compiler can only warn and ignore the option if not recognized
14464 # So say no if there are warnings
14465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_c_o_CXX=yes
14469 fi
14470 fi
14471 chmod u+w . 2>&5
14472 $RM conftest*
14473 # SGI C++ compiler will create directory out/ii_files/ for
14474 # template instantiation
14475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14476 $RM out/* && rmdir out
14477 cd ..
14478 $RM -r conftest
14479 $RM conftest*
14480
14481fi
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14483$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14484
14485
14486
14487
14488hard_links="nottested"
14489if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14490 # do not overwrite the value of need_locks provided by the user
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14492$as_echo_n "checking if we can lock with hard links... " >&6; }
14493 hard_links=yes
14494 $RM conftest*
14495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14496 touch conftest.a
14497 ln conftest.a conftest.b 2>&5 || hard_links=no
14498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14500$as_echo "$hard_links" >&6; }
14501 if test "$hard_links" = no; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14503$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14504 need_locks=warn
14505 fi
14506else
14507 need_locks=no
14508fi
14509
14510
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14513$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14514
14515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14516 case $host_os in
14517 aix[4-9]*)
14518 # If we're using GNU nm, then we don't want the "-C" option.
14519 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14520 # Also, AIX nm treats weak defined symbols like other global defined
14521 # symbols, whereas GNU nm marks them as "W".
14522 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14523 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'
14524 else
5c14705f 14525 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
14526 fi
14527 ;;
14528 pw32*)
14529 export_symbols_cmds_CXX="$ltdll_cmds"
14530 ;;
14531 cygwin* | mingw* | cegcc*)
14532 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'
14533 ;;
14534 *)
14535 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14536 ;;
14537 esac
14538 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14539
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14541$as_echo "$ld_shlibs_CXX" >&6; }
14542test "$ld_shlibs_CXX" = no && can_build_shared=no
14543
14544with_gnu_ld_CXX=$with_gnu_ld
14545
14546
14547
14548
14549
14550
14551#
14552# Do we need to explicitly link libc?
14553#
14554case "x$archive_cmds_need_lc_CXX" in
14555x|xyes)
14556 # Assume -lc should be added
14557 archive_cmds_need_lc_CXX=yes
14558
14559 if test "$enable_shared" = yes && test "$GCC" = yes; then
14560 case $archive_cmds_CXX in
14561 *'~'*)
14562 # FIXME: we may have to deal with multi-command sequences.
14563 ;;
14564 '$CC '*)
14565 # Test whether the compiler implicitly links with -lc since on some
14566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14567 # to ld, don't add -lc before -lgcc.
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14569$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 14570if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
3cb62297
L
14571 $as_echo_n "(cached) " >&6
14572else
14573 $RM conftest*
14574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14575
14576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14577 (eval $ac_compile) 2>&5
14578 ac_status=$?
14579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14580 test $ac_status = 0; } 2>conftest.err; then
14581 soname=conftest
14582 lib=conftest
14583 libobjs=conftest.$ac_objext
14584 deplibs=
14585 wl=$lt_prog_compiler_wl_CXX
14586 pic_flag=$lt_prog_compiler_pic_CXX
14587 compiler_flags=-v
14588 linker_flags=-v
14589 verstring=
14590 output_objdir=.
14591 libname=conftest
14592 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14593 allow_undefined_flag_CXX=
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14595 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14596 ac_status=$?
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; }
14599 then
14600 lt_cv_archive_cmds_need_lc_CXX=no
14601 else
14602 lt_cv_archive_cmds_need_lc_CXX=yes
14603 fi
14604 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14605 else
14606 cat conftest.err 1>&5
14607 fi
14608 $RM conftest*
14609
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14612$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14613 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14614 ;;
14615 esac
14616 fi
14617 ;;
14618esac
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
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14684$as_echo_n "checking dynamic linker characteristics... " >&6; }
14685
14686library_names_spec=
14687libname_spec='lib$name'
14688soname_spec=
14689shrext_cmds=".so"
14690postinstall_cmds=
14691postuninstall_cmds=
14692finish_cmds=
14693finish_eval=
14694shlibpath_var=
14695shlibpath_overrides_runpath=unknown
14696version_type=none
14697dynamic_linker="$host_os ld.so"
14698sys_lib_dlsearch_path_spec="/lib /usr/lib"
14699need_lib_prefix=unknown
14700hardcode_into_libs=no
14701
14702# when you set need_version to no, make sure it does not cause -set_version
14703# flags to be left without arguments
14704need_version=unknown
14705
14706case $host_os in
14707aix3*)
14708 version_type=linux
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14710 shlibpath_var=LIBPATH
14711
14712 # AIX 3 has no versioning support, so we append a major version to the name.
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 ;;
14715
14716aix[4-9]*)
14717 version_type=linux
14718 need_lib_prefix=no
14719 need_version=no
14720 hardcode_into_libs=yes
14721 if test "$host_cpu" = ia64; then
14722 # AIX 5 supports IA64
14723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 else
14726 # With GCC up to 2.95.x, collect2 would create an import file
14727 # for dependence libraries. The import file would start with
14728 # the line `#! .'. This would cause the generated library to
14729 # depend on `.', always an invalid library. This was fixed in
14730 # development snapshots of GCC prior to 3.0.
14731 case $host_os in
14732 aix4 | aix4.[01] | aix4.[01].*)
14733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14734 echo ' yes '
14735 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14736 :
14737 else
14738 can_build_shared=no
14739 fi
14740 ;;
14741 esac
14742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14743 # soname into executable. Probably we can add versioning support to
14744 # collect2, so additional links can be useful in future.
14745 if test "$aix_use_runtimelinking" = yes; then
14746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14747 # instead of lib<name>.a to let people know that these are not
14748 # typical AIX shared libraries.
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 else
14751 # We preserve .a as extension for shared libraries through AIX4.2
14752 # and later when we are not doing run time linking.
14753 library_names_spec='${libname}${release}.a $libname.a'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 fi
14756 shlibpath_var=LIBPATH
14757 fi
14758 ;;
14759
14760amigaos*)
14761 case $host_cpu in
14762 powerpc)
14763 # Since July 2007 AmigaOS4 officially supports .so libraries.
14764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 ;;
14767 m68k)
14768 library_names_spec='$libname.ixlibrary $libname.a'
14769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14770 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'
14771 ;;
14772 esac
14773 ;;
14774
14775beos*)
14776 library_names_spec='${libname}${shared_ext}'
14777 dynamic_linker="$host_os ld.so"
14778 shlibpath_var=LIBRARY_PATH
14779 ;;
14780
14781bsdi[45]*)
14782 version_type=linux
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14790 # the default ld.so.conf also contains /usr/contrib/lib and
14791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14792 # libtool to hard-code these into programs
14793 ;;
14794
14795cygwin* | mingw* | pw32* | cegcc*)
14796 version_type=windows
14797 shrext_cmds=".dll"
14798 need_version=no
14799 need_lib_prefix=no
14800
14801 case $GCC,$host_os in
14802 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14803 library_names_spec='$libname.dll.a'
14804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14805 postinstall_cmds='base_file=`basename \${file}`~
14806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14807 dldir=$destdir/`dirname \$dlpath`~
14808 test -d \$dldir || mkdir -p \$dldir~
14809 $install_prog $dir/$dlname \$dldir/$dlname~
14810 chmod a+x \$dldir/$dlname~
14811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14813 fi'
14814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14815 dlpath=$dir/\$dldll~
14816 $RM \$dlpath'
14817 shlibpath_overrides_runpath=yes
14818
14819 case $host_os in
14820 cygwin*)
14821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823
14824 ;;
14825 mingw* | cegcc*)
14826 # MinGW DLLs use traditional 'lib' prefix
14827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14828 ;;
14829 pw32*)
14830 # pw32 DLLs use 'pw' prefix rather than 'lib'
14831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14832 ;;
14833 esac
14834 ;;
14835
14836 *)
14837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14838 ;;
14839 esac
14840 dynamic_linker='Win32 ld.exe'
14841 # FIXME: first we should search . and the directory the executable is in
14842 shlibpath_var=PATH
14843 ;;
14844
14845darwin* | rhapsody*)
14846 dynamic_linker="$host_os dyld"
14847 version_type=darwin
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14851 soname_spec='${libname}${release}${major}$shared_ext'
14852 shlibpath_overrides_runpath=yes
14853 shlibpath_var=DYLD_LIBRARY_PATH
14854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14855
14856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14857 ;;
14858
14859dgux*)
14860 version_type=linux
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 ;;
14867
3cb62297
L
14868freebsd* | dragonfly*)
14869 # DragonFly does not have aout. When/if they implement a new
14870 # versioning mechanism, adjust this.
14871 if test -x /usr/bin/objformat; then
14872 objformat=`/usr/bin/objformat`
14873 else
14874 case $host_os in
6d2920c8 14875 freebsd[23].*) objformat=aout ;;
3cb62297
L
14876 *) objformat=elf ;;
14877 esac
14878 fi
14879 version_type=freebsd-$objformat
14880 case $version_type in
14881 freebsd-elf*)
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14883 need_version=no
14884 need_lib_prefix=no
14885 ;;
14886 freebsd-*)
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14888 need_version=yes
14889 ;;
14890 esac
14891 shlibpath_var=LD_LIBRARY_PATH
14892 case $host_os in
6d2920c8 14893 freebsd2.*)
3cb62297
L
14894 shlibpath_overrides_runpath=yes
14895 ;;
14896 freebsd3.[01]* | freebsdelf3.[01]*)
14897 shlibpath_overrides_runpath=yes
14898 hardcode_into_libs=yes
14899 ;;
14900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14902 shlibpath_overrides_runpath=no
14903 hardcode_into_libs=yes
14904 ;;
14905 *) # from 4.6 on, and DragonFly
14906 shlibpath_overrides_runpath=yes
14907 hardcode_into_libs=yes
14908 ;;
14909 esac
14910 ;;
14911
3cb62297
L
14912haiku*)
14913 version_type=linux
14914 need_lib_prefix=no
14915 need_version=no
14916 dynamic_linker="$host_os runtime_loader"
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 shlibpath_var=LIBRARY_PATH
14920 shlibpath_overrides_runpath=yes
14921 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14922 hardcode_into_libs=yes
14923 ;;
14924
14925hpux9* | hpux10* | hpux11*)
14926 # Give a soname corresponding to the major version so that dld.sl refuses to
14927 # link against other versions.
14928 version_type=sunos
14929 need_lib_prefix=no
14930 need_version=no
14931 case $host_cpu in
14932 ia64*)
14933 shrext_cmds='.so'
14934 hardcode_into_libs=yes
14935 dynamic_linker="$host_os dld.so"
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 if test "X$HPUX_IA64_MODE" = X32; then
14941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14942 else
14943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14944 fi
14945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14946 ;;
14947 hppa*64*)
14948 shrext_cmds='.sl'
14949 hardcode_into_libs=yes
14950 dynamic_linker="$host_os dld.sl"
14951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14957 ;;
14958 *)
14959 shrext_cmds='.sl'
14960 dynamic_linker="$host_os dld.sl"
14961 shlibpath_var=SHLIB_PATH
14962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 ;;
14966 esac
14967 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14968 postinstall_cmds='chmod 555 $lib'
14969 # or fails outright, so override atomically:
14970 install_override_mode=555
14971 ;;
14972
14973interix[3-9]*)
14974 version_type=linux
14975 need_lib_prefix=no
14976 need_version=no
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14980 shlibpath_var=LD_LIBRARY_PATH
14981 shlibpath_overrides_runpath=no
14982 hardcode_into_libs=yes
14983 ;;
14984
14985irix5* | irix6* | nonstopux*)
14986 case $host_os in
14987 nonstopux*) version_type=nonstopux ;;
14988 *)
14989 if test "$lt_cv_prog_gnu_ld" = yes; then
14990 version_type=linux
14991 else
14992 version_type=irix
14993 fi ;;
14994 esac
14995 need_lib_prefix=no
14996 need_version=no
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14999 case $host_os in
15000 irix5* | nonstopux*)
15001 libsuff= shlibsuff=
15002 ;;
15003 *)
15004 case $LD in # libtool.m4 will add one of these switches to LD
15005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15006 libsuff= shlibsuff= libmagic=32-bit;;
15007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15008 libsuff=32 shlibsuff=N32 libmagic=N32;;
15009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15011 *) libsuff= shlibsuff= libmagic=never-match;;
15012 esac
15013 ;;
15014 esac
15015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15016 shlibpath_overrides_runpath=no
15017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15019 hardcode_into_libs=yes
15020 ;;
15021
15022# No shared lib support for Linux oldld, aout, or coff.
15023linux*oldld* | linux*aout* | linux*coff*)
15024 dynamic_linker=no
15025 ;;
15026
15027# This must be Linux ELF.
64307045 15028linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3cb62297
L
15029 version_type=linux
15030 need_lib_prefix=no
15031 need_version=no
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15035 shlibpath_var=LD_LIBRARY_PATH
15036 shlibpath_overrides_runpath=no
15037
15038 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 15039 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
3cb62297
L
15040 $as_echo_n "(cached) " >&6
15041else
15042 lt_cv_shlibpath_overrides_runpath=no
15043 save_LDFLAGS=$LDFLAGS
15044 save_libdir=$libdir
15045 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15046 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048/* end confdefs.h. */
15049
15050int
15051main ()
15052{
15053
15054 ;
15055 return 0;
15056}
15057_ACEOF
15058if ac_fn_cxx_try_link "$LINENO"; then :
15059 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15060 lt_cv_shlibpath_overrides_runpath=yes
15061fi
15062fi
15063rm -f core conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
15065 LDFLAGS=$save_LDFLAGS
15066 libdir=$save_libdir
15067
15068fi
15069
15070 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15071
15072 # This implies no fast_install, which is unacceptable.
15073 # Some rework will be needed to allow for fast_install
15074 # before this can be enabled.
15075 hardcode_into_libs=yes
15076
15077 # Append ld.so.conf contents to the search path
15078 if test -f /etc/ld.so.conf; then
15079 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' ' '`
15080 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15081 fi
15082
15083 # We used to test for /lib/ld.so.1 and disable shared libraries on
15084 # powerpc, because MkLinux only supported shared libraries with the
15085 # GNU dynamic linker. Since this was broken with cross compilers,
15086 # most powerpc-linux boxes support dynamic linking these days and
15087 # people can always --disable-shared, the test was removed, and we
15088 # assume the GNU/Linux dynamic linker is in use.
15089 dynamic_linker='GNU/Linux ld.so'
15090 ;;
15091
15092netbsd*)
15093 version_type=sunos
15094 need_lib_prefix=no
15095 need_version=no
15096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15099 dynamic_linker='NetBSD (a.out) ld.so'
15100 else
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 dynamic_linker='NetBSD ld.elf_so'
15104 fi
15105 shlibpath_var=LD_LIBRARY_PATH
15106 shlibpath_overrides_runpath=yes
15107 hardcode_into_libs=yes
15108 ;;
15109
15110newsos6)
15111 version_type=linux
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=yes
15115 ;;
15116
15117*nto* | *qnx*)
15118 version_type=qnx
15119 need_lib_prefix=no
15120 need_version=no
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=no
15125 hardcode_into_libs=yes
15126 dynamic_linker='ldqnx.so'
15127 ;;
15128
15129openbsd*)
15130 version_type=sunos
15131 sys_lib_dlsearch_path_spec="/usr/lib"
15132 need_lib_prefix=no
15133 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15134 case $host_os in
15135 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15136 *) need_version=no ;;
15137 esac
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15142 case $host_os in
15143 openbsd2.[89] | openbsd2.[89].*)
15144 shlibpath_overrides_runpath=no
15145 ;;
15146 *)
15147 shlibpath_overrides_runpath=yes
15148 ;;
15149 esac
15150 else
15151 shlibpath_overrides_runpath=yes
15152 fi
15153 ;;
15154
15155os2*)
15156 libname_spec='$name'
15157 shrext_cmds=".dll"
15158 need_lib_prefix=no
15159 library_names_spec='$libname${shared_ext} $libname.a'
15160 dynamic_linker='OS/2 ld.exe'
15161 shlibpath_var=LIBPATH
15162 ;;
15163
15164osf3* | osf4* | osf5*)
15165 version_type=osf
15166 need_lib_prefix=no
15167 need_version=no
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15172 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15173 ;;
15174
15175rdos*)
15176 dynamic_linker=no
15177 ;;
15178
15179solaris*)
15180 version_type=linux
15181 need_lib_prefix=no
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=yes
15187 hardcode_into_libs=yes
15188 # ldd complains unless libraries are executable
15189 postinstall_cmds='chmod +x $lib'
15190 ;;
15191
15192sunos4*)
15193 version_type=sunos
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=yes
15198 if test "$with_gnu_ld" = yes; then
15199 need_lib_prefix=no
15200 fi
15201 need_version=yes
15202 ;;
15203
15204sysv4 | sysv4.3*)
15205 version_type=linux
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 case $host_vendor in
15210 sni)
15211 shlibpath_overrides_runpath=no
15212 need_lib_prefix=no
15213 runpath_var=LD_RUN_PATH
15214 ;;
15215 siemens)
15216 need_lib_prefix=no
15217 ;;
15218 motorola)
15219 need_lib_prefix=no
15220 need_version=no
15221 shlibpath_overrides_runpath=no
15222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15223 ;;
15224 esac
15225 ;;
15226
15227sysv4*MP*)
15228 if test -d /usr/nec ;then
15229 version_type=linux
15230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15231 soname_spec='$libname${shared_ext}.$major'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 fi
15234 ;;
15235
15236sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15237 version_type=freebsd-elf
15238 need_lib_prefix=no
15239 need_version=no
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15245 if test "$with_gnu_ld" = yes; then
15246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15247 else
15248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15249 case $host_os in
15250 sco3.2v5*)
15251 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15252 ;;
15253 esac
15254 fi
15255 sys_lib_dlsearch_path_spec='/usr/lib'
15256 ;;
15257
15258tpf*)
15259 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15260 version_type=linux
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 shlibpath_overrides_runpath=no
15266 hardcode_into_libs=yes
15267 ;;
15268
15269uts4*)
15270 version_type=linux
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 ;;
15275
15276*)
15277 dynamic_linker=no
15278 ;;
15279esac
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15281$as_echo "$dynamic_linker" >&6; }
15282test "$dynamic_linker" = no && can_build_shared=no
15283
15284variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15285if test "$GCC" = yes; then
15286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15287fi
15288
15289if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15290 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15291fi
15292if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15293 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15294fi
15295
3725885a 15296
ce2cded5 15297
ce2cded5 15298
ce2cded5 15299
d7040cdb 15300
ce2cded5 15301
ce2cded5 15302
ce2cded5 15303
d7040cdb 15304
ce2cded5
L
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
ce2cded5
L
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
b879806f
AM
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15334$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15335hardcode_action_CXX=
15336if test -n "$hardcode_libdir_flag_spec_CXX" ||
15337 test -n "$runpath_var_CXX" ||
15338 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15339
15340 # We can hardcode non-existent directories.
15341 if test "$hardcode_direct_CXX" != no &&
15342 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15343 # have to relink, otherwise we might link with an installed library
15344 # when we should be linking with a yet-to-be-installed one
15345 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15346 test "$hardcode_minus_L_CXX" != no; then
15347 # Linking always hardcodes the temporary library directory.
15348 hardcode_action_CXX=relink
15349 else
15350 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15351 hardcode_action_CXX=immediate
15352 fi
15353else
15354 # We cannot hardcode anything, or else we can only hardcode existing
15355 # directories.
15356 hardcode_action_CXX=unsupported
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15359$as_echo "$hardcode_action_CXX" >&6; }
15360
15361if test "$hardcode_action_CXX" = relink ||
15362 test "$inherit_rpath_CXX" = yes; then
15363 # Fast installation is not supported
15364 enable_fast_install=no
15365elif test "$shlibpath_overrides_runpath" = yes ||
15366 test "$enable_shared" = no; then
15367 # Fast installation is not necessary
15368 enable_fast_install=needless
15369fi
15370
15371
15372
15373
15374
15375
15376
15377 fi # test -n "$compiler"
15378
15379 CC=$lt_save_CC
15380 LDCXX=$LD
15381 LD=$lt_save_LD
15382 GCC=$lt_save_GCC
15383 with_gnu_ld=$lt_save_with_gnu_ld
15384 lt_cv_path_LDCXX=$lt_cv_path_LD
15385 lt_cv_path_LD=$lt_save_path_LD
15386 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15387 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15388fi # test "$_lt_caught_CXX_error" != yes
15389
15390ac_ext=c
15391ac_cpp='$CPP $CPPFLAGS'
15392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394ac_compiler_gnu=$ac_cv_c_compiler_gnu
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408 ac_config_commands="$ac_config_commands libtool"
15409
15410
15411
15412
15413# Only expand once:
15414
15415
15416
15417# The tests for host and target for $enable_largefile require
15418# canonical names.
15419
15420
15421
15422# As the $enable_largefile decision depends on --enable-plugins we must set it
15423# even in directories otherwise not depending on the $plugins option.
15424
15425
15426 maybe_plugins=no
15427 for ac_header in dlfcn.h
15428do :
15429 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15430"
d0ac1c44 15431if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
15432 cat >>confdefs.h <<_ACEOF
15433#define HAVE_DLFCN_H 1
15434_ACEOF
15435 maybe_plugins=yes
15436fi
15437
15438done
15439
15440 for ac_header in windows.h
15441do :
15442 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15443"
d0ac1c44 15444if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
15445 cat >>confdefs.h <<_ACEOF
15446#define HAVE_WINDOWS_H 1
15447_ACEOF
15448 maybe_plugins=yes
15449fi
15450
15451done
15452
15453
15454 # Check whether --enable-plugins was given.
15455if test "${enable_plugins+set}" = set; then :
15456 enableval=$enable_plugins; case "${enableval}" in
15457 no) plugins=no ;;
15458 *) plugins=yes
15459 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 15460 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
15461 fi ;;
15462 esac
15463else
15464 plugins=$maybe_plugins
15465
15466fi
15467
2974be62 15468 if test "$plugins" = "yes"; then
3cba8b6c
L
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15470$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 15471if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15472 $as_echo_n "(cached) " >&6
15473else
15474 ac_func_search_save_LIBS=$LIBS
15475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476/* end confdefs.h. */
15477
15478/* Override any GCC internal prototype to avoid an error.
15479 Use char because int might match the return type of a GCC
15480 builtin and then its argument prototype would still apply. */
15481#ifdef __cplusplus
15482extern "C"
15483#endif
3cba8b6c 15484char dlsym ();
2974be62
AM
15485int
15486main ()
15487{
3cba8b6c 15488return dlsym ();
2974be62
AM
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493for ac_lib in '' dl; do
15494 if test -z "$ac_lib"; then
15495 ac_res="none required"
15496 else
15497 ac_res=-l$ac_lib
15498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15499 fi
15500 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 15501 ac_cv_search_dlsym=$ac_res
2974be62
AM
15502fi
15503rm -f core conftest.err conftest.$ac_objext \
15504 conftest$ac_exeext
d0ac1c44 15505 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15506 break
15507fi
15508done
d0ac1c44 15509if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15510
15511else
3cba8b6c 15512 ac_cv_search_dlsym=no
2974be62
AM
15513fi
15514rm conftest.$ac_ext
15515LIBS=$ac_func_search_save_LIBS
15516fi
3cba8b6c
L
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15518$as_echo "$ac_cv_search_dlsym" >&6; }
15519ac_res=$ac_cv_search_dlsym
2974be62
AM
15520if test "$ac_res" != no; then :
15521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15522
15523fi
15524
15525 fi
b879806f
AM
15526
15527
15528case "${host}" in
c8693053
RO
15529 sparc-*-solaris*|i?86-*-solaris*)
15530 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15531 # were mutually exclusive until Solaris 11.3. Without procfs support,
15532 # the bfd/ elf module cannot provide certain routines such as
15533 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15534 # explicitly requested large-file support through the
15535 # --enable-largefile switch, disable large-file support in favor of
15536 # procfs support.
15537 #
15538 # Check if <sys/procfs.h> is incompatible with large-file support.
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540/* end confdefs.h. */
15541#define _FILE_OFFSET_BITS 64
15542#define _STRUCTURED_PROC 1
15543#include <sys/procfs.h>
15544int
15545main ()
15546{
15547
15548 ;
15549 return 0;
15550}
15551_ACEOF
15552if ac_fn_c_try_compile "$LINENO"; then :
15553 acx_cv_procfs_lfs=yes
15554else
15555 acx_cv_procfs_lfs=no
15556fi
15557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 #
15559 # Forcefully disable large-file support only if necessary, gdb is in
15560 # tree and enabled.
15561 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15562 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15563 : ${enable_largefile="no"}
15564 if test "$plugins" = yes; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15566plugin support disabled; require large-file support which is incompatible with GDB." >&5
15567$as_echo "$as_me: WARNING:
15568plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15569 plugins=no
15570 fi
15571 fi
15572 #
15573 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15574 # benefit of g++ 9+ which predefines it on Solaris.
15575 if test "$enable_largefile" = no; then
15576 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15577
15578 fi
b879806f
AM
15579 ;;
15580esac
15581
15582# Check whether --enable-largefile was given.
15583if test "${enable_largefile+set}" = set; then :
15584 enableval=$enable_largefile;
15585fi
15586
15587if test "$enable_largefile" != no; then
15588
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15590$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 15591if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
15592 $as_echo_n "(cached) " >&6
15593else
15594 ac_cv_sys_largefile_CC=no
15595 if test "$GCC" != yes; then
15596 ac_save_CC=$CC
15597 while :; do
15598 # IRIX 6.2 and later do not support large files by default,
15599 # so use the C compiler's -n32 option if that helps.
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601/* end confdefs.h. */
15602#include <sys/types.h>
15603 /* Check that off_t can represent 2**63 - 1 correctly.
15604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15605 since some C++ compilers masquerading as C compilers
15606 incorrectly reject 9223372036854775807. */
e0b2a78c 15607#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15609 && LARGE_OFF_T % 2147483647 == 1)
15610 ? 1 : -1];
15611int
15612main ()
15613{
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 break
15621fi
15622rm -f core conftest.err conftest.$ac_objext
15623 CC="$CC -n32"
15624 if ac_fn_c_try_compile "$LINENO"; then :
15625 ac_cv_sys_largefile_CC=' -n32'; break
15626fi
15627rm -f core conftest.err conftest.$ac_objext
15628 break
15629 done
15630 CC=$ac_save_CC
15631 rm -f conftest.$ac_ext
15632 fi
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15635$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15636 if test "$ac_cv_sys_largefile_CC" != no; then
15637 CC=$CC$ac_cv_sys_largefile_CC
15638 fi
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15641$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 15642if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
15643 $as_echo_n "(cached) " >&6
15644else
15645 while :; do
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647/* end confdefs.h. */
15648#include <sys/types.h>
15649 /* Check that off_t can represent 2**63 - 1 correctly.
15650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15651 since some C++ compilers masquerading as C compilers
15652 incorrectly reject 9223372036854775807. */
e0b2a78c 15653#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15655 && LARGE_OFF_T % 2147483647 == 1)
15656 ? 1 : -1];
15657int
15658main ()
15659{
15660
15661 ;
15662 return 0;
15663}
15664_ACEOF
15665if ac_fn_c_try_compile "$LINENO"; then :
15666 ac_cv_sys_file_offset_bits=no; break
15667fi
15668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h. */
15671#define _FILE_OFFSET_BITS 64
15672#include <sys/types.h>
15673 /* Check that off_t can represent 2**63 - 1 correctly.
15674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15675 since some C++ compilers masquerading as C compilers
15676 incorrectly reject 9223372036854775807. */
e0b2a78c 15677#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15679 && LARGE_OFF_T % 2147483647 == 1)
15680 ? 1 : -1];
15681int
15682main ()
15683{
15684
15685 ;
15686 return 0;
15687}
15688_ACEOF
15689if ac_fn_c_try_compile "$LINENO"; then :
15690 ac_cv_sys_file_offset_bits=64; break
15691fi
15692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693 ac_cv_sys_file_offset_bits=unknown
15694 break
15695done
15696fi
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15698$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15699case $ac_cv_sys_file_offset_bits in #(
15700 no | unknown) ;;
15701 *)
15702cat >>confdefs.h <<_ACEOF
15703#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15704_ACEOF
15705;;
15706esac
15707rm -rf conftest*
15708 if test $ac_cv_sys_file_offset_bits = unknown; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15710$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 15711if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
15712 $as_echo_n "(cached) " >&6
15713else
15714 while :; do
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716/* end confdefs.h. */
15717#include <sys/types.h>
15718 /* Check that off_t can represent 2**63 - 1 correctly.
15719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15720 since some C++ compilers masquerading as C compilers
15721 incorrectly reject 9223372036854775807. */
e0b2a78c 15722#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15724 && LARGE_OFF_T % 2147483647 == 1)
15725 ? 1 : -1];
15726int
15727main ()
15728{
15729
15730 ;
15731 return 0;
15732}
15733_ACEOF
15734if ac_fn_c_try_compile "$LINENO"; then :
15735 ac_cv_sys_large_files=no; break
15736fi
15737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739/* end confdefs.h. */
15740#define _LARGE_FILES 1
15741#include <sys/types.h>
15742 /* Check that off_t can represent 2**63 - 1 correctly.
15743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15744 since some C++ compilers masquerading as C compilers
15745 incorrectly reject 9223372036854775807. */
e0b2a78c 15746#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15748 && LARGE_OFF_T % 2147483647 == 1)
15749 ? 1 : -1];
15750int
15751main ()
15752{
15753
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758if ac_fn_c_try_compile "$LINENO"; then :
15759 ac_cv_sys_large_files=1; break
15760fi
15761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 ac_cv_sys_large_files=unknown
15763 break
15764done
15765fi
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15767$as_echo "$ac_cv_sys_large_files" >&6; }
15768case $ac_cv_sys_large_files in #(
15769 no | unknown) ;;
15770 *)
15771cat >>confdefs.h <<_ACEOF
15772#define _LARGE_FILES $ac_cv_sys_large_files
15773_ACEOF
15774;;
15775esac
15776rm -rf conftest*
15777 fi
d0ac1c44
SM
15778
15779
b879806f
AM
15780fi
15781
15782
15783
15784
15785# Check whether --with-lib-path was given.
15786if test "${with_lib_path+set}" = set; then :
15787 withval=$with_lib_path; LIB_PATH=$withval
15788fi
15789
15790# Check whether --enable-targets was given.
15791if test "${enable_targets+set}" = set; then :
15792 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 15793 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15794 ;;
b879806f
AM
15795 no) enable_targets= ;;
15796 *) enable_targets=$enableval ;;
15797esac
15798fi
15799# Check whether --enable-64-bit-bfd was given.
15800if test "${enable_64_bit_bfd+set}" = set; then :
15801 enableval=$enable_64_bit_bfd; case "${enableval}" in
15802 yes) want64=true ;;
15803 no) want64=false ;;
d0ac1c44 15804 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
b879806f
AM
15805esac
15806else
15807 want64=false
15808fi
15809
15810
15811# Check whether --with-sysroot was given.
15812if test "${with_sysroot+set}" = set; then :
15813 withval=$with_sysroot;
15814 case ${with_sysroot} in
15815 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15816 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15817 esac
15818
15819 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15820 use_sysroot=yes
15821
15822 if test "x$prefix" = xNONE; then
15823 test_prefix=/usr/local
15824 else
15825 test_prefix=$prefix
15826 fi
15827 if test "x$exec_prefix" = xNONE; then
15828 test_exec_prefix=$test_prefix
15829 else
15830 test_exec_prefix=$exec_prefix
15831 fi
15832 case ${TARGET_SYSTEM_ROOT} in
15833 "${test_prefix}"|"${test_prefix}/"*|\
15834 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15835 '${prefix}'|'${prefix}/'*|\
15836 '${exec_prefix}'|'${exec_prefix}/'*)
15837 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15838 TARGET_SYSTEM_ROOT_DEFINE="$t"
15839 ;;
15840 esac
15841
15842else
15843
15844 use_sysroot=no
15845 TARGET_SYSTEM_ROOT=
15846 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15847
15848fi
15849
15850
15851
15852
15853
15854# Check whether --enable-gold was given.
15855if test "${enable_gold+set}" = set; then :
15856 enableval=$enable_gold; case "${enableval}" in
15857 default)
15858 install_as_default=no
15859 installed_linker=ld.bfd
15860 ;;
15861 yes|no)
15862 install_as_default=yes
15863 installed_linker=ld.bfd
15864 ;;
15865 *)
d0ac1c44 15866 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
b879806f
AM
15867 ;;
15868 esac
15869else
15870 install_as_default=yes
15871 installed_linker=ld.bfd
15872fi
15873
15874
15875
15876
15877# Check whether --enable-got was given.
15878if test "${enable_got+set}" = set; then :
15879 enableval=$enable_got; case "${enableval}" in
15880 target | single | negative | multigot) got_handling=$enableval ;;
d0ac1c44 15881 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15882esac
15883else
15884 got_handling=target
15885fi
15886
15887
15888case "${got_handling}" in
15889 target)
15890
15891$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15892 ;;
15893 single)
15894
15895$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15896 ;;
15897 negative)
15898
15899$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15900 ;;
15901 multigot)
15902
15903$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15904 ;;
d0ac1c44 15905 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15906esac
15907
6c3bc0f8
NC
15908# PR gas/19109
15909# Decide the default method for compressing debug sections.
15910ac_default_compressed_debug_sections=unset
15911# Provide a configure time option to override our default.
15912# Check whether --enable-compressed_debug_sections was given.
15913if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15914 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15915 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15916 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15917esac
15918fi
15919
6734f10a
SB
15920# Decide setting DT_RUNPATH instead of DT_RPATH by default
15921ac_default_new_dtags=unset
15922# Provide a configure time option to override our default.
15923# Check whether --enable-new_dtags was given.
15924if test "${enable_new_dtags+set}" = set; then :
15925 enableval=$enable_new_dtags; case "${enableval}" in
15926 yes) ac_default_new_dtags=1 ;;
15927 no) ac_default_new_dtags=0 ;;
15928esac
15929fi
15930
647e4d46
L
15931# Decide if -z relro should be enabled in ELF linker by default.
15932ac_default_ld_z_relro=unset
15933# Provide a configure time option to override our default.
15934# Check whether --enable-relro was given.
15935if test "${enable_relro+set}" = set; then :
15936 enableval=$enable_relro; case "${enableval}" in
15937 yes) ac_default_ld_z_relro=1 ;;
15938 no) ac_default_ld_z_relro=0 ;;
15939esac
15940fi
15941
b32632c4
L
15942# Decide if DT_TEXTREL check should be enabled in ELF linker.
15943ac_default_ld_textrel_check=unset
15944# Check whether --enable-textrel-check was given.
15945if test "${enable_textrel_check+set}" = set; then :
15946 enableval=$enable_textrel_check; case "${enableval}" in
15947 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15948esac
15949fi
15950
15951
f6aec96d
L
15952# Decide if -z separate-code should be enabled in ELF linker by default.
15953ac_default_ld_z_separate_code=unset
15954# Check whether --enable-separate-code was given.
15955if test "${enable_separate_code+set}" = set; then :
15956 enableval=$enable_separate_code; case "${enableval}" in
15957 yes) ac_default_ld_z_separate_code=1 ;;
15958 no) ac_default_ld_z_separate_code=0 ;;
15959esac
15960fi
15961
15962
23ae20f5
NC
15963# Decide if --error-handling-script should be supported.
15964ac_support_error_handling_script=unset
15965# Check whether --enable-error-handling-script was given.
15966if test "${enable_error_handling_script+set}" = set; then :
15967 enableval=$enable_error_handling_script; case "${enableval}" in
15968 yes) ac_support_error_handling_script=1 ;;
15969 no) ac_support_error_handling_script=0 ;;
15970esac
15971fi
15972
15973
2760f24c
RG
15974# Decide which "--hash-style" to use by default
15975# Provide a configure time option to override our default.
15976# Check whether --enable-default-hash-style was given.
15977if test "${enable_default_hash_style+set}" = set; then :
15978 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15979 sysv | gnu | both) ;;
d0ac1c44 15980 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
2760f24c
RG
15981esac
15982else
15983 case "${target}" in
15984 # Enable gnu hash only on GNU targets, but not mips
15985 mips*-*-*) enable_default_hash_style=sysv ;;
15986 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15987 *) enable_default_hash_style=sysv ;;
15988esac
15989fi
15990
15991
15992case "${enable_default_hash_style}" in
15993 sysv | both) ac_default_emit_sysv_hash=1 ;;
15994 *) ac_default_emit_sysv_hash=0 ;;
15995esac
15996
15997case "${enable_default_hash_style}" in
15998 gnu | both) ac_default_emit_gnu_hash=1 ;;
15999 *) ac_default_emit_gnu_hash=0 ;;
16000esac
16001
094e34f2
NA
16002 # Check whether --enable-libctf was given.
16003if test "${enable_libctf+set}" = set; then :
16004 enableval=$enable_libctf;
16005 case "$enableval" in
16006 yes|no) ;;
16007 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
16008 esac
16009
16010else
16011 enable_libctf=yes
16012fi
16013
16014
16015if test "${enable_libctf}" = yes; then
16016
16017$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
16018
16019fi
16020 if test "${enable_libctf}" = yes; then
16021 ENABLE_LIBCTF_TRUE=
16022 ENABLE_LIBCTF_FALSE='#'
16023else
16024 ENABLE_LIBCTF_TRUE='#'
16025 ENABLE_LIBCTF_FALSE=
16026fi
16027
16028
b879806f 16029
7cdfc346 16030
b879806f
AM
16031# Set the 'development' global.
16032. $srcdir/../bfd/development.sh
16033
c5da1932
VZ
16034# Set acp_cpp_for_build variable
16035ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
16036
9780e045 16037# Default set of GCC warnings to enable.
b879806f 16038GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 16039GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
16040
16041# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
16042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043/* end confdefs.h. */
16044__GNUC__
16045_ACEOF
16046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 16047 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
ce2cded5 16048
3cb62297 16049else
b879806f 16050 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 16051fi
b879806f 16052rm -f conftest*
ce2cded5 16053
ce2cded5 16054
9780e045
NC
16055# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057/* end confdefs.h. */
16058__GNUC__
16059_ACEOF
16060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 16061 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
16062
16063else
16064 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
16065fi
16066rm -f conftest*
16067
16068
6757cf57
TS
16069# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
16070WARN_WRITE_STRINGS=""
16071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h. */
16073__GNUC__
16074_ACEOF
16075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 16076 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
16077
16078else
16079 WARN_WRITE_STRINGS="-Wwrite-strings"
16080fi
16081rm -f conftest*
16082
9780e045 16083
96fe4562 16084# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
16085
16086# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088/* end confdefs.h. */
16089__GNUC__
16090_ACEOF
16091if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 16092 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
16093
16094else
16095 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16096fi
16097rm -f conftest*
16098
16099
16100# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102/* end confdefs.h. */
16103__GNUC__
16104_ACEOF
16105if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 16106 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
16107
16108else
16109 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16110fi
16111rm -f conftest*
16112
16113
b879806f
AM
16114# Check whether --enable-werror was given.
16115if test "${enable_werror+set}" = set; then :
16116 enableval=$enable_werror; case "${enableval}" in
16117 yes | y) ERROR_ON_WARNING="yes" ;;
16118 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 16119 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
b879806f
AM
16120 esac
16121fi
ce2cded5
L
16122
16123
b879806f
AM
16124# Disable -Wformat by default when using gcc on mingw
16125case "${host}" in
16126 *-*-mingw32*)
16127 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16128 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 16129 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
16130 fi
16131 ;;
16132 *) ;;
16133esac
ce2cded5 16134
b879806f
AM
16135# Enable -Werror by default when using gcc. Turn it off for releases.
16136if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16137 ERROR_ON_WARNING=yes
16138fi
d7040cdb 16139
b879806f
AM
16140NO_WERROR=
16141if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 16142 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 16143 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
16144 NO_WERROR="-Wno-error"
16145fi
3cb62297 16146
b879806f
AM
16147if test "${GCC}" = yes ; then
16148 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 16149 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 16150fi
67310ccd 16151
b879806f
AM
16152# Check whether --enable-build-warnings was given.
16153if test "${enable_build_warnings+set}" = set; then :
16154 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
16155 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16156 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
16157 no) if test "${GCC}" = yes ; then
16158 WARN_CFLAGS="-w"
c5da1932 16159 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
16160 fi;;
16161 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16162 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16163 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 16164 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16165 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16166 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16167 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16168 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
16169esac
16170fi
67310ccd 16171
d7040cdb 16172
b879806f
AM
16173if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16174 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16175fi
d7040cdb 16176
d7040cdb 16177
d7040cdb 16178
d7040cdb 16179
ce2cded5
L
16180
16181
6757cf57 16182
c5da1932 16183
b879806f
AM
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16185$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 16186if ${am_cv_val_LC_MESSAGES+:} false; then :
b879806f
AM
16187 $as_echo_n "(cached) " >&6
16188else
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190/* end confdefs.h. */
16191#include <locale.h>
16192int
16193main ()
16194{
16195return LC_MESSAGES
16196 ;
16197 return 0;
16198}
16199_ACEOF
16200if ac_fn_c_try_link "$LINENO"; then :
16201 am_cv_val_LC_MESSAGES=yes
16202else
16203 am_cv_val_LC_MESSAGES=no
16204fi
16205rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16207fi
16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16209$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16210 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 16211
b879806f 16212$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 16213
b879806f 16214 fi
ce2cded5 16215
ce2cded5 16216
b879806f 16217ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
16218
16219
b879806f 16220# PR 14072
ce2cded5 16221
ce2cded5 16222
b879806f 16223if test -z "$target" ; then
d0ac1c44 16224 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
b879806f
AM
16225fi
16226if test -z "$host" ; then
d0ac1c44 16227 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
b879806f 16228fi
d7040cdb 16229
b879806f 16230# host-specific stuff:
d7040cdb 16231
e184813f 16232ALL_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
16233# If we haven't got the data from the intl directory,
16234# assume NLS is disabled.
16235USE_NLS=no
16236LIBINTL=
16237LIBINTL_DEP=
16238INCINTL=
16239XGETTEXT=
16240GMSGFMT=
16241POSUB=
16242
16243if test -f ../intl/config.intl; then
16244 . ../intl/config.intl
16245fi
81ecdfbb
RW
16246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16247$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 16248if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250$as_echo "no" >&6; }
d7040cdb 16251else
81ecdfbb
RW
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16253$as_echo "yes" >&6; }
d7040cdb 16254
81ecdfbb 16255$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
16256
16257
81ecdfbb
RW
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16259$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
16260 # Look for .po and .gmo files in the source directory.
16261 CATALOGS=
16262 XLINGUAS=
16263 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16264 # If there aren't any .gmo files the shell will give us the
16265 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16266 # weeded out.
16267 case "$cat" in *\**)
16268 continue;;
16269 esac
16270 # The quadruple backslash is collapsed to a double backslash
16271 # by the backticks, then collapsed again by the double quotes,
16272 # leaving us with one backslash in the sed expression (right
16273 # before the dot that mustn't act as a wildcard).
16274 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16275 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16276 # The user is allowed to set LINGUAS to a list of languages to
16277 # install catalogs for. If it's empty that means "all of them."
16278 if test "x$LINGUAS" = x; then
16279 CATALOGS="$CATALOGS $cat"
16280 XLINGUAS="$XLINGUAS $lang"
16281 else
16282 case "$LINGUAS" in *$lang*)
16283 CATALOGS="$CATALOGS $cat"
16284 XLINGUAS="$XLINGUAS $lang"
16285 ;;
16286 esac
16287 fi
16288 done
16289 LINGUAS="$XLINGUAS"
81ecdfbb
RW
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16291$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
16292
16293
16294 DATADIRNAME=share
16295
16296 INSTOBJEXT=.mo
16297
16298 GENCAT=gencat
16299
16300 CATOBJEXT=.gmo
16301
16302fi
16303
16304 MKINSTALLDIRS=
16305 if test -n "$ac_aux_dir"; then
16306 case "$ac_aux_dir" in
16307 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16308 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16309 esac
16310 fi
16311 if test -z "$MKINSTALLDIRS"; then
16312 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16313 fi
16314
16315
16316
81ecdfbb
RW
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16318$as_echo_n "checking whether NLS is requested... " >&6; }
16319 # Check whether --enable-nls was given.
16320if test "${enable_nls+set}" = set; then :
16321 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
16322else
16323 USE_NLS=yes
81ecdfbb
RW
16324fi
16325
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16327$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
16328
16329
16330
16331
16332
16333
16334# Prepare PATH_SEPARATOR.
16335# The user is always right.
16336if test "${PATH_SEPARATOR+set}" != set; then
16337 echo "#! /bin/sh" >conf$$.sh
16338 echo "exit 0" >>conf$$.sh
16339 chmod +x conf$$.sh
16340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16341 PATH_SEPARATOR=';'
16342 else
16343 PATH_SEPARATOR=:
16344 fi
16345 rm -f conf$$.sh
16346fi
16347
16348# Find out how to test for executable files. Don't use a zero-byte file,
16349# as systems may use methods other than mode bits to determine executability.
16350cat >conf$$.file <<_ASEOF
16351#! /bin/sh
16352exit 0
16353_ASEOF
16354chmod +x conf$$.file
16355if test -x conf$$.file >/dev/null 2>&1; then
16356 ac_executable_p="test -x"
16357else
16358 ac_executable_p="test -f"
16359fi
16360rm -f conf$$.file
16361
16362# Extract the first word of "msgfmt", so it can be a program name with args.
16363set dummy msgfmt; ac_word=$2
81ecdfbb
RW
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16365$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16366if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 16367 $as_echo_n "(cached) " >&6
d7040cdb
SE
16368else
16369 case "$MSGFMT" in
16370 [\\/]* | ?:[\\/]*)
16371 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16372 ;;
16373 *)
16374 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16375 for ac_dir in $PATH; do
16376 IFS="$ac_save_IFS"
16377 test -z "$ac_dir" && ac_dir=.
16378 for ac_exec_ext in '' $ac_executable_extensions; do
16379 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16380 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16381 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16382 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16383 break 2
16384 fi
16385 fi
16386 done
16387 done
16388 IFS="$ac_save_IFS"
16389 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16390 ;;
16391esac
16392fi
16393MSGFMT="$ac_cv_path_MSGFMT"
16394if test "$MSGFMT" != ":"; then
81ecdfbb
RW
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16396$as_echo "$MSGFMT" >&6; }
d7040cdb 16397else
81ecdfbb
RW
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16399$as_echo "no" >&6; }
d7040cdb
SE
16400fi
16401
16402 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16403set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
16404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16405$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16406if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 16407 $as_echo_n "(cached) " >&6
d7040cdb
SE
16408else
16409 case $GMSGFMT in
16410 [\\/]* | ?:[\\/]*)
16411 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16412 ;;
16413 *)
16414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415for as_dir in $PATH
16416do
16417 IFS=$as_save_IFS
16418 test -z "$as_dir" && as_dir=.
81ecdfbb 16419 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16421 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16423 break 2
16424 fi
16425done
81ecdfbb
RW
16426 done
16427IFS=$as_save_IFS
d7040cdb
SE
16428
16429 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16430 ;;
16431esac
16432fi
16433GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16434if test -n "$GMSGFMT"; then
81ecdfbb
RW
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16436$as_echo "$GMSGFMT" >&6; }
d7040cdb 16437else
81ecdfbb
RW
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439$as_echo "no" >&6; }
20e95c23 16440fi
42ecbf5e 16441
20e95c23 16442
252b5132 16443
81ecdfbb 16444
d7040cdb
SE
16445# Prepare PATH_SEPARATOR.
16446# The user is always right.
16447if test "${PATH_SEPARATOR+set}" != set; then
16448 echo "#! /bin/sh" >conf$$.sh
16449 echo "exit 0" >>conf$$.sh
16450 chmod +x conf$$.sh
16451 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16452 PATH_SEPARATOR=';'
16453 else
16454 PATH_SEPARATOR=:
16455 fi
16456 rm -f conf$$.sh
20e95c23 16457fi
252b5132 16458
d7040cdb
SE
16459# Find out how to test for executable files. Don't use a zero-byte file,
16460# as systems may use methods other than mode bits to determine executability.
16461cat >conf$$.file <<_ASEOF
16462#! /bin/sh
16463exit 0
16464_ASEOF
16465chmod +x conf$$.file
16466if test -x conf$$.file >/dev/null 2>&1; then
16467 ac_executable_p="test -x"
20e95c23 16468else
d7040cdb
SE
16469 ac_executable_p="test -f"
16470fi
16471rm -f conf$$.file
20e95c23 16472
d7040cdb
SE
16473# Extract the first word of "xgettext", so it can be a program name with args.
16474set dummy xgettext; ac_word=$2
81ecdfbb
RW
16475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16477if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 16478 $as_echo_n "(cached) " >&6
252b5132 16479else
d7040cdb
SE
16480 case "$XGETTEXT" in
16481 [\\/]* | ?:[\\/]*)
16482 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16483 ;;
16484 *)
16485 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16486 for ac_dir in $PATH; do
16487 IFS="$ac_save_IFS"
16488 test -z "$ac_dir" && ac_dir=.
16489 for ac_exec_ext in '' $ac_executable_extensions; do
16490 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16491 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16492 (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
16493 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16494 break 2
16495 fi
16496 fi
16497 done
16498 done
16499 IFS="$ac_save_IFS"
16500 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16501 ;;
16502esac
252b5132 16503fi
d7040cdb
SE
16504XGETTEXT="$ac_cv_path_XGETTEXT"
16505if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16507$as_echo "$XGETTEXT" >&6; }
d5fbea21 16508else
81ecdfbb
RW
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16510$as_echo "no" >&6; }
d5fbea21
DJ
16511fi
16512
d7040cdb 16513 rm -f messages.po
d5fbea21 16514
20e95c23 16515
d7040cdb
SE
16516# Prepare PATH_SEPARATOR.
16517# The user is always right.
16518if test "${PATH_SEPARATOR+set}" != set; then
16519 echo "#! /bin/sh" >conf$$.sh
16520 echo "exit 0" >>conf$$.sh
16521 chmod +x conf$$.sh
16522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16523 PATH_SEPARATOR=';'
16524 else
16525 PATH_SEPARATOR=:
16526 fi
16527 rm -f conf$$.sh
16528fi
20e95c23 16529
d7040cdb
SE
16530# Find out how to test for executable files. Don't use a zero-byte file,
16531# as systems may use methods other than mode bits to determine executability.
16532cat >conf$$.file <<_ASEOF
16533#! /bin/sh
16534exit 0
16535_ASEOF
16536chmod +x conf$$.file
16537if test -x conf$$.file >/dev/null 2>&1; then
16538 ac_executable_p="test -x"
16539else
16540 ac_executable_p="test -f"
16541fi
16542rm -f conf$$.file
20e95c23 16543
d7040cdb
SE
16544# Extract the first word of "msgmerge", so it can be a program name with args.
16545set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16547$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16548if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 16549 $as_echo_n "(cached) " >&6
d7040cdb
SE
16550else
16551 case "$MSGMERGE" in
16552 [\\/]* | ?:[\\/]*)
16553 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16554 ;;
16555 *)
16556 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16557 for ac_dir in $PATH; do
16558 IFS="$ac_save_IFS"
16559 test -z "$ac_dir" && ac_dir=.
16560 for ac_exec_ext in '' $ac_executable_extensions; do
16561 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16562 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16563 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16564 break 2
16565 fi
16566 fi
16567 done
16568 done
16569 IFS="$ac_save_IFS"
16570 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16571 ;;
16572esac
16573fi
16574MSGMERGE="$ac_cv_path_MSGMERGE"
16575if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16577$as_echo "$MSGMERGE" >&6; }
d7040cdb 16578else
81ecdfbb
RW
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580$as_echo "no" >&6; }
d7040cdb 16581fi
20e95c23
DJ
16582
16583
d7040cdb
SE
16584 if test "$GMSGFMT" != ":"; then
16585 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16586 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16587 : ;
16588 else
16589 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16591$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16592 GMSGFMT=":"
16593 fi
16594 fi
20e95c23 16595
d7040cdb
SE
16596 if test "$XGETTEXT" != ":"; then
16597 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16598 (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
16599 : ;
16600 else
81ecdfbb
RW
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16602$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16603 XGETTEXT=":"
16604 fi
16605 rm -f messages.po
20e95c23 16606 fi
42ecbf5e 16607
81ecdfbb 16608 ac_config_commands="$ac_config_commands default-1"
252b5132 16609
42ecbf5e 16610
252b5132 16611
42ecbf5e
DJ
16612
16613
d7040cdb 16614for ac_prog in 'bison -y' byacc
20e95c23 16615do
d7040cdb
SE
16616 # Extract the first word of "$ac_prog", so it can be a program name with args.
16617set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16619$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16620if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 16621 $as_echo_n "(cached) " >&6
20e95c23 16622else
d7040cdb
SE
16623 if test -n "$YACC"; then
16624 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16625else
d7040cdb
SE
16626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16627for as_dir in $PATH
16628do
16629 IFS=$as_save_IFS
16630 test -z "$as_dir" && as_dir=.
81ecdfbb 16631 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16633 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16635 break 2
16636 fi
16637done
81ecdfbb
RW
16638 done
16639IFS=$as_save_IFS
42ecbf5e 16640
42ecbf5e 16641fi
e5a52504 16642fi
d7040cdb
SE
16643YACC=$ac_cv_prog_YACC
16644if test -n "$YACC"; then
81ecdfbb
RW
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16646$as_echo "$YACC" >&6; }
42ecbf5e 16647else
81ecdfbb
RW
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649$as_echo "no" >&6; }
42ecbf5e 16650fi
252b5132 16651
81ecdfbb 16652
d7040cdb 16653 test -n "$YACC" && break
42ecbf5e 16654done
d7040cdb 16655test -n "$YACC" || YACC="yacc"
d15b04bd 16656
d7040cdb
SE
16657for ac_prog in flex lex
16658do
16659 # Extract the first word of "$ac_prog", so it can be a program name with args.
16660set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16662$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16663if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 16664 $as_echo_n "(cached) " >&6
d15b04bd 16665else
d7040cdb
SE
16666 if test -n "$LEX"; then
16667 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16668else
16669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16670for as_dir in $PATH
16671do
16672 IFS=$as_save_IFS
16673 test -z "$as_dir" && as_dir=.
81ecdfbb 16674 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16676 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16678 break 2
16679 fi
16680done
81ecdfbb
RW
16681 done
16682IFS=$as_save_IFS
d7040cdb
SE
16683
16684fi
16685fi
16686LEX=$ac_cv_prog_LEX
16687if test -n "$LEX"; then
81ecdfbb
RW
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16689$as_echo "$LEX" >&6; }
d7040cdb 16690else
81ecdfbb
RW
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692$as_echo "no" >&6; }
d15b04bd 16693fi
e5a52504 16694
81ecdfbb 16695
d7040cdb
SE
16696 test -n "$LEX" && break
16697done
16698test -n "$LEX" || LEX=":"
42ecbf5e 16699
3d961d0d
AM
16700case "$LEX" in
16701 :|*"missing "*) ;;
16702 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16703%%
16704a { ECHO; }
16705b { REJECT; }
16706c { yymore (); }
16707d { yyless (1); }
d0ac1c44
SM
16708e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16709 yyless ((input () != 0)); }
81ecdfbb
RW
16710f { unput (yytext[0]); }
16711. { BEGIN INITIAL; }
16712%%
16713#ifdef YYTEXT_POINTER
16714extern char *yytext;
d7040cdb 16715#endif
42ecbf5e 16716int
81ecdfbb 16717main (void)
42ecbf5e 16718{
81ecdfbb 16719 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16720}
16721_ACEOF
81ecdfbb
RW
16722{ { ac_try="$LEX conftest.l"
16723case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16728$as_echo "$ac_try_echo"; } >&5
16729 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16730 ac_status=$?
81ecdfbb
RW
16731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16732 test $ac_status = 0; }
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16734$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 16735if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 16736 $as_echo_n "(cached) " >&6
42ecbf5e 16737else
42ecbf5e 16738
81ecdfbb
RW
16739if test -f lex.yy.c; then
16740 ac_cv_prog_lex_root=lex.yy
16741elif test -f lexyy.c; then
16742 ac_cv_prog_lex_root=lexyy
16743else
d0ac1c44 16744 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16745fi
42ecbf5e 16746fi
81ecdfbb
RW
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16748$as_echo "$ac_cv_prog_lex_root" >&6; }
16749LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16750
81ecdfbb
RW
16751if test -z "${LEXLIB+set}"; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16753$as_echo_n "checking lex library... " >&6; }
d0ac1c44 16754if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 16755 $as_echo_n "(cached) " >&6
252b5132 16756else
20e95c23 16757
81ecdfbb
RW
16758 ac_save_LIBS=$LIBS
16759 ac_cv_lib_lex='none needed'
16760 for ac_lib in '' -lfl -ll; do
16761 LIBS="$ac_lib $ac_save_LIBS"
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h. */
16764`cat $LEX_OUTPUT_ROOT.c`
16765_ACEOF
16766if ac_fn_c_try_link "$LINENO"; then :
16767 ac_cv_lib_lex=$ac_lib
20e95c23 16768fi
81ecdfbb
RW
16769rm -f core conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16771 test "$ac_cv_lib_lex" != 'none needed' && break
16772 done
16773 LIBS=$ac_save_LIBS
20e95c23
DJ
16774
16775fi
81ecdfbb
RW
16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16777$as_echo "$ac_cv_lib_lex" >&6; }
16778 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16779fi
20e95c23 16780
20e95c23 16781
81ecdfbb
RW
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16783$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 16784if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 16785 $as_echo_n "(cached) " >&6
d7040cdb
SE
16786else
16787 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16788# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16789# not all implementations provide the %pointer and %array declarations.
16790ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16791ac_save_LIBS=$LIBS
81ecdfbb
RW
16792LIBS="$LEXLIB $ac_save_LIBS"
16793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h. */
d0ac1c44
SM
16795
16796 #define YYTEXT_POINTER 1
d7040cdb 16797`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16798_ACEOF
81ecdfbb 16799if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16800 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16801fi
81ecdfbb
RW
16802rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16804LIBS=$ac_save_LIBS
d7040cdb
SE
16805
16806fi
81ecdfbb
RW
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16808$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16809if test $ac_cv_prog_lex_yytext_pointer = yes; then
16810
81ecdfbb 16811$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16812
16813fi
81ecdfbb 16814rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16815 ;;
16816esac
d7040cdb
SE
16817if test "$LEX" = :; then
16818 LEX=${am_missing_run}flex
16819fi
16820
81ecdfbb
RW
16821
16822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16823$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16824 # Check whether --enable-maintainer-mode was given.
16825if test "${enable_maintainer_mode+set}" = set; then :
16826 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16827else
d7040cdb 16828 USE_MAINTAINER_MODE=no
81ecdfbb 16829fi
d7040cdb 16830
81ecdfbb
RW
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16832$as_echo "$USE_MAINTAINER_MODE" >&6; }
16833 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16834 MAINTAINER_MODE_TRUE=
16835 MAINTAINER_MODE_FALSE='#'
16836else
16837 MAINTAINER_MODE_TRUE='#'
16838 MAINTAINER_MODE_FALSE=
252b5132 16839fi
252b5132 16840
d7040cdb
SE
16841 MAINT=$MAINTAINER_MODE_TRUE
16842
16843
81ecdfbb 16844 if false; then
d7040cdb
SE
16845 GENINSRC_NEVER_TRUE=
16846 GENINSRC_NEVER_FALSE='#'
16847else
16848 GENINSRC_NEVER_TRUE='#'
16849 GENINSRC_NEVER_FALSE=
252b5132
RH
16850fi
16851
81ecdfbb
RW
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16853$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 16854if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 16855 $as_echo_n "(cached) " >&6
eccbf555
AM
16856else
16857 echo abfoo >t1
16858 echo cdfoo >t2
da17fe9d 16859 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16860 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16861 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16862 :
16863 else
16864 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16865 fi
16866 fi
16867 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16868 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16869 :
16870 else
16871 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16872 fi
16873 fi
16874 rm t1 t2
16875
16876fi
81ecdfbb
RW
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16878$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16879do_compare="$gcc_cv_prog_cmp_skip"
16880
16881
d7040cdb
SE
16882
16883. ${srcdir}/configure.host
16884
16885
16886
16887
58797674 16888for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16889do :
16890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42ecbf5e 16893 cat >>confdefs.h <<_ACEOF
81ecdfbb 16894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16895_ACEOF
16896
16897fi
16898
252b5132
RH
16899done
16900
5d3236ee
DK
16901for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16902do :
16903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16904ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5d3236ee
DK
16906 cat >>confdefs.h <<_ACEOF
16907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16908_ACEOF
16909
16910fi
16911
16912done
16913
208a4923
NC
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16915$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
d0ac1c44 16916if ${gcc_cv_header_string+:} false; then :
208a4923
NC
16917 $as_echo_n "(cached) " >&6
16918else
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920/* end confdefs.h. */
16921#include <string.h>
16922#include <strings.h>
16923int
16924main ()
16925{
16926
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_compile "$LINENO"; then :
16932 gcc_cv_header_string=yes
16933else
16934 gcc_cv_header_string=no
16935fi
16936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937fi
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16939$as_echo "$gcc_cv_header_string" >&6; }
16940if test $gcc_cv_header_string = yes; then
16941
16942$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16943
16944fi
16945
44350750 16946for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16947do :
16948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16950if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42ecbf5e 16951 cat >>confdefs.h <<_ACEOF
81ecdfbb 16952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16953_ACEOF
252b5132 16954
252b5132
RH
16955fi
16956done
16957
88ba72a2 16958for ac_func in open lseek close
5d3236ee
DK
16959do :
16960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16962if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5d3236ee
DK
16963 cat >>confdefs.h <<_ACEOF
16964#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16965_ACEOF
16966
16967fi
16968done
16969
252b5132 16970ac_header_dirent=no
42ecbf5e 16971for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16972 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16974$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 16975if eval \${$as_ac_Header+:} false; then :
81ecdfbb
RW
16976 $as_echo_n "(cached) " >&6
16977else
16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16979/* end confdefs.h. */
252b5132
RH
16980#include <sys/types.h>
16981#include <$ac_hdr>
42ecbf5e
DJ
16982
16983int
16984main ()
16985{
16986if ((DIR *) 0)
16987return 0;
16988 ;
16989 return 0;
16990}
16991_ACEOF
81ecdfbb 16992if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16993 eval "$as_ac_Header=yes"
16994else
81ecdfbb 16995 eval "$as_ac_Header=no"
42ecbf5e 16996fi
81ecdfbb 16997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16998fi
81ecdfbb
RW
16999eval ac_res=\$$as_ac_Header
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17001$as_echo "$ac_res" >&6; }
d0ac1c44 17002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42ecbf5e 17003 cat >>confdefs.h <<_ACEOF
81ecdfbb 17004#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
17005_ACEOF
17006
17007ac_header_dirent=$ac_hdr; break
d15b04bd 17008fi
42ecbf5e 17009
d15b04bd
L
17010done
17011# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17012if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17014$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 17015if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 17016 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
17017else
17018 ac_func_search_save_LIBS=$LIBS
81ecdfbb 17019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
17020/* end confdefs.h. */
17021
81ecdfbb
RW
17022/* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
17025#ifdef __cplusplus
17026extern "C"
17027#endif
42ecbf5e
DJ
17028char opendir ();
17029int
17030main ()
17031{
81ecdfbb 17032return opendir ();
42ecbf5e
DJ
17033 ;
17034 return 0;
17035}
17036_ACEOF
81ecdfbb
RW
17037for ac_lib in '' dir; do
17038 if test -z "$ac_lib"; then
17039 ac_res="none required"
17040 else
17041 ac_res=-l$ac_lib
42ecbf5e 17042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
17043 fi
17044 if ac_fn_c_try_link "$LINENO"; then :
17045 ac_cv_search_opendir=$ac_res
17046fi
17047rm -f core conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext
d0ac1c44 17049 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
17050 break
17051fi
17052done
d0ac1c44 17053if ${ac_cv_search_opendir+:} false; then :
e5a52504 17054
42ecbf5e 17055else
81ecdfbb 17056 ac_cv_search_opendir=no
252b5132 17057fi
81ecdfbb 17058rm conftest.$ac_ext
42ecbf5e
DJ
17059LIBS=$ac_func_search_save_LIBS
17060fi
81ecdfbb
RW
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17062$as_echo "$ac_cv_search_opendir" >&6; }
17063ac_res=$ac_cv_search_opendir
17064if test "$ac_res" != no; then :
17065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 17066
d15b04bd 17067fi
252b5132
RH
17068
17069else
81ecdfbb
RW
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17071$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 17072if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 17073 $as_echo_n "(cached) " >&6
252b5132 17074else
42ecbf5e 17075 ac_func_search_save_LIBS=$LIBS
81ecdfbb 17076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
17077/* end confdefs.h. */
17078
81ecdfbb
RW
17079/* Override any GCC internal prototype to avoid an error.
17080 Use char because int might match the return type of a GCC
17081 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
17082#ifdef __cplusplus
17083extern "C"
17084#endif
42ecbf5e
DJ
17085char opendir ();
17086int
17087main ()
17088{
81ecdfbb 17089return opendir ();
42ecbf5e
DJ
17090 ;
17091 return 0;
17092}
17093_ACEOF
81ecdfbb
RW
17094for ac_lib in '' x; do
17095 if test -z "$ac_lib"; then
17096 ac_res="none required"
17097 else
17098 ac_res=-l$ac_lib
42ecbf5e 17099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
17100 fi
17101 if ac_fn_c_try_link "$LINENO"; then :
17102 ac_cv_search_opendir=$ac_res
17103fi
17104rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext
d0ac1c44 17106 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
17107 break
17108fi
17109done
d0ac1c44 17110if ${ac_cv_search_opendir+:} false; then :
252b5132 17111
42ecbf5e 17112else
81ecdfbb 17113 ac_cv_search_opendir=no
252b5132 17114fi
81ecdfbb 17115rm conftest.$ac_ext
42ecbf5e 17116LIBS=$ac_func_search_save_LIBS
252b5132 17117fi
81ecdfbb
RW
17118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17119$as_echo "$ac_cv_search_opendir" >&6; }
17120ac_res=$ac_cv_search_opendir
17121if test "$ac_res" != no; then :
17122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 17123
d15b04bd 17124fi
252b5132
RH
17125
17126fi
17127
17128
d0ac1c44
SM
17129
17130
17131
17132 for ac_header in $ac_header_list
2aec968d
L
17133do :
17134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0ac1c44
SM
17135ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17136"
17137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2aec968d
L
17138 cat >>confdefs.h <<_ACEOF
17139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17140_ACEOF
17141
17142fi
17143
17144done
17145
d0ac1c44
SM
17146
17147
17148
17149
17150
17151
17152
2aec968d
L
17153for ac_func in getpagesize
17154do :
17155 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d0ac1c44 17156if test "x$ac_cv_func_getpagesize" = xyes; then :
2aec968d
L
17157 cat >>confdefs.h <<_ACEOF
17158#define HAVE_GETPAGESIZE 1
17159_ACEOF
17160
17161fi
17162done
17163
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17165$as_echo_n "checking for working mmap... " >&6; }
d0ac1c44 17166if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
2aec968d
L
17167 $as_echo_n "(cached) " >&6
17168else
17169 if test "$cross_compiling" = yes; then :
17170 ac_cv_func_mmap_fixed_mapped=no
17171else
17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173/* end confdefs.h. */
17174$ac_includes_default
17175/* malloc might have been renamed as rpl_malloc. */
17176#undef malloc
17177
17178/* Thanks to Mike Haertel and Jim Avera for this test.
17179 Here is a matrix of mmap possibilities:
17180 mmap private not fixed
17181 mmap private fixed at somewhere currently unmapped
17182 mmap private fixed at somewhere already mapped
17183 mmap shared not fixed
17184 mmap shared fixed at somewhere currently unmapped
17185 mmap shared fixed at somewhere already mapped
17186 For private mappings, we should verify that changes cannot be read()
17187 back from the file, nor mmap's back from the file at a different
17188 address. (There have been systems where private was not correctly
17189 implemented like the infamous i386 svr4.0, and systems where the
17190 VM page cache was not coherent with the file system buffer cache
17191 like early versions of FreeBSD and possibly contemporary NetBSD.)
17192 For shared mappings, we should conversely verify that changes get
17193 propagated back to all the places they're supposed to be.
17194
17195 Grep wants private fixed already mapped.
17196 The main things grep needs to know about mmap are:
17197 * does it exist and is it safe to write into the mmap'd area
17198 * how to use it (BSD variants) */
17199
17200#include <fcntl.h>
17201#include <sys/mman.h>
17202
17203#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17204char *malloc ();
17205#endif
17206
17207/* This mess was copied from the GNU getpagesize.h. */
17208#ifndef HAVE_GETPAGESIZE
2aec968d
L
17209# ifdef _SC_PAGESIZE
17210# define getpagesize() sysconf(_SC_PAGESIZE)
17211# else /* no _SC_PAGESIZE */
17212# ifdef HAVE_SYS_PARAM_H
17213# include <sys/param.h>
17214# ifdef EXEC_PAGESIZE
17215# define getpagesize() EXEC_PAGESIZE
17216# else /* no EXEC_PAGESIZE */
17217# ifdef NBPG
17218# define getpagesize() NBPG * CLSIZE
17219# ifndef CLSIZE
17220# define CLSIZE 1
17221# endif /* no CLSIZE */
17222# else /* no NBPG */
17223# ifdef NBPC
17224# define getpagesize() NBPC
17225# else /* no NBPC */
17226# ifdef PAGESIZE
17227# define getpagesize() PAGESIZE
17228# endif /* PAGESIZE */
17229# endif /* no NBPC */
17230# endif /* no NBPG */
17231# endif /* no EXEC_PAGESIZE */
17232# else /* no HAVE_SYS_PARAM_H */
17233# define getpagesize() 8192 /* punt totally */
17234# endif /* no HAVE_SYS_PARAM_H */
17235# endif /* no _SC_PAGESIZE */
17236
17237#endif /* no HAVE_GETPAGESIZE */
17238
17239int
17240main ()
17241{
17242 char *data, *data2, *data3;
d0ac1c44 17243 const char *cdata2;
2aec968d 17244 int i, pagesize;
d0ac1c44 17245 int fd, fd2;
2aec968d
L
17246
17247 pagesize = getpagesize ();
17248
17249 /* First, make a file with some known garbage in it. */
17250 data = (char *) malloc (pagesize);
17251 if (!data)
17252 return 1;
17253 for (i = 0; i < pagesize; ++i)
17254 *(data + i) = rand ();
17255 umask (0);
17256 fd = creat ("conftest.mmap", 0600);
17257 if (fd < 0)
d0ac1c44 17258 return 2;
2aec968d 17259 if (write (fd, data, pagesize) != pagesize)
d0ac1c44 17260 return 3;
2aec968d
L
17261 close (fd);
17262
d0ac1c44
SM
17263 /* Next, check that the tail of a page is zero-filled. File must have
17264 non-zero length, otherwise we risk SIGBUS for entire page. */
17265 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17266 if (fd2 < 0)
17267 return 4;
17268 cdata2 = "";
17269 if (write (fd2, cdata2, 1) != 1)
17270 return 5;
17271 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17272 if (data2 == MAP_FAILED)
17273 return 6;
17274 for (i = 0; i < pagesize; ++i)
17275 if (*(data2 + i))
17276 return 7;
17277 close (fd2);
17278 if (munmap (data2, pagesize))
17279 return 8;
17280
2aec968d
L
17281 /* Next, try to mmap the file at a fixed address which already has
17282 something else allocated at it. If we can, also make sure that
17283 we see the same garbage. */
17284 fd = open ("conftest.mmap", O_RDWR);
17285 if (fd < 0)
d0ac1c44 17286 return 9;
2aec968d
L
17287 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17288 MAP_PRIVATE | MAP_FIXED, fd, 0L))
d0ac1c44 17289 return 10;
2aec968d
L
17290 for (i = 0; i < pagesize; ++i)
17291 if (*(data + i) != *(data2 + i))
d0ac1c44 17292 return 11;
2aec968d
L
17293
17294 /* Finally, make sure that changes to the mapped area do not
17295 percolate back to the file as seen by read(). (This is a bug on
17296 some variants of i386 svr4.0.) */
17297 for (i = 0; i < pagesize; ++i)
17298 *(data2 + i) = *(data2 + i) + 1;
17299 data3 = (char *) malloc (pagesize);
17300 if (!data3)
d0ac1c44 17301 return 12;
2aec968d 17302 if (read (fd, data3, pagesize) != pagesize)
d0ac1c44 17303 return 13;
2aec968d
L
17304 for (i = 0; i < pagesize; ++i)
17305 if (*(data + i) != *(data3 + i))
d0ac1c44 17306 return 14;
2aec968d
L
17307 close (fd);
17308 return 0;
17309}
17310_ACEOF
17311if ac_fn_c_try_run "$LINENO"; then :
17312 ac_cv_func_mmap_fixed_mapped=yes
17313else
17314 ac_cv_func_mmap_fixed_mapped=no
17315fi
17316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17317 conftest.$ac_objext conftest.beam conftest.$ac_ext
17318fi
17319
17320fi
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17322$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17323if test $ac_cv_func_mmap_fixed_mapped = yes; then
17324
17325$as_echo "#define HAVE_MMAP 1" >>confdefs.h
17326
17327fi
d0ac1c44 17328rm -f conftest.mmap conftest.txt
2aec968d
L
17329
17330
5d3236ee
DK
17331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17332$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 17333if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17334 $as_echo_n "(cached) " >&6
17335else
17336 ac_func_search_save_LIBS=$LIBS
17337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h. */
17339
17340/* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char dlopen ();
17347int
17348main ()
17349{
17350return dlopen ();
17351 ;
17352 return 0;
17353}
17354_ACEOF
17355for ac_lib in '' dl; do
17356 if test -z "$ac_lib"; then
17357 ac_res="none required"
17358 else
17359 ac_res=-l$ac_lib
17360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17361 fi
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 ac_cv_search_dlopen=$ac_res
17364fi
17365rm -f core conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext
d0ac1c44 17367 if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17368 break
17369fi
17370done
d0ac1c44 17371if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17372
17373else
17374 ac_cv_search_dlopen=no
17375fi
17376rm conftest.$ac_ext
17377LIBS=$ac_func_search_save_LIBS
17378fi
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17380$as_echo "$ac_cv_search_dlopen" >&6; }
17381ac_res=$ac_cv_search_dlopen
17382if test "$ac_res" != no; then :
17383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17384
3917d5d5
DK
17385fi
17386
5d3236ee 17387
02ecc8e9
L
17388# Check whether --enable-initfini-array was given.
17389if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
17390 enableval=$enable_initfini_array; case "${enableval}" in
17391 yes|no) ;;
d0ac1c44 17392 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
26e3a0c9 17393 esac
02ecc8e9 17394else
26e3a0c9 17395 enable_initfini_array=yes
02ecc8e9
L
17396fi
17397
17398
17399if test $enable_initfini_array = yes; then
17400
17401$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
17402
17403fi
17404
81ecdfbb
RW
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17406$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 17407if ${ld_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 17408 $as_echo_n "(cached) " >&6
34875e64 17409else
81ecdfbb 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17411/* end confdefs.h. */
34875e64 17412#include <unistd.h>
42ecbf5e
DJ
17413int
17414main ()
17415{
34875e64 17416extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
17417 ;
17418 return 0;
17419}
17420_ACEOF
81ecdfbb 17421if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
17422 ld_cv_decl_getopt_unistd_h=yes
17423else
81ecdfbb 17424 ld_cv_decl_getopt_unistd_h=no
34875e64 17425fi
81ecdfbb 17426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
17427fi
17428
81ecdfbb
RW
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17430$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 17431if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 17432
81ecdfbb 17433$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
17434
17435fi
42ecbf5e 17436
252b5132
RH
17437
17438case "${host}" in
a8100d5b 17439*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 17440
81ecdfbb 17441$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
17442 ;;
17443esac
17444
bfd133d0
AM
17445ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
17446if test "x$ac_cv_have_decl_asprintf" = xyes; then :
81ecdfbb 17447 ac_have_decl=1
252b5132 17448else
81ecdfbb
RW
17449 ac_have_decl=0
17450fi
502bdb00 17451
81ecdfbb 17452cat >>confdefs.h <<_ACEOF
bfd133d0 17453#define HAVE_DECL_ASPRINTF $ac_have_decl
42ecbf5e 17454_ACEOF
bfd133d0
AM
17455ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
17456if test "x$ac_cv_have_decl_environ" = xyes; then :
81ecdfbb 17457 ac_have_decl=1
252b5132 17458else
81ecdfbb 17459 ac_have_decl=0
252b5132
RH
17460fi
17461
502bdb00 17462cat >>confdefs.h <<_ACEOF
bfd133d0 17463#define HAVE_DECL_ENVIRON $ac_have_decl
502bdb00 17464_ACEOF
bfd133d0
AM
17465ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
17466if test "x$ac_cv_have_decl_free" = xyes; then :
81ecdfbb
RW
17467 ac_have_decl=1
17468else
17469 ac_have_decl=0
17470fi
42ecbf5e 17471
81ecdfbb 17472cat >>confdefs.h <<_ACEOF
bfd133d0 17473#define HAVE_DECL_FREE $ac_have_decl
81ecdfbb
RW
17474_ACEOF
17475ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d0ac1c44 17476if test "x$ac_cv_have_decl_getenv" = xyes; then :
81ecdfbb
RW
17477 ac_have_decl=1
17478else
17479 ac_have_decl=0
17480fi
502bdb00 17481
81ecdfbb
RW
17482cat >>confdefs.h <<_ACEOF
17483#define HAVE_DECL_GETENV $ac_have_decl
17484_ACEOF
bfd133d0
AM
17485ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
17486if test "x$ac_cv_have_decl_sbrk" = xyes; then :
81ecdfbb 17487 ac_have_decl=1
502bdb00 17488else
81ecdfbb
RW
17489 ac_have_decl=0
17490fi
17491
17492cat >>confdefs.h <<_ACEOF
bfd133d0
AM
17493#define HAVE_DECL_SBRK $ac_have_decl
17494_ACEOF
17495ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
17496if test "x$ac_cv_have_decl_strstr" = xyes; then :
17497 ac_have_decl=1
17498else
17499 ac_have_decl=0
17500fi
17501
17502cat >>confdefs.h <<_ACEOF
17503#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 17504_ACEOF
252b5132 17505
252b5132 17506
1ff6de03
NA
17507# Link in zlib if we can. This allows us to read and write
17508# compressed CTF sections.
17509
17510 # Use the system's zlib library.
17511 zlibdir="-L\$(top_builddir)/../zlib"
17512 zlibinc="-I\$(top_srcdir)/../zlib"
17513
17514# Check whether --with-system-zlib was given.
17515if test "${with_system_zlib+set}" = set; then :
17516 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17517 zlibdir=
17518 zlibinc=
17519 fi
17520
17521fi
17522
17523
17524
17525
17526
597e2591
ILT
17527# When converting linker scripts into strings for use in emulation
17528# files, use astring.sed if the compiler supports ANSI string
17529# concatenation, or ostring.sed otherwise. This is to support the
17530# broken Microsoft MSVC compiler, which limits the length of string
17531# constants, while still supporting pre-ANSI compilers which do not
17532# support string concatenation.
81ecdfbb
RW
17533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17534$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
d0ac1c44 17535if ${ld_cv_string_concatenation+:} false; then :
81ecdfbb 17536 $as_echo_n "(cached) " >&6
42ecbf5e 17537else
81ecdfbb 17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17539/* end confdefs.h. */
81ecdfbb 17540
314e9a4e
L
17541int
17542main ()
17543{
81ecdfbb 17544char *a = "a" "a";
314e9a4e
L
17545 ;
17546 return 0;
17547}
17548_ACEOF
81ecdfbb
RW
17549if ac_fn_c_try_compile "$LINENO"; then :
17550 ld_cv_string_concatenation=yes
314e9a4e 17551else
81ecdfbb 17552 ld_cv_string_concatenation=no
314e9a4e 17553fi
81ecdfbb 17554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17555fi
81ecdfbb
RW
17556
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17558$as_echo "$ld_cv_string_concatenation" >&6; }
17559if test "$ld_cv_string_concatenation" = "yes"; then
17560 STRINGIFY=astring.sed
17561else
17562 STRINGIFY=ostring.sed
314e9a4e 17563fi
81ecdfbb
RW
17564
17565
17566# target-specific stuff:
17567
17568all_targets=
17569EMUL=
17570all_emuls=
17571all_emul_extras=
17572all_libpath=
50ff67e6 17573TDIRS=
81ecdfbb 17574
bf9ef603 17575# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17576# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17577if test x${want64} = xfalse; then
17578 # The cast to long int works around a bug in the HP C Compiler
17579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17581# This bug is HP SR number 8606223364.
17582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17583$as_echo_n "checking size of void *... " >&6; }
d0ac1c44 17584if ${ac_cv_sizeof_void_p+:} false; then :
bf9ef603
RM
17585 $as_echo_n "(cached) " >&6
17586else
17587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17588
17589else
17590 if test "$ac_cv_type_void_p" = yes; then
17591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
17593as_fn_error 77 "cannot compute sizeof (void *)
17594See \`config.log' for more details" "$LINENO" 5; }
bf9ef603
RM
17595 else
17596 ac_cv_sizeof_void_p=0
17597 fi
17598fi
17599
17600fi
17601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17602$as_echo "$ac_cv_sizeof_void_p" >&6; }
17603
17604
17605
17606cat >>confdefs.h <<_ACEOF
17607#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17608_ACEOF
17609
17610
17611 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17612 want64=true
17613 fi
17614fi
17615
c58212ea
L
17616elf_list_options=FALSE
17617elf_shlib_list_options=FALSE
17618elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17619for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17620do
17621 if test "$targ_alias" = "all"; then
17622 all_targets=true
82d8e420
L
17623 elf_list_options=TRUE
17624 elf_shlib_list_options=TRUE
17625 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17626 else
17627 # Canonicalize the secondary target names.
17628 result=`$ac_config_sub $targ_alias 2>/dev/null`
17629 if test -n "$result"; then
17630 targ=$result
17631 else
17632 targ=$targ_alias
17633 fi
17634
17635 . ${srcdir}/configure.tgt
17636
17637 if test "$targ" = "$target"; then
17638 EMUL=$targ_emul
17639 fi
17640
17641 if test x${want64} = xfalse; then
17642 . ${srcdir}/../bfd/config.bfd
17643 fi
17644
17645 if test x${want64} = xtrue; then
17646 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17647 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17648 fi
17649
17650 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17651 case " $all_emuls " in
8c3fff59
AM
17652 *" e${i}.o "*) ;;
17653 *)
17654 all_emuls="$all_emuls e${i}.o"
17655 eval result=\$tdir_$i
17656 test -z "$result" && result=$targ_alias
50ff67e6
AM
17657 TDIRS="$TDIRS
17658tdir_$i=$result"
c58212ea
L
17659 case "${i}" in
17660 *elf*)
17661 elf_list_options=TRUE
68880f31
CLT
17662 ;;
17663 *)
075a2b89 17664 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
68880f31
CLT
17665 elf_list_options=TRUE
17666 fi
17667 ;;
17668 esac
17669 if test "$elf_list_options" = "TRUE"; then
c40e31a1
AM
17670 source_sh()
17671 {
17672 . $1
17673 }
17674 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea
L
17675 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17676 elf_shlib_list_options=TRUE
17677 fi
17678 if test x${PLT_UNWIND} = xyes; then
17679 elf_plt_unwind_list_options=TRUE
17680 fi
68880f31 17681 fi
c58212ea 17682 ;;
81ecdfbb
RW
17683 esac
17684 done
17685
17686 for i in $targ_emul $targ_extra_libpath; do
17687 case " $all_libpath " in
17688 *" ${i} "*) ;;
17689 *)
17690 if test -z "$all_libpath"; then
17691 all_libpath=${i}
17692 else
17693 all_libpath="$all_libpath ${i}"
17694 fi
17695 ;;
17696 esac
17697 done
17698
17699 for i in $targ_extra_ofiles; do
17700 case " $all_emul_extras " in
17701 *" ${i} "*) ;;
17702 *)
17703 all_emul_extras="$all_emul_extras ${i}"
17704 ;;
17705 esac
17706 done
5063daf7 17707
81ecdfbb
RW
17708 fi
17709done
17710
621ff761 17711if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17712
17713$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17714
17715fi
17716
6734f10a
SB
17717if test "${ac_default_new_dtags}" = unset; then
17718 ac_default_new_dtags=0
17719fi
17720
17721cat >>confdefs.h <<_ACEOF
17722#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17723_ACEOF
17724
17725
647e4d46
L
17726if test "${ac_default_ld_z_relro}" = unset; then
17727 ac_default_ld_z_relro=0
17728fi
17729
17730cat >>confdefs.h <<_ACEOF
17731#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17732_ACEOF
17733
17734
b32632c4
L
17735ac_default_ld_textrel_check_warning=0
17736case "${ac_default_ld_textrel_check}" in
17737 unset|no)
17738 ac_default_ld_textrel_check=textrel_check_none
17739 ;;
17740 yes|warning)
17741 ac_default_ld_textrel_check=textrel_check_warning
17742 ac_default_ld_textrel_check_warning=1
17743 ;;
17744 error)
17745 ac_default_ld_textrel_check=textrel_check_error
17746 ;;
17747esac
17748
17749cat >>confdefs.h <<_ACEOF
17750#define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17751_ACEOF
17752
17753
17754cat >>confdefs.h <<_ACEOF
17755#define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17756_ACEOF
17757
17758
f6aec96d
L
17759if test "${ac_default_ld_z_separate_code}" = unset; then
17760 ac_default_ld_z_separate_code=0
17761fi
17762
17763cat >>confdefs.h <<_ACEOF
17764#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17765_ACEOF
17766
17767
23ae20f5
NC
17768if test "${ac_support_error_handling_script}" = unset; then
17769 ac_support_error_handling_script=1
17770fi
17771
17772cat >>confdefs.h <<_ACEOF
17773#define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17774_ACEOF
17775
17776
81ecdfbb 17777
2760f24c
RG
17778cat >>confdefs.h <<_ACEOF
17779#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17780_ACEOF
17781
17782
17783
17784cat >>confdefs.h <<_ACEOF
17785#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17786_ACEOF
17787
17788
17789
81ecdfbb 17790
c58212ea
L
17791
17792
17793
50ff67e6 17794
81ecdfbb
RW
17795
17796
17797if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17798 if test x${want64} = xtrue; then
17799 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17800 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17801 else
17802 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17803 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17804 fi
42ecbf5e
DJ
17805else
17806 EMULATION_OFILES=$all_emuls
17807 EMUL_EXTRA_OFILES=$all_emul_extras
17808fi
17809
17810
17811
17812
17813EMULATION_LIBPATH=$all_libpath
17814
17815
17816if test x${enable_static} = xno; then
9165f454 17817 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 17818 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
42ecbf5e
DJ
17819else
17820 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 17821 TESTCTFLIB="../libctf/.libs/libctf.a"
42ecbf5e 17822fi
094e34f2
NA
17823if test "${enable_libctf}" = no; then
17824 TESTCTFLIB=
17825fi
42ecbf5e
DJ
17826
17827
87279e3c 17828
42ecbf5e
DJ
17829target_vendor=${target_vendor=$host_vendor}
17830case "$target_vendor" in
17831 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17832 *) EXTRA_SHLIB_EXTENSION= ;;
17833esac
17834
17835case "$target_os" in
17836 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17837esac
17838
17839if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17840
17841cat >>confdefs.h <<_ACEOF
17842#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17843_ACEOF
17844
17845fi
17846
33589acb
AM
17847ac_config_commands="$ac_config_commands default"
17848
17849
108a6f8e
CD
17850
17851
17852
17853
31dd3154 17854
81ecdfbb 17855ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17856
42ecbf5e
DJ
17857cat >confcache <<\_ACEOF
17858# This file is a shell script that caches the results of configure
17859# tests run on this system so they can be shared between configure
17860# scripts and configure runs, see configure's option --config-cache.
17861# It is not useful on other systems. If it contains results you don't
17862# want to keep, you may remove or edit it.
17863#
17864# config.status only pays attention to the cache file if you give it
17865# the --recheck option to rerun configure.
17866#
17867# `ac_cv_env_foo' variables (set or unset) will be overridden when
17868# loading this file, other *unset* `ac_cv_foo' will be assigned the
17869# following values.
17870
17871_ACEOF
17872
17873# The following way of writing the cache mishandles newlines in values,
17874# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17875# So, we kill variables containing newlines.
42ecbf5e
DJ
17876# Ultrix sh set writes to stderr and can't be redirected directly,
17877# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17878(
17879 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17880 eval ac_val=\$$ac_var
17881 case $ac_val in #(
17882 *${as_nl}*)
17883 case $ac_var in #(
17884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17885$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17886 esac
17887 case $ac_var in #(
17888 _ | IFS | as_nl) ;; #(
17889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17890 *) { eval $ac_var=; unset $ac_var;} ;;
17891 esac ;;
17892 esac
17893 done
17894
42ecbf5e 17895 (set) 2>&1 |
81ecdfbb
RW
17896 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17897 *${as_nl}ac_space=\ *)
17898 # `set' does not quote correctly, so add quotes: double-quote
17899 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17900 sed -n \
17901 "s/'/'\\\\''/g;
17902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17903 ;; #(
42ecbf5e
DJ
17904 *)
17905 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17907 ;;
81ecdfbb
RW
17908 esac |
17909 sort
17910) |
42ecbf5e 17911 sed '
81ecdfbb 17912 /^ac_cv_env_/b end
42ecbf5e 17913 t clear
81ecdfbb 17914 :clear
42ecbf5e
DJ
17915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17916 t end
81ecdfbb
RW
17917 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17918 :end' >>confcache
17919if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17920 if test -w "$cache_file"; then
d0ac1c44 17921 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17923$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
17924 if test ! -f "$cache_file" || test -h "$cache_file"; then
17925 cat confcache >"$cache_file"
17926 else
17927 case $cache_file in #(
17928 */* | ?:*)
17929 mv -f confcache "$cache_file"$$ &&
17930 mv -f "$cache_file"$$ "$cache_file" ;; #(
17931 *)
17932 mv -f confcache "$cache_file" ;;
17933 esac
17934 fi
17935 fi
42ecbf5e 17936 else
81ecdfbb
RW
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17938$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17939 fi
17940fi
17941rm -f confcache
17942
17943test "x$prefix" = xNONE && prefix=$ac_default_prefix
17944# Let make expand exec_prefix.
17945test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17946
42ecbf5e
DJ
17947DEFS=-DHAVE_CONFIG_H
17948
17949ac_libobjs=
17950ac_ltlibobjs=
d0ac1c44 17951U=
42ecbf5e
DJ
17952for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17953 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17954 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17955 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17956 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17957 # will be set to the directory where LIBOBJS objects are built.
17958 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17959 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17960done
17961LIBOBJS=$ac_libobjs
17962
17963LTLIBOBJS=$ac_ltlibobjs
17964
17965
d0ac1c44
SM
17966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17967$as_echo_n "checking that generated files are newer than configure... " >&6; }
17968 if test -n "$am_sleep_pid"; then
17969 # Hide warnings about reused PIDs.
17970 wait $am_sleep_pid 2>/dev/null
17971 fi
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17973$as_echo "done" >&6; }
42ecbf5e 17974if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 17975 as_fn_error $? "conditional \"AMDEP\" was never defined.
81ecdfbb 17976Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17977fi
17978if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 17979 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb
RW
17980Usually this means the macro was only invoked conditionally." "$LINENO" 5
17981fi
17982 if test -n "$EXEEXT"; then
17983 am__EXEEXT_TRUE=
17984 am__EXEEXT_FALSE='#'
17985else
17986 am__EXEEXT_TRUE='#'
17987 am__EXEEXT_FALSE=
42ecbf5e 17988fi
81ecdfbb 17989
64ac50ac 17990if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17991 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
64ac50ac
RW
17992Usually this means the macro was only invoked conditionally." "$LINENO" 5
17993fi
3cb62297 17994if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 17995 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
3cb62297
L
17996Usually this means the macro was only invoked conditionally." "$LINENO" 5
17997fi
094e34f2
NA
17998if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17999 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
18000Usually this means the macro was only invoked conditionally." "$LINENO" 5
18001fi
42ecbf5e 18002if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 18003 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 18004Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 18005fi
d5fbea21 18006if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 18007 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 18008Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 18009fi
42ecbf5e 18010
d0ac1c44 18011: "${CONFIG_STATUS=./config.status}"
81ecdfbb 18012ac_write_fail=0
42ecbf5e
DJ
18013ac_clean_files_save=$ac_clean_files
18014ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
18015{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18016$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18017as_write_fail=0
18018cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
18019#! $SHELL
18020# Generated by $as_me.
18021# Run this file to recreate the current configuration.
18022# Compiler output produced by configure, useful for debugging
18023# configure, is in config.log if it exists.
18024
18025debug=false
18026ac_cs_recheck=false
18027ac_cs_silent=false
42ecbf5e 18028
81ecdfbb
RW
18029SHELL=\${CONFIG_SHELL-$SHELL}
18030export SHELL
18031_ASEOF
18032cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18033## -------------------- ##
18034## M4sh Initialization. ##
18035## -------------------- ##
42ecbf5e 18036
81ecdfbb
RW
18037# Be more Bourne compatible
18038DUALCASE=1; export DUALCASE # for MKS sh
18039if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18040 emulate sh
18041 NULLCMD=:
81ecdfbb 18042 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
18043 # is contrary to our usage. Disable this feature.
18044 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
18045 setopt NO_GLOB_SUBST
18046else
18047 case `(set -o) 2>/dev/null` in #(
18048 *posix*) :
18049 set -o posix ;; #(
18050 *) :
18051 ;;
18052esac
42ecbf5e 18053fi
42ecbf5e 18054
81ecdfbb
RW
18055
18056as_nl='
18057'
18058export as_nl
18059# Printing a long string crashes Solaris 7 /usr/bin/printf.
18060as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18061as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18062as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18063# Prefer a ksh shell builtin over an external printf program on Solaris,
18064# but without wasting forks for bash or zsh.
18065if test -z "$BASH_VERSION$ZSH_VERSION" \
18066 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18067 as_echo='print -r --'
18068 as_echo_n='print -rn --'
18069elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18070 as_echo='printf %s\n'
18071 as_echo_n='printf %s'
18072else
18073 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18074 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18075 as_echo_n='/usr/ucb/echo -n'
18076 else
18077 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18078 as_echo_n_body='eval
18079 arg=$1;
18080 case $arg in #(
18081 *"$as_nl"*)
18082 expr "X$arg" : "X\\(.*\\)$as_nl";
18083 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18084 esac;
18085 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18086 '
18087 export as_echo_n_body
18088 as_echo_n='sh -c $as_echo_n_body as_echo'
18089 fi
18090 export as_echo_body
18091 as_echo='sh -c $as_echo_body as_echo'
18092fi
18093
18094# The user is always right.
18095if test "${PATH_SEPARATOR+set}" != set; then
18096 PATH_SEPARATOR=:
18097 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18098 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18099 PATH_SEPARATOR=';'
18100 }
42ecbf5e
DJ
18101fi
18102
18103
81ecdfbb
RW
18104# IFS
18105# We need space, tab and new line, in precisely that order. Quoting is
18106# there to prevent editors from complaining about space-tab.
18107# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18108# splitting by setting IFS to empty value.)
18109IFS=" "" $as_nl"
18110
18111# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 18112as_myself=
81ecdfbb
RW
18113case $0 in #((
18114 *[\\/]* ) as_myself=$0 ;;
18115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18116for as_dir in $PATH
18117do
18118 IFS=$as_save_IFS
18119 test -z "$as_dir" && as_dir=.
18120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18121 done
18122IFS=$as_save_IFS
18123
18124 ;;
18125esac
18126# We did not find ourselves, most probably we were run as `sh COMMAND'
18127# in which case we are not to be found in the path.
18128if test "x$as_myself" = x; then
18129 as_myself=$0
18130fi
18131if test ! -f "$as_myself"; then
18132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18133 exit 1
18134fi
18135
18136# Unset variables that we do not need and which cause bugs (e.g. in
18137# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18138# suppresses any "Segmentation fault" message there. '((' could
18139# trigger a bug in pdksh 5.2.14.
18140for as_var in BASH_ENV ENV MAIL MAILPATH
18141do eval test x\${$as_var+set} = xset \
18142 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18143done
42ecbf5e
DJ
18144PS1='$ '
18145PS2='> '
18146PS4='+ '
18147
18148# NLS nuisances.
81ecdfbb
RW
18149LC_ALL=C
18150export LC_ALL
18151LANGUAGE=C
18152export LANGUAGE
18153
18154# CDPATH.
18155(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18156
18157
d0ac1c44
SM
18158# as_fn_error STATUS ERROR [LINENO LOG_FD]
18159# ----------------------------------------
81ecdfbb
RW
18160# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18161# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 18162# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
18163as_fn_error ()
18164{
d0ac1c44
SM
18165 as_status=$1; test $as_status -eq 0 && as_status=1
18166 if test "$4"; then
18167 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18168 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 18169 fi
d0ac1c44 18170 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
18171 as_fn_exit $as_status
18172} # as_fn_error
18173
18174
18175# as_fn_set_status STATUS
18176# -----------------------
18177# Set $? to STATUS, without forking.
18178as_fn_set_status ()
18179{
18180 return $1
18181} # as_fn_set_status
18182
18183# as_fn_exit STATUS
18184# -----------------
18185# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18186as_fn_exit ()
18187{
18188 set +e
18189 as_fn_set_status $1
18190 exit $1
18191} # as_fn_exit
18192
18193# as_fn_unset VAR
18194# ---------------
18195# Portably unset VAR.
18196as_fn_unset ()
18197{
18198 { eval $1=; unset $1;}
18199}
18200as_unset=as_fn_unset
18201# as_fn_append VAR VALUE
18202# ----------------------
18203# Append the text in VALUE to the end of the definition contained in VAR. Take
18204# advantage of any shell optimizations that allow amortized linear growth over
18205# repeated appends, instead of the typical quadratic growth present in naive
18206# implementations.
18207if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18208 eval 'as_fn_append ()
18209 {
18210 eval $1+=\$2
18211 }'
18212else
18213 as_fn_append ()
18214 {
18215 eval $1=\$$1\$2
18216 }
18217fi # as_fn_append
18218
18219# as_fn_arith ARG...
18220# ------------------
18221# Perform arithmetic evaluation on the ARGs, and store the result in the
18222# global $as_val. Take advantage of shells that can avoid forks. The arguments
18223# must be portable across $(()) and expr.
18224if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18225 eval 'as_fn_arith ()
18226 {
18227 as_val=$(( $* ))
18228 }'
18229else
18230 as_fn_arith ()
18231 {
18232 as_val=`expr "$@" || test $? -eq 1`
18233 }
18234fi # as_fn_arith
18235
42ecbf5e 18236
81ecdfbb
RW
18237if expr a : '\(a\)' >/dev/null 2>&1 &&
18238 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
18239 as_expr=expr
18240else
18241 as_expr=false
18242fi
18243
81ecdfbb 18244if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
18245 as_basename=basename
18246else
18247 as_basename=false
18248fi
18249
81ecdfbb
RW
18250if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18251 as_dirname=dirname
18252else
18253 as_dirname=false
18254fi
42ecbf5e 18255
81ecdfbb 18256as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
18257$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18258 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
18259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18260$as_echo X/"$0" |
18261 sed '/^.*\/\([^/][^/]*\)\/*$/{
18262 s//\1/
18263 q
18264 }
18265 /^X\/\(\/\/\)$/{
18266 s//\1/
18267 q
18268 }
18269 /^X\/\(\/\).*/{
18270 s//\1/
18271 q
18272 }
18273 s/.*/./; q'`
42ecbf5e 18274
42ecbf5e
DJ
18275# Avoid depending upon Character Ranges.
18276as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18277as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18278as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18279as_cr_digits='0123456789'
18280as_cr_alnum=$as_cr_Letters$as_cr_digits
18281
81ecdfbb
RW
18282ECHO_C= ECHO_N= ECHO_T=
18283case `echo -n x` in #(((((
18284-n*)
18285 case `echo 'xy\c'` in
18286 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18287 xy) ECHO_C='\c';;
18288 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18289 ECHO_T=' ';;
18290 esac;;
18291*)
18292 ECHO_N='-n';;
42ecbf5e 18293esac
252b5132 18294
81ecdfbb
RW
18295rm -f conf$$ conf$$.exe conf$$.file
18296if test -d conf$$.dir; then
18297 rm -f conf$$.dir/conf$$.file
42ecbf5e 18298else
81ecdfbb
RW
18299 rm -f conf$$.dir
18300 mkdir conf$$.dir 2>/dev/null
42ecbf5e 18301fi
81ecdfbb
RW
18302if (echo >conf$$.file) 2>/dev/null; then
18303 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 18304 as_ln_s='ln -s'
81ecdfbb
RW
18305 # ... but there are two gotchas:
18306 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18307 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 18308 # In both cases, we have to default to `cp -pR'.
81ecdfbb 18309 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 18310 as_ln_s='cp -pR'
81ecdfbb
RW
18311 elif ln conf$$.file conf$$ 2>/dev/null; then
18312 as_ln_s=ln
18313 else
d0ac1c44 18314 as_ln_s='cp -pR'
252b5132 18315 fi
e5a52504 18316else
d0ac1c44 18317 as_ln_s='cp -pR'
e5a52504 18318fi
81ecdfbb
RW
18319rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18320rmdir conf$$.dir 2>/dev/null
18321
18322
18323# as_fn_mkdir_p
18324# -------------
18325# Create "$as_dir" as a directory, including parents if necessary.
18326as_fn_mkdir_p ()
18327{
18328
18329 case $as_dir in #(
18330 -*) as_dir=./$as_dir;;
18331 esac
18332 test -d "$as_dir" || eval $as_mkdir_p || {
18333 as_dirs=
18334 while :; do
18335 case $as_dir in #(
18336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18337 *) as_qdir=$as_dir;;
18338 esac
18339 as_dirs="'$as_qdir' $as_dirs"
18340 as_dir=`$as_dirname -- "$as_dir" ||
18341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18342 X"$as_dir" : 'X\(//\)[^/]' \| \
18343 X"$as_dir" : 'X\(//\)$' \| \
18344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18345$as_echo X"$as_dir" |
18346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18347 s//\1/
18348 q
18349 }
18350 /^X\(\/\/\)[^/].*/{
18351 s//\1/
18352 q
18353 }
18354 /^X\(\/\/\)$/{
18355 s//\1/
18356 q
18357 }
18358 /^X\(\/\).*/{
18359 s//\1/
18360 q
18361 }
18362 s/.*/./; q'`
18363 test -d "$as_dir" && break
18364 done
18365 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 18366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 18367
252b5132 18368
81ecdfbb 18369} # as_fn_mkdir_p
42ecbf5e 18370if mkdir -p . 2>/dev/null; then
81ecdfbb 18371 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
18372else
18373 test -d ./-p && rmdir ./-p
18374 as_mkdir_p=false
18375fi
252b5132 18376
d0ac1c44
SM
18377
18378# as_fn_executable_p FILE
18379# -----------------------
18380# Test if FILE is an executable regular file.
18381as_fn_executable_p ()
18382{
18383 test -f "$1" && test -x "$1"
18384} # as_fn_executable_p
18385as_test_x='test -x'
18386as_executable_p=as_fn_executable_p
252b5132 18387
42ecbf5e
DJ
18388# Sed expression to map a string onto a valid CPP name.
18389as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 18390
42ecbf5e
DJ
18391# Sed expression to map a string onto a valid variable name.
18392as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 18393
e5a52504 18394
42ecbf5e 18395exec 6>&1
81ecdfbb
RW
18396## ----------------------------------- ##
18397## Main body of $CONFIG_STATUS script. ##
18398## ----------------------------------- ##
18399_ASEOF
18400test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 18401
81ecdfbb
RW
18402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18403# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 18404# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
18405# values after options handling.
18406ac_log="
573fe3fb 18407This file was extended by ld $as_me 2.36.50, which was
d0ac1c44 18408generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
18409
18410 CONFIG_FILES = $CONFIG_FILES
18411 CONFIG_HEADERS = $CONFIG_HEADERS
18412 CONFIG_LINKS = $CONFIG_LINKS
18413 CONFIG_COMMANDS = $CONFIG_COMMANDS
18414 $ $0 $@
e5a52504 18415
81ecdfbb
RW
18416on `(hostname || uname -n) 2>/dev/null | sed 1q`
18417"
18418
42ecbf5e
DJ
18419_ACEOF
18420
81ecdfbb
RW
18421case $ac_config_files in *"
18422"*) set x $ac_config_files; shift; ac_config_files=$*;;
18423esac
e5a52504 18424
81ecdfbb
RW
18425case $ac_config_headers in *"
18426"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18427esac
42ecbf5e 18428
42ecbf5e 18429
81ecdfbb
RW
18430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431# Files that config.status was made for.
18432config_files="$ac_config_files"
18433config_headers="$ac_config_headers"
18434config_commands="$ac_config_commands"
42ecbf5e 18435
81ecdfbb 18436_ACEOF
42ecbf5e 18437
81ecdfbb 18438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18439ac_cs_usage="\
81ecdfbb
RW
18440\`$as_me' instantiates files and other configuration actions
18441from templates according to the current configuration. Unless the files
18442and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 18443
81ecdfbb 18444Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
18445
18446 -h, --help print this help, then exit
81ecdfbb 18447 -V, --version print version number and configuration settings, then exit
d0ac1c44 18448 --config print configuration, then exit
81ecdfbb
RW
18449 -q, --quiet, --silent
18450 do not print progress messages
42ecbf5e
DJ
18451 -d, --debug don't remove temporary files
18452 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
18453 --file=FILE[:TEMPLATE]
18454 instantiate the configuration file FILE
18455 --header=FILE[:TEMPLATE]
18456 instantiate the configuration header FILE
42ecbf5e
DJ
18457
18458Configuration files:
18459$config_files
18460
18461Configuration headers:
18462$config_headers
18463
18464Configuration commands:
18465$config_commands
18466
81ecdfbb 18467Report bugs to the package provider."
42ecbf5e 18468
81ecdfbb
RW
18469_ACEOF
18470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18471ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 18472ac_cs_version="\\
573fe3fb 18473ld config.status 2.36.50
d0ac1c44
SM
18474configured by $0, generated by GNU Autoconf 2.69,
18475 with options \\"\$ac_cs_config\\"
42ecbf5e 18476
d0ac1c44 18477Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
18478This config.status script is free software; the Free Software Foundation
18479gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
18480
18481ac_pwd='$ac_pwd'
18482srcdir='$srcdir'
18483INSTALL='$INSTALL'
18484MKDIR_P='$MKDIR_P'
18485AWK='$AWK'
18486test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
18487_ACEOF
18488
81ecdfbb
RW
18489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18490# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
18491ac_need_defaults=:
18492while test $# != 0
18493do
18494 case $1 in
d0ac1c44 18495 --*=?*)
81ecdfbb
RW
18496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18497 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 18498 ac_shift=:
252b5132 18499 ;;
d0ac1c44
SM
18500 --*=)
18501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18502 ac_optarg=
18503 ac_shift=:
18504 ;;
81ecdfbb 18505 *)
42ecbf5e
DJ
18506 ac_option=$1
18507 ac_optarg=$2
18508 ac_shift=shift
252b5132 18509 ;;
42ecbf5e 18510 esac
252b5132 18511
42ecbf5e
DJ
18512 case $ac_option in
18513 # Handling of the options.
42ecbf5e
DJ
18514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18515 ac_cs_recheck=: ;;
81ecdfbb
RW
18516 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18517 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
18518 --config | --confi | --conf | --con | --co | --c )
18519 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 18520 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
18521 debug=: ;;
18522 --file | --fil | --fi | --f )
18523 $ac_shift
81ecdfbb
RW
18524 case $ac_optarg in
18525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 18526 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
18527 esac
18528 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
18529 ac_need_defaults=false;;
18530 --header | --heade | --head | --hea )
18531 $ac_shift
81ecdfbb
RW
18532 case $ac_optarg in
18533 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18534 esac
18535 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 18536 ac_need_defaults=false;;
81ecdfbb
RW
18537 --he | --h)
18538 # Conflict between --help and --header
d0ac1c44 18539 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
18540Try \`$0 --help' for more information.";;
18541 --help | --hel | -h )
18542 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
18543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18545 ac_cs_silent=: ;;
252b5132 18546
42ecbf5e 18547 # This is an error.
d0ac1c44 18548 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 18549Try \`$0 --help' for more information." ;;
252b5132 18550
81ecdfbb
RW
18551 *) as_fn_append ac_config_targets " $1"
18552 ac_need_defaults=false ;;
252b5132 18553
42ecbf5e
DJ
18554 esac
18555 shift
18556done
d15b04bd 18557
42ecbf5e 18558ac_configure_extra_args=
e5a52504 18559
42ecbf5e
DJ
18560if $ac_cs_silent; then
18561 exec 6>/dev/null
18562 ac_configure_extra_args="$ac_configure_extra_args --silent"
18563fi
e5a52504 18564
42ecbf5e 18565_ACEOF
81ecdfbb 18566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 18567if \$ac_cs_recheck; then
d0ac1c44 18568 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
18569 shift
18570 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18571 CONFIG_SHELL='$SHELL'
18572 export CONFIG_SHELL
18573 exec "\$@"
42ecbf5e
DJ
18574fi
18575
18576_ACEOF
81ecdfbb
RW
18577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18578exec 5>>config.log
18579{
18580 echo
18581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18582## Running $as_me. ##
18583_ASBOX
18584 $as_echo "$ac_log"
18585} >&5
42ecbf5e 18586
81ecdfbb
RW
18587_ACEOF
18588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 18589#
81ecdfbb 18590# INIT-COMMANDS
252b5132 18591#
42ecbf5e 18592AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
18593
18594
18595# The HP-UX ksh and POSIX shell print the target directory to stdout
18596# if CDPATH is set.
18597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18598
18599sed_quote_subst='$sed_quote_subst'
18600double_quote_subst='$double_quote_subst'
18601delay_variable_subst='$delay_variable_subst'
3725885a
RW
18602macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18603macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18604enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18605enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18606pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18607enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18608SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18609ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18610host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18611host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18612host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18613build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18614build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18615build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18616SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18617Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18618GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18619EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18620FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18621LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18622NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18623LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18624max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18625ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18626exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18627lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18628lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18629lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18630reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18631reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18632OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18633deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18634file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18635AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18636AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18637STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18638RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18639old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18640old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18641old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18642lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18643CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18644CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18645compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18646GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18647lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18648lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18649lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18650lt_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"`'
18651objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18652MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18653lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18654lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18655lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18656lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18657lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18658need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18659DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18660NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18661LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18662OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18663OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18664libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18665shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18666extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18667archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18668enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18669export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18670whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18671compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18672old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18673old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18674archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18675archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18676module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18677module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18678with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18679allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18680no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18681hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18682hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18683hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18684hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18685hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18686hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18687hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18688hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18689inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18690link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18691fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18692always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18693export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18694exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18695include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18696prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18697file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18698variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18699need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18700need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18701version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18702runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18703shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18704shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18705libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18706library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18707soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18708install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18709postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18710postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18711finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18712finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18713hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18714sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18715sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18716hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18717enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18718enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18719enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18720old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18721striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18722compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18723predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18724postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18725predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18726postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18727compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18728LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18729reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18730reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18731old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18732compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18733GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18734lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18735lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18736lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18737lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18738lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18739archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18740enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18741export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18742whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18743compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18744old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18745old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18746archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18747archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18748module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18749module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18750with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18751allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18752no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18753hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18754hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18755hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18756hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18757hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18758hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18759hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18760hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18761inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18762link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18763fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18764always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18765export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18766exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18767include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18768prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18769file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18770hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18771compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18772predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18773postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18774predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18775postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18776compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18777
18778LTCC='$LTCC'
18779LTCFLAGS='$LTCFLAGS'
18780compiler='$compiler_DEFAULT'
18781
3725885a
RW
18782# A function that is used when there is no print builtin or printf.
18783func_fallback_echo ()
18784{
18785 eval 'cat <<_LTECHO_EOF
18786\$1
18787_LTECHO_EOF'
18788}
18789
d7040cdb 18790# Quote evaled strings.
3725885a
RW
18791for var in SHELL \
18792ECHO \
18793SED \
d7040cdb
SE
18794GREP \
18795EGREP \
18796FGREP \
18797LD \
18798NM \
18799LN_S \
18800lt_SP2NL \
18801lt_NL2SP \
18802reload_flag \
b214d478 18803OBJDUMP \
d7040cdb
SE
18804deplibs_check_method \
18805file_magic_cmd \
18806AR \
18807AR_FLAGS \
18808STRIP \
18809RANLIB \
18810CC \
18811CFLAGS \
18812compiler \
18813lt_cv_sys_global_symbol_pipe \
18814lt_cv_sys_global_symbol_to_cdecl \
18815lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18817lt_prog_compiler_no_builtin_flag \
18818lt_prog_compiler_wl \
18819lt_prog_compiler_pic \
18820lt_prog_compiler_static \
18821lt_cv_prog_compiler_c_o \
18822need_locks \
b214d478
SE
18823DSYMUTIL \
18824NMEDIT \
18825LIPO \
18826OTOOL \
18827OTOOL64 \
d7040cdb
SE
18828shrext_cmds \
18829export_dynamic_flag_spec \
18830whole_archive_flag_spec \
18831compiler_needs_object \
18832with_gnu_ld \
18833allow_undefined_flag \
18834no_undefined_flag \
18835hardcode_libdir_flag_spec \
18836hardcode_libdir_flag_spec_ld \
18837hardcode_libdir_separator \
18838fix_srcfile_path \
18839exclude_expsyms \
18840include_expsyms \
18841file_list_spec \
18842variables_saved_for_relink \
18843libname_spec \
18844library_names_spec \
18845soname_spec \
3725885a 18846install_override_mode \
d7040cdb
SE
18847finish_eval \
18848old_striplib \
3cb62297
L
18849striplib \
18850compiler_lib_search_dirs \
18851predep_objects \
18852postdep_objects \
18853predeps \
18854postdeps \
18855compiler_lib_search_path \
18856LD_CXX \
18857reload_flag_CXX \
18858compiler_CXX \
18859lt_prog_compiler_no_builtin_flag_CXX \
18860lt_prog_compiler_wl_CXX \
18861lt_prog_compiler_pic_CXX \
18862lt_prog_compiler_static_CXX \
18863lt_cv_prog_compiler_c_o_CXX \
18864export_dynamic_flag_spec_CXX \
18865whole_archive_flag_spec_CXX \
18866compiler_needs_object_CXX \
18867with_gnu_ld_CXX \
18868allow_undefined_flag_CXX \
18869no_undefined_flag_CXX \
18870hardcode_libdir_flag_spec_CXX \
18871hardcode_libdir_flag_spec_ld_CXX \
18872hardcode_libdir_separator_CXX \
18873fix_srcfile_path_CXX \
18874exclude_expsyms_CXX \
18875include_expsyms_CXX \
18876file_list_spec_CXX \
18877compiler_lib_search_dirs_CXX \
18878predep_objects_CXX \
18879postdep_objects_CXX \
18880predeps_CXX \
18881postdeps_CXX \
18882compiler_lib_search_path_CXX; do
3725885a 18883 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18884 *[\\\\\\\`\\"\\\$]*)
3725885a 18885 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18886 ;;
18887 *)
18888 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18889 ;;
18890 esac
18891done
18892
18893# Double-quote double-evaled strings.
18894for var in reload_cmds \
18895old_postinstall_cmds \
18896old_postuninstall_cmds \
18897old_archive_cmds \
18898extract_expsyms_cmds \
18899old_archive_from_new_cmds \
18900old_archive_from_expsyms_cmds \
18901archive_cmds \
18902archive_expsym_cmds \
18903module_cmds \
18904module_expsym_cmds \
18905export_symbols_cmds \
18906prelink_cmds \
18907postinstall_cmds \
18908postuninstall_cmds \
18909finish_cmds \
18910sys_lib_search_path_spec \
3cb62297
L
18911sys_lib_dlsearch_path_spec \
18912reload_cmds_CXX \
18913old_archive_cmds_CXX \
18914old_archive_from_new_cmds_CXX \
18915old_archive_from_expsyms_cmds_CXX \
18916archive_cmds_CXX \
18917archive_expsym_cmds_CXX \
18918module_cmds_CXX \
18919module_expsym_cmds_CXX \
18920export_symbols_cmds_CXX \
18921prelink_cmds_CXX; do
3725885a 18922 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18923 *[\\\\\\\`\\"\\\$]*)
3725885a 18924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18925 ;;
18926 *)
18927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18928 ;;
18929 esac
18930done
18931
d7040cdb
SE
18932ac_aux_dir='$ac_aux_dir'
18933xsi_shell='$xsi_shell'
18934lt_shell_append='$lt_shell_append'
18935
18936# See if we are running on zsh, and set the options which allow our
18937# commands through without removal of \ escapes INIT.
18938if test -n "\${ZSH_VERSION+set}" ; then
18939 setopt NO_GLOB_SUBST
18940fi
18941
18942
18943 PACKAGE='$PACKAGE'
18944 VERSION='$VERSION'
18945 TIMESTAMP='$TIMESTAMP'
18946 RM='$RM'
18947 ofile='$ofile'
18948
18949
18950
3cb62297
L
18951
18952
20e95c23
DJ
18953# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18954 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18955 # from automake.
18956 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18957 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18958 LINGUAS="${LINGUAS-%UNSET%}"
18959
42ecbf5e 18960
33589acb 18961
42ecbf5e
DJ
18962_ACEOF
18963
81ecdfbb 18964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18965
81ecdfbb 18966# Handling of arguments.
42ecbf5e 18967for ac_config_target in $ac_config_targets
252b5132 18968do
81ecdfbb
RW
18969 case $ac_config_target in
18970 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18971 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 18973 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33589acb 18974 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
18975 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18976 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18977
d0ac1c44 18978 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18979 esac
18980done
18981
81ecdfbb 18982
42ecbf5e
DJ
18983# If the user did not use the arguments to specify the items to instantiate,
18984# then the envvar interface is used. Set only those that are not.
18985# We use the long form for the default assignment because of an extremely
18986# bizarre bug on SunOS 4.1.3.
18987if $ac_need_defaults; then
18988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18991fi
18992
18993# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18994# simply because there is no reason against having it here, and in addition,
42ecbf5e 18995# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18996# Hook for its removal unless debugging.
18997# Note that there is a small window in which the directory will not be cleaned:
18998# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18999$debug ||
19000{
d0ac1c44 19001 tmp= ac_tmp=
81ecdfbb 19002 trap 'exit_status=$?
d0ac1c44
SM
19003 : "${ac_tmp:=$tmp}"
19004 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
19005' 0
19006 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 19007}
42ecbf5e 19008# Create a (secure) tmp directory for tmp files.
e5a52504 19009
42ecbf5e 19010{
81ecdfbb 19011 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 19012 test -d "$tmp"
42ecbf5e
DJ
19013} ||
19014{
81ecdfbb
RW
19015 tmp=./conf$$-$RANDOM
19016 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
19017} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19018ac_tmp=$tmp
81ecdfbb
RW
19019
19020# Set up the scripts for CONFIG_FILES section.
19021# No need to generate them if there are no CONFIG_FILES.
19022# This happens for instance with `./config.status config.h'.
19023if test -n "$CONFIG_FILES"; then
19024
50ff67e6 19025
81ecdfbb
RW
19026ac_cr=`echo X | tr X '\015'`
19027# On cygwin, bash can eat \r inside `` if the user requested igncr.
19028# But we know of no other shell where ac_cr would be empty at this
19029# point, so we can use a bashism as a fallback.
19030if test "x$ac_cr" = x; then
19031 eval ac_cr=\$\'\\r\'
19032fi
19033ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19034if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 19035 ac_cs_awk_cr='\\r'
81ecdfbb
RW
19036else
19037 ac_cs_awk_cr=$ac_cr
19038fi
19039
d0ac1c44 19040echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
19041_ACEOF
19042
e5a52504 19043
81ecdfbb
RW
19044{
19045 echo "cat >conf$$subs.awk <<_ACEOF" &&
19046 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19047 echo "_ACEOF"
19048} >conf$$subs.sh ||
d0ac1c44
SM
19049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19050ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
19051ac_delim='%!_!# '
19052for ac_last_try in false false false false false :; do
19053 . ./conf$$subs.sh ||
d0ac1c44 19054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19055
19056 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19057 if test $ac_delim_n = $ac_delim_num; then
19058 break
19059 elif $ac_last_try; then
d0ac1c44 19060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19061 else
19062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19063 fi
19064done
19065rm -f conf$$subs.sh
19066
19067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19068cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
19069_ACEOF
19070sed -n '
19071h
19072s/^/S["/; s/!.*/"]=/
19073p
19074g
19075s/^[^!]*!//
19076:repl
19077t repl
19078s/'"$ac_delim"'$//
19079t delim
19080:nl
19081h
d0ac1c44 19082s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19083t more1
19084s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19085p
19086n
19087b repl
19088:more1
19089s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19090p
19091g
19092s/.\{148\}//
19093t nl
19094:delim
19095h
d0ac1c44 19096s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19097t more2
19098s/["\\]/\\&/g; s/^/"/; s/$/"/
19099p
19100b
19101:more2
19102s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19103p
19104g
19105s/.\{148\}//
19106t delim
19107' <conf$$subs.awk | sed '
19108/^[^""]/{
19109 N
19110 s/\n//
19111}
19112' >>$CONFIG_STATUS || ac_write_fail=1
19113rm -f conf$$subs.awk
19114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19115_ACAWK
d0ac1c44 19116cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
19117 for (key in S) S_is_set[key] = 1
19118 FS = "\a"
50ff67e6 19119
81ecdfbb
RW
19120}
19121{
19122 line = $ 0
19123 nfields = split(line, field, "@")
19124 substed = 0
19125 len = length(field[1])
19126 for (i = 2; i < nfields; i++) {
19127 key = field[i]
19128 keylen = length(key)
19129 if (S_is_set[key]) {
19130 value = S[key]
19131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19132 len += length(value) + length(field[++i])
19133 substed = 1
19134 } else
19135 len += 1 + keylen
19136 }
50ff67e6 19137
81ecdfbb
RW
19138 print line
19139}
50ff67e6 19140
81ecdfbb
RW
19141_ACAWK
19142_ACEOF
19143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19146else
19147 cat
d0ac1c44
SM
19148fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e 19150_ACEOF
d15b04bd 19151
d0ac1c44
SM
19152# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19153# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19154# trailing colons and then remove the whole line if VPATH becomes empty
19155# (actually we leave an empty line to preserve line numbers).
19156if test "x$srcdir" = x.; then
d0ac1c44
SM
19157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19158h
19159s///
19160s/^/:/
19161s/[ ]*$/:/
19162s/:\$(srcdir):/:/g
19163s/:\${srcdir}:/:/g
19164s/:@srcdir@:/:/g
19165s/^:*//
81ecdfbb 19166s/:*$//
d0ac1c44
SM
19167x
19168s/\(=[ ]*\).*/\1/
19169G
19170s/\n//
81ecdfbb
RW
19171s/^[^=]*=[ ]*$//
19172}'
19173fi
19174
19175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19176fi # test -n "$CONFIG_FILES"
42ecbf5e 19177
81ecdfbb
RW
19178# Set up the scripts for CONFIG_HEADERS section.
19179# No need to generate them if there are no CONFIG_HEADERS.
19180# This happens for instance with `./config.status Makefile'.
19181if test -n "$CONFIG_HEADERS"; then
d0ac1c44 19182cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
19183BEGIN {
19184_ACEOF
42ecbf5e 19185
81ecdfbb
RW
19186# Transform confdefs.h into an awk script `defines.awk', embedded as
19187# here-document in config.status, that substitutes the proper values into
19188# config.h.in to produce config.h.
252b5132 19189
81ecdfbb
RW
19190# Create a delimiter string that does not exist in confdefs.h, to ease
19191# handling of long lines.
19192ac_delim='%!_!# '
19193for ac_last_try in false false :; do
d0ac1c44
SM
19194 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19195 if test -z "$ac_tt"; then
81ecdfbb
RW
19196 break
19197 elif $ac_last_try; then
d0ac1c44 19198 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
19199 else
19200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19201 fi
19202done
19203
19204# For the awk script, D is an array of macro values keyed by name,
19205# likewise P contains macro parameters if any. Preserve backslash
19206# newline sequences.
19207
19208ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19209sed -n '
19210s/.\{148\}/&'"$ac_delim"'/g
19211t rset
19212:rset
19213s/^[ ]*#[ ]*define[ ][ ]*/ /
19214t def
19215d
19216:def
19217s/\\$//
19218t bsnl
19219s/["\\]/\\&/g
19220s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19221D["\1"]=" \3"/p
19222s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19223d
19224:bsnl
19225s/["\\]/\\&/g
19226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19227D["\1"]=" \3\\\\\\n"\\/p
19228t cont
19229s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19230t cont
19231d
19232:cont
19233n
19234s/.\{148\}/&'"$ac_delim"'/g
19235t clear
19236:clear
19237s/\\$//
19238t bsnlc
19239s/["\\]/\\&/g; s/^/"/; s/$/"/p
19240d
19241:bsnlc
19242s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19243b cont
19244' <confdefs.h | sed '
19245s/'"$ac_delim"'/"\\\
19246"/g' >>$CONFIG_STATUS || ac_write_fail=1
19247
19248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19249 for (key in D) D_is_set[key] = 1
19250 FS = "\a"
19251}
19252/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19253 line = \$ 0
19254 split(line, arg, " ")
19255 if (arg[1] == "#") {
19256 defundef = arg[2]
19257 mac1 = arg[3]
19258 } else {
19259 defundef = substr(arg[1], 2)
19260 mac1 = arg[2]
19261 }
19262 split(mac1, mac2, "(") #)
19263 macro = mac2[1]
19264 prefix = substr(line, 1, index(line, defundef) - 1)
19265 if (D_is_set[macro]) {
19266 # Preserve the white space surrounding the "#".
19267 print prefix "define", macro P[macro] D[macro]
19268 next
19269 } else {
19270 # Replace #undef with comments. This is necessary, for example,
19271 # in the case of _POSIX_SOURCE, which is predefined and required
19272 # on some systems where configure will not decide to define it.
19273 if (defundef == "undef") {
19274 print "/*", prefix defundef, macro, "*/"
19275 next
19276 }
19277 }
19278}
19279{ print }
19280_ACAWK
42ecbf5e 19281_ACEOF
81ecdfbb 19282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 19283 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 19284fi # test -n "$CONFIG_HEADERS"
42ecbf5e 19285
81ecdfbb
RW
19286
19287eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19288shift
19289for ac_tag
19290do
19291 case $ac_tag in
19292 :[FHLC]) ac_mode=$ac_tag; continue;;
19293 esac
19294 case $ac_mode$ac_tag in
19295 :[FHL]*:*);;
d0ac1c44 19296 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19297 :[FH]-) ac_tag=-:-;;
19298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19299 esac
19300 ac_save_IFS=$IFS
19301 IFS=:
19302 set x $ac_tag
19303 IFS=$ac_save_IFS
19304 shift
19305 ac_file=$1
19306 shift
19307
19308 case $ac_mode in
19309 :L) ac_source=$1;;
19310 :[FH])
19311 ac_file_inputs=
19312 for ac_f
19313 do
19314 case $ac_f in
d0ac1c44 19315 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19316 *) # Look for the file first in the build tree, then in the source tree
19317 # (if the path is not absolute). The absolute path cannot be DOS-style,
19318 # because $ac_f cannot contain `:'.
19319 test -f "$ac_f" ||
19320 case $ac_f in
19321 [\\/$]*) false;;
19322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19323 esac ||
d0ac1c44 19324 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19325 esac
19326 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19327 as_fn_append ac_file_inputs " '$ac_f'"
19328 done
19329
19330 # Let's still pretend it is `configure' which instantiates (i.e., don't
19331 # use $as_me), people would be surprised to read:
19332 # /* config.h. Generated by config.status. */
19333 configure_input='Generated from '`
19334 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19335 `' by configure.'
19336 if test x"$ac_file" != x-; then
19337 configure_input="$ac_file. $configure_input"
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19339$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 19340 fi
81ecdfbb
RW
19341 # Neutralize special characters interpreted by sed in replacement strings.
19342 case $configure_input in #(
19343 *\&* | *\|* | *\\* )
19344 ac_sed_conf_input=`$as_echo "$configure_input" |
19345 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19346 *) ac_sed_conf_input=$configure_input;;
19347 esac
252b5132 19348
81ecdfbb 19349 case $ac_tag in
d0ac1c44
SM
19350 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19352 esac
19353 ;;
252b5132
RH
19354 esac
19355
81ecdfbb 19356 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
19357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19358 X"$ac_file" : 'X\(//\)[^/]' \| \
19359 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19360 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19361$as_echo X"$ac_file" |
19362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19363 s//\1/
19364 q
19365 }
19366 /^X\(\/\/\)[^/].*/{
19367 s//\1/
19368 q
19369 }
19370 /^X\(\/\/\)$/{
19371 s//\1/
19372 q
19373 }
19374 /^X\(\/\).*/{
19375 s//\1/
19376 q
19377 }
19378 s/.*/./; q'`
19379 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
19380 ac_builddir=.
19381
81ecdfbb
RW
19382case "$ac_dir" in
19383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19384*)
19385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19386 # A ".." for each directory in $ac_dir_suffix.
19387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19388 case $ac_top_builddir_sub in
19389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19391 esac ;;
19392esac
19393ac_abs_top_builddir=$ac_pwd
19394ac_abs_builddir=$ac_pwd$ac_dir_suffix
19395# for backward compatibility:
19396ac_top_builddir=$ac_top_build_prefix
252b5132 19397
42ecbf5e 19398case $srcdir in
81ecdfbb 19399 .) # We are building in place.
42ecbf5e 19400 ac_srcdir=.
81ecdfbb
RW
19401 ac_top_srcdir=$ac_top_builddir_sub
19402 ac_abs_top_srcdir=$ac_pwd ;;
19403 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 19404 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19405 ac_top_srcdir=$srcdir
19406 ac_abs_top_srcdir=$srcdir ;;
19407 *) # Relative name.
19408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19409 ac_top_srcdir=$ac_top_build_prefix$srcdir
19410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 19411esac
81ecdfbb 19412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 19413
252b5132 19414
81ecdfbb
RW
19415 case $ac_mode in
19416 :F)
19417 #
19418 # CONFIG_FILE
19419 #
e5a52504 19420
42ecbf5e
DJ
19421 case $INSTALL in
19422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
19423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19424 esac
19425 ac_MKDIR_P=$MKDIR_P
19426 case $MKDIR_P in
19427 [\\/$]* | ?:[\\/]* ) ;;
19428 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 19429 esac
81ecdfbb 19430_ACEOF
e5a52504 19431
81ecdfbb
RW
19432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433# If the template does not know about datarootdir, expand it.
19434# FIXME: This hack should be removed a few years after 2.60.
19435ac_datarootdir_hack=; ac_datarootdir_seen=
19436ac_sed_dataroot='
19437/datarootdir/ {
19438 p
19439 q
19440}
19441/@datadir@/p
19442/@docdir@/p
19443/@infodir@/p
19444/@localedir@/p
19445/@mandir@/p'
19446case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19447*datarootdir*) ac_datarootdir_seen=yes;;
19448*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19450$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19451_ACEOF
19452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19453 ac_datarootdir_hack='
19454 s&@datadir@&$datadir&g
19455 s&@docdir@&$docdir&g
19456 s&@infodir@&$infodir&g
19457 s&@localedir@&$localedir&g
19458 s&@mandir@&$mandir&g
19459 s&\\\${datarootdir}&$datarootdir&g' ;;
19460esac
42ecbf5e 19461_ACEOF
81ecdfbb
RW
19462
19463# Neutralize VPATH when `$srcdir' = `.'.
19464# Shell code in configure.ac might set extrasub.
19465# FIXME: do we really want to maintain this feature?
19466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19467ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
19468$extrasub
19469_ACEOF
81ecdfbb 19470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
19471:t
19472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19473s|@configure_input@|$ac_sed_conf_input|;t t
19474s&@top_builddir@&$ac_top_builddir_sub&;t t
19475s&@top_build_prefix@&$ac_top_build_prefix&;t t
19476s&@srcdir@&$ac_srcdir&;t t
19477s&@abs_srcdir@&$ac_abs_srcdir&;t t
19478s&@top_srcdir@&$ac_top_srcdir&;t t
19479s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19480s&@builddir@&$ac_builddir&;t t
19481s&@abs_builddir@&$ac_abs_builddir&;t t
19482s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19483s&@INSTALL@&$ac_INSTALL&;t t
19484s&@MKDIR_P@&$ac_MKDIR_P&;t t
19485$ac_datarootdir_hack
19486"
50ff67e6 19487eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
d0ac1c44 19488 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19489
19490test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19491 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19493 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19495which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19497which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19498
d0ac1c44 19499 rm -f "$ac_tmp/stdin"
42ecbf5e 19500 case $ac_file in
d0ac1c44
SM
19501 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19502 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19503 esac \
d0ac1c44 19504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19505 ;;
19506 :H)
19507 #
19508 # CONFIG_HEADER
19509 #
42ecbf5e 19510 if test x"$ac_file" != x-; then
81ecdfbb
RW
19511 {
19512 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19514 } >"$ac_tmp/config.h" \
19515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19516 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19518$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 19519 else
81ecdfbb 19520 rm -f "$ac_file"
d0ac1c44
SM
19521 mv "$ac_tmp/config.h" "$ac_file" \
19522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 19523 fi
42ecbf5e 19524 else
81ecdfbb 19525 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19527 || as_fn_error $? "could not create -" "$LINENO" 5
e5a52504 19528 fi
81ecdfbb
RW
19529# Compute "$ac_file"'s index in $config_headers.
19530_am_arg="$ac_file"
42ecbf5e
DJ
19531_am_stamp_count=1
19532for _am_header in $config_headers :; do
19533 case $_am_header in
81ecdfbb 19534 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
19535 break ;;
19536 * )
19537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19538 esac
19539done
81ecdfbb
RW
19540echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19541$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19542 X"$_am_arg" : 'X\(//\)[^/]' \| \
19543 X"$_am_arg" : 'X\(//\)$' \| \
19544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19545$as_echo X"$_am_arg" |
19546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19547 s//\1/
19548 q
19549 }
19550 /^X\(\/\/\)[^/].*/{
19551 s//\1/
19552 q
19553 }
19554 /^X\(\/\/\)$/{
19555 s//\1/
19556 q
19557 }
19558 /^X\(\/\).*/{
19559 s//\1/
19560 q
19561 }
19562 s/.*/./; q'`/stamp-h$_am_stamp_count
19563 ;;
42ecbf5e 19564
81ecdfbb
RW
19565 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19566$as_echo "$as_me: executing $ac_file commands" >&6;}
19567 ;;
19568 esac
42ecbf5e
DJ
19569
19570
81ecdfbb
RW
19571 case $ac_file$ac_mode in
19572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 19573 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
19574 # are listed without --file. Let's play safe and only enable the eval
19575 # if we detect the quoting.
19576 case $CONFIG_FILES in
19577 *\'*) eval set x "$CONFIG_FILES" ;;
19578 *) set x $CONFIG_FILES ;;
19579 esac
19580 shift
19581 for mf
19582 do
19583 # Strip MF so we end up with the name of the file.
19584 mf=`echo "$mf" | sed -e 's/:.*$//'`
19585 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 19586 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
19587 # some people rename them; so instead we look at the file content.
19588 # Grep'ing the first line is not enough: some people post-process
19589 # each Makefile.in and add a new line on top of each file to say so.
19590 # Grep'ing the whole file is not good either: AIX grep has a line
19591 # limit of 2048, but all sed's we know have understand at least 4000.
19592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19593 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
19594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19595 X"$mf" : 'X\(//\)[^/]' \| \
19596 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
19597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19598$as_echo X"$mf" |
19599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19600 s//\1/
19601 q
19602 }
19603 /^X\(\/\/\)[^/].*/{
19604 s//\1/
19605 q
19606 }
19607 /^X\(\/\/\)$/{
19608 s//\1/
19609 q
19610 }
19611 /^X\(\/\).*/{
19612 s//\1/
19613 q
19614 }
19615 s/.*/./; q'`
19616 else
19617 continue
19618 fi
19619 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 19620 # from the Makefile without running 'make'.
81ecdfbb
RW
19621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19622 test -z "$DEPDIR" && continue
19623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 19624 test -z "$am__include" && continue
81ecdfbb 19625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
19626 # Find all dependency output files, they are included files with
19627 # $(DEPDIR) in their names. We invoke sed twice because it is the
19628 # simplest approach to changing $(DEPDIR) to its actual value in the
19629 # expansion.
19630 for file in `sed -n "
19631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 19632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
19633 # Make sure the directory exists.
19634 test -f "$dirpart/$file" && continue
19635 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19636$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637 X"$file" : 'X\(//\)[^/]' \| \
19638 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19639 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19640$as_echo X"$file" |
19641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642 s//\1/
19643 q
19644 }
19645 /^X\(\/\/\)[^/].*/{
19646 s//\1/
19647 q
19648 }
19649 /^X\(\/\/\)$/{
19650 s//\1/
19651 q
19652 }
19653 /^X\(\/\).*/{
19654 s//\1/
19655 q
19656 }
19657 s/.*/./; q'`
19658 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19659 # echo "creating $dirpart/$file"
19660 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19661 done
42ecbf5e 19662 done
81ecdfbb 19663}
d7040cdb 19664 ;;
81ecdfbb 19665 "libtool":C)
d7040cdb
SE
19666
19667 # See if we are running on zsh, and set the options which allow our
19668 # commands through without removal of \ escapes.
19669 if test -n "${ZSH_VERSION+set}" ; then
19670 setopt NO_GLOB_SUBST
19671 fi
19672
19673 cfgfile="${ofile}T"
19674 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19675 $RM "$cfgfile"
19676
19677 cat <<_LT_EOF >> "$cfgfile"
19678#! $SHELL
19679
19680# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19681# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19682# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19683# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19684#
b214d478 19685# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19686# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19687# Written by Gordon Matzigkeit, 1996
d7040cdb 19688#
b214d478 19689# This file is part of GNU Libtool.
d7040cdb 19690#
b214d478
SE
19691# GNU Libtool is free software; you can redistribute it and/or
19692# modify it under the terms of the GNU General Public License as
19693# published by the Free Software Foundation; either version 2 of
19694# the License, or (at your option) any later version.
d7040cdb 19695#
b214d478
SE
19696# As a special exception to the GNU General Public License,
19697# if you distribute this file as part of a program or library that
19698# is built using GNU Libtool, you may include this file under the
19699# same distribution terms that you use for the rest of that program.
d7040cdb 19700#
b214d478
SE
19701# GNU Libtool is distributed in the hope that it will be useful,
19702# but WITHOUT ANY WARRANTY; without even the implied warranty of
19703# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19704# GNU General Public License for more details.
d7040cdb 19705#
b214d478
SE
19706# You should have received a copy of the GNU General Public License
19707# along with GNU Libtool; see the file COPYING. If not, a copy
19708# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19709# obtained by writing to the Free Software Foundation, Inc.,
19710# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19711
19712
19713# The names of the tagged configurations supported by this script.
3cb62297 19714available_tags="CXX "
d7040cdb
SE
19715
19716# ### BEGIN LIBTOOL CONFIG
19717
19718# Which release of libtool.m4 was used?
19719macro_version=$macro_version
19720macro_revision=$macro_revision
19721
19722# Whether or not to build shared libraries.
19723build_libtool_libs=$enable_shared
19724
19725# Whether or not to build static libraries.
19726build_old_libs=$enable_static
19727
19728# What type of objects to build.
19729pic_mode=$pic_mode
19730
19731# Whether or not to optimize for fast installation.
19732fast_install=$enable_fast_install
19733
3725885a
RW
19734# Shell to use when invoking shell scripts.
19735SHELL=$lt_SHELL
19736
19737# An echo program that protects backslashes.
19738ECHO=$lt_ECHO
19739
d7040cdb
SE
19740# The host system.
19741host_alias=$host_alias
19742host=$host
19743host_os=$host_os
19744
19745# The build system.
19746build_alias=$build_alias
19747build=$build
19748build_os=$build_os
19749
19750# A sed program that does not truncate output.
19751SED=$lt_SED
19752
19753# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19754Xsed="\$SED -e 1s/^X//"
19755
19756# A grep program that handles long lines.
19757GREP=$lt_GREP
19758
19759# An ERE matcher.
19760EGREP=$lt_EGREP
19761
19762# A literal string matcher.
19763FGREP=$lt_FGREP
19764
19765# A BSD- or MS-compatible name lister.
19766NM=$lt_NM
19767
19768# Whether we need soft or hard links.
19769LN_S=$lt_LN_S
19770
19771# What is the maximum length of a command?
19772max_cmd_len=$max_cmd_len
19773
19774# Object file suffix (normally "o").
19775objext=$ac_objext
19776
19777# Executable file suffix (normally "").
19778exeext=$exeext
19779
19780# whether the shell understands "unset".
19781lt_unset=$lt_unset
19782
19783# turn spaces into newlines.
19784SP2NL=$lt_lt_SP2NL
19785
19786# turn newlines into spaces.
19787NL2SP=$lt_lt_NL2SP
19788
b214d478
SE
19789# An object symbol dumper.
19790OBJDUMP=$lt_OBJDUMP
19791
d7040cdb
SE
19792# Method to check whether dependent libraries are shared objects.
19793deplibs_check_method=$lt_deplibs_check_method
19794
19795# Command to use when deplibs_check_method == "file_magic".
19796file_magic_cmd=$lt_file_magic_cmd
19797
19798# The archiver.
19799AR=$lt_AR
19800AR_FLAGS=$lt_AR_FLAGS
19801
19802# A symbol stripping program.
19803STRIP=$lt_STRIP
19804
19805# Commands used to install an old-style archive.
19806RANLIB=$lt_RANLIB
19807old_postinstall_cmds=$lt_old_postinstall_cmds
19808old_postuninstall_cmds=$lt_old_postuninstall_cmds
19809
3725885a
RW
19810# Whether to use a lock for old archive extraction.
19811lock_old_archive_extraction=$lock_old_archive_extraction
19812
d7040cdb
SE
19813# A C compiler.
19814LTCC=$lt_CC
19815
19816# LTCC compiler flags.
19817LTCFLAGS=$lt_CFLAGS
19818
19819# Take the output of nm and produce a listing of raw symbols and C names.
19820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19821
19822# Transform the output of nm in a proper C declaration.
19823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19824
19825# Transform the output of nm in a C name address pair.
19826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19827
b214d478
SE
19828# Transform the output of nm in a C name address pair when lib prefix is needed.
19829global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19830
d7040cdb
SE
19831# The name of the directory that contains temporary libtool files.
19832objdir=$objdir
19833
d7040cdb
SE
19834# Used to examine libraries when file_magic_cmd begins with "file".
19835MAGIC_CMD=$MAGIC_CMD
19836
19837# Must we lock files when doing compilation?
19838need_locks=$lt_need_locks
19839
b214d478
SE
19840# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19841DSYMUTIL=$lt_DSYMUTIL
19842
19843# Tool to change global to local symbols on Mac OS X.
19844NMEDIT=$lt_NMEDIT
19845
19846# Tool to manipulate fat objects and archives on Mac OS X.
19847LIPO=$lt_LIPO
19848
19849# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19850OTOOL=$lt_OTOOL
19851
19852# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19853OTOOL64=$lt_OTOOL64
19854
d7040cdb
SE
19855# Old archive suffix (normally "a").
19856libext=$libext
19857
19858# Shared library suffix (normally ".so").
19859shrext_cmds=$lt_shrext_cmds
19860
19861# The commands to extract the exported symbol list from a shared archive.
19862extract_expsyms_cmds=$lt_extract_expsyms_cmds
19863
19864# Variables whose values should be saved in libtool wrapper scripts and
19865# restored at link time.
19866variables_saved_for_relink=$lt_variables_saved_for_relink
19867
19868# Do we need the "lib" prefix for modules?
19869need_lib_prefix=$need_lib_prefix
19870
19871# Do we need a version for libraries?
19872need_version=$need_version
19873
19874# Library versioning type.
19875version_type=$version_type
19876
19877# Shared library runtime path variable.
19878runpath_var=$runpath_var
19879
19880# Shared library path variable.
19881shlibpath_var=$shlibpath_var
19882
19883# Is shlibpath searched before the hard-coded library search path?
19884shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19885
19886# Format of library name prefix.
19887libname_spec=$lt_libname_spec
19888
19889# List of archive names. First name is the real one, the rest are links.
19890# The last name is the one that the linker finds with -lNAME
19891library_names_spec=$lt_library_names_spec
19892
19893# The coded name of the library, if different from the real name.
19894soname_spec=$lt_soname_spec
19895
3725885a
RW
19896# Permission mode override for installation of shared libraries.
19897install_override_mode=$lt_install_override_mode
19898
d7040cdb
SE
19899# Command to use after installation of a shared archive.
19900postinstall_cmds=$lt_postinstall_cmds
19901
19902# Command to use after uninstallation of a shared archive.
19903postuninstall_cmds=$lt_postuninstall_cmds
19904
19905# Commands used to finish a libtool library installation in a directory.
19906finish_cmds=$lt_finish_cmds
19907
19908# As "finish_cmds", except a single script fragment to be evaled but
19909# not shown.
19910finish_eval=$lt_finish_eval
19911
19912# Whether we should hardcode library paths into libraries.
19913hardcode_into_libs=$hardcode_into_libs
19914
19915# Compile-time system search path for libraries.
19916sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19917
19918# Run-time system search path for libraries.
19919sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19920
19921# Whether dlopen is supported.
19922dlopen_support=$enable_dlopen
19923
19924# Whether dlopen of programs is supported.
19925dlopen_self=$enable_dlopen_self
19926
19927# Whether dlopen of statically linked programs is supported.
19928dlopen_self_static=$enable_dlopen_self_static
19929
19930# Commands to strip libraries.
19931old_striplib=$lt_old_striplib
19932striplib=$lt_striplib
19933
19934
19935# The linker used to build libraries.
19936LD=$lt_LD
19937
3725885a
RW
19938# How to create reloadable object files.
19939reload_flag=$lt_reload_flag
19940reload_cmds=$lt_reload_cmds
19941
d7040cdb
SE
19942# Commands used to build an old-style archive.
19943old_archive_cmds=$lt_old_archive_cmds
19944
19945# A language specific compiler.
19946CC=$lt_compiler
19947
19948# Is the compiler the GNU compiler?
19949with_gcc=$GCC
19950
19951# Compiler flag to turn off builtin functions.
19952no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19953
19954# How to pass a linker flag through the compiler.
19955wl=$lt_lt_prog_compiler_wl
19956
19957# Additional compiler flags for building library objects.
19958pic_flag=$lt_lt_prog_compiler_pic
19959
19960# Compiler flag to prevent dynamic linking.
19961link_static_flag=$lt_lt_prog_compiler_static
19962
19963# Does compiler simultaneously support -c and -o options?
19964compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19965
19966# Whether or not to add -lc for building shared libraries.
19967build_libtool_need_lc=$archive_cmds_need_lc
19968
19969# Whether or not to disallow shared libs when runtime libs are static.
19970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19971
19972# Compiler flag to allow reflexive dlopens.
19973export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19974
19975# Compiler flag to generate shared objects directly from archives.
19976whole_archive_flag_spec=$lt_whole_archive_flag_spec
19977
19978# Whether the compiler copes with passing no objects directly.
19979compiler_needs_object=$lt_compiler_needs_object
19980
19981# Create an old-style archive from a shared archive.
19982old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19983
19984# Create a temporary old-style archive to link instead of a shared archive.
19985old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19986
19987# Commands used to build a shared archive.
19988archive_cmds=$lt_archive_cmds
19989archive_expsym_cmds=$lt_archive_expsym_cmds
19990
19991# Commands used to build a loadable module if different from building
19992# a shared archive.
19993module_cmds=$lt_module_cmds
19994module_expsym_cmds=$lt_module_expsym_cmds
19995
19996# Whether we are building with GNU ld or not.
19997with_gnu_ld=$lt_with_gnu_ld
19998
19999# Flag that allows shared libraries with undefined symbols to be built.
20000allow_undefined_flag=$lt_allow_undefined_flag
20001
20002# Flag that enforces no undefined symbols.
20003no_undefined_flag=$lt_no_undefined_flag
20004
20005# Flag to hardcode \$libdir into a binary during linking.
20006# This must work even if \$libdir does not exist
20007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20008
20009# If ld is used when linking, flag to hardcode \$libdir into a binary
20010# during linking. This must work even if \$libdir does not exist.
20011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20012
20013# Whether we need a single "-rpath" flag with a separated argument.
20014hardcode_libdir_separator=$lt_hardcode_libdir_separator
20015
20016# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20017# DIR into the resulting binary.
20018hardcode_direct=$hardcode_direct
20019
20020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20021# DIR into the resulting binary and the resulting library dependency is
20022# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20023# library is relocated.
20024hardcode_direct_absolute=$hardcode_direct_absolute
20025
20026# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20027# into the resulting binary.
20028hardcode_minus_L=$hardcode_minus_L
20029
20030# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20031# into the resulting binary.
20032hardcode_shlibpath_var=$hardcode_shlibpath_var
20033
20034# Set to "yes" if building a shared library automatically hardcodes DIR
20035# into the library and all subsequent libraries and executables linked
20036# against it.
20037hardcode_automatic=$hardcode_automatic
20038
20039# Set to yes if linker adds runtime paths of dependent libraries
20040# to runtime path list.
20041inherit_rpath=$inherit_rpath
20042
20043# Whether libtool must link a program against all its dependency libraries.
20044link_all_deplibs=$link_all_deplibs
20045
20046# Fix the shell variable \$srcfile for the compiler.
20047fix_srcfile_path=$lt_fix_srcfile_path
20048
20049# Set to "yes" if exported symbols are required.
20050always_export_symbols=$always_export_symbols
20051
20052# The commands to list exported symbols.
20053export_symbols_cmds=$lt_export_symbols_cmds
20054
20055# Symbols that should not be listed in the preloaded symbols.
20056exclude_expsyms=$lt_exclude_expsyms
20057
20058# Symbols that must always be exported.
20059include_expsyms=$lt_include_expsyms
20060
20061# Commands necessary for linking programs (against libraries) with templates.
20062prelink_cmds=$lt_prelink_cmds
20063
20064# Specify filename containing input files.
20065file_list_spec=$lt_file_list_spec
20066
20067# How to hardcode a shared library path into an executable.
20068hardcode_action=$hardcode_action
20069
3cb62297
L
20070# The directories searched by this compiler when creating a shared library.
20071compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20072
20073# Dependencies to place before and after the objects being linked to
20074# create a shared library.
20075predep_objects=$lt_predep_objects
20076postdep_objects=$lt_postdep_objects
20077predeps=$lt_predeps
20078postdeps=$lt_postdeps
20079
20080# The library search path used internally by the compiler when linking
20081# a shared library.
20082compiler_lib_search_path=$lt_compiler_lib_search_path
20083
d7040cdb
SE
20084# ### END LIBTOOL CONFIG
20085
20086_LT_EOF
20087
20088 case $host_os in
20089 aix3*)
20090 cat <<\_LT_EOF >> "$cfgfile"
20091# AIX sometimes has problems with the GCC collect2 program. For some
20092# reason, if we set the COLLECT_NAMES environment variable, the problems
20093# vanish in a puff of smoke.
20094if test "X${COLLECT_NAMES+set}" != Xset; then
20095 COLLECT_NAMES=
20096 export COLLECT_NAMES
20097fi
20098_LT_EOF
20099 ;;
20100 esac
20101
20102
20103ltmain="$ac_aux_dir/ltmain.sh"
20104
20105
20106 # We use sed instead of cat because bash on DJGPP gets confused if
20107 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20108 # text mode, it properly converts lines to CR/LF. This bash problem
20109 # is reportedly fixed, but why not run on old versions too?
20110 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20111 || (rm -f "$cfgfile"; exit 1)
20112
20113 case $xsi_shell in
20114 yes)
20115 cat << \_LT_EOF >> "$cfgfile"
b214d478 20116
d7040cdb
SE
20117# func_dirname file append nondir_replacement
20118# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20119# otherwise set result to NONDIR_REPLACEMENT.
20120func_dirname ()
20121{
20122 case ${1} in
20123 */*) func_dirname_result="${1%/*}${2}" ;;
20124 * ) func_dirname_result="${3}" ;;
20125 esac
20126}
20127
20128# func_basename file
20129func_basename ()
20130{
20131 func_basename_result="${1##*/}"
20132}
20133
b214d478
SE
20134# func_dirname_and_basename file append nondir_replacement
20135# perform func_basename and func_dirname in a single function
20136# call:
20137# dirname: Compute the dirname of FILE. If nonempty,
20138# add APPEND to the result, otherwise set result
20139# to NONDIR_REPLACEMENT.
20140# value returned in "$func_dirname_result"
20141# basename: Compute filename of FILE.
20142# value retuned in "$func_basename_result"
20143# Implementation must be kept synchronized with func_dirname
20144# and func_basename. For efficiency, we do not delegate to
20145# those functions but instead duplicate the functionality here.
20146func_dirname_and_basename ()
20147{
20148 case ${1} in
20149 */*) func_dirname_result="${1%/*}${2}" ;;
20150 * ) func_dirname_result="${3}" ;;
20151 esac
20152 func_basename_result="${1##*/}"
20153}
20154
d7040cdb
SE
20155# func_stripname prefix suffix name
20156# strip PREFIX and SUFFIX off of NAME.
20157# PREFIX and SUFFIX must not contain globbing or regex special
20158# characters, hashes, percent signs, but SUFFIX may contain a leading
20159# dot (in which case that matches only a dot).
20160func_stripname ()
20161{
20162 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20163 # positional parameters, so assign one to ordinary parameter first.
20164 func_stripname_result=${3}
20165 func_stripname_result=${func_stripname_result#"${1}"}
20166 func_stripname_result=${func_stripname_result%"${2}"}
20167}
20168
20169# func_opt_split
20170func_opt_split ()
20171{
20172 func_opt_split_opt=${1%%=*}
20173 func_opt_split_arg=${1#*=}
20174}
20175
20176# func_lo2o object
20177func_lo2o ()
20178{
20179 case ${1} in
20180 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20181 *) func_lo2o_result=${1} ;;
20182 esac
20183}
b214d478
SE
20184
20185# func_xform libobj-or-source
20186func_xform ()
20187{
20188 func_xform_result=${1%.*}.lo
20189}
20190
20191# func_arith arithmetic-term...
20192func_arith ()
20193{
20194 func_arith_result=$(( $* ))
20195}
20196
20197# func_len string
20198# STRING may not start with a hyphen.
20199func_len ()
20200{
20201 func_len_result=${#1}
20202}
20203
d7040cdb
SE
20204_LT_EOF
20205 ;;
20206 *) # Bourne compatible functions.
20207 cat << \_LT_EOF >> "$cfgfile"
b214d478 20208
d7040cdb
SE
20209# func_dirname file append nondir_replacement
20210# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20211# otherwise set result to NONDIR_REPLACEMENT.
20212func_dirname ()
20213{
20214 # Extract subdirectory from the argument.
3725885a 20215 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
20216 if test "X$func_dirname_result" = "X${1}"; then
20217 func_dirname_result="${3}"
20218 else
20219 func_dirname_result="$func_dirname_result${2}"
20220 fi
20221}
20222
20223# func_basename file
20224func_basename ()
20225{
3725885a 20226 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
20227}
20228
b214d478 20229
d7040cdb
SE
20230# func_stripname prefix suffix name
20231# strip PREFIX and SUFFIX off of NAME.
20232# PREFIX and SUFFIX must not contain globbing or regex special
20233# characters, hashes, percent signs, but SUFFIX may contain a leading
20234# dot (in which case that matches only a dot).
20235# func_strip_suffix prefix name
20236func_stripname ()
20237{
20238 case ${2} in
3725885a
RW
20239 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20240 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
20241 esac
20242}
20243
20244# sed scripts:
20245my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20246my_sed_long_arg='1s/^-[^=]*=//'
20247
20248# func_opt_split
20249func_opt_split ()
20250{
3725885a
RW
20251 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20252 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
20253}
20254
20255# func_lo2o object
20256func_lo2o ()
20257{
3725885a 20258 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 20259}
b214d478
SE
20260
20261# func_xform libobj-or-source
20262func_xform ()
20263{
3725885a 20264 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
20265}
20266
20267# func_arith arithmetic-term...
20268func_arith ()
20269{
20270 func_arith_result=`expr "$@"`
20271}
20272
20273# func_len string
20274# STRING may not start with a hyphen.
20275func_len ()
20276{
20277 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20278}
20279
d7040cdb
SE
20280_LT_EOF
20281esac
20282
20283case $lt_shell_append in
20284 yes)
20285 cat << \_LT_EOF >> "$cfgfile"
20286
20287# func_append var value
20288# Append VALUE to the end of shell variable VAR.
20289func_append ()
20290{
20291 eval "$1+=\$2"
20292}
20293_LT_EOF
20294 ;;
20295 *)
20296 cat << \_LT_EOF >> "$cfgfile"
20297
20298# func_append var value
20299# Append VALUE to the end of shell variable VAR.
20300func_append ()
20301{
20302 eval "$1=\$$1\$2"
20303}
b214d478 20304
d7040cdb
SE
20305_LT_EOF
20306 ;;
20307 esac
20308
20309
20310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20311 || (rm -f "$cfgfile"; exit 1)
20312
20313 mv -f "$cfgfile" "$ofile" ||
20314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20315 chmod +x "$ofile"
20316
3cb62297
L
20317
20318 cat <<_LT_EOF >> "$ofile"
20319
20320# ### BEGIN LIBTOOL TAG CONFIG: CXX
20321
20322# The linker used to build libraries.
20323LD=$lt_LD_CXX
20324
20325# How to create reloadable object files.
20326reload_flag=$lt_reload_flag_CXX
20327reload_cmds=$lt_reload_cmds_CXX
20328
20329# Commands used to build an old-style archive.
20330old_archive_cmds=$lt_old_archive_cmds_CXX
20331
20332# A language specific compiler.
20333CC=$lt_compiler_CXX
20334
20335# Is the compiler the GNU compiler?
20336with_gcc=$GCC_CXX
20337
20338# Compiler flag to turn off builtin functions.
20339no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20340
20341# How to pass a linker flag through the compiler.
20342wl=$lt_lt_prog_compiler_wl_CXX
20343
20344# Additional compiler flags for building library objects.
20345pic_flag=$lt_lt_prog_compiler_pic_CXX
20346
20347# Compiler flag to prevent dynamic linking.
20348link_static_flag=$lt_lt_prog_compiler_static_CXX
20349
20350# Does compiler simultaneously support -c and -o options?
20351compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20352
20353# Whether or not to add -lc for building shared libraries.
20354build_libtool_need_lc=$archive_cmds_need_lc_CXX
20355
20356# Whether or not to disallow shared libs when runtime libs are static.
20357allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20358
20359# Compiler flag to allow reflexive dlopens.
20360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20361
20362# Compiler flag to generate shared objects directly from archives.
20363whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20364
20365# Whether the compiler copes with passing no objects directly.
20366compiler_needs_object=$lt_compiler_needs_object_CXX
20367
20368# Create an old-style archive from a shared archive.
20369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20370
20371# Create a temporary old-style archive to link instead of a shared archive.
20372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20373
20374# Commands used to build a shared archive.
20375archive_cmds=$lt_archive_cmds_CXX
20376archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20377
20378# Commands used to build a loadable module if different from building
20379# a shared archive.
20380module_cmds=$lt_module_cmds_CXX
20381module_expsym_cmds=$lt_module_expsym_cmds_CXX
20382
20383# Whether we are building with GNU ld or not.
20384with_gnu_ld=$lt_with_gnu_ld_CXX
20385
20386# Flag that allows shared libraries with undefined symbols to be built.
20387allow_undefined_flag=$lt_allow_undefined_flag_CXX
20388
20389# Flag that enforces no undefined symbols.
20390no_undefined_flag=$lt_no_undefined_flag_CXX
20391
20392# Flag to hardcode \$libdir into a binary during linking.
20393# This must work even if \$libdir does not exist
20394hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20395
20396# If ld is used when linking, flag to hardcode \$libdir into a binary
20397# during linking. This must work even if \$libdir does not exist.
20398hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20399
20400# Whether we need a single "-rpath" flag with a separated argument.
20401hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20402
20403# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20404# DIR into the resulting binary.
20405hardcode_direct=$hardcode_direct_CXX
20406
20407# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20408# DIR into the resulting binary and the resulting library dependency is
20409# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20410# library is relocated.
20411hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20412
20413# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20414# into the resulting binary.
20415hardcode_minus_L=$hardcode_minus_L_CXX
20416
20417# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20418# into the resulting binary.
20419hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20420
20421# Set to "yes" if building a shared library automatically hardcodes DIR
20422# into the library and all subsequent libraries and executables linked
20423# against it.
20424hardcode_automatic=$hardcode_automatic_CXX
20425
20426# Set to yes if linker adds runtime paths of dependent libraries
20427# to runtime path list.
20428inherit_rpath=$inherit_rpath_CXX
20429
20430# Whether libtool must link a program against all its dependency libraries.
20431link_all_deplibs=$link_all_deplibs_CXX
20432
20433# Fix the shell variable \$srcfile for the compiler.
20434fix_srcfile_path=$lt_fix_srcfile_path_CXX
20435
20436# Set to "yes" if exported symbols are required.
20437always_export_symbols=$always_export_symbols_CXX
20438
20439# The commands to list exported symbols.
20440export_symbols_cmds=$lt_export_symbols_cmds_CXX
20441
20442# Symbols that should not be listed in the preloaded symbols.
20443exclude_expsyms=$lt_exclude_expsyms_CXX
20444
20445# Symbols that must always be exported.
20446include_expsyms=$lt_include_expsyms_CXX
20447
20448# Commands necessary for linking programs (against libraries) with templates.
20449prelink_cmds=$lt_prelink_cmds_CXX
20450
20451# Specify filename containing input files.
20452file_list_spec=$lt_file_list_spec_CXX
20453
20454# How to hardcode a shared library path into an executable.
20455hardcode_action=$hardcode_action_CXX
20456
20457# The directories searched by this compiler when creating a shared library.
20458compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20459
20460# Dependencies to place before and after the objects being linked to
20461# create a shared library.
20462predep_objects=$lt_predep_objects_CXX
20463postdep_objects=$lt_postdep_objects_CXX
20464predeps=$lt_predeps_CXX
20465postdeps=$lt_postdeps_CXX
20466
20467# The library search path used internally by the compiler when linking
20468# a shared library.
20469compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20470
20471# ### END LIBTOOL TAG CONFIG: CXX
20472_LT_EOF
20473
42ecbf5e 20474 ;;
81ecdfbb 20475 "default-1":C)
20e95c23
DJ
20476 for ac_file in $CONFIG_FILES; do
20477 # Support "outfile[:infile[:infile...]]"
20478 case "$ac_file" in
20479 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20480 esac
20481 # PO directories have a Makefile.in generated from Makefile.in.in.
20482 case "$ac_file" in */Makefile.in)
20483 # Adjust a relative srcdir.
20484 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 20485 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
20486 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20487 # In autoconf-2.13 it is called $ac_given_srcdir.
20488 # In autoconf-2.50 it is called $srcdir.
20489 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20490 case "$ac_given_srcdir" in
20491 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20492 /*) top_srcdir="$ac_given_srcdir" ;;
20493 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20494 esac
20495 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20496 rm -f "$ac_dir/POTFILES"
20497 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20498 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20499 POMAKEFILEDEPS="POTFILES.in"
20500 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20501 # on $ac_dir but don't depend on user-specified configuration
20502 # parameters.
20503 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20504 # The LINGUAS file contains the set of available languages.
20505 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 20506 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
20507 fi
20508 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20509 # Hide the ALL_LINGUAS assigment from automake.
20510 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20511 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20512 else
37a42ee9 20513 # The set of available languages was given in configure.ac.
20e95c23
DJ
20514 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20515 fi
20516 case "$ac_given_srcdir" in
20517 .) srcdirpre= ;;
20518 *) srcdirpre='$(srcdir)/' ;;
20519 esac
20520 POFILES=
20521 GMOFILES=
20522 UPDATEPOFILES=
20523 DUMMYPOFILES=
20524 for lang in $ALL_LINGUAS; do
20525 POFILES="$POFILES $srcdirpre$lang.po"
20526 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20527 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20528 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20529 done
20530 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20531 # environment variable.
20532 INST_LINGUAS=
20533 if test -n "$ALL_LINGUAS"; then
20534 for presentlang in $ALL_LINGUAS; do
20535 useit=no
20536 if test "%UNSET%" != "$LINGUAS"; then
20537 desiredlanguages="$LINGUAS"
20538 else
20539 desiredlanguages="$ALL_LINGUAS"
20540 fi
20541 for desiredlang in $desiredlanguages; do
20542 # Use the presentlang catalog if desiredlang is
20543 # a. equal to presentlang, or
20544 # b. a variant of presentlang (because in this case,
20545 # presentlang can be used as a fallback for messages
20546 # which are not translated in the desiredlang catalog).
20547 case "$desiredlang" in
20548 "$presentlang"*) useit=yes;;
20549 esac
20550 done
20551 if test $useit = yes; then
20552 INST_LINGUAS="$INST_LINGUAS $presentlang"
20553 fi
20554 done
20555 fi
20556 CATALOGS=
20557 if test -n "$INST_LINGUAS"; then
20558 for lang in $INST_LINGUAS; do
20559 CATALOGS="$CATALOGS $lang.gmo"
20560 done
20561 fi
20562 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20563 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"
20564 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20565 if test -f "$f"; then
20566 case "$f" in
20567 *.orig | *.bak | *~) ;;
20568 *) cat "$f" >> "$ac_dir/Makefile" ;;
20569 esac
20570 fi
20571 done
20572 fi
20573 ;;
20574 esac
20575 done ;;
33589acb
AM
20576 "default":C)
20577case "$srcdir" in
20578 .) srcdirpre= ;;
20579 *) srcdirpre='$(srcdir)/' ;;
20580esac
20581POFILES=
20582GMOFILES=
20583for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20584 if test $lang != dummy; then
20585 POFILES="$POFILES $srcdirpre$lang.po"
20586 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20587 fi
20588done
20589sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20590 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20591 -e "s,@POFILES@,$POFILES," \
20592 -e "s,@GMOFILES@,$GMOFILES," \
20593 po/Makefile.in > po/Makefile ;;
81ecdfbb 20594
42ecbf5e 20595 esac
81ecdfbb 20596done # for ac_tag
42ecbf5e 20597
42ecbf5e 20598
81ecdfbb 20599as_fn_exit 0
42ecbf5e 20600_ACEOF
42ecbf5e
DJ
20601ac_clean_files=$ac_clean_files_save
20602
81ecdfbb 20603test $ac_write_fail = 0 ||
d0ac1c44 20604 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20605
42ecbf5e
DJ
20606
20607# configure is writing to config.log, and then calls config.status.
20608# config.status does its own redirection, appending to config.log.
20609# Unfortunately, on DOS this fails, as config.log is still kept open
20610# by configure, so config.status won't be able to write to it; its
20611# output is simply discarded. So we exec the FD to /dev/null,
20612# effectively closing config.log, so it can be properly (re)opened and
20613# appended to by config.status. When coming back to configure, we
20614# need to make the FD available again.
20615if test "$no_create" != yes; then
20616 ac_cs_success=:
20617 ac_config_status_args=
20618 test "$silent" = yes &&
20619 ac_config_status_args="$ac_config_status_args --quiet"
20620 exec 5>/dev/null
20621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20622 exec 5>>config.log
20623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20624 # would make configure fail if this is the last instruction.
d0ac1c44 20625 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20626fi
20627if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20629$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20630fi
252b5132 20631
d546b610
L
20632
20633
20634touch config.status.tmp
20635if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20636 sed '/as_fn_exit 0/i \
20637sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20638touch --reference=Makefile Makefile.tmp \
20639mv Makefile.tmp Makefile \
20640' config.status > config.status.tmp
20641 touch --reference=config.status config.status.tmp
20642 mv config.status.tmp config.status
20643 chmod +x config.status
20644 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20645 touch --reference=Makefile Makefile.tmp
20646 mv Makefile.tmp Makefile
20647else
20648 rm -f config.status.tmp
20649fi
This page took 3.43574 seconds and 4 git commands to generate.