]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure
Add new assembler macro pseudo-variable \+ which counts the number of times a macro...
[thirdparty/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
e775d3a9 3# Generated by GNU Autoconf 2.69 for binutils 2.42.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
42ecbf5e 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
426
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='binutils'
589PACKAGE_TARNAME='binutils'
e775d3a9
NC
590PACKAGE_VERSION='2.42.50'
591PACKAGE_STRING='binutils 2.42.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
42ecbf5e
DJ
594
595ac_unique_file="ar.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
862776f2 632gt_needs=
34156b23 633ac_header_list=
81ecdfbb
RW
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638EMULATION_VECTOR
639EMULATION
6abcee90 640OBJDUMP_PRIVATE_OFILES
81ecdfbb
RW
641OBJDUMP_DEFS
642BUILD_INSTALL_MISC
643BUILD_MISC
644BUILD_DLLWRAP
645BUILD_WINDMC
646BUILD_WINDRES
647DLLTOOL_DEFS
648BUILD_DLLTOOL
649BUILD_SRCONV
2952f10c
SM
650MSGPACK_LIBS
651MSGPACK_CFLAGS
2cac01e3
FS
652ZSTD_LIBS
653ZSTD_CFLAGS
0ee42ecd
L
654zlibinc
655zlibdir
81ecdfbb
RW
656DEMANGLER_NAME
657EXEEXT_FOR_BUILD
658CC_FOR_BUILD
659HDEFINES
660GENINSRC_NEVER_FALSE
661GENINSRC_NEVER_TRUE
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
81ecdfbb
RW
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
81ecdfbb
RW
670INCINTL
671LIBINTL_DEP
862776f2
AA
672POSUB
673LTLIBINTL
81ecdfbb 674LIBINTL
862776f2
AA
675INTLLIBS
676LTLIBICONV
677LIBICONV
678INTL_MACOSX_LIBS
679MSGMERGE
680XGETTEXT
681GMSGFMT
682MSGFMT
81ecdfbb 683USE_NLS
862776f2 684MKINSTALLDIRS
81ecdfbb
RW
685LEXLIB
686LEX_OUTPUT_ROOT
687LEX
688YFLAGS
689YACC
6757cf57 690WARN_WRITE_STRINGS
81ecdfbb 691NO_WERROR
c5da1932 692WARN_CFLAGS_FOR_BUILD
81ecdfbb 693WARN_CFLAGS
094e34f2
NA
694ENABLE_LIBCTF_FALSE
695ENABLE_LIBCTF_TRUE
f6720b1c
AM
696DEBUGINFOD_LIBS
697DEBUGINFOD_CFLAGS
698PKG_CONFIG_LIBDIR
699PKG_CONFIG_PATH
700PKG_CONFIG
c8693053 701LARGEFILE_CPPFLAGS
81ecdfbb
RW
702OTOOL64
703OTOOL
704LIPO
705NMEDIT
706DSYMUTIL
81ecdfbb
RW
707RANLIB
708AR
709OBJDUMP
710LN_S
711NM
712ac_ct_DUMPBIN
713DUMPBIN
714LD
715FGREP
716SED
717LIBTOOL
718EGREP
719GREP
720CPP
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
6eb7d830 724am__nodep
81ecdfbb
RW
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
b9583093 728am__quote
81ecdfbb
RW
729am__include
730DEPDIR
87b9f255
AM
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738AM_BACKSLASH
739AM_DEFAULT_VERBOSITY
740AM_DEFAULT_V
741AM_V
81ecdfbb
RW
742am__untar
743am__tar
744AMTAR
745am__leading_dot
746SET_MAKE
747AWK
748mkdir_p
749MKDIR_P
750INSTALL_STRIP_PROGRAM
751STRIP
752install_sh
753MAKEINFO
754AUTOHEADER
755AUTOMAKE
756AUTOCONF
757ACLOCAL
758VERSION
759PACKAGE
760CYGPATH_W
761am__isrc
762INSTALL_DATA
763INSTALL_SCRIPT
764INSTALL_PROGRAM
81ecdfbb
RW
765target_os
766target_vendor
767target_cpu
768target
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
b9583093 814SHELL'
42ecbf5e 815ac_subst_files=''
81ecdfbb
RW
816ac_user_opts='
817enable_option_checking
d0ac1c44 818enable_silent_rules
87b9f255 819enable_dependency_tracking
81ecdfbb
RW
820enable_shared
821enable_static
822with_pic
823enable_fast_install
824with_gnu_ld
825enable_libtool_lock
b879806f
AM
826enable_plugins
827enable_largefile
43e05cd4 828enable_checking
81ecdfbb 829enable_targets
9cb80f72 830enable_deterministic_archives
7fac9594 831enable_default_strings_all
e6f6aa8d 832enable_f_for_ifunc_symbols
c46b7066 833enable_follow_debug_links
18bf5643 834enable_colored_disassembly
301a9420 835with_debuginfod
094e34f2 836enable_libctf
81ecdfbb
RW
837enable_werror
838enable_build_warnings
839enable_nls
862776f2
AA
840enable_rpath
841with_libiconv_prefix
842with_libiconv_type
843with_libintl_prefix
844with_libintl_type
81ecdfbb 845enable_maintainer_mode
0ee42ecd 846with_system_zlib
2cac01e3 847with_zstd
2952f10c 848with_msgpack
81ecdfbb
RW
849'
850 ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
f6720b1c
AM
859PKG_CONFIG
860PKG_CONFIG_PATH
861PKG_CONFIG_LIBDIR
862DEBUGINFOD_CFLAGS
863DEBUGINFOD_LIBS
81ecdfbb 864YACC
2952f10c 865YFLAGS
2cac01e3
FS
866ZSTD_CFLAGS
867ZSTD_LIBS
2952f10c
SM
868MSGPACK_CFLAGS
869MSGPACK_LIBS'
81ecdfbb 870
252b5132
RH
871
872# Initialize some variables set by options.
42ecbf5e
DJ
873ac_init_help=
874ac_init_version=false
81ecdfbb
RW
875ac_unrecognized_opts=
876ac_unrecognized_sep=
252b5132
RH
877# The variables have the same names as the options, with
878# dashes changed to underlines.
42ecbf5e 879cache_file=/dev/null
252b5132 880exec_prefix=NONE
252b5132 881no_create=
252b5132
RH
882no_recursion=
883prefix=NONE
884program_prefix=NONE
885program_suffix=NONE
886program_transform_name=s,x,x,
887silent=
888site=
889srcdir=
252b5132
RH
890verbose=
891x_includes=NONE
892x_libraries=NONE
42ecbf5e
DJ
893
894# Installation directory options.
895# These are left unexpanded so users can "make install exec_prefix=/foo"
896# and all the variables that are supposed to be based on exec_prefix
897# by default will actually change.
898# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 899# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
900bindir='${exec_prefix}/bin'
901sbindir='${exec_prefix}/sbin'
902libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
903datarootdir='${prefix}/share'
904datadir='${datarootdir}'
252b5132
RH
905sysconfdir='${prefix}/etc'
906sharedstatedir='${prefix}/com'
907localstatedir='${prefix}/var'
252b5132
RH
908includedir='${prefix}/include'
909oldincludedir='/usr/include'
2e98a7bd 910docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
911infodir='${datarootdir}/info'
912htmldir='${docdir}'
913dvidir='${docdir}'
914pdfdir='${docdir}'
915psdir='${docdir}'
916libdir='${exec_prefix}/lib'
917localedir='${datarootdir}/locale'
918mandir='${datarootdir}/man'
252b5132 919
252b5132 920ac_prev=
81ecdfbb 921ac_dashdash=
252b5132
RH
922for ac_option
923do
252b5132
RH
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
81ecdfbb 926 eval $ac_prev=\$ac_option
252b5132
RH
927 ac_prev=
928 continue
929 fi
930
81ecdfbb 931 case $ac_option in
d0ac1c44
SM
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *=) ac_optarg= ;;
934 *) ac_optarg=yes ;;
81ecdfbb 935 esac
252b5132
RH
936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
81ecdfbb
RW
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
252b5132
RH
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 946 bindir=$ac_optarg ;;
252b5132
RH
947
948 -build | --build | --buil | --bui | --bu)
42ecbf5e 949 ac_prev=build_alias ;;
252b5132 950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 951 build_alias=$ac_optarg ;;
252b5132
RH
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
252b5132 962
81ecdfbb 963 -datadir | --datadir | --datadi | --datad)
252b5132 964 ac_prev=datadir ;;
81ecdfbb 965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 966 datadir=$ac_optarg ;;
252b5132 967
81ecdfbb
RW
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
252b5132 975 -disable-* | --disable-*)
81ecdfbb 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 977 # Reject names that are not valid shell variable names.
81ecdfbb 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 979 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
252b5132
RH
1000
1001 -enable-* | --enable-*)
81ecdfbb 1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1003 # Reject names that are not valid shell variable names.
81ecdfbb 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1005 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010"enable_$ac_useropt"
1011"*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
252b5132 1014 esac
81ecdfbb 1015 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1024 exec_prefix=$ac_optarg ;;
252b5132
RH
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
42ecbf5e
DJ
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
252b5132
RH
1036
1037 -host | --host | --hos | --ho)
42ecbf5e 1038 ac_prev=host_alias ;;
252b5132 1039 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1040 host_alias=$ac_optarg ;;
252b5132 1041
81ecdfbb
RW
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
252b5132
RH
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1053 includedir=$ac_optarg ;;
252b5132
RH
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1058 infodir=$ac_optarg ;;
252b5132
RH
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1063 libdir=$ac_optarg ;;
252b5132
RH
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1070 libexecdir=$ac_optarg ;;
252b5132 1071
81ecdfbb
RW
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
252b5132 1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1078 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1082 localstatedir=$ac_optarg ;;
252b5132
RH
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1087 mandir=$ac_optarg ;;
252b5132
RH
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1094 | --no-cr | --no-c | -n)
252b5132
RH
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1108 oldincludedir=$ac_optarg ;;
252b5132
RH
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1113 prefix=$ac_optarg ;;
252b5132
RH
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1120 program_prefix=$ac_optarg ;;
252b5132
RH
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1127 program_suffix=$ac_optarg ;;
252b5132
RH
1128
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)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1144 program_transform_name=$ac_optarg ;;
252b5132 1145
81ecdfbb
RW
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
252b5132
RH
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
42ecbf5e 1164 sbindir=$ac_optarg ;;
252b5132
RH
1165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
42ecbf5e 1175 sharedstatedir=$ac_optarg ;;
252b5132
RH
1176
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
42ecbf5e 1180 site=$ac_optarg ;;
252b5132
RH
1181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1185 srcdir=$ac_optarg ;;
252b5132
RH
1186
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1192 sysconfdir=$ac_optarg ;;
252b5132
RH
1193
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1195 ac_prev=target_alias ;;
252b5132 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1197 target_alias=$ac_optarg ;;
252b5132
RH
1198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
42ecbf5e
DJ
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
252b5132
RH
1204
1205 -with-* | --with-*)
81ecdfbb 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1207 # Reject names that are not valid shell variable names.
81ecdfbb 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1209 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214"with_$ac_useropt"
1215"*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
252b5132 1218 esac
81ecdfbb 1219 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1220
1221 -without-* | --without-*)
81ecdfbb 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1223 # Reject names that are not valid shell variable names.
81ecdfbb 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1225 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
252b5132
RH
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1246 x_includes=$ac_optarg ;;
252b5132
RH
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1253 x_libraries=$ac_optarg ;;
252b5132 1254
d0ac1c44
SM
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
252b5132
RH
1257 ;;
1258
42ecbf5e
DJ
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1265 esac
1266 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1267 export $ac_envvar ;;
1268
252b5132 1269 *)
42ecbf5e 1270 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1275 ;;
1276
1277 esac
1278done
1279
1280if test -n "$ac_prev"; then
42ecbf5e 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1282 as_fn_error $? "missing argument to $ac_option"
252b5132
RH
1283fi
1284
81ecdfbb
RW
1285if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
d0ac1c44 1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1290 esac
81ecdfbb 1291fi
252b5132 1292
81ecdfbb
RW
1293# Check all directory arguments for consistency.
1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
31b0378d 1297 libdir localedir mandir
252b5132 1298do
81ecdfbb
RW
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
42ecbf5e 1301 case $ac_val in
81ecdfbb
RW
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
252b5132 1305 esac
81ecdfbb
RW
1306 # Be sure to have absolute directory names.
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
d0ac1c44 1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1312done
1313
42ecbf5e
DJ
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
42ecbf5e
DJ
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
e5a52504 1329
42ecbf5e
DJ
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
252b5132 1334
252b5132 1335
81ecdfbb
RW
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1339 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1341 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1342
1343
252b5132
RH
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
81ecdfbb
RW
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
252b5132 1371 srcdir=$ac_confdir
81ecdfbb 1372 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
81ecdfbb
RW
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
d0ac1c44 1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1385 pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
252b5132 1402
42ecbf5e
DJ
1403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
e775d3a9 1410\`configure' configures binutils 2.42.50 to adapt to many kinds of systems.
252b5132 1411
42ecbf5e 1412Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1413
42ecbf5e
DJ
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1416
42ecbf5e 1417Defaults for the options are specified in brackets.
ac48eca1 1418
42ecbf5e
DJ
1419Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
d0ac1c44 1424 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
42ecbf5e
DJ
1430Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1432 [$ac_default_prefix]
42ecbf5e 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1434 [PREFIX]
ac48eca1 1435
42ecbf5e
DJ
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
ac48eca1 1440
42ecbf5e 1441For better control, use the options below.
ac48eca1 1442
42ecbf5e 1443Fine tuning of the installation directories:
81ecdfbb
RW
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1458 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
81ecdfbb
RW
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1463_ACEOF
ac48eca1 1464
42ecbf5e 1465 cat <<\_ACEOF
252b5132 1466
42ecbf5e
DJ
1467Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1471
42ecbf5e
DJ
1472System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 --target=TARGET configure for building compilers for TARGET [HOST]
1476_ACEOF
252b5132 1477fi
252b5132 1478
42ecbf5e 1479if test -n "$ac_init_help"; then
2e98a7bd 1480 case $ac_init_help in
e775d3a9 1481 short | recursive ) echo "Configuration of binutils 2.42.50:";;
2e98a7bd 1482 esac
42ecbf5e 1483 cat <<\_ACEOF
252b5132 1484
42ecbf5e 1485Optional Features:
81ecdfbb 1486 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87b9f255
AM
1489 --enable-silent-rules less verbose build output (undo: "make V=1")
1490 --disable-silent-rules verbose build output (undo: "make V=0")
d0ac1c44
SM
1491 --enable-dependency-tracking
1492 do not reject slow dependency extractors
1493 --disable-dependency-tracking
1494 speeds up one-time build
81ecdfbb
RW
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
42ecbf5e 1499 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1500 --enable-plugins Enable support for plugins
1501 --disable-largefile omit support for large files
43e05cd4 1502 --enable-checking enable run-time checks
42ecbf5e 1503 --enable-targets alternative target configurations
9cb80f72
RM
1504 --enable-deterministic-archives
1505 ar and ranlib default to -D behavior
7fac9594
NC
1506 --disable-default-strings-all
1507 strings defaults to --data behavior
e6f6aa8d
NC
1508 --enable-f-for-ifunc-symbols
1509 Have nm use F and f for global and local ifunc
1510 symbols
c46b7066
NC
1511 --enable-follow-debug-links
1512 Have readelf and objdump follow debug links by
1513 default
18bf5643
NC
1514 --enable-colored-disassembly
1515 Have objdump use colors in its disassembly by
1516 default
094e34f2 1517 --enable-libctf Handle .ctf type-info sections [default=yes]
241a6c40
AM
1518 --enable-werror treat compile warnings as errors
1519 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1520 --disable-nls do not use Native Language Support
862776f2 1521 --disable-rpath do not hardcode runtime library paths
d0ac1c44
SM
1522 --enable-maintainer-mode
1523 enable make rules and dependencies not useful (and
1524 sometimes confusing) to the casual installer
42ecbf5e
DJ
1525
1526Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1530 both]
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
301a9420
AM
1532 --with-debuginfod Enable debuginfo lookups with debuginfod
1533 (auto/yes/no)
5ba684e2
NC
1534 --with-gnu-ld assume the C compiler uses GNU ld default=no
1535 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1536 --without-libiconv-prefix don't search for libiconv in includedir and libdir
9f1528a1 1537 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
862776f2
AA
1538 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1539 --without-libintl-prefix don't search for libintl in includedir and libdir
1540 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1541 --with-system-zlib use installed libz
1542 --with-zstd support zstd compressed debug sections
1543 (default=auto)
1544 --with-msgpack Enable msgpack support (auto/yes/no)
252b5132 1545
42ecbf5e
DJ
1546Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
81ecdfbb 1551 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1553 you have headers in a nonstandard directory <include dir>
42ecbf5e 1554 CPP C preprocessor
f6720b1c
AM
1555 PKG_CONFIG path to pkg-config utility
1556 PKG_CONFIG_PATH
1557 directories to add to pkg-config's search path
1558 PKG_CONFIG_LIBDIR
1559 path overriding pkg-config's built-in search path
1560 DEBUGINFOD_CFLAGS
1561 C compiler flags for DEBUGINFOD, overriding pkg-config
1562 DEBUGINFOD_LIBS
1563 linker flags for DEBUGINFOD, overriding pkg-config
d0ac1c44
SM
1564 YACC The `Yet Another Compiler Compiler' implementation to use.
1565 Defaults to the first program found out of: `bison -y', `byacc',
1566 `yacc'.
81ecdfbb
RW
1567 YFLAGS The list of arguments that will be passed by default to $YACC.
1568 This script will default YFLAGS to the empty string to avoid a
1569 default value of `-d' given by some make applications.
2cac01e3
FS
1570 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1571 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
2952f10c
SM
1572 MSGPACK_CFLAGS
1573 C compiler flags for MSGPACK, overriding pkg-config
1574 MSGPACK_LIBS
1575 linker flags for MSGPACK, overriding pkg-config
e5a52504 1576
42ecbf5e
DJ
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
81ecdfbb 1580Report bugs to the package provider.
42ecbf5e 1581_ACEOF
81ecdfbb 1582ac_status=$?
252b5132
RH
1583fi
1584
42ecbf5e
DJ
1585if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
42ecbf5e 1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
42ecbf5e
DJ
1591 ac_builddir=.
1592
81ecdfbb
RW
1593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
252b5132 1608
42ecbf5e 1609case $srcdir in
81ecdfbb 1610 .) # We are building in place.
42ecbf5e 1611 ac_srcdir=.
81ecdfbb
RW
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1615 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1622esac
81ecdfbb
RW
1623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1633 else
81ecdfbb
RW
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1637 done
1638fi
5d64ca4e 1639
81ecdfbb 1640test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1641if $ac_init_version; then
1642 cat <<\_ACEOF
e775d3a9 1643binutils configure 2.42.50
d0ac1c44 1644generated by GNU Autoconf 2.69
5d64ca4e 1645
d0ac1c44 1646Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649_ACEOF
81ecdfbb 1650 exit
42ecbf5e 1651fi
252b5132 1652
81ecdfbb
RW
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
e5a52504 1656
81ecdfbb
RW
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
42ecbf5e 1661{
81ecdfbb
RW
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1687
81ecdfbb
RW
1688 ac_retval=1
1689fi
d0ac1c44
SM
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
42ecbf5e 1692
81ecdfbb
RW
1693} # ac_fn_c_try_compile
1694
81ecdfbb
RW
1695# ac_fn_c_try_cpp LINENO
1696# ----------------------
1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_cpp ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1716 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
d0ac1c44
SM
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
81ecdfbb
RW
1729
1730} # ac_fn_c_try_cpp
1731
1732# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735# the include files in INCLUDES and setting the cache variable VAR
1736# accordingly.
1737ac_fn_c_check_header_mongrel ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1740 if eval \${$3+:} false; then :
81ecdfbb
RW
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1743if eval \${$3+:} false; then :
81ecdfbb
RW
1744 $as_echo_n "(cached) " >&6
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749else
1750 # Is the header compilable?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752$as_echo_n "checking $2 usability... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760else
1761 ac_header_compiler=no
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765$as_echo "$ac_header_compiler" >&6; }
1766
1767# Is the header present?
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769$as_echo_n "checking $2 presence... " >&6; }
1770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776else
1777 ac_header_preproc=no
1778fi
d0ac1c44 1779rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781$as_echo "$ac_header_preproc" >&6; }
1782
1783# So? What about this header?
1784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1806if eval \${$3+:} false; then :
81ecdfbb
RW
1807 $as_echo_n "(cached) " >&6
1808else
1809 eval "$3=\$ac_header_compiler"
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814fi
d0ac1c44 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1816
1817} # ac_fn_c_check_header_mongrel
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
81ecdfbb
RW
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862# -------------------------------------------------------
1863# Tests whether HEADER exists and can be compiled using the include files in
1864# INCLUDES, setting the cache variable VAR accordingly.
1865ac_fn_c_check_header_compile ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1870if eval \${$3+:} false; then :
81ecdfbb
RW
1871 $as_echo_n "(cached) " >&6
1872else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h. */
1875$4
1876#include <$2>
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
d0ac1c44 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1889
1890} # ac_fn_c_check_header_compile
1891
87b9f255
AM
1892# ac_fn_c_try_link LINENO
1893# -----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_c_try_link ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936} # ac_fn_c_try_link
1937
81ecdfbb
RW
1938# ac_fn_c_check_func LINENO FUNC VAR
1939# ----------------------------------
1940# Tests whether FUNC exists, setting the cache variable VAR accordingly
1941ac_fn_c_check_func ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1946if eval \${$3+:} false; then :
81ecdfbb
RW
1947 $as_echo_n "(cached) " >&6
1948else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953#define $2 innocuous_$2
1954
1955/* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960#ifdef __STDC__
1961# include <limits.h>
1962#else
1963# include <assert.h>
1964#endif
1965
1966#undef $2
1967
1968/* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971#ifdef __cplusplus
1972extern "C"
1973#endif
1974char $2 ();
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined __stub_$2 || defined __stub___$2
1979choke me
1980#endif
1981
1982int
1983main ()
1984{
1985return $2 ();
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992else
1993 eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
d0ac1c44 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2002
2003} # ac_fn_c_check_func
2004
985e0264
AM
2005# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006# ----------------------------------------------------
2007# Tries to find if the field MEMBER exists in type AGGR, after including
2008# INCLUDES, setting cache variable VAR accordingly.
2009ac_fn_c_check_member ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013$as_echo_n "checking for $2.$3... " >&6; }
2014if eval \${$4+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$5
2020int
2021main ()
2022{
2023static $2 ac_aggr;
2024if (ac_aggr.$3)
2025return 0;
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$5
2036int
2037main ()
2038{
2039static $2 ac_aggr;
2040if (sizeof ac_aggr.$3)
2041return 0;
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048else
2049 eval "$4=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_member
2061
f6720b1c
AM
2062# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063# ---------------------------------------------
2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065# accordingly.
2066ac_fn_c_check_decl ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082#ifndef $as_decl_name
2083#ifdef __cplusplus
2084 (void) $as_decl_use;
2085#else
2086 (void) $as_decl_name;
2087#endif
2088#endif
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096else
2097 eval "$3=no"
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106} # ac_fn_c_check_decl
81ecdfbb
RW
2107cat >config.log <<_ACEOF
2108This file contains any messages produced by compilers while
2109running configure, to aid debugging if configure makes a mistake.
2110
e775d3a9 2111It was created by binutils $as_me 2.42.50, which was
d0ac1c44 2112generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2113
2114 $ $0 $@
2115
2116_ACEOF
2117exec 5>>config.log
2118{
2119cat <<_ASUNAME
2120## --------- ##
2121## Platform. ##
2122## --------- ##
2123
2124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132
2133/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2140
2141_ASUNAME
2142
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2148 $as_echo "PATH: $as_dir"
2149 done
2150IFS=$as_save_IFS
e5a52504 2151
42ecbf5e 2152} >&5
ceae3e33 2153
42ecbf5e 2154cat >&5 <<_ACEOF
e5a52504 2155
42ecbf5e
DJ
2156
2157## ----------- ##
2158## Core tests. ##
2159## ----------- ##
2160
2161_ACEOF
2162
2163
2164# Keep a trace of the command line.
2165# Strip out --no-create and --no-recursion so they do not pile up.
2166# Strip out --silent because we don't want to record it for future runs.
2167# Also quote any args containing shell meta-characters.
2168# Make two passes to allow for proper duplicate-argument suppression.
2169ac_configure_args=
2170ac_configure_args0=
2171ac_configure_args1=
42ecbf5e
DJ
2172ac_must_keep_next=false
2173for ac_pass in 1 2
2174do
2175 for ac_arg
2176 do
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
81ecdfbb
RW
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2184 esac
2185 case $ac_pass in
81ecdfbb 2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2187 2)
81ecdfbb 2188 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2200 ;;
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2203 fi
81ecdfbb 2204 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2205 ;;
2206 esac
2207 done
2208done
81ecdfbb
RW
2209{ ac_configure_args0=; unset ac_configure_args0;}
2210{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2211
2212# When interrupted or exit'd, cleanup temporary files, and complete
2213# config.log. We remove comments because anyway the quotes in there
2214# would cause problems or look ugly.
81ecdfbb
RW
2215# WARNING: Use '\'' to represent an apostrophe within the trap.
2216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2217trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
d0ac1c44 2222 $as_echo "## ---------------- ##
42ecbf5e 2223## Cache variables. ##
d0ac1c44 2224## ---------------- ##"
42ecbf5e
DJ
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2227(
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
42ecbf5e 2243 (set) 2>&1 |
81ecdfbb
RW
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
42ecbf5e 2246 sed -n \
81ecdfbb
RW
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
42ecbf5e 2250 *)
81ecdfbb 2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2252 ;;
81ecdfbb
RW
2253 esac |
2254 sort
2255)
42ecbf5e
DJ
2256 echo
2257
d0ac1c44 2258 $as_echo "## ----------------- ##
42ecbf5e 2259## Output variables. ##
d0ac1c44 2260## ----------------- ##"
42ecbf5e
DJ
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
81ecdfbb
RW
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
d0ac1c44 2273 $as_echo "## ------------------- ##
81ecdfbb 2274## File substitutions. ##
d0ac1c44 2275## ------------------- ##"
42ecbf5e
DJ
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
81ecdfbb
RW
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
d0ac1c44 2289 $as_echo "## ----------- ##
42ecbf5e 2290## confdefs.h. ##
d0ac1c44 2291## ----------- ##"
42ecbf5e 2292 echo
81ecdfbb 2293 cat confdefs.h
42ecbf5e
DJ
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
81ecdfbb
RW
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2299 } >&5
81ecdfbb
RW
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2302 exit $exit_status
81ecdfbb 2303' 0
42ecbf5e 2304for ac_signal in 1 2 13 15; do
81ecdfbb 2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2306done
2307ac_signal=0
2308
2309# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2310rm -f -r conftest* confdefs.h
2311
2312$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2313
2314# Predefined preprocessor variables.
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_NAME "$PACKAGE_NAME"
2318_ACEOF
2319
42ecbf5e
DJ
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322_ACEOF
2323
42ecbf5e
DJ
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_VERSION "$PACKAGE_VERSION"
2326_ACEOF
2327
42ecbf5e
DJ
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_STRING "$PACKAGE_STRING"
2330_ACEOF
2331
42ecbf5e
DJ
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334_ACEOF
2335
81ecdfbb
RW
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_URL "$PACKAGE_URL"
2338_ACEOF
2339
42ecbf5e
DJ
2340
2341# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2342# Prefer an explicitly selected file to automatically selected ones.
2343ac_site_file1=NONE
2344ac_site_file2=NONE
2345if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2346 # We do not want a PATH search for config.site.
2347 case $CONFIG_SITE in #((
2348 -*) ac_site_file1=./$CONFIG_SITE;;
2349 */*) ac_site_file1=$CONFIG_SITE;;
2350 *) ac_site_file1=./$CONFIG_SITE;;
2351 esac
81ecdfbb
RW
2352elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2358fi
2359for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360do
2361 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2365 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2366 . "$ac_site_file" \
2367 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369as_fn_error $? "failed to load site script $ac_site_file
2370See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2371 fi
2372done
2373
2374if test -r "$cache_file"; then
d0ac1c44
SM
2375 # Some versions of bash will fail to source /dev/null (special files
2376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2380 case $cache_file in
81ecdfbb
RW
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
42ecbf5e
DJ
2383 esac
2384 fi
2385else
81ecdfbb
RW
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2388 >$cache_file
2389fi
2390
862776f2 2391gt_needs="$gt_needs "
34156b23
L
2392as_fn_append ac_header_list " stdlib.h"
2393as_fn_append ac_header_list " unistd.h"
2394as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2395# Check that the precious variables saved in the cache have kept the same
2396# value.
2397ac_cache_corrupted=false
81ecdfbb 2398for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2403 case $ac_old_set,$ac_new_set in
2404 set,)
81ecdfbb
RW
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2407 ac_cache_corrupted=: ;;
2408 ,set)
81ecdfbb
RW
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2411 ac_cache_corrupted=: ;;
2412 ,);;
2413 *)
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
81ecdfbb 2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2442 esac
2443 fi
2444done
2445if $ac_cache_corrupted; then
81ecdfbb
RW
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2451fi
81ecdfbb
RW
2452## -------------------- ##
2453## Main body of script. ##
2454## -------------------- ##
42ecbf5e
DJ
2455
2456ac_ext=c
2457ac_cpp='$CPP $CPPFLAGS'
2458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463
42ecbf5e 2464
da594c4a 2465
42ecbf5e
DJ
2466
2467
2468ac_aux_dir=
81ecdfbb 2469for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2470 if test -f "$ac_dir/install-sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install-sh -c"
2473 break
2474 elif test -f "$ac_dir/install.sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install.sh -c"
2477 break
2478 elif test -f "$ac_dir/shtool"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/shtool install -c"
2481 break
2482 fi
42ecbf5e
DJ
2483done
2484if test -z "$ac_aux_dir"; then
d0ac1c44 2485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2486fi
81ecdfbb
RW
2487
2488# These three variables are undocumented and unsupported,
2489# and are intended to be withdrawn in a future Autoconf release.
2490# They can cause serious problems if a builder's source tree is in a directory
2491# whose full name contains unusual characters.
2492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2495
42ecbf5e
DJ
2496
2497# Make sure we can run config.sub.
81ecdfbb 2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2503if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2504 $as_echo_n "(cached) " >&6
2505else
2506 ac_build_alias=$build_alias
2507test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509test "x$ac_build_alias" = x &&
d0ac1c44 2510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516$as_echo "$ac_cv_build" >&6; }
2517case $ac_cv_build in
2518*-*-*) ;;
d0ac1c44 2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2520esac
42ecbf5e 2521build=$ac_cv_build
81ecdfbb
RW
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_build
2524shift
2525build_cpu=$1
2526build_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530build_os=$*
2531IFS=$ac_save_IFS
2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2533
2534
81ecdfbb
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2537if ${ac_cv_host+:} false; then :
81ecdfbb 2538 $as_echo_n "(cached) " >&6
42ecbf5e 2539else
81ecdfbb
RW
2540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2545fi
42ecbf5e
DJ
2546
2547fi
81ecdfbb
RW
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549$as_echo "$ac_cv_host" >&6; }
2550case $ac_cv_host in
2551*-*-*) ;;
d0ac1c44 2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2553esac
42ecbf5e 2554host=$ac_cv_host
81ecdfbb
RW
2555ac_save_IFS=$IFS; IFS='-'
2556set x $ac_cv_host
2557shift
2558host_cpu=$1
2559host_vendor=$2
2560shift; shift
2561# Remember, the first character of IFS is used to create $*,
2562# except with old shells:
2563host_os=$*
2564IFS=$ac_save_IFS
2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2566
2567
81ecdfbb
RW
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2569$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2570if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2571 $as_echo_n "(cached) " >&6
2572else
2573 if test "x$target_alias" = x; then
2574 ac_cv_target=$ac_cv_host
42ecbf5e 2575else
81ecdfbb 2576 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2578fi
42ecbf5e
DJ
2579
2580fi
81ecdfbb
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2582$as_echo "$ac_cv_target" >&6; }
2583case $ac_cv_target in
2584*-*-*) ;;
d0ac1c44 2585*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2586esac
42ecbf5e 2587target=$ac_cv_target
81ecdfbb
RW
2588ac_save_IFS=$IFS; IFS='-'
2589set x $ac_cv_target
2590shift
2591target_cpu=$1
2592target_vendor=$2
2593shift; shift
2594# Remember, the first character of IFS is used to create $*,
2595# except with old shells:
2596target_os=$*
2597IFS=$ac_save_IFS
2598case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2599
2600
2601# The aliases save the names the user supplied, while $host etc.
2602# will get canonicalized.
2603test -n "$target_alias" &&
2604 test "$program_prefix$program_suffix$program_transform_name" = \
2605 NONENONEs,x,x, &&
2606 program_prefix=${target_alias}-
d0ac1c44 2607
b9583093 2608am__api_version='1.15'
87b9f255
AM
2609
2610# Find a good install program. We prefer a C program (faster),
2611# so one script is as good as another. But avoid the broken or
2612# incompatible versions:
2613# SysV /etc/install, /usr/sbin/install
2614# SunOS /usr/etc/install
2615# IRIX /sbin/install
2616# AIX /bin/install
2617# AmigaOS /C/install, which installs bootblocks on floppy discs
2618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621# OS/2's system install, which has a completely different semantic
2622# ./install, which can be erroneously created by make from ./install.sh.
2623# Reject install programs that cannot install multiple files.
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625$as_echo_n "checking for a BSD-compatible install... " >&6; }
2626if test -z "$INSTALL"; then
2627if ${ac_cv_path_install+:} false; then :
81ecdfbb 2628 $as_echo_n "(cached) " >&6
42ecbf5e 2629else
87b9f255 2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
87b9f255
AM
2635 # Account for people who put trailing slashes in PATH elements.
2636case $as_dir/ in #((
2637 ./ | .// | /[cC]/* | \
2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2640 /usr/ucb/* ) ;;
2641 *)
2642 # OSF1 and SCO ODT 3.0 have their own names for install.
2643 # Don't use installbsd from OSF since it installs stuff as root
2644 # by default.
2645 for ac_prog in ginstall scoinst install; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2648 if test $ac_prog = install &&
2649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # AIX install. It has an incompatible calling convention.
2651 :
2652 elif test $ac_prog = install &&
2653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # program-specific install script used by HP pwplus--don't use.
2655 :
2656 else
2657 rm -rf conftest.one conftest.two conftest.dir
2658 echo one > conftest.one
2659 echo two > conftest.two
2660 mkdir conftest.dir
2661 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2662 test -s conftest.one && test -s conftest.two &&
2663 test -s conftest.dir/conftest.one &&
2664 test -s conftest.dir/conftest.two
2665 then
2666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2667 break 3
2668 fi
2669 fi
2670 fi
2671 done
2672 done
2673 ;;
2674esac
2675
81ecdfbb
RW
2676 done
2677IFS=$as_save_IFS
42ecbf5e 2678
87b9f255
AM
2679rm -rf conftest.one conftest.two conftest.dir
2680
252b5132
RH
2681fi
2682 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2683 INSTALL=$ac_cv_path_install
252b5132 2684 else
58c85be7
RW
2685 # As a last resort, use the slow shell script. Don't cache a
2686 # value for INSTALL within a source directory, because that will
252b5132 2687 # break other packages using the cache if that directory is
58c85be7 2688 # removed, or if the value is a relative name.
42ecbf5e 2689 INSTALL=$ac_install_sh
252b5132
RH
2690 fi
2691fi
81ecdfbb
RW
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2693$as_echo "$INSTALL" >&6; }
252b5132
RH
2694
2695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2696# It thinks the first close brace ends the variable substitution.
2697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2698
42ecbf5e 2699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2700
2701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2702
81ecdfbb
RW
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2704$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2705# Reject unsafe characters in $srcdir or the absolute working directory
2706# name. Accept space and tab only in the latter.
2707am_lf='
2708'
2709case `pwd` in
2710 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2711 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2712esac
2713case $srcdir in
2714 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2715 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2716esac
2717
d0ac1c44 2718# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2719# arguments. Must try -L first in case configure is actually a
2720# symlink; some systems play weird games with the mod time of symlinks
2721# (eg FreeBSD returns the mod time of the symlink's containing
2722# directory).
2723if (
d0ac1c44
SM
2724 am_has_slept=no
2725 for am_try in 1 2; do
2726 echo "timestamp, slept: $am_has_slept" > conftest.file
2727 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2728 if test "$*" = "X"; then
2729 # -L didn't work.
2730 set X `ls -t "$srcdir/configure" conftest.file`
2731 fi
2732 if test "$*" != "X $srcdir/configure conftest.file" \
2733 && test "$*" != "X conftest.file $srcdir/configure"; then
2734
2735 # If neither matched, then we have a broken ls. This can happen
2736 # if, for instance, CONFIG_SHELL is bash and it inherits a
2737 # broken ls alias from the environment. This has actually
2738 # happened. Such a system could not be considered "sane".
2739 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2740 alias in your environment" "$LINENO" 5
2741 fi
2742 if test "$2" = conftest.file || test $am_try -eq 2; then
2743 break
2744 fi
2745 # Just in case.
2746 sleep 1
2747 am_has_slept=yes
2748 done
42ecbf5e 2749 test "$2" = conftest.file
252b5132
RH
2750 )
2751then
2752 # Ok.
2753 :
2754else
d0ac1c44 2755 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2756Check your system clock" "$LINENO" 5
42ecbf5e 2757fi
81ecdfbb
RW
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759$as_echo "yes" >&6; }
d0ac1c44
SM
2760# If we didn't sleep, we still need to ensure time stamps of config.status and
2761# generated files are strictly newer.
2762am_sleep_pid=
2763if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2764 ( sleep 1 ) &
2765 am_sleep_pid=$!
2766fi
2767
2768rm -f conftest.file
2769
42ecbf5e 2770test "$program_prefix" != NONE &&
81ecdfbb 2771 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
2772# Use a double $ so make ignores it.
2773test "$program_suffix" != NONE &&
81ecdfbb
RW
2774 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2775# Double any \ or $.
42ecbf5e 2776# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2777ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2778program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 2779
87b9f255
AM
2780# Expand $ac_aux_dir to an absolute path.
2781am_aux_dir=`cd "$ac_aux_dir" && pwd`
2782
81ecdfbb 2783if test x"${MISSING+set}" != xset; then
b9583093
AM
2784 case $am_aux_dir in
2785 *\ * | *\ *)
2786 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2787 *)
2788 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2789 esac
81ecdfbb 2790fi
42ecbf5e 2791# Use eval to expand $SHELL
d0ac1c44
SM
2792if eval "$MISSING --is-lightweight"; then
2793 am_missing_run="$MISSING "
42ecbf5e
DJ
2794else
2795 am_missing_run=
d0ac1c44
SM
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2797$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
42ecbf5e
DJ
2798fi
2799
d0ac1c44 2800if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2801 case $am_aux_dir in
2802 *\ * | *\ *)
2803 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2804 *)
2805 install_sh="\${SHELL} $am_aux_dir/install-sh"
2806 esac
2807fi
2808
d0ac1c44
SM
2809# Installed binaries are usually stripped using 'strip' when the user
2810# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2811# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2812# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2813if test "$cross_compiling" != no; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2816set dummy ${ac_tool_prefix}strip; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2819if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 2820 $as_echo_n "(cached) " >&6
42ecbf5e 2821else
81ecdfbb
RW
2822 if test -n "$STRIP"; then
2823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
81ecdfbb 2830 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837 done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842STRIP=$ac_cv_prog_STRIP
2843if test -n "$STRIP"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2845$as_echo "$STRIP" >&6; }
2846else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852fi
2853if test -z "$ac_cv_prog_STRIP"; then
2854 ac_ct_STRIP=$STRIP
2855 # Extract the first word of "strip", so it can be a program name with args.
2856set dummy strip; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2859if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
2860 $as_echo_n "(cached) " >&6
2861else
2862 if test -n "$ac_ct_STRIP"; then
2863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2872 ac_cv_prog_ac_ct_STRIP="strip"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2874 break 2
2875 fi
2876done
81ecdfbb
RW
2877 done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2883if test -n "$ac_ct_STRIP"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2885$as_echo "$ac_ct_STRIP" >&6; }
2886else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891 if test "x$ac_ct_STRIP" = x; then
2892 STRIP=":"
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895yes:)
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900 STRIP=$ac_ct_STRIP
2901 fi
2902else
2903 STRIP="$ac_cv_prog_STRIP"
2904fi
2905
2906fi
2907INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2910$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2911if test -z "$MKDIR_P"; then
d0ac1c44 2912 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
2913 $as_echo_n "(cached) " >&6
2914else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_prog in mkdir gmkdir; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
2923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2924 'mkdir (GNU coreutils) '* | \
2925 'mkdir (coreutils) '* | \
2926 'mkdir (fileutils) '4.1*)
2927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2928 break 3;;
2929 esac
2930 done
2931 done
2932 done
2933IFS=$as_save_IFS
2934
2935fi
2936
d0ac1c44 2937 test -d ./--version && rmdir ./--version
81ecdfbb
RW
2938 if test "${ac_cv_path_mkdir+set}" = set; then
2939 MKDIR_P="$ac_cv_path_mkdir -p"
2940 else
2941 # As a last resort, use the slow shell script. Don't cache a
2942 # value for MKDIR_P within a source directory, because that will
2943 # break other packages using the cache if that directory is
2944 # removed, or if the value is a relative name.
81ecdfbb
RW
2945 MKDIR_P="$ac_install_sh -d"
2946 fi
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2949$as_echo "$MKDIR_P" >&6; }
2950
81ecdfbb
RW
2951for ac_prog in gawk mawk nawk awk
2952do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954set dummy $ac_prog; ac_word=$2
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2957if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test -n "$AWK"; then
2961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2970 ac_cv_prog_AWK="$ac_prog"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
42ecbf5e 2974done
81ecdfbb
RW
2975 done
2976IFS=$as_save_IFS
42ecbf5e
DJ
2977
2978fi
2979fi
2980AWK=$ac_cv_prog_AWK
2981if test -n "$AWK"; then
81ecdfbb
RW
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2983$as_echo "$AWK" >&6; }
42ecbf5e 2984else
81ecdfbb
RW
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986$as_echo "no" >&6; }
42ecbf5e
DJ
2987fi
2988
81ecdfbb 2989
42ecbf5e
DJ
2990 test -n "$AWK" && break
2991done
2992
81ecdfbb
RW
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2994$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2995set x ${MAKE-make}
2996ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 2997if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 2998 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2999else
3000 cat >conftest.make <<\_ACEOF
81ecdfbb 3001SHELL = /bin/sh
42ecbf5e 3002all:
81ecdfbb 3003 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3004_ACEOF
d0ac1c44 3005# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3006case `${MAKE-make} -f conftest.make 2>/dev/null` in
3007 *@@@%%%=?*=@@@%%%*)
3008 eval ac_cv_prog_make_${ac_make}_set=yes;;
3009 *)
3010 eval ac_cv_prog_make_${ac_make}_set=no;;
3011esac
42ecbf5e
DJ
3012rm -f conftest.make
3013fi
81ecdfbb
RW
3014if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016$as_echo "yes" >&6; }
42ecbf5e
DJ
3017 SET_MAKE=
3018else
81ecdfbb
RW
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
42ecbf5e
DJ
3021 SET_MAKE="MAKE=${MAKE-make}"
3022fi
3023
3024rm -rf .tst 2>/dev/null
3025mkdir .tst 2>/dev/null
3026if test -d .tst; then
3027 am__leading_dot=.
3028else
3029 am__leading_dot=_
3030fi
3031rmdir .tst 2>/dev/null
3032
d0ac1c44
SM
3033# Check whether --enable-silent-rules was given.
3034if test "${enable_silent_rules+set}" = set; then :
3035 enableval=$enable_silent_rules;
3036fi
3037
3038case $enable_silent_rules in # (((
3039 yes) AM_DEFAULT_VERBOSITY=0;;
3040 no) AM_DEFAULT_VERBOSITY=1;;
3041 *) AM_DEFAULT_VERBOSITY=1;;
3042esac
3043am_make=${MAKE-make}
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3045$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3046if ${am_cv_make_support_nested_variables+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048else
3049 if $as_echo 'TRUE=$(BAR$(V))
3050BAR0=false
3051BAR1=true
3052V=1
3053am__doit:
3054 @$(TRUE)
3055.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3056 am_cv_make_support_nested_variables=yes
3057else
3058 am_cv_make_support_nested_variables=no
3059fi
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3062$as_echo "$am_cv_make_support_nested_variables" >&6; }
3063if test $am_cv_make_support_nested_variables = yes; then
3064 AM_V='$(V)'
3065 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3066else
3067 AM_V=$AM_DEFAULT_VERBOSITY
3068 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3069fi
3070AM_BACKSLASH='\'
3071
81ecdfbb
RW
3072if test "`cd $srcdir && pwd`" != "`pwd`"; then
3073 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3074 # is not polluted with repeated "-I."
3075 am__isrc=' -I$(srcdir)'
3076 # test to see if srcdir already configured
3077 if test -f $srcdir/config.status; then
d0ac1c44 3078 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3079 fi
42ecbf5e
DJ
3080fi
3081
3082# test whether we have cygpath
3083if test -z "$CYGPATH_W"; then
3084 if (cygpath --version) >/dev/null 2>/dev/null; then
3085 CYGPATH_W='cygpath -w'
3086 else
3087 CYGPATH_W=echo
3088 fi
3089fi
3090
3091
3092# Define the identity of the package.
2e98a7bd 3093 PACKAGE='binutils'
e775d3a9 3094 VERSION='2.42.50'
42ecbf5e
DJ
3095
3096
3097cat >>confdefs.h <<_ACEOF
3098#define PACKAGE "$PACKAGE"
3099_ACEOF
3100
3101
3102cat >>confdefs.h <<_ACEOF
3103#define VERSION "$VERSION"
3104_ACEOF
3105
3106# Some tools Automake needs.
3107
3108ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3109
3110
3111AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3112
3113
3114AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3115
3116
3117AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3118
3119
3120MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3121
d0ac1c44
SM
3122# For better backward compatibility. To be removed once Automake 1.9.x
3123# dies out for good. For more background, see:
b9583093
AM
3124# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3125# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
d0ac1c44
SM
3126mkdir_p='$(MKDIR_P)'
3127
3128# We need awk for the "check" target (and possibly the TAP driver). The
87b9f255
AM
3129# system "awk" is bad on some platforms.
3130# Always define AMTAR for backward compatibility. Yes, it's still used
3131# in the wild :-( We should find a proper way to deprecate it ...
3132AMTAR='$${TAR-tar}'
3133
3134
3135# We'll loop over all known methods to create a tar archive until one works.
3136_am_tools='gnutar pax cpio none'
3137
3138am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e 3139
252b5132 3140
42ecbf5e 3141
252b5132
RH
3142
3143
3144
d0ac1c44
SM
3145# POSIX will say in a future version that running "rm -f" with no argument
3146# is OK; and we want to be able to make that assumption in our Makefile
3147# recipes. So use an aggressive probe to check that the usage we want is
3148# actually supported "in the wild" to an acceptable degree.
3149# See automake bug#10828.
3150# To make any issue more visible, cause the running configure to be aborted
3151# by default if the 'rm' program in use doesn't match our expectations; the
3152# user can still override this though.
3153if rm -f && rm -fr && rm -rf; then : OK; else
3154 cat >&2 <<'END'
3155Oops!
3156
3157Your 'rm' program seems unable to run without file operands specified
3158on the command line, even when the '-f' option is present. This is contrary
3159to the behaviour of most rm programs out there, and not conforming with
3160the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3161
3162Please tell bug-automake@gnu.org about your system, including the value
3163of your $PATH and any error possibly output before this message. This
3164can help us improve future automake versions.
3165
3166END
3167 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3168 echo 'Configuration will proceed anyway, since you have set the' >&2
3169 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3170 echo >&2
3171 else
3172 cat >&2 <<'END'
3173Aborting the configuration process, to ensure you take notice of the issue.
3174
3175You can download and install GNU coreutils to get an 'rm' implementation
b9583093 3176that behaves properly: <http://www.gnu.org/software/coreutils/>.
d0ac1c44
SM
3177
3178If you want to complete the configuration process using your problematic
3179'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3180to "yes", and re-run configure.
3181
3182END
3183 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3184 fi
3185fi
3186
d8bbdb9d
MF
3187# Check whether --enable-silent-rules was given.
3188if test "${enable_silent_rules+set}" = set; then :
3189 enableval=$enable_silent_rules;
3190fi
3191
3192case $enable_silent_rules in # (((
3193 yes) AM_DEFAULT_VERBOSITY=0;;
3194 no) AM_DEFAULT_VERBOSITY=1;;
3195 *) AM_DEFAULT_VERBOSITY=0;;
3196esac
3197am_make=${MAKE-make}
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3199$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3200if ${am_cv_make_support_nested_variables+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202else
3203 if $as_echo 'TRUE=$(BAR$(V))
3204BAR0=false
3205BAR1=true
3206V=1
3207am__doit:
3208 @$(TRUE)
3209.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3210 am_cv_make_support_nested_variables=yes
3211else
3212 am_cv_make_support_nested_variables=no
3213fi
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3216$as_echo "$am_cv_make_support_nested_variables" >&6; }
3217if test $am_cv_make_support_nested_variables = yes; then
3218 AM_V='$(V)'
3219 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3220else
3221 AM_V=$AM_DEFAULT_VERBOSITY
3222 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3223fi
3224AM_BACKSLASH='\'
3225
42ecbf5e 3226
d45dc31f
SE
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3237if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3238 $as_echo_n "(cached) " >&6
252b5132 3239else
d45dc31f
SE
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3242else
d45dc31f
SE
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
81ecdfbb 3248 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3252 break 2
3253 fi
3254done
81ecdfbb
RW
3255 done
3256IFS=$as_save_IFS
ceae3e33 3257
d45dc31f
SE
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
81ecdfbb
RW
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
252b5132 3264else
81ecdfbb
RW
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
252b5132 3267fi
d45dc31f 3268
81ecdfbb 3269
d45dc31f
SE
3270fi
3271if test -z "$ac_cv_prog_CC"; then
3272 ac_ct_CC=$CC
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274set dummy gcc; ac_word=$2
81ecdfbb
RW
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3277if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3278 $as_echo_n "(cached) " >&6
252b5132 3279else
d45dc31f
SE
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3282else
d45dc31f
SE
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
81ecdfbb 3288 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3290 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3292 break 2
3293 fi
3294done
81ecdfbb
RW
3295 done
3296IFS=$as_save_IFS
d45dc31f 3297
252b5132
RH
3298fi
3299fi
d45dc31f
SE
3300ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303$as_echo "$ac_ct_CC" >&6; }
252b5132 3304else
81ecdfbb
RW
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
252b5132 3307fi
d45dc31f 3308
81ecdfbb
RW
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313yes:)
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318 CC=$ac_ct_CC
3319 fi
d45dc31f
SE
3320else
3321 CC="$ac_cv_prog_CC"
3322fi
3323
3324if test -z "$CC"; then
81ecdfbb
RW
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 3327set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3330if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3331 $as_echo_n "(cached) " >&6
252b5132 3332else
d45dc31f
SE
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3335else
d45dc31f
SE
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
81ecdfbb 3341 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3345 break 2
3346 fi
3347done
81ecdfbb
RW
3348 done
3349IFS=$as_save_IFS
d45dc31f 3350
252b5132
RH
3351fi
3352fi
d45dc31f
SE
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
81ecdfbb
RW
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
d45dc31f 3357else
81ecdfbb
RW
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
252b5132
RH
3360fi
3361
252b5132 3362
81ecdfbb 3363 fi
d45dc31f
SE
3364fi
3365if test -z "$CC"; then
3366 # Extract the first word of "cc", so it can be a program name with args.
3367set dummy cc; ac_word=$2
81ecdfbb
RW
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3370if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3371 $as_echo_n "(cached) " >&6
252b5132 3372else
d45dc31f
SE
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375else
3376 ac_prog_rejected=no
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
81ecdfbb 3382 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f
SE
3384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385 ac_prog_rejected=yes
3386 continue
3387 fi
3388 ac_cv_prog_CC="cc"
81ecdfbb 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3390 break 2
3391 fi
3392done
81ecdfbb
RW
3393 done
3394IFS=$as_save_IFS
d45dc31f
SE
3395
3396if test $ac_prog_rejected = yes; then
3397 # We found a bogon in the path, so make sure we never use it.
3398 set dummy $ac_cv_prog_CC
3399 shift
3400 if test $# != 0; then
3401 # We chose a different compiler from the bogus one.
3402 # However, it has the same basename, so the bogon will be chosen
3403 # first if we set CC to just the basename; use the full file name.
3404 shift
3405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 fi
3407fi
3408fi
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
81ecdfbb
RW
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413$as_echo "$CC" >&6; }
d45dc31f 3414else
81ecdfbb
RW
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
252b5132
RH
3417fi
3418
81ecdfbb 3419
d45dc31f
SE
3420fi
3421if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
81ecdfbb 3423 for ac_prog in cl.exe
d45dc31f
SE
3424 do
3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3429if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3430 $as_echo_n "(cached) " >&6
ac48eca1 3431else
d45dc31f
SE
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
81ecdfbb 3440 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3444 break 2
3445 fi
3446done
81ecdfbb
RW
3447 done
3448IFS=$as_save_IFS
ac48eca1 3449
d45dc31f
SE
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
81ecdfbb
RW
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455$as_echo "$CC" >&6; }
d45dc31f 3456else
81ecdfbb
RW
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
d45dc31f 3459fi
ac48eca1 3460
81ecdfbb 3461
d45dc31f
SE
3462 test -n "$CC" && break
3463 done
3464fi
3465if test -z "$CC"; then
3466 ac_ct_CC=$CC
81ecdfbb 3467 for ac_prog in cl.exe
d45dc31f
SE
3468do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3473if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3474 $as_echo_n "(cached) " >&6
d45dc31f
SE
3475else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
81ecdfbb 3484 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3486 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3488 break 2
3489 fi
3490done
81ecdfbb
RW
3491 done
3492IFS=$as_save_IFS
ac48eca1 3493
d45dc31f
SE
3494fi
3495fi
3496ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499$as_echo "$ac_ct_CC" >&6; }
d45dc31f 3500else
81ecdfbb
RW
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
d45dc31f 3503fi
ac48eca1 3504
81ecdfbb 3505
d45dc31f
SE
3506 test -n "$ac_ct_CC" && break
3507done
ac48eca1 3508
81ecdfbb
RW
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513yes:)
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516ac_tool_warned=yes ;;
3517esac
3518 CC=$ac_ct_CC
3519 fi
d45dc31f 3520fi
ac48eca1 3521
87b9f255
AM
3522fi
3523
3524
3525test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "no acceptable C compiler found in \$PATH
3528See \`config.log' for more details" "$LINENO" 5; }
3529
3530# Provide some information about the compiler.
3531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532set X $ac_compile
3533ac_compiler=$2
3534for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3536case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 ac_status=$?
3544 if test -s conftest.err; then
3545 sed '10a\
3546... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3549 fi
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553done
3554
3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566ac_clean_files_save=$ac_clean_files
3567ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568# Try to create an executable without -o first, disregard a.out.
3569# It will help us diagnose broken compilers, and finding out an intuition
3570# of exeext.
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572$as_echo_n "checking whether the C compiler works... " >&6; }
3573ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575# The possible output files:
3576ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578ac_rmfiles=
3579for ac_file in $ac_files
3580do
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584 esac
3585done
3586rm -f $ac_rmfiles
3587
3588if { { ac_try="$ac_link_default"
3589case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594$as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link_default") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601# in a Makefile. We should not override ac_cv_exeext if it was cached,
3602# so that the user can short-circuit this test for compilers unknown to
3603# Autoconf.
3604for ac_file in $ac_files ''
3605do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609 ;;
3610 [ab].out )
3611 # We found the default executable, but exeext='' is most
3612 # certainly right.
3613 break;;
3614 *.* )
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616 then :; else
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 fi
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3623 # actually working.
3624 break;;
3625 * )
3626 break;;
3627 esac
3628done
3629test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631else
3632 ac_file=''
3633fi
3634if test -z "$ac_file"; then :
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636$as_echo "no" >&6; }
3637$as_echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error 77 "C compiler cannot create executables
3643See \`config.log' for more details" "$LINENO" 5; }
3644else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646$as_echo "yes" >&6; }
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649$as_echo_n "checking for C compiler default output file name... " >&6; }
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651$as_echo "$ac_file" >&6; }
3652ac_exeext=$ac_cv_exeext
3653
3654rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655ac_clean_files=$ac_clean_files_save
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657$as_echo_n "checking for suffix of executables... " >&6; }
3658if { { ac_try="$ac_link"
3659case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3671# work properly (i.e., refer to `conftest.exe'), while it won't with
3672# `rm'.
3673for ac_file in conftest.exe conftest conftest.*; do
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 break;;
3679 * ) break;;
3680 esac
3681done
3682else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686See \`config.log' for more details" "$LINENO" 5; }
3687fi
3688rm -f conftest conftest$ac_cv_exeext
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690$as_echo "$ac_cv_exeext" >&6; }
3691
3692rm -f conftest.$ac_ext
3693EXEEXT=$ac_cv_exeext
3694ac_exeext=$EXEEXT
3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697#include <stdio.h>
3698int
3699main ()
3700{
3701FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708ac_clean_files="$ac_clean_files conftest.out"
3709# Check that the compiler produces executables we can run. If not, either
3710# the compiler is broken, or we cross compile.
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712$as_echo_n "checking whether we are cross compiling... " >&6; }
3713if test "$cross_compiling" != yes; then
3714 { { ac_try="$ac_link"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725 if { ac_try='./conftest$ac_cv_exeext'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729esac
3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731$as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3736 cross_compiling=no
3737 else
3738 if test "$cross_compiling" = maybe; then
3739 cross_compiling=yes
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743as_fn_error $? "cannot run C compiled programs.
3744If you meant to cross compile, use \`--host'.
3745See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750$as_echo "$cross_compiling" >&6; }
3751
3752rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753ac_clean_files=$ac_clean_files_save
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755$as_echo_n "checking for suffix of object files... " >&6; }
3756if ${ac_cv_objext+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h. */
ac48eca1 3761
87b9f255
AM
3762int
3763main ()
3764{
ac48eca1 3765
87b9f255
AM
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770rm -f conftest.o conftest.obj
3771if { { ac_try="$ac_compile"
81ecdfbb
RW
3772case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
87b9f255 3778 (eval "$ac_compile") 2>&5
d45dc31f 3779 ac_status=$?
81ecdfbb 3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87b9f255
AM
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 break;;
3788 esac
81ecdfbb 3789done
87b9f255
AM
3790else
3791 $as_echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3793
87b9f255
AM
3794{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796as_fn_error $? "cannot compute suffix of object files: cannot compile
3797See \`config.log' for more details" "$LINENO" 5; }
3798fi
3799rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802$as_echo "$ac_cv_objext" >&6; }
3803OBJEXT=$ac_cv_objext
3804ac_objext=$OBJEXT
81ecdfbb
RW
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3807if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3808 $as_echo_n "(cached) " >&6
bdcfeba5 3809else
81ecdfbb 3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3811/* end confdefs.h. */
bdcfeba5 3812
d45dc31f
SE
3813int
3814main ()
3815{
3816#ifndef __GNUC__
3817 choke me
3818#endif
bdcfeba5 3819
d45dc31f
SE
3820 ;
3821 return 0;
3822}
3823_ACEOF
81ecdfbb 3824if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
3825 ac_compiler_gnu=yes
3826else
81ecdfbb 3827 ac_compiler_gnu=no
bdcfeba5 3828fi
81ecdfbb 3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 3830ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3831
bdcfeba5 3832fi
81ecdfbb
RW
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835if test $ac_compiler_gnu = yes; then
3836 GCC=yes
3837else
3838 GCC=
3839fi
d45dc31f
SE
3840ac_test_CFLAGS=${CFLAGS+set}
3841ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3844if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3845 $as_echo_n "(cached) " >&6
3846else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3852/* end confdefs.h. */
ac48eca1 3853
d45dc31f
SE
3854int
3855main ()
3856{
ac48eca1 3857
d45dc31f
SE
3858 ;
3859 return 0;
3860}
3861_ACEOF
81ecdfbb 3862if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 3863 ac_cv_prog_cc_g=yes
ac48eca1 3864else
81ecdfbb
RW
3865 CFLAGS=""
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872
3873 ;
3874 return 0;
3875}
3876_ACEOF
3877if ac_fn_c_try_compile "$LINENO"; then :
3878
3879else
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h. */
3884
3885int
3886main ()
3887{
ac48eca1 3888
81ecdfbb
RW
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3895fi
3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3897fi
81ecdfbb 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3899fi
81ecdfbb
RW
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
3905if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
ac48eca1 3910 else
d45dc31f 3911 CFLAGS="-g"
42ecbf5e 3912 fi
ac48eca1 3913else
d45dc31f
SE
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
42ecbf5e 3918 fi
ac48eca1 3919fi
81ecdfbb
RW
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3922if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3923 $as_echo_n "(cached) " >&6
d45dc31f 3924else
81ecdfbb 3925 ac_cv_prog_cc_c89=no
d45dc31f 3926ac_save_CC=$CC
81ecdfbb 3927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 3928/* end confdefs.h. */
d45dc31f
SE
3929#include <stdarg.h>
3930#include <stdio.h>
d0ac1c44 3931struct stat;
d45dc31f
SE
3932/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933struct buf { int x; };
3934FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935static char *e (p, i)
3936 char **p;
3937 int i;
3938{
3939 return p[i];
3940}
3941static char *f (char * (*g) (char **, int), char **p, ...)
3942{
3943 char *s;
3944 va_list v;
3945 va_start (v,p);
3946 s = g (p, va_arg (v,int));
3947 va_end (v);
3948 return s;
3949}
3950
3951/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952 function prototypes and stuff, but not '\xHH' hex character constants.
3953 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3954 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
3955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3957 that's true only with -std. */
d45dc31f 3958int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3959
81ecdfbb
RW
3960/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3962#define FOO(x) 'x'
3963int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
d45dc31f
SE
3965int test (int i, double x);
3966struct s1 {int (*f) (int a);};
3967struct s2 {int (*f) (double a);};
3968int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969int argc;
3970char **argv;
42ecbf5e
DJ
3971int
3972main ()
3973{
d45dc31f 3974return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3975 ;
3976 return 0;
3977}
3978_ACEOF
81ecdfbb
RW
3979for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
3981do
3982 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c89=$ac_arg
252b5132 3985fi
81ecdfbb
RW
3986rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 3988done
81ecdfbb 3989rm -f conftest.$ac_ext
d45dc31f 3990CC=$ac_save_CC
ac48eca1 3991
252b5132 3992fi
81ecdfbb
RW
3993# AC_CACHE_VAL
3994case "x$ac_cv_prog_cc_c89" in
3995 x)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997$as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000$as_echo "unsupported" >&6; } ;;
d45dc31f 4001 *)
81ecdfbb
RW
4002 CC="$CC $ac_cv_prog_cc_c89"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4005esac
81ecdfbb 4006if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4007
d45dc31f 4008fi
ac48eca1 4009
d45dc31f
SE
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4015
d0ac1c44
SM
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4022$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4023if ${am_cv_prog_cc_c_o+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037 # Make sure it works both with $CC and with simple cc.
4038 # Following AC_PROG_CC_C_O, we do the test twice because some
4039 # compilers refuse to overwrite an existing .o file with -o,
4040 # though they will create one.
4041 am_cv_prog_cc_c_o=yes
4042 for am_i in 1 2; do
4043 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4044 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } \
4048 && test -f conftest2.$ac_objext; then
4049 : OK
4050 else
4051 am_cv_prog_cc_c_o=no
4052 break
4053 fi
4054 done
4055 rm -f core conftest*
4056 unset am_i
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4059$as_echo "$am_cv_prog_cc_c_o" >&6; }
4060if test "$am_cv_prog_cc_c_o" != yes; then
4061 # Losing compiler, so override with the script.
4062 # FIXME: It is wrong to rewrite CC.
4063 # But if we don't then we get into trouble of one sort or another.
4064 # A longer-term fix would be to have automake use am__CC in this case,
4065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4066 CC="$am_aux_dir/compile $CC"
4067fi
87b9f255
AM
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074DEPDIR="${am__leading_dot}deps"
4075
4076ac_config_commands="$ac_config_commands depfiles"
4077
b9583093
AM
4078
4079am_make=${MAKE-make}
4080cat > confinc << 'END'
87b9f255 4081am__doit:
b9583093 4082 @echo this is the am__doit target
87b9f255
AM
4083.PHONY: am__doit
4084END
b9583093
AM
4085# If we don't find an include directive, just comment out the code.
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4087$as_echo_n "checking for style of include used by $am_make... " >&6; }
87b9f255
AM
4088am__include="#"
4089am__quote=
b9583093
AM
4090_am_result=none
4091# First try GNU make style include.
4092echo "include confinc" > confmf
4093# Ignore all kinds of additional output from 'make'.
4094case `$am_make -s -f confmf 2> /dev/null` in #(
4095*the\ am__doit\ target*)
4096 am__include=include
4097 am__quote=
4098 _am_result=GNU
4099 ;;
631ec08c 4100esac
b9583093
AM
4101# Now try BSD make style include.
4102if test "$am__include" = "#"; then
4103 echo '.include "confinc"' > confmf
4104 case `$am_make -s -f confmf 2> /dev/null` in #(
4105 *the\ am__doit\ target*)
4106 am__include=.include
4107 am__quote="\""
4108 _am_result=BSD
4109 ;;
4110 esac
4111fi
4112
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4115$as_echo "$_am_result" >&6; }
4116rm -f confinc confmf
87b9f255
AM
4117
4118# Check whether --enable-dependency-tracking was given.
4119if test "${enable_dependency_tracking+set}" = set; then :
4120 enableval=$enable_dependency_tracking;
4121fi
4122
4123if test "x$enable_dependency_tracking" != xno; then
4124 am_depcomp="$ac_aux_dir/depcomp"
4125 AMDEPBACKSLASH='\'
4126 am__nodep='_no'
4127fi
4128 if test "x$enable_dependency_tracking" != xno; then
4129 AMDEP_TRUE=
4130 AMDEP_FALSE='#'
4131else
4132 AMDEP_TRUE='#'
4133 AMDEP_FALSE=
4134fi
4135
4136
4137
4138depcc="$CC" am_compiler_list=
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4141$as_echo_n "checking dependency style of $depcc... " >&6; }
4142if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144else
4145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4146 # We make a subdir and do the tests there. Otherwise we can end up
4147 # making bogus files that we don't know about and never remove. For
4148 # instance it was reported that on HP-UX the gcc test will end up
4149 # making a dummy file named 'D' -- because '-MD' means "put the output
4150 # in D".
4151 rm -rf conftest.dir
4152 mkdir conftest.dir
4153 # Copy depcomp to subdir because otherwise we won't find it if we're
4154 # using a relative directory.
4155 cp "$am_depcomp" conftest.dir
4156 cd conftest.dir
4157 # We will build objects and dependencies in a subdirectory because
4158 # it helps to detect inapplicable dependency modes. For instance
4159 # both Tru64's cc and ICC support -MD to output dependencies as a
4160 # side effect of compilation, but ICC will put the dependencies in
4161 # the current directory while Tru64 will put them in the object
4162 # directory.
4163 mkdir sub
4164
4165 am_cv_CC_dependencies_compiler_type=none
4166 if test "$am_compiler_list" = ""; then
4167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4168 fi
4169 am__universal=false
4170 case " $depcc " in #(
4171 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4172 esac
4173
4174 for depmode in $am_compiler_list; do
4175 # Setup a source with many dependencies, because some compilers
4176 # like to wrap large dependency lists on column 80 (with \), and
4177 # we should not choose a depcomp mode which is confused by this.
4178 #
4179 # We need to recreate these files for each test, as the compiler may
4180 # overwrite some of them when testing with obscure command lines.
4181 # This happens at least with the AIX C compiler.
4182 : > sub/conftest.c
4183 for i in 1 2 3 4 5 6; do
4184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4185 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4186 # Solaris 10 /bin/sh.
4187 echo '/* dummy */' > sub/conftst$i.h
4188 done
4189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190
4191 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4192 # mode. It turns out that the SunPro C++ compiler does not properly
4193 # handle '-M -o', and we need to detect this. Also, some Intel
4194 # versions had trouble with output in subdirs.
4195 am__obj=sub/conftest.${OBJEXT-o}
4196 am__minus_obj="-o $am__obj"
4197 case $depmode in
4198 gcc)
4199 # This depmode causes a compiler race in universal mode.
4200 test "$am__universal" = false || continue
4201 ;;
4202 nosideeffect)
4203 # After this tag, mechanisms are not by side-effect, so they'll
4204 # only be used when explicitly requested.
4205 if test "x$enable_dependency_tracking" = xyes; then
4206 continue
4207 else
4208 break
4209 fi
4210 ;;
4211 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4212 # This compiler won't grok '-c -o', but also, the minuso test has
4213 # not run yet. These depmodes are late enough in the game, and
4214 # so weak that their functioning should not be impacted.
4215 am__obj=conftest.${OBJEXT-o}
4216 am__minus_obj=
4217 ;;
4218 none) break ;;
4219 esac
4220 if depmode=$depmode \
4221 source=sub/conftest.c object=$am__obj \
4222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4223 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4224 >/dev/null 2>conftest.err &&
4225 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4229 # icc doesn't choke on unknown options, it will just issue warnings
4230 # or remarks (even with -Werror). So we grep stderr for any message
4231 # that says an option was ignored or not supported.
4232 # When given -MP, icc 7.0 and 7.1 complain thusly:
4233 # icc: Command line warning: ignoring option '-M'; no argument required
4234 # The diagnosis changed in icc 8.0:
4235 # icc: Command line remark: option '-MP' not supported
4236 if (grep 'ignoring option' conftest.err ||
4237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4238 am_cv_CC_dependencies_compiler_type=$depmode
4239 break
4240 fi
4241 fi
4242 done
4243
4244 cd ..
4245 rm -rf conftest.dir
4246else
4247 am_cv_CC_dependencies_compiler_type=none
4248fi
4249
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4252$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4254
4255 if
4256 test "x$enable_dependency_tracking" != xno \
4257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4258 am__fastdepCC_TRUE=
4259 am__fastdepCC_FALSE='#'
4260else
4261 am__fastdepCC_TRUE='#'
4262 am__fastdepCC_FALSE=
4263fi
4264
d0ac1c44
SM
4265
4266
7357c5b6
AM
4267ac_ext=c
4268ac_cpp='$CPP $CPPFLAGS'
4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4273$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4274# On Suns, sometimes $CPP names a directory.
4275if test -n "$CPP" && test -d "$CPP"; then
4276 CPP=
4277fi
4278if test -z "$CPP"; then
d0ac1c44 4279 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4280 $as_echo_n "(cached) " >&6
7357c5b6
AM
4281else
4282 # Double quotes because CPP needs to be expanded
4283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4284 do
4285 ac_preproc_ok=false
4286for ac_c_preproc_warn_flag in '' yes
4287do
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4295/* end confdefs.h. */
4296#ifdef __STDC__
4297# include <limits.h>
4298#else
4299# include <assert.h>
4300#endif
4301 Syntax error
4302_ACEOF
81ecdfbb 4303if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4304
81ecdfbb 4305else
7357c5b6
AM
4306 # Broken: fails on valid input.
4307continue
4308fi
d0ac1c44 4309rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4310
81ecdfbb 4311 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4312 # can be detected and how.
81ecdfbb 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4314/* end confdefs.h. */
4315#include <ac_nonexistent.h>
4316_ACEOF
81ecdfbb 4317if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4318 # Broken: success on invalid input.
4319continue
4320else
7357c5b6
AM
4321 # Passes both tests.
4322ac_preproc_ok=:
4323break
4324fi
d0ac1c44 4325rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4326
7357c5b6
AM
4327done
4328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4329rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4330if $ac_preproc_ok; then :
7357c5b6
AM
4331 break
4332fi
d7040cdb 4333
7357c5b6
AM
4334 done
4335 ac_cv_prog_CPP=$CPP
d7040cdb 4336
7357c5b6
AM
4337fi
4338 CPP=$ac_cv_prog_CPP
4339else
4340 ac_cv_prog_CPP=$CPP
4341fi
81ecdfbb
RW
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4343$as_echo "$CPP" >&6; }
7357c5b6
AM
4344ac_preproc_ok=false
4345for ac_c_preproc_warn_flag in '' yes
4346do
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4354/* end confdefs.h. */
4355#ifdef __STDC__
4356# include <limits.h>
4357#else
4358# include <assert.h>
4359#endif
4360 Syntax error
4361_ACEOF
81ecdfbb 4362if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4363
81ecdfbb 4364else
7357c5b6
AM
4365 # Broken: fails on valid input.
4366continue
4367fi
d0ac1c44 4368rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4369
81ecdfbb 4370 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4371 # can be detected and how.
81ecdfbb 4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4373/* end confdefs.h. */
4374#include <ac_nonexistent.h>
4375_ACEOF
81ecdfbb 4376if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4377 # Broken: success on invalid input.
4378continue
4379else
7357c5b6
AM
4380 # Passes both tests.
4381ac_preproc_ok=:
4382break
4383fi
d0ac1c44 4384rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4385
7357c5b6
AM
4386done
4387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4388rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4389if $ac_preproc_ok; then :
4390
7357c5b6 4391else
81ecdfbb
RW
4392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4394as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4395See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4396fi
d7040cdb 4397
7357c5b6
AM
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4403
4404
81ecdfbb
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4406$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4407if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4408 $as_echo_n "(cached) " >&6
7357c5b6 4409else
81ecdfbb
RW
4410 if test -z "$GREP"; then
4411 ac_path_GREP_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in grep ggrep; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4421 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4422# Check for GNU ac_path_GREP and select it if it is found.
4423 # Check for GNU $ac_path_GREP
4424case `"$ac_path_GREP" --version 2>&1` in
4425*GNU*)
4426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4427*)
4428 ac_count=0
4429 $as_echo_n 0123456789 >"conftest.in"
4430 while :
4431 do
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'GREP' >> "conftest.nl"
4436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 as_fn_arith $ac_count + 1 && ac_count=$as_val
4439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_GREP="$ac_path_GREP"
4442 ac_path_GREP_max=$ac_count
7357c5b6 4443 fi
81ecdfbb
RW
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4446 done
4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448esac
4449
4450 $ac_path_GREP_found && break 3
4451 done
4452 done
4453 done
4454IFS=$as_save_IFS
4455 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4456 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4457 fi
4458else
4459 ac_cv_path_GREP=$GREP
4460fi
4461
7357c5b6 4462fi
81ecdfbb
RW
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4464$as_echo "$ac_cv_path_GREP" >&6; }
4465 GREP="$ac_cv_path_GREP"
d7040cdb 4466
d7040cdb 4467
81ecdfbb
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4469$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4470if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4471 $as_echo_n "(cached) " >&6
7357c5b6 4472else
81ecdfbb
RW
4473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474 then ac_cv_path_EGREP="$GREP -E"
4475 else
4476 if test -z "$EGREP"; then
4477 ac_path_EGREP_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in egrep; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4487 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4488# Check for GNU ac_path_EGREP and select it if it is found.
4489 # Check for GNU $ac_path_EGREP
4490case `"$ac_path_EGREP" --version 2>&1` in
4491*GNU*)
4492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493*)
4494 ac_count=0
4495 $as_echo_n 0123456789 >"conftest.in"
4496 while :
4497 do
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo 'EGREP' >> "conftest.nl"
4502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_EGREP="$ac_path_EGREP"
4508 ac_path_EGREP_max=$ac_count
4509 fi
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4512 done
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514esac
4515
4516 $ac_path_EGREP_found && break 3
4517 done
4518 done
4519 done
4520IFS=$as_save_IFS
4521 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4523 fi
4524else
4525 ac_cv_path_EGREP=$EGREP
4526fi
4527
4528 fi
4529fi
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4531$as_echo "$ac_cv_path_EGREP" >&6; }
4532 EGREP="$ac_cv_path_EGREP"
4533
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4536$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4537if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
4538 $as_echo_n "(cached) " >&6
4539else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4541/* end confdefs.h. */
4542#include <stdlib.h>
4543#include <stdarg.h>
4544#include <string.h>
4545#include <float.h>
d7040cdb 4546
7357c5b6
AM
4547int
4548main ()
4549{
d7040cdb 4550
7357c5b6
AM
4551 ;
4552 return 0;
4553}
4554_ACEOF
81ecdfbb 4555if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4556 ac_cv_header_stdc=yes
4557else
81ecdfbb 4558 ac_cv_header_stdc=no
7357c5b6 4559fi
81ecdfbb 4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4561
7357c5b6
AM
4562if test $ac_cv_header_stdc = yes; then
4563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4565/* end confdefs.h. */
4566#include <string.h>
d7040cdb 4567
7357c5b6
AM
4568_ACEOF
4569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4570 $EGREP "memchr" >/dev/null 2>&1; then :
4571
d45dc31f 4572else
7357c5b6
AM
4573 ac_cv_header_stdc=no
4574fi
4575rm -f conftest*
d7040cdb 4576
7357c5b6 4577fi
d7040cdb 4578
7357c5b6
AM
4579if test $ac_cv_header_stdc = yes; then
4580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4582/* end confdefs.h. */
4583#include <stdlib.h>
d7040cdb 4584
7357c5b6
AM
4585_ACEOF
4586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4587 $EGREP "free" >/dev/null 2>&1; then :
4588
7357c5b6
AM
4589else
4590 ac_cv_header_stdc=no
4591fi
4592rm -f conftest*
d7040cdb 4593
7357c5b6 4594fi
d7040cdb 4595
7357c5b6
AM
4596if test $ac_cv_header_stdc = yes; then
4597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4598 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4599 :
4600else
81ecdfbb 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4602/* end confdefs.h. */
4603#include <ctype.h>
81ecdfbb 4604#include <stdlib.h>
7357c5b6
AM
4605#if ((' ' & 0x0FF) == 0x020)
4606# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4607# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4608#else
4609# define ISLOWER(c) \
4610 (('a' <= (c) && (c) <= 'i') \
4611 || ('j' <= (c) && (c) <= 'r') \
4612 || ('s' <= (c) && (c) <= 'z'))
4613# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4614#endif
d7040cdb 4615
7357c5b6
AM
4616#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4617int
4618main ()
4619{
4620 int i;
4621 for (i = 0; i < 256; i++)
4622 if (XOR (islower (i), ISLOWER (i))
4623 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4624 return 2;
4625 return 0;
7357c5b6
AM
4626}
4627_ACEOF
81ecdfbb 4628if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4629
81ecdfbb
RW
4630else
4631 ac_cv_header_stdc=no
7357c5b6 4632fi
81ecdfbb
RW
4633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4634 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4635fi
81ecdfbb 4636
7357c5b6
AM
4637fi
4638fi
81ecdfbb
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4640$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4641if test $ac_cv_header_stdc = yes; then
d7040cdb 4642
81ecdfbb 4643$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4644
7357c5b6 4645fi
d7040cdb 4646
7357c5b6 4647# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4648for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4649 inttypes.h stdint.h unistd.h
4650do :
4651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4653"
d0ac1c44 4654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
4655 cat >>confdefs.h <<_ACEOF
4656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657_ACEOF
d7040cdb 4658
81ecdfbb 4659fi
d7040cdb 4660
81ecdfbb 4661done
d7040cdb
SE
4662
4663
4664
81ecdfbb 4665 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4666if test "x$ac_cv_header_minix_config_h" = xyes; then :
81ecdfbb
RW
4667 MINIX=yes
4668else
4669 MINIX=
4670fi
d7040cdb
SE
4671
4672
81ecdfbb 4673 if test "$MINIX" = yes; then
d7040cdb 4674
81ecdfbb 4675$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4676
d7040cdb 4677
81ecdfbb 4678$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4679
4680
81ecdfbb 4681$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4682
81ecdfbb 4683 fi
d7040cdb
SE
4684
4685
81ecdfbb
RW
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4687$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4688if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4689 $as_echo_n "(cached) " >&6
7357c5b6 4690else
81ecdfbb 4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4692/* end confdefs.h. */
d7040cdb 4693
d0ac1c44
SM
4694# define __EXTENSIONS__ 1
4695 $ac_includes_default
7357c5b6
AM
4696int
4697main ()
4698{
d7040cdb 4699
7357c5b6
AM
4700 ;
4701 return 0;
4702}
4703_ACEOF
81ecdfbb 4704if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4705 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4706else
81ecdfbb 4707 ac_cv_safe_to_define___extensions__=no
d7040cdb 4708fi
81ecdfbb 4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4710fi
81ecdfbb
RW
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4712$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4713 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4715
81ecdfbb 4716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4717
81ecdfbb 4718 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4719
81ecdfbb 4720 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4721
81ecdfbb 4722 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4723
4724
e3525117 4725
5691d22d 4726
81ecdfbb 4727
3f8f9745
RJ
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4729$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4730if ${ac_cv_c_bigendian+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 ac_cv_c_bigendian=unknown
4734 # See if we're dealing with a universal compiler.
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h. */
4737#ifndef __APPLE_CC__
4738 not a universal capable compiler
4739 #endif
4740 typedef int dummy;
4741
4742_ACEOF
4743if ac_fn_c_try_compile "$LINENO"; then :
4744
4745 # Check for potential -arch flags. It is not universal unless
4746 # there are at least two -arch flags with different values.
4747 ac_arch=
4748 ac_prev=
4749 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4750 if test -n "$ac_prev"; then
4751 case $ac_word in
4752 i?86 | x86_64 | ppc | ppc64)
4753 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4754 ac_arch=$ac_word
4755 else
4756 ac_cv_c_bigendian=universal
4757 break
4758 fi
4759 ;;
4760 esac
4761 ac_prev=
4762 elif test "x$ac_word" = "x-arch"; then
4763 ac_prev=arch
4764 fi
4765 done
4766fi
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 if test $ac_cv_c_bigendian = unknown; then
4769 # See if sys/param.h defines the BYTE_ORDER macro.
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772#include <sys/types.h>
4773 #include <sys/param.h>
4774
4775int
4776main ()
4777{
4778#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4779 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4780 && LITTLE_ENDIAN)
4781 bogus endian macros
4782 #endif
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789 # It does; now see whether it defined to BIG_ENDIAN or not.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
4792#include <sys/types.h>
4793 #include <sys/param.h>
4794
4795int
4796main ()
4797{
4798#if BYTE_ORDER != BIG_ENDIAN
4799 not big endian
4800 #endif
4801
4802 ;
4803 return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_compile "$LINENO"; then :
4807 ac_cv_c_bigendian=yes
4808else
4809 ac_cv_c_bigendian=no
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 fi
4815 if test $ac_cv_c_bigendian = unknown; then
4816 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h. */
4819#include <limits.h>
4820
4821int
4822main ()
4823{
4824#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4825 bogus endian macros
4826 #endif
4827
4828 ;
4829 return 0;
4830}
4831_ACEOF
4832if ac_fn_c_try_compile "$LINENO"; then :
4833 # It does; now see whether it defined to _BIG_ENDIAN or not.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
4836#include <limits.h>
4837
4838int
4839main ()
4840{
4841#ifndef _BIG_ENDIAN
4842 not big endian
4843 #endif
4844
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849if ac_fn_c_try_compile "$LINENO"; then :
4850 ac_cv_c_bigendian=yes
4851else
4852 ac_cv_c_bigendian=no
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855fi
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 if test $ac_cv_c_bigendian = unknown; then
4859 # Compile a test program.
4860 if test "$cross_compiling" = yes; then :
4861 # Try to guess by grepping values from an object file.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864short int ascii_mm[] =
4865 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4866 short int ascii_ii[] =
4867 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4868 int use_ascii (int i) {
4869 return ascii_mm[i] + ascii_ii[i];
4870 }
4871 short int ebcdic_ii[] =
4872 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4873 short int ebcdic_mm[] =
4874 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4875 int use_ebcdic (int i) {
4876 return ebcdic_mm[i] + ebcdic_ii[i];
4877 }
4878 extern int foo;
4879
4880int
4881main ()
4882{
4883return use_ascii (foo) == use_ebcdic (foo);
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888if ac_fn_c_try_compile "$LINENO"; then :
4889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4890 ac_cv_c_bigendian=yes
4891 fi
4892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4893 if test "$ac_cv_c_bigendian" = unknown; then
4894 ac_cv_c_bigendian=no
4895 else
4896 # finding both strings is unlikely to happen, but who knows?
4897 ac_cv_c_bigendian=unknown
4898 fi
4899 fi
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902else
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h. */
4905$ac_includes_default
4906int
4907main ()
4908{
4909
4910 /* Are we little or big endian? From Harbison&Steele. */
4911 union
4912 {
4913 long int l;
4914 char c[sizeof (long int)];
4915 } u;
4916 u.l = 1;
4917 return u.c[sizeof (long int) - 1] == 1;
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_run "$LINENO"; then :
4924 ac_cv_c_bigendian=no
4925else
4926 ac_cv_c_bigendian=yes
4927fi
4928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4929 conftest.$ac_objext conftest.beam conftest.$ac_ext
4930fi
4931
4932 fi
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4935$as_echo "$ac_cv_c_bigendian" >&6; }
4936 case $ac_cv_c_bigendian in #(
4937 yes)
4938 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4939;; #(
4940 no)
4941 ;; #(
4942 universal)
4943
4944$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4945
4946 ;; #(
4947 *)
4948 as_fn_error $? "unknown endianness
4949 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4950 esac
4951
4952
718a6fd8
SE
4953case `pwd` in
4954 *\ * | *\ *)
81ecdfbb
RW
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4956$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4957esac
d7040cdb
SE
4958
4959
7357c5b6 4960
f2c621e4
AS
4961macro_version='2.2.7a'
4962macro_revision='1.3134'
7357c5b6
AM
4963
4964
4965
4966
4967
4968
7357c5b6
AM
4969
4970
4971
4972
4973
4974
4975
718a6fd8 4976ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4977
3725885a
RW
4978# Backslashify metacharacters that are still active within
4979# double-quoted strings.
4980sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4981
4982# Same as above, but do not quote variable references.
4983double_quote_subst='s/\(["`\\]\)/\\\1/g'
4984
4985# Sed substitution to delay expansion of an escaped shell variable in a
4986# double_quote_subst'ed string.
4987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4988
4989# Sed substitution to delay expansion of an escaped single quote.
4990delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4991
4992# Sed substitution to avoid accidental globbing in evaled expressions
4993no_glob_subst='s/\*/\\\*/g'
4994
4995ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4996ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4997ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5000$as_echo_n "checking how to print strings... " >&6; }
5001# Test print first, because it will be a builtin if present.
f2c621e4 5002if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
5003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5004 ECHO='print -r --'
5005elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5006 ECHO='printf %s\n'
5007else
5008 # Use this function as a fallback that always works.
5009 func_fallback_echo ()
5010 {
5011 eval 'cat <<_LTECHO_EOF
5012$1
5013_LTECHO_EOF'
5014 }
5015 ECHO='func_fallback_echo'
5016fi
5017
5018# func_echo_all arg...
5019# Invoke $ECHO with all args, space-separated.
5020func_echo_all ()
5021{
5022 $ECHO ""
5023}
5024
5025case "$ECHO" in
5026 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5027$as_echo "printf" >&6; } ;;
5028 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5029$as_echo "print -r" >&6; } ;;
5030 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5031$as_echo "cat" >&6; } ;;
5032esac
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
81ecdfbb
RW
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5048$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5049if ${ac_cv_path_SED+:} false; then :
81ecdfbb 5050 $as_echo_n "(cached) " >&6
7357c5b6 5051else
81ecdfbb
RW
5052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5053 for ac_i in 1 2 3 4 5 6 7; do
5054 ac_script="$ac_script$as_nl$ac_script"
5055 done
5056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5057 { ac_script=; unset ac_script;}
5058 if test -z "$SED"; then
5059 ac_path_SED_found=false
5060 # Loop through the user's path and test for each of PROGNAME-LIST
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
81ecdfbb 5066 for ac_prog in sed gsed; do
7357c5b6 5067 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5069 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5070# Check for GNU ac_path_SED and select it if it is found.
5071 # Check for GNU $ac_path_SED
5072case `"$ac_path_SED" --version 2>&1` in
5073*GNU*)
5074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5075*)
5076 ac_count=0
5077 $as_echo_n 0123456789 >"conftest.in"
5078 while :
5079 do
5080 cat "conftest.in" "conftest.in" >"conftest.tmp"
5081 mv "conftest.tmp" "conftest.in"
5082 cp "conftest.in" "conftest.nl"
5083 $as_echo '' >> "conftest.nl"
5084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086 as_fn_arith $ac_count + 1 && ac_count=$as_val
5087 if test $ac_count -gt ${ac_path_SED_max-0}; then
5088 # Best one so far, save it but keep looking for a better one
5089 ac_cv_path_SED="$ac_path_SED"
5090 ac_path_SED_max=$ac_count
5091 fi
5092 # 10*(2^10) chars as input seems more than enough
5093 test $ac_count -gt 10 && break
5094 done
5095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5096esac
5097
5098 $ac_path_SED_found && break 3
7357c5b6
AM
5099 done
5100 done
81ecdfbb 5101 done
7357c5b6 5102IFS=$as_save_IFS
81ecdfbb 5103 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5104 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5105 fi
81ecdfbb
RW
5106else
5107 ac_cv_path_SED=$SED
7357c5b6
AM
5108fi
5109
81ecdfbb
RW
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5112$as_echo "$ac_cv_path_SED" >&6; }
5113 SED="$ac_cv_path_SED"
5114 rm -f conftest.sed
7357c5b6
AM
5115
5116test -z "$SED" && SED=sed
5117Xsed="$SED -e 1s/^X//"
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
81ecdfbb
RW
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5130$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5131if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5132 $as_echo_n "(cached) " >&6
7357c5b6 5133else
81ecdfbb
RW
5134 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5135 then ac_cv_path_FGREP="$GREP -F"
5136 else
5137 if test -z "$FGREP"; then
5138 ac_path_FGREP_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_prog in fgrep; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5148 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5149# Check for GNU ac_path_FGREP and select it if it is found.
5150 # Check for GNU $ac_path_FGREP
5151case `"$ac_path_FGREP" --version 2>&1` in
5152*GNU*)
5153 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5154*)
5155 ac_count=0
5156 $as_echo_n 0123456789 >"conftest.in"
5157 while :
5158 do
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 $as_echo 'FGREP' >> "conftest.nl"
5163 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_FGREP="$ac_path_FGREP"
5169 ac_path_FGREP_max=$ac_count
7357c5b6 5170 fi
81ecdfbb
RW
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5173 done
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175esac
5176
5177 $ac_path_FGREP_found && break 3
5178 done
5179 done
5180 done
5181IFS=$as_save_IFS
5182 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5183 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5184 fi
5185else
5186 ac_cv_path_FGREP=$FGREP
5187fi
5188
5189 fi
7357c5b6 5190fi
81ecdfbb
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5192$as_echo "$ac_cv_path_FGREP" >&6; }
5193 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5194
5195
5196test -z "$GREP" && GREP=grep
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
81ecdfbb
RW
5216# Check whether --with-gnu-ld was given.
5217if test "${with_gnu_ld+set}" = set; then :
5218 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5219else
5220 with_gnu_ld=no
81ecdfbb
RW
5221fi
5222
7357c5b6
AM
5223ac_prog=ld
5224if test "$GCC" = yes; then
5225 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5227$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5228 case $host in
5229 *-*-mingw*)
d45dc31f
SE
5230 # gcc leaves a trailing carriage return which upsets mingw
5231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5232 *)
5233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5234 esac
5235 case $ac_prog in
5236 # Accept absolute paths.
d7040cdb 5237 [\\/]* | ?:[\\/]*)
d45dc31f 5238 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5239 # Canonicalize the pathname of ld
5240 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5241 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5242 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5243 done
5244 test -z "$LD" && LD="$ac_prog"
5245 ;;
5246 "")
5247 # If it fails, then pretend we aren't using GCC.
5248 ac_prog=ld
5249 ;;
5250 *)
5251 # If it is relative, then search for the first ld in PATH.
5252 with_gnu_ld=unknown
5253 ;;
5254 esac
5255elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5257$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5258else
81ecdfbb
RW
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5260$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5261fi
d0ac1c44 5262if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5263 $as_echo_n "(cached) " >&6
d45dc31f
SE
5264else
5265 if test -z "$LD"; then
d7040cdb 5266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5267 for ac_dir in $PATH; do
d7040cdb 5268 IFS="$lt_save_ifs"
d45dc31f
SE
5269 test -z "$ac_dir" && ac_dir=.
5270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5271 lt_cv_path_LD="$ac_dir/$ac_prog"
5272 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5273 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5274 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5275 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5276 *GNU* | *'with BFD'*)
d45dc31f 5277 test "$with_gnu_ld" != no && break
d7040cdb
SE
5278 ;;
5279 *)
d45dc31f 5280 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5281 ;;
5282 esac
d45dc31f
SE
5283 fi
5284 done
d7040cdb 5285 IFS="$lt_save_ifs"
d45dc31f
SE
5286else
5287 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5288fi
5289fi
1ad12f97 5290
d45dc31f
SE
5291LD="$lt_cv_path_LD"
5292if test -n "$LD"; then
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5294$as_echo "$LD" >&6; }
d45dc31f 5295else
81ecdfbb
RW
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
d45dc31f 5298fi
d0ac1c44 5299test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5301$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5302if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5303 $as_echo_n "(cached) " >&6
d45dc31f 5304else
d7040cdb
SE
5305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5306case `$LD -v 2>&1 </dev/null` in
5307*GNU* | *'with BFD'*)
d45dc31f 5308 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5309 ;;
5310*)
d45dc31f 5311 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5312 ;;
5313esac
d45dc31f 5314fi
81ecdfbb
RW
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5316$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5317with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5318
d45dc31f 5319
42ecbf5e 5320
d7040cdb
SE
5321
5322
5323
5324
5325
5326
81ecdfbb
RW
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5328$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5329if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5330 $as_echo_n "(cached) " >&6
d45dc31f
SE
5331else
5332 if test -n "$NM"; then
b9004024
NA
5333 # Let the user override the nm to test.
5334 lt_nm_to_check="$NM"
5335 else
5336 lt_nm_to_check="${ac_tool_prefix}nm"
5337 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5338 lt_nm_to_check="$lt_nm_to_check nm"
5339 fi
5340 fi
caf606c9 5341 for lt_tmp_nm in "$lt_nm_to_check"; do
b9004024
NA
5342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5344 IFS="$lt_save_ifs"
5345 test -z "$ac_dir" && ac_dir=.
caf606c9
NA
5346 # Strip out any user-provided options from the nm to test twice,
5347 # the first time to test to see if nm (rather than its options) has
5348 # an explicit path, the second time to yield a file which can be
5349 # nm'ed itself.
5350 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5351 case "$tmp_nm_path" in
b9004024
NA
5352 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5353 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5354 esac
caf606c9
NA
5355 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5356 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
b9004024
NA
5357 # Check to see if the nm accepts a BSD-compat flag.
5358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5359 # nm: unknown option "B" ignored
caf606c9 5360 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5361 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5362 break
5363 ;;
5364 *)
caf606c9 5365 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5366 *$tmp_nm*)
5367 lt_cv_path_NM="$tmp_nm -p"
5368 break
5369 ;;
5370 *)
5371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5372 continue # so that we can try to find one that supports BSD flags
5373 ;;
5374 esac
5375 ;;
5376 esac
5377 fi
5378 done
5379 IFS="$lt_save_ifs"
5380 done
5381 : ${lt_cv_path_NM=no}
a541e3ce 5382fi
81ecdfbb
RW
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5384$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5385if test "$lt_cv_path_NM" != "no"; then
5386 NM="$lt_cv_path_NM"
d45dc31f 5387else
d7040cdb 5388 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5389 if test -n "$DUMPBIN"; then :
5390 # Let the user override the test.
5391 else
5392 if test -n "$ac_tool_prefix"; then
5393 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5394 do
5395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5396set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5399if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5400 $as_echo_n "(cached) " >&6
d45dc31f 5401else
d7040cdb
SE
5402 if test -n "$DUMPBIN"; then
5403 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
81ecdfbb 5410 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5412 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5414 break 2
5415 fi
5416done
81ecdfbb
RW
5417 done
5418IFS=$as_save_IFS
398ee8f1 5419
d7040cdb
SE
5420fi
5421fi
5422DUMPBIN=$ac_cv_prog_DUMPBIN
5423if test -n "$DUMPBIN"; then
81ecdfbb
RW
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5425$as_echo "$DUMPBIN" >&6; }
d7040cdb 5426else
81ecdfbb
RW
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
d7040cdb 5429fi
d15b04bd 5430
81ecdfbb 5431
d7040cdb
SE
5432 test -n "$DUMPBIN" && break
5433 done
5434fi
5435if test -z "$DUMPBIN"; then
5436 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5437 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5438do
5439 # Extract the first word of "$ac_prog", so it can be a program name with args.
5440set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5443if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5444 $as_echo_n "(cached) " >&6
d7040cdb
SE
5445else
5446 if test -n "$ac_ct_DUMPBIN"; then
5447 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
81ecdfbb 5454 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5456 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5458 break 2
d45dc31f 5459 fi
d7040cdb 5460done
81ecdfbb
RW
5461 done
5462IFS=$as_save_IFS
d15b04bd 5463
d7040cdb
SE
5464fi
5465fi
5466ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5467if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5469$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5470else
81ecdfbb
RW
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
d7040cdb 5473fi
42ecbf5e 5474
81ecdfbb 5475
d7040cdb
SE
5476 test -n "$ac_ct_DUMPBIN" && break
5477done
d45dc31f 5478
81ecdfbb
RW
5479 if test "x$ac_ct_DUMPBIN" = x; then
5480 DUMPBIN=":"
5481 else
5482 case $cross_compiling:$ac_tool_warned in
5483yes:)
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5486ac_tool_warned=yes ;;
5487esac
5488 DUMPBIN=$ac_ct_DUMPBIN
5489 fi
d7040cdb 5490fi
d45dc31f 5491
3725885a
RW
5492 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5493 *COFF*)
5494 DUMPBIN="$DUMPBIN -symbols"
5495 ;;
5496 *)
5497 DUMPBIN=:
5498 ;;
5499 esac
5500 fi
d45dc31f 5501
d7040cdb
SE
5502 if test "$DUMPBIN" != ":"; then
5503 NM="$DUMPBIN"
42ecbf5e 5504 fi
d7040cdb
SE
5505fi
5506test -z "$NM" && NM=nm
d45dc31f 5507
42ecbf5e 5508
d15b04bd 5509
42ecbf5e 5510
d45dc31f 5511
42ecbf5e 5512
81ecdfbb
RW
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5514$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5515if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5516 $as_echo_n "(cached) " >&6
d7040cdb
SE
5517else
5518 lt_cv_nm_interface="BSD nm"
5519 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5520 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5521 (eval "$ac_compile" 2>conftest.err)
5522 cat conftest.err >&5
3725885a 5523 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5525 cat conftest.err >&5
3725885a 5526 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5527 cat conftest.out >&5
5528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5529 lt_cv_nm_interface="MS dumpbin"
5530 fi
5531 rm -f conftest*
42ecbf5e 5532fi
81ecdfbb
RW
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5534$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5535
81ecdfbb
RW
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5537$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5538LN_S=$as_ln_s
5539if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5541$as_echo "yes" >&6; }
d7040cdb 5542else
81ecdfbb
RW
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5544$as_echo "no, using $LN_S" >&6; }
d7040cdb 5545fi
d45dc31f
SE
5546
5547# find the maximum length of command line arguments
81ecdfbb
RW
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5549$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5550if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5551 $as_echo_n "(cached) " >&6
42ecbf5e 5552else
d45dc31f
SE
5553 i=0
5554 teststring="ABCD"
5555
5556 case $build_os in
5557 msdosdjgpp*)
5558 # On DJGPP, this test can blow up pretty badly due to problems in libc
5559 # (any single argument exceeding 2000 bytes causes a buffer overrun
5560 # during glob expansion). Even if it were fixed, the result of this
5561 # check would be larger than it should be.
5562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5563 ;;
5564
d7040cdb
SE
5565 gnu*)
5566 # Under GNU Hurd, this test is not required because there is
5567 # no limit to the length of command line arguments.
5568 # Libtool will interpret -1 as no limit whatsoever
5569 lt_cv_sys_max_cmd_len=-1;
5570 ;;
5571
718a6fd8 5572 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5573 # On Win9x/ME, this test blows up -- it succeeds, but takes
5574 # about 5 minutes as the teststring grows exponentially.
5575 # Worse, since 9x/ME are not pre-emptively multitasking,
5576 # you end up with a "frozen" computer, even though with patience
5577 # the test eventually succeeds (with a max line length of 256k).
5578 # Instead, let's just punt: use the minimum linelength reported by
5579 # all of the supported platforms: 8192 (on NT/2K/XP).
5580 lt_cv_sys_max_cmd_len=8192;
5581 ;;
5582
3725885a
RW
5583 mint*)
5584 # On MiNT this can take a long time and run out of memory.
5585 lt_cv_sys_max_cmd_len=8192;
5586 ;;
5587
d45dc31f
SE
5588 amigaos*)
5589 # On AmigaOS with pdksh, this test takes hours, literally.
5590 # So we just punt and use a minimum line length of 8192.
5591 lt_cv_sys_max_cmd_len=8192;
5592 ;;
5593
5594 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5595 # This has been around since 386BSD, at least. Likely further.
5596 if test -x /sbin/sysctl; then
5597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5598 elif test -x /usr/sbin/sysctl; then
5599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5600 else
d7040cdb 5601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5602 fi
5603 # And add a safety zone
5604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5606 ;;
d7040cdb
SE
5607
5608 interix*)
5609 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5610 lt_cv_sys_max_cmd_len=196608
5611 ;;
5612
5613 osf*)
5614 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5615 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5616 # nice to cause kernel panics so lets avoid the loop below.
5617 # First set a reasonable default.
5618 lt_cv_sys_max_cmd_len=16384
5619 #
5620 if test -x /sbin/sysconfig; then
5621 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5622 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5623 esac
5624 fi
5625 ;;
5626 sco3.2v5*)
5627 lt_cv_sys_max_cmd_len=102400
5628 ;;
5629 sysv5* | sco5v6* | sysv4.2uw2*)
5630 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5631 if test -n "$kargmax"; then
5632 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5633 else
5634 lt_cv_sys_max_cmd_len=32768
5635 fi
5636 ;;
5637 *)
718a6fd8
SE
5638 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5639 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5642 else
5643 # Make teststring a little bigger before we do anything with it.
5644 # a 1K string should be a reasonable start.
5645 for i in 1 2 3 4 5 6 7 8 ; do
5646 teststring=$teststring$teststring
5647 done
5648 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5649 # If test is not a shell built-in, we'll probably end up computing a
5650 # maximum length that is only half of the actual maximum length, but
5651 # we can't tell.
3725885a
RW
5652 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5653 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5654 test $i != 17 # 1/2 MB should be enough
5655 do
5656 i=`expr $i + 1`
5657 teststring=$teststring$teststring
5658 done
5659 # Only check the string length outside the loop.
5660 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5661 teststring=
5662 # Add a significant safety factor because C++ compilers can tack on
5663 # massive amounts of additional arguments before passing them to the
5664 # linker. It appears as though 1/2 is a usable value.
5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5666 fi
d7040cdb 5667 ;;
d45dc31f 5668 esac
42ecbf5e 5669
42ecbf5e
DJ
5670fi
5671
d7040cdb 5672if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5674$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5675else
81ecdfbb
RW
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5677$as_echo "none" >&6; }
252b5132 5678fi
d7040cdb 5679max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5680
d45dc31f 5681
42ecbf5e 5682
d45dc31f 5683
d45dc31f 5684
d7040cdb 5685
d7040cdb
SE
5686: ${CP="cp -f"}
5687: ${MV="mv -f"}
5688: ${RM="rm -f"}
5689
81ecdfbb
RW
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5691$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5692# Try some XSI features
5693xsi_shell=no
5694( _lt_dummy="a/b/c"
f2c621e4
AS
5695 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5696 = c,a/b,, \
718a6fd8
SE
5697 && eval 'test $(( 1 + 1 )) -eq 2 \
5698 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5699 && xsi_shell=yes
81ecdfbb
RW
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5701$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5702
5703
81ecdfbb
RW
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5705$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5706lt_shell_append=no
5707( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5708 >/dev/null 2>&1 \
5709 && lt_shell_append=yes
81ecdfbb
RW
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5711$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5712
5713
5714if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5715 lt_unset=unset
252b5132 5716else
d7040cdb 5717 lt_unset=false
252b5132
RH
5718fi
5719
d7040cdb
SE
5720
5721
5722
5723
5724# test EBCDIC or ASCII
5725case `echo X|tr X '\101'` in
5726 A) # ASCII based system
5727 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5728 lt_SP2NL='tr \040 \012'
5729 lt_NL2SP='tr \015\012 \040\040'
5730 ;;
5731 *) # EBCDIC based system
5732 lt_SP2NL='tr \100 \n'
5733 lt_NL2SP='tr \r\n \100\100'
5734 ;;
5735esac
5736
5737
5738
5739
5740
5741
5742
5743
5744
81ecdfbb
RW
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5746$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5747if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5748 $as_echo_n "(cached) " >&6
252b5132 5749else
d7040cdb
SE
5750 lt_cv_ld_reload_flag='-r'
5751fi
81ecdfbb
RW
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5753$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5754reload_flag=$lt_cv_ld_reload_flag
5755case $reload_flag in
5756"" | " "*) ;;
5757*) reload_flag=" $reload_flag" ;;
5758esac
5759reload_cmds='$LD$reload_flag -o $output$reload_objs'
5760case $host_os in
5761 darwin*)
5762 if test "$GCC" = yes; then
5763 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5764 else
5765 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5766 fi
5767 ;;
5768esac
5769
5770
5771
5772
5773
5774
5775
5776
5777
718a6fd8
SE
5778if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5780set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5783if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5784 $as_echo_n "(cached) " >&6
718a6fd8
SE
5785else
5786 if test -n "$OBJDUMP"; then
5787 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
81ecdfbb 5794 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5796 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5798 break 2
5799 fi
5800done
81ecdfbb
RW
5801 done
5802IFS=$as_save_IFS
718a6fd8
SE
5803
5804fi
5805fi
5806OBJDUMP=$ac_cv_prog_OBJDUMP
5807if test -n "$OBJDUMP"; then
81ecdfbb
RW
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5809$as_echo "$OBJDUMP" >&6; }
718a6fd8 5810else
81ecdfbb
RW
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
718a6fd8
SE
5813fi
5814
81ecdfbb 5815
718a6fd8
SE
5816fi
5817if test -z "$ac_cv_prog_OBJDUMP"; then
5818 ac_ct_OBJDUMP=$OBJDUMP
5819 # Extract the first word of "objdump", so it can be a program name with args.
5820set dummy objdump; ac_word=$2
81ecdfbb
RW
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5823if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5824 $as_echo_n "(cached) " >&6
718a6fd8
SE
5825else
5826 if test -n "$ac_ct_OBJDUMP"; then
5827 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
81ecdfbb 5834 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5836 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5838 break 2
5839 fi
5840done
81ecdfbb
RW
5841 done
5842IFS=$as_save_IFS
718a6fd8 5843
718a6fd8
SE
5844fi
5845fi
5846ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5847if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5849$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5850else
81ecdfbb
RW
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
718a6fd8
SE
5853fi
5854
81ecdfbb
RW
5855 if test "x$ac_ct_OBJDUMP" = x; then
5856 OBJDUMP="false"
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859yes:)
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862ac_tool_warned=yes ;;
5863esac
5864 OBJDUMP=$ac_ct_OBJDUMP
5865 fi
718a6fd8
SE
5866else
5867 OBJDUMP="$ac_cv_prog_OBJDUMP"
5868fi
5869
5870test -z "$OBJDUMP" && OBJDUMP=objdump
5871
5872
5873
5874
5875
5876
5877
5878
d7040cdb 5879
81ecdfbb
RW
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5881$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5882if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5883 $as_echo_n "(cached) " >&6
d7040cdb
SE
5884else
5885 lt_cv_file_magic_cmd='$MAGIC_CMD'
5886lt_cv_file_magic_test_file=
5887lt_cv_deplibs_check_method='unknown'
5888# Need to set the preceding variable on all platforms that support
5889# interlibrary dependencies.
5890# 'none' -- dependencies not supported.
5891# `unknown' -- same as none, but documents that we really don't know.
5892# 'pass_all' -- all dependencies passed with no checks.
5893# 'test_compile' -- check by making test program.
5894# 'file_magic [[regex]]' -- check by looking for files in library path
5895# which responds to the $file_magic_cmd with a given extended regex.
5896# If you have `file' or equivalent on your system and you're not sure
5897# whether `pass_all' will *always* work, you probably want this one.
5898
5899case $host_os in
50e7d84b 5900aix[4-9]*)
d7040cdb
SE
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904beos*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908bsdi[45]*)
5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5910 lt_cv_file_magic_cmd='/usr/bin/file -L'
5911 lt_cv_file_magic_test_file=/shlib/libc.so
5912 ;;
5913
5914cygwin*)
5915 # func_win32_libid is a shell function defined in ltmain.sh
5916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5917 lt_cv_file_magic_cmd='func_win32_libid'
5918 ;;
5919
5920mingw* | pw32*)
5921 # Base MSYS/MinGW do not provide the 'file' command needed by
5922 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5923 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5924 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5925 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
5926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5927 lt_cv_file_magic_cmd='func_win32_libid'
5928 else
f2c621e4 5929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d7040cdb
SE
5930 lt_cv_file_magic_cmd='$OBJDUMP -f'
5931 fi
5932 ;;
5933
3725885a 5934cegcc*)
718a6fd8
SE
5935 # use the weaker test based on 'objdump'. See mingw*.
5936 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5937 lt_cv_file_magic_cmd='$OBJDUMP -f'
5938 ;;
5939
d7040cdb
SE
5940darwin* | rhapsody*)
5941 lt_cv_deplibs_check_method=pass_all
d45dc31f 5942 ;;
d7040cdb
SE
5943
5944freebsd* | dragonfly*)
5945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946 case $host_cpu in
5947 i*86 )
5948 # Not sure whether the presence of OpenBSD here was a mistake.
5949 # Let's accept both of them until this is cleared up.
5950 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5951 lt_cv_file_magic_cmd=/usr/bin/file
5952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5953 ;;
5954 esac
5955 else
5956 lt_cv_deplibs_check_method=pass_all
5957 fi
5958 ;;
5959
5960gnu*)
5961 lt_cv_deplibs_check_method=pass_all
d45dc31f 5962 ;;
d7040cdb 5963
3725885a
RW
5964haiku*)
5965 lt_cv_deplibs_check_method=pass_all
5966 ;;
5967
d7040cdb
SE
5968hpux10.20* | hpux11*)
5969 lt_cv_file_magic_cmd=/usr/bin/file
5970 case $host_cpu in
5971 ia64*)
5972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5973 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5974 ;;
5975 hppa*64*)
3725885a 5976 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]'
d7040cdb
SE
5977 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5978 ;;
d45dc31f 5979 *)
3725885a 5980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
5981 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5982 ;;
5983 esac
5984 ;;
42ecbf5e 5985
d7040cdb
SE
5986interix[3-9]*)
5987 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5989 ;;
42ecbf5e 5990
d7040cdb
SE
5991irix5* | irix6* | nonstopux*)
5992 case $LD in
5993 *-32|*"-32 ") libmagic=32-bit;;
5994 *-n32|*"-n32 ") libmagic=N32;;
5995 *-64|*"-64 ") libmagic=64-bit;;
5996 *) libmagic=never-match;;
5997 esac
5998 lt_cv_deplibs_check_method=pass_all
d45dc31f 5999 ;;
42ecbf5e 6000
d7040cdb 6001# This must be Linux ELF.
6a6859cb 6002linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7040cdb
SE
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
252b5132 6005
d7040cdb
SE
6006netbsd*)
6007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 6009 else
d7040cdb 6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 6011 fi
d7040cdb
SE
6012 ;;
6013
6014newos6*)
6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6016 lt_cv_file_magic_cmd=/usr/bin/file
6017 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6018 ;;
6019
6020*nto* | *qnx*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
42ecbf5e 6023
d7040cdb
SE
6024openbsd*)
6025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6027 else
6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
6029 fi
6030 ;;
d7040cdb
SE
6031
6032osf3* | osf4* | osf5*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036rdos*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040solaris*)
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043
6044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047
6048sysv4 | sysv4.3*)
6049 case $host_vendor in
6050 motorola)
6051 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]'
6052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6053 ;;
6054 ncr)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057 sequent)
6058 lt_cv_file_magic_cmd='/bin/file'
6059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6060 ;;
6061 sni)
6062 lt_cv_file_magic_cmd='/bin/file'
6063 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6064 lt_cv_file_magic_test_file=/lib/libc.so
6065 ;;
6066 siemens)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069 pc)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072 esac
6073 ;;
6074
6075tpf*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6a6859cb
AM
6078vxworks*)
6079 # Assume VxWorks cross toolchains are built on Linux, possibly
6080 # as canadian for Windows hosts.
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
d45dc31f 6083esac
42ecbf5e 6084
d7040cdb 6085fi
81ecdfbb
RW
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6087$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6088file_magic_cmd=$lt_cv_file_magic_cmd
6089deplibs_check_method=$lt_cv_deplibs_check_method
6090test -z "$deplibs_check_method" && deplibs_check_method=unknown
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
a4966cd9
L
6103plugin_option=
6104plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6105for plugin in $plugin_names; do
6106 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6107 if test x$plugin_so = x$plugin; then
6108 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6109 fi
6110 if test x$plugin_so != x$plugin; then
6111 plugin_option="--plugin $plugin_so"
6112 break
6113 fi
6114done
6115
d45dc31f 6116if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6118set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6121if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6122 $as_echo_n "(cached) " >&6
42ecbf5e 6123else
d7040cdb
SE
6124 if test -n "$AR"; then
6125 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
81ecdfbb 6132 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6134 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6136 break 2
6137 fi
6138done
81ecdfbb
RW
6139 done
6140IFS=$as_save_IFS
42ecbf5e 6141
42ecbf5e 6142fi
d45dc31f 6143fi
d7040cdb
SE
6144AR=$ac_cv_prog_AR
6145if test -n "$AR"; then
81ecdfbb
RW
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6147$as_echo "$AR" >&6; }
d45dc31f 6148else
81ecdfbb
RW
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150$as_echo "no" >&6; }
d45dc31f 6151fi
42ecbf5e 6152
81ecdfbb 6153
42ecbf5e 6154fi
f2c621e4 6155if test -z "$ac_cv_prog_AR"; then
d7040cdb 6156 ac_ct_AR=$AR
f2c621e4
AS
6157 # Extract the first word of "ar", so it can be a program name with args.
6158set dummy ar; ac_word=$2
81ecdfbb
RW
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6161if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6162 $as_echo_n "(cached) " >&6
42ecbf5e 6163else
d7040cdb
SE
6164 if test -n "$ac_ct_AR"; then
6165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6166else
d45dc31f
SE
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
81ecdfbb 6172 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6174 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6176 break 2
6177 fi
6178done
81ecdfbb
RW
6179 done
6180IFS=$as_save_IFS
42ecbf5e 6181
42ecbf5e 6182fi
42ecbf5e 6183fi
d7040cdb
SE
6184ac_ct_AR=$ac_cv_prog_ac_ct_AR
6185if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6187$as_echo "$ac_ct_AR" >&6; }
252b5132 6188else
81ecdfbb
RW
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
252b5132 6191fi
252b5132 6192
81ecdfbb
RW
6193 if test "x$ac_ct_AR" = x; then
6194 AR="false"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197yes:)
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200ac_tool_warned=yes ;;
6201esac
6202 AR=$ac_ct_AR
6203 fi
df7b86aa 6204else
f2c621e4
AS
6205 AR="$ac_cv_prog_AR"
6206fi
df7b86aa 6207
f2c621e4 6208test -z "$AR" && AR=ar
a4966cd9
L
6209if test -n "$plugin_option"; then
6210 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6211 touch conftest.c
6212 $AR $plugin_option rc conftest.a conftest.c
6213 if test "$?" != 0; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6215$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6216 else
6217 AR="$AR $plugin_option"
6218 fi
6219 rm -f conftest.*
a4966cd9
L
6220 fi
6221fi
f2c621e4 6222test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6223
df7b86aa 6224
df7b86aa 6225
df7b86aa 6226
df7b86aa 6227
d7040cdb
SE
6228
6229
6230
6231
6232
6233
d45dc31f
SE
6234if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6239if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6240 $as_echo_n "(cached) " >&6
d45dc31f
SE
6241else
6242 if test -n "$STRIP"; then
6243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
42ecbf5e 6247do
d45dc31f
SE
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
81ecdfbb 6250 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6252 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6254 break 2
6255 fi
6256done
81ecdfbb
RW
6257 done
6258IFS=$as_save_IFS
d45dc31f
SE
6259
6260fi
6261fi
6262STRIP=$ac_cv_prog_STRIP
6263if test -n "$STRIP"; then
81ecdfbb
RW
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6265$as_echo "$STRIP" >&6; }
252b5132 6266else
81ecdfbb
RW
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
d45dc31f 6269fi
42ecbf5e 6270
81ecdfbb 6271
252b5132 6272fi
d45dc31f
SE
6273if test -z "$ac_cv_prog_STRIP"; then
6274 ac_ct_STRIP=$STRIP
6275 # Extract the first word of "strip", so it can be a program name with args.
6276set dummy strip; ac_word=$2
81ecdfbb
RW
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6279if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6280 $as_echo_n "(cached) " >&6
d45dc31f
SE
6281else
6282 if test -n "$ac_ct_STRIP"; then
6283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
81ecdfbb 6290 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6292 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6294 break 2
6295 fi
6296done
81ecdfbb
RW
6297 done
6298IFS=$as_save_IFS
42ecbf5e 6299
d45dc31f
SE
6300fi
6301fi
6302ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6303if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6305$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6306else
81ecdfbb
RW
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
252b5132 6309fi
e5a52504 6310
81ecdfbb
RW
6311 if test "x$ac_ct_STRIP" = x; then
6312 STRIP=":"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320 STRIP=$ac_ct_STRIP
6321 fi
d45dc31f
SE
6322else
6323 STRIP="$ac_cv_prog_STRIP"
6324fi
e5a52504 6325
d7040cdb 6326test -z "$STRIP" && STRIP=:
d45dc31f 6327
d45dc31f
SE
6328
6329
d45dc31f 6330
d45dc31f
SE
6331
6332
d7040cdb
SE
6333if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6335set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6338if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6339 $as_echo_n "(cached) " >&6
d45dc31f 6340else
d7040cdb
SE
6341 if test -n "$RANLIB"; then
6342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
81ecdfbb 6349 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6353 break 2
d45dc31f 6354 fi
d7040cdb 6355done
81ecdfbb
RW
6356 done
6357IFS=$as_save_IFS
d45dc31f 6358
d7040cdb
SE
6359fi
6360fi
6361RANLIB=$ac_cv_prog_RANLIB
6362if test -n "$RANLIB"; then
81ecdfbb
RW
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6364$as_echo "$RANLIB" >&6; }
d7040cdb 6365else
81ecdfbb
RW
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
d7040cdb 6368fi
d45dc31f 6369
81ecdfbb 6370
d7040cdb
SE
6371fi
6372if test -z "$ac_cv_prog_RANLIB"; then
6373 ac_ct_RANLIB=$RANLIB
6374 # Extract the first word of "ranlib", so it can be a program name with args.
6375set dummy ranlib; ac_word=$2
81ecdfbb
RW
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6378if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6379 $as_echo_n "(cached) " >&6
d7040cdb
SE
6380else
6381 if test -n "$ac_ct_RANLIB"; then
6382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
81ecdfbb 6389 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6391 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6393 break 2
d45dc31f 6394 fi
d7040cdb 6395done
81ecdfbb
RW
6396 done
6397IFS=$as_save_IFS
d45dc31f 6398
d7040cdb
SE
6399fi
6400fi
6401ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6402if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6404$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6405else
81ecdfbb
RW
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407$as_echo "no" >&6; }
d7040cdb 6408fi
252b5132 6409
81ecdfbb
RW
6410 if test "x$ac_ct_RANLIB" = x; then
6411 RANLIB=":"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414yes:)
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417ac_tool_warned=yes ;;
6418esac
6419 RANLIB=$ac_ct_RANLIB
6420 fi
d7040cdb
SE
6421else
6422 RANLIB="$ac_cv_prog_RANLIB"
6423fi
d45dc31f 6424
d7040cdb 6425test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6426if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6427 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6428 RANLIB="$RANLIB $plugin_option"
6429 fi
6430fi
d45dc31f 6431
d45dc31f 6432
d45dc31f 6433
42ecbf5e 6434
e5a52504 6435
d7040cdb
SE
6436
6437# Determine commands to create old-style static archives.
718a6fd8 6438old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6439old_postinstall_cmds='chmod 644 $oldlib'
6440old_postuninstall_cmds=
6441
6442if test -n "$RANLIB"; then
6443 case $host_os in
6444 openbsd*)
6445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6446 ;;
6447 *)
6448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6449 ;;
6450 esac
6451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6452fi
d45dc31f 6453
3725885a
RW
6454case $host_os in
6455 darwin*)
6456 lock_old_archive_extraction=yes ;;
6457 *)
6458 lock_old_archive_extraction=no ;;
6459esac
6460
6461
6462
6463
6464
6465
d45dc31f 6466
d45dc31f
SE
6467
6468
d15b04bd 6469
3e321448 6470
d45dc31f 6471
d45dc31f 6472
d45dc31f
SE
6473
6474
d45dc31f 6475
d45dc31f 6476
d45dc31f
SE
6477
6478
6479
6480
6481
6482
6483
d45dc31f 6484
d45dc31f 6485
d45dc31f 6486
d45dc31f 6487
d45dc31f 6488
d45dc31f 6489
d45dc31f 6490
d45dc31f 6491
3e321448
L
6492
6493
d45dc31f
SE
6494
6495
d45dc31f
SE
6496
6497
d45dc31f 6498
d7040cdb
SE
6499# If no C compiler was specified, use CC.
6500LTCC=${LTCC-"$CC"}
42ecbf5e 6501
d7040cdb
SE
6502# If no C compiler flags were specified, use CFLAGS.
6503LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6504
d7040cdb
SE
6505# Allow CC to be a program name with arguments.
6506compiler=$CC
d15b04bd 6507
d7040cdb
SE
6508
6509# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6511$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6512if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6513 $as_echo_n "(cached) " >&6
d15b04bd 6514else
d7040cdb
SE
6515
6516# These are sane defaults that work on at least a few old systems.
6517# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6518
6519# Character class describing NM global symbol codes.
6520symcode='[BCDEGRST]'
6521
6522# Regexp to match symbols that can be accessed directly from C.
6523sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6524
6525# Define system-specific variables.
6526case $host_os in
6527aix*)
6528 symcode='[BCDT]'
6529 ;;
718a6fd8 6530cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6531 symcode='[ABCDGISTW]'
6532 ;;
6533hpux*)
6534 if test "$host_cpu" = ia64; then
6535 symcode='[ABCDEGRST]'
42ecbf5e 6536 fi
d7040cdb
SE
6537 ;;
6538irix* | nonstopux*)
6539 symcode='[BCDEGRST]'
6540 ;;
6541osf*)
6542 symcode='[BCDEGQRST]'
6543 ;;
6544solaris*)
b9004024 6545 symcode='[BCDRT]'
d7040cdb
SE
6546 ;;
6547sco3.2v5*)
6548 symcode='[DT]'
6549 ;;
6550sysv4.2uw2*)
6551 symcode='[DT]'
6552 ;;
6553sysv5* | sco5v6* | unixware* | OpenUNIX*)
6554 symcode='[ABDT]'
6555 ;;
6556sysv4)
6557 symcode='[DFNSTU]'
6558 ;;
6559esac
d15b04bd 6560
d7040cdb
SE
6561# If we're using GNU nm, then use its standard symbol codes.
6562case `$NM -V 2>&1` in
6563*GNU* | *'with BFD'*)
6564 symcode='[ABCDGIRSTW]' ;;
6565esac
e5a52504 6566
d7040cdb
SE
6567# Transform an extracted symbol line into a proper C declaration.
6568# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6569# so use this general approach.
6570lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6571
7357c5b6 6572# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6573lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6574lt_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'"
d7040cdb 6575
7357c5b6
AM
6576# Handle CRLF in mingw tool chain
6577opt_cr=
6578case $build_os in
6579mingw*)
6580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6581 ;;
6582esac
d7040cdb 6583
7357c5b6
AM
6584# Try without a prefix underscore, then with it.
6585for ac_symprfx in "" "_"; do
d7040cdb 6586
7357c5b6
AM
6587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6588 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6589
7357c5b6
AM
6590 # Write the raw and C identifiers.
6591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6592 # Fake it for dumpbin and say T for any non-static function
6593 # and D for any global variable.
6594 # Also find C++ and __fastcall symbols from MSVC++,
6595 # which start with @ or ?.
6596 lt_cv_sys_global_symbol_pipe="$AWK '"\
6597" {last_section=section; section=\$ 3};"\
6598" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6599" \$ 0!~/External *\|/{next};"\
6600" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6601" {if(hide[section]) next};"\
6602" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6603" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6604" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6605" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6606" ' prfx=^$ac_symprfx"
6607 else
6608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6609 fi
6610
6611 # Check to see that the pipe works correctly.
6612 pipe_works=no
6613
6614 rm -f conftest*
6615 cat > conftest.$ac_ext <<_LT_EOF
6616#ifdef __cplusplus
6617extern "C" {
6618#endif
6619char nm_test_var;
6620void nm_test_func(void);
6621void nm_test_func(void){}
6622#ifdef __cplusplus
d7040cdb 6623}
7357c5b6
AM
6624#endif
6625int main(){nm_test_var='a';nm_test_func();return(0);}
6626_LT_EOF
6627
81ecdfbb 6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6629 (eval $ac_compile) 2>&5
42ecbf5e 6630 ac_status=$?
81ecdfbb
RW
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }; then
7357c5b6
AM
6633 # Now try to grab the symbols.
6634 nlist=conftest.nm
3725885a
RW
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6636 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6637 ac_status=$?
81ecdfbb
RW
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6640 # Try sorting and uniquifying the output.
6641 if sort "$nlist" | uniq > "$nlist"T; then
6642 mv -f "$nlist"T "$nlist"
6643 else
6644 rm -f "$nlist"T
6645 fi
d7040cdb 6646
7357c5b6
AM
6647 # Make sure that we snagged all the symbols we need.
6648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6650 cat <<_LT_EOF > conftest.$ac_ext
6651#ifdef __cplusplus
6652extern "C" {
6653#endif
e5a52504 6654
7357c5b6
AM
6655_LT_EOF
6656 # Now generate the symbol file.
6657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6658
7357c5b6 6659 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6660
7357c5b6 6661/* The mapping between symbol names and symbols. */
f2c621e4 6662const struct {
7357c5b6
AM
6663 const char *name;
6664 void *address;
6665}
6666lt__PROGRAM__LTX_preloaded_symbols[] =
6667{
6668 { "@PROGRAM@", (void *) 0 },
6669_LT_EOF
6670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6671 cat <<\_LT_EOF >> conftest.$ac_ext
6672 {0, (void *) 0}
6673};
d7040cdb 6674
7357c5b6
AM
6675/* This works around a problem in FreeBSD linker */
6676#ifdef FREEBSD_WORKAROUND
6677static const void *lt_preloaded_setup() {
6678 return lt__PROGRAM__LTX_preloaded_symbols;
6679}
d7040cdb
SE
6680#endif
6681
7357c5b6 6682#ifdef __cplusplus
d7040cdb 6683}
7357c5b6
AM
6684#endif
6685_LT_EOF
6686 # Now try linking the two files.
6687 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6688 lt_save_LIBS="$LIBS"
6689 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6690 LIBS="conftstm.$ac_objext"
6691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6693 (eval $ac_link) 2>&5
6694 ac_status=$?
81ecdfbb
RW
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6697 pipe_works=yes
6698 fi
f2c621e4
AS
6699 LIBS="$lt_save_LIBS"
6700 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6701 else
6702 echo "cannot find nm_test_func in $nlist" >&5
6703 fi
6704 else
6705 echo "cannot find nm_test_var in $nlist" >&5
6706 fi
6707 else
6708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6709 fi
6710 else
6711 echo "$progname: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6713 fi
718a6fd8 6714 rm -rf conftest* conftst*
7357c5b6
AM
6715
6716 # Do not use the global_symbol_pipe unless it works.
6717 if test "$pipe_works" = yes; then
6718 break
6719 else
6720 lt_cv_sys_global_symbol_pipe=
6721 fi
6722done
d7040cdb 6723
d7040cdb 6724fi
7357c5b6
AM
6725
6726if test -z "$lt_cv_sys_global_symbol_pipe"; then
6727 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6728fi
7357c5b6 6729if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6731$as_echo "failed" >&6; }
7357c5b6 6732else
81ecdfbb
RW
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6734$as_echo "ok" >&6; }
d7040cdb 6735fi
20e95c23 6736
20e95c23 6737
20e95c23 6738
20e95c23 6739
20e95c23 6740
20e95c23 6741
20e95c23
DJ
6742
6743
7357c5b6
AM
6744
6745
6746
718a6fd8
SE
6747
6748
6749
6750
6751
7357c5b6 6752
df7b86aa
NC
6753
6754
6755
6756
7357c5b6 6757
81ecdfbb
RW
6758# Check whether --enable-libtool-lock was given.
6759if test "${enable_libtool_lock+set}" = set; then :
6760 enableval=$enable_libtool_lock;
6761fi
7357c5b6 6762
7357c5b6
AM
6763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6764
6765# Some flags need to be propagated to the compiler or linker for good
6766# libtool support.
6767case $host in
6768ia64-*-hpux*)
6769 # Find out which ABI we are using.
6770 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6772 (eval $ac_compile) 2>&5
6773 ac_status=$?
81ecdfbb
RW
6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775 test $ac_status = 0; }; then
7357c5b6
AM
6776 case `/usr/bin/file conftest.$ac_objext` in
6777 *ELF-32*)
6778 HPUX_IA64_MODE="32"
6779 ;;
6780 *ELF-64*)
6781 HPUX_IA64_MODE="64"
6782 ;;
6783 esac
6784 fi
6785 rm -rf conftest*
6786 ;;
6787*-*-irix6*)
6788 # Find out which ABI we are using.
3725885a 6789 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
81ecdfbb
RW
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
7357c5b6
AM
6795 if test "$lt_cv_prog_gnu_ld" = yes; then
6796 case `/usr/bin/file conftest.$ac_objext` in
6797 *32-bit*)
6798 LD="${LD-ld} -melf32bsmip"
6799 ;;
6800 *N32*)
6801 LD="${LD-ld} -melf32bmipn32"
6802 ;;
6803 *64-bit*)
6804 LD="${LD-ld} -melf64bmip"
6805 ;;
6806 esac
6807 else
6808 case `/usr/bin/file conftest.$ac_objext` in
6809 *32-bit*)
6810 LD="${LD-ld} -32"
6811 ;;
6812 *N32*)
6813 LD="${LD-ld} -n32"
6814 ;;
6815 *64-bit*)
6816 LD="${LD-ld} -64"
6817 ;;
6818 esac
6819 fi
6820 fi
6821 rm -rf conftest*
6822 ;;
6823
cc9afea3 6824x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6825s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6826 # Find out which ABI we are using.
6827 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6829 (eval $ac_compile) 2>&5
6830 ac_status=$?
81ecdfbb
RW
6831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832 test $ac_status = 0; }; then
7357c5b6
AM
6833 case `/usr/bin/file conftest.o` in
6834 *32-bit*)
6835 case $host in
6836 x86_64-*kfreebsd*-gnu)
6837 LD="${LD-ld} -m elf_i386_fbsd"
6838 ;;
6839 x86_64-*linux*)
6d2920c8
L
6840 case `/usr/bin/file conftest.o` in
6841 *x86-64*)
6842 LD="${LD-ld} -m elf32_x86_64"
6843 ;;
6844 *)
6845 LD="${LD-ld} -m elf_i386"
6846 ;;
6847 esac
7357c5b6 6848 ;;
cc9afea3
AM
6849 powerpc64le-*linux*)
6850 LD="${LD-ld} -m elf32lppclinux"
6851 ;;
6852 powerpc64-*linux*)
7357c5b6
AM
6853 LD="${LD-ld} -m elf32ppclinux"
6854 ;;
6855 s390x-*linux*)
6856 LD="${LD-ld} -m elf_s390"
6857 ;;
6858 sparc64-*linux*)
6859 LD="${LD-ld} -m elf32_sparc"
6860 ;;
6861 esac
6862 ;;
6863 *64-bit*)
6864 case $host in
6865 x86_64-*kfreebsd*-gnu)
6866 LD="${LD-ld} -m elf_x86_64_fbsd"
6867 ;;
6868 x86_64-*linux*)
6869 LD="${LD-ld} -m elf_x86_64"
6870 ;;
cc9afea3
AM
6871 powerpcle-*linux*)
6872 LD="${LD-ld} -m elf64lppc"
6873 ;;
6874 powerpc-*linux*)
7357c5b6
AM
6875 LD="${LD-ld} -m elf64ppc"
6876 ;;
6877 s390*-*linux*|s390*-*tpf*)
6878 LD="${LD-ld} -m elf64_s390"
6879 ;;
6880 sparc*-*linux*)
6881 LD="${LD-ld} -m elf64_sparc"
6882 ;;
6883 esac
6884 ;;
6885 esac
6886 fi
6887 rm -rf conftest*
6888 ;;
6889
6890*-*-sco3.2v5*)
6891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6892 SAVE_CFLAGS="$CFLAGS"
6893 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6895$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6896if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6897 $as_echo_n "(cached) " >&6
d7040cdb 6898else
7357c5b6
AM
6899 ac_ext=c
6900ac_cpp='$CPP $CPPFLAGS'
6901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903ac_compiler_gnu=$ac_cv_c_compiler_gnu
6904
81ecdfbb 6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 6906/* end confdefs.h. */
20e95c23 6907
7357c5b6
AM
6908int
6909main ()
6910{
6911
6912 ;
6913 return 0;
6914}
d7040cdb 6915_ACEOF
81ecdfbb 6916if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6917 lt_cv_cc_needs_belf=yes
d15b04bd 6918else
81ecdfbb 6919 lt_cv_cc_needs_belf=no
d7040cdb 6920fi
81ecdfbb
RW
6921rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6923 ac_ext=c
6924ac_cpp='$CPP $CPPFLAGS'
6925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6928
718a6fd8 6929fi
81ecdfbb
RW
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6931$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
6932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6934 CFLAGS="$SAVE_CFLAGS"
6935 fi
6936 ;;
6937sparc*-*solaris*)
6938 # Find out which ABI we are using.
6939 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
6941 (eval $ac_compile) 2>&5
6942 ac_status=$?
81ecdfbb
RW
6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; }; then
718a6fd8
SE
6945 case `/usr/bin/file conftest.o` in
6946 *64-bit*)
6947 case $lt_cv_prog_gnu_ld in
6948 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6949 *)
6950 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6951 LD="${LD-ld} -64"
6952 fi
6953 ;;
6954 esac
6955 ;;
6956 esac
6957 fi
df7b86aa
NC
6958 rm -rf conftest*
6959 ;;
6960esac
6961
6962need_locks="$enable_libtool_lock"
6963
718a6fd8
SE
6964
6965 case $host_os in
6966 rhapsody* | darwin*)
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6972if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6973 $as_echo_n "(cached) " >&6
718a6fd8
SE
6974else
6975 if test -n "$DSYMUTIL"; then
6976 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
81ecdfbb 6983 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6985 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6987 break 2
6988 fi
6989done
81ecdfbb
RW
6990 done
6991IFS=$as_save_IFS
718a6fd8
SE
6992
6993fi
6994fi
6995DSYMUTIL=$ac_cv_prog_DSYMUTIL
6996if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6998$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6999else
81ecdfbb
RW
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
718a6fd8
SE
7002fi
7003
81ecdfbb 7004
718a6fd8
SE
7005fi
7006if test -z "$ac_cv_prog_DSYMUTIL"; then
7007 ac_ct_DSYMUTIL=$DSYMUTIL
7008 # Extract the first word of "dsymutil", so it can be a program name with args.
7009set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7012if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7013 $as_echo_n "(cached) " >&6
718a6fd8
SE
7014else
7015 if test -n "$ac_ct_DSYMUTIL"; then
7016 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
81ecdfbb 7023 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7025 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7027 break 2
7028 fi
7029done
81ecdfbb
RW
7030 done
7031IFS=$as_save_IFS
718a6fd8 7032
718a6fd8
SE
7033fi
7034fi
7035ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7036if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7038$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7039else
81ecdfbb
RW
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
718a6fd8
SE
7042fi
7043
81ecdfbb
RW
7044 if test "x$ac_ct_DSYMUTIL" = x; then
7045 DSYMUTIL=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053 DSYMUTIL=$ac_ct_DSYMUTIL
7054 fi
718a6fd8
SE
7055else
7056 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7057fi
7058
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7061set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7064if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7065 $as_echo_n "(cached) " >&6
718a6fd8
SE
7066else
7067 if test -n "$NMEDIT"; then
7068 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
81ecdfbb 7075 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7077 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7079 break 2
7080 fi
7081done
81ecdfbb
RW
7082 done
7083IFS=$as_save_IFS
718a6fd8
SE
7084
7085fi
7086fi
7087NMEDIT=$ac_cv_prog_NMEDIT
7088if test -n "$NMEDIT"; then
81ecdfbb
RW
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7090$as_echo "$NMEDIT" >&6; }
718a6fd8 7091else
81ecdfbb
RW
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
718a6fd8
SE
7094fi
7095
81ecdfbb 7096
718a6fd8
SE
7097fi
7098if test -z "$ac_cv_prog_NMEDIT"; then
7099 ac_ct_NMEDIT=$NMEDIT
7100 # Extract the first word of "nmedit", so it can be a program name with args.
7101set dummy nmedit; ac_word=$2
81ecdfbb
RW
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7104if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7105 $as_echo_n "(cached) " >&6
718a6fd8
SE
7106else
7107 if test -n "$ac_ct_NMEDIT"; then
7108 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
81ecdfbb 7115 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7117 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7119 break 2
7120 fi
7121done
81ecdfbb
RW
7122 done
7123IFS=$as_save_IFS
718a6fd8 7124
718a6fd8
SE
7125fi
7126fi
7127ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7128if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7130$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7131else
81ecdfbb
RW
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
718a6fd8
SE
7134fi
7135
81ecdfbb
RW
7136 if test "x$ac_ct_NMEDIT" = x; then
7137 NMEDIT=":"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140yes:)
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143ac_tool_warned=yes ;;
7144esac
7145 NMEDIT=$ac_ct_NMEDIT
7146 fi
718a6fd8
SE
7147else
7148 NMEDIT="$ac_cv_prog_NMEDIT"
7149fi
7150
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7156if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7157 $as_echo_n "(cached) " >&6
718a6fd8
SE
7158else
7159 if test -n "$LIPO"; then
7160 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
81ecdfbb 7167 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7169 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7171 break 2
7172 fi
7173done
81ecdfbb
RW
7174 done
7175IFS=$as_save_IFS
718a6fd8
SE
7176
7177fi
7178fi
7179LIPO=$ac_cv_prog_LIPO
7180if test -n "$LIPO"; then
81ecdfbb
RW
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7182$as_echo "$LIPO" >&6; }
718a6fd8 7183else
81ecdfbb
RW
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
718a6fd8
SE
7186fi
7187
81ecdfbb 7188
718a6fd8
SE
7189fi
7190if test -z "$ac_cv_prog_LIPO"; then
7191 ac_ct_LIPO=$LIPO
7192 # Extract the first word of "lipo", so it can be a program name with args.
7193set dummy lipo; ac_word=$2
81ecdfbb
RW
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7196if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7197 $as_echo_n "(cached) " >&6
718a6fd8
SE
7198else
7199 if test -n "$ac_ct_LIPO"; then
7200 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
81ecdfbb 7207 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7209 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7211 break 2
7212 fi
7213done
81ecdfbb
RW
7214 done
7215IFS=$as_save_IFS
718a6fd8 7216
718a6fd8
SE
7217fi
7218fi
7219ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7220if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7222$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7223else
81ecdfbb
RW
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
718a6fd8
SE
7226fi
7227
81ecdfbb
RW
7228 if test "x$ac_ct_LIPO" = x; then
7229 LIPO=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232yes:)
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235ac_tool_warned=yes ;;
7236esac
7237 LIPO=$ac_ct_LIPO
7238 fi
718a6fd8
SE
7239else
7240 LIPO="$ac_cv_prog_LIPO"
7241fi
7242
7243 if test -n "$ac_tool_prefix"; then
7244 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7245set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7248if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7249 $as_echo_n "(cached) " >&6
718a6fd8
SE
7250else
7251 if test -n "$OTOOL"; then
7252 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
81ecdfbb 7259 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7261 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7263 break 2
7264 fi
7265done
81ecdfbb
RW
7266 done
7267IFS=$as_save_IFS
718a6fd8
SE
7268
7269fi
7270fi
7271OTOOL=$ac_cv_prog_OTOOL
7272if test -n "$OTOOL"; then
81ecdfbb
RW
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7274$as_echo "$OTOOL" >&6; }
718a6fd8 7275else
81ecdfbb
RW
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
718a6fd8
SE
7278fi
7279
81ecdfbb 7280
718a6fd8
SE
7281fi
7282if test -z "$ac_cv_prog_OTOOL"; then
7283 ac_ct_OTOOL=$OTOOL
7284 # Extract the first word of "otool", so it can be a program name with args.
7285set dummy otool; ac_word=$2
81ecdfbb
RW
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7288if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7289 $as_echo_n "(cached) " >&6
718a6fd8
SE
7290else
7291 if test -n "$ac_ct_OTOOL"; then
7292 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
81ecdfbb 7299 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7301 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7303 break 2
7304 fi
7305done
81ecdfbb
RW
7306 done
7307IFS=$as_save_IFS
718a6fd8 7308
718a6fd8
SE
7309fi
7310fi
7311ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7312if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7314$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7315else
81ecdfbb
RW
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
718a6fd8
SE
7318fi
7319
81ecdfbb
RW
7320 if test "x$ac_ct_OTOOL" = x; then
7321 OTOOL=":"
7322 else
7323 case $cross_compiling:$ac_tool_warned in
7324yes:)
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329 OTOOL=$ac_ct_OTOOL
7330 fi
718a6fd8
SE
7331else
7332 OTOOL="$ac_cv_prog_OTOOL"
7333fi
7334
7335 if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7337set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7340if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7341 $as_echo_n "(cached) " >&6
718a6fd8
SE
7342else
7343 if test -n "$OTOOL64"; then
7344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
81ecdfbb 7351 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7353 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7355 break 2
7356 fi
7357done
81ecdfbb
RW
7358 done
7359IFS=$as_save_IFS
718a6fd8
SE
7360
7361fi
7362fi
7363OTOOL64=$ac_cv_prog_OTOOL64
7364if test -n "$OTOOL64"; then
81ecdfbb
RW
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7366$as_echo "$OTOOL64" >&6; }
718a6fd8 7367else
81ecdfbb
RW
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
718a6fd8
SE
7370fi
7371
81ecdfbb 7372
718a6fd8
SE
7373fi
7374if test -z "$ac_cv_prog_OTOOL64"; then
7375 ac_ct_OTOOL64=$OTOOL64
7376 # Extract the first word of "otool64", so it can be a program name with args.
7377set dummy otool64; ac_word=$2
81ecdfbb
RW
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7380if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7381 $as_echo_n "(cached) " >&6
718a6fd8
SE
7382else
7383 if test -n "$ac_ct_OTOOL64"; then
7384 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7385else
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
81ecdfbb 7391 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7393 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7395 break 2
7396 fi
7397done
81ecdfbb
RW
7398 done
7399IFS=$as_save_IFS
718a6fd8 7400
718a6fd8
SE
7401fi
7402fi
7403ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7404if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7406$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7407else
81ecdfbb
RW
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
718a6fd8
SE
7410fi
7411
81ecdfbb
RW
7412 if test "x$ac_ct_OTOOL64" = x; then
7413 OTOOL64=":"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416yes:)
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419ac_tool_warned=yes ;;
7420esac
7421 OTOOL64=$ac_ct_OTOOL64
7422 fi
718a6fd8
SE
7423else
7424 OTOOL64="$ac_cv_prog_OTOOL64"
7425fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
81ecdfbb
RW
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7454$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7455if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7456 $as_echo_n "(cached) " >&6
718a6fd8
SE
7457else
7458 lt_cv_apple_cc_single_mod=no
7459 if test -z "${LT_MULTI_MODULE}"; then
7460 # By default we will add the -single_module flag. You can override
7461 # by either setting the environment variable LT_MULTI_MODULE
7462 # non-empty at configure time, or by adding -multi_module to the
7463 # link flags.
7464 rm -rf libconftest.dylib*
7465 echo "int foo(void){return 1;}" > conftest.c
7466 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7467-dynamiclib -Wl,-single_module conftest.c" >&5
7468 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7469 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7470 _lt_result=$?
7471 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7472 lt_cv_apple_cc_single_mod=yes
7473 else
7474 cat conftest.err >&5
7475 fi
7476 rm -rf libconftest.dylib*
7477 rm -f conftest.*
7478 fi
7479fi
81ecdfbb
RW
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7481$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7483$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7484if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7485 $as_echo_n "(cached) " >&6
718a6fd8
SE
7486else
7487 lt_cv_ld_exported_symbols_list=no
7488 save_LDFLAGS=$LDFLAGS
7489 echo "_main" > conftest.sym
7490 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7492/* end confdefs.h. */
7493
7494int
7495main ()
7496{
7497
7498 ;
7499 return 0;
7500}
7501_ACEOF
81ecdfbb 7502if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7503 lt_cv_ld_exported_symbols_list=yes
7504else
81ecdfbb 7505 lt_cv_ld_exported_symbols_list=no
718a6fd8 7506fi
81ecdfbb
RW
7507rm -f core conftest.err conftest.$ac_objext \
7508 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7509 LDFLAGS="$save_LDFLAGS"
7510
7511fi
81ecdfbb
RW
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7513$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7515$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7516if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7517 $as_echo_n "(cached) " >&6
7518else
7519 lt_cv_ld_force_load=no
7520 cat > conftest.c << _LT_EOF
7521int forced_loaded() { return 2;}
7522_LT_EOF
7523 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7524 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7525 echo "$AR cru libconftest.a conftest.o" >&5
7526 $AR cru libconftest.a conftest.o 2>&5
7527 cat > conftest.c << _LT_EOF
7528int main() { return 0;}
7529_LT_EOF
7530 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7531 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7532 _lt_result=$?
7533 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7534 lt_cv_ld_force_load=yes
7535 else
7536 cat conftest.err >&5
7537 fi
7538 rm -f conftest.err libconftest.a conftest conftest.c
7539 rm -rf conftest.dSYM
7540
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7543$as_echo "$lt_cv_ld_force_load" >&6; }
6a6859cb
AM
7544 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7545 # build without first building modern cctools / linker.
7546 case $host_cpu-$host_os in
7547 *-rhapsody* | *-darwin1.[012])
718a6fd8 7548 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6a6859cb 7549 *-darwin1.*)
718a6fd8 7550 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6a6859cb
AM
7551 *-darwin*)
7552 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7553 # deployment target is forced to an earlier version.
7554 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7555 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7556 ;;
6e733cce 7557 10.[012][,.]*)
6a6859cb
AM
7558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7559 ;;
7560 *)
7561 ;;
7562 esac
718a6fd8
SE
7563 ;;
7564 esac
7565 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7566 _lt_dar_single_mod='$single_module'
7567 fi
7568 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7569 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7570 else
7571 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7572 fi
3725885a 7573 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7574 _lt_dsymutil='~$DSYMUTIL $lib || :'
7575 else
7576 _lt_dsymutil=
7577 fi
7578 ;;
7579 esac
7580
718a6fd8 7581for ac_header in dlfcn.h
81ecdfbb
RW
7582do :
7583 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7584"
d0ac1c44 7585if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7586 cat >>confdefs.h <<_ACEOF
81ecdfbb 7587#define HAVE_DLFCN_H 1
718a6fd8
SE
7588_ACEOF
7589
7590fi
7591
7592done
7593
7594
7595
3725885a
RW
7596
7597
718a6fd8
SE
7598# Set options
7599
7600
7601
7602 enable_dlopen=no
7603
7604
7605 enable_win32_dll=no
7606
7607
81ecdfbb
RW
7608 # Check whether --enable-shared was given.
7609if test "${enable_shared+set}" = set; then :
7610 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7611 case $enableval in
7612 yes) enable_shared=yes ;;
7613 no) enable_shared=no ;;
7614 *)
7615 enable_shared=no
7616 # Look at the argument we got. We use all the common list separators.
7617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7618 for pkg in $enableval; do
7619 IFS="$lt_save_ifs"
7620 if test "X$pkg" = "X$p"; then
7621 enable_shared=yes
7622 fi
7623 done
7624 IFS="$lt_save_ifs"
7625 ;;
7626 esac
7627else
7628 enable_shared=yes
81ecdfbb 7629fi
718a6fd8
SE
7630
7631
7632
7633
7634
7635
7636
7637
81ecdfbb
RW
7638
7639 # Check whether --enable-static was given.
7640if test "${enable_static+set}" = set; then :
7641 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7642 case $enableval in
7643 yes) enable_static=yes ;;
7644 no) enable_static=no ;;
7645 *)
7646 enable_static=no
7647 # Look at the argument we got. We use all the common list separators.
7648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7649 for pkg in $enableval; do
7650 IFS="$lt_save_ifs"
7651 if test "X$pkg" = "X$p"; then
7652 enable_static=yes
7653 fi
7654 done
7655 IFS="$lt_save_ifs"
7656 ;;
7657 esac
7658else
7659 enable_static=yes
81ecdfbb 7660fi
718a6fd8
SE
7661
7662
7663
7664
7665
7666
7667
7668
7669
81ecdfbb
RW
7670
7671# Check whether --with-pic was given.
7672if test "${with_pic+set}" = set; then :
7673 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7674else
7675 pic_mode=default
81ecdfbb
RW
7676fi
7677
718a6fd8
SE
7678
7679test -z "$pic_mode" && pic_mode=default
7680
7681
7682
7683
7684
7685
7686
81ecdfbb
RW
7687 # Check whether --enable-fast-install was given.
7688if test "${enable_fast_install+set}" = set; then :
7689 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7690 case $enableval in
7691 yes) enable_fast_install=yes ;;
7692 no) enable_fast_install=no ;;
7693 *)
7694 enable_fast_install=no
7695 # Look at the argument we got. We use all the common list separators.
7696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7697 for pkg in $enableval; do
7698 IFS="$lt_save_ifs"
7699 if test "X$pkg" = "X$p"; then
7700 enable_fast_install=yes
7701 fi
7702 done
7703 IFS="$lt_save_ifs"
7357c5b6
AM
7704 ;;
7705 esac
718a6fd8
SE
7706else
7707 enable_fast_install=yes
81ecdfbb
RW
7708fi
7709
20e95c23 7710
20e95c23
DJ
7711
7712
42ecbf5e 7713
d7040cdb 7714
20e95c23 7715
d7040cdb 7716
d7040cdb
SE
7717
7718
7719
7720# This can be used to rebuild libtool when needed
7721LIBTOOL_DEPS="$ltmain"
7722
7723# Always use our own libtool.
7724LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
3725885a 7748
d7040cdb
SE
7749
7750
7751test -z "$LN_S" && LN_S="ln -s"
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766if test -n "${ZSH_VERSION+set}" ; then
7767 setopt NO_GLOB_SUBST
7768fi
7769
81ecdfbb
RW
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7771$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7772if ${lt_cv_objdir+:} false; then :
81ecdfbb 7773 $as_echo_n "(cached) " >&6
20e95c23 7774else
d7040cdb
SE
7775 rm -f .libs 2>/dev/null
7776mkdir .libs 2>/dev/null
7777if test -d .libs; then
7778 lt_cv_objdir=.libs
42ecbf5e 7779else
d7040cdb
SE
7780 # MS-DOS does not allow filenames that begin with a dot.
7781 lt_cv_objdir=_libs
7782fi
7783rmdir .libs 2>/dev/null
42ecbf5e 7784fi
81ecdfbb
RW
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7786$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7787objdir=$lt_cv_objdir
42ecbf5e 7788
d7040cdb
SE
7789
7790
7791
7792
7793cat >>confdefs.h <<_ACEOF
7794#define LT_OBJDIR "$lt_cv_objdir/"
7795_ACEOF
7796
7797
7798
7799
d7040cdb
SE
7800case $host_os in
7801aix3*)
7802 # AIX sometimes has problems with the GCC collect2 program. For some
7803 # reason, if we set the COLLECT_NAMES environment variable, the problems
7804 # vanish in a puff of smoke.
7805 if test "X${COLLECT_NAMES+set}" != Xset; then
7806 COLLECT_NAMES=
7807 export COLLECT_NAMES
7808 fi
7809 ;;
7810esac
7811
d7040cdb
SE
7812# Global variables:
7813ofile=libtool
7814can_build_shared=yes
7815
7816# All known linkers require a `.a' archive for static linking (except MSVC,
7817# which needs '.lib').
7818libext=a
7819
7820with_gnu_ld="$lt_cv_prog_gnu_ld"
7821
7822old_CC="$CC"
7823old_CFLAGS="$CFLAGS"
7824
7825# Set sane defaults for various variables
7826test -z "$CC" && CC=cc
7827test -z "$LTCC" && LTCC=$CC
7828test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7829test -z "$LD" && LD=ld
7830test -z "$ac_objext" && ac_objext=o
7831
7832for cc_temp in $compiler""; do
7833 case $cc_temp in
7834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7836 \-*) ;;
7837 *) break;;
7838 esac
7839done
3725885a 7840cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7841
7842
7843# Only perform the check for file, if the check method requires it
7844test -z "$MAGIC_CMD" && MAGIC_CMD=file
7845case $deplibs_check_method in
7846file_magic*)
7847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7849$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7850if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7851 $as_echo_n "(cached) " >&6
42ecbf5e 7852else
d7040cdb
SE
7853 case $MAGIC_CMD in
7854[\\/*] | ?:[\\/]*)
7855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7856 ;;
d7040cdb
SE
7857*)
7858 lt_save_MAGIC_CMD="$MAGIC_CMD"
7859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861 for ac_dir in $ac_dummy; do
7862 IFS="$lt_save_ifs"
7863 test -z "$ac_dir" && ac_dir=.
7864 if test -f $ac_dir/${ac_tool_prefix}file; then
7865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7866 if test -n "$file_magic_test_file"; then
7867 case $deplibs_check_method in
7868 "file_magic "*)
7869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872 $EGREP "$file_magic_regex" > /dev/null; then
7873 :
7874 else
7875 cat <<_LT_EOF 1>&2
42ecbf5e 7876
d7040cdb
SE
7877*** Warning: the command libtool uses to detect shared libraries,
7878*** $file_magic_cmd, produces output that libtool cannot recognize.
7879*** The result is that libtool may fail to recognize shared libraries
7880*** as such. This will affect the creation of libtool libraries that
7881*** depend on shared libraries, but programs linked with such libtool
7882*** libraries will work regardless of this problem. Nevertheless, you
7883*** may want to report the problem to your system manager and/or to
7884*** bug-libtool@gnu.org
7885
7886_LT_EOF
7887 fi ;;
7888 esac
7889 fi
7890 break
7891 fi
7892 done
7893 IFS="$lt_save_ifs"
7894 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7895 ;;
7896esac
42ecbf5e 7897fi
20e95c23 7898
d7040cdb
SE
7899MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7902$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 7903else
81ecdfbb
RW
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
42ecbf5e
DJ
7906fi
7907
20e95c23
DJ
7908
7909
42ecbf5e 7910
20e95c23 7911
d7040cdb
SE
7912if test -z "$lt_cv_path_MAGIC_CMD"; then
7913 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7915$as_echo_n "checking for file... " >&6; }
d0ac1c44 7916if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7917 $as_echo_n "(cached) " >&6
42ecbf5e 7918else
d7040cdb
SE
7919 case $MAGIC_CMD in
7920[\\/*] | ?:[\\/]*)
7921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7922 ;;
7923*)
7924 lt_save_MAGIC_CMD="$MAGIC_CMD"
7925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7927 for ac_dir in $ac_dummy; do
7928 IFS="$lt_save_ifs"
7929 test -z "$ac_dir" && ac_dir=.
7930 if test -f $ac_dir/file; then
7931 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7932 if test -n "$file_magic_test_file"; then
7933 case $deplibs_check_method in
7934 "file_magic "*)
7935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7938 $EGREP "$file_magic_regex" > /dev/null; then
7939 :
7940 else
7941 cat <<_LT_EOF 1>&2
7942
7943*** Warning: the command libtool uses to detect shared libraries,
7944*** $file_magic_cmd, produces output that libtool cannot recognize.
7945*** The result is that libtool may fail to recognize shared libraries
7946*** as such. This will affect the creation of libtool libraries that
7947*** depend on shared libraries, but programs linked with such libtool
7948*** libraries will work regardless of this problem. Nevertheless, you
7949*** may want to report the problem to your system manager and/or to
7950*** bug-libtool@gnu.org
7951
7952_LT_EOF
7953 fi ;;
7954 esac
7955 fi
7956 break
7957 fi
7958 done
7959 IFS="$lt_save_ifs"
7960 MAGIC_CMD="$lt_save_MAGIC_CMD"
7961 ;;
20e95c23
DJ
7962esac
7963fi
d7040cdb
SE
7964
7965MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7966if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7968$as_echo "$MAGIC_CMD" >&6; }
20e95c23 7969else
81ecdfbb
RW
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
20e95c23
DJ
7972fi
7973
20e95c23 7974
42ecbf5e 7975 else
d7040cdb 7976 MAGIC_CMD=:
42ecbf5e 7977 fi
42ecbf5e 7978fi
42ecbf5e 7979
20e95c23 7980 fi
d7040cdb
SE
7981 ;;
7982esac
42ecbf5e 7983
d7040cdb 7984# Use C for the default configuration in the libtool script
42ecbf5e 7985
d7040cdb
SE
7986lt_save_CC="$CC"
7987ac_ext=c
7988ac_cpp='$CPP $CPPFLAGS'
7989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7992
42ecbf5e 7993
d7040cdb
SE
7994# Source file extension for C test sources.
7995ac_ext=c
42ecbf5e 7996
d7040cdb
SE
7997# Object file extension for compiled C test sources.
7998objext=o
7999objext=$objext
42ecbf5e 8000
d7040cdb
SE
8001# Code to be used in simple compile tests
8002lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 8003
d7040cdb
SE
8004# Code to be used in simple link tests
8005lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 8006
ac48eca1 8007
42ecbf5e 8008
42ecbf5e 8009
d5fbea21 8010
d5fbea21
DJ
8011
8012
d7040cdb
SE
8013# If no C compiler was specified, use CC.
8014LTCC=${LTCC-"$CC"}
20e95c23 8015
d7040cdb
SE
8016# If no C compiler flags were specified, use CFLAGS.
8017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 8018
d7040cdb
SE
8019# Allow CC to be a program name with arguments.
8020compiler=$CC
252b5132 8021
d7040cdb
SE
8022# Save the default compiler, since it gets overwritten when the other
8023# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8024compiler_DEFAULT=$CC
42ecbf5e 8025
d7040cdb
SE
8026# save warnings/boilerplate of simple test code
8027ac_outfile=conftest.$ac_objext
8028echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8029eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8030_lt_compiler_boilerplate=`cat conftest.err`
8031$RM conftest*
252b5132 8032
d7040cdb
SE
8033ac_outfile=conftest.$ac_objext
8034echo "$lt_simple_link_test_code" >conftest.$ac_ext
8035eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8037$RM -r conftest*
252b5132 8038
42ecbf5e 8039
f2c621e4
AS
8040## CAVEAT EMPTOR:
8041## There is no encapsulation within the following macros, do not change
8042## the running order or otherwise move them around unless you know exactly
8043## what you are doing...
d7040cdb 8044if test -n "$compiler"; then
252b5132 8045
d7040cdb 8046lt_prog_compiler_no_builtin_flag=
252b5132 8047
d7040cdb 8048if test "$GCC" = yes; then
3725885a
RW
8049 case $cc_basename in
8050 nvcc*)
8051 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8052 *)
8053 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8054 esac
d15b04bd 8055
81ecdfbb
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8057$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8058if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8059 $as_echo_n "(cached) " >&6
252b5132 8060else
d7040cdb
SE
8061 lt_cv_prog_compiler_rtti_exceptions=no
8062 ac_outfile=conftest.$ac_objext
8063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8064 lt_compiler_flag="-fno-rtti -fno-exceptions"
8065 # Insert the option either (1) after the last *FLAGS variable, or
8066 # (2) before a word containing "conftest.", or (3) at the end.
8067 # Note that $ac_compile itself does not contain backslashes and begins
8068 # with a dollar sign (not a hyphen), so the echo should work correctly.
8069 # The option is referenced via a variable to avoid confusing sed.
8070 lt_compile=`echo "$ac_compile" | $SED \
8071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8073 -e 's:$: $lt_compiler_flag:'`
3725885a 8074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8075 (eval "$lt_compile" 2>conftest.err)
8076 ac_status=$?
8077 cat conftest.err >&5
3725885a 8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8079 if (exit $ac_status) && test -s "$ac_outfile"; then
8080 # The compiler can only warn and ignore the option if not recognized
8081 # So say no if there are warnings other than the usual output.
3725885a 8082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8085 lt_cv_prog_compiler_rtti_exceptions=yes
8086 fi
8087 fi
8088 $RM conftest*
42ecbf5e 8089
252b5132 8090fi
81ecdfbb
RW
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8092$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8093
8094if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8095 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 8096else
d7040cdb 8097 :
252b5132 8098fi
252b5132
RH
8099
8100fi
d7040cdb
SE
8101
8102
8103
8104
8105
8106
8107 lt_prog_compiler_wl=
8108lt_prog_compiler_pic=
8109lt_prog_compiler_static=
8110
f2c621e4
AS
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8112$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8113
8114 if test "$GCC" = yes; then
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_static='-static'
8117
8118 case $host_os in
8119 aix*)
8120 # All AIX code is PIC.
8121 if test "$host_cpu" = ia64; then
8122 # AIX 5 now supports IA64 processor
8123 lt_prog_compiler_static='-Bstatic'
8124 fi
6c9c0a50 8125 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8126 ;;
8127
8128 amigaos*)
718a6fd8
SE
8129 case $host_cpu in
8130 powerpc)
8131 # see comment about AmigaOS4 .so support
8132 lt_prog_compiler_pic='-fPIC'
8133 ;;
8134 m68k)
8135 # FIXME: we need at least 68020 code to build shared libraries, but
8136 # adding the `-m68020' flag to GCC prevents building anything better,
8137 # like `-m68040'.
8138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8139 ;;
8140 esac
d7040cdb
SE
8141 ;;
8142
8143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8144 # PIC is the default for these OSes.
8145 ;;
8146
718a6fd8 8147 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8148 # This hack is so that the source file can tell whether it is being
8149 # built for inclusion in a dll (and should export symbols for example).
8150 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8151 # (--disable-auto-import) libraries
8152 lt_prog_compiler_pic='-DDLL_EXPORT'
8153 ;;
8154
8155 darwin* | rhapsody*)
8156 # PIC is the default on this platform
8157 # Common symbols not allowed in MH_DYLIB files
8158 lt_prog_compiler_pic='-fno-common'
8159 ;;
8160
3725885a
RW
8161 haiku*)
8162 # PIC is the default for Haiku.
8163 # The "-static" flag exists, but is broken.
8164 lt_prog_compiler_static=
8165 ;;
8166
d7040cdb 8167 hpux*)
718a6fd8
SE
8168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8170 # sets the default TLS model and affects inlining.
d7040cdb 8171 case $host_cpu in
718a6fd8 8172 hppa*64*)
d7040cdb
SE
8173 # +Z the default
8174 ;;
8175 *)
8176 lt_prog_compiler_pic='-fPIC'
8177 ;;
8178 esac
8179 ;;
8180
8181 interix[3-9]*)
8182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8183 # Instead, we relocate shared libraries at runtime.
8184 ;;
8185
8186 msdosdjgpp*)
8187 # Just because we use GCC doesn't mean we suddenly get shared libraries
8188 # on systems that don't support them.
8189 lt_prog_compiler_can_build_shared=no
8190 enable_shared=no
8191 ;;
8192
8193 *nto* | *qnx*)
8194 # QNX uses GNU C++, but need to define -shared option too, otherwise
8195 # it will coredump.
8196 lt_prog_compiler_pic='-fPIC -shared'
8197 ;;
8198
8199 sysv4*MP*)
8200 if test -d /usr/nec; then
8201 lt_prog_compiler_pic=-Kconform_pic
8202 fi
8203 ;;
8204
8205 *)
8206 lt_prog_compiler_pic='-fPIC'
8207 ;;
8208 esac
3725885a
RW
8209
8210 case $cc_basename in
8211 nvcc*) # Cuda Compiler Driver 2.2
8212 lt_prog_compiler_wl='-Xlinker '
8213 lt_prog_compiler_pic='-Xcompiler -fPIC'
8214 ;;
8215 esac
d7040cdb
SE
8216 else
8217 # PORTME Check for flag to pass linker flags through the system compiler.
8218 case $host_os in
8219 aix*)
8220 lt_prog_compiler_wl='-Wl,'
8221 if test "$host_cpu" = ia64; then
8222 # AIX 5 now supports IA64 processor
8223 lt_prog_compiler_static='-Bstatic'
8224 else
8225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8226 fi
8227 ;;
d7040cdb 8228
718a6fd8 8229 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8230 # This hack is so that the source file can tell whether it is being
8231 # built for inclusion in a dll (and should export symbols for example).
8232 lt_prog_compiler_pic='-DDLL_EXPORT'
8233 ;;
8234
8235 hpux9* | hpux10* | hpux11*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8238 # not for PA HP-UX.
8239 case $host_cpu in
8240 hppa*64*|ia64*)
8241 # +Z the default
8242 ;;
8243 *)
8244 lt_prog_compiler_pic='+Z'
8245 ;;
8246 esac
8247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8248 lt_prog_compiler_static='${wl}-a ${wl}archive'
8249 ;;
8250
8251 irix5* | irix6* | nonstopux*)
8252 lt_prog_compiler_wl='-Wl,'
8253 # PIC (with -KPIC) is the default.
8254 lt_prog_compiler_static='-non_shared'
8255 ;;
8256
58e24671 8257 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8258 case $cc_basename in
718a6fd8
SE
8259 # old Intel for x86_64 which still supported -KPIC.
8260 ecc*)
d7040cdb
SE
8261 lt_prog_compiler_wl='-Wl,'
8262 lt_prog_compiler_pic='-KPIC'
8263 lt_prog_compiler_static='-static'
8264 ;;
718a6fd8
SE
8265 # icc used to be incompatible with GCC.
8266 # ICC 10 doesn't accept -KPIC any more.
8267 icc* | ifort*)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-fPIC'
8270 lt_prog_compiler_static='-static'
8271 ;;
8272 # Lahey Fortran 8.1.
8273 lf95*)
8274 lt_prog_compiler_wl='-Wl,'
8275 lt_prog_compiler_pic='--shared'
8276 lt_prog_compiler_static='--static'
8277 ;;
3725885a 8278 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8279 # Portland Group compilers (*not* the Pentium gcc compiler,
8280 # which looks to be a dead project)
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-fpic'
8283 lt_prog_compiler_static='-Bstatic'
8284 ;;
8285 ccc*)
8286 lt_prog_compiler_wl='-Wl,'
8287 # All Alpha code is PIC.
8288 lt_prog_compiler_static='-non_shared'
8289 ;;
3725885a
RW
8290 xl* | bgxl* | bgf* | mpixl*)
8291 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_pic='-qpic'
8294 lt_prog_compiler_static='-qstaticlink'
8295 ;;
d7040cdb
SE
8296 *)
8297 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8298 *Sun\ F* | *Sun*Fortran*)
8299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8300 lt_prog_compiler_pic='-KPIC'
8301 lt_prog_compiler_static='-Bstatic'
3725885a 8302 lt_prog_compiler_wl=''
d7040cdb 8303 ;;
3725885a
RW
8304 *Sun\ C*)
8305 # Sun C 5.9
d7040cdb
SE
8306 lt_prog_compiler_pic='-KPIC'
8307 lt_prog_compiler_static='-Bstatic'
3725885a 8308 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8309 ;;
8310 esac
8311 ;;
8312 esac
8313 ;;
8314
8315 newsos6)
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-Bstatic'
8318 ;;
8319
8320 *nto* | *qnx*)
8321 # QNX uses GNU C++, but need to define -shared option too, otherwise
8322 # it will coredump.
8323 lt_prog_compiler_pic='-fPIC -shared'
8324 ;;
8325
8326 osf3* | osf4* | osf5*)
8327 lt_prog_compiler_wl='-Wl,'
8328 # All OSF/1 code is PIC.
8329 lt_prog_compiler_static='-non_shared'
8330 ;;
8331
8332 rdos*)
8333 lt_prog_compiler_static='-non_shared'
8334 ;;
8335
8336 solaris*)
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 case $cc_basename in
f2c621e4 8340 f77* | f90* | f95*)
d7040cdb
SE
8341 lt_prog_compiler_wl='-Qoption ld ';;
8342 *)
8343 lt_prog_compiler_wl='-Wl,';;
8344 esac
8345 ;;
8346
8347 sunos4*)
8348 lt_prog_compiler_wl='-Qoption ld '
8349 lt_prog_compiler_pic='-PIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 ;;
8352
8353 sysv4 | sysv4.2uw2* | sysv4.3*)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 ;;
8358
8359 sysv4*MP*)
8360 if test -d /usr/nec ;then
8361 lt_prog_compiler_pic='-Kconform_pic'
8362 lt_prog_compiler_static='-Bstatic'
8363 fi
8364 ;;
8365
8366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 unicos*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_can_build_shared=no
8375 ;;
8376
8377 uts4*)
8378 lt_prog_compiler_pic='-pic'
8379 lt_prog_compiler_static='-Bstatic'
8380 ;;
8381
8382 *)
8383 lt_prog_compiler_can_build_shared=no
8384 ;;
8385 esac
8386 fi
8387
8388case $host_os in
8389 # For platforms which do not support PIC, -DPIC is meaningless:
8390 *djgpp*)
8391 lt_prog_compiler_pic=
8392 ;;
8393 *)
8394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8395 ;;
8396esac
f2c621e4
AS
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8398$as_echo "$lt_prog_compiler_pic" >&6; }
8399
8400
8401
8402
d7040cdb
SE
8403
8404
8405#
8406# Check to make sure the PIC flag actually works.
8407#
8408if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8410$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8411if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8412 $as_echo_n "(cached) " >&6
42ecbf5e 8413else
718a6fd8 8414 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8415 ac_outfile=conftest.$ac_objext
8416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8417 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8418 # Insert the option either (1) after the last *FLAGS variable, or
8419 # (2) before a word containing "conftest.", or (3) at the end.
8420 # Note that $ac_compile itself does not contain backslashes and begins
8421 # with a dollar sign (not a hyphen), so the echo should work correctly.
8422 # The option is referenced via a variable to avoid confusing sed.
8423 lt_compile=`echo "$ac_compile" | $SED \
8424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8426 -e 's:$: $lt_compiler_flag:'`
3725885a 8427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8428 (eval "$lt_compile" 2>conftest.err)
8429 ac_status=$?
8430 cat conftest.err >&5
3725885a 8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8432 if (exit $ac_status) && test -s "$ac_outfile"; then
8433 # The compiler can only warn and ignore the option if not recognized
8434 # So say no if there are warnings other than the usual output.
3725885a 8435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8438 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8439 fi
8440 fi
8441 $RM conftest*
42ecbf5e 8442
252b5132 8443fi
81ecdfbb
RW
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8445$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8446
718a6fd8 8447if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8448 case $lt_prog_compiler_pic in
8449 "" | " "*) ;;
8450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8451 esac
252b5132 8452else
d7040cdb
SE
8453 lt_prog_compiler_pic=
8454 lt_prog_compiler_can_build_shared=no
252b5132 8455fi
252b5132
RH
8456
8457fi
42ecbf5e 8458
d7040cdb
SE
8459
8460
8461
8462
8463
8464#
8465# Check to make sure the static flag actually works.
8466#
8467wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8469$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8470if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8471 $as_echo_n "(cached) " >&6
42ecbf5e 8472else
718a6fd8 8473 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8474 save_LDFLAGS="$LDFLAGS"
8475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8478 # The linker can only warn and ignore the option if not recognized
8479 # So say no if there are warnings
8480 if test -s conftest.err; then
8481 # Append any errors to the config.log.
8482 cat conftest.err 1>&5
3725885a 8483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8485 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8486 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8487 fi
8488 else
718a6fd8 8489 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8490 fi
8491 fi
718a6fd8 8492 $RM -r conftest*
d7040cdb 8493 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8494
42ecbf5e 8495fi
81ecdfbb
RW
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8497$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8498
718a6fd8 8499if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8500 :
8501else
8502 lt_prog_compiler_static=
42ecbf5e 8503fi
42ecbf5e 8504
252b5132 8505
252b5132 8506
42ecbf5e 8507
252b5132 8508
20e95c23 8509
d7040cdb 8510
81ecdfbb
RW
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8512$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8513if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8514 $as_echo_n "(cached) " >&6
252b5132 8515else
d7040cdb
SE
8516 lt_cv_prog_compiler_c_o=no
8517 $RM -r conftest 2>/dev/null
8518 mkdir conftest
8519 cd conftest
8520 mkdir out
8521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8522
8523 lt_compiler_flag="-o out/conftest2.$ac_objext"
8524 # Insert the option either (1) after the last *FLAGS variable, or
8525 # (2) before a word containing "conftest.", or (3) at the end.
8526 # Note that $ac_compile itself does not contain backslashes and begins
8527 # with a dollar sign (not a hyphen), so the echo should work correctly.
8528 lt_compile=`echo "$ac_compile" | $SED \
8529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8531 -e 's:$: $lt_compiler_flag:'`
3725885a 8532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8533 (eval "$lt_compile" 2>out/conftest.err)
8534 ac_status=$?
8535 cat out/conftest.err >&5
3725885a 8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8538 then
8539 # The compiler can only warn and ignore the option if not recognized
8540 # So say no if there are warnings
3725885a 8541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8544 lt_cv_prog_compiler_c_o=yes
8545 fi
8546 fi
8547 chmod u+w . 2>&5
8548 $RM conftest*
8549 # SGI C++ compiler will create directory out/ii_files/ for
8550 # template instantiation
8551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8552 $RM out/* && rmdir out
8553 cd ..
8554 $RM -r conftest
8555 $RM conftest*
8556
252b5132 8557fi
81ecdfbb
RW
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8559$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8560
20e95c23 8561
20e95c23
DJ
8562
8563
d7040cdb
SE
8564
8565
81ecdfbb
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8567$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8568if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8569 $as_echo_n "(cached) " >&6
42ecbf5e 8570else
d7040cdb
SE
8571 lt_cv_prog_compiler_c_o=no
8572 $RM -r conftest 2>/dev/null
8573 mkdir conftest
8574 cd conftest
8575 mkdir out
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577
8578 lt_compiler_flag="-o out/conftest2.$ac_objext"
8579 # Insert the option either (1) after the last *FLAGS variable, or
8580 # (2) before a word containing "conftest.", or (3) at the end.
8581 # Note that $ac_compile itself does not contain backslashes and begins
8582 # with a dollar sign (not a hyphen), so the echo should work correctly.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
3725885a 8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8588 (eval "$lt_compile" 2>out/conftest.err)
8589 ac_status=$?
8590 cat out/conftest.err >&5
3725885a 8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8593 then
8594 # The compiler can only warn and ignore the option if not recognized
8595 # So say no if there are warnings
3725885a 8596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8599 lt_cv_prog_compiler_c_o=yes
8600 fi
8601 fi
8602 chmod u+w . 2>&5
8603 $RM conftest*
8604 # SGI C++ compiler will create directory out/ii_files/ for
8605 # template instantiation
8606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8607 $RM out/* && rmdir out
8608 cd ..
8609 $RM -r conftest
8610 $RM conftest*
8611
8612fi
81ecdfbb
RW
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8614$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8615
8616
8617
8618
8619hard_links="nottested"
8620if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8621 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8623$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8624 hard_links=yes
8625 $RM conftest*
8626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8627 touch conftest.a
8628 ln conftest.a conftest.b 2>&5 || hard_links=no
8629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8631$as_echo "$hard_links" >&6; }
d7040cdb 8632 if test "$hard_links" = no; then
81ecdfbb
RW
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8634$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8635 need_locks=warn
8636 fi
8637else
8638 need_locks=no
8639fi
8640
8641
8642
8643
8644
8645
81ecdfbb
RW
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8647$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8648
8649 runpath_var=
8650 allow_undefined_flag=
8651 always_export_symbols=no
8652 archive_cmds=
8653 archive_expsym_cmds=
8654 compiler_needs_object=no
8655 enable_shared_with_static_runtimes=no
8656 export_dynamic_flag_spec=
8657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8658 hardcode_automatic=no
8659 hardcode_direct=no
8660 hardcode_direct_absolute=no
8661 hardcode_libdir_flag_spec=
8662 hardcode_libdir_flag_spec_ld=
8663 hardcode_libdir_separator=
8664 hardcode_minus_L=no
8665 hardcode_shlibpath_var=unsupported
8666 inherit_rpath=no
8667 link_all_deplibs=unknown
8668 module_cmds=
8669 module_expsym_cmds=
8670 old_archive_from_new_cmds=
8671 old_archive_from_expsyms_cmds=
8672 thread_safe_flag_spec=
8673 whole_archive_flag_spec=
8674 # include_expsyms should be a list of space-separated symbols to be *always*
8675 # included in the symbol list
8676 include_expsyms=
8677 # exclude_expsyms can be an extended regexp of symbols to exclude
8678 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8679 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8680 # as well as any symbol that contains `d'.
718a6fd8 8681 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8683 # platforms (ab)use it in PIC code, but their linkers get confused if
8684 # the symbol is explicitly referenced. Since portable code cannot
8685 # rely on this symbol name, it's probably fine to never include it in
8686 # preloaded symbol tables.
718a6fd8 8687 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8688 extract_expsyms_cmds=
8689
8690 case $host_os in
718a6fd8 8691 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8692 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8693 # When not using gcc, we currently assume that we are using
8694 # Microsoft Visual C++.
8695 if test "$GCC" != yes; then
8696 with_gnu_ld=no
8697 fi
8698 ;;
8699 interix*)
8700 # we just hope/assume this is gcc and not c89 (= MSVC++)
8701 with_gnu_ld=yes
8702 ;;
8703 openbsd*)
8704 with_gnu_ld=no
8705 ;;
8706 esac
8707
8708 ld_shlibs=yes
3725885a
RW
8709
8710 # On some targets, GNU ld is compatible enough with the native linker
8711 # that we're better off using the native interface for both.
8712 lt_use_gnu_ld_interface=no
d7040cdb 8713 if test "$with_gnu_ld" = yes; then
3725885a
RW
8714 case $host_os in
8715 aix*)
8716 # The AIX port of GNU ld has always aspired to compatibility
8717 # with the native linker. However, as the warning in the GNU ld
8718 # block says, versions before 2.19.5* couldn't really create working
8719 # shared libraries, regardless of the interface used.
8720 case `$LD -v 2>&1` in
8721 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8722 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8723 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8724 *)
8725 lt_use_gnu_ld_interface=yes
8726 ;;
8727 esac
8728 ;;
8729 *)
8730 lt_use_gnu_ld_interface=yes
8731 ;;
8732 esac
8733 fi
8734
8735 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8736 # If archive_cmds runs LD, not CC, wlarc should be empty
8737 wlarc='${wl}'
8738
8739 # Set some defaults for GNU ld with shared library support. These
8740 # are reset later if shared libraries are not supported. Putting them
8741 # here allows them to be overridden if necessary.
8742 runpath_var=LD_RUN_PATH
8743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8744 export_dynamic_flag_spec='${wl}--export-dynamic'
8745 # ancient GNU ld didn't support --whole-archive et. al.
8746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8747 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8748 else
8749 whole_archive_flag_spec=
8750 fi
8751 supports_anon_versioning=no
8752 case `$LD -v 2>&1` in
3725885a 8753 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8757 *\ 2.11.*) ;; # other 2.11 versions
8758 *) supports_anon_versioning=yes ;;
8759 esac
8760
8761 # See if GNU ld supports shared libraries.
8762 case $host_os in
50e7d84b 8763 aix[3-9]*)
d7040cdb
SE
8764 # On AIX/PPC, the GNU linker is very broken
8765 if test "$host_cpu" != ia64; then
8766 ld_shlibs=no
8767 cat <<_LT_EOF 1>&2
8768
3725885a 8769*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8770*** to be unable to reliably create shared libraries on AIX.
8771*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8772*** really care for shared libraries, you may want to install binutils
8773*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8774*** You will then need to restart the configuration process.
d7040cdb
SE
8775
8776_LT_EOF
8777 fi
8778 ;;
8779
8780 amigaos*)
718a6fd8
SE
8781 case $host_cpu in
8782 powerpc)
8783 # see comment about AmigaOS4 .so support
8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 archive_expsym_cmds=''
8786 ;;
8787 m68k)
8788 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)'
8789 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_minus_L=yes
8791 ;;
8792 esac
d7040cdb
SE
8793 ;;
8794
8795 beos*)
8796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8797 allow_undefined_flag=unsupported
8798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8799 # support --undefined. This deserves some investigation. FIXME
8800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 else
8802 ld_shlibs=no
8803 fi
8804 ;;
8805
718a6fd8 8806 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8808 # as there is no search path for DLLs.
8809 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8810 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8811 allow_undefined_flag=unsupported
8812 always_export_symbols=no
8813 enable_shared_with_static_runtimes=yes
f2c621e4 8814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb
SE
8815
8816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8818 # If the export-symbols file already is a .def file (1st line
8819 # is EXPORTS), use it as is; otherwise, prepend...
8820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8821 cp $export_symbols $output_objdir/$soname.def;
8822 else
8823 echo EXPORTS > $output_objdir/$soname.def;
8824 cat $export_symbols >> $output_objdir/$soname.def;
8825 fi~
8826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8827 else
8828 ld_shlibs=no
8829 fi
8830 ;;
8831
3725885a
RW
8832 haiku*)
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 link_all_deplibs=yes
8835 ;;
8836
d7040cdb
SE
8837 interix[3-9]*)
8838 hardcode_direct=no
8839 hardcode_shlibpath_var=no
8840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8841 export_dynamic_flag_spec='${wl}-E'
8842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8843 # Instead, shared libraries are loaded at an image base (0x10000000 by
8844 # default) and relocated if they conflict, which is a slow very memory
8845 # consuming and fragmenting process. To avoid this, we pick a random,
8846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8849 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'
8850 ;;
8851
6a6859cb 8852 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7040cdb
SE
8853 tmp_diet=no
8854 if test "$host_os" = linux-dietlibc; then
8855 case $cc_basename in
8856 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8857 esac
8858 fi
8859 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8860 && test "$tmp_diet" = no
8861 then
6e733cce 8862 tmp_addflag=' $pic_flag'
718a6fd8 8863 tmp_sharedflag='-shared'
d7040cdb
SE
8864 case $cc_basename,$host_cpu in
8865 pgcc*) # Portland Group C compiler
3725885a 8866 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'
d7040cdb
SE
8867 tmp_addflag=' $pic_flag'
8868 ;;
3725885a
RW
8869 pgf77* | pgf90* | pgf95* | pgfortran*)
8870 # Portland Group f77 and f90 compilers
8871 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'
d7040cdb
SE
8872 tmp_addflag=' $pic_flag -Mnomain' ;;
8873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8874 tmp_addflag=' -i_dynamic' ;;
8875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8876 tmp_addflag=' -i_dynamic -nofor_main' ;;
8877 ifc* | ifort*) # Intel Fortran compiler
8878 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8879 lf95*) # Lahey Fortran 8.1
8880 whole_archive_flag_spec=
8881 tmp_sharedflag='--shared' ;;
3725885a 8882 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8883 tmp_sharedflag='-qmkshrobj'
8884 tmp_addflag= ;;
3725885a
RW
8885 nvcc*) # Cuda Compiler Driver 2.2
8886 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'
8887 compiler_needs_object=yes
8888 ;;
d7040cdb
SE
8889 esac
8890 case `$CC -V 2>&1 | sed 5q` in
8891 *Sun\ C*) # Sun C 5.9
3725885a 8892 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'
d7040cdb
SE
8893 compiler_needs_object=yes
8894 tmp_sharedflag='-G' ;;
8895 *Sun\ F*) # Sun Fortran 8.3
8896 tmp_sharedflag='-G' ;;
d7040cdb
SE
8897 esac
8898 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899
8900 if test "x$supports_anon_versioning" = xyes; then
8901 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8903 echo "local: *; };" >> $output_objdir/$libname.ver~
8904 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8905 fi
718a6fd8
SE
8906
8907 case $cc_basename in
3725885a 8908 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8911 hardcode_libdir_flag_spec=
8912 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8913 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8914 if test "x$supports_anon_versioning" = xyes; then
8915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8917 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8918 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8919 fi
8920 ;;
8921 esac
d7040cdb
SE
8922 else
8923 ld_shlibs=no
8924 fi
8925 ;;
8926
8927 netbsd*)
8928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8930 wlarc=
8931 else
f2c621e4
AS
8932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8934 fi
8935 ;;
8936
8937 solaris*)
8938 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8939 ld_shlibs=no
8940 cat <<_LT_EOF 1>&2
8941
8942*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8943*** create shared libraries on Solaris systems. Therefore, libtool
8944*** is disabling shared libraries support. We urge you to upgrade GNU
8945*** binutils to release 2.9.1 or newer. Another option is to modify
8946*** your PATH or compiler configuration so that the native linker is
8947*** used, and then restart.
8948
8949_LT_EOF
8950 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8953 else
8954 ld_shlibs=no
8955 fi
8956 ;;
8957
8958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8959 case `$LD -v 2>&1` in
8960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8961 ld_shlibs=no
8962 cat <<_LT_EOF 1>&2
8963
8964*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8965*** reliably create shared libraries on SCO systems. Therefore, libtool
8966*** is disabling shared libraries support. We urge you to upgrade GNU
8967*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8968*** your PATH or compiler configuration so that the native linker is
8969*** used, and then restart.
8970
8971_LT_EOF
8972 ;;
8973 *)
8974 # For security reasons, it is highly recommended that you always
8975 # use absolute paths for naming shared libraries, and exclude the
8976 # DT_RUNPATH tag from executables and libraries. But doing so
8977 # requires that you compile everything twice, which is a pain.
8978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 else
8983 ld_shlibs=no
8984 fi
8985 ;;
8986 esac
8987 ;;
8988
8989 sunos4*)
8990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8991 wlarc=
8992 hardcode_direct=yes
8993 hardcode_shlibpath_var=no
8994 ;;
8995
8996 *)
8997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
9004 esac
9005
9006 if test "$ld_shlibs" = no; then
9007 runpath_var=
9008 hardcode_libdir_flag_spec=
9009 export_dynamic_flag_spec=
9010 whole_archive_flag_spec=
9011 fi
9012 else
9013 # PORTME fill in a description of your system's linker (not GNU ld)
9014 case $host_os in
9015 aix3*)
9016 allow_undefined_flag=unsupported
9017 always_export_symbols=yes
9018 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'
9019 # Note: this linker hardcodes the directories in LIBPATH if there
9020 # are no directories specified by -L.
9021 hardcode_minus_L=yes
9022 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9023 # Neither direct hardcoding nor static linking is supported with a
9024 # broken collect2.
9025 hardcode_direct=unsupported
9026 fi
9027 ;;
9028
50e7d84b 9029 aix[4-9]*)
d7040cdb
SE
9030 if test "$host_cpu" = ia64; then
9031 # On IA64, the linker does run time linking by default, so we don't
9032 # have to do anything special.
9033 aix_use_runtimelinking=no
9034 exp_sym_flag='-Bexport'
9035 no_entry_flag=""
9036 else
9037 # If we're using GNU nm, then we don't want the "-C" option.
9038 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9039 # Also, AIX nm treats weak defined symbols like other global
9040 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 9041 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9042 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'
d7040cdb 9043 else
5c14705f 9044 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'
d7040cdb
SE
9045 fi
9046 aix_use_runtimelinking=no
9047
9048 # Test if we are trying to use run time linking or normal
9049 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9050 # need to do runtime linking.
50e7d84b 9051 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9052 for ld_flag in $LDFLAGS; do
9053 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9054 aix_use_runtimelinking=yes
9055 break
9056 fi
9057 done
9058 ;;
9059 esac
9060
9061 exp_sym_flag='-bexport'
9062 no_entry_flag='-bnoentry'
9063 fi
9064
9065 # When large executables or shared objects are built, AIX ld can
9066 # have problems creating the table of contents. If linking a library
9067 # or program results in "error TOC overflow" add -mminimal-toc to
9068 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9069 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9070
9071 archive_cmds=''
9072 hardcode_direct=yes
9073 hardcode_direct_absolute=yes
9074 hardcode_libdir_separator=':'
9075 link_all_deplibs=yes
9076 file_list_spec='${wl}-f,'
9077
9078 if test "$GCC" = yes; then
9079 case $host_os in aix4.[012]|aix4.[012].*)
9080 # We only want to do this on AIX 4.2 and lower, the check
9081 # below for broken collect2 doesn't work under 4.3+
9082 collect2name=`${CC} -print-prog-name=collect2`
9083 if test -f "$collect2name" &&
9084 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9085 then
9086 # We have reworked collect2
9087 :
9088 else
9089 # We have old collect2
9090 hardcode_direct=unsupported
9091 # It fails to find uninstalled libraries when the uninstalled
9092 # path is not listed in the libpath. Setting hardcode_minus_L
9093 # to unsupported forces relinking
9094 hardcode_minus_L=yes
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_libdir_separator=
9097 fi
9098 ;;
9099 esac
9100 shared_flag='-shared'
9101 if test "$aix_use_runtimelinking" = yes; then
9102 shared_flag="$shared_flag "'${wl}-G'
9103 fi
9104 else
9105 # not using gcc
9106 if test "$host_cpu" = ia64; then
9107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9108 # chokes on -Wl,-G. The following line is correct:
9109 shared_flag='-G'
9110 else
9111 if test "$aix_use_runtimelinking" = yes; then
9112 shared_flag='${wl}-G'
9113 else
9114 shared_flag='${wl}-bM:SRE'
9115 fi
9116 fi
9117 fi
9118
718a6fd8 9119 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9120 # It seems that -bexpall does not export symbols beginning with
9121 # underscore (_), so it is better to generate a list of symbols to export.
9122 always_export_symbols=yes
9123 if test "$aix_use_runtimelinking" = yes; then
9124 # Warning - without using the other runtime loading flags (-brtl),
9125 # -berok will link without error, but may produce a broken library.
9126 allow_undefined_flag='-berok'
9127 # Determine the default libpath from the value encoded in an
9128 # empty executable.
f2c621e4 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9130/* end confdefs.h. */
d7040cdb
SE
9131
9132int
9133main ()
9134{
9135
9136 ;
9137 return 0;
9138}
42ecbf5e 9139_ACEOF
81ecdfbb 9140if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9141
f2c621e4
AS
9142lt_aix_libpath_sed='
9143 /Import File Strings/,/^$/ {
9144 /^0/ {
9145 s/^0 *\(.*\)$/\1/
9146 p
9147 }
9148 }'
9149aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9150# Check for a 64-bit object if we didn't find anything.
9151if test -z "$aix_libpath"; then
9152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9153fi
252b5132 9154fi
81ecdfbb
RW
9155rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9157if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9158
d7040cdb 9159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9160 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"
d7040cdb
SE
9161 else
9162 if test "$host_cpu" = ia64; then
9163 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9164 allow_undefined_flag="-z nodefs"
9165 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"
9166 else
9167 # Determine the default libpath from the value encoded in an
9168 # empty executable.
f2c621e4 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9170/* end confdefs.h. */
d7040cdb
SE
9171
9172int
9173main ()
9174{
9175
9176 ;
9177 return 0;
9178}
42ecbf5e 9179_ACEOF
81ecdfbb 9180if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9181
f2c621e4
AS
9182lt_aix_libpath_sed='
9183 /Import File Strings/,/^$/ {
9184 /^0/ {
9185 s/^0 *\(.*\)$/\1/
9186 p
9187 }
9188 }'
9189aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9190# Check for a 64-bit object if we didn't find anything.
9191if test -z "$aix_libpath"; then
9192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193fi
252b5132 9194fi
81ecdfbb
RW
9195rm -f core conftest.err conftest.$ac_objext \
9196 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb
SE
9198
9199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9200 # Warning - without using the other run time loading flags,
9201 # -berok will link without error, but may produce a broken library.
9202 no_undefined_flag=' ${wl}-bernotok'
9203 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9204 if test "$with_gnu_ld" = yes; then
9205 # We only use this code for GNU lds that support --whole-archive.
9206 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9207 else
9208 # Exported symbols can be pulled into shared objects from archives
9209 whole_archive_flag_spec='$convenience'
9210 fi
d7040cdb
SE
9211 archive_cmds_need_lc=yes
9212 # This is similar to how AIX traditionally builds its shared libraries.
9213 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'
9214 fi
9215 fi
9216 ;;
42ecbf5e 9217
d7040cdb 9218 amigaos*)
718a6fd8
SE
9219 case $host_cpu in
9220 powerpc)
9221 # see comment about AmigaOS4 .so support
9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 archive_expsym_cmds=''
9224 ;;
9225 m68k)
9226 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)'
9227 hardcode_libdir_flag_spec='-L$libdir'
9228 hardcode_minus_L=yes
9229 ;;
9230 esac
d7040cdb 9231 ;;
252b5132 9232
d7040cdb
SE
9233 bsdi[45]*)
9234 export_dynamic_flag_spec=-rdynamic
9235 ;;
252b5132 9236
718a6fd8 9237 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9238 # When not using gcc, we currently assume that we are using
9239 # Microsoft Visual C++.
9240 # hardcode_libdir_flag_spec is actually meaningless, as there is
9241 # no search path for DLLs.
f2c621e4
AS
9242 hardcode_libdir_flag_spec=' '
9243 allow_undefined_flag=unsupported
9244 # Tell ltmain to make .lib files, not .a files.
9245 libext=lib
9246 # Tell ltmain to make .dll files, not .so files.
9247 shrext_cmds=".dll"
9248 # FIXME: Setting linknames here is a bad hack.
9249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9250 # The linker will automatically build a .lib file if we build a DLL.
9251 old_archive_from_new_cmds='true'
9252 # FIXME: Should let the user specify the lib program.
9253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9254 fix_srcfile_path='`cygpath -w "$srcfile"`'
9255 enable_shared_with_static_runtimes=yes
d7040cdb 9256 ;;
252b5132 9257
d7040cdb 9258 darwin* | rhapsody*)
c46f8c51 9259
718a6fd8
SE
9260
9261 archive_cmds_need_lc=no
9262 hardcode_direct=no
9263 hardcode_automatic=yes
9264 hardcode_shlibpath_var=unsupported
3725885a
RW
9265 if test "$lt_cv_ld_force_load" = "yes"; then
9266 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\"`'
9267 else
9268 whole_archive_flag_spec=''
9269 fi
718a6fd8
SE
9270 link_all_deplibs=yes
9271 allow_undefined_flag="$_lt_dar_allow_undefined"
9272 case $cc_basename in
9273 ifort*) _lt_dar_can_shared=yes ;;
9274 *) _lt_dar_can_shared=$GCC ;;
9275 esac
9276 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9277 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9278 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9279 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9280 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}"
9281 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}"
9282
9283 else
9284 ld_shlibs=no
9285 fi
9286
d7040cdb 9287 ;;
42ecbf5e 9288
d7040cdb
SE
9289 dgux*)
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_shlibpath_var=no
9293 ;;
252b5132 9294
d7040cdb
SE
9295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9296 # support. Future versions do this automatically, but an explicit c++rt0.o
9297 # does not break anything, and helps significantly (at the cost of a little
9298 # extra space).
9299 freebsd2.2*)
9300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9301 hardcode_libdir_flag_spec='-R$libdir'
9302 hardcode_direct=yes
9303 hardcode_shlibpath_var=no
9304 ;;
252b5132 9305
d7040cdb 9306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9307 freebsd2.*)
d7040cdb
SE
9308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_direct=yes
9310 hardcode_minus_L=yes
9311 hardcode_shlibpath_var=no
9312 ;;
42ecbf5e 9313
d7040cdb
SE
9314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9315 freebsd* | dragonfly*)
f2c621e4 9316 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9317 hardcode_libdir_flag_spec='-R$libdir'
9318 hardcode_direct=yes
9319 hardcode_shlibpath_var=no
9320 ;;
252b5132 9321
d7040cdb
SE
9322 hpux9*)
9323 if test "$GCC" = yes; then
f2c621e4 9324 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'
d7040cdb
SE
9325 else
9326 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'
9327 fi
9328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9329 hardcode_libdir_separator=:
9330 hardcode_direct=yes
9331
9332 # hardcode_minus_L: Not really in the search PATH,
9333 # but as the default location of the library.
9334 hardcode_minus_L=yes
9335 export_dynamic_flag_spec='${wl}-E'
9336 ;;
20e95c23 9337
d7040cdb 9338 hpux10*)
3725885a 9339 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9341 else
9342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9343 fi
9344 if test "$with_gnu_ld" = no; then
9345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9346 hardcode_libdir_flag_spec_ld='+b $libdir'
9347 hardcode_libdir_separator=:
9348 hardcode_direct=yes
9349 hardcode_direct_absolute=yes
9350 export_dynamic_flag_spec='${wl}-E'
9351 # hardcode_minus_L: Not really in the search PATH,
9352 # but as the default location of the library.
9353 hardcode_minus_L=yes
9354 fi
9355 ;;
20e95c23 9356
d7040cdb 9357 hpux11*)
3725885a 9358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9359 case $host_cpu in
9360 hppa*64*)
6a6859cb 9361 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9362 ;;
9363 ia64*)
f2c621e4 9364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9365 ;;
9366 *)
f2c621e4 9367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9368 ;;
9369 esac
9370 else
9371 case $host_cpu in
9372 hppa*64*)
6a6859cb 9373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9374 ;;
9375 ia64*)
9376 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9377 ;;
9378 *)
3725885a
RW
9379
9380 # Older versions of the 11.00 compiler do not understand -b yet
9381 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9383$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9384if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9385 $as_echo_n "(cached) " >&6
9386else
9387 lt_cv_prog_compiler__b=no
9388 save_LDFLAGS="$LDFLAGS"
9389 LDFLAGS="$LDFLAGS -b"
9390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9392 # The linker can only warn and ignore the option if not recognized
9393 # So say no if there are warnings
9394 if test -s conftest.err; then
9395 # Append any errors to the config.log.
9396 cat conftest.err 1>&5
9397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399 if diff conftest.exp conftest.er2 >/dev/null; then
9400 lt_cv_prog_compiler__b=yes
9401 fi
9402 else
9403 lt_cv_prog_compiler__b=yes
9404 fi
9405 fi
9406 $RM -r conftest*
9407 LDFLAGS="$save_LDFLAGS"
9408
9409fi
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9411$as_echo "$lt_cv_prog_compiler__b" >&6; }
9412
9413if test x"$lt_cv_prog_compiler__b" = xyes; then
9414 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9415else
9416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9417fi
9418
d7040cdb
SE
9419 ;;
9420 esac
9421 fi
9422 if test "$with_gnu_ld" = no; then
9423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9424 hardcode_libdir_separator=:
9425
9426 case $host_cpu in
9427 hppa*64*|ia64*)
9428 hardcode_direct=no
9429 hardcode_shlibpath_var=no
9430 ;;
9431 *)
9432 hardcode_direct=yes
9433 hardcode_direct_absolute=yes
9434 export_dynamic_flag_spec='${wl}-E'
9435
9436 # hardcode_minus_L: Not really in the search PATH,
9437 # but as the default location of the library.
9438 hardcode_minus_L=yes
9439 ;;
9440 esac
9441 fi
9442 ;;
9443
9444 irix5* | irix6* | nonstopux*)
9445 if test "$GCC" = yes; then
f2c621e4 9446 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'
d7040cdb
SE
9447 # Try to use the -exported_symbol ld option, if it does not
9448 # work, assume that -exports_file does not work either and
9449 # implicitly export all symbols.
f2c621e4
AS
9450 save_LDFLAGS="$LDFLAGS"
9451 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9453/* end confdefs.h. */
f2c621e4 9454int foo(void) {}
42ecbf5e 9455_ACEOF
81ecdfbb 9456if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9457 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'
9458
42ecbf5e 9459fi
81ecdfbb
RW
9460rm -f core conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9462 LDFLAGS="$save_LDFLAGS"
d7040cdb 9463 else
3725885a
RW
9464 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'
9465 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'
d7040cdb
SE
9466 fi
9467 archive_cmds_need_lc='no'
9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469 hardcode_libdir_separator=:
9470 inherit_rpath=yes
9471 link_all_deplibs=yes
9472 ;;
42ecbf5e 9473
d7040cdb
SE
9474 netbsd*)
9475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9477 else
9478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9479 fi
9480 hardcode_libdir_flag_spec='-R$libdir'
9481 hardcode_direct=yes
9482 hardcode_shlibpath_var=no
9483 ;;
42ecbf5e 9484
d7040cdb
SE
9485 newsos6)
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_direct=yes
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 hardcode_libdir_separator=:
9490 hardcode_shlibpath_var=no
9491 ;;
42ecbf5e 9492
d7040cdb
SE
9493 *nto* | *qnx*)
9494 ;;
252b5132 9495
d7040cdb 9496 openbsd*)
718a6fd8
SE
9497 if test -f /usr/libexec/ld.so; then
9498 hardcode_direct=yes
9499 hardcode_shlibpath_var=no
9500 hardcode_direct_absolute=yes
9501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9505 export_dynamic_flag_spec='${wl}-E'
9506 else
9507 case $host_os in
9508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 ;;
9512 *)
9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515 ;;
9516 esac
9517 fi
9518 else
9519 ld_shlibs=no
d7040cdb
SE
9520 fi
9521 ;;
252b5132 9522
d7040cdb
SE
9523 os2*)
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_minus_L=yes
9526 allow_undefined_flag=unsupported
3725885a 9527 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'
d7040cdb
SE
9528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9529 ;;
2481e6a2 9530
d7040cdb
SE
9531 osf3*)
9532 if test "$GCC" = yes; then
9533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9534 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'
d7040cdb
SE
9535 else
9536 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9537 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'
d7040cdb
SE
9538 fi
9539 archive_cmds_need_lc='no'
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 ;;
42ecbf5e 9543
d7040cdb
SE
9544 osf4* | osf5*) # as osf3* with the addition of -msym flag
9545 if test "$GCC" = yes; then
9546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9547 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'
d7040cdb
SE
9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549 else
9550 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9551 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'
d7040cdb 9552 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 9553 $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'
42ecbf5e 9554
d7040cdb
SE
9555 # Both c and cxx compiler support -rpath directly
9556 hardcode_libdir_flag_spec='-rpath $libdir'
9557 fi
9558 archive_cmds_need_lc='no'
9559 hardcode_libdir_separator=:
9560 ;;
9561
9562 solaris*)
9563 no_undefined_flag=' -z defs'
9564 if test "$GCC" = yes; then
9565 wlarc='${wl}'
f2c621e4 9566 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9568 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d7040cdb
SE
9569 else
9570 case `$CC -V 2>&1` in
9571 *"Compilers 5.0"*)
9572 wlarc=''
9573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9576 ;;
9577 *)
9578 wlarc='${wl}'
9579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9582 ;;
9583 esac
9584 fi
9585 hardcode_libdir_flag_spec='-R$libdir'
9586 hardcode_shlibpath_var=no
9587 case $host_os in
9588 solaris2.[0-5] | solaris2.[0-5].*) ;;
9589 *)
9590 # The compiler driver will combine and reorder linker options,
9591 # but understands `-z linker_flag'. GCC discards it without `$wl',
9592 # but is careful enough not to reorder.
9593 # Supported since Solaris 2.6 (maybe 2.5.1?)
9594 if test "$GCC" = yes; then
9595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9596 else
9597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9598 fi
9599 ;;
9600 esac
9601 link_all_deplibs=yes
9602 ;;
9603
9604 sunos4*)
9605 if test "x$host_vendor" = xsequent; then
9606 # Use $CC to link under sequent, because it throws in some extra .o
9607 # files that make .init and .fini sections work.
9608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9609 else
9610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9611 fi
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_direct=yes
9614 hardcode_minus_L=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 sysv4)
9619 case $host_vendor in
9620 sni)
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_direct=yes # is this really true???
9623 ;;
9624 siemens)
9625 ## LD is ld it makes a PLAMLIB
9626 ## CC just makes a GrossModule.
9627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9628 reload_cmds='$CC -r -o $output$reload_objs'
9629 hardcode_direct=no
9630 ;;
9631 motorola)
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9634 ;;
9635 esac
9636 runpath_var='LD_RUN_PATH'
9637 hardcode_shlibpath_var=no
9638 ;;
9639
9640 sysv4.3*)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_shlibpath_var=no
9643 export_dynamic_flag_spec='-Bexport'
9644 ;;
9645
9646 sysv4*MP*)
9647 if test -d /usr/nec; then
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_shlibpath_var=no
9650 runpath_var=LD_RUN_PATH
9651 hardcode_runpath_var=yes
9652 ld_shlibs=yes
9653 fi
9654 ;;
9655
9656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9657 no_undefined_flag='${wl}-z,text'
9658 archive_cmds_need_lc=no
9659 hardcode_shlibpath_var=no
9660 runpath_var='LD_RUN_PATH'
9661
9662 if test "$GCC" = yes; then
9663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 fi
9669 ;;
9670
9671 sysv5* | sco3.2v5* | sco5v6*)
9672 # Note: We can NOT use -z defs as we might desire, because we do not
9673 # link with -lc, and that would cause any symbols used from libc to
9674 # always be unresolved, which means just about no library would
9675 # ever link correctly. If we're not using GNU ld we use -z text
9676 # though, which does catch some bad symbols but isn't as heavy-handed
9677 # as -z defs.
9678 no_undefined_flag='${wl}-z,text'
9679 allow_undefined_flag='${wl}-z,nodefs'
9680 archive_cmds_need_lc=no
9681 hardcode_shlibpath_var=no
9682 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9683 hardcode_libdir_separator=':'
9684 link_all_deplibs=yes
9685 export_dynamic_flag_spec='${wl}-Bexport'
9686 runpath_var='LD_RUN_PATH'
9687
9688 if test "$GCC" = yes; then
9689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 else
9692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 fi
9695 ;;
9696
9697 uts4*)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 *)
9704 ld_shlibs=no
9705 ;;
9706 esac
9707
9708 if test x$host_vendor = xsni; then
9709 case $host in
9710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9711 export_dynamic_flag_spec='${wl}-Blargedynsym'
9712 ;;
9713 esac
9714 fi
9715 fi
9716
81ecdfbb
RW
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9718$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9719test "$ld_shlibs" = no && can_build_shared=no
9720
9721with_gnu_ld=$with_gnu_ld
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737#
9738# Do we need to explicitly link libc?
9739#
9740case "x$archive_cmds_need_lc" in
9741x|xyes)
9742 # Assume -lc should be added
9743 archive_cmds_need_lc=yes
9744
9745 if test "$enable_shared" = yes && test "$GCC" = yes; then
9746 case $archive_cmds in
9747 *'~'*)
9748 # FIXME: we may have to deal with multi-command sequences.
9749 ;;
9750 '$CC '*)
9751 # Test whether the compiler implicitly links with -lc since on some
9752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9753 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9755$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9756if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9757 $as_echo_n "(cached) " >&6
39144654
RW
9758else
9759 $RM conftest*
9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9761
81ecdfbb 9762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9763 (eval $ac_compile) 2>&5
20e95c23 9764 ac_status=$?
81ecdfbb
RW
9765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9766 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9767 soname=conftest
9768 lib=conftest
9769 libobjs=conftest.$ac_objext
9770 deplibs=
9771 wl=$lt_prog_compiler_wl
9772 pic_flag=$lt_prog_compiler_pic
9773 compiler_flags=-v
9774 linker_flags=-v
9775 verstring=
9776 output_objdir=.
9777 libname=conftest
9778 lt_save_allow_undefined_flag=$allow_undefined_flag
9779 allow_undefined_flag=
81ecdfbb 9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9782 ac_status=$?
81ecdfbb
RW
9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784 test $ac_status = 0; }
39144654
RW
9785 then
9786 lt_cv_archive_cmds_need_lc=no
9787 else
9788 lt_cv_archive_cmds_need_lc=yes
9789 fi
9790 allow_undefined_flag=$lt_save_allow_undefined_flag
9791 else
9792 cat conftest.err 1>&5
9793 fi
9794 $RM conftest*
9795
9796fi
81ecdfbb
RW
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9798$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9800 ;;
9801 esac
9802 fi
9803 ;;
9804esac
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
81ecdfbb
RW
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9963$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9964
9965if test "$GCC" = yes; then
d7040cdb
SE
9966 case $host_os in
9967 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9968 *) lt_awk_arg="/^libraries:/" ;;
9969 esac
3725885a
RW
9970 case $host_os in
9971 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9972 *) lt_sed_strip_eq="s,=/,/,g" ;;
9973 esac
9974 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9975 case $lt_search_path_spec in
9976 *\;*)
d7040cdb
SE
9977 # if the path contains ";" then we assume it to be the separator
9978 # otherwise default to the standard path separator (i.e. ":") - it is
9979 # assumed that no part of a normal pathname contains ";" but that should
9980 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9981 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9982 ;;
9983 *)
9984 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9985 ;;
9986 esac
d7040cdb
SE
9987 # Ok, now we have the path, separated by spaces, we can step through it
9988 # and add multilib dir if necessary.
9989 lt_tmp_lt_search_path_spec=
9990 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9991 for lt_sys_path in $lt_search_path_spec; do
9992 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9994 else
9995 test -d "$lt_sys_path" && \
9996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9997 fi
9998 done
3725885a 9999 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
10000BEGIN {RS=" "; FS="/|\n";} {
10001 lt_foo="";
10002 lt_count=0;
10003 for (lt_i = NF; lt_i > 0; lt_i--) {
10004 if ($lt_i != "" && $lt_i != ".") {
10005 if ($lt_i == "..") {
10006 lt_count++;
10007 } else {
10008 if (lt_count == 0) {
10009 lt_foo="/" $lt_i lt_foo;
10010 } else {
10011 lt_count--;
10012 }
10013 }
10014 }
10015 }
10016 if (lt_foo != "") { lt_freq[lt_foo]++; }
10017 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10018}'`
3725885a
RW
10019 # AWK program above erroneously prepends '/' to C:/dos/paths
10020 # for these hosts.
10021 case $host_os in
10022 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10023 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10024 esac
10025 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
10026else
10027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10028fi
10029library_names_spec=
10030libname_spec='lib$name'
10031soname_spec=
10032shrext_cmds=".so"
10033postinstall_cmds=
10034postuninstall_cmds=
10035finish_cmds=
10036finish_eval=
10037shlibpath_var=
10038shlibpath_overrides_runpath=unknown
10039version_type=none
10040dynamic_linker="$host_os ld.so"
10041sys_lib_dlsearch_path_spec="/lib /usr/lib"
10042need_lib_prefix=unknown
10043hardcode_into_libs=no
10044
10045# when you set need_version to no, make sure it does not cause -set_version
10046# flags to be left without arguments
10047need_version=unknown
10048
10049case $host_os in
10050aix3*)
10051 version_type=linux
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10053 shlibpath_var=LIBPATH
10054
10055 # AIX 3 has no versioning support, so we append a major version to the name.
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 ;;
10058
50e7d84b 10059aix[4-9]*)
d7040cdb
SE
10060 version_type=linux
10061 need_lib_prefix=no
10062 need_version=no
10063 hardcode_into_libs=yes
10064 if test "$host_cpu" = ia64; then
10065 # AIX 5 supports IA64
10066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 else
10069 # With GCC up to 2.95.x, collect2 would create an import file
10070 # for dependence libraries. The import file would start with
10071 # the line `#! .'. This would cause the generated library to
10072 # depend on `.', always an invalid library. This was fixed in
10073 # development snapshots of GCC prior to 3.0.
10074 case $host_os in
10075 aix4 | aix4.[01] | aix4.[01].*)
10076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10077 echo ' yes '
10078 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10079 :
10080 else
10081 can_build_shared=no
10082 fi
10083 ;;
10084 esac
10085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10086 # soname into executable. Probably we can add versioning support to
10087 # collect2, so additional links can be useful in future.
10088 if test "$aix_use_runtimelinking" = yes; then
10089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10090 # instead of lib<name>.a to let people know that these are not
10091 # typical AIX shared libraries.
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 else
10094 # We preserve .a as extension for shared libraries through AIX4.2
10095 # and later when we are not doing run time linking.
10096 library_names_spec='${libname}${release}.a $libname.a'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 fi
10099 shlibpath_var=LIBPATH
10100 fi
10101 ;;
10102
10103amigaos*)
718a6fd8
SE
10104 case $host_cpu in
10105 powerpc)
10106 # Since July 2007 AmigaOS4 officially supports .so libraries.
10107 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 ;;
10110 m68k)
d7040cdb
SE
10111 library_names_spec='$libname.ixlibrary $libname.a'
10112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10113 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'
718a6fd8
SE
10114 ;;
10115 esac
d7040cdb
SE
10116 ;;
10117
10118beos*)
10119 library_names_spec='${libname}${shared_ext}'
10120 dynamic_linker="$host_os ld.so"
10121 shlibpath_var=LIBRARY_PATH
10122 ;;
10123
10124bsdi[45]*)
10125 version_type=linux
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10133 # the default ld.so.conf also contains /usr/contrib/lib and
10134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10135 # libtool to hard-code these into programs
10136 ;;
10137
718a6fd8 10138cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10139 version_type=windows
10140 shrext_cmds=".dll"
10141 need_version=no
10142 need_lib_prefix=no
10143
f2c621e4
AS
10144 case $GCC,$host_os in
10145 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10146 library_names_spec='$libname.dll.a'
10147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10148 postinstall_cmds='base_file=`basename \${file}`~
10149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10150 dldir=$destdir/`dirname \$dlpath`~
10151 test -d \$dldir || mkdir -p \$dldir~
10152 $install_prog $dir/$dlname \$dldir/$dlname~
10153 chmod a+x \$dldir/$dlname~
10154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10156 fi'
10157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10158 dlpath=$dir/\$dldll~
10159 $RM \$dlpath'
10160 shlibpath_overrides_runpath=yes
10161
10162 case $host_os in
10163 cygwin*)
10164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10166
10167 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10168 ;;
718a6fd8 10169 mingw* | cegcc*)
d7040cdb
SE
10170 # MinGW DLLs use traditional 'lib' prefix
10171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10172 ;;
10173 pw32*)
10174 # pw32 DLLs use 'pw' prefix rather than 'lib'
10175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176 ;;
10177 esac
10178 ;;
10179
10180 *)
10181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10182 ;;
10183 esac
f2c621e4 10184 dynamic_linker='Win32 ld.exe'
d7040cdb
SE
10185 # FIXME: first we should search . and the directory the executable is in
10186 shlibpath_var=PATH
10187 ;;
10188
10189darwin* | rhapsody*)
10190 dynamic_linker="$host_os dyld"
10191 version_type=darwin
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10195 soname_spec='${libname}${release}${major}$shared_ext'
10196 shlibpath_overrides_runpath=yes
10197 shlibpath_var=DYLD_LIBRARY_PATH
10198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10199
10200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10202 ;;
10203
10204dgux*)
10205 version_type=linux
10206 need_lib_prefix=no
10207 need_version=no
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 ;;
10212
d7040cdb
SE
10213freebsd* | dragonfly*)
10214 # DragonFly does not have aout. When/if they implement a new
10215 # versioning mechanism, adjust this.
10216 if test -x /usr/bin/objformat; then
10217 objformat=`/usr/bin/objformat`
10218 else
10219 case $host_os in
6d2920c8 10220 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10221 *) objformat=elf ;;
10222 esac
10223 fi
10224 version_type=freebsd-$objformat
10225 case $version_type in
10226 freebsd-elf*)
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10228 need_version=no
10229 need_lib_prefix=no
10230 ;;
10231 freebsd-*)
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10233 need_version=yes
10234 ;;
10235 esac
10236 shlibpath_var=LD_LIBRARY_PATH
10237 case $host_os in
6d2920c8 10238 freebsd2.*)
d7040cdb
SE
10239 shlibpath_overrides_runpath=yes
10240 ;;
10241 freebsd3.[01]* | freebsdelf3.[01]*)
10242 shlibpath_overrides_runpath=yes
10243 hardcode_into_libs=yes
10244 ;;
10245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10247 shlibpath_overrides_runpath=no
10248 hardcode_into_libs=yes
10249 ;;
10250 *) # from 4.6 on, and DragonFly
10251 shlibpath_overrides_runpath=yes
10252 hardcode_into_libs=yes
10253 ;;
10254 esac
10255 ;;
10256
3725885a
RW
10257haiku*)
10258 version_type=linux
10259 need_lib_prefix=no
10260 need_version=no
10261 dynamic_linker="$host_os runtime_loader"
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LIBRARY_PATH
10265 shlibpath_overrides_runpath=yes
d85e70a3 10266 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
10267 hardcode_into_libs=yes
10268 ;;
10269
d7040cdb
SE
10270hpux9* | hpux10* | hpux11*)
10271 # Give a soname corresponding to the major version so that dld.sl refuses to
10272 # link against other versions.
10273 version_type=sunos
10274 need_lib_prefix=no
10275 need_version=no
10276 case $host_cpu in
10277 ia64*)
10278 shrext_cmds='.so'
10279 hardcode_into_libs=yes
10280 dynamic_linker="$host_os dld.so"
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 if test "X$HPUX_IA64_MODE" = X32; then
10286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10287 else
10288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10289 fi
10290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10291 ;;
10292 hppa*64*)
10293 shrext_cmds='.sl'
10294 hardcode_into_libs=yes
10295 dynamic_linker="$host_os dld.sl"
10296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10302 ;;
10303 *)
10304 shrext_cmds='.sl'
10305 dynamic_linker="$host_os dld.sl"
10306 shlibpath_var=SHLIB_PATH
10307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 ;;
10311 esac
3725885a 10312 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10313 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10314 # or fails outright, so override atomically:
10315 install_override_mode=555
d7040cdb
SE
10316 ;;
10317
10318interix[3-9]*)
10319 version_type=linux
10320 need_lib_prefix=no
10321 need_version=no
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 ;;
10329
10330irix5* | irix6* | nonstopux*)
10331 case $host_os in
10332 nonstopux*) version_type=nonstopux ;;
10333 *)
10334 if test "$lt_cv_prog_gnu_ld" = yes; then
10335 version_type=linux
10336 else
10337 version_type=irix
10338 fi ;;
10339 esac
10340 need_lib_prefix=no
10341 need_version=no
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10344 case $host_os in
10345 irix5* | nonstopux*)
10346 libsuff= shlibsuff=
10347 ;;
10348 *)
10349 case $LD in # libtool.m4 will add one of these switches to LD
10350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10351 libsuff= shlibsuff= libmagic=32-bit;;
10352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10353 libsuff=32 shlibsuff=N32 libmagic=N32;;
10354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10356 *) libsuff= shlibsuff= libmagic=never-match;;
10357 esac
10358 ;;
10359 esac
10360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10361 shlibpath_overrides_runpath=no
10362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10364 hardcode_into_libs=yes
10365 ;;
10366
10367# No shared lib support for Linux oldld, aout, or coff.
10368linux*oldld* | linux*aout* | linux*coff*)
10369 dynamic_linker=no
10370 ;;
10371
10372# This must be Linux ELF.
6a6859cb
AM
10373
10374# uclinux* changes (here and below) have been submitted to the libtool
10375# project, but have not yet been accepted: they are GCC-local changes
10376# for the time being. (See
10377# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10378linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
d7040cdb
SE
10379 version_type=linux
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 shlibpath_overrides_runpath=no
39144654 10387
d7040cdb 10388 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10390 $as_echo_n "(cached) " >&6
39144654
RW
10391else
10392 lt_cv_shlibpath_overrides_runpath=no
10393 save_LDFLAGS=$LDFLAGS
10394 save_libdir=$libdir
10395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10398/* end confdefs.h. */
10399
10400int
10401main ()
10402{
10403
10404 ;
10405 return 0;
10406}
10407_ACEOF
81ecdfbb
RW
10408if ac_fn_c_try_link "$LINENO"; then :
10409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10410 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10411fi
d7040cdb 10412fi
81ecdfbb
RW
10413rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10415 LDFLAGS=$save_LDFLAGS
10416 libdir=$save_libdir
10417
10418fi
10419
10420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10421
10422 # This implies no fast_install, which is unacceptable.
10423 # Some rework will be needed to allow for fast_install
10424 # before this can be enabled.
10425 hardcode_into_libs=yes
10426
10427 # Append ld.so.conf contents to the search path
10428 if test -f /etc/ld.so.conf; then
3725885a 10429 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' ' '`
f2c621e4 10430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d7040cdb
SE
10431 fi
10432
10433 # We used to test for /lib/ld.so.1 and disable shared libraries on
10434 # powerpc, because MkLinux only supported shared libraries with the
10435 # GNU dynamic linker. Since this was broken with cross compilers,
10436 # most powerpc-linux boxes support dynamic linking these days and
10437 # people can always --disable-shared, the test was removed, and we
10438 # assume the GNU/Linux dynamic linker is in use.
10439 dynamic_linker='GNU/Linux ld.so'
10440 ;;
10441
10442netbsd*)
10443 version_type=sunos
10444 need_lib_prefix=no
10445 need_version=no
10446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10449 dynamic_linker='NetBSD (a.out) ld.so'
10450 else
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 dynamic_linker='NetBSD ld.elf_so'
10454 fi
10455 shlibpath_var=LD_LIBRARY_PATH
10456 shlibpath_overrides_runpath=yes
10457 hardcode_into_libs=yes
10458 ;;
10459
10460newsos6)
10461 version_type=linux
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 shlibpath_overrides_runpath=yes
10465 ;;
10466
10467*nto* | *qnx*)
10468 version_type=qnx
10469 need_lib_prefix=no
10470 need_version=no
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=no
10475 hardcode_into_libs=yes
10476 dynamic_linker='ldqnx.so'
10477 ;;
10478
10479openbsd*)
10480 version_type=sunos
10481 sys_lib_dlsearch_path_spec="/usr/lib"
10482 need_lib_prefix=no
10483 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10484 case $host_os in
10485 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10486 *) need_version=no ;;
10487 esac
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10492 case $host_os in
10493 openbsd2.[89] | openbsd2.[89].*)
10494 shlibpath_overrides_runpath=no
10495 ;;
10496 *)
10497 shlibpath_overrides_runpath=yes
10498 ;;
10499 esac
10500 else
10501 shlibpath_overrides_runpath=yes
10502 fi
10503 ;;
10504
10505os2*)
10506 libname_spec='$name'
10507 shrext_cmds=".dll"
10508 need_lib_prefix=no
10509 library_names_spec='$libname${shared_ext} $libname.a'
10510 dynamic_linker='OS/2 ld.exe'
10511 shlibpath_var=LIBPATH
10512 ;;
10513
10514osf3* | osf4* | osf5*)
10515 version_type=osf
10516 need_lib_prefix=no
10517 need_version=no
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10522 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10523 ;;
10524
10525rdos*)
10526 dynamic_linker=no
10527 ;;
10528
10529solaris*)
10530 version_type=linux
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10537 hardcode_into_libs=yes
10538 # ldd complains unless libraries are executable
10539 postinstall_cmds='chmod +x $lib'
10540 ;;
10541
10542sunos4*)
10543 version_type=sunos
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10548 if test "$with_gnu_ld" = yes; then
10549 need_lib_prefix=no
10550 fi
10551 need_version=yes
10552 ;;
10553
10554sysv4 | sysv4.3*)
10555 version_type=linux
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 case $host_vendor in
10560 sni)
10561 shlibpath_overrides_runpath=no
10562 need_lib_prefix=no
10563 runpath_var=LD_RUN_PATH
10564 ;;
10565 siemens)
10566 need_lib_prefix=no
10567 ;;
10568 motorola)
10569 need_lib_prefix=no
10570 need_version=no
10571 shlibpath_overrides_runpath=no
10572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10573 ;;
10574 esac
10575 ;;
10576
10577sysv4*MP*)
10578 if test -d /usr/nec ;then
10579 version_type=linux
10580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10581 soname_spec='$libname${shared_ext}.$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 fi
10584 ;;
10585
10586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10587 version_type=freebsd-elf
10588 need_lib_prefix=no
10589 need_version=no
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 shlibpath_overrides_runpath=yes
10594 hardcode_into_libs=yes
10595 if test "$with_gnu_ld" = yes; then
10596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10597 else
10598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10599 case $host_os in
10600 sco3.2v5*)
10601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10602 ;;
10603 esac
10604 fi
10605 sys_lib_dlsearch_path_spec='/usr/lib'
10606 ;;
10607
10608tpf*)
10609 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10610 version_type=linux
10611 need_lib_prefix=no
10612 need_version=no
718a6fd8 10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=no
10616 hardcode_into_libs=yes
10617 ;;
10618
10619uts4*)
10620 version_type=linux
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 ;;
10625
6a6859cb
AM
10626# Shared libraries for VwWorks, >= 7 only at this stage
10627# and (fpic) still incompatible with "large" code models
10628# in a few configurations. Only for RTP mode in any case,
10629# and upon explicit request at configure time.
10630vxworks7*)
10631 dynamic_linker=no
10632 case ${with_multisubdir}-${enable_shared} in
10633 *large*)
10634 ;;
10635 *mrtp*-yes)
10636 version_type=linux
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 dynamic_linker="$host_os module_loader"
10642 ;;
10643 esac
10644 ;;
d7040cdb
SE
10645*)
10646 dynamic_linker=no
10647 ;;
10648esac
81ecdfbb
RW
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10650$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10651test "$dynamic_linker" = no && can_build_shared=no
10652
10653variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10654if test "$GCC" = yes; then
10655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10656fi
10657
718a6fd8
SE
10658if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10660fi
10661if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10662 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10663fi
10664
d7040cdb
SE
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
3725885a
RW
10745
10746
10747
10748
10749
d7040cdb
SE
10750
10751
10752
10753
10754
10755
81ecdfbb
RW
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10757$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10758hardcode_action=
10759if test -n "$hardcode_libdir_flag_spec" ||
10760 test -n "$runpath_var" ||
10761 test "X$hardcode_automatic" = "Xyes" ; then
10762
10763 # We can hardcode non-existent directories.
10764 if test "$hardcode_direct" != no &&
10765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10766 # have to relink, otherwise we might link with an installed library
10767 # when we should be linking with a yet-to-be-installed one
10768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10769 test "$hardcode_minus_L" != no; then
10770 # Linking always hardcodes the temporary library directory.
10771 hardcode_action=relink
10772 else
10773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10774 hardcode_action=immediate
10775 fi
10776else
10777 # We cannot hardcode anything, or else we can only hardcode existing
10778 # directories.
10779 hardcode_action=unsupported
10780fi
81ecdfbb
RW
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10782$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10783
10784if test "$hardcode_action" = relink ||
10785 test "$inherit_rpath" = yes; then
10786 # Fast installation is not supported
10787 enable_fast_install=no
10788elif test "$shlibpath_overrides_runpath" = yes ||
10789 test "$enable_shared" = no; then
10790 # Fast installation is not necessary
10791 enable_fast_install=needless
10792fi
10793
10794
10795
10796
10797
10798
10799 if test "x$enable_dlopen" != xyes; then
10800 enable_dlopen=unknown
10801 enable_dlopen_self=unknown
10802 enable_dlopen_self_static=unknown
10803else
10804 lt_cv_dlopen=no
10805 lt_cv_dlopen_libs=
10806
10807 case $host_os in
10808 beos*)
10809 lt_cv_dlopen="load_add_on"
10810 lt_cv_dlopen_libs=
10811 lt_cv_dlopen_self=yes
10812 ;;
10813
718a6fd8 10814 mingw* | pw32* | cegcc*)
d7040cdb
SE
10815 lt_cv_dlopen="LoadLibrary"
10816 lt_cv_dlopen_libs=
10817 ;;
10818
10819 cygwin*)
10820 lt_cv_dlopen="dlopen"
10821 lt_cv_dlopen_libs=
10822 ;;
10823
10824 darwin*)
10825 # if libdl is installed we need to link against it
81ecdfbb
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10827$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10828if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10829 $as_echo_n "(cached) " >&6
d7040cdb
SE
10830else
10831 ac_check_lib_save_LIBS=$LIBS
10832LIBS="-ldl $LIBS"
81ecdfbb 10833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10834/* end confdefs.h. */
10835
81ecdfbb
RW
10836/* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10839#ifdef __cplusplus
10840extern "C"
10841#endif
d7040cdb
SE
10842char dlopen ();
10843int
10844main ()
10845{
81ecdfbb 10846return dlopen ();
d7040cdb
SE
10847 ;
10848 return 0;
10849}
10850_ACEOF
81ecdfbb 10851if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10852 ac_cv_lib_dl_dlopen=yes
10853else
81ecdfbb 10854 ac_cv_lib_dl_dlopen=no
d7040cdb 10855fi
81ecdfbb
RW
10856rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10858LIBS=$ac_check_lib_save_LIBS
10859fi
81ecdfbb
RW
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10861$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10862if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7040cdb
SE
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10864else
10865
10866 lt_cv_dlopen="dyld"
10867 lt_cv_dlopen_libs=
10868 lt_cv_dlopen_self=yes
10869
10870fi
10871
10872 ;;
10873
10874 *)
81ecdfbb 10875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10876if test "x$ac_cv_func_shl_load" = xyes; then :
d7040cdb
SE
10877 lt_cv_dlopen="shl_load"
10878else
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10880$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10881if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 10882 $as_echo_n "(cached) " >&6
d7040cdb
SE
10883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldld $LIBS"
81ecdfbb 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10887/* end confdefs.h. */
10888
81ecdfbb
RW
10889/* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10892#ifdef __cplusplus
10893extern "C"
10894#endif
d7040cdb
SE
10895char shl_load ();
10896int
10897main ()
10898{
81ecdfbb 10899return shl_load ();
d7040cdb
SE
10900 ;
10901 return 0;
10902}
10903_ACEOF
81ecdfbb 10904if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10905 ac_cv_lib_dld_shl_load=yes
10906else
81ecdfbb 10907 ac_cv_lib_dld_shl_load=no
d7040cdb 10908fi
81ecdfbb
RW
10909rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10911LIBS=$ac_check_lib_save_LIBS
10912fi
81ecdfbb
RW
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10914$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10915if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 10916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10917else
81ecdfbb 10918 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10919if test "x$ac_cv_func_dlopen" = xyes; then :
81ecdfbb 10920 lt_cv_dlopen="dlopen"
d7040cdb 10921else
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10923$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10924if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb
RW
10925 $as_echo_n "(cached) " >&6
10926else
10927 ac_check_lib_save_LIBS=$LIBS
10928LIBS="-ldl $LIBS"
10929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10930/* end confdefs.h. */
d7040cdb 10931
81ecdfbb
RW
10932/* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10935#ifdef __cplusplus
10936extern "C"
d7040cdb 10937#endif
d7040cdb 10938char dlopen ();
d7040cdb
SE
10939int
10940main ()
10941{
81ecdfbb 10942return dlopen ();
d7040cdb
SE
10943 ;
10944 return 0;
10945}
10946_ACEOF
81ecdfbb
RW
10947if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dl_dlopen=yes
d7040cdb 10949else
81ecdfbb 10950 ac_cv_lib_dl_dlopen=no
d7040cdb 10951fi
81ecdfbb
RW
10952rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954LIBS=$ac_check_lib_save_LIBS
d7040cdb 10955fi
81ecdfbb
RW
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10957$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10958if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
81ecdfbb 10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10960else
81ecdfbb
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10962$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10963if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10964 $as_echo_n "(cached) " >&6
d7040cdb
SE
10965else
10966 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10967LIBS="-lsvld $LIBS"
10968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10969/* end confdefs.h. */
10970
81ecdfbb
RW
10971/* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10974#ifdef __cplusplus
10975extern "C"
10976#endif
d7040cdb
SE
10977char dlopen ();
10978int
10979main ()
10980{
81ecdfbb 10981return dlopen ();
d7040cdb
SE
10982 ;
10983 return 0;
10984}
10985_ACEOF
81ecdfbb
RW
10986if ac_fn_c_try_link "$LINENO"; then :
10987 ac_cv_lib_svld_dlopen=yes
d7040cdb 10988else
81ecdfbb 10989 ac_cv_lib_svld_dlopen=no
d7040cdb 10990fi
81ecdfbb
RW
10991rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10993LIBS=$ac_check_lib_save_LIBS
10994fi
81ecdfbb
RW
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10996$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10997if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
81ecdfbb 10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 10999else
81ecdfbb
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11001$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11002if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11003 $as_echo_n "(cached) " >&6
d7040cdb
SE
11004else
11005 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
11006LIBS="-ldld $LIBS"
11007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11008/* end confdefs.h. */
11009
81ecdfbb
RW
11010/* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11013#ifdef __cplusplus
11014extern "C"
11015#endif
81ecdfbb 11016char dld_link ();
d7040cdb
SE
11017int
11018main ()
11019{
81ecdfbb 11020return dld_link ();
d7040cdb
SE
11021 ;
11022 return 0;
11023}
11024_ACEOF
81ecdfbb 11025if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11026 ac_cv_lib_dld_dld_link=yes
11027else
81ecdfbb 11028 ac_cv_lib_dld_dld_link=no
d7040cdb 11029fi
81ecdfbb
RW
11030rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11032LIBS=$ac_check_lib_save_LIBS
11033fi
81ecdfbb
RW
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11035$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11036if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 11037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11038fi
11039
11040
11041fi
11042
11043
11044fi
11045
11046
11047fi
11048
11049
11050fi
11051
11052
11053fi
11054
11055 ;;
11056 esac
11057
11058 if test "x$lt_cv_dlopen" != xno; then
11059 enable_dlopen=yes
11060 else
11061 enable_dlopen=no
11062 fi
11063
11064 case $lt_cv_dlopen in
11065 dlopen)
11066 save_CPPFLAGS="$CPPFLAGS"
11067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11068
11069 save_LDFLAGS="$LDFLAGS"
11070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11071
11072 save_LIBS="$LIBS"
11073 LIBS="$lt_cv_dlopen_libs $LIBS"
11074
81ecdfbb
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11076$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11077if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11078 $as_echo_n "(cached) " >&6
d7040cdb
SE
11079else
11080 if test "$cross_compiling" = yes; then :
11081 lt_cv_dlopen_self=cross
11082else
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<_LT_EOF
3f8f9745 11086#line 11086 "configure"
d7040cdb
SE
11087#include "confdefs.h"
11088
11089#if HAVE_DLFCN_H
11090#include <dlfcn.h>
11091#endif
11092
11093#include <stdio.h>
11094
11095#ifdef RTLD_GLOBAL
11096# define LT_DLGLOBAL RTLD_GLOBAL
11097#else
11098# ifdef DL_GLOBAL
11099# define LT_DLGLOBAL DL_GLOBAL
11100# else
11101# define LT_DLGLOBAL 0
11102# endif
11103#endif
11104
11105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106 find out it does not work in some platform. */
11107#ifndef LT_DLLAZY_OR_NOW
11108# ifdef RTLD_LAZY
11109# define LT_DLLAZY_OR_NOW RTLD_LAZY
11110# else
11111# ifdef DL_LAZY
11112# define LT_DLLAZY_OR_NOW DL_LAZY
11113# else
11114# ifdef RTLD_NOW
11115# define LT_DLLAZY_OR_NOW RTLD_NOW
11116# else
11117# ifdef DL_NOW
11118# define LT_DLLAZY_OR_NOW DL_NOW
11119# else
11120# define LT_DLLAZY_OR_NOW 0
11121# endif
11122# endif
11123# endif
11124# endif
11125#endif
11126
3725885a
RW
11127/* When -fvisbility=hidden is used, assume the code has been annotated
11128 correspondingly for the symbols needed. */
11129#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11130void fnord () __attribute__((visibility("default")));
3725885a
RW
11131#endif
11132
f2c621e4 11133void fnord () { int i=42; }
d7040cdb
SE
11134int main ()
11135{
11136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11137 int status = $lt_dlunknown;
11138
11139 if (self)
11140 {
11141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11142 else
11143 {
11144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11145 else puts (dlerror ());
11146 }
d7040cdb
SE
11147 /* dlclose (self); */
11148 }
11149 else
11150 puts (dlerror ());
11151
718a6fd8 11152 return status;
d7040cdb
SE
11153}
11154_LT_EOF
81ecdfbb 11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
81ecdfbb
RW
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11160 (./conftest; exit; ) >&5 2>/dev/null
11161 lt_status=$?
11162 case x$lt_status in
11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11166 esac
11167 else :
11168 # compilation failed
11169 lt_cv_dlopen_self=no
11170 fi
11171fi
11172rm -fr conftest*
11173
11174
11175fi
81ecdfbb
RW
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11177$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11178
11179 if test "x$lt_cv_dlopen_self" = xyes; then
11180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11182$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11183if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11184 $as_echo_n "(cached) " >&6
d7040cdb
SE
11185else
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self_static=cross
11188else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<_LT_EOF
3f8f9745 11192#line 11192 "configure"
d7040cdb
SE
11193#include "confdefs.h"
11194
11195#if HAVE_DLFCN_H
11196#include <dlfcn.h>
11197#endif
11198
11199#include <stdio.h>
11200
11201#ifdef RTLD_GLOBAL
11202# define LT_DLGLOBAL RTLD_GLOBAL
11203#else
11204# ifdef DL_GLOBAL
11205# define LT_DLGLOBAL DL_GLOBAL
11206# else
11207# define LT_DLGLOBAL 0
11208# endif
11209#endif
11210
11211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213#ifndef LT_DLLAZY_OR_NOW
11214# ifdef RTLD_LAZY
11215# define LT_DLLAZY_OR_NOW RTLD_LAZY
11216# else
11217# ifdef DL_LAZY
11218# define LT_DLLAZY_OR_NOW DL_LAZY
11219# else
11220# ifdef RTLD_NOW
11221# define LT_DLLAZY_OR_NOW RTLD_NOW
11222# else
11223# ifdef DL_NOW
11224# define LT_DLLAZY_OR_NOW DL_NOW
11225# else
11226# define LT_DLLAZY_OR_NOW 0
11227# endif
11228# endif
11229# endif
11230# endif
11231#endif
11232
3725885a
RW
11233/* When -fvisbility=hidden is used, assume the code has been annotated
11234 correspondingly for the symbols needed. */
11235#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11236void fnord () __attribute__((visibility("default")));
3725885a
RW
11237#endif
11238
f2c621e4 11239void fnord () { int i=42; }
d7040cdb
SE
11240int main ()
11241{
11242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11243 int status = $lt_dlunknown;
11244
11245 if (self)
11246 {
11247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11248 else
11249 {
11250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11251 else puts (dlerror ());
11252 }
d7040cdb
SE
11253 /* dlclose (self); */
11254 }
11255 else
11256 puts (dlerror ());
11257
718a6fd8 11258 return status;
d7040cdb
SE
11259}
11260_LT_EOF
81ecdfbb 11261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11262 (eval $ac_link) 2>&5
11263 ac_status=$?
81ecdfbb
RW
11264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11266 (./conftest; exit; ) >&5 2>/dev/null
11267 lt_status=$?
11268 case x$lt_status in
11269 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11271 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11272 esac
11273 else :
11274 # compilation failed
11275 lt_cv_dlopen_self_static=no
11276 fi
11277fi
11278rm -fr conftest*
11279
11280
11281fi
81ecdfbb
RW
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11283$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11284 fi
11285
11286 CPPFLAGS="$save_CPPFLAGS"
11287 LDFLAGS="$save_LDFLAGS"
11288 LIBS="$save_LIBS"
11289 ;;
11290 esac
11291
11292 case $lt_cv_dlopen_self in
11293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11294 *) enable_dlopen_self=unknown ;;
11295 esac
11296
11297 case $lt_cv_dlopen_self_static in
11298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11299 *) enable_dlopen_self_static=unknown ;;
11300 esac
11301fi
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319striplib=
11320old_striplib=
81ecdfbb
RW
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11322$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11323if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11327$as_echo "yes" >&6; }
d7040cdb
SE
11328else
11329# FIXME - insert some real tests, host_os isn't really good enough
11330 case $host_os in
11331 darwin*)
11332 if test -n "$STRIP" ; then
11333 striplib="$STRIP -x"
11334 old_striplib="$STRIP -S"
81ecdfbb
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336$as_echo "yes" >&6; }
d7040cdb 11337 else
81ecdfbb
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
d7040cdb
SE
11340 fi
11341 ;;
11342 *)
81ecdfbb
RW
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344$as_echo "no" >&6; }
d7040cdb
SE
11345 ;;
11346 esac
11347fi
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360 # Report which library types will actually be built
81ecdfbb
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11362$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11364$as_echo "$can_build_shared" >&6; }
d7040cdb 11365
81ecdfbb
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11367$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11368 test "$can_build_shared" = "no" && enable_shared=no
11369
11370 # On AIX, shared libraries and static libraries use the same namespace, and
11371 # are all built from PIC.
11372 case $host_os in
11373 aix3*)
11374 test "$enable_shared" = yes && enable_static=no
11375 if test -n "$RANLIB"; then
11376 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11377 postinstall_cmds='$RANLIB $lib'
11378 fi
11379 ;;
11380
50e7d84b 11381 aix[4-9]*)
d7040cdb
SE
11382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11383 test "$enable_shared" = yes && enable_static=no
11384 fi
11385 ;;
11386 esac
81ecdfbb
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11388$as_echo "$enable_shared" >&6; }
d7040cdb 11389
81ecdfbb
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11391$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11392 # Make sure either enable_shared or enable_static is yes.
11393 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11395$as_echo "$enable_static" >&6; }
d7040cdb
SE
11396
11397
11398
11399
11400fi
11401ac_ext=c
11402ac_cpp='$CPP $CPPFLAGS'
11403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406
11407CC="$lt_save_CC"
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
81ecdfbb 11421 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11422
11423
11424
11425
11426# Only expand once:
11427
11428
11429
b879806f
AM
11430# The tests for host and target for $enable_largefile require
11431# canonical names.
11432
11433
11434
11435# As the $enable_largefile decision depends on --enable-plugins we must set it
11436# even in directories otherwise not depending on the $plugins option.
11437
11438
11439 maybe_plugins=no
11440 for ac_header in dlfcn.h
11441do :
11442 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11443"
d0ac1c44 11444if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11445 cat >>confdefs.h <<_ACEOF
11446#define HAVE_DLFCN_H 1
11447_ACEOF
11448 maybe_plugins=yes
11449fi
11450
11451done
11452
11453 for ac_header in windows.h
11454do :
11455 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11456"
d0ac1c44 11457if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11458 cat >>confdefs.h <<_ACEOF
11459#define HAVE_WINDOWS_H 1
11460_ACEOF
11461 maybe_plugins=yes
11462fi
11463
11464done
11465
11466
11467 # Check whether --enable-plugins was given.
11468if test "${enable_plugins+set}" = set; then :
11469 enableval=$enable_plugins; case "${enableval}" in
11470 no) plugins=no ;;
11471 *) plugins=yes
11472 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11473 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11474 fi ;;
11475 esac
11476else
11477 plugins=$maybe_plugins
11478
11479fi
11480
2974be62 11481 if test "$plugins" = "yes"; then
3cba8b6c
L
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11483$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11484if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11485 $as_echo_n "(cached) " >&6
11486else
11487 ac_func_search_save_LIBS=$LIBS
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
3cba8b6c 11497char dlsym ();
2974be62
AM
11498int
11499main ()
11500{
3cba8b6c 11501return dlsym ();
2974be62
AM
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506for ac_lib in '' dl; do
11507 if test -z "$ac_lib"; then
11508 ac_res="none required"
11509 else
11510 ac_res=-l$ac_lib
11511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11512 fi
11513 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11514 ac_cv_search_dlsym=$ac_res
2974be62
AM
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext
d0ac1c44 11518 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11519 break
11520fi
11521done
d0ac1c44 11522if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11523
11524else
3cba8b6c 11525 ac_cv_search_dlsym=no
2974be62
AM
11526fi
11527rm conftest.$ac_ext
11528LIBS=$ac_func_search_save_LIBS
11529fi
3cba8b6c
L
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11531$as_echo "$ac_cv_search_dlsym" >&6; }
11532ac_res=$ac_cv_search_dlsym
2974be62
AM
11533if test "$ac_res" != no; then :
11534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11535
11536fi
11537
11538 fi
b879806f
AM
11539
11540
11541case "${host}" in
c8693053
RO
11542 sparc-*-solaris*|i?86-*-solaris*)
11543 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11544 # were mutually exclusive until Solaris 11.3. Without procfs support,
11545 # the bfd/ elf module cannot provide certain routines such as
11546 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11547 # explicitly requested large-file support through the
11548 # --enable-largefile switch, disable large-file support in favor of
11549 # procfs support.
11550 #
11551 # Check if <sys/procfs.h> is incompatible with large-file support.
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553/* end confdefs.h. */
11554#define _FILE_OFFSET_BITS 64
11555#define _STRUCTURED_PROC 1
11556#include <sys/procfs.h>
11557int
11558main ()
11559{
11560
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_compile "$LINENO"; then :
11566 acx_cv_procfs_lfs=yes
11567else
11568 acx_cv_procfs_lfs=no
11569fi
11570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571 #
11572 # Forcefully disable large-file support only if necessary, gdb is in
11573 # tree and enabled.
11574 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11575 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11576 : ${enable_largefile="no"}
11577 if test "$plugins" = yes; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11579plugin support disabled; require large-file support which is incompatible with GDB." >&5
11580$as_echo "$as_me: WARNING:
11581plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11582 plugins=no
11583 fi
11584 fi
11585 #
11586 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11587 # benefit of g++ 9+ which predefines it on Solaris.
11588 if test "$enable_largefile" = no; then
11589 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11590
11591 fi
b879806f
AM
11592 ;;
11593esac
11594
11595# Check whether --enable-largefile was given.
11596if test "${enable_largefile+set}" = set; then :
11597 enableval=$enable_largefile;
11598fi
11599
11600if test "$enable_largefile" != no; then
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11603$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11604if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11605 $as_echo_n "(cached) " >&6
11606else
11607 ac_cv_sys_largefile_CC=no
11608 if test "$GCC" != yes; then
11609 ac_save_CC=$CC
11610 while :; do
11611 # IRIX 6.2 and later do not support large files by default,
11612 # so use the C compiler's -n32 option if that helps.
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614/* end confdefs.h. */
11615#include <sys/types.h>
11616 /* Check that off_t can represent 2**63 - 1 correctly.
11617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11618 since some C++ compilers masquerading as C compilers
11619 incorrectly reject 9223372036854775807. */
e0b2a78c 11620#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11622 && LARGE_OFF_T % 2147483647 == 1)
11623 ? 1 : -1];
11624int
11625main ()
11626{
11627
11628 ;
11629 return 0;
11630}
11631_ACEOF
11632 if ac_fn_c_try_compile "$LINENO"; then :
11633 break
11634fi
11635rm -f core conftest.err conftest.$ac_objext
11636 CC="$CC -n32"
11637 if ac_fn_c_try_compile "$LINENO"; then :
11638 ac_cv_sys_largefile_CC=' -n32'; break
11639fi
11640rm -f core conftest.err conftest.$ac_objext
11641 break
11642 done
11643 CC=$ac_save_CC
11644 rm -f conftest.$ac_ext
11645 fi
11646fi
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11648$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11649 if test "$ac_cv_sys_largefile_CC" != no; then
11650 CC=$CC$ac_cv_sys_largefile_CC
11651 fi
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11654$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11655if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11656 $as_echo_n "(cached) " >&6
11657else
11658 while :; do
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660/* end confdefs.h. */
11661#include <sys/types.h>
11662 /* Check that off_t can represent 2**63 - 1 correctly.
11663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11664 since some C++ compilers masquerading as C compilers
11665 incorrectly reject 9223372036854775807. */
e0b2a78c 11666#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11668 && LARGE_OFF_T % 2147483647 == 1)
11669 ? 1 : -1];
11670int
11671main ()
11672{
11673
11674 ;
11675 return 0;
11676}
11677_ACEOF
11678if ac_fn_c_try_compile "$LINENO"; then :
11679 ac_cv_sys_file_offset_bits=no; break
11680fi
11681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h. */
11684#define _FILE_OFFSET_BITS 64
11685#include <sys/types.h>
11686 /* Check that off_t can represent 2**63 - 1 correctly.
11687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11688 since some C++ compilers masquerading as C compilers
11689 incorrectly reject 9223372036854775807. */
e0b2a78c 11690#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11692 && LARGE_OFF_T % 2147483647 == 1)
11693 ? 1 : -1];
11694int
11695main ()
11696{
11697
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_compile "$LINENO"; then :
11703 ac_cv_sys_file_offset_bits=64; break
11704fi
11705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706 ac_cv_sys_file_offset_bits=unknown
11707 break
11708done
11709fi
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11711$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11712case $ac_cv_sys_file_offset_bits in #(
11713 no | unknown) ;;
11714 *)
11715cat >>confdefs.h <<_ACEOF
11716#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11717_ACEOF
11718;;
11719esac
11720rm -rf conftest*
11721 if test $ac_cv_sys_file_offset_bits = unknown; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11723$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11724if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11725 $as_echo_n "(cached) " >&6
11726else
11727 while :; do
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729/* end confdefs.h. */
11730#include <sys/types.h>
11731 /* Check that off_t can represent 2**63 - 1 correctly.
11732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11733 since some C++ compilers masquerading as C compilers
11734 incorrectly reject 9223372036854775807. */
e0b2a78c 11735#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11737 && LARGE_OFF_T % 2147483647 == 1)
11738 ? 1 : -1];
11739int
11740main ()
11741{
11742
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747if ac_fn_c_try_compile "$LINENO"; then :
11748 ac_cv_sys_large_files=no; break
11749fi
11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752/* end confdefs.h. */
11753#define _LARGE_FILES 1
11754#include <sys/types.h>
11755 /* Check that off_t can represent 2**63 - 1 correctly.
11756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11757 since some C++ compilers masquerading as C compilers
11758 incorrectly reject 9223372036854775807. */
e0b2a78c 11759#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11761 && LARGE_OFF_T % 2147483647 == 1)
11762 ? 1 : -1];
11763int
11764main ()
11765{
11766
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771if ac_fn_c_try_compile "$LINENO"; then :
11772 ac_cv_sys_large_files=1; break
11773fi
11774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 ac_cv_sys_large_files=unknown
11776 break
11777done
11778fi
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11780$as_echo "$ac_cv_sys_large_files" >&6; }
11781case $ac_cv_sys_large_files in #(
11782 no | unknown) ;;
11783 *)
11784cat >>confdefs.h <<_ACEOF
11785#define _LARGE_FILES $ac_cv_sys_large_files
11786_ACEOF
11787;;
11788esac
11789rm -rf conftest*
11790 fi
d0ac1c44
SM
11791
11792
b879806f
AM
11793fi
11794
11795
11796
43e05cd4
AM
11797ac_checking=
11798. ${srcdir}/../bfd/development.sh
11799test "$development" = true && ac_checking=yes
11800# Check whether --enable-checking was given.
11801if test "${enable_checking+set}" = set; then :
11802 enableval=$enable_checking; case "${enableval}" in
11803 no|none) ac_checking= ;;
11804 *) ac_checking=yes ;;
11805esac
11806fi
11807if test x$ac_checking != x ; then
11808
11809$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11810
11811fi
11812
81ecdfbb
RW
11813# Check whether --enable-targets was given.
11814if test "${enable_targets+set}" = set; then :
11815 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11816 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11817 ;;
11818 no) enable_targets= ;;
11819 *) enable_targets=$enableval ;;
11820esac
81ecdfbb
RW
11821fi
11822
e6f6aa8d 11823
9cb80f72
RM
11824# Check whether --enable-deterministic-archives was given.
11825if test "${enable_deterministic_archives+set}" = set; then :
11826 enableval=$enable_deterministic_archives;
11827if test "${enableval}" = no; then
11828 default_ar_deterministic=0
11829else
11830 default_ar_deterministic=1
11831fi
11832else
11833 default_ar_deterministic=0
11834fi
11835
11836
11837
11838cat >>confdefs.h <<_ACEOF
11839#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11840_ACEOF
11841
11842
e6f6aa8d 11843
7fac9594
NC
11844# Check whether --enable-default-strings-all was given.
11845if test "${enable_default_strings_all+set}" = set; then :
11846 enableval=$enable_default_strings_all;
11847if test "${enableval}" = no; then
11848 default_strings_all=0
11849else
11850 default_strings_all=1
11851fi
11852else
11853 default_strings_all=1
11854fi
11855
11856
11857
e6f6aa8d
NC
11858cat >>confdefs.h <<_ACEOF
11859#define DEFAULT_STRINGS_ALL $default_strings_all
11860_ACEOF
11861
11862
11863
11864# Check whether --enable-f-for-ifunc-symbols was given.
11865if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11866 enableval=$enable_f_for_ifunc_symbols;
11867if test "${enableval}" = no; then
11868 default_f_for_ifunc=0
11869else
11870 default_f_for_ifunc=1
11871fi
11872else
11873 default_f_for_ifunc=0
11874fi
11875
11876
11877
11878cat >>confdefs.h <<_ACEOF
11879#define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11880_ACEOF
11881
11882
11883
c46b7066
NC
11884# Check whether --enable-follow-debug-links was given.
11885if test "${enable_follow_debug_links+set}" = set; then :
11886 enableval=$enable_follow_debug_links;
11887if test "${enableval}" = no; then
11888 default_for_follow_links=0
11889else
11890 default_for_follow_links=1
11891fi
11892else
11893 default_for_follow_links=1
11894fi
11895
11896
11897
11898cat >>confdefs.h <<_ACEOF
11899#define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11900_ACEOF
11901
11902
11903
11904
f6720b1c 11905
18bf5643
NC
11906# Check whether --enable-colored-disassembly was given.
11907if test "${enable_colored_disassembly+set}" = set; then :
11908 enableval=$enable_colored_disassembly;
11909if test "${enableval}" = no; then
11910 default_for_colored_disassembly=0
11911else
11912 default_for_colored_disassembly=1
11913fi
11914else
11915 default_for_colored_disassembly=0
11916fi
11917
11918
11919
11920cat >>confdefs.h <<_ACEOF
11921#define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly
11922_ACEOF
11923
11924
11925
11926
11927
f6720b1c
AM
11928
11929
11930
11931
11932
11933if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11934 if test -n "$ac_tool_prefix"; then
11935 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11936set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938$as_echo_n "checking for $ac_word... " >&6; }
11939if ${ac_cv_path_PKG_CONFIG+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941else
11942 case $PKG_CONFIG in
11943 [\\/]* | ?:[\\/]*)
11944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11945 ;;
11946 *)
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958done
11959 done
11960IFS=$as_save_IFS
11961
11962 ;;
11963esac
11964fi
11965PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11966if test -n "$PKG_CONFIG"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11968$as_echo "$PKG_CONFIG" >&6; }
11969else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
11972fi
11973
11974
11975fi
11976if test -z "$ac_cv_path_PKG_CONFIG"; then
11977 ac_pt_PKG_CONFIG=$PKG_CONFIG
11978 # Extract the first word of "pkg-config", so it can be a program name with args.
11979set dummy pkg-config; ac_word=$2
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981$as_echo_n "checking for $ac_word... " >&6; }
11982if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984else
11985 case $ac_pt_PKG_CONFIG in
11986 [\\/]* | ?:[\\/]*)
11987 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11988 ;;
11989 *)
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991for as_dir in $PATH
11992do
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 break 2
12000 fi
12001done
12002 done
12003IFS=$as_save_IFS
12004
12005 ;;
12006esac
12007fi
12008ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12009if test -n "$ac_pt_PKG_CONFIG"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12011$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12012else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
12015fi
12016
12017 if test "x$ac_pt_PKG_CONFIG" = x; then
12018 PKG_CONFIG=""
12019 else
12020 case $cross_compiling:$ac_tool_warned in
12021yes:)
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12024ac_tool_warned=yes ;;
12025esac
12026 PKG_CONFIG=$ac_pt_PKG_CONFIG
12027 fi
12028else
12029 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12030fi
12031
12032fi
12033if test -n "$PKG_CONFIG"; then
12034 _pkg_min_version=0.9.0
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12036$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12037 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12039$as_echo "yes" >&6; }
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
12043 PKG_CONFIG=""
12044 fi
12045fi
12046
28bc4951
AM
12047# Handle optional debuginfod support as well as optional section
12048# downloading support.
12049#
12050# Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
12051#
12052# Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
12053# version >= 0.188.
301a9420
AM
12054
12055# Check whether --with-debuginfod was given.
12056if test "${with_debuginfod+set}" = set; then :
12057 withval=$with_debuginfod;
12058else
12059 with_debuginfod=auto
12060fi
12061
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
12063$as_echo_n "checking whether to use debuginfod... " >&6; }
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
12065$as_echo "$with_debuginfod" >&6; }
12066
f6720b1c 12067if test "x$with_debuginfod" != xno; then
301a9420 12068
28bc4951
AM
12069pkg_failed=no
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
12071$as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
12072
12073if test -n "$DEBUGINFOD_CFLAGS"; then
12074 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
12075 elif test -n "$PKG_CONFIG"; then
12076 if test -n "$PKG_CONFIG" && \
12077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
12078 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
12079 ac_status=$?
12080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12081 test $ac_status = 0; }; then
12082 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
12083 test "x$?" != "x0" && pkg_failed=yes
12084else
12085 pkg_failed=yes
12086fi
12087 else
12088 pkg_failed=untried
12089fi
12090if test -n "$DEBUGINFOD_LIBS"; then
12091 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
12092 elif test -n "$PKG_CONFIG"; then
12093 if test -n "$PKG_CONFIG" && \
12094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
12095 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
12096 ac_status=$?
12097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098 test $ac_status = 0; }; then
12099 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
12100 test "x$?" != "x0" && pkg_failed=yes
12101else
12102 pkg_failed=yes
12103fi
12104 else
12105 pkg_failed=untried
12106fi
12107
12108if test $pkg_failed = no; then
12109 pkg_save_LDFLAGS="$LDFLAGS"
12110 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h. */
12113
12114int
12115main ()
12116{
12117
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122if ac_fn_c_try_link "$LINENO"; then :
12123
12124else
12125 pkg_failed=yes
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LDFLAGS=$pkg_save_LDFLAGS
12130fi
12131
12132
12133
12134if test $pkg_failed = yes; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136$as_echo "no" >&6; }
12137
12138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12139 _pkg_short_errors_supported=yes
12140else
12141 _pkg_short_errors_supported=no
12142fi
12143 if test $_pkg_short_errors_supported = yes; then
12144 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
12145 else
12146 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
12147 fi
12148 # Put the nasty error message in config.log where it belongs
12149 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12150
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
12152$as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
12153elif test $pkg_failed = untried; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
12157$as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
12158else
12159 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12160 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162$as_echo "yes" >&6; }
12163
12164$as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
12165
12166fi
12167
12168
f6720b1c
AM
12169pkg_failed=no
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
12171$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
12172
12173if test -n "$DEBUGINFOD_CFLAGS"; then
12174 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
12175 elif test -n "$PKG_CONFIG"; then
12176 if test -n "$PKG_CONFIG" && \
12177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
12178 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
12179 ac_status=$?
12180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12181 test $ac_status = 0; }; then
12182 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
12183 test "x$?" != "x0" && pkg_failed=yes
301a9420 12184else
f6720b1c 12185 pkg_failed=yes
301a9420 12186fi
f6720b1c
AM
12187 else
12188 pkg_failed=untried
301a9420 12189fi
f6720b1c
AM
12190if test -n "$DEBUGINFOD_LIBS"; then
12191 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
12192 elif test -n "$PKG_CONFIG"; then
12193 if test -n "$PKG_CONFIG" && \
12194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
12195 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
12196 ac_status=$?
12197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12198 test $ac_status = 0; }; then
12199 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
12200 test "x$?" != "x0" && pkg_failed=yes
12201else
12202 pkg_failed=yes
301a9420 12203fi
f6720b1c
AM
12204 else
12205 pkg_failed=untried
301a9420
AM
12206fi
12207
377170fa
L
12208if test $pkg_failed = no; then
12209 pkg_save_LDFLAGS="$LDFLAGS"
12210 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d70f978b
L
12212/* end confdefs.h. */
12213
12214int
12215main ()
12216{
377170fa 12217
d70f978b
L
12218 ;
12219 return 0;
12220}
12221_ACEOF
12222if ac_fn_c_try_link "$LINENO"; then :
377170fa 12223
d70f978b
L
12224else
12225 pkg_failed=yes
12226fi
12227rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
377170fa
L
12229 LDFLAGS=$pkg_save_LDFLAGS
12230fi
d70f978b 12231
301a9420 12232
301a9420 12233
f6720b1c
AM
12234if test $pkg_failed = yes; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
301a9420 12237
f6720b1c
AM
12238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12239 _pkg_short_errors_supported=yes
12240else
12241 _pkg_short_errors_supported=no
12242fi
12243 if test $_pkg_short_errors_supported = yes; then
12244 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12245 else
12246 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12247 fi
12248 # Put the nasty error message in config.log where it belongs
12249 echo "$DEBUGINFOD_PKG_ERRORS" >&5
301a9420 12250
f6720b1c
AM
12251 if test "x$with_debuginfod" = xyes; then
12252 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12255$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12256 fi
12257elif test $pkg_failed = untried; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
12260 if test "x$with_debuginfod" = xyes; then
12261 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12262 else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12264$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12265 fi
12266else
12267 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12268 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270$as_echo "yes" >&6; }
12271
12272$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12273
12274fi
12275else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12277$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
301a9420
AM
12278fi
12279
12280
094e34f2
NA
12281 # Check whether --enable-libctf was given.
12282if test "${enable_libctf+set}" = set; then :
12283 enableval=$enable_libctf;
12284 case "$enableval" in
12285 yes|no) ;;
12286 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12287 esac
12288
12289else
12290 enable_libctf=yes
12291fi
12292
12293
12294if test "${enable_libctf}" = yes; then
12295
12296$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12297
12298fi
12299 if test "${enable_libctf}" = yes; then
12300 ENABLE_LIBCTF_TRUE=
12301 ENABLE_LIBCTF_FALSE='#'
12302else
12303 ENABLE_LIBCTF_TRUE='#'
12304 ENABLE_LIBCTF_FALSE=
12305fi
12306
12307
d7040cdb 12308
270c9937
JB
12309# Set the 'development' global.
12310. $srcdir/../bfd/development.sh
12311
c5da1932
VZ
12312# Set acp_cpp_for_build variable
12313ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12314
9780e045 12315# Default set of GCC warnings to enable.
397841b5 12316GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12317GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12318
12319# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
12320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321/* end confdefs.h. */
12322__GNUC__
12323_ACEOF
12324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12325 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
12326
12327else
12328 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12329fi
12330rm -f conftest*
12331
d7040cdb 12332
9780e045
NC
12333# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335/* end confdefs.h. */
12336__GNUC__
12337_ACEOF
12338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12339 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
12340
12341else
491cf317
TO
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h. */
12344__clang__
12345_ACEOF
12346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12347 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9780e045
NC
12348 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12349fi
12350rm -f conftest*
12351
491cf317
TO
12352fi
12353rm -f conftest*
12354
9780e045 12355
6757cf57
TS
12356# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12357WARN_WRITE_STRINGS=""
12358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h. */
12360__GNUC__
12361_ACEOF
12362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12363 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12364
12365else
12366 WARN_WRITE_STRINGS="-Wwrite-strings"
12367fi
12368rm -f conftest*
12369
9780e045 12370
96fe4562 12371# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12372
12373# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h. */
12376__GNUC__
12377_ACEOF
12378if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12379 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12380
12381else
12382 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12383fi
12384rm -f conftest*
12385
12386
12387# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389/* end confdefs.h. */
12390__GNUC__
12391_ACEOF
12392if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12393 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12394
12395else
491cf317
TO
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h. */
12398__clang__
12399_ACEOF
12400if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12401 $EGREP "^__clang__$" >/dev/null 2>&1; then :
c5da1932
VZ
12402 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12403fi
12404rm -f conftest*
12405
491cf317
TO
12406fi
12407rm -f conftest*
12408
c5da1932 12409
81ecdfbb
RW
12410# Check whether --enable-werror was given.
12411if test "${enable_werror+set}" = set; then :
12412 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12413 yes | y) ERROR_ON_WARNING="yes" ;;
12414 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12415 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12416 esac
81ecdfbb
RW
12417fi
12418
d7040cdb 12419
397841b5 12420# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12421case "${host}" in
12422 *-*-mingw32*)
12423 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12424 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12425 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12426 fi
12427 ;;
12428 *) ;;
12429esac
12430
270c9937
JB
12431# Enable -Werror by default when using gcc. Turn it off for releases.
12432if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12433 ERROR_ON_WARNING=yes
12434fi
12435
12436NO_WERROR=
12437if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12438 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12439 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12440 NO_WERROR="-Wno-error"
12441fi
12442
12443if test "${GCC}" = yes ; then
12444 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12445 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12446fi
12447
81ecdfbb
RW
12448# Check whether --enable-build-warnings was given.
12449if test "${enable_build_warnings+set}" = set; then :
12450 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12451 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12452 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12453 no) if test "${GCC}" = yes ; then
12454 WARN_CFLAGS="-w"
c5da1932 12455 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12456 fi;;
12457 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12458 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12459 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12460 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12461 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12462 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12463 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12464 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d7040cdb 12465esac
81ecdfbb
RW
12466fi
12467
d7040cdb
SE
12468
12469if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12470 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12471fi
12472
12473
12474
12475
12476
6757cf57 12477
c5da1932 12478
81ecdfbb 12479ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12480
12481
df7b86aa
NC
12482
12483
d7040cdb 12484if test -z "$target" ; then
d0ac1c44 12485 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12486fi
12487if test -z "$host" ; then
d0ac1c44 12488 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12489fi
12490
12491for ac_prog in 'bison -y' byacc
12492do
12493 # Extract the first word of "$ac_prog", so it can be a program name with args.
12494set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12497if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 12498 $as_echo_n "(cached) " >&6
d7040cdb
SE
12499else
12500 if test -n "$YACC"; then
12501 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12502else
12503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504for as_dir in $PATH
12505do
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
81ecdfbb 12508 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12510 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12512 break 2
12513 fi
12514done
81ecdfbb
RW
12515 done
12516IFS=$as_save_IFS
d7040cdb
SE
12517
12518fi
12519fi
12520YACC=$ac_cv_prog_YACC
12521if test -n "$YACC"; then
81ecdfbb
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12523$as_echo "$YACC" >&6; }
d7040cdb 12524else
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
d7040cdb
SE
12527fi
12528
81ecdfbb 12529
d7040cdb
SE
12530 test -n "$YACC" && break
12531done
12532test -n "$YACC" || YACC="yacc"
12533
12534for ac_prog in flex lex
12535do
12536 # Extract the first word of "$ac_prog", so it can be a program name with args.
12537set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12540if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 12541 $as_echo_n "(cached) " >&6
d7040cdb
SE
12542else
12543 if test -n "$LEX"; then
12544 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12545else
12546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547for as_dir in $PATH
12548do
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
81ecdfbb 12551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12553 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12555 break 2
12556 fi
12557done
81ecdfbb
RW
12558 done
12559IFS=$as_save_IFS
d7040cdb
SE
12560
12561fi
12562fi
12563LEX=$ac_cv_prog_LEX
12564if test -n "$LEX"; then
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12566$as_echo "$LEX" >&6; }
d7040cdb 12567else
81ecdfbb
RW
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
d7040cdb
SE
12570fi
12571
81ecdfbb 12572
d7040cdb
SE
12573 test -n "$LEX" && break
12574done
12575test -n "$LEX" || LEX=":"
12576
3d961d0d
AM
12577case "$LEX" in
12578 :|*"missing "*) ;;
12579 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12580%%
12581a { ECHO; }
12582b { REJECT; }
12583c { yymore (); }
12584d { yyless (1); }
d0ac1c44
SM
12585e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12586 yyless ((input () != 0)); }
81ecdfbb
RW
12587f { unput (yytext[0]); }
12588. { BEGIN INITIAL; }
12589%%
12590#ifdef YYTEXT_POINTER
12591extern char *yytext;
d7040cdb 12592#endif
d7040cdb 12593int
81ecdfbb 12594main (void)
d7040cdb 12595{
81ecdfbb 12596 return ! yylex () + ! yywrap ();
d7040cdb
SE
12597}
12598_ACEOF
81ecdfbb
RW
12599{ { ac_try="$LEX conftest.l"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12605$as_echo "$ac_try_echo"; } >&5
12606 (eval "$LEX conftest.l") 2>&5
d7040cdb 12607 ac_status=$?
81ecdfbb
RW
12608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12609 test $ac_status = 0; }
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12611$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 12612if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 12613 $as_echo_n "(cached) " >&6
d7040cdb 12614else
d7040cdb 12615
81ecdfbb
RW
12616if test -f lex.yy.c; then
12617 ac_cv_prog_lex_root=lex.yy
12618elif test -f lexyy.c; then
12619 ac_cv_prog_lex_root=lexyy
12620else
d0ac1c44 12621 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 12622fi
d7040cdb 12623fi
81ecdfbb
RW
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12625$as_echo "$ac_cv_prog_lex_root" >&6; }
12626LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12627
81ecdfbb
RW
12628if test -z "${LEXLIB+set}"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12630$as_echo_n "checking lex library... " >&6; }
d0ac1c44 12631if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 12632 $as_echo_n "(cached) " >&6
d7040cdb 12633else
d7040cdb 12634
81ecdfbb
RW
12635 ac_save_LIBS=$LIBS
12636 ac_cv_lib_lex='none needed'
12637 for ac_lib in '' -lfl -ll; do
12638 LIBS="$ac_lib $ac_save_LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640/* end confdefs.h. */
12641`cat $LEX_OUTPUT_ROOT.c`
12642_ACEOF
12643if ac_fn_c_try_link "$LINENO"; then :
12644 ac_cv_lib_lex=$ac_lib
d7040cdb 12645fi
81ecdfbb
RW
12646rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 test "$ac_cv_lib_lex" != 'none needed' && break
12649 done
12650 LIBS=$ac_save_LIBS
d7040cdb
SE
12651
12652fi
81ecdfbb
RW
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12654$as_echo "$ac_cv_lib_lex" >&6; }
12655 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12656fi
12657
d7040cdb 12658
81ecdfbb
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12660$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 12661if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 12662 $as_echo_n "(cached) " >&6
d7040cdb
SE
12663else
12664 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12665# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12666# not all implementations provide the %pointer and %array declarations.
12667ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12668ac_save_LIBS=$LIBS
81ecdfbb
RW
12669LIBS="$LEXLIB $ac_save_LIBS"
12670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h. */
d0ac1c44
SM
12672
12673 #define YYTEXT_POINTER 1
d7040cdb
SE
12674`cat $LEX_OUTPUT_ROOT.c`
12675_ACEOF
81ecdfbb 12676if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12677 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12678fi
81ecdfbb
RW
12679rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12681LIBS=$ac_save_LIBS
d7040cdb
SE
12682
12683fi
81ecdfbb
RW
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12685$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12686if test $ac_cv_prog_lex_yytext_pointer = yes; then
12687
81ecdfbb 12688$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12689
12690fi
81ecdfbb 12691rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
12692 ;;
12693esac
d7040cdb
SE
12694if test "$LEX" = :; then
12695 LEX=${am_missing_run}flex
12696fi
12697
e184813f 12698ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
12699
12700 MKINSTALLDIRS=
12701 if test -n "$ac_aux_dir"; then
12702 case "$ac_aux_dir" in
12703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12705 esac
12706 fi
12707 if test -z "$MKINSTALLDIRS"; then
12708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12709 fi
12710
12711
12712
81ecdfbb
RW
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12714$as_echo_n "checking whether NLS is requested... " >&6; }
12715 # Check whether --enable-nls was given.
12716if test "${enable_nls+set}" = set; then :
12717 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12718else
12719 USE_NLS=yes
81ecdfbb
RW
12720fi
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12723$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12724
12725
12726
12727
12728
12729
12730# Prepare PATH_SEPARATOR.
12731# The user is always right.
12732if test "${PATH_SEPARATOR+set}" != set; then
12733 echo "#! /bin/sh" >conf$$.sh
12734 echo "exit 0" >>conf$$.sh
12735 chmod +x conf$$.sh
12736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12737 PATH_SEPARATOR=';'
12738 else
12739 PATH_SEPARATOR=:
12740 fi
12741 rm -f conf$$.sh
12742fi
12743
12744# Find out how to test for executable files. Don't use a zero-byte file,
12745# as systems may use methods other than mode bits to determine executability.
12746cat >conf$$.file <<_ASEOF
12747#! /bin/sh
12748exit 0
12749_ASEOF
12750chmod +x conf$$.file
12751if test -x conf$$.file >/dev/null 2>&1; then
12752 ac_executable_p="test -x"
12753else
12754 ac_executable_p="test -f"
12755fi
12756rm -f conf$$.file
12757
12758# Extract the first word of "msgfmt", so it can be a program name with args.
12759set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12762if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 12763 $as_echo_n "(cached) " >&6
d7040cdb
SE
12764else
12765 case "$MSGFMT" in
12766 [\\/]* | ?:[\\/]*)
12767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12768 ;;
12769 *)
12770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12771 for ac_dir in $PATH; do
12772 IFS="$ac_save_IFS"
12773 test -z "$ac_dir" && ac_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12779 break 2
12780 fi
12781 fi
12782 done
12783 done
12784 IFS="$ac_save_IFS"
12785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12786 ;;
12787esac
12788fi
12789MSGFMT="$ac_cv_path_MSGFMT"
12790if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12792$as_echo "$MSGFMT" >&6; }
d7040cdb 12793else
81ecdfbb
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
d7040cdb
SE
12796fi
12797
12798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12799set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12802if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 12803 $as_echo_n "(cached) " >&6
d7040cdb
SE
12804else
12805 case $GMSGFMT in
12806 [\\/]* | ?:[\\/]*)
12807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12808 ;;
12809 *)
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811for as_dir in $PATH
12812do
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
81ecdfbb 12815 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12819 break 2
12820 fi
12821done
81ecdfbb
RW
12822 done
12823IFS=$as_save_IFS
d7040cdb
SE
12824
12825 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12826 ;;
12827esac
12828fi
12829GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12830if test -n "$GMSGFMT"; then
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12832$as_echo "$GMSGFMT" >&6; }
d7040cdb 12833else
81ecdfbb
RW
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
d7040cdb
SE
12836fi
12837
12838
12839
81ecdfbb 12840
d7040cdb
SE
12841# Prepare PATH_SEPARATOR.
12842# The user is always right.
12843if test "${PATH_SEPARATOR+set}" != set; then
12844 echo "#! /bin/sh" >conf$$.sh
12845 echo "exit 0" >>conf$$.sh
12846 chmod +x conf$$.sh
12847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12848 PATH_SEPARATOR=';'
12849 else
12850 PATH_SEPARATOR=:
12851 fi
12852 rm -f conf$$.sh
12853fi
12854
12855# Find out how to test for executable files. Don't use a zero-byte file,
12856# as systems may use methods other than mode bits to determine executability.
12857cat >conf$$.file <<_ASEOF
12858#! /bin/sh
12859exit 0
12860_ASEOF
12861chmod +x conf$$.file
12862if test -x conf$$.file >/dev/null 2>&1; then
12863 ac_executable_p="test -x"
12864else
12865 ac_executable_p="test -f"
12866fi
12867rm -f conf$$.file
12868
12869# Extract the first word of "xgettext", so it can be a program name with args.
12870set dummy xgettext; ac_word=$2
81ecdfbb
RW
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12873if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 12874 $as_echo_n "(cached) " >&6
d7040cdb
SE
12875else
12876 case "$XGETTEXT" in
12877 [\\/]* | ?:[\\/]*)
12878 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12879 ;;
12880 *)
12881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12882 for ac_dir in $PATH; do
12883 IFS="$ac_save_IFS"
12884 test -z "$ac_dir" && ac_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12887 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12888 (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
12889 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12890 break 2
12891 fi
12892 fi
12893 done
12894 done
12895 IFS="$ac_save_IFS"
12896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12897 ;;
12898esac
12899fi
12900XGETTEXT="$ac_cv_path_XGETTEXT"
12901if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12903$as_echo "$XGETTEXT" >&6; }
d7040cdb 12904else
81ecdfbb
RW
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
d7040cdb
SE
12907fi
12908
12909 rm -f messages.po
12910
12911
12912# Prepare PATH_SEPARATOR.
12913# The user is always right.
12914if test "${PATH_SEPARATOR+set}" != set; then
12915 echo "#! /bin/sh" >conf$$.sh
12916 echo "exit 0" >>conf$$.sh
12917 chmod +x conf$$.sh
12918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12919 PATH_SEPARATOR=';'
12920 else
12921 PATH_SEPARATOR=:
12922 fi
12923 rm -f conf$$.sh
12924fi
12925
12926# Find out how to test for executable files. Don't use a zero-byte file,
12927# as systems may use methods other than mode bits to determine executability.
12928cat >conf$$.file <<_ASEOF
12929#! /bin/sh
12930exit 0
12931_ASEOF
12932chmod +x conf$$.file
12933if test -x conf$$.file >/dev/null 2>&1; then
12934 ac_executable_p="test -x"
12935else
12936 ac_executable_p="test -f"
12937fi
12938rm -f conf$$.file
12939
12940# Extract the first word of "msgmerge", so it can be a program name with args.
12941set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12944if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 12945 $as_echo_n "(cached) " >&6
d7040cdb
SE
12946else
12947 case "$MSGMERGE" in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12950 ;;
12951 *)
12952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12953 for ac_dir in $PATH; do
12954 IFS="$ac_save_IFS"
12955 test -z "$ac_dir" && ac_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12958 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12959 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12960 break 2
12961 fi
12962 fi
12963 done
12964 done
12965 IFS="$ac_save_IFS"
12966 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12967 ;;
12968esac
12969fi
12970MSGMERGE="$ac_cv_path_MSGMERGE"
12971if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12973$as_echo "$MSGMERGE" >&6; }
d7040cdb 12974else
81ecdfbb
RW
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976$as_echo "no" >&6; }
d7040cdb
SE
12977fi
12978
12979
12980 if test "$GMSGFMT" != ":"; then
12981 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12982 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12983 : ;
12984 else
12985 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12987$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12988 GMSGFMT=":"
12989 fi
12990 fi
12991
12992 if test "$XGETTEXT" != ":"; then
12993 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12994 (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
12995 : ;
12996 else
81ecdfbb
RW
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12998$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12999 XGETTEXT=":"
13000 fi
13001 rm -f messages.po
13002 fi
13003
81ecdfbb 13004 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
13005
13006
13007
862776f2
AA
13008 if test "X$prefix" = "XNONE"; then
13009 acl_final_prefix="$ac_default_prefix"
13010 else
13011 acl_final_prefix="$prefix"
13012 fi
13013 if test "X$exec_prefix" = "XNONE"; then
13014 acl_final_exec_prefix='${prefix}'
13015 else
13016 acl_final_exec_prefix="$exec_prefix"
13017 fi
13018 acl_save_prefix="$prefix"
13019 prefix="$acl_final_prefix"
13020 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13021 prefix="$acl_save_prefix"
81ecdfbb 13022
d7040cdb 13023
862776f2
AA
13024# Check whether --with-gnu-ld was given.
13025if test "${with_gnu_ld+set}" = set; then :
13026 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7040cdb 13027else
862776f2 13028 with_gnu_ld=no
42ecbf5e 13029fi
d7040cdb 13030
862776f2
AA
13031# Prepare PATH_SEPARATOR.
13032# The user is always right.
13033if test "${PATH_SEPARATOR+set}" != set; then
13034 echo "#! /bin/sh" >conf$$.sh
13035 echo "exit 0" >>conf$$.sh
13036 chmod +x conf$$.sh
13037 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13038 PATH_SEPARATOR=';'
13039 else
13040 PATH_SEPARATOR=:
13041 fi
13042 rm -f conf$$.sh
42ecbf5e 13043fi
862776f2
AA
13044ac_prog=ld
13045if test "$GCC" = yes; then
13046 # Check if gcc -print-prog-name=ld gives a path.
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13048$as_echo_n "checking for ld used by GCC... " >&6; }
13049 case $host in
13050 *-*-mingw*)
13051 # gcc leaves a trailing carriage return which upsets mingw
13052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13053 *)
13054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13055 esac
13056 case $ac_prog in
13057 # Accept absolute paths.
13058 [\\/]* | [A-Za-z]:[\\/]*)
13059 re_direlt='/[^/][^/]*/\.\./'
13060 # Canonicalize the path of ld
13061 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13062 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13063 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13064 done
13065 test -z "$LD" && LD="$ac_prog"
13066 ;;
13067 "")
13068 # If it fails, then pretend we aren't using GCC.
13069 ac_prog=ld
13070 ;;
13071 *)
13072 # If it is relative, then search for the first ld in PATH.
13073 with_gnu_ld=unknown
13074 ;;
13075 esac
13076elif test "$with_gnu_ld" = yes; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13078$as_echo_n "checking for GNU ld... " >&6; }
13079else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13081$as_echo_n "checking for non-GNU ld... " >&6; }
252b5132 13082fi
862776f2 13083if ${acl_cv_path_LD+:} false; then :
81ecdfbb 13084 $as_echo_n "(cached) " >&6
d7040cdb 13085else
862776f2
AA
13086 if test -z "$LD"; then
13087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13088 for ac_dir in $PATH; do
13089 test -z "$ac_dir" && ac_dir=.
13090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13091 acl_cv_path_LD="$ac_dir/$ac_prog"
13092 # Check to see if the program is GNU ld. I'd rather use --version,
13093 # but apparently some GNU ld's only accept -v.
13094 # Break only if it was the GNU/non-GNU ld that we prefer.
13095 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13096 test "$with_gnu_ld" != no && break
13097 else
13098 test "$with_gnu_ld" != yes && break
13099 fi
13100 fi
81ecdfbb 13101 done
862776f2
AA
13102 IFS="$ac_save_ifs"
13103else
13104 acl_cv_path_LD="$LD" # Let the user override the test with a path.
d7040cdb
SE
13105fi
13106fi
862776f2
AA
13107
13108LD="$acl_cv_path_LD"
13109if test -n "$LD"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13111$as_echo "$LD" >&6; }
d7040cdb 13112else
81ecdfbb
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
d7040cdb 13115fi
862776f2
AA
13116test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13118$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13119if ${acl_cv_prog_gnu_ld+:} false; then :
81ecdfbb 13120 $as_echo_n "(cached) " >&6
252b5132 13121else
862776f2
AA
13122 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13123if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13124 acl_cv_prog_gnu_ld=yes
d7040cdb 13125else
862776f2 13126 acl_cv_prog_gnu_ld=no
d7040cdb 13127fi
d7040cdb 13128fi
862776f2
AA
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13130$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13131with_gnu_ld=$acl_cv_prog_gnu_ld
d7040cdb 13132
d7040cdb
SE
13133
13134
862776f2
AA
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13136$as_echo_n "checking for shared library run path origin... " >&6; }
13137if ${acl_cv_rpath+:} false; then :
81ecdfbb 13138 $as_echo_n "(cached) " >&6
d7040cdb 13139else
252b5132 13140
862776f2
AA
13141 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13142 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13143 . ./conftest.sh
13144 rm -f ./conftest.sh
13145 acl_cv_rpath=done
42ecbf5e 13146
81ecdfbb 13147fi
862776f2
AA
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13149$as_echo "$acl_cv_rpath" >&6; }
13150 wl="$acl_cv_wl"
13151 libext="$acl_cv_libext"
13152 shlibext="$acl_cv_shlibext"
13153 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13154 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13155 hardcode_direct="$acl_cv_hardcode_direct"
13156 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13157 # Check whether --enable-rpath was given.
13158if test "${enable_rpath+set}" = set; then :
13159 enableval=$enable_rpath; :
252b5132 13160else
862776f2 13161 enable_rpath=yes
252b5132 13162fi
42ecbf5e 13163
252b5132 13164
252b5132 13165
34156b23
L
13166
13167
13168
34156b23 13169
34156b23 13170
862776f2
AA
13171 use_additional=yes
13172
13173 acl_save_prefix="$prefix"
13174 prefix="$acl_final_prefix"
13175 acl_save_exec_prefix="$exec_prefix"
13176 exec_prefix="$acl_final_exec_prefix"
34156b23 13177
862776f2
AA
13178 eval additional_includedir=\"$includedir\"
13179 eval additional_libdir=\"$libdir\"
34156b23 13180
862776f2
AA
13181 exec_prefix="$acl_save_exec_prefix"
13182 prefix="$acl_save_prefix"
34156b23
L
13183
13184
862776f2
AA
13185# Check whether --with-libiconv-prefix was given.
13186if test "${with_libiconv_prefix+set}" = set; then :
13187 withval=$with_libiconv_prefix;
13188 if test "X$withval" = "Xno"; then
13189 use_additional=no
13190 else
13191 if test "X$withval" = "X"; then
34156b23 13192
862776f2
AA
13193 acl_save_prefix="$prefix"
13194 prefix="$acl_final_prefix"
13195 acl_save_exec_prefix="$exec_prefix"
13196 exec_prefix="$acl_final_exec_prefix"
34156b23 13197
862776f2
AA
13198 eval additional_includedir=\"$includedir\"
13199 eval additional_libdir=\"$libdir\"
34156b23 13200
862776f2
AA
13201 exec_prefix="$acl_save_exec_prefix"
13202 prefix="$acl_save_prefix"
34156b23 13203
862776f2
AA
13204 else
13205 additional_includedir="$withval/include"
13206 additional_libdir="$withval/lib"
13207 fi
13208 fi
34156b23
L
13209
13210fi
34156b23 13211
862776f2
AA
13212
13213# Check whether --with-libiconv-type was given.
13214if test "${with_libiconv_type+set}" = set; then :
13215 withval=$with_libiconv_type; with_libiconv_type=$withval
34156b23 13216else
862776f2
AA
13217 with_libiconv_type=auto
13218fi
34156b23 13219
862776f2
AA
13220 lib_type=`eval echo \$with_libiconv_type`
13221
13222 LIBICONV=
13223 LTLIBICONV=
13224 INCICONV=
13225 rpathdirs=
13226 ltrpathdirs=
13227 names_already_handled=
13228 names_next_round='iconv '
13229 while test -n "$names_next_round"; do
13230 names_this_round="$names_next_round"
13231 names_next_round=
13232 for name in $names_this_round; do
13233 already_handled=
13234 for n in $names_already_handled; do
13235 if test "$n" = "$name"; then
13236 already_handled=yes
13237 break
13238 fi
13239 done
13240 if test -z "$already_handled"; then
13241 names_already_handled="$names_already_handled $name"
13242 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13243 eval value=\"\$HAVE_LIB$uppername\"
13244 if test -n "$value"; then
13245 if test "$value" = yes; then
13246 eval value=\"\$LIB$uppername\"
13247 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13248 eval value=\"\$LTLIB$uppername\"
13249 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13250 else
13251 :
13252 fi
13253 else
13254 found_dir=
13255 found_la=
13256 found_so=
13257 found_a=
13258 if test $use_additional = yes; then
13259 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13260 found_dir="$additional_libdir"
13261 found_so="$additional_libdir/lib$name.$shlibext"
13262 if test -f "$additional_libdir/lib$name.la"; then
13263 found_la="$additional_libdir/lib$name.la"
13264 fi
13265 elif test x$lib_type != xshared; then
13266 if test -f "$additional_libdir/lib$name.$libext"; then
13267 found_dir="$additional_libdir"
13268 found_a="$additional_libdir/lib$name.$libext"
13269 if test -f "$additional_libdir/lib$name.la"; then
13270 found_la="$additional_libdir/lib$name.la"
13271 fi
13272 fi
13273 fi
13274 fi
13275 if test "X$found_dir" = "X"; then
13276 for x in $LDFLAGS $LTLIBICONV; do
13277
13278 acl_save_prefix="$prefix"
13279 prefix="$acl_final_prefix"
13280 acl_save_exec_prefix="$exec_prefix"
13281 exec_prefix="$acl_final_exec_prefix"
13282 eval x=\"$x\"
13283 exec_prefix="$acl_save_exec_prefix"
13284 prefix="$acl_save_prefix"
13285
13286 case "$x" in
13287 -L*)
13288 dir=`echo "X$x" | sed -e 's/^X-L//'`
13289 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13290 found_dir="$dir"
13291 found_so="$dir/lib$name.$shlibext"
13292 if test -f "$dir/lib$name.la"; then
13293 found_la="$dir/lib$name.la"
13294 fi
13295 elif test x$lib_type != xshared; then
13296 if test -f "$dir/lib$name.$libext"; then
13297 found_dir="$dir"
13298 found_a="$dir/lib$name.$libext"
13299 if test -f "$dir/lib$name.la"; then
13300 found_la="$dir/lib$name.la"
13301 fi
13302 fi
13303 fi
13304 ;;
13305 esac
13306 if test "X$found_dir" != "X"; then
13307 break
13308 fi
13309 done
13310 fi
13311 if test "X$found_dir" != "X"; then
13312 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13313 if test "X$found_so" != "X"; then
13314 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13315 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13316 else
13317 haveit=
13318 for x in $ltrpathdirs; do
13319 if test "X$x" = "X$found_dir"; then
13320 haveit=yes
13321 break
13322 fi
13323 done
13324 if test -z "$haveit"; then
13325 ltrpathdirs="$ltrpathdirs $found_dir"
13326 fi
13327 if test "$hardcode_direct" = yes; then
13328 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13329 else
13330 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13331 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13332 haveit=
13333 for x in $rpathdirs; do
13334 if test "X$x" = "X$found_dir"; then
13335 haveit=yes
13336 break
13337 fi
13338 done
13339 if test -z "$haveit"; then
13340 rpathdirs="$rpathdirs $found_dir"
13341 fi
13342 else
13343 haveit=
13344 for x in $LDFLAGS $LIBICONV; do
13345
13346 acl_save_prefix="$prefix"
13347 prefix="$acl_final_prefix"
13348 acl_save_exec_prefix="$exec_prefix"
13349 exec_prefix="$acl_final_exec_prefix"
13350 eval x=\"$x\"
13351 exec_prefix="$acl_save_exec_prefix"
13352 prefix="$acl_save_prefix"
13353
13354 if test "X$x" = "X-L$found_dir"; then
13355 haveit=yes
13356 break
13357 fi
13358 done
13359 if test -z "$haveit"; then
13360 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13361 fi
13362 if test "$hardcode_minus_L" != no; then
13363 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13364 else
13365 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13366 fi
13367 fi
13368 fi
13369 fi
13370 else
13371 if test "X$found_a" != "X"; then
13372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13373 else
13374 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13375 fi
13376 fi
13377 additional_includedir=
13378 case "$found_dir" in
13379 */lib | */lib/)
13380 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13381 additional_includedir="$basedir/include"
13382 ;;
13383 esac
13384 if test "X$additional_includedir" != "X"; then
13385 if test "X$additional_includedir" != "X/usr/include"; then
13386 haveit=
13387 if test "X$additional_includedir" = "X/usr/local/include"; then
13388 if test -n "$GCC"; then
13389 case $host_os in
13390 linux*) haveit=yes;;
13391 esac
13392 fi
13393 fi
13394 if test -z "$haveit"; then
13395 for x in $CPPFLAGS $INCICONV; do
13396
13397 acl_save_prefix="$prefix"
13398 prefix="$acl_final_prefix"
13399 acl_save_exec_prefix="$exec_prefix"
13400 exec_prefix="$acl_final_exec_prefix"
13401 eval x=\"$x\"
13402 exec_prefix="$acl_save_exec_prefix"
13403 prefix="$acl_save_prefix"
13404
13405 if test "X$x" = "X-I$additional_includedir"; then
13406 haveit=yes
13407 break
13408 fi
13409 done
13410 if test -z "$haveit"; then
13411 if test -d "$additional_includedir"; then
13412 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13413 fi
13414 fi
13415 fi
13416 fi
13417 fi
13418 if test -n "$found_la"; then
13419 save_libdir="$libdir"
13420 case "$found_la" in
13421 */* | *\\*) . "$found_la" ;;
13422 *) . "./$found_la" ;;
13423 esac
13424 libdir="$save_libdir"
13425 for dep in $dependency_libs; do
13426 case "$dep" in
13427 -L*)
13428 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13429 if test "X$additional_libdir" != "X/usr/lib"; then
13430 haveit=
13431 if test "X$additional_libdir" = "X/usr/local/lib"; then
13432 if test -n "$GCC"; then
13433 case $host_os in
13434 linux*) haveit=yes;;
13435 esac
13436 fi
13437 fi
13438 if test -z "$haveit"; then
13439 haveit=
13440 for x in $LDFLAGS $LIBICONV; do
13441
13442 acl_save_prefix="$prefix"
13443 prefix="$acl_final_prefix"
13444 acl_save_exec_prefix="$exec_prefix"
13445 exec_prefix="$acl_final_exec_prefix"
13446 eval x=\"$x\"
13447 exec_prefix="$acl_save_exec_prefix"
13448 prefix="$acl_save_prefix"
13449
13450 if test "X$x" = "X-L$additional_libdir"; then
13451 haveit=yes
13452 break
13453 fi
13454 done
13455 if test -z "$haveit"; then
13456 if test -d "$additional_libdir"; then
13457 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13458 fi
13459 fi
13460 haveit=
13461 for x in $LDFLAGS $LTLIBICONV; do
13462
13463 acl_save_prefix="$prefix"
13464 prefix="$acl_final_prefix"
13465 acl_save_exec_prefix="$exec_prefix"
13466 exec_prefix="$acl_final_exec_prefix"
13467 eval x=\"$x\"
13468 exec_prefix="$acl_save_exec_prefix"
13469 prefix="$acl_save_prefix"
13470
13471 if test "X$x" = "X-L$additional_libdir"; then
13472 haveit=yes
13473 break
13474 fi
13475 done
13476 if test -z "$haveit"; then
13477 if test -d "$additional_libdir"; then
13478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13479 fi
13480 fi
13481 fi
13482 fi
13483 ;;
13484 -R*)
13485 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13486 if test "$enable_rpath" != no; then
13487 haveit=
13488 for x in $rpathdirs; do
13489 if test "X$x" = "X$dir"; then
13490 haveit=yes
13491 break
13492 fi
13493 done
13494 if test -z "$haveit"; then
13495 rpathdirs="$rpathdirs $dir"
13496 fi
13497 haveit=
13498 for x in $ltrpathdirs; do
13499 if test "X$x" = "X$dir"; then
13500 haveit=yes
13501 break
13502 fi
13503 done
13504 if test -z "$haveit"; then
13505 ltrpathdirs="$ltrpathdirs $dir"
13506 fi
13507 fi
13508 ;;
13509 -l*)
13510 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13511 ;;
13512 *.la)
13513 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13514 ;;
13515 *)
13516 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13518 ;;
13519 esac
13520 done
13521 fi
13522 else
13523 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13524 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13525 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13526 else
13527 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
13528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
13529 fi
13530 fi
13531 fi
13532 fi
13533 done
13534 done
13535 if test "X$rpathdirs" != "X"; then
13536 if test -n "$hardcode_libdir_separator"; then
13537 alldirs=
13538 for found_dir in $rpathdirs; do
13539 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13540 done
13541 acl_save_libdir="$libdir"
13542 libdir="$alldirs"
13543 eval flag=\"$hardcode_libdir_flag_spec\"
13544 libdir="$acl_save_libdir"
13545 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13546 else
13547 for found_dir in $rpathdirs; do
13548 acl_save_libdir="$libdir"
13549 libdir="$found_dir"
13550 eval flag=\"$hardcode_libdir_flag_spec\"
13551 libdir="$acl_save_libdir"
13552 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13553 done
13554 fi
13555 fi
13556 if test "X$ltrpathdirs" != "X"; then
13557 for found_dir in $ltrpathdirs; do
13558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13559 done
13560 fi
13561
13562
13563
13564
13565
13566if test -f ../gettext/uninstalled-config.sh; then
13567 relative_builddir='$(top_builddir)/../gettext'
13568 . ../gettext/uninstalled-config.sh
13569else
13570 # The sister gettext directory doesn't exist and won't collect information on
13571 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13596$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13597if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599else
13600 gt_save_LIBS="$LIBS"
13601 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h. */
13604#include <CoreFoundation/CFPreferences.h>
13605int
13606main ()
13607{
13608CFPreferencesCopyAppValue(NULL, NULL)
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613if ac_fn_c_try_link "$LINENO"; then :
13614 gt_cv_func_CFPreferencesCopyAppValue=yes
13615else
13616 gt_cv_func_CFPreferencesCopyAppValue=no
13617fi
13618rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13620 LIBS="$gt_save_LIBS"
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13623$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13624 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13625
13626$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13627
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13630$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13631if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633else
13634 gt_save_LIBS="$LIBS"
13635 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637/* end confdefs.h. */
13638#include <CoreFoundation/CFLocale.h>
13639int
13640main ()
13641{
13642CFLocaleCopyPreferredLanguages();
13643 ;
13644 return 0;
13645}
13646_ACEOF
13647if ac_fn_c_try_link "$LINENO"; then :
13648 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13649else
13650 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13651fi
13652rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654 LIBS="$gt_save_LIBS"
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13657$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13658 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13659
13660$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13661
13662 fi
13663 INTL_MACOSX_LIBS=
13664 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13665 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13666 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13667 fi
13668
13669
13670
13671
13672
13673
13674 LIBINTL=
13675 LTLIBINTL=
13676 POSUB=
13677
13678 case " $gt_needs " in
13679 *" need-formatstring-macros "*) gt_api_version=3 ;;
13680 *" need-ngettext "*) gt_api_version=2 ;;
13681 *) gt_api_version=1 ;;
13682 esac
13683 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13684 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13685
13686 if test "$USE_NLS" = "yes"; then
13687 gt_use_preinstalled_gnugettext=no
13688
13689
13690 if test $gt_api_version -ge 3; then
13691 gt_revision_test_code='
13692#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13693#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13694#endif
13695typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13696'
13697 else
13698 gt_revision_test_code=
13699 fi
13700 if test $gt_api_version -ge 2; then
13701 gt_expression_test_code=' + * ngettext ("", "", 0)'
13702 else
13703 gt_expression_test_code=
13704 fi
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13707$as_echo_n "checking for GNU gettext in libc... " >&6; }
13708if eval \${$gt_func_gnugettext_libc+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710else
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712/* end confdefs.h. */
13713
13714#include <libintl.h>
13715#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13716extern int _nl_msg_cat_cntr;
13717extern int *_nl_domain_bindings;
13718#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13719#else
13720#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13721#endif
13722$gt_revision_test_code
13723
13724int
13725main ()
13726{
13727
13728bindtextdomain ("", "");
13729return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13730
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735if ac_fn_c_try_link "$LINENO"; then :
13736 eval "$gt_func_gnugettext_libc=yes"
13737else
13738 eval "$gt_func_gnugettext_libc=no"
13739fi
13740rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742fi
13743eval ac_res=\$$gt_func_gnugettext_libc
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13745$as_echo "$ac_res" >&6; }
13746
13747 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13748
13749
13750
13751
13752
13753 am_save_CPPFLAGS="$CPPFLAGS"
13754
13755 for element in $INCICONV; do
13756 haveit=
13757 for x in $CPPFLAGS; do
13758
13759 acl_save_prefix="$prefix"
13760 prefix="$acl_final_prefix"
13761 acl_save_exec_prefix="$exec_prefix"
13762 exec_prefix="$acl_final_exec_prefix"
13763 eval x=\"$x\"
13764 exec_prefix="$acl_save_exec_prefix"
13765 prefix="$acl_save_prefix"
13766
13767 if test "X$x" = "X$element"; then
13768 haveit=yes
13769 break
13770 fi
13771 done
13772 if test -z "$haveit"; then
13773 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13774 fi
13775 done
13776
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13779$as_echo_n "checking for iconv... " >&6; }
13780if ${am_cv_func_iconv+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782else
13783
13784 am_cv_func_iconv="no, consider installing GNU libiconv"
13785 am_cv_lib_iconv=no
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787/* end confdefs.h. */
13788
13789#include <stdlib.h>
13790#include <iconv.h>
13791
13792int
13793main ()
13794{
13795iconv_t cd = iconv_open("","");
13796 iconv(cd,NULL,NULL,NULL,NULL);
13797 iconv_close(cd);
13798 ;
13799 return 0;
13800}
13801_ACEOF
13802if ac_fn_c_try_link "$LINENO"; then :
13803 am_cv_func_iconv=yes
13804fi
13805rm -f core conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13807 if test "$am_cv_func_iconv" != yes; then
13808 am_save_LIBS="$LIBS"
13809 LIBS="$LIBS $LIBICONV"
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h. */
13812
13813#include <stdlib.h>
13814#include <iconv.h>
13815
13816int
13817main ()
13818{
13819iconv_t cd = iconv_open("","");
13820 iconv(cd,NULL,NULL,NULL,NULL);
13821 iconv_close(cd);
13822 ;
13823 return 0;
13824}
13825_ACEOF
13826if ac_fn_c_try_link "$LINENO"; then :
13827 am_cv_lib_iconv=yes
13828 am_cv_func_iconv=yes
13829fi
13830rm -f core conftest.err conftest.$ac_objext \
13831 conftest$ac_exeext conftest.$ac_ext
13832 LIBS="$am_save_LIBS"
13833 fi
13834
13835fi
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13837$as_echo "$am_cv_func_iconv" >&6; }
13838 if test "$am_cv_func_iconv" = yes; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13840$as_echo_n "checking for working iconv... " >&6; }
13841if ${am_cv_func_iconv_works+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843else
13844
13845 am_save_LIBS="$LIBS"
13846 if test $am_cv_lib_iconv = yes; then
13847 LIBS="$LIBS $LIBICONV"
13848 fi
13849 am_cv_func_iconv_works=no
13850 for ac_iconv_const in '' 'const'; do
13851 if test "$cross_compiling" = yes; then :
13852 case "$host_os" in
13853 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13854 *) am_cv_func_iconv_works="guessing yes" ;;
13855 esac
13856else
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h. */
13859
13860#include <iconv.h>
13861#include <string.h>
13862
13863#ifndef ICONV_CONST
13864# define ICONV_CONST $ac_iconv_const
13865#endif
13866
13867int
13868main ()
13869{
13870int result = 0;
13871 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13872 successful returns. This is even documented in
13873 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13874 {
13875 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13876 if (cd_utf8_to_88591 != (iconv_t)(-1))
13877 {
13878 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13879 char buf[10];
13880 ICONV_CONST char *inptr = input;
13881 size_t inbytesleft = strlen (input);
13882 char *outptr = buf;
13883 size_t outbytesleft = sizeof (buf);
13884 size_t res = iconv (cd_utf8_to_88591,
13885 &inptr, &inbytesleft,
13886 &outptr, &outbytesleft);
13887 if (res == 0)
13888 result |= 1;
13889 iconv_close (cd_utf8_to_88591);
13890 }
13891 }
13892 /* Test against Solaris 10 bug: Failures are not distinguishable from
13893 successful returns. */
13894 {
13895 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13896 if (cd_ascii_to_88591 != (iconv_t)(-1))
13897 {
13898 static ICONV_CONST char input[] = "\263";
13899 char buf[10];
13900 ICONV_CONST char *inptr = input;
13901 size_t inbytesleft = strlen (input);
13902 char *outptr = buf;
13903 size_t outbytesleft = sizeof (buf);
13904 size_t res = iconv (cd_ascii_to_88591,
13905 &inptr, &inbytesleft,
13906 &outptr, &outbytesleft);
13907 if (res == 0)
13908 result |= 2;
13909 iconv_close (cd_ascii_to_88591);
13910 }
13911 }
13912 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13913 {
13914 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13915 if (cd_88591_to_utf8 != (iconv_t)(-1))
13916 {
13917 static ICONV_CONST char input[] = "\304";
13918 static char buf[2] = { (char)0xDE, (char)0xAD };
13919 ICONV_CONST char *inptr = input;
13920 size_t inbytesleft = 1;
13921 char *outptr = buf;
13922 size_t outbytesleft = 1;
13923 size_t res = iconv (cd_88591_to_utf8,
13924 &inptr, &inbytesleft,
13925 &outptr, &outbytesleft);
13926 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13927 result |= 4;
13928 iconv_close (cd_88591_to_utf8);
13929 }
13930 }
13931#if 0 /* This bug could be worked around by the caller. */
13932 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13933 {
13934 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13935 if (cd_88591_to_utf8 != (iconv_t)(-1))
13936 {
13937 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13938 char buf[50];
13939 ICONV_CONST char *inptr = input;
13940 size_t inbytesleft = strlen (input);
13941 char *outptr = buf;
13942 size_t outbytesleft = sizeof (buf);
13943 size_t res = iconv (cd_88591_to_utf8,
13944 &inptr, &inbytesleft,
13945 &outptr, &outbytesleft);
13946 if ((int)res > 0)
13947 result |= 8;
13948 iconv_close (cd_88591_to_utf8);
13949 }
13950 }
13951#endif
13952 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13953 provided. */
13954 {
13955 /* Try standardized names. */
13956 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13957 /* Try IRIX, OSF/1 names. */
13958 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13959 /* Try AIX names. */
13960 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13961 /* Try HP-UX names. */
13962 iconv_t cd4 = iconv_open ("utf8", "eucJP");
13963 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13964 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13965 result |= 16;
13966 if (cd1 != (iconv_t)(-1))
13967 iconv_close (cd1);
13968 if (cd2 != (iconv_t)(-1))
13969 iconv_close (cd2);
13970 if (cd3 != (iconv_t)(-1))
13971 iconv_close (cd3);
13972 if (cd4 != (iconv_t)(-1))
13973 iconv_close (cd4);
13974 }
13975 return result;
13976
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981if ac_fn_c_try_run "$LINENO"; then :
13982 am_cv_func_iconv_works=yes
13983fi
13984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13985 conftest.$ac_objext conftest.beam conftest.$ac_ext
13986fi
13987
13988 test "$am_cv_func_iconv_works" = no || break
13989 done
13990 LIBS="$am_save_LIBS"
13991
13992fi
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13994$as_echo "$am_cv_func_iconv_works" >&6; }
13995 case "$am_cv_func_iconv_works" in
13996 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13997 *) am_func_iconv=yes ;;
13998 esac
13999 else
14000 am_func_iconv=no am_cv_lib_iconv=no
14001 fi
14002 if test "$am_func_iconv" = yes; then
14003
14004$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14005
14006 fi
14007 if test "$am_cv_lib_iconv" = yes; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14009$as_echo_n "checking how to link with libiconv... " >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14011$as_echo "$LIBICONV" >&6; }
14012 else
14013 CPPFLAGS="$am_save_CPPFLAGS"
14014 LIBICONV=
14015 LTLIBICONV=
14016 fi
14017
14018
14019
14020
14021
14022
14023 use_additional=yes
14024
14025 acl_save_prefix="$prefix"
14026 prefix="$acl_final_prefix"
14027 acl_save_exec_prefix="$exec_prefix"
14028 exec_prefix="$acl_final_exec_prefix"
14029
14030 eval additional_includedir=\"$includedir\"
14031 eval additional_libdir=\"$libdir\"
14032
14033 exec_prefix="$acl_save_exec_prefix"
14034 prefix="$acl_save_prefix"
14035
14036
14037# Check whether --with-libintl-prefix was given.
14038if test "${with_libintl_prefix+set}" = set; then :
14039 withval=$with_libintl_prefix;
14040 if test "X$withval" = "Xno"; then
14041 use_additional=no
14042 else
14043 if test "X$withval" = "X"; then
14044
14045 acl_save_prefix="$prefix"
14046 prefix="$acl_final_prefix"
14047 acl_save_exec_prefix="$exec_prefix"
14048 exec_prefix="$acl_final_exec_prefix"
14049
14050 eval additional_includedir=\"$includedir\"
14051 eval additional_libdir=\"$libdir\"
14052
14053 exec_prefix="$acl_save_exec_prefix"
14054 prefix="$acl_save_prefix"
14055
14056 else
14057 additional_includedir="$withval/include"
14058 additional_libdir="$withval/lib"
14059 fi
14060 fi
14061
14062fi
14063
14064
14065# Check whether --with-libintl-type was given.
14066if test "${with_libintl_type+set}" = set; then :
14067 withval=$with_libintl_type; with_libintl_type=$withval
14068else
14069 with_libintl_type=auto
14070fi
14071
14072 lib_type=`eval echo \$with_libintl_type`
14073
14074 LIBINTL=
14075 LTLIBINTL=
14076 INCINTL=
14077 rpathdirs=
14078 ltrpathdirs=
14079 names_already_handled=
14080 names_next_round='intl '
14081 while test -n "$names_next_round"; do
14082 names_this_round="$names_next_round"
14083 names_next_round=
14084 for name in $names_this_round; do
14085 already_handled=
14086 for n in $names_already_handled; do
14087 if test "$n" = "$name"; then
14088 already_handled=yes
14089 break
14090 fi
14091 done
14092 if test -z "$already_handled"; then
14093 names_already_handled="$names_already_handled $name"
14094 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14095 eval value=\"\$HAVE_LIB$uppername\"
14096 if test -n "$value"; then
14097 if test "$value" = yes; then
14098 eval value=\"\$LIB$uppername\"
14099 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14100 eval value=\"\$LTLIB$uppername\"
14101 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14102 else
14103 :
14104 fi
14105 else
14106 found_dir=
14107 found_la=
14108 found_so=
14109 found_a=
14110 if test $use_additional = yes; then
14111 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14112 found_dir="$additional_libdir"
14113 found_so="$additional_libdir/lib$name.$shlibext"
14114 if test -f "$additional_libdir/lib$name.la"; then
14115 found_la="$additional_libdir/lib$name.la"
14116 fi
14117 elif test x$lib_type != xshared; then
14118 if test -f "$additional_libdir/lib$name.$libext"; then
14119 found_dir="$additional_libdir"
14120 found_a="$additional_libdir/lib$name.$libext"
14121 if test -f "$additional_libdir/lib$name.la"; then
14122 found_la="$additional_libdir/lib$name.la"
14123 fi
14124 fi
14125 fi
14126 fi
14127 if test "X$found_dir" = "X"; then
14128 for x in $LDFLAGS $LTLIBINTL; do
14129
14130 acl_save_prefix="$prefix"
14131 prefix="$acl_final_prefix"
14132 acl_save_exec_prefix="$exec_prefix"
14133 exec_prefix="$acl_final_exec_prefix"
14134 eval x=\"$x\"
14135 exec_prefix="$acl_save_exec_prefix"
14136 prefix="$acl_save_prefix"
14137
14138 case "$x" in
14139 -L*)
14140 dir=`echo "X$x" | sed -e 's/^X-L//'`
14141 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14142 found_dir="$dir"
14143 found_so="$dir/lib$name.$shlibext"
14144 if test -f "$dir/lib$name.la"; then
14145 found_la="$dir/lib$name.la"
14146 fi
14147 elif test x$lib_type != xshared; then
14148 if test -f "$dir/lib$name.$libext"; then
14149 found_dir="$dir"
14150 found_a="$dir/lib$name.$libext"
14151 if test -f "$dir/lib$name.la"; then
14152 found_la="$dir/lib$name.la"
14153 fi
14154 fi
14155 fi
14156 ;;
14157 esac
14158 if test "X$found_dir" != "X"; then
14159 break
14160 fi
14161 done
14162 fi
14163 if test "X$found_dir" != "X"; then
14164 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14165 if test "X$found_so" != "X"; then
14166 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14167 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14168 else
14169 haveit=
14170 for x in $ltrpathdirs; do
14171 if test "X$x" = "X$found_dir"; then
14172 haveit=yes
14173 break
14174 fi
14175 done
14176 if test -z "$haveit"; then
14177 ltrpathdirs="$ltrpathdirs $found_dir"
14178 fi
14179 if test "$hardcode_direct" = yes; then
14180 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14181 else
14182 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14183 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14184 haveit=
14185 for x in $rpathdirs; do
14186 if test "X$x" = "X$found_dir"; then
14187 haveit=yes
14188 break
14189 fi
14190 done
14191 if test -z "$haveit"; then
14192 rpathdirs="$rpathdirs $found_dir"
14193 fi
14194 else
14195 haveit=
14196 for x in $LDFLAGS $LIBINTL; do
14197
14198 acl_save_prefix="$prefix"
14199 prefix="$acl_final_prefix"
14200 acl_save_exec_prefix="$exec_prefix"
14201 exec_prefix="$acl_final_exec_prefix"
14202 eval x=\"$x\"
14203 exec_prefix="$acl_save_exec_prefix"
14204 prefix="$acl_save_prefix"
14205
14206 if test "X$x" = "X-L$found_dir"; then
14207 haveit=yes
14208 break
14209 fi
14210 done
14211 if test -z "$haveit"; then
14212 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14213 fi
14214 if test "$hardcode_minus_L" != no; then
14215 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14216 else
14217 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14218 fi
14219 fi
14220 fi
14221 fi
14222 else
14223 if test "X$found_a" != "X"; then
14224 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14225 else
14226 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14227 fi
14228 fi
14229 additional_includedir=
14230 case "$found_dir" in
14231 */lib | */lib/)
14232 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14233 additional_includedir="$basedir/include"
14234 ;;
14235 esac
14236 if test "X$additional_includedir" != "X"; then
14237 if test "X$additional_includedir" != "X/usr/include"; then
14238 haveit=
14239 if test "X$additional_includedir" = "X/usr/local/include"; then
14240 if test -n "$GCC"; then
14241 case $host_os in
14242 linux*) haveit=yes;;
14243 esac
14244 fi
14245 fi
14246 if test -z "$haveit"; then
14247 for x in $CPPFLAGS $INCINTL; do
14248
14249 acl_save_prefix="$prefix"
14250 prefix="$acl_final_prefix"
14251 acl_save_exec_prefix="$exec_prefix"
14252 exec_prefix="$acl_final_exec_prefix"
14253 eval x=\"$x\"
14254 exec_prefix="$acl_save_exec_prefix"
14255 prefix="$acl_save_prefix"
14256
14257 if test "X$x" = "X-I$additional_includedir"; then
14258 haveit=yes
14259 break
14260 fi
14261 done
14262 if test -z "$haveit"; then
14263 if test -d "$additional_includedir"; then
14264 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14265 fi
14266 fi
14267 fi
14268 fi
14269 fi
14270 if test -n "$found_la"; then
14271 save_libdir="$libdir"
14272 case "$found_la" in
14273 */* | *\\*) . "$found_la" ;;
14274 *) . "./$found_la" ;;
14275 esac
14276 libdir="$save_libdir"
14277 for dep in $dependency_libs; do
14278 case "$dep" in
14279 -L*)
14280 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14281 if test "X$additional_libdir" != "X/usr/lib"; then
14282 haveit=
14283 if test "X$additional_libdir" = "X/usr/local/lib"; then
14284 if test -n "$GCC"; then
14285 case $host_os in
14286 linux*) haveit=yes;;
14287 esac
14288 fi
14289 fi
14290 if test -z "$haveit"; then
14291 haveit=
14292 for x in $LDFLAGS $LIBINTL; do
14293
14294 acl_save_prefix="$prefix"
14295 prefix="$acl_final_prefix"
14296 acl_save_exec_prefix="$exec_prefix"
14297 exec_prefix="$acl_final_exec_prefix"
14298 eval x=\"$x\"
14299 exec_prefix="$acl_save_exec_prefix"
14300 prefix="$acl_save_prefix"
14301
14302 if test "X$x" = "X-L$additional_libdir"; then
14303 haveit=yes
14304 break
14305 fi
14306 done
14307 if test -z "$haveit"; then
14308 if test -d "$additional_libdir"; then
14309 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14310 fi
14311 fi
14312 haveit=
14313 for x in $LDFLAGS $LTLIBINTL; do
14314
14315 acl_save_prefix="$prefix"
14316 prefix="$acl_final_prefix"
14317 acl_save_exec_prefix="$exec_prefix"
14318 exec_prefix="$acl_final_exec_prefix"
14319 eval x=\"$x\"
14320 exec_prefix="$acl_save_exec_prefix"
14321 prefix="$acl_save_prefix"
14322
14323 if test "X$x" = "X-L$additional_libdir"; then
14324 haveit=yes
14325 break
14326 fi
14327 done
14328 if test -z "$haveit"; then
14329 if test -d "$additional_libdir"; then
14330 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14331 fi
14332 fi
14333 fi
14334 fi
14335 ;;
14336 -R*)
14337 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14338 if test "$enable_rpath" != no; then
14339 haveit=
14340 for x in $rpathdirs; do
14341 if test "X$x" = "X$dir"; then
14342 haveit=yes
14343 break
14344 fi
14345 done
14346 if test -z "$haveit"; then
14347 rpathdirs="$rpathdirs $dir"
14348 fi
14349 haveit=
14350 for x in $ltrpathdirs; do
14351 if test "X$x" = "X$dir"; then
14352 haveit=yes
14353 break
14354 fi
14355 done
14356 if test -z "$haveit"; then
14357 ltrpathdirs="$ltrpathdirs $dir"
14358 fi
14359 fi
14360 ;;
14361 -l*)
14362 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14363 ;;
14364 *.la)
14365 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14366 ;;
14367 *)
14368 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14369 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14370 ;;
14371 esac
14372 done
14373 fi
14374 else
14375 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14376 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14377 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14378 else
14379 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14380 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14381 fi
14382 fi
14383 fi
14384 fi
14385 done
14386 done
14387 if test "X$rpathdirs" != "X"; then
14388 if test -n "$hardcode_libdir_separator"; then
14389 alldirs=
14390 for found_dir in $rpathdirs; do
14391 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14392 done
14393 acl_save_libdir="$libdir"
14394 libdir="$alldirs"
14395 eval flag=\"$hardcode_libdir_flag_spec\"
14396 libdir="$acl_save_libdir"
14397 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14398 else
14399 for found_dir in $rpathdirs; do
14400 acl_save_libdir="$libdir"
14401 libdir="$found_dir"
14402 eval flag=\"$hardcode_libdir_flag_spec\"
14403 libdir="$acl_save_libdir"
14404 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14405 done
14406 fi
14407 fi
14408 if test "X$ltrpathdirs" != "X"; then
14409 for found_dir in $ltrpathdirs; do
14410 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14411 done
14412 fi
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14415$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14416if eval \${$gt_func_gnugettext_libintl+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418else
14419 gt_save_CPPFLAGS="$CPPFLAGS"
14420 CPPFLAGS="$CPPFLAGS $INCINTL"
14421 gt_save_LIBS="$LIBS"
14422 LIBS="$LIBS $LIBINTL"
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424/* end confdefs.h. */
14425
14426#include <libintl.h>
14427#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14428extern int _nl_msg_cat_cntr;
14429extern
14430#ifdef __cplusplus
14431"C"
14432#endif
14433const char *_nl_expand_alias (const char *);
14434#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14435#else
14436#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14437#endif
14438$gt_revision_test_code
14439
14440int
14441main ()
14442{
14443
14444bindtextdomain ("", "");
14445return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14446
14447 ;
14448 return 0;
14449}
14450_ACEOF
14451if ac_fn_c_try_link "$LINENO"; then :
14452 eval "$gt_func_gnugettext_libintl=yes"
14453else
14454 eval "$gt_func_gnugettext_libintl=no"
14455fi
14456rm -f core conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext conftest.$ac_ext
14458 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14459 LIBS="$LIBS $LIBICONV"
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461/* end confdefs.h. */
14462
14463#include <libintl.h>
14464#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14465extern int _nl_msg_cat_cntr;
14466extern
14467#ifdef __cplusplus
14468"C"
14469#endif
14470const char *_nl_expand_alias (const char *);
14471#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14472#else
14473#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14474#endif
14475$gt_revision_test_code
14476
14477int
14478main ()
14479{
14480
14481bindtextdomain ("", "");
14482return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14483
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488if ac_fn_c_try_link "$LINENO"; then :
14489 LIBINTL="$LIBINTL $LIBICONV"
14490 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14491 eval "$gt_func_gnugettext_libintl=yes"
14492
14493fi
14494rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14496 fi
14497 CPPFLAGS="$gt_save_CPPFLAGS"
14498 LIBS="$gt_save_LIBS"
14499fi
14500eval ac_res=\$$gt_func_gnugettext_libintl
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14502$as_echo "$ac_res" >&6; }
14503 fi
14504
14505 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14506 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14507 && test "$PACKAGE" != gettext-runtime \
14508 && test "$PACKAGE" != gettext-tools; }; then
14509 gt_use_preinstalled_gnugettext=yes
14510 else
14511 LIBINTL=
14512 LTLIBINTL=
14513 INCINTL=
14514 fi
14515
14516
14517
14518 if test -n "$INTL_MACOSX_LIBS"; then
14519 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14520 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14521 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14522 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14523 fi
14524 fi
14525
14526 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14527 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14528
14529$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14530
14531 else
14532 USE_NLS=no
14533 fi
14534 fi
14535
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14537$as_echo_n "checking whether to use NLS... " >&6; }
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14539$as_echo "$USE_NLS" >&6; }
14540 if test "$USE_NLS" = "yes"; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14542$as_echo_n "checking where the gettext function comes from... " >&6; }
14543 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14544 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14545 gt_source="external libintl"
14546 else
14547 gt_source="libc"
14548 fi
14549 else
14550 gt_source="included intl directory"
14551 fi
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14553$as_echo "$gt_source" >&6; }
14554 fi
14555
14556 if test "$USE_NLS" = "yes"; then
14557
14558 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14559 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14561$as_echo_n "checking how to link with libintl... " >&6; }
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14563$as_echo "$LIBINTL" >&6; }
14564
14565 for element in $INCINTL; do
14566 haveit=
14567 for x in $CPPFLAGS; do
14568
14569 acl_save_prefix="$prefix"
14570 prefix="$acl_final_prefix"
14571 acl_save_exec_prefix="$exec_prefix"
14572 exec_prefix="$acl_final_exec_prefix"
14573 eval x=\"$x\"
14574 exec_prefix="$acl_save_exec_prefix"
14575 prefix="$acl_save_prefix"
14576
14577 if test "X$x" = "X$element"; then
14578 haveit=yes
14579 break
14580 fi
14581 done
14582 if test -z "$haveit"; then
14583 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14584 fi
14585 done
14586
14587 fi
14588
14589
14590$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14591
14592
14593$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14594
14595 fi
14596
14597 POSUB=po
14598 fi
14599
14600
14601
14602 INTLLIBS="$LIBINTL"
14603
14604
14605
14606
14607
14608
14609fi
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14622$as_echo_n "checking whether NLS is requested... " >&6; }
14623if test x"$USE_NLS" != xyes; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625$as_echo "no" >&6; }
14626else
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14628$as_echo "yes" >&6; }
14629
14630$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14631
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14634$as_echo_n "checking for catalogs to be installed... " >&6; }
14635 # Look for .po and .gmo files in the source directory.
14636 CATALOGS=
14637 XLINGUAS=
14638 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14639 # If there aren't any .gmo files the shell will give us the
14640 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14641 # weeded out.
14642 case "$cat" in *\**)
14643 continue;;
14644 esac
14645 # The quadruple backslash is collapsed to a double backslash
14646 # by the backticks, then collapsed again by the double quotes,
14647 # leaving us with one backslash in the sed expression (right
14648 # before the dot that mustn't act as a wildcard).
14649 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14650 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14651 # The user is allowed to set LINGUAS to a list of languages to
14652 # install catalogs for. If it's empty that means "all of them."
14653 if test "x$LINGUAS" = x; then
14654 CATALOGS="$CATALOGS $cat"
14655 XLINGUAS="$XLINGUAS $lang"
14656 else
14657 case "$LINGUAS" in *$lang*)
14658 CATALOGS="$CATALOGS $cat"
14659 XLINGUAS="$XLINGUAS $lang"
14660 ;;
14661 esac
14662 fi
14663 done
14664 LINGUAS="$XLINGUAS"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14666$as_echo "$LINGUAS" >&6; }
14667
14668
14669 DATADIRNAME=share
14670
14671 INSTOBJEXT=.mo
14672
14673 GENCAT=gencat
14674
14675 CATOBJEXT=.gmo
14676
14677fi
14678
14679
14680
14681
14682# Prepare PATH_SEPARATOR.
14683# The user is always right.
14684if test "${PATH_SEPARATOR+set}" != set; then
14685 echo "#! /bin/sh" >conf$$.sh
14686 echo "exit 0" >>conf$$.sh
14687 chmod +x conf$$.sh
14688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14689 PATH_SEPARATOR=';'
14690 else
14691 PATH_SEPARATOR=:
14692 fi
14693 rm -f conf$$.sh
14694fi
14695
14696# Find out how to test for executable files. Don't use a zero-byte file,
14697# as systems may use methods other than mode bits to determine executability.
14698cat >conf$$.file <<_ASEOF
14699#! /bin/sh
14700exit 0
14701_ASEOF
14702chmod +x conf$$.file
14703if test -x conf$$.file >/dev/null 2>&1; then
14704 ac_executable_p="test -x"
14705else
14706 ac_executable_p="test -f"
14707fi
14708rm -f conf$$.file
14709
14710# Extract the first word of "msgfmt", so it can be a program name with args.
14711set dummy msgfmt; ac_word=$2
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713$as_echo_n "checking for $ac_word... " >&6; }
14714if ${ac_cv_path_MSGFMT+:} false; then :
14715 $as_echo_n "(cached) " >&6
14716else
14717 case "$MSGFMT" in
14718 [\\/]* | ?:[\\/]*)
14719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14720 ;;
14721 *)
14722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14723 for ac_dir in $PATH; do
14724 IFS="$ac_save_IFS"
14725 test -z "$ac_dir" && ac_dir=.
14726 for ac_exec_ext in '' $ac_executable_extensions; do
14727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14728 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14729 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14730 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14731 break 2
14732 fi
14733 fi
14734 done
14735 done
14736 IFS="$ac_save_IFS"
14737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14738 ;;
14739esac
14740fi
14741MSGFMT="$ac_cv_path_MSGFMT"
14742if test "$MSGFMT" != ":"; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14744$as_echo "$MSGFMT" >&6; }
14745else
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747$as_echo "no" >&6; }
14748fi
14749
14750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14751set dummy gmsgfmt; ac_word=$2
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14753$as_echo_n "checking for $ac_word... " >&6; }
14754if ${ac_cv_path_GMSGFMT+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756else
14757 case $GMSGFMT in
14758 [\\/]* | ?:[\\/]*)
14759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14760 ;;
14761 *)
14762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14763for as_dir in $PATH
14764do
14765 IFS=$as_save_IFS
14766 test -z "$as_dir" && as_dir=.
14767 for ac_exec_ext in '' $ac_executable_extensions; do
14768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14769 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14771 break 2
14772 fi
14773done
14774 done
14775IFS=$as_save_IFS
14776
14777 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14778 ;;
14779esac
14780fi
14781GMSGFMT=$ac_cv_path_GMSGFMT
14782if test -n "$GMSGFMT"; then
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14784$as_echo "$GMSGFMT" >&6; }
14785else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787$as_echo "no" >&6; }
14788fi
14789
14790
14791
14792
14793# Prepare PATH_SEPARATOR.
14794# The user is always right.
14795if test "${PATH_SEPARATOR+set}" != set; then
14796 echo "#! /bin/sh" >conf$$.sh
14797 echo "exit 0" >>conf$$.sh
14798 chmod +x conf$$.sh
14799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14800 PATH_SEPARATOR=';'
14801 else
14802 PATH_SEPARATOR=:
14803 fi
14804 rm -f conf$$.sh
14805fi
14806
14807# Find out how to test for executable files. Don't use a zero-byte file,
14808# as systems may use methods other than mode bits to determine executability.
14809cat >conf$$.file <<_ASEOF
14810#! /bin/sh
14811exit 0
14812_ASEOF
14813chmod +x conf$$.file
14814if test -x conf$$.file >/dev/null 2>&1; then
14815 ac_executable_p="test -x"
14816else
14817 ac_executable_p="test -f"
14818fi
14819rm -f conf$$.file
14820
14821# Extract the first word of "xgettext", so it can be a program name with args.
14822set dummy xgettext; ac_word=$2
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14824$as_echo_n "checking for $ac_word... " >&6; }
14825if ${ac_cv_path_XGETTEXT+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827else
14828 case "$XGETTEXT" in
14829 [\\/]* | ?:[\\/]*)
14830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14831 ;;
14832 *)
14833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14834 for ac_dir in $PATH; do
14835 IFS="$ac_save_IFS"
14836 test -z "$ac_dir" && ac_dir=.
14837 for ac_exec_ext in '' $ac_executable_extensions; do
14838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14839 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14840 (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
14841 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14842 break 2
14843 fi
14844 fi
14845 done
14846 done
14847 IFS="$ac_save_IFS"
14848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14849 ;;
14850esac
14851fi
14852XGETTEXT="$ac_cv_path_XGETTEXT"
14853if test "$XGETTEXT" != ":"; then
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14855$as_echo "$XGETTEXT" >&6; }
14856else
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14858$as_echo "no" >&6; }
14859fi
14860
14861 rm -f messages.po
14862
14863
14864# Prepare PATH_SEPARATOR.
14865# The user is always right.
14866if test "${PATH_SEPARATOR+set}" != set; then
14867 echo "#! /bin/sh" >conf$$.sh
14868 echo "exit 0" >>conf$$.sh
14869 chmod +x conf$$.sh
14870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14871 PATH_SEPARATOR=';'
14872 else
14873 PATH_SEPARATOR=:
14874 fi
14875 rm -f conf$$.sh
14876fi
14877
14878# Find out how to test for executable files. Don't use a zero-byte file,
14879# as systems may use methods other than mode bits to determine executability.
14880cat >conf$$.file <<_ASEOF
14881#! /bin/sh
14882exit 0
14883_ASEOF
14884chmod +x conf$$.file
14885if test -x conf$$.file >/dev/null 2>&1; then
14886 ac_executable_p="test -x"
14887else
14888 ac_executable_p="test -f"
14889fi
14890rm -f conf$$.file
14891
14892# Extract the first word of "msgmerge", so it can be a program name with args.
14893set dummy msgmerge; ac_word=$2
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14895$as_echo_n "checking for $ac_word... " >&6; }
14896if ${ac_cv_path_MSGMERGE+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898else
14899 case "$MSGMERGE" in
14900 [\\/]* | ?:[\\/]*)
14901 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14902 ;;
14903 *)
14904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14905 for ac_dir in $PATH; do
14906 IFS="$ac_save_IFS"
14907 test -z "$ac_dir" && ac_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14910 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14911 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14912 break 2
14913 fi
14914 fi
14915 done
14916 done
14917 IFS="$ac_save_IFS"
14918 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14919 ;;
14920esac
14921fi
14922MSGMERGE="$ac_cv_path_MSGMERGE"
14923if test "$MSGMERGE" != ":"; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14925$as_echo "$MSGMERGE" >&6; }
14926else
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14928$as_echo "no" >&6; }
14929fi
14930
14931
14932 if test "$GMSGFMT" != ":"; then
14933 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14934 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14935 : ;
14936 else
14937 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14939$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14940 GMSGFMT=":"
14941 fi
14942 fi
14943
14944 if test "$XGETTEXT" != ":"; then
14945 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14946 (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
14947 : ;
14948 else
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14950$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14951 XGETTEXT=":"
14952 fi
14953 rm -f messages.po
14954 fi
14955
14956 ac_config_commands="$ac_config_commands default-2"
14957
14958
14959
14960
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14962$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14963 # Check whether --enable-maintainer-mode was given.
14964if test "${enable_maintainer_mode+set}" = set; then :
14965 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14966else
14967 USE_MAINTAINER_MODE=no
14968fi
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14971$as_echo "$USE_MAINTAINER_MODE" >&6; }
14972 if test $USE_MAINTAINER_MODE = yes; then
14973 MAINTAINER_MODE_TRUE=
14974 MAINTAINER_MODE_FALSE='#'
14975else
14976 MAINTAINER_MODE_TRUE='#'
14977 MAINTAINER_MODE_FALSE=
14978fi
14979
14980 MAINT=$MAINTAINER_MODE_TRUE
14981
14982
14983 if false; then
14984 GENINSRC_NEVER_TRUE=
14985 GENINSRC_NEVER_FALSE='#'
14986else
14987 GENINSRC_NEVER_TRUE='#'
14988 GENINSRC_NEVER_FALSE=
14989fi
14990
14991
14992if test -n "$EXEEXT"; then
14993
14994$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
14995
14996fi
14997
14998cat >>confdefs.h <<_ACEOF
14999#define EXECUTABLE_SUFFIX "${EXEEXT}"
15000_ACEOF
15001
15002
15003# host-specific stuff:
15004
15005HDEFINES=
15006
15007. ${srcdir}/../bfd/configure.host
15008
15009
15010AR=${AR-ar}
15011
15012if test -n "$ac_tool_prefix"; then
15013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15014set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15016$as_echo_n "checking for $ac_word... " >&6; }
15017if ${ac_cv_prog_RANLIB+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019else
15020 if test -n "$RANLIB"; then
15021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15022else
15023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15024for as_dir in $PATH
15025do
15026 IFS=$as_save_IFS
15027 test -z "$as_dir" && as_dir=.
15028 for ac_exec_ext in '' $ac_executable_extensions; do
15029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15032 break 2
15033 fi
15034done
15035 done
15036IFS=$as_save_IFS
15037
15038fi
15039fi
15040RANLIB=$ac_cv_prog_RANLIB
15041if test -n "$RANLIB"; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15043$as_echo "$RANLIB" >&6; }
15044else
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046$as_echo "no" >&6; }
15047fi
15048
15049
15050fi
15051if test -z "$ac_cv_prog_RANLIB"; then
15052 ac_ct_RANLIB=$RANLIB
15053 # Extract the first word of "ranlib", so it can be a program name with args.
15054set dummy ranlib; ac_word=$2
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15056$as_echo_n "checking for $ac_word... " >&6; }
15057if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15058 $as_echo_n "(cached) " >&6
15059else
15060 if test -n "$ac_ct_RANLIB"; then
15061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15062else
15063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064for as_dir in $PATH
15065do
15066 IFS=$as_save_IFS
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070 ac_cv_prog_ac_ct_RANLIB="ranlib"
15071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15072 break 2
15073 fi
15074done
15075 done
15076IFS=$as_save_IFS
15077
15078fi
15079fi
15080ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15081if test -n "$ac_ct_RANLIB"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15083$as_echo "$ac_ct_RANLIB" >&6; }
15084else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086$as_echo "no" >&6; }
15087fi
15088
15089 if test "x$ac_ct_RANLIB" = x; then
15090 RANLIB=":"
15091 else
15092 case $cross_compiling:$ac_tool_warned in
15093yes:)
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15096ac_tool_warned=yes ;;
15097esac
15098 RANLIB=$ac_ct_RANLIB
15099 fi
15100else
15101 RANLIB="$ac_cv_prog_RANLIB"
15102fi
15103
15104
15105
15106# Put a plausible default for CC_FOR_BUILD in Makefile.
15107if test -z "$CC_FOR_BUILD"; then
15108 if test "x$cross_compiling" = "xno"; then
15109 CC_FOR_BUILD='$(CC)'
15110 else
15111 CC_FOR_BUILD=gcc
15112 fi
15113fi
15114
15115# Also set EXEEXT_FOR_BUILD.
15116if test "x$cross_compiling" = "xno"; then
15117 EXEEXT_FOR_BUILD='$(EXEEXT)'
15118else
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15120$as_echo_n "checking for build system executable suffix... " >&6; }
15121if ${bfd_cv_build_exeext+:} false; then :
15122 $as_echo_n "(cached) " >&6
15123else
15124 rm -f conftest*
15125 echo 'int main () { return 0; }' > conftest.c
15126 bfd_cv_build_exeext=
15127 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
15128 for file in conftest.*; do
15129 case $file in
15130 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
15131 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
15132 esac
15133 done
15134 rm -f conftest*
15135 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
15136fi
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
15138$as_echo "$bfd_cv_build_exeext" >&6; }
15139 EXEEXT_FOR_BUILD=""
15140 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
15141fi
15142
15143
15144DEMANGLER_NAME=c++filt
15145case "${host}" in
15146 *-*-go32* | *-*-msdos*)
15147 DEMANGLER_NAME=cxxfilt
15148esac
15149
15150
15151# We use headers from include/ that check various HAVE_*_H macros, thus
15152# should ensure they are set by configure. This is true even when C99
15153# guarantees they are available.
15154# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
15155# Besides those, we need to check anything used in binutils/ not in C99.
15156for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
15157 sys/stat.h sys/time.h sys/types.h unistd.h
15158do :
15159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15160ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15161if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15162 cat >>confdefs.h <<_ACEOF
15163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15164_ACEOF
15165
15166fi
15167
15168done
15169
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15171$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15172if ${ac_cv_header_sys_wait_h+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h. */
15177#include <sys/types.h>
15178#include <sys/wait.h>
15179#ifndef WEXITSTATUS
15180# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15181#endif
15182#ifndef WIFEXITED
15183# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15184#endif
15185
15186int
15187main ()
15188{
15189 int s;
15190 wait (&s);
15191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15192 ;
15193 return 0;
15194}
15195_ACEOF
15196if ac_fn_c_try_compile "$LINENO"; then :
15197 ac_cv_header_sys_wait_h=yes
15198else
15199 ac_cv_header_sys_wait_h=no
15200fi
15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202fi
15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15204$as_echo "$ac_cv_header_sys_wait_h" >&6; }
15205if test $ac_cv_header_sys_wait_h = yes; then
15206
15207$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15208
15209fi
15210
15211
15212
15213
15214 for ac_header in $ac_header_list
15215do :
15216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15217ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15218"
15219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15220 cat >>confdefs.h <<_ACEOF
15221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15222_ACEOF
15223
15224fi
15225
15226done
15227
15228
15229
15230
15231
15232
15233
303da223
L
15234save_ASAN_OPTIONS="$ASAN_OPTIONS"
15235 ASAN_OPTIONS=detect_leaks=0
15236 export ASAN_OPTIONS
862776f2
AA
15237
15238for ac_func in getpagesize
15239do :
15240 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15241if test "x$ac_cv_func_getpagesize" = xyes; then :
15242 cat >>confdefs.h <<_ACEOF
15243#define HAVE_GETPAGESIZE 1
15244_ACEOF
15245
15246fi
15247done
15248
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15250$as_echo_n "checking for working mmap... " >&6; }
15251if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253else
15254 if test "$cross_compiling" = yes; then :
15255 ac_cv_func_mmap_fixed_mapped=no
15256else
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258/* end confdefs.h. */
15259$ac_includes_default
15260/* malloc might have been renamed as rpl_malloc. */
15261#undef malloc
15262
15263/* Thanks to Mike Haertel and Jim Avera for this test.
15264 Here is a matrix of mmap possibilities:
15265 mmap private not fixed
15266 mmap private fixed at somewhere currently unmapped
15267 mmap private fixed at somewhere already mapped
15268 mmap shared not fixed
15269 mmap shared fixed at somewhere currently unmapped
15270 mmap shared fixed at somewhere already mapped
15271 For private mappings, we should verify that changes cannot be read()
15272 back from the file, nor mmap's back from the file at a different
15273 address. (There have been systems where private was not correctly
15274 implemented like the infamous i386 svr4.0, and systems where the
15275 VM page cache was not coherent with the file system buffer cache
15276 like early versions of FreeBSD and possibly contemporary NetBSD.)
34156b23
L
15277 For shared mappings, we should conversely verify that changes get
15278 propagated back to all the places they're supposed to be.
15279
15280 Grep wants private fixed already mapped.
15281 The main things grep needs to know about mmap are:
15282 * does it exist and is it safe to write into the mmap'd area
15283 * how to use it (BSD variants) */
15284
15285#include <fcntl.h>
15286#include <sys/mman.h>
15287
15288#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15289char *malloc ();
15290#endif
15291
15292/* This mess was copied from the GNU getpagesize.h. */
15293#ifndef HAVE_GETPAGESIZE
15294# ifdef _SC_PAGESIZE
15295# define getpagesize() sysconf(_SC_PAGESIZE)
15296# else /* no _SC_PAGESIZE */
15297# ifdef HAVE_SYS_PARAM_H
15298# include <sys/param.h>
15299# ifdef EXEC_PAGESIZE
15300# define getpagesize() EXEC_PAGESIZE
15301# else /* no EXEC_PAGESIZE */
15302# ifdef NBPG
15303# define getpagesize() NBPG * CLSIZE
15304# ifndef CLSIZE
15305# define CLSIZE 1
15306# endif /* no CLSIZE */
15307# else /* no NBPG */
15308# ifdef NBPC
15309# define getpagesize() NBPC
15310# else /* no NBPC */
15311# ifdef PAGESIZE
15312# define getpagesize() PAGESIZE
15313# endif /* PAGESIZE */
15314# endif /* no NBPC */
15315# endif /* no NBPG */
15316# endif /* no EXEC_PAGESIZE */
15317# else /* no HAVE_SYS_PARAM_H */
15318# define getpagesize() 8192 /* punt totally */
15319# endif /* no HAVE_SYS_PARAM_H */
15320# endif /* no _SC_PAGESIZE */
15321
15322#endif /* no HAVE_GETPAGESIZE */
15323
15324int
15325main ()
15326{
15327 char *data, *data2, *data3;
15328 const char *cdata2;
15329 int i, pagesize;
15330 int fd, fd2;
15331
15332 pagesize = getpagesize ();
15333
15334 /* First, make a file with some known garbage in it. */
15335 data = (char *) malloc (pagesize);
15336 if (!data)
15337 return 1;
15338 for (i = 0; i < pagesize; ++i)
15339 *(data + i) = rand ();
15340 umask (0);
15341 fd = creat ("conftest.mmap", 0600);
15342 if (fd < 0)
15343 return 2;
15344 if (write (fd, data, pagesize) != pagesize)
15345 return 3;
15346 close (fd);
15347
15348 /* Next, check that the tail of a page is zero-filled. File must have
15349 non-zero length, otherwise we risk SIGBUS for entire page. */
15350 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15351 if (fd2 < 0)
15352 return 4;
15353 cdata2 = "";
15354 if (write (fd2, cdata2, 1) != 1)
15355 return 5;
15356 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15357 if (data2 == MAP_FAILED)
15358 return 6;
15359 for (i = 0; i < pagesize; ++i)
15360 if (*(data2 + i))
15361 return 7;
15362 close (fd2);
15363 if (munmap (data2, pagesize))
15364 return 8;
15365
15366 /* Next, try to mmap the file at a fixed address which already has
15367 something else allocated at it. If we can, also make sure that
15368 we see the same garbage. */
15369 fd = open ("conftest.mmap", O_RDWR);
15370 if (fd < 0)
15371 return 9;
15372 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15373 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15374 return 10;
15375 for (i = 0; i < pagesize; ++i)
15376 if (*(data + i) != *(data2 + i))
15377 return 11;
15378
15379 /* Finally, make sure that changes to the mapped area do not
15380 percolate back to the file as seen by read(). (This is a bug on
15381 some variants of i386 svr4.0.) */
15382 for (i = 0; i < pagesize; ++i)
15383 *(data2 + i) = *(data2 + i) + 1;
15384 data3 = (char *) malloc (pagesize);
15385 if (!data3)
15386 return 12;
15387 if (read (fd, data3, pagesize) != pagesize)
15388 return 13;
15389 for (i = 0; i < pagesize; ++i)
15390 if (*(data + i) != *(data3 + i))
15391 return 14;
15392 close (fd);
15393 return 0;
15394}
15395_ACEOF
15396if ac_fn_c_try_run "$LINENO"; then :
15397 ac_cv_func_mmap_fixed_mapped=yes
15398else
15399 ac_cv_func_mmap_fixed_mapped=no
15400fi
15401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15402 conftest.$ac_objext conftest.beam conftest.$ac_ext
15403fi
15404
15405fi
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15407$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15408if test $ac_cv_func_mmap_fixed_mapped = yes; then
15409
15410$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15411
15412fi
15413rm -f conftest.mmap conftest.txt
15414
303da223
L
15415 ASAN_OPTIONS="$save_ASAN_OPTIONS"
15416
d7229d6a 15417for ac_func in fseeko fseeko64 getc_unlocked mkdtemp mkstemp utimensat utimes
81ecdfbb
RW
15418do :
15419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15420ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 15421if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
15422 cat >>confdefs.h <<_ACEOF
15423#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15424_ACEOF
42ecbf5e 15425
81ecdfbb
RW
15426fi
15427done
42ecbf5e 15428
42ecbf5e 15429
985e0264 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
3bfcb652 15431$as_echo_n "checking for mbstate_t... " >&6; }
985e0264 15432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3bfcb652
NC
15433/* end confdefs.h. */
15434#include <wchar.h>
15435int
15436main ()
15437{
15438mbstate_t teststate;
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_compile "$LINENO"; then :
15444 have_mbstate_t=yes
15445else
15446 have_mbstate_t=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
985e0264 15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
3bfcb652 15450$as_echo "$have_mbstate_t" >&6; }
985e0264 15451if test x"$have_mbstate_t" = xyes; then
3bfcb652
NC
15452
15453$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15454
985e0264
AM
15455fi
15456
15457# Copied from gnulib stat-time.m4.
15458# We should just switch over to using gnulib.
15459ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
15460 #include <sys/stat.h>
15461"
15462if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
15463
15464cat >>confdefs.h <<_ACEOF
15465#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
15466_ACEOF
15467
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
15469$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
15470if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472else
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474/* end confdefs.h. */
15475
15476 #include <sys/types.h>
15477 #include <sys/stat.h>
15478 #if HAVE_SYS_TIME_H
15479 # include <sys/time.h>
15480 #endif
15481 #include <time.h>
15482 struct timespec ts;
15483 struct stat st;
15484
15485int
15486main ()
15487{
15488
15489 st.st_atim = ts;
15490
15491 ;
15492 return 0;
15493}
15494_ACEOF
15495if ac_fn_c_try_compile "$LINENO"; then :
15496 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
15497else
15498 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
15499fi
15500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501fi
15502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
15503$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
15504 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
15505
15506$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
15507
15508 fi
15509else
15510 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
15511 #include <sys/stat.h>
15512"
15513if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
15514
15515cat >>confdefs.h <<_ACEOF
15516#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
15517_ACEOF
15518
15519
15520else
15521 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
15522 #include <sys/stat.h>
15523"
15524if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
15525
15526cat >>confdefs.h <<_ACEOF
15527#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
15528_ACEOF
15529
15530
15531else
15532 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
15533 #include <sys/stat.h>
15534"
15535if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
15536
15537cat >>confdefs.h <<_ACEOF
15538#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
15539_ACEOF
15540
15541
15542fi
15543
15544fi
15545
15546fi
15547
15548fi
15549
d15b04bd 15550
81ecdfbb
RW
15551# Some systems have frexp only in -lm, not in -lc.
15552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
15553$as_echo_n "checking for library containing frexp... " >&6; }
d0ac1c44 15554if ${ac_cv_search_frexp+:} false; then :
81ecdfbb 15555 $as_echo_n "(cached) " >&6
f9c026a8 15556else
81ecdfbb
RW
15557 ac_func_search_save_LIBS=$LIBS
15558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 15559/* end confdefs.h. */
f9c026a8 15560
81ecdfbb
RW
15561/* Override any GCC internal prototype to avoid an error.
15562 Use char because int might match the return type of a GCC
f9c026a8 15563 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
15564#ifdef __cplusplus
15565extern "C"
15566#endif
42ecbf5e
DJ
15567char frexp ();
15568int
15569main ()
15570{
81ecdfbb 15571return frexp ();
42ecbf5e
DJ
15572 ;
15573 return 0;
15574}
15575_ACEOF
81ecdfbb
RW
15576for ac_lib in '' m; do
15577 if test -z "$ac_lib"; then
15578 ac_res="none required"
15579 else
15580 ac_res=-l$ac_lib
42ecbf5e 15581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
15582 fi
15583 if ac_fn_c_try_link "$LINENO"; then :
15584 ac_cv_search_frexp=$ac_res
15585fi
15586rm -f core conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext
d0ac1c44 15588 if ${ac_cv_search_frexp+:} false; then :
81ecdfbb
RW
15589 break
15590fi
15591done
d0ac1c44 15592if ${ac_cv_search_frexp+:} false; then :
42ecbf5e 15593
f353eb8a 15594else
81ecdfbb 15595 ac_cv_search_frexp=no
e5a52504 15596fi
81ecdfbb 15597rm conftest.$ac_ext
42ecbf5e
DJ
15598LIBS=$ac_func_search_save_LIBS
15599fi
81ecdfbb
RW
15600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
15601$as_echo "$ac_cv_search_frexp" >&6; }
15602ac_res=$ac_cv_search_frexp
15603if test "$ac_res" != no; then :
15604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 15605
f353eb8a
ILT
15606fi
15607
42ecbf5e 15608
44350750
NC
15609
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15611$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 15612if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
15613 $as_echo_n "(cached) " >&6
15614else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616/* end confdefs.h. */
15617#include <locale.h>
15618int
15619main ()
15620{
15621return LC_MESSAGES
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626if ac_fn_c_try_link "$LINENO"; then :
15627 am_cv_val_LC_MESSAGES=yes
15628else
15629 am_cv_val_LC_MESSAGES=no
15630fi
15631rm -f core conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15635$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15636 if test $am_cv_val_LC_MESSAGES = yes; then
15637
15638$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15639
15640 fi
15641
15642
81ecdfbb
RW
15643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15644$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 15645if ${bu_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 15646 $as_echo_n "(cached) " >&6
e46eba98 15647else
81ecdfbb 15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 15649/* end confdefs.h. */
e46eba98 15650#include <unistd.h>
42ecbf5e
DJ
15651int
15652main ()
15653{
e46eba98 15654extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
15655 ;
15656 return 0;
15657}
15658_ACEOF
81ecdfbb 15659if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
15660 bu_cv_decl_getopt_unistd_h=yes
15661else
81ecdfbb 15662 bu_cv_decl_getopt_unistd_h=no
e46eba98 15663fi
81ecdfbb 15664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
15665fi
15666
81ecdfbb
RW
15667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
15668$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 15669if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 15670
81ecdfbb 15671$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
15672
15673fi
15674
252b5132
RH
15675# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
15676# by default.
81ecdfbb
RW
15677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
15678$as_echo_n "checking for utime.h... " >&6; }
d0ac1c44 15679if ${bu_cv_header_utime_h+:} false; then :
81ecdfbb 15680 $as_echo_n "(cached) " >&6
42ecbf5e 15681else
81ecdfbb 15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 15683/* end confdefs.h. */
252b5132
RH
15684#include <sys/types.h>
15685#ifdef HAVE_TIME_H
15686#include <time.h>
15687#endif
15688#include <utime.h>
42ecbf5e
DJ
15689int
15690main ()
15691{
252b5132 15692struct utimbuf s;
42ecbf5e
DJ
15693 ;
15694 return 0;
15695}
15696_ACEOF
81ecdfbb 15697if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
15698 bu_cv_header_utime_h=yes
15699else
81ecdfbb 15700 bu_cv_header_utime_h=no
252b5132 15701fi
81ecdfbb 15702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
15703fi
15704
81ecdfbb
RW
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
15706$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 15707if test $bu_cv_header_utime_h = yes; then
42ecbf5e 15708
81ecdfbb 15709$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
15710
15711fi
15712
1f5345a6 15713ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 15714if test "x$ac_cv_have_decl_asprintf" = xyes; then :
1f5345a6
ST
15715 ac_have_decl=1
15716else
15717 ac_have_decl=0
15718fi
15719
15720cat >>confdefs.h <<_ACEOF
15721#define HAVE_DECL_ASPRINTF $ac_have_decl
15722_ACEOF
952781e8 15723ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 15724if test "x$ac_cv_have_decl_environ" = xyes; then :
952781e8
AM
15725 ac_have_decl=1
15726else
15727 ac_have_decl=0
15728fi
15729
15730cat >>confdefs.h <<_ACEOF
15731#define HAVE_DECL_ENVIRON $ac_have_decl
15732_ACEOF
952781e8 15733ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
d0ac1c44 15734if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
81ecdfbb 15735 ac_have_decl=1
252b5132 15736else
81ecdfbb 15737 ac_have_decl=0
252b5132 15738fi
252b5132 15739
398ee8f1 15740cat >>confdefs.h <<_ACEOF
952781e8 15741#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
398ee8f1 15742_ACEOF
952781e8 15743ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 15744if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 15745 ac_have_decl=1
398ee8f1 15746else
81ecdfbb 15747 ac_have_decl=0
398ee8f1 15748fi
252b5132 15749
398ee8f1 15750cat >>confdefs.h <<_ACEOF
952781e8 15751#define HAVE_DECL_STPCPY $ac_have_decl
b7d4af3a 15752_ACEOF
b737d304
RO
15753ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15754if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15755 ac_have_decl=1
15756else
15757 ac_have_decl=0
15758fi
15759
15760cat >>confdefs.h <<_ACEOF
15761#define HAVE_DECL_STRNLEN $ac_have_decl
15762_ACEOF
db50c840
EB
15763
15764
2cac01e3 15765# Link in zlib/zstd if we can. This allows us to read compressed debug
ed2b5077
L
15766# sections. This is used only by readelf.c (objdump uses bfd for
15767# reading compressed sections).
15768
15769 # Use the system's zlib library.
39f3de7c
L
15770 zlibdir="-L\$(top_builddir)/../zlib"
15771 zlibinc="-I\$(top_srcdir)/../zlib"
52546677 15772
0ee42ecd
L
15773# Check whether --with-system-zlib was given.
15774if test "${with_system_zlib+set}" = set; then :
afa59b79
L
15775 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15776 zlibdir=
15777 zlibinc=
15778 fi
52546677 15779
52546677
RM
15780fi
15781
15782
52546677 15783
1b315056 15784
252b5132 15785
ed2b5077 15786
2cac01e3
FS
15787# Check whether --with-zstd was given.
15788if test "${with_zstd+set}" = set; then :
15789 withval=$with_zstd;
15790else
15791 with_zstd=auto
15792fi
15793
15794
15795if test "$with_zstd" != no; then :
15796
15797pkg_failed=no
200164d4
CL
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15799$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
2cac01e3
FS
15800
15801if test -n "$ZSTD_CFLAGS"; then
15802 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15803 elif test -n "$PKG_CONFIG"; then
15804 if test -n "$PKG_CONFIG" && \
200164d4
CL
15805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15806 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
2cac01e3
FS
15807 ac_status=$?
15808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15809 test $ac_status = 0; }; then
200164d4 15810 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
2cac01e3
FS
15811 test "x$?" != "x0" && pkg_failed=yes
15812else
15813 pkg_failed=yes
15814fi
15815 else
15816 pkg_failed=untried
15817fi
15818if test -n "$ZSTD_LIBS"; then
15819 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15820 elif test -n "$PKG_CONFIG"; then
15821 if test -n "$PKG_CONFIG" && \
200164d4
CL
15822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15823 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
2cac01e3
FS
15824 ac_status=$?
15825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15826 test $ac_status = 0; }; then
200164d4 15827 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
2cac01e3
FS
15828 test "x$?" != "x0" && pkg_failed=yes
15829else
15830 pkg_failed=yes
15831fi
15832 else
15833 pkg_failed=untried
15834fi
15835
15836if test $pkg_failed = no; then
15837 pkg_save_LDFLAGS="$LDFLAGS"
15838 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840/* end confdefs.h. */
15841
15842int
15843main ()
15844{
15845
15846 ;
15847 return 0;
15848}
15849_ACEOF
15850if ac_fn_c_try_link "$LINENO"; then :
15851
15852else
15853 pkg_failed=yes
15854fi
15855rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 LDFLAGS=$pkg_save_LDFLAGS
15858fi
15859
15860
15861
15862if test $pkg_failed = yes; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864$as_echo "no" >&6; }
15865
15866if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15867 _pkg_short_errors_supported=yes
15868else
15869 _pkg_short_errors_supported=no
15870fi
15871 if test $_pkg_short_errors_supported = yes; then
200164d4 15872 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
2cac01e3 15873 else
200164d4 15874 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
2cac01e3
FS
15875 fi
15876 # Put the nasty error message in config.log where it belongs
15877 echo "$ZSTD_PKG_ERRORS" >&5
15878
15879
15880 if test "$with_zstd" = yes; then
15881 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15882 fi
15883
15884elif test $pkg_failed = untried; then
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886$as_echo "no" >&6; }
15887
15888 if test "$with_zstd" = yes; then
15889 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15890 fi
15891
15892else
15893 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15894 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15896$as_echo "yes" >&6; }
15897
15898
15899$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15900
15901
15902fi
15903
15904fi
15905
15906
15907
252b5132 15908case "${host}" in
8a965946 15909*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 15910
81ecdfbb 15911$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
15912 ;;
15913esac
15914
2952f10c
SM
15915# Support for the msgpack C library.
15916
15917# Check whether --with-msgpack was given.
15918if test "${with_msgpack+set}" = set; then :
15919 withval=$with_msgpack;
15920else
15921 with_msgpack=auto
15922fi
15923
15924
544c5619 15925if test "$with_msgpack" != no; then :
2952f10c
SM
15926
15927pkg_failed=no
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
15929$as_echo_n "checking for msgpack... " >&6; }
15930
15931if test -n "$MSGPACK_CFLAGS"; then
15932 pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
15933 elif test -n "$PKG_CONFIG"; then
15934 if test -n "$PKG_CONFIG" && \
15935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15936 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15937 ac_status=$?
15938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939 test $ac_status = 0; }; then
15940 pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
15941 test "x$?" != "x0" && pkg_failed=yes
15942else
15943 pkg_failed=yes
15944fi
15945 else
15946 pkg_failed=untried
15947fi
15948if test -n "$MSGPACK_LIBS"; then
15949 pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
15950 elif test -n "$PKG_CONFIG"; then
15951 if test -n "$PKG_CONFIG" && \
15952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15953 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15954 ac_status=$?
15955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956 test $ac_status = 0; }; then
15957 pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
15958 test "x$?" != "x0" && pkg_failed=yes
15959else
15960 pkg_failed=yes
15961fi
15962 else
15963 pkg_failed=untried
15964fi
15965
15966if test $pkg_failed = no; then
15967 pkg_save_LDFLAGS="$LDFLAGS"
15968 LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970/* end confdefs.h. */
15971
15972int
15973main ()
15974{
15975
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980if ac_fn_c_try_link "$LINENO"; then :
15981
15982else
15983 pkg_failed=yes
15984fi
15985rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15987 LDFLAGS=$pkg_save_LDFLAGS
15988fi
15989
15990
15991
15992if test $pkg_failed = yes; then
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994$as_echo "no" >&6; }
15995
15996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15997 _pkg_short_errors_supported=yes
15998else
15999 _pkg_short_errors_supported=no
16000fi
16001 if test $_pkg_short_errors_supported = yes; then
16002 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
16003 else
16004 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
16005 fi
16006 # Put the nasty error message in config.log where it belongs
16007 echo "$MSGPACK_PKG_ERRORS" >&5
16008
544c5619
AM
16009 if test "$with_msgpack" = yes; then :
16010 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
16011fi
2952f10c
SM
16012elif test $pkg_failed = untried; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014$as_echo "no" >&6; }
544c5619
AM
16015 if test "$with_msgpack" = yes; then :
16016 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
16017fi
2952f10c
SM
16018else
16019 MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
16020 MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
862776f2
AA
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16022$as_echo "yes" >&6; }
9f1528a1 16023
862776f2 16024$as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
9f1528a1 16025
862776f2
AA
16026fi
16027fi
5ba684e2 16028
862776f2 16029# target-specific stuff:
5ba684e2 16030
862776f2
AA
16031# Canonicalize the secondary target names.
16032if test -n "$enable_targets"; then
16033 for targ in `echo $enable_targets | sed 's/,/ /g'`
16034 do
16035 result=`$ac_config_sub $targ 2>/dev/null`
16036 if test -n "$result"; then
16037 canon_targets="$canon_targets $result"
16038 else
16039 # Allow targets that config.sub doesn't recognize, like "all".
16040 canon_targets="$canon_targets $targ"
16041 fi
16042 done
16043fi
5ba684e2 16044
862776f2
AA
16045ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
16046if test "x$ac_cv_header_iconv_h" = xyes; then :
16047
16048fi
5ba684e2 16049
5ba684e2 16050
5ba684e2 16051
5ba684e2 16052
5ba684e2 16053
862776f2
AA
16054
16055
16056 am_save_CPPFLAGS="$CPPFLAGS"
16057
16058 for element in $INCICONV; do
16059 haveit=
16060 for x in $CPPFLAGS; do
5ba684e2
NC
16061
16062 acl_save_prefix="$prefix"
16063 prefix="$acl_final_prefix"
16064 acl_save_exec_prefix="$exec_prefix"
16065 exec_prefix="$acl_final_exec_prefix"
16066 eval x=\"$x\"
16067 exec_prefix="$acl_save_exec_prefix"
16068 prefix="$acl_save_prefix"
16069
862776f2
AA
16070 if test "X$x" = "X$element"; then
16071 haveit=yes
16072 break
5ba684e2
NC
16073 fi
16074 done
862776f2
AA
16075 if test -z "$haveit"; then
16076 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5ba684e2 16077 fi
862776f2 16078 done
5ba684e2
NC
16079
16080
81ecdfbb
RW
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16082$as_echo_n "checking for iconv... " >&6; }
d0ac1c44 16083if ${am_cv_func_iconv+:} false; then :
81ecdfbb 16084 $as_echo_n "(cached) " >&6
5ba684e2
NC
16085else
16086
16087 am_cv_func_iconv="no, consider installing GNU libiconv"
16088 am_cv_lib_iconv=no
81ecdfbb 16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2 16090/* end confdefs.h. */
862776f2 16091
5ba684e2
NC
16092#include <stdlib.h>
16093#include <iconv.h>
862776f2 16094
cfe101c6
YS
16095int
16096main ()
16097{
16098iconv_t cd = iconv_open("","");
16099 iconv(cd,NULL,NULL,NULL,NULL);
16100 iconv_close(cd);
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105if ac_fn_c_try_link "$LINENO"; then :
862776f2 16106 am_cv_func_iconv=yes
cfe101c6
YS
16107fi
16108rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
16110 if test "$am_cv_func_iconv" != yes; then
16111 am_save_LIBS="$LIBS"
16112 LIBS="$LIBS $LIBICONV"
81ecdfbb 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2 16114/* end confdefs.h. */
862776f2 16115
5ba684e2
NC
16116#include <stdlib.h>
16117#include <iconv.h>
862776f2 16118
5ba684e2
NC
16119int
16120main ()
16121{
16122iconv_t cd = iconv_open("","");
862776f2
AA
16123 iconv(cd,NULL,NULL,NULL,NULL);
16124 iconv_close(cd);
5ba684e2
NC
16125 ;
16126 return 0;
16127}
16128_ACEOF
81ecdfbb 16129if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
16130 am_cv_lib_iconv=yes
16131 am_cv_func_iconv=yes
5ba684e2 16132fi
81ecdfbb
RW
16133rm -f core conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
16135 LIBS="$am_save_LIBS"
16136 fi
16137
16138fi
81ecdfbb
RW
16139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16140$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2 16141 if test "$am_cv_func_iconv" = yes; then
862776f2
AA
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16143$as_echo_n "checking for working iconv... " >&6; }
16144if ${am_cv_func_iconv_works+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146else
5ba684e2 16147
862776f2
AA
16148 am_save_LIBS="$LIBS"
16149 if test $am_cv_lib_iconv = yes; then
16150 LIBS="$LIBS $LIBICONV"
16151 fi
16152 am_cv_func_iconv_works=no
16153 for ac_iconv_const in '' 'const'; do
16154 if test "$cross_compiling" = yes; then :
16155 case "$host_os" in
16156 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16157 *) am_cv_func_iconv_works="guessing yes" ;;
16158 esac
16159else
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161/* end confdefs.h. */
5ba684e2 16162
862776f2
AA
16163#include <iconv.h>
16164#include <string.h>
cfe101c6 16165
862776f2
AA
16166#ifndef ICONV_CONST
16167# define ICONV_CONST $ac_iconv_const
16168#endif
cfe101c6 16169
862776f2
AA
16170int
16171main ()
16172{
16173int result = 0;
16174 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
16175 successful returns. This is even documented in
16176 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
16177 {
16178 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16179 if (cd_utf8_to_88591 != (iconv_t)(-1))
16180 {
16181 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16182 char buf[10];
16183 ICONV_CONST char *inptr = input;
16184 size_t inbytesleft = strlen (input);
16185 char *outptr = buf;
16186 size_t outbytesleft = sizeof (buf);
16187 size_t res = iconv (cd_utf8_to_88591,
16188 &inptr, &inbytesleft,
16189 &outptr, &outbytesleft);
16190 if (res == 0)
16191 result |= 1;
16192 iconv_close (cd_utf8_to_88591);
16193 }
16194 }
16195 /* Test against Solaris 10 bug: Failures are not distinguishable from
16196 successful returns. */
16197 {
16198 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16199 if (cd_ascii_to_88591 != (iconv_t)(-1))
16200 {
16201 static ICONV_CONST char input[] = "\263";
16202 char buf[10];
16203 ICONV_CONST char *inptr = input;
16204 size_t inbytesleft = strlen (input);
16205 char *outptr = buf;
16206 size_t outbytesleft = sizeof (buf);
16207 size_t res = iconv (cd_ascii_to_88591,
16208 &inptr, &inbytesleft,
16209 &outptr, &outbytesleft);
16210 if (res == 0)
16211 result |= 2;
16212 iconv_close (cd_ascii_to_88591);
16213 }
16214 }
16215 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16216 {
16217 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16218 if (cd_88591_to_utf8 != (iconv_t)(-1))
16219 {
16220 static ICONV_CONST char input[] = "\304";
16221 static char buf[2] = { (char)0xDE, (char)0xAD };
16222 ICONV_CONST char *inptr = input;
16223 size_t inbytesleft = 1;
16224 char *outptr = buf;
16225 size_t outbytesleft = 1;
16226 size_t res = iconv (cd_88591_to_utf8,
16227 &inptr, &inbytesleft,
16228 &outptr, &outbytesleft);
16229 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16230 result |= 4;
16231 iconv_close (cd_88591_to_utf8);
16232 }
16233 }
16234#if 0 /* This bug could be worked around by the caller. */
16235 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16236 {
16237 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16238 if (cd_88591_to_utf8 != (iconv_t)(-1))
16239 {
16240 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16241 char buf[50];
16242 ICONV_CONST char *inptr = input;
16243 size_t inbytesleft = strlen (input);
16244 char *outptr = buf;
16245 size_t outbytesleft = sizeof (buf);
16246 size_t res = iconv (cd_88591_to_utf8,
16247 &inptr, &inbytesleft,
16248 &outptr, &outbytesleft);
16249 if ((int)res > 0)
16250 result |= 8;
16251 iconv_close (cd_88591_to_utf8);
16252 }
16253 }
16254#endif
16255 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16256 provided. */
16257 {
16258 /* Try standardized names. */
16259 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
16260 /* Try IRIX, OSF/1 names. */
16261 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
16262 /* Try AIX names. */
16263 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
16264 /* Try HP-UX names. */
16265 iconv_t cd4 = iconv_open ("utf8", "eucJP");
16266 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
16267 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
16268 result |= 16;
16269 if (cd1 != (iconv_t)(-1))
16270 iconv_close (cd1);
16271 if (cd2 != (iconv_t)(-1))
16272 iconv_close (cd2);
16273 if (cd3 != (iconv_t)(-1))
16274 iconv_close (cd3);
16275 if (cd4 != (iconv_t)(-1))
16276 iconv_close (cd4);
16277 }
16278 return result;
cfe101c6 16279
862776f2
AA
16280 ;
16281 return 0;
16282}
16283_ACEOF
16284if ac_fn_c_try_run "$LINENO"; then :
16285 am_cv_func_iconv_works=yes
16286fi
16287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16288 conftest.$ac_objext conftest.beam conftest.$ac_ext
16289fi
16290
16291 test "$am_cv_func_iconv_works" = no || break
16292 done
16293 LIBS="$am_save_LIBS"
cfe101c6 16294
862776f2
AA
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16297$as_echo "$am_cv_func_iconv_works" >&6; }
16298 case "$am_cv_func_iconv_works" in
16299 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16300 *) am_func_iconv=yes ;;
16301 esac
16302 else
16303 am_func_iconv=no am_cv_lib_iconv=no
16304 fi
16305 if test "$am_func_iconv" = yes; then
16306
16307$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16308
16309 fi
16310 if test "$am_cv_lib_iconv" = yes; then
81ecdfbb
RW
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16312$as_echo_n "checking how to link with libiconv... " >&6; }
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16314$as_echo "$LIBICONV" >&6; }
5ba684e2 16315 else
862776f2 16316 CPPFLAGS="$am_save_CPPFLAGS"
5ba684e2
NC
16317 LIBICONV=
16318 LTLIBICONV=
16319 fi
16320
16321
16322
16323 if test "$am_cv_func_iconv" = yes; then
862776f2
AA
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
16325$as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
16326if ${gl_cv_iconv_nonconst+:} false; then :
81ecdfbb 16327 $as_echo_n "(cached) " >&6
5ba684e2 16328else
862776f2 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
16330/* end confdefs.h. */
16331
16332#include <stdlib.h>
16333#include <iconv.h>
16334extern
16335#ifdef __cplusplus
16336"C"
16337#endif
5ba684e2 16338size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5ba684e2
NC
16339
16340int
16341main ()
16342{
16343
16344 ;
16345 return 0;
16346}
16347_ACEOF
81ecdfbb 16348if ac_fn_c_try_compile "$LINENO"; then :
862776f2 16349 gl_cv_iconv_nonconst=yes
5ba684e2 16350else
862776f2 16351 gl_cv_iconv_nonconst=no
5ba684e2 16352fi
81ecdfbb 16353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2 16354
862776f2
AA
16355fi
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
16357$as_echo "$gl_cv_iconv_nonconst" >&6; }
16358 else
16359 gl_cv_iconv_nonconst=yes
16360 fi
16361 if test $gl_cv_iconv_nonconst = yes; then
16362 iconv_arg1=""
16363 else
16364 iconv_arg1="const"
16365 fi
5ba684e2
NC
16366
16367cat >>confdefs.h <<_ACEOF
862776f2 16368#define ICONV_CONST $iconv_arg1
5ba684e2
NC
16369_ACEOF
16370
862776f2
AA
16371
16372
16373 if test "$am_func_iconv" = yes; then
16374 if test -n "$LIBICONV"; then
16375 am_cv_func_iconv_summary='yes, in libiconv'
16376 else
16377 am_cv_func_iconv_summary='yes, in libc'
16378 fi
16379 else
16380 if test "$am_cv_func_iconv" = yes; then
16381 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
16382 else
16383 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
16384 fi
5ba684e2
NC
16385 fi
16386
16387
252b5132
RH
16388BUILD_SRCONV=
16389BUILD_DLLTOOL=
16390DLLTOOL_DEFS=
7aad4c3d 16391DLLTOOL_DEFAULT=
252b5132 16392BUILD_WINDRES=
692ed3e7 16393BUILD_WINDMC=
252b5132
RH
16394BUILD_DLLWRAP=
16395BUILD_MISC=
1d97d67f 16396BUILD_INSTALL_MISC=
8b1e6df3 16397OBJDUMP_DEFS=
6abcee90
TG
16398OBJDUMP_PRIVATE_VECTORS=
16399OBJDUMP_PRIVATE_OFILES=
16400od_vectors=
252b5132
RH
16401
16402for targ in $target $canon_targets
16403do
b5c37946
SJ
16404 case $targ in
16405 all | *-*-hms*)
252b5132 16406 BUILD_SRCONV='$(SRCONV_PROG)'
b5c37946
SJ
16407 ;;
16408 esac
16409
16410 case $targ in
16411 all | spu-*-*)
16412 BUILD_MISC='bin2c$(EXEEXT_FOR_BUILD)'
16413 ;;
16414 esac
16415
16416 case $targ in
16417 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16418 BUILD_INSTALL_MISC=embedspu
16419 ;;
16420 esac
16421
16422 case $targ in
16423 mep-*)
16424 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16425 ;;
16426 powerpc*-aix5.[01])
16427 ;;
16428 powerpc*-aix[5-9].*)
16429 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16430 ;;
16431 esac
16432
16433 case $targ in
16434 aarch64-*-mingw*)
b7bf7f1b
AM
16435 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16436 if test -z "$DLLTOOL_DEFAULT"; then
b5c37946 16437 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
b7bf7f1b 16438 fi
b5c37946
SJ
16439 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_AARCH64"
16440 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16441 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
b7bf7f1b 16442 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
b5c37946
SJ
16443 ;;
16444 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
16445 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16446 if test -z "$DLLTOOL_DEFAULT"; then
675b9d61 16447 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
b5c37946
SJ
16448 fi
16449 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16450 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16451 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16452 ;;
16453 arm-*-pe*)
16454 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16455 if test -z "$DLLTOOL_DEFAULT"; then
675b9d61 16456 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
b5c37946
SJ
16457 fi
16458 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16459 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16460 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16461 ;;
16462 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | all)
16463 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16464 if test -z "$DLLTOOL_DEFAULT"; then
7aad4c3d 16465 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
b5c37946
SJ
16466 fi
16467 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16468 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16469 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16470 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16471 ;;
16472 i[3-7]86-*-interix)
16473 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16474 if test -z "$DLLTOOL_DEFAULT"; then
675b9d61 16475 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
b5c37946
SJ
16476 fi
16477 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16478 ;;
16479 mcore-*-pe)
16480 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16481 if test -z "$DLLTOOL_DEFAULT"; then
7aad4c3d 16482 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
b5c37946
SJ
16483 fi
16484 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16485 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16486 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16487 ;;
16488 mcore-*-elf)
16489 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16490 if test -z "$DLLTOOL_DEFAULT"; then
7aad4c3d 16491 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
b5c37946
SJ
16492 fi
16493 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16494 ;;
16495 sh*-*-pe)
16496 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16497 if test -z "$DLLTOOL_DEFAULT"; then
16498 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16499 fi
16500 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16501 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16502 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16503 ;;
16504 x86_64-*-mingw* | x86_64-*-cygwin*)
16505 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16506 if test -z "$DLLTOOL_DEFAULT"; then
16507 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16508 fi
16509 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16510 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16511 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16512 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16513 ;;
16514 esac
6abcee90 16515
b5c37946
SJ
16516 # Add objdump private vectors.
16517 case $targ in
16518 all)
16519 od_vectors="objdump_private_desc_elf32_avr objdump_private_desc_xcoff\
16520 objdump_private_desc_pe objdump_private_desc_mach_o"
16521 ;;
16522 avr-*-*)
16523 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
16524 ;;
16525 powerpc*-*-aix* | rs6000-*-aix*)
16526 od_vectors="$od_vectors objdump_private_desc_xcoff"
16527 ;;
16528 *-*-pe* | *-*-cygwin* | *-*-mingw*)
16529 od_vectors="$od_vectors objdump_private_desc_pe"
16530 ;;
16531 *-*-darwin*)
16532 od_vectors="$od_vectors objdump_private_desc_mach_o"
16533 ;;
16534 esac
252b5132
RH
16535done
16536
6abcee90
TG
16537# Uniq objdump private vector, build objdump target ofiles.
16538od_files=
16539f=""
16540for i in $od_vectors ; do
16541 case " $f " in
16542 *" $i "*) ;;
16543 *)
16544 f="$f $i"
16545 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
16546 case $i in
6d0cfb9c
DC
16547 objdump_private_desc_elf32_avr)
16548 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
16549 objdump_private_desc_xcoff)
16550 od_files="$od_files od-xcoff" ;;
45b8517a
NC
16551 objdump_private_desc_pe)
16552 od_files="$od_files od-pe" ;;
c5012cd8
TG
16553 objdump_private_desc_mach_o)
16554 od_files="$od_files od-macho" ;;
d0ac1c44 16555 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
6abcee90
TG
16556 esac
16557 ;;
16558 esac
16559done
16560
16561# Uniq objdump target ofiles
16562f=""
16563for i in $od_files ; do
16564 case " $f " in
16565 *" $i "*) ;;
16566 *)
16567 f="$f $i"
16568 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
16569 ;;
16570 esac
16571done
16572
7aad4c3d
L
16573DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16574
42ecbf5e
DJ
16575if test "${with_windres+set}" = set; then
16576 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16577fi
16578
692ed3e7
NC
16579if test "${with_windmc+set}" = set; then
16580 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16581fi
16582
6abcee90
TG
16583OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
16584
16585
692ed3e7 16586
42ecbf5e
DJ
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
42ecbf5e
DJ
16597cat >>confdefs.h <<_ACEOF
16598#define TARGET "${target}"
16599_ACEOF
16600
16601
16602targ=$target
16603. $srcdir/../bfd/config.bfd
16604if test "x$targ_underscore" = "xyes"; then
16605 UNDERSCORE=1
16606else
16607 UNDERSCORE=0
16608fi
16609
16610cat >>confdefs.h <<_ACEOF
16611#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16612_ACEOF
16613
16614
16615# Emulation
52fbfb5d
AM
16616targ=$target
16617. ${srcdir}/configure.tgt
16618EMULATION=$targ_emul
16619EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
16620
16621
16622
16623
108a6f8e
CD
16624# Required for html and install-html
16625
16626
16627
16628
31dd3154 16629
45c06bb7 16630ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 16631
42ecbf5e
DJ
16632cat >confcache <<\_ACEOF
16633# This file is a shell script that caches the results of configure
16634# tests run on this system so they can be shared between configure
16635# scripts and configure runs, see configure's option --config-cache.
16636# It is not useful on other systems. If it contains results you don't
16637# want to keep, you may remove or edit it.
16638#
16639# config.status only pays attention to the cache file if you give it
16640# the --recheck option to rerun configure.
16641#
16642# `ac_cv_env_foo' variables (set or unset) will be overridden when
16643# loading this file, other *unset* `ac_cv_foo' will be assigned the
16644# following values.
16645
16646_ACEOF
16647
16648# The following way of writing the cache mishandles newlines in values,
16649# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 16650# So, we kill variables containing newlines.
42ecbf5e
DJ
16651# Ultrix sh set writes to stderr and can't be redirected directly,
16652# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
16653(
16654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16655 eval ac_val=\$$ac_var
16656 case $ac_val in #(
16657 *${as_nl}*)
16658 case $ac_var in #(
16659 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16660$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16661 esac
16662 case $ac_var in #(
16663 _ | IFS | as_nl) ;; #(
16664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16665 *) { eval $ac_var=; unset $ac_var;} ;;
16666 esac ;;
16667 esac
16668 done
16669
42ecbf5e 16670 (set) 2>&1 |
81ecdfbb
RW
16671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16672 *${as_nl}ac_space=\ *)
16673 # `set' does not quote correctly, so add quotes: double-quote
16674 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
16675 sed -n \
16676 "s/'/'\\\\''/g;
16677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 16678 ;; #(
42ecbf5e
DJ
16679 *)
16680 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 16681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 16682 ;;
81ecdfbb
RW
16683 esac |
16684 sort
16685) |
42ecbf5e 16686 sed '
81ecdfbb 16687 /^ac_cv_env_/b end
42ecbf5e 16688 t clear
81ecdfbb 16689 :clear
42ecbf5e
DJ
16690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16691 t end
81ecdfbb
RW
16692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16693 :end' >>confcache
16694if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16695 if test -w "$cache_file"; then
d0ac1c44 16696 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16698$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
16699 if test ! -f "$cache_file" || test -h "$cache_file"; then
16700 cat confcache >"$cache_file"
16701 else
16702 case $cache_file in #(
16703 */* | ?:*)
16704 mv -f confcache "$cache_file"$$ &&
16705 mv -f "$cache_file"$$ "$cache_file" ;; #(
16706 *)
16707 mv -f confcache "$cache_file" ;;
16708 esac
16709 fi
16710 fi
42ecbf5e 16711 else
81ecdfbb
RW
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16713$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
16714 fi
16715fi
16716rm -f confcache
16717
16718test "x$prefix" = xNONE && prefix=$ac_default_prefix
16719# Let make expand exec_prefix.
16720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16721
42ecbf5e
DJ
16722DEFS=-DHAVE_CONFIG_H
16723
16724ac_libobjs=
16725ac_ltlibobjs=
d0ac1c44 16726U=
42ecbf5e
DJ
16727for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16728 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
16729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16732 # will be set to the directory where LIBOBJS objects are built.
16733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
16735done
16736LIBOBJS=$ac_libobjs
16737
16738LTLIBOBJS=$ac_ltlibobjs
16739
16740
d0ac1c44
SM
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16742$as_echo_n "checking that generated files are newer than configure... " >&6; }
16743 if test -n "$am_sleep_pid"; then
16744 # Hide warnings about reused PIDs.
16745 wait $am_sleep_pid 2>/dev/null
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16748$as_echo "done" >&6; }
81ecdfbb
RW
16749 if test -n "$EXEEXT"; then
16750 am__EXEEXT_TRUE=
16751 am__EXEEXT_FALSE='#'
16752else
16753 am__EXEEXT_TRUE='#'
16754 am__EXEEXT_FALSE=
42ecbf5e 16755fi
81ecdfbb 16756
87b9f255
AM
16757if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16758 as_fn_error $? "conditional \"AMDEP\" was never defined.
16759Usually this means the macro was only invoked conditionally." "$LINENO" 5
16760fi
16761if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16762 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16763Usually this means the macro was only invoked conditionally." "$LINENO" 5
16764fi
3f8f9745 16765
094e34f2
NA
16766if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
16767 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
16768Usually this means the macro was only invoked conditionally." "$LINENO" 5
16769fi
42ecbf5e 16770if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 16771 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 16772Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 16773fi
d5fbea21 16774if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 16775 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 16776Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 16777fi
42ecbf5e 16778
d0ac1c44 16779: "${CONFIG_STATUS=./config.status}"
81ecdfbb 16780ac_write_fail=0
42ecbf5e
DJ
16781ac_clean_files_save=$ac_clean_files
16782ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16784$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16785as_write_fail=0
16786cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
16787#! $SHELL
16788# Generated by $as_me.
16789# Run this file to recreate the current configuration.
16790# Compiler output produced by configure, useful for debugging
16791# configure, is in config.log if it exists.
16792
16793debug=false
16794ac_cs_recheck=false
16795ac_cs_silent=false
252b5132 16796
81ecdfbb
RW
16797SHELL=\${CONFIG_SHELL-$SHELL}
16798export SHELL
16799_ASEOF
16800cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16801## -------------------- ##
16802## M4sh Initialization. ##
16803## -------------------- ##
252b5132 16804
81ecdfbb
RW
16805# Be more Bourne compatible
16806DUALCASE=1; export DUALCASE # for MKS sh
16807if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
16808 emulate sh
16809 NULLCMD=:
81ecdfbb 16810 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
16811 # is contrary to our usage. Disable this feature.
16812 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16813 setopt NO_GLOB_SUBST
16814else
16815 case `(set -o) 2>/dev/null` in #(
16816 *posix*) :
16817 set -o posix ;; #(
16818 *) :
16819 ;;
16820esac
42ecbf5e 16821fi
252b5132 16822
81ecdfbb
RW
16823
16824as_nl='
16825'
16826export as_nl
16827# Printing a long string crashes Solaris 7 /usr/bin/printf.
16828as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16829as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16830as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16831# Prefer a ksh shell builtin over an external printf program on Solaris,
16832# but without wasting forks for bash or zsh.
16833if test -z "$BASH_VERSION$ZSH_VERSION" \
16834 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16835 as_echo='print -r --'
16836 as_echo_n='print -rn --'
16837elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16838 as_echo='printf %s\n'
16839 as_echo_n='printf %s'
16840else
16841 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16842 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16843 as_echo_n='/usr/ucb/echo -n'
16844 else
16845 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16846 as_echo_n_body='eval
16847 arg=$1;
16848 case $arg in #(
16849 *"$as_nl"*)
16850 expr "X$arg" : "X\\(.*\\)$as_nl";
16851 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16852 esac;
16853 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16854 '
16855 export as_echo_n_body
16856 as_echo_n='sh -c $as_echo_n_body as_echo'
16857 fi
16858 export as_echo_body
16859 as_echo='sh -c $as_echo_body as_echo'
16860fi
16861
16862# The user is always right.
16863if test "${PATH_SEPARATOR+set}" != set; then
16864 PATH_SEPARATOR=:
16865 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16866 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16867 PATH_SEPARATOR=';'
16868 }
42ecbf5e 16869fi
252b5132
RH
16870
16871
81ecdfbb
RW
16872# IFS
16873# We need space, tab and new line, in precisely that order. Quoting is
16874# there to prevent editors from complaining about space-tab.
16875# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16876# splitting by setting IFS to empty value.)
16877IFS=" "" $as_nl"
16878
16879# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 16880as_myself=
81ecdfbb
RW
16881case $0 in #((
16882 *[\\/]* ) as_myself=$0 ;;
16883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16884for as_dir in $PATH
16885do
16886 IFS=$as_save_IFS
16887 test -z "$as_dir" && as_dir=.
16888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16889 done
16890IFS=$as_save_IFS
16891
16892 ;;
16893esac
16894# We did not find ourselves, most probably we were run as `sh COMMAND'
16895# in which case we are not to be found in the path.
16896if test "x$as_myself" = x; then
16897 as_myself=$0
16898fi
16899if test ! -f "$as_myself"; then
16900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16901 exit 1
16902fi
16903
16904# Unset variables that we do not need and which cause bugs (e.g. in
16905# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16906# suppresses any "Segmentation fault" message there. '((' could
16907# trigger a bug in pdksh 5.2.14.
16908for as_var in BASH_ENV ENV MAIL MAILPATH
16909do eval test x\${$as_var+set} = xset \
16910 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16911done
42ecbf5e
DJ
16912PS1='$ '
16913PS2='> '
16914PS4='+ '
252b5132 16915
42ecbf5e 16916# NLS nuisances.
81ecdfbb
RW
16917LC_ALL=C
16918export LC_ALL
16919LANGUAGE=C
16920export LANGUAGE
16921
16922# CDPATH.
16923(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16924
16925
d0ac1c44
SM
16926# as_fn_error STATUS ERROR [LINENO LOG_FD]
16927# ----------------------------------------
81ecdfbb
RW
16928# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16929# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 16930# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
16931as_fn_error ()
16932{
d0ac1c44
SM
16933 as_status=$1; test $as_status -eq 0 && as_status=1
16934 if test "$4"; then
16935 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16936 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 16937 fi
d0ac1c44 16938 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
16939 as_fn_exit $as_status
16940} # as_fn_error
16941
16942
16943# as_fn_set_status STATUS
16944# -----------------------
16945# Set $? to STATUS, without forking.
16946as_fn_set_status ()
16947{
16948 return $1
16949} # as_fn_set_status
16950
16951# as_fn_exit STATUS
16952# -----------------
16953# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16954as_fn_exit ()
16955{
16956 set +e
16957 as_fn_set_status $1
16958 exit $1
16959} # as_fn_exit
16960
16961# as_fn_unset VAR
16962# ---------------
16963# Portably unset VAR.
16964as_fn_unset ()
16965{
16966 { eval $1=; unset $1;}
16967}
16968as_unset=as_fn_unset
16969# as_fn_append VAR VALUE
16970# ----------------------
16971# Append the text in VALUE to the end of the definition contained in VAR. Take
16972# advantage of any shell optimizations that allow amortized linear growth over
16973# repeated appends, instead of the typical quadratic growth present in naive
16974# implementations.
16975if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16976 eval 'as_fn_append ()
16977 {
16978 eval $1+=\$2
16979 }'
16980else
16981 as_fn_append ()
16982 {
16983 eval $1=\$$1\$2
16984 }
16985fi # as_fn_append
16986
16987# as_fn_arith ARG...
16988# ------------------
16989# Perform arithmetic evaluation on the ARGs, and store the result in the
16990# global $as_val. Take advantage of shells that can avoid forks. The arguments
16991# must be portable across $(()) and expr.
16992if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16993 eval 'as_fn_arith ()
16994 {
16995 as_val=$(( $* ))
16996 }'
16997else
16998 as_fn_arith ()
16999 {
17000 as_val=`expr "$@" || test $? -eq 1`
17001 }
17002fi # as_fn_arith
17003
252b5132 17004
81ecdfbb
RW
17005if expr a : '\(a\)' >/dev/null 2>&1 &&
17006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17007 as_expr=expr
17008else
17009 as_expr=false
17010fi
252b5132 17011
81ecdfbb 17012if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17013 as_basename=basename
17014else
17015 as_basename=false
17016fi
252b5132 17017
81ecdfbb
RW
17018if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17019 as_dirname=dirname
17020else
17021 as_dirname=false
17022fi
8b1e6df3 17023
81ecdfbb 17024as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17025$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17026 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17028$as_echo X/"$0" |
17029 sed '/^.*\/\([^/][^/]*\)\/*$/{
17030 s//\1/
17031 q
17032 }
17033 /^X\/\(\/\/\)$/{
17034 s//\1/
17035 q
17036 }
17037 /^X\/\(\/\).*/{
17038 s//\1/
17039 q
17040 }
17041 s/.*/./; q'`
0218d1e4 17042
42ecbf5e
DJ
17043# Avoid depending upon Character Ranges.
17044as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17045as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17046as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17047as_cr_digits='0123456789'
17048as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 17049
81ecdfbb
RW
17050ECHO_C= ECHO_N= ECHO_T=
17051case `echo -n x` in #(((((
17052-n*)
17053 case `echo 'xy\c'` in
17054 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17055 xy) ECHO_C='\c';;
17056 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17057 ECHO_T=' ';;
17058 esac;;
17059*)
17060 ECHO_N='-n';;
42ecbf5e 17061esac
eb1e0e80 17062
81ecdfbb
RW
17063rm -f conf$$ conf$$.exe conf$$.file
17064if test -d conf$$.dir; then
17065 rm -f conf$$.dir/conf$$.file
d15b04bd 17066else
81ecdfbb
RW
17067 rm -f conf$$.dir
17068 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17069fi
81ecdfbb
RW
17070if (echo >conf$$.file) 2>/dev/null; then
17071 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17072 as_ln_s='ln -s'
81ecdfbb
RW
17073 # ... but there are two gotchas:
17074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 17076 # In both cases, we have to default to `cp -pR'.
81ecdfbb 17077 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 17078 as_ln_s='cp -pR'
81ecdfbb
RW
17079 elif ln conf$$.file conf$$ 2>/dev/null; then
17080 as_ln_s=ln
17081 else
d0ac1c44 17082 as_ln_s='cp -pR'
252b5132 17083 fi
42ecbf5e 17084else
d0ac1c44 17085 as_ln_s='cp -pR'
252b5132 17086fi
81ecdfbb
RW
17087rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17088rmdir conf$$.dir 2>/dev/null
17089
17090
17091# as_fn_mkdir_p
17092# -------------
17093# Create "$as_dir" as a directory, including parents if necessary.
17094as_fn_mkdir_p ()
17095{
17096
17097 case $as_dir in #(
17098 -*) as_dir=./$as_dir;;
17099 esac
17100 test -d "$as_dir" || eval $as_mkdir_p || {
17101 as_dirs=
17102 while :; do
17103 case $as_dir in #(
17104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17105 *) as_qdir=$as_dir;;
17106 esac
17107 as_dirs="'$as_qdir' $as_dirs"
17108 as_dir=`$as_dirname -- "$as_dir" ||
17109$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17110 X"$as_dir" : 'X\(//\)[^/]' \| \
17111 X"$as_dir" : 'X\(//\)$' \| \
17112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17113$as_echo X"$as_dir" |
17114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17115 s//\1/
17116 q
17117 }
17118 /^X\(\/\/\)[^/].*/{
17119 s//\1/
17120 q
17121 }
17122 /^X\(\/\/\)$/{
17123 s//\1/
17124 q
17125 }
17126 /^X\(\/\).*/{
17127 s//\1/
17128 q
17129 }
17130 s/.*/./; q'`
17131 test -d "$as_dir" && break
17132 done
17133 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 17134 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 17135
252b5132 17136
81ecdfbb 17137} # as_fn_mkdir_p
42ecbf5e 17138if mkdir -p . 2>/dev/null; then
81ecdfbb 17139 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17140else
17141 test -d ./-p && rmdir ./-p
17142 as_mkdir_p=false
17143fi
81ecdfbb 17144
d0ac1c44
SM
17145
17146# as_fn_executable_p FILE
17147# -----------------------
17148# Test if FILE is an executable regular file.
17149as_fn_executable_p ()
17150{
17151 test -f "$1" && test -x "$1"
17152} # as_fn_executable_p
17153as_test_x='test -x'
17154as_executable_p=as_fn_executable_p
252b5132 17155
42ecbf5e
DJ
17156# Sed expression to map a string onto a valid CPP name.
17157as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17158
17159# Sed expression to map a string onto a valid variable name.
17160as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17161
17162
42ecbf5e 17163exec 6>&1
81ecdfbb
RW
17164## ----------------------------------- ##
17165## Main body of $CONFIG_STATUS script. ##
17166## ----------------------------------- ##
17167_ASEOF
17168test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 17169
81ecdfbb
RW
17170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17172# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17173# values after options handling.
17174ac_log="
e775d3a9 17175This file was extended by binutils $as_me 2.42.50, which was
d0ac1c44 17176generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
17177
17178 CONFIG_FILES = $CONFIG_FILES
17179 CONFIG_HEADERS = $CONFIG_HEADERS
17180 CONFIG_LINKS = $CONFIG_LINKS
17181 CONFIG_COMMANDS = $CONFIG_COMMANDS
17182 $ $0 $@
17183
81ecdfbb
RW
17184on `(hostname || uname -n) 2>/dev/null | sed 1q`
17185"
17186
42ecbf5e
DJ
17187_ACEOF
17188
81ecdfbb
RW
17189case $ac_config_files in *"
17190"*) set x $ac_config_files; shift; ac_config_files=$*;;
17191esac
252b5132 17192
81ecdfbb
RW
17193case $ac_config_headers in *"
17194"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17195esac
e5a52504
MM
17196
17197
81ecdfbb
RW
17198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17199# Files that config.status was made for.
17200config_files="$ac_config_files"
17201config_headers="$ac_config_headers"
17202config_commands="$ac_config_commands"
d15b04bd 17203
81ecdfbb 17204_ACEOF
42ecbf5e 17205
81ecdfbb 17206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17207ac_cs_usage="\
81ecdfbb
RW
17208\`$as_me' instantiates files and other configuration actions
17209from templates according to the current configuration. Unless the files
17210and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17211
81ecdfbb 17212Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17213
17214 -h, --help print this help, then exit
81ecdfbb 17215 -V, --version print version number and configuration settings, then exit
d0ac1c44 17216 --config print configuration, then exit
81ecdfbb
RW
17217 -q, --quiet, --silent
17218 do not print progress messages
42ecbf5e
DJ
17219 -d, --debug don't remove temporary files
17220 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17221 --file=FILE[:TEMPLATE]
17222 instantiate the configuration file FILE
17223 --header=FILE[:TEMPLATE]
17224 instantiate the configuration header FILE
42ecbf5e
DJ
17225
17226Configuration files:
17227$config_files
17228
17229Configuration headers:
17230$config_headers
17231
17232Configuration commands:
17233$config_commands
17234
81ecdfbb 17235Report bugs to the package provider."
42ecbf5e 17236
81ecdfbb
RW
17237_ACEOF
17238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 17239ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 17240ac_cs_version="\\
e775d3a9 17241binutils config.status 2.42.50
d0ac1c44
SM
17242configured by $0, generated by GNU Autoconf 2.69,
17243 with options \\"\$ac_cs_config\\"
42ecbf5e 17244
d0ac1c44 17245Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
17246This config.status script is free software; the Free Software Foundation
17247gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17248
17249ac_pwd='$ac_pwd'
17250srcdir='$srcdir'
17251INSTALL='$INSTALL'
17252MKDIR_P='$MKDIR_P'
17253AWK='$AWK'
17254test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17255_ACEOF
17256
81ecdfbb
RW
17257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17258# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17259ac_need_defaults=:
17260while test $# != 0
17261do
17262 case $1 in
d0ac1c44 17263 --*=?*)
81ecdfbb
RW
17264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
17266 ac_shift=:
17267 ;;
d0ac1c44
SM
17268 --*=)
17269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17270 ac_optarg=
17271 ac_shift=:
17272 ;;
81ecdfbb 17273 *)
42ecbf5e
DJ
17274 ac_option=$1
17275 ac_optarg=$2
17276 ac_shift=shift
17277 ;;
42ecbf5e
DJ
17278 esac
17279
17280 case $ac_option in
17281 # Handling of the options.
42ecbf5e
DJ
17282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17283 ac_cs_recheck=: ;;
81ecdfbb
RW
17284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17285 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
17286 --config | --confi | --conf | --con | --co | --c )
17287 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 17288 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17289 debug=: ;;
17290 --file | --fil | --fi | --f )
17291 $ac_shift
81ecdfbb
RW
17292 case $ac_optarg in
17293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 17294 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
17295 esac
17296 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17297 ac_need_defaults=false;;
17298 --header | --heade | --head | --hea )
17299 $ac_shift
81ecdfbb
RW
17300 case $ac_optarg in
17301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17302 esac
17303 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17304 ac_need_defaults=false;;
81ecdfbb
RW
17305 --he | --h)
17306 # Conflict between --help and --header
d0ac1c44 17307 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
17308Try \`$0 --help' for more information.";;
17309 --help | --hel | -h )
17310 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17313 ac_cs_silent=: ;;
17314
17315 # This is an error.
d0ac1c44 17316 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 17317Try \`$0 --help' for more information." ;;
42ecbf5e 17318
81ecdfbb
RW
17319 *) as_fn_append ac_config_targets " $1"
17320 ac_need_defaults=false ;;
42ecbf5e
DJ
17321
17322 esac
17323 shift
17324done
17325
17326ac_configure_extra_args=
17327
17328if $ac_cs_silent; then
17329 exec 6>/dev/null
17330 ac_configure_extra_args="$ac_configure_extra_args --silent"
17331fi
17332
17333_ACEOF
81ecdfbb 17334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17335if \$ac_cs_recheck; then
d0ac1c44 17336 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
17337 shift
17338 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17339 CONFIG_SHELL='$SHELL'
17340 export CONFIG_SHELL
17341 exec "\$@"
42ecbf5e
DJ
17342fi
17343
17344_ACEOF
81ecdfbb
RW
17345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17346exec 5>>config.log
17347{
17348 echo
17349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17350## Running $as_me. ##
17351_ASBOX
17352 $as_echo "$ac_log"
17353} >&5
42ecbf5e 17354
81ecdfbb
RW
17355_ACEOF
17356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 17357#
81ecdfbb 17358# INIT-COMMANDS
d15b04bd 17359#
b9583093 17360AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17361
17362
17363# The HP-UX ksh and POSIX shell print the target directory to stdout
17364# if CDPATH is set.
17365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17366
17367sed_quote_subst='$sed_quote_subst'
17368double_quote_subst='$double_quote_subst'
17369delay_variable_subst='$delay_variable_subst'
3725885a
RW
17370macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17371macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17372enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17373enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17374pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17375enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17376SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17377ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17378host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17379host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17380host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17381build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17382build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17383build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17384SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17385Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17386GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17387EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17388FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17389LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17390NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17391LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17392max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17393ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17394exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17395lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17396lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17397lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17398reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17399reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17400OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17401deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17402file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17403AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17404AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17405STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17406RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17407old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17408old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17409old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17410lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17411CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17412CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17413compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17414GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17415lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17416lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17417lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17418lt_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"`'
17419objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17420MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17421lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 17422lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 17423lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
17424lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17425lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17426need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17427DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17428NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17429LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17430OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17431OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17432libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17433shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17434extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17435archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17436enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17437export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17438whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17439compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17440old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17441old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17442archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17443archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17444module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17445module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17446with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17447allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17448no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17449hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17450hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17451hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17452hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17453hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17454hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17455hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17456hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17457inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17458link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 17459fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
17460always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17461export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17462exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17463include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17464prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17465file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17466variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17467need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17468need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17469version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17470runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17471shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17472shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17473libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17474library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17475soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17476install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17477postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17478postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17479finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17480finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17481hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17482sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17483sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17484hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17485enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17486enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17487enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17488old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17489striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
17490
17491LTCC='$LTCC'
17492LTCFLAGS='$LTCFLAGS'
17493compiler='$compiler_DEFAULT'
17494
3725885a
RW
17495# A function that is used when there is no print builtin or printf.
17496func_fallback_echo ()
17497{
17498 eval 'cat <<_LTECHO_EOF
17499\$1
17500_LTECHO_EOF'
17501}
17502
d7040cdb 17503# Quote evaled strings.
3725885a
RW
17504for var in SHELL \
17505ECHO \
17506SED \
d7040cdb
SE
17507GREP \
17508EGREP \
17509FGREP \
17510LD \
17511NM \
17512LN_S \
17513lt_SP2NL \
17514lt_NL2SP \
17515reload_flag \
718a6fd8 17516OBJDUMP \
d7040cdb
SE
17517deplibs_check_method \
17518file_magic_cmd \
17519AR \
17520AR_FLAGS \
17521STRIP \
17522RANLIB \
17523CC \
17524CFLAGS \
17525compiler \
17526lt_cv_sys_global_symbol_pipe \
17527lt_cv_sys_global_symbol_to_cdecl \
17528lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 17529lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 17530lt_prog_compiler_no_builtin_flag \
df7b86aa 17531lt_prog_compiler_wl \
f2c621e4 17532lt_prog_compiler_pic \
d7040cdb
SE
17533lt_prog_compiler_static \
17534lt_cv_prog_compiler_c_o \
17535need_locks \
718a6fd8
SE
17536DSYMUTIL \
17537NMEDIT \
17538LIPO \
17539OTOOL \
17540OTOOL64 \
d7040cdb
SE
17541shrext_cmds \
17542export_dynamic_flag_spec \
17543whole_archive_flag_spec \
17544compiler_needs_object \
17545with_gnu_ld \
17546allow_undefined_flag \
17547no_undefined_flag \
17548hardcode_libdir_flag_spec \
17549hardcode_libdir_flag_spec_ld \
17550hardcode_libdir_separator \
f2c621e4 17551fix_srcfile_path \
d7040cdb
SE
17552exclude_expsyms \
17553include_expsyms \
17554file_list_spec \
17555variables_saved_for_relink \
17556libname_spec \
17557library_names_spec \
17558soname_spec \
3725885a 17559install_override_mode \
d7040cdb
SE
17560finish_eval \
17561old_striplib \
17562striplib; do
3725885a 17563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17564 *[\\\\\\\`\\"\\\$]*)
3725885a 17565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
17566 ;;
17567 *)
17568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17569 ;;
17570 esac
17571done
17572
17573# Double-quote double-evaled strings.
17574for var in reload_cmds \
17575old_postinstall_cmds \
17576old_postuninstall_cmds \
17577old_archive_cmds \
17578extract_expsyms_cmds \
17579old_archive_from_new_cmds \
17580old_archive_from_expsyms_cmds \
17581archive_cmds \
17582archive_expsym_cmds \
17583module_cmds \
17584module_expsym_cmds \
17585export_symbols_cmds \
17586prelink_cmds \
17587postinstall_cmds \
17588postuninstall_cmds \
17589finish_cmds \
17590sys_lib_search_path_spec \
17591sys_lib_dlsearch_path_spec; do
3725885a 17592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17593 *[\\\\\\\`\\"\\\$]*)
3725885a 17594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
17595 ;;
17596 *)
17597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17598 ;;
17599 esac
17600done
17601
d7040cdb
SE
17602ac_aux_dir='$ac_aux_dir'
17603xsi_shell='$xsi_shell'
17604lt_shell_append='$lt_shell_append'
17605
17606# See if we are running on zsh, and set the options which allow our
17607# commands through without removal of \ escapes INIT.
17608if test -n "\${ZSH_VERSION+set}" ; then
17609 setopt NO_GLOB_SUBST
17610fi
17611
17612
17613 PACKAGE='$PACKAGE'
17614 VERSION='$VERSION'
17615 TIMESTAMP='$TIMESTAMP'
17616 RM='$RM'
17617 ofile='$ofile'
17618
17619
17620
862776f2
AA
17621# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17622 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17623 # from automake.
17624 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17625 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17626 LINGUAS="${LINGUAS-%UNSET%}"
17627
20e95c23
DJ
17628# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17629 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17630 # from automake.
17631 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17632 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17633 LINGUAS="${LINGUAS-%UNSET%}"
17634
42ecbf5e
DJ
17635
17636_ACEOF
17637
81ecdfbb 17638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17639
81ecdfbb 17640# Handling of arguments.
42ecbf5e 17641for ac_config_target in $ac_config_targets
252b5132 17642do
81ecdfbb
RW
17643 case $ac_config_target in
17644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17645 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17646 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17647 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
862776f2 17648 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
81ecdfbb 17649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
81ecdfbb
RW
17650 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17651
d0ac1c44 17652 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 17653 esac
252b5132
RH
17654done
17655
81ecdfbb 17656
42ecbf5e
DJ
17657# If the user did not use the arguments to specify the items to instantiate,
17658# then the envvar interface is used. Set only those that are not.
17659# We use the long form for the default assignment because of an extremely
17660# bizarre bug on SunOS 4.1.3.
17661if $ac_need_defaults; then
17662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17665fi
17666
17667# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 17668# simply because there is no reason against having it here, and in addition,
42ecbf5e 17669# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
17670# Hook for its removal unless debugging.
17671# Note that there is a small window in which the directory will not be cleaned:
17672# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
17673$debug ||
17674{
d0ac1c44 17675 tmp= ac_tmp=
81ecdfbb 17676 trap 'exit_status=$?
d0ac1c44
SM
17677 : "${ac_tmp:=$tmp}"
17678 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
17679' 0
17680 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 17681}
42ecbf5e 17682# Create a (secure) tmp directory for tmp files.
e5a52504 17683
42ecbf5e 17684{
81ecdfbb 17685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 17686 test -d "$tmp"
42ecbf5e
DJ
17687} ||
17688{
81ecdfbb
RW
17689 tmp=./conf$$-$RANDOM
17690 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
17691} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17692ac_tmp=$tmp
81ecdfbb
RW
17693
17694# Set up the scripts for CONFIG_FILES section.
17695# No need to generate them if there are no CONFIG_FILES.
17696# This happens for instance with `./config.status config.h'.
17697if test -n "$CONFIG_FILES"; then
17698
17699
17700ac_cr=`echo X | tr X '\015'`
17701# On cygwin, bash can eat \r inside `` if the user requested igncr.
17702# But we know of no other shell where ac_cr would be empty at this
17703# point, so we can use a bashism as a fallback.
17704if test "x$ac_cr" = x; then
17705 eval ac_cr=\$\'\\r\'
17706fi
17707ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17708if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 17709 ac_cs_awk_cr='\\r'
81ecdfbb
RW
17710else
17711 ac_cs_awk_cr=$ac_cr
17712fi
17713
d0ac1c44 17714echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
17715_ACEOF
17716
17717
17718{
17719 echo "cat >conf$$subs.awk <<_ACEOF" &&
17720 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17721 echo "_ACEOF"
17722} >conf$$subs.sh ||
d0ac1c44
SM
17723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17724ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
17725ac_delim='%!_!# '
17726for ac_last_try in false false false false false :; do
17727 . ./conf$$subs.sh ||
d0ac1c44 17728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
17729
17730 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17731 if test $ac_delim_n = $ac_delim_num; then
17732 break
17733 elif $ac_last_try; then
d0ac1c44 17734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
17735 else
17736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17737 fi
17738done
17739rm -f conf$$subs.sh
17740
17741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 17742cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
17743_ACEOF
17744sed -n '
17745h
17746s/^/S["/; s/!.*/"]=/
17747p
17748g
17749s/^[^!]*!//
17750:repl
17751t repl
17752s/'"$ac_delim"'$//
17753t delim
17754:nl
17755h
d0ac1c44 17756s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
17757t more1
17758s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17759p
17760n
17761b repl
17762:more1
17763s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17764p
17765g
17766s/.\{148\}//
17767t nl
17768:delim
17769h
d0ac1c44 17770s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
17771t more2
17772s/["\\]/\\&/g; s/^/"/; s/$/"/
17773p
17774b
17775:more2
17776s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17777p
17778g
17779s/.\{148\}//
17780t delim
17781' <conf$$subs.awk | sed '
17782/^[^""]/{
17783 N
17784 s/\n//
17785}
17786' >>$CONFIG_STATUS || ac_write_fail=1
17787rm -f conf$$subs.awk
17788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17789_ACAWK
d0ac1c44 17790cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
17791 for (key in S) S_is_set[key] = 1
17792 FS = "\a"
17793
17794}
42ecbf5e 17795{
81ecdfbb
RW
17796 line = $ 0
17797 nfields = split(line, field, "@")
17798 substed = 0
17799 len = length(field[1])
17800 for (i = 2; i < nfields; i++) {
17801 key = field[i]
17802 keylen = length(key)
17803 if (S_is_set[key]) {
17804 value = S[key]
17805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17806 len += length(value) + length(field[++i])
17807 substed = 1
17808 } else
17809 len += 1 + keylen
17810 }
17811
17812 print line
42ecbf5e
DJ
17813}
17814
81ecdfbb
RW
17815_ACAWK
17816_ACEOF
17817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17818if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17820else
17821 cat
d0ac1c44
SM
17822fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17823 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
17824_ACEOF
17825
d0ac1c44
SM
17826# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17827# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
17828# trailing colons and then remove the whole line if VPATH becomes empty
17829# (actually we leave an empty line to preserve line numbers).
17830if test "x$srcdir" = x.; then
d0ac1c44
SM
17831 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17832h
17833s///
17834s/^/:/
17835s/[ ]*$/:/
17836s/:\$(srcdir):/:/g
17837s/:\${srcdir}:/:/g
17838s/:@srcdir@:/:/g
17839s/^:*//
81ecdfbb 17840s/:*$//
d0ac1c44
SM
17841x
17842s/\(=[ ]*\).*/\1/
17843G
17844s/\n//
81ecdfbb
RW
17845s/^[^=]*=[ ]*$//
17846}'
17847fi
e5a52504 17848
81ecdfbb
RW
17849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17850fi # test -n "$CONFIG_FILES"
252b5132 17851
81ecdfbb
RW
17852# Set up the scripts for CONFIG_HEADERS section.
17853# No need to generate them if there are no CONFIG_HEADERS.
17854# This happens for instance with `./config.status Makefile'.
17855if test -n "$CONFIG_HEADERS"; then
d0ac1c44 17856cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 17857BEGIN {
42ecbf5e
DJ
17858_ACEOF
17859
81ecdfbb
RW
17860# Transform confdefs.h into an awk script `defines.awk', embedded as
17861# here-document in config.status, that substitutes the proper values into
17862# config.h.in to produce config.h.
17863
17864# Create a delimiter string that does not exist in confdefs.h, to ease
17865# handling of long lines.
17866ac_delim='%!_!# '
17867for ac_last_try in false false :; do
d0ac1c44
SM
17868 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17869 if test -z "$ac_tt"; then
81ecdfbb
RW
17870 break
17871 elif $ac_last_try; then
d0ac1c44 17872 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
17873 else
17874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 17875 fi
81ecdfbb 17876done
252b5132 17877
81ecdfbb
RW
17878# For the awk script, D is an array of macro values keyed by name,
17879# likewise P contains macro parameters if any. Preserve backslash
17880# newline sequences.
17881
17882ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17883sed -n '
17884s/.\{148\}/&'"$ac_delim"'/g
17885t rset
17886:rset
17887s/^[ ]*#[ ]*define[ ][ ]*/ /
17888t def
17889d
17890:def
17891s/\\$//
17892t bsnl
17893s/["\\]/\\&/g
17894s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17895D["\1"]=" \3"/p
17896s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17897d
17898:bsnl
17899s/["\\]/\\&/g
17900s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17901D["\1"]=" \3\\\\\\n"\\/p
17902t cont
17903s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17904t cont
17905d
17906:cont
17907n
17908s/.\{148\}/&'"$ac_delim"'/g
17909t clear
17910:clear
17911s/\\$//
17912t bsnlc
17913s/["\\]/\\&/g; s/^/"/; s/$/"/p
17914d
17915:bsnlc
17916s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17917b cont
17918' <confdefs.h | sed '
17919s/'"$ac_delim"'/"\\\
17920"/g' >>$CONFIG_STATUS || ac_write_fail=1
17921
17922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923 for (key in D) D_is_set[key] = 1
17924 FS = "\a"
17925}
17926/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17927 line = \$ 0
17928 split(line, arg, " ")
17929 if (arg[1] == "#") {
17930 defundef = arg[2]
17931 mac1 = arg[3]
17932 } else {
17933 defundef = substr(arg[1], 2)
17934 mac1 = arg[2]
17935 }
17936 split(mac1, mac2, "(") #)
17937 macro = mac2[1]
17938 prefix = substr(line, 1, index(line, defundef) - 1)
17939 if (D_is_set[macro]) {
17940 # Preserve the white space surrounding the "#".
17941 print prefix "define", macro P[macro] D[macro]
17942 next
17943 } else {
17944 # Replace #undef with comments. This is necessary, for example,
17945 # in the case of _POSIX_SOURCE, which is predefined and required
17946 # on some systems where configure will not decide to define it.
17947 if (defundef == "undef") {
17948 print "/*", prefix defundef, macro, "*/"
17949 next
17950 }
17951 }
17952}
17953{ print }
17954_ACAWK
42ecbf5e 17955_ACEOF
81ecdfbb 17956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 17957 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
17958fi # test -n "$CONFIG_HEADERS"
17959
17960
17961eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17962shift
17963for ac_tag
17964do
17965 case $ac_tag in
17966 :[FHLC]) ac_mode=$ac_tag; continue;;
17967 esac
17968 case $ac_mode$ac_tag in
17969 :[FHL]*:*);;
d0ac1c44 17970 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
17971 :[FH]-) ac_tag=-:-;;
17972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17973 esac
17974 ac_save_IFS=$IFS
17975 IFS=:
17976 set x $ac_tag
17977 IFS=$ac_save_IFS
17978 shift
17979 ac_file=$1
17980 shift
17981
17982 case $ac_mode in
17983 :L) ac_source=$1;;
17984 :[FH])
17985 ac_file_inputs=
17986 for ac_f
17987 do
17988 case $ac_f in
d0ac1c44 17989 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
17990 *) # Look for the file first in the build tree, then in the source tree
17991 # (if the path is not absolute). The absolute path cannot be DOS-style,
17992 # because $ac_f cannot contain `:'.
17993 test -f "$ac_f" ||
17994 case $ac_f in
17995 [\\/$]*) false;;
17996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17997 esac ||
d0ac1c44 17998 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
17999 esac
18000 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18001 as_fn_append ac_file_inputs " '$ac_f'"
18002 done
18003
18004 # Let's still pretend it is `configure' which instantiates (i.e., don't
18005 # use $as_me), people would be surprised to read:
18006 # /* config.h. Generated by config.status. */
18007 configure_input='Generated from '`
18008 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18009 `' by configure.'
18010 if test x"$ac_file" != x-; then
18011 configure_input="$ac_file. $configure_input"
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18013$as_echo "$as_me: creating $ac_file" >&6;}
18014 fi
18015 # Neutralize special characters interpreted by sed in replacement strings.
18016 case $configure_input in #(
18017 *\&* | *\|* | *\\* )
18018 ac_sed_conf_input=`$as_echo "$configure_input" |
18019 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18020 *) ac_sed_conf_input=$configure_input;;
18021 esac
18022
18023 case $ac_tag in
d0ac1c44
SM
18024 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
18026 esac
18027 ;;
252b5132
RH
18028 esac
18029
81ecdfbb 18030 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18031$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18032 X"$ac_file" : 'X\(//\)[^/]' \| \
18033 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18035$as_echo X"$ac_file" |
18036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18037 s//\1/
18038 q
18039 }
18040 /^X\(\/\/\)[^/].*/{
18041 s//\1/
18042 q
18043 }
18044 /^X\(\/\/\)$/{
18045 s//\1/
18046 q
18047 }
18048 /^X\(\/\).*/{
18049 s//\1/
18050 q
18051 }
18052 s/.*/./; q'`
18053 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 18054 ac_builddir=.
e5a52504 18055
81ecdfbb
RW
18056case "$ac_dir" in
18057.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18058*)
18059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18060 # A ".." for each directory in $ac_dir_suffix.
18061 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18062 case $ac_top_builddir_sub in
18063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18065 esac ;;
18066esac
18067ac_abs_top_builddir=$ac_pwd
18068ac_abs_builddir=$ac_pwd$ac_dir_suffix
18069# for backward compatibility:
18070ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
18071
18072case $srcdir in
81ecdfbb 18073 .) # We are building in place.
42ecbf5e 18074 ac_srcdir=.
81ecdfbb
RW
18075 ac_top_srcdir=$ac_top_builddir_sub
18076 ac_abs_top_srcdir=$ac_pwd ;;
18077 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18078 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18079 ac_top_srcdir=$srcdir
18080 ac_abs_top_srcdir=$srcdir ;;
18081 *) # Relative name.
18082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18083 ac_top_srcdir=$ac_top_build_prefix$srcdir
18084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18085esac
81ecdfbb 18086ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 18087
e5a52504 18088
81ecdfbb
RW
18089 case $ac_mode in
18090 :F)
18091 #
18092 # CONFIG_FILE
18093 #
42ecbf5e
DJ
18094
18095 case $INSTALL in
18096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18098 esac
18099 ac_MKDIR_P=$MKDIR_P
18100 case $MKDIR_P in
18101 [\\/$]* | ?:[\\/]* ) ;;
18102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18103 esac
81ecdfbb 18104_ACEOF
e5a52504 18105
81ecdfbb
RW
18106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18107# If the template does not know about datarootdir, expand it.
18108# FIXME: This hack should be removed a few years after 2.60.
18109ac_datarootdir_hack=; ac_datarootdir_seen=
18110ac_sed_dataroot='
18111/datarootdir/ {
18112 p
18113 q
18114}
18115/@datadir@/p
18116/@docdir@/p
18117/@infodir@/p
18118/@localedir@/p
18119/@mandir@/p'
18120case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18121*datarootdir*) ac_datarootdir_seen=yes;;
18122*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18124$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18125_ACEOF
18126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18127 ac_datarootdir_hack='
18128 s&@datadir@&$datadir&g
18129 s&@docdir@&$docdir&g
18130 s&@infodir@&$infodir&g
18131 s&@localedir@&$localedir&g
18132 s&@mandir@&$mandir&g
18133 s&\\\${datarootdir}&$datarootdir&g' ;;
18134esac
42ecbf5e 18135_ACEOF
81ecdfbb
RW
18136
18137# Neutralize VPATH when `$srcdir' = `.'.
18138# Shell code in configure.ac might set extrasub.
18139# FIXME: do we really want to maintain this feature?
18140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18141ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18142$extrasub
18143_ACEOF
81ecdfbb 18144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18145:t
18146/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18147s|@configure_input@|$ac_sed_conf_input|;t t
18148s&@top_builddir@&$ac_top_builddir_sub&;t t
18149s&@top_build_prefix@&$ac_top_build_prefix&;t t
18150s&@srcdir@&$ac_srcdir&;t t
18151s&@abs_srcdir@&$ac_abs_srcdir&;t t
18152s&@top_srcdir@&$ac_top_srcdir&;t t
18153s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18154s&@builddir@&$ac_builddir&;t t
18155s&@abs_builddir@&$ac_abs_builddir&;t t
18156s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18157s&@INSTALL@&$ac_INSTALL&;t t
18158s&@MKDIR_P@&$ac_MKDIR_P&;t t
18159$ac_datarootdir_hack
18160"
d0ac1c44
SM
18161eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18162 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
18163
18164test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
18165 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18167 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 18169which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 18170$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 18171which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 18172
d0ac1c44 18173 rm -f "$ac_tmp/stdin"
42ecbf5e 18174 case $ac_file in
d0ac1c44
SM
18175 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18176 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 18177 esac \
d0ac1c44 18178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
18179 ;;
18180 :H)
18181 #
18182 # CONFIG_HEADER
18183 #
42ecbf5e 18184 if test x"$ac_file" != x-; then
81ecdfbb
RW
18185 {
18186 $as_echo "/* $configure_input */" \
d0ac1c44
SM
18187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18188 } >"$ac_tmp/config.h" \
18189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18190 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18192$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18193 else
81ecdfbb 18194 rm -f "$ac_file"
d0ac1c44
SM
18195 mv "$ac_tmp/config.h" "$ac_file" \
18196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 18197 fi
42ecbf5e 18198 else
81ecdfbb 18199 $as_echo "/* $configure_input */" \
d0ac1c44
SM
18200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18201 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 18202 fi
81ecdfbb
RW
18203# Compute "$ac_file"'s index in $config_headers.
18204_am_arg="$ac_file"
42ecbf5e
DJ
18205_am_stamp_count=1
18206for _am_header in $config_headers :; do
18207 case $_am_header in
81ecdfbb 18208 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18209 break ;;
18210 * )
18211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18212 esac
18213done
81ecdfbb
RW
18214echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18215$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18216 X"$_am_arg" : 'X\(//\)[^/]' \| \
18217 X"$_am_arg" : 'X\(//\)$' \| \
18218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18219$as_echo X"$_am_arg" |
18220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18221 s//\1/
18222 q
18223 }
18224 /^X\(\/\/\)[^/].*/{
18225 s//\1/
18226 q
18227 }
18228 /^X\(\/\/\)$/{
18229 s//\1/
18230 q
18231 }
18232 /^X\(\/\).*/{
18233 s//\1/
18234 q
18235 }
18236 s/.*/./; q'`/stamp-h$_am_stamp_count
18237 ;;
42ecbf5e 18238
81ecdfbb
RW
18239 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18240$as_echo "$as_me: executing $ac_file commands" >&6;}
18241 ;;
18242 esac
e5a52504 18243
42ecbf5e 18244
81ecdfbb
RW
18245 case $ac_file$ac_mode in
18246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 18247 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
18248 # are listed without --file. Let's play safe and only enable the eval
18249 # if we detect the quoting.
b9583093
AM
18250 case $CONFIG_FILES in
18251 *\'*) eval set x "$CONFIG_FILES" ;;
18252 *) set x $CONFIG_FILES ;;
18253 esac
81ecdfbb 18254 shift
b9583093 18255 for mf
81ecdfbb
RW
18256 do
18257 # Strip MF so we end up with the name of the file.
b9583093
AM
18258 mf=`echo "$mf" | sed -e 's/:.*$//'`
18259 # Check whether this is an Automake generated Makefile or not.
18260 # We used to match only the files named 'Makefile.in', but
18261 # some people rename them; so instead we look at the file content.
18262 # Grep'ing the first line is not enough: some people post-process
18263 # each Makefile.in and add a new line on top of each file to say so.
18264 # Grep'ing the whole file is not good either: AIX grep has a line
81ecdfbb 18265 # limit of 2048, but all sed's we know have understand at least 4000.
b9583093
AM
18266 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18267 dirpart=`$as_dirname -- "$mf" ||
18268$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18269 X"$mf" : 'X\(//\)[^/]' \| \
18270 X"$mf" : 'X\(//\)$' \| \
18271 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18272$as_echo X"$mf" |
81ecdfbb
RW
18273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18274 s//\1/
18275 q
18276 }
18277 /^X\(\/\/\)[^/].*/{
18278 s//\1/
18279 q
18280 }
18281 /^X\(\/\/\)$/{
18282 s//\1/
18283 q
18284 }
18285 /^X\(\/\).*/{
18286 s//\1/
18287 q
18288 }
18289 s/.*/./; q'`
b9583093
AM
18290 else
18291 continue
18292 fi
18293 # Extract the definition of DEPDIR, am__include, and am__quote
18294 # from the Makefile without running 'make'.
18295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18296 test -z "$DEPDIR" && continue
18297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18298 test -z "$am__include" && continue
18299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18300 # Find all dependency output files, they are included files with
18301 # $(DEPDIR) in their names. We invoke sed twice because it is the
18302 # simplest approach to changing $(DEPDIR) to its actual value in the
18303 # expansion.
18304 for file in `sed -n "
18305 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18306 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18307 # Make sure the directory exists.
18308 test -f "$dirpart/$file" && continue
18309 fdir=`$as_dirname -- "$file" ||
18310$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18311 X"$file" : 'X\(//\)[^/]' \| \
18312 X"$file" : 'X\(//\)$' \| \
18313 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18314$as_echo X"$file" |
18315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
81ecdfbb
RW
18316 s//\1/
18317 q
18318 }
b9583093 18319 /^X\(\/\/\)[^/].*/{
81ecdfbb
RW
18320 s//\1/
18321 q
18322 }
b9583093
AM
18323 /^X\(\/\/\)$/{
18324 s//\1/
18325 q
18326 }
18327 /^X\(\/\).*/{
81ecdfbb
RW
18328 s//\1/
18329 q
18330 }
18331 s/.*/./; q'`
b9583093
AM
18332 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18333 # echo "creating $dirpart/$file"
18334 echo '# dummy' > "$dirpart/$file"
18335 done
42ecbf5e 18336 done
81ecdfbb 18337}
d7040cdb 18338 ;;
81ecdfbb 18339 "libtool":C)
d7040cdb
SE
18340
18341 # See if we are running on zsh, and set the options which allow our
18342 # commands through without removal of \ escapes.
18343 if test -n "${ZSH_VERSION+set}" ; then
18344 setopt NO_GLOB_SUBST
18345 fi
18346
18347 cfgfile="${ofile}T"
18348 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18349 $RM "$cfgfile"
18350
18351 cat <<_LT_EOF >> "$cfgfile"
18352#! $SHELL
18353
18354# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 18355# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18356# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18357# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18358#
718a6fd8 18359# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 18360# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 18361# Written by Gordon Matzigkeit, 1996
d7040cdb 18362#
718a6fd8 18363# This file is part of GNU Libtool.
d7040cdb 18364#
718a6fd8
SE
18365# GNU Libtool is free software; you can redistribute it and/or
18366# modify it under the terms of the GNU General Public License as
18367# published by the Free Software Foundation; either version 2 of
18368# the License, or (at your option) any later version.
d7040cdb 18369#
718a6fd8
SE
18370# As a special exception to the GNU General Public License,
18371# if you distribute this file as part of a program or library that
18372# is built using GNU Libtool, you may include this file under the
18373# same distribution terms that you use for the rest of that program.
d7040cdb 18374#
718a6fd8
SE
18375# GNU Libtool is distributed in the hope that it will be useful,
18376# but WITHOUT ANY WARRANTY; without even the implied warranty of
18377# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18378# GNU General Public License for more details.
d7040cdb 18379#
718a6fd8
SE
18380# You should have received a copy of the GNU General Public License
18381# along with GNU Libtool; see the file COPYING. If not, a copy
18382# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18383# obtained by writing to the Free Software Foundation, Inc.,
18384# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18385
18386
18387# The names of the tagged configurations supported by this script.
18388available_tags=""
18389
18390# ### BEGIN LIBTOOL CONFIG
18391
18392# Which release of libtool.m4 was used?
18393macro_version=$macro_version
18394macro_revision=$macro_revision
18395
18396# Whether or not to build shared libraries.
18397build_libtool_libs=$enable_shared
18398
18399# Whether or not to build static libraries.
18400build_old_libs=$enable_static
18401
18402# What type of objects to build.
18403pic_mode=$pic_mode
18404
18405# Whether or not to optimize for fast installation.
18406fast_install=$enable_fast_install
18407
3725885a
RW
18408# Shell to use when invoking shell scripts.
18409SHELL=$lt_SHELL
18410
18411# An echo program that protects backslashes.
18412ECHO=$lt_ECHO
18413
d7040cdb
SE
18414# The host system.
18415host_alias=$host_alias
18416host=$host
18417host_os=$host_os
18418
18419# The build system.
18420build_alias=$build_alias
18421build=$build
18422build_os=$build_os
18423
18424# A sed program that does not truncate output.
18425SED=$lt_SED
18426
18427# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18428Xsed="\$SED -e 1s/^X//"
18429
18430# A grep program that handles long lines.
18431GREP=$lt_GREP
18432
18433# An ERE matcher.
18434EGREP=$lt_EGREP
18435
18436# A literal string matcher.
18437FGREP=$lt_FGREP
18438
18439# A BSD- or MS-compatible name lister.
18440NM=$lt_NM
18441
18442# Whether we need soft or hard links.
18443LN_S=$lt_LN_S
18444
18445# What is the maximum length of a command?
18446max_cmd_len=$max_cmd_len
18447
18448# Object file suffix (normally "o").
18449objext=$ac_objext
18450
18451# Executable file suffix (normally "").
18452exeext=$exeext
18453
18454# whether the shell understands "unset".
18455lt_unset=$lt_unset
18456
18457# turn spaces into newlines.
18458SP2NL=$lt_lt_SP2NL
18459
18460# turn newlines into spaces.
18461NL2SP=$lt_lt_NL2SP
18462
718a6fd8
SE
18463# An object symbol dumper.
18464OBJDUMP=$lt_OBJDUMP
18465
d7040cdb
SE
18466# Method to check whether dependent libraries are shared objects.
18467deplibs_check_method=$lt_deplibs_check_method
18468
f2c621e4 18469# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
18470file_magic_cmd=$lt_file_magic_cmd
18471
18472# The archiver.
18473AR=$lt_AR
18474AR_FLAGS=$lt_AR_FLAGS
18475
18476# A symbol stripping program.
18477STRIP=$lt_STRIP
18478
18479# Commands used to install an old-style archive.
18480RANLIB=$lt_RANLIB
18481old_postinstall_cmds=$lt_old_postinstall_cmds
18482old_postuninstall_cmds=$lt_old_postuninstall_cmds
18483
3725885a
RW
18484# Whether to use a lock for old archive extraction.
18485lock_old_archive_extraction=$lock_old_archive_extraction
18486
d7040cdb
SE
18487# A C compiler.
18488LTCC=$lt_CC
18489
18490# LTCC compiler flags.
18491LTCFLAGS=$lt_CFLAGS
18492
18493# Take the output of nm and produce a listing of raw symbols and C names.
18494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18495
18496# Transform the output of nm in a proper C declaration.
18497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18498
18499# Transform the output of nm in a C name address pair.
18500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18501
718a6fd8
SE
18502# Transform the output of nm in a C name address pair when lib prefix is needed.
18503global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18504
d7040cdb
SE
18505# The name of the directory that contains temporary libtool files.
18506objdir=$objdir
18507
d7040cdb
SE
18508# Used to examine libraries when file_magic_cmd begins with "file".
18509MAGIC_CMD=$MAGIC_CMD
18510
18511# Must we lock files when doing compilation?
18512need_locks=$lt_need_locks
18513
718a6fd8
SE
18514# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18515DSYMUTIL=$lt_DSYMUTIL
18516
18517# Tool to change global to local symbols on Mac OS X.
18518NMEDIT=$lt_NMEDIT
18519
18520# Tool to manipulate fat objects and archives on Mac OS X.
18521LIPO=$lt_LIPO
18522
18523# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18524OTOOL=$lt_OTOOL
18525
18526# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18527OTOOL64=$lt_OTOOL64
18528
d7040cdb
SE
18529# Old archive suffix (normally "a").
18530libext=$libext
18531
18532# Shared library suffix (normally ".so").
18533shrext_cmds=$lt_shrext_cmds
18534
18535# The commands to extract the exported symbol list from a shared archive.
18536extract_expsyms_cmds=$lt_extract_expsyms_cmds
18537
18538# Variables whose values should be saved in libtool wrapper scripts and
18539# restored at link time.
18540variables_saved_for_relink=$lt_variables_saved_for_relink
18541
18542# Do we need the "lib" prefix for modules?
18543need_lib_prefix=$need_lib_prefix
18544
18545# Do we need a version for libraries?
18546need_version=$need_version
18547
18548# Library versioning type.
18549version_type=$version_type
18550
18551# Shared library runtime path variable.
18552runpath_var=$runpath_var
18553
18554# Shared library path variable.
18555shlibpath_var=$shlibpath_var
18556
18557# Is shlibpath searched before the hard-coded library search path?
18558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18559
18560# Format of library name prefix.
18561libname_spec=$lt_libname_spec
18562
18563# List of archive names. First name is the real one, the rest are links.
18564# The last name is the one that the linker finds with -lNAME
18565library_names_spec=$lt_library_names_spec
18566
18567# The coded name of the library, if different from the real name.
18568soname_spec=$lt_soname_spec
18569
3725885a
RW
18570# Permission mode override for installation of shared libraries.
18571install_override_mode=$lt_install_override_mode
18572
d7040cdb
SE
18573# Command to use after installation of a shared archive.
18574postinstall_cmds=$lt_postinstall_cmds
18575
18576# Command to use after uninstallation of a shared archive.
18577postuninstall_cmds=$lt_postuninstall_cmds
18578
18579# Commands used to finish a libtool library installation in a directory.
18580finish_cmds=$lt_finish_cmds
18581
18582# As "finish_cmds", except a single script fragment to be evaled but
18583# not shown.
18584finish_eval=$lt_finish_eval
18585
18586# Whether we should hardcode library paths into libraries.
18587hardcode_into_libs=$hardcode_into_libs
18588
18589# Compile-time system search path for libraries.
18590sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18591
18592# Run-time system search path for libraries.
18593sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18594
18595# Whether dlopen is supported.
18596dlopen_support=$enable_dlopen
18597
18598# Whether dlopen of programs is supported.
18599dlopen_self=$enable_dlopen_self
18600
18601# Whether dlopen of statically linked programs is supported.
18602dlopen_self_static=$enable_dlopen_self_static
18603
18604# Commands to strip libraries.
18605old_striplib=$lt_old_striplib
18606striplib=$lt_striplib
18607
18608
18609# The linker used to build libraries.
18610LD=$lt_LD
18611
3725885a
RW
18612# How to create reloadable object files.
18613reload_flag=$lt_reload_flag
18614reload_cmds=$lt_reload_cmds
18615
d7040cdb
SE
18616# Commands used to build an old-style archive.
18617old_archive_cmds=$lt_old_archive_cmds
18618
18619# A language specific compiler.
18620CC=$lt_compiler
18621
18622# Is the compiler the GNU compiler?
18623with_gcc=$GCC
18624
18625# Compiler flag to turn off builtin functions.
18626no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18627
df7b86aa
NC
18628# How to pass a linker flag through the compiler.
18629wl=$lt_lt_prog_compiler_wl
18630
f2c621e4
AS
18631# Additional compiler flags for building library objects.
18632pic_flag=$lt_lt_prog_compiler_pic
18633
d7040cdb
SE
18634# Compiler flag to prevent dynamic linking.
18635link_static_flag=$lt_lt_prog_compiler_static
18636
18637# Does compiler simultaneously support -c and -o options?
18638compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18639
18640# Whether or not to add -lc for building shared libraries.
18641build_libtool_need_lc=$archive_cmds_need_lc
18642
18643# Whether or not to disallow shared libs when runtime libs are static.
18644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18645
18646# Compiler flag to allow reflexive dlopens.
18647export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18648
18649# Compiler flag to generate shared objects directly from archives.
18650whole_archive_flag_spec=$lt_whole_archive_flag_spec
18651
18652# Whether the compiler copes with passing no objects directly.
18653compiler_needs_object=$lt_compiler_needs_object
18654
18655# Create an old-style archive from a shared archive.
18656old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18657
18658# Create a temporary old-style archive to link instead of a shared archive.
18659old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18660
18661# Commands used to build a shared archive.
18662archive_cmds=$lt_archive_cmds
18663archive_expsym_cmds=$lt_archive_expsym_cmds
18664
18665# Commands used to build a loadable module if different from building
18666# a shared archive.
18667module_cmds=$lt_module_cmds
18668module_expsym_cmds=$lt_module_expsym_cmds
18669
18670# Whether we are building with GNU ld or not.
18671with_gnu_ld=$lt_with_gnu_ld
18672
18673# Flag that allows shared libraries with undefined symbols to be built.
18674allow_undefined_flag=$lt_allow_undefined_flag
18675
18676# Flag that enforces no undefined symbols.
18677no_undefined_flag=$lt_no_undefined_flag
18678
18679# Flag to hardcode \$libdir into a binary during linking.
18680# This must work even if \$libdir does not exist
18681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18682
18683# If ld is used when linking, flag to hardcode \$libdir into a binary
18684# during linking. This must work even if \$libdir does not exist.
18685hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18686
18687# Whether we need a single "-rpath" flag with a separated argument.
18688hardcode_libdir_separator=$lt_hardcode_libdir_separator
18689
18690# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18691# DIR into the resulting binary.
18692hardcode_direct=$hardcode_direct
18693
18694# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18695# DIR into the resulting binary and the resulting library dependency is
18696# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18697# library is relocated.
18698hardcode_direct_absolute=$hardcode_direct_absolute
18699
18700# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18701# into the resulting binary.
18702hardcode_minus_L=$hardcode_minus_L
18703
18704# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18705# into the resulting binary.
18706hardcode_shlibpath_var=$hardcode_shlibpath_var
18707
18708# Set to "yes" if building a shared library automatically hardcodes DIR
18709# into the library and all subsequent libraries and executables linked
18710# against it.
18711hardcode_automatic=$hardcode_automatic
18712
18713# Set to yes if linker adds runtime paths of dependent libraries
18714# to runtime path list.
18715inherit_rpath=$inherit_rpath
18716
18717# Whether libtool must link a program against all its dependency libraries.
18718link_all_deplibs=$link_all_deplibs
18719
f2c621e4
AS
18720# Fix the shell variable \$srcfile for the compiler.
18721fix_srcfile_path=$lt_fix_srcfile_path
18722
d7040cdb
SE
18723# Set to "yes" if exported symbols are required.
18724always_export_symbols=$always_export_symbols
18725
18726# The commands to list exported symbols.
18727export_symbols_cmds=$lt_export_symbols_cmds
18728
18729# Symbols that should not be listed in the preloaded symbols.
18730exclude_expsyms=$lt_exclude_expsyms
18731
18732# Symbols that must always be exported.
18733include_expsyms=$lt_include_expsyms
18734
18735# Commands necessary for linking programs (against libraries) with templates.
18736prelink_cmds=$lt_prelink_cmds
18737
18738# Specify filename containing input files.
18739file_list_spec=$lt_file_list_spec
18740
18741# How to hardcode a shared library path into an executable.
18742hardcode_action=$hardcode_action
18743
18744# ### END LIBTOOL CONFIG
18745
18746_LT_EOF
18747
18748 case $host_os in
18749 aix3*)
18750 cat <<\_LT_EOF >> "$cfgfile"
18751# AIX sometimes has problems with the GCC collect2 program. For some
18752# reason, if we set the COLLECT_NAMES environment variable, the problems
18753# vanish in a puff of smoke.
18754if test "X${COLLECT_NAMES+set}" != Xset; then
18755 COLLECT_NAMES=
18756 export COLLECT_NAMES
18757fi
18758_LT_EOF
18759 ;;
18760 esac
18761
18762
18763ltmain="$ac_aux_dir/ltmain.sh"
18764
18765
18766 # We use sed instead of cat because bash on DJGPP gets confused if
18767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18768 # text mode, it properly converts lines to CR/LF. This bash problem
18769 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
18770 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18771 || (rm -f "$cfgfile"; exit 1)
18772
18773 case $xsi_shell in
18774 yes)
18775 cat << \_LT_EOF >> "$cfgfile"
18776
18777# func_dirname file append nondir_replacement
18778# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18779# otherwise set result to NONDIR_REPLACEMENT.
18780func_dirname ()
18781{
18782 case ${1} in
18783 */*) func_dirname_result="${1%/*}${2}" ;;
18784 * ) func_dirname_result="${3}" ;;
18785 esac
18786}
18787
18788# func_basename file
18789func_basename ()
18790{
18791 func_basename_result="${1##*/}"
18792}
18793
18794# func_dirname_and_basename file append nondir_replacement
18795# perform func_basename and func_dirname in a single function
18796# call:
18797# dirname: Compute the dirname of FILE. If nonempty,
18798# add APPEND to the result, otherwise set result
18799# to NONDIR_REPLACEMENT.
18800# value returned in "$func_dirname_result"
18801# basename: Compute filename of FILE.
18802# value retuned in "$func_basename_result"
18803# Implementation must be kept synchronized with func_dirname
18804# and func_basename. For efficiency, we do not delegate to
18805# those functions but instead duplicate the functionality here.
18806func_dirname_and_basename ()
18807{
18808 case ${1} in
18809 */*) func_dirname_result="${1%/*}${2}" ;;
18810 * ) func_dirname_result="${3}" ;;
18811 esac
18812 func_basename_result="${1##*/}"
18813}
18814
18815# func_stripname prefix suffix name
18816# strip PREFIX and SUFFIX off of NAME.
18817# PREFIX and SUFFIX must not contain globbing or regex special
18818# characters, hashes, percent signs, but SUFFIX may contain a leading
18819# dot (in which case that matches only a dot).
18820func_stripname ()
18821{
18822 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18823 # positional parameters, so assign one to ordinary parameter first.
18824 func_stripname_result=${3}
18825 func_stripname_result=${func_stripname_result#"${1}"}
18826 func_stripname_result=${func_stripname_result%"${2}"}
18827}
18828
18829# func_opt_split
18830func_opt_split ()
18831{
18832 func_opt_split_opt=${1%%=*}
18833 func_opt_split_arg=${1#*=}
18834}
18835
18836# func_lo2o object
18837func_lo2o ()
18838{
18839 case ${1} in
18840 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18841 *) func_lo2o_result=${1} ;;
18842 esac
18843}
18844
18845# func_xform libobj-or-source
18846func_xform ()
18847{
18848 func_xform_result=${1%.*}.lo
18849}
18850
18851# func_arith arithmetic-term...
18852func_arith ()
18853{
18854 func_arith_result=$(( $* ))
18855}
18856
18857# func_len string
18858# STRING may not start with a hyphen.
18859func_len ()
18860{
18861 func_len_result=${#1}
18862}
18863
18864_LT_EOF
18865 ;;
18866 *) # Bourne compatible functions.
18867 cat << \_LT_EOF >> "$cfgfile"
18868
18869# func_dirname file append nondir_replacement
18870# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18871# otherwise set result to NONDIR_REPLACEMENT.
18872func_dirname ()
18873{
18874 # Extract subdirectory from the argument.
18875 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18876 if test "X$func_dirname_result" = "X${1}"; then
18877 func_dirname_result="${3}"
18878 else
18879 func_dirname_result="$func_dirname_result${2}"
18880 fi
18881}
18882
18883# func_basename file
18884func_basename ()
18885{
18886 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18887}
18888
18889
18890# func_stripname prefix suffix name
18891# strip PREFIX and SUFFIX off of NAME.
18892# PREFIX and SUFFIX must not contain globbing or regex special
18893# characters, hashes, percent signs, but SUFFIX may contain a leading
18894# dot (in which case that matches only a dot).
18895# func_strip_suffix prefix name
18896func_stripname ()
18897{
18898 case ${2} in
18899 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18900 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18901 esac
18902}
18903
18904# sed scripts:
18905my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18906my_sed_long_arg='1s/^-[^=]*=//'
18907
18908# func_opt_split
18909func_opt_split ()
18910{
18911 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18912 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18913}
18914
18915# func_lo2o object
18916func_lo2o ()
18917{
18918 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18919}
18920
18921# func_xform libobj-or-source
18922func_xform ()
18923{
18924 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18925}
18926
18927# func_arith arithmetic-term...
18928func_arith ()
18929{
18930 func_arith_result=`expr "$@"`
18931}
18932
18933# func_len string
18934# STRING may not start with a hyphen.
18935func_len ()
18936{
18937 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18938}
18939
18940_LT_EOF
18941esac
18942
18943case $lt_shell_append in
18944 yes)
18945 cat << \_LT_EOF >> "$cfgfile"
18946
18947# func_append var value
18948# Append VALUE to the end of shell variable VAR.
18949func_append ()
18950{
18951 eval "$1+=\$2"
18952}
18953_LT_EOF
18954 ;;
18955 *)
18956 cat << \_LT_EOF >> "$cfgfile"
18957
18958# func_append var value
18959# Append VALUE to the end of shell variable VAR.
18960func_append ()
18961{
18962 eval "$1=\$$1\$2"
18963}
18964
18965_LT_EOF
18966 ;;
18967 esac
18968
18969
18970 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18971 || (rm -f "$cfgfile"; exit 1)
18972
18973 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
18974 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18975 chmod +x "$ofile"
18976
42ecbf5e 18977 ;;
81ecdfbb 18978 "default-1":C)
20e95c23
DJ
18979 for ac_file in $CONFIG_FILES; do
18980 # Support "outfile[:infile[:infile...]]"
18981 case "$ac_file" in
18982 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18983 esac
18984 # PO directories have a Makefile.in generated from Makefile.in.in.
18985 case "$ac_file" in */Makefile.in)
18986 # Adjust a relative srcdir.
18987 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 18988 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
18989 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18990 # In autoconf-2.13 it is called $ac_given_srcdir.
18991 # In autoconf-2.50 it is called $srcdir.
862776f2
AA
18992 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18993 case "$ac_given_srcdir" in
18994 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18995 /*) top_srcdir="$ac_given_srcdir" ;;
18996 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18997 esac
18998 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18999 rm -f "$ac_dir/POTFILES"
19000 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19001 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19002 POMAKEFILEDEPS="POTFILES.in"
19003 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19004 # on $ac_dir but don't depend on user-specified configuration
19005 # parameters.
19006 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19007 # The LINGUAS file contains the set of available languages.
19008 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19009 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19010 fi
19011 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19012 # Hide the ALL_LINGUAS assigment from automake.
19013 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19014 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19015 else
19016 # The set of available languages was given in configure.ac.
19017 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19018 fi
19019 case "$ac_given_srcdir" in
19020 .) srcdirpre= ;;
19021 *) srcdirpre='$(srcdir)/' ;;
19022 esac
19023 POFILES=
19024 GMOFILES=
19025 UPDATEPOFILES=
19026 DUMMYPOFILES=
19027 for lang in $ALL_LINGUAS; do
19028 POFILES="$POFILES $srcdirpre$lang.po"
19029 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19030 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19031 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19032 done
19033 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19034 # environment variable.
19035 INST_LINGUAS=
19036 if test -n "$ALL_LINGUAS"; then
19037 for presentlang in $ALL_LINGUAS; do
19038 useit=no
19039 if test "%UNSET%" != "$LINGUAS"; then
19040 desiredlanguages="$LINGUAS"
19041 else
19042 desiredlanguages="$ALL_LINGUAS"
19043 fi
19044 for desiredlang in $desiredlanguages; do
19045 # Use the presentlang catalog if desiredlang is
19046 # a. equal to presentlang, or
19047 # b. a variant of presentlang (because in this case,
19048 # presentlang can be used as a fallback for messages
19049 # which are not translated in the desiredlang catalog).
19050 case "$desiredlang" in
19051 "$presentlang"*) useit=yes;;
19052 esac
19053 done
19054 if test $useit = yes; then
19055 INST_LINGUAS="$INST_LINGUAS $presentlang"
19056 fi
19057 done
19058 fi
19059 CATALOGS=
19060 if test -n "$INST_LINGUAS"; then
19061 for lang in $INST_LINGUAS; do
19062 CATALOGS="$CATALOGS $lang.gmo"
19063 done
19064 fi
19065 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19066 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"
19067 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19068 if test -f "$f"; then
19069 case "$f" in
19070 *.orig | *.bak | *~) ;;
19071 *) cat "$f" >> "$ac_dir/Makefile" ;;
19072 esac
19073 fi
19074 done
19075 fi
19076 ;;
19077 esac
19078 done ;;
19079 "default-2":C)
19080 for ac_file in $CONFIG_FILES; do
19081 # Support "outfile[:infile[:infile...]]"
19082 case "$ac_file" in
19083 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19084 esac
19085 # PO directories have a Makefile.in generated from Makefile.in.in.
19086 case "$ac_file" in */Makefile.in)
19087 # Adjust a relative srcdir.
19088 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19089 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19090 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19091 # In autoconf-2.13 it is called $ac_given_srcdir.
19092 # In autoconf-2.50 it is called $srcdir.
20e95c23
DJ
19093 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19094 case "$ac_given_srcdir" in
19095 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19096 /*) top_srcdir="$ac_given_srcdir" ;;
19097 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19098 esac
19099 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19100 rm -f "$ac_dir/POTFILES"
19101 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19102 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19103 POMAKEFILEDEPS="POTFILES.in"
19104 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19105 # on $ac_dir but don't depend on user-specified configuration
19106 # parameters.
19107 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19108 # The LINGUAS file contains the set of available languages.
19109 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 19110 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
19111 fi
19112 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19113 # Hide the ALL_LINGUAS assigment from automake.
19114 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19115 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19116 else
37a42ee9 19117 # The set of available languages was given in configure.ac.
20e95c23
DJ
19118 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19119 fi
19120 case "$ac_given_srcdir" in
19121 .) srcdirpre= ;;
19122 *) srcdirpre='$(srcdir)/' ;;
19123 esac
19124 POFILES=
19125 GMOFILES=
19126 UPDATEPOFILES=
19127 DUMMYPOFILES=
19128 for lang in $ALL_LINGUAS; do
19129 POFILES="$POFILES $srcdirpre$lang.po"
19130 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19131 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19132 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19133 done
19134 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19135 # environment variable.
19136 INST_LINGUAS=
19137 if test -n "$ALL_LINGUAS"; then
19138 for presentlang in $ALL_LINGUAS; do
19139 useit=no
19140 if test "%UNSET%" != "$LINGUAS"; then
19141 desiredlanguages="$LINGUAS"
19142 else
19143 desiredlanguages="$ALL_LINGUAS"
19144 fi
19145 for desiredlang in $desiredlanguages; do
19146 # Use the presentlang catalog if desiredlang is
19147 # a. equal to presentlang, or
19148 # b. a variant of presentlang (because in this case,
19149 # presentlang can be used as a fallback for messages
19150 # which are not translated in the desiredlang catalog).
19151 case "$desiredlang" in
19152 "$presentlang"*) useit=yes;;
19153 esac
19154 done
19155 if test $useit = yes; then
19156 INST_LINGUAS="$INST_LINGUAS $presentlang"
19157 fi
19158 done
19159 fi
19160 CATALOGS=
19161 if test -n "$INST_LINGUAS"; then
19162 for lang in $INST_LINGUAS; do
19163 CATALOGS="$CATALOGS $lang.gmo"
19164 done
19165 fi
19166 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19167 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"
19168 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19169 if test -f "$f"; then
19170 case "$f" in
19171 *.orig | *.bak | *~) ;;
19172 *) cat "$f" >> "$ac_dir/Makefile" ;;
19173 esac
19174 fi
19175 done
19176 fi
19177 ;;
19178 esac
19179 done ;;
81ecdfbb 19180
42ecbf5e 19181 esac
81ecdfbb 19182done # for ac_tag
e5a52504 19183
42ecbf5e 19184
81ecdfbb 19185as_fn_exit 0
42ecbf5e 19186_ACEOF
42ecbf5e
DJ
19187ac_clean_files=$ac_clean_files_save
19188
81ecdfbb 19189test $ac_write_fail = 0 ||
d0ac1c44 19190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19191
42ecbf5e
DJ
19192
19193# configure is writing to config.log, and then calls config.status.
19194# config.status does its own redirection, appending to config.log.
19195# Unfortunately, on DOS this fails, as config.log is still kept open
19196# by configure, so config.status won't be able to write to it; its
19197# output is simply discarded. So we exec the FD to /dev/null,
19198# effectively closing config.log, so it can be properly (re)opened and
19199# appended to by config.status. When coming back to configure, we
19200# need to make the FD available again.
19201if test "$no_create" != yes; then
19202 ac_cs_success=:
19203 ac_config_status_args=
19204 test "$silent" = yes &&
19205 ac_config_status_args="$ac_config_status_args --quiet"
19206 exec 5>/dev/null
19207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19208 exec 5>>config.log
19209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19210 # would make configure fail if this is the last instruction.
d0ac1c44 19211 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
19212fi
19213if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19215$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19216fi
252b5132 19217
d546b610
L
19218
19219
19220touch config.status.tmp
19221if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
19222 sed '/as_fn_exit 0/i \
19223sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
19224touch --reference=Makefile Makefile.tmp \
19225mv Makefile.tmp Makefile \
19226' config.status > config.status.tmp
19227 touch --reference=config.status config.status.tmp
19228 mv config.status.tmp config.status
19229 chmod +x config.status
19230 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
19231 touch --reference=Makefile Makefile.tmp
19232 mv Makefile.tmp Makefile
19233else
19234 rm -f config.status.tmp
19235fi